:root {
  --bg: #ffffff;
  --bg-elev: #151821;
  --text: #11161f;
  --muted: #6b7280;
  --accent: #003cff;
  --border: #e5e7eb;
  --nav-h: 44px;
  --nav-top-offset: 8px;
  /* Compensa navbar + offset no corpo (mobile); desktop redefine abaixo */
  --body-pad-top: calc(var(--nav-h) + 40px + var(--nav-top-offset));
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Mozilla Text', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans,
    Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  padding-top: var(--body-pad-top);
}

/* Homepage: scroll lock em todos os dispositivos */
html:has(body.page--no-scroll) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.page--no-scroll {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overscroll-behavior: none;
}

body.page--no-scroll main.container {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Homepage — imagem a preencher o viewport abaixo da navbar */
body.page--no-scroll main.container.home-main {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  text-align: center;
}

body.page--no-scroll main.container.home-main > figure {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

body.page--no-scroll main.container.home-main > figure > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

body.page--no-scroll main.container.home-main .home-main-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  max-width: none;
  display: block;
}

body.page--no-scroll main.container.home-main .home-hero-caption {
  position: absolute;
  bottom: 34px;
  left: 0;
  right: 0;
  z-index: 2;
  margin-top: 0;
  padding: 18px 20px 16px;
  text-align: center;
  font-family: 'Mozilla Text', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 200;
  letter-spacing: 0.3px;
  line-height: 1.5;
  max-width: 100%;
  box-sizing: border-box;
  color: var(--text);
}

body.page--no-scroll main.container.home-main .home-tagline {
  margin-bottom: 0;
}

body.page--no-scroll main.container.home-main .home-tagline__line {
  margin: 0;
  font-family: 'Mozilla Text', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.35;
}

body.page--no-scroll main.container.home-main .home-tagline__line--modalities {
  font-size: clamp(13px, 3.9vw, 19px);
  margin-bottom: 10px;
  font-weight: 500;
}

body.page--no-scroll main.container.home-main .home-tagline__line--strap {
  font-size: clamp(12px, 3.2vw, 16px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

@media (max-width: 767px) {
  body.page--no-scroll main.container {
    align-items: center;
    justify-content: flex-start;
    padding-top: 130px;
  }

  body.page--no-scroll main.container.home-main {
    align-items: stretch;
    justify-content: stretch;
    padding-top: 0;
  }

  body.page--no-scroll main.container.home-main .home-hero-caption {
    bottom: calc(132px + env(safe-area-inset-bottom, 0px));
    padding-bottom: 12px;
  }
}


/* Gi, no-gi, etc.: telemóvel / iPad com scroll; sem scroll só em ecrãs ≥ iPad Pro 12,9" landscape */
@media (min-width: 1367px) {
  html:has(body.page--class-no-scroll) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.page--class-no-scroll {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    overscroll-behavior: none;
  }

  body.page--class-no-scroll main.container {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  body.page--class-no-scroll #gi.section,
  body.page--class-no-scroll #no-gi.section,
  body.page--class-no-scroll #wrestling.section,
  body.page--class-no-scroll #beginners.section,
  body.page--class-no-scroll #cla.section {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 768px) {
  :root {
    --body-pad-top: calc(var(--nav-h) + var(--nav-top-offset));
  }
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Mobile-first: Desktop styles */
@media (min-width: 768px) {
  .container {
    max-width: 950px;
  }
}

/* Navbar - Mobile first (top: 0 evita faixa vazia onde o conteúdo aparece ao fazer scroll / bounce) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg);
  padding-top: var(--nav-top-offset);
  box-sizing: border-box;
  min-height: calc(var(--nav-h) + var(--nav-top-offset));
}

.navbar nav.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  min-height: var(--nav-h);
}

/* Mobile-first: Desktop navbar */
@media (min-width: 768px) {
  .navbar {
    min-height: calc(var(--nav-h) + var(--nav-top-offset));
  }
  .navbar nav.container {
    flex-direction: row;
    justify-content: space-between;
    height: var(--nav-h);
    padding: 0;
  }
}

.menu {
  list-style: none !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Mobile-first: Desktop navbar */
@media (min-width: 768px) {
  .menu {
    gap: 20px;
  }
}

.menu > li { position: relative; display: inline-flex; align-items: center; height: var(--nav-h); }

.menu a,
.menu a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-h);
  padding: 0 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.4px;
  min-width: 60px;
  text-align: center;
  font-size: 12px;
}

/* Mobile-first: Desktop menu links */
@media (min-width: 768px) {
  .menu a,
  .menu a:visited {
    padding: 0 10px;
    min-width: 80px;
    font-size: 14px;
  }
}

.menu a:hover { color: var(--accent); }

/* Larguras fixas para manter posição estável - Mobile */
.menu li:nth-child(1) > a { min-width: 50px; }
.menu li:nth-child(2) > a { min-width: 55px; }
.menu li:nth-child(3) > a { min-width: 60px; }
.menu li:nth-child(4) > a { min-width: 70px; }
.menu li:nth-child(5) > a { min-width: 85px; }

/* Mobile-first: Desktop menu widths */
@media (min-width: 768px) {
  .menu li:nth-child(1) > a { min-width: 70px; }
  .menu li:nth-child(2) > a { min-width: 90px; }
  .menu li:nth-child(3) > a { min-width: 100px; }
  .menu li:nth-child(4) > a { min-width: 100px; }
  .menu li:nth-child(5) > a { min-width: 130px; }
}

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown:hover > .dropdown,
.dropdown.dropdown--open { display: block; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 110px;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 4px 0;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 100;
}
.dropdown li { list-style: none; margin: 8px 0; }
.menu .dropdown a,
.menu .dropdown a:visited {
  display: block;
  padding: 6px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4px;
  text-decoration: none;
  white-space: nowrap;
  min-width: auto;
  height: auto;
  justify-content: flex-start;
  text-align: left;
}
.menu .dropdown a:hover {
  color: var(--accent);
}

/* Logo e Language Selector - Mobile first */
.logo-section { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-top: 8px;
}

/* Mobile-first: Desktop logo section */
@media (min-width: 768px) {
  .logo-section { 
    height: var(--nav-h); 
    margin-top: 0;
  }
}

.logo { display: inline-flex; align-items: center; justify-content: center; }
.logo .nav__logo-img {
  height: calc(var(--nav-h) - 14px);
  width: auto;
  display: block;
}

/* Backdrop do menu mobile (atrás do painel, tapa o conteúdo) */
.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(17, 22, 31, 0.45);
}

body.nav-drawer-open {
  overflow: hidden;
}

body.nav-drawer-open .nav-drawer-backdrop {
  display: block;
}

/* Botão hambúrguer — só telemóvel */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--text);
}

.nav-burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.nav-drawer-open .nav-burger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-drawer-open .nav-burger__bar:nth-child(2) {
  opacity: 0;
}

body.nav-drawer-open .nav-burger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar: menu à esquerda, logo ao centro (viewport), CTA à direita — desktop em grelha */
.nav--aligned {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 40px;
  min-height: var(--nav-h);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.nav--aligned__left {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-self: flex-start;
}

.nav--aligned__logo {
  align-self: center;
  margin-top: 8px;
}

.nav--aligned__left li:nth-child(n) > a {
  min-width: auto;
  padding: 0 6px;
}

.nav--aligned__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
  align-self: flex-end;
}

.nav--aligned__contact {
  color: var(--text);
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 0.4px;
  font-size: 12px;
}

.nav--aligned__contact:hover {
  color: var(--accent);
}

.nav--aligned__cta {
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.06em;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  max-width: 14em;
  text-transform: uppercase;
}

.nav--aligned__cta:hover {
  color: var(--accent);
}

@media (max-width: 767px) {
  /* Navbar no fluxo do documento: sem padding duplicado no body */
  :root {
    --body-pad-top: 0;
    --nav-drawer-top: calc(var(--nav-top-offset) + 10px + var(--nav-h) + 10px);
  }

  .navbar {
    position: relative;
    z-index: 100;
  }

  .nav--aligned {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    min-height: var(--nav-h);
  }

  .nav-burger {
    display: inline-flex;
  }

  /* Logo só no desktop; no telemóvel o HOME está no drawer */
  .nav--aligned__logo {
    display: none;
  }

  .nav--aligned__right {
    margin-top: 0;
    align-self: center;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav--aligned__left {
    position: fixed;
    top: var(--nav-drawer-top);
    left: 0;
    bottom: 0;
    width: min(100vw - 48px, 300px);
    max-width: 86vw;
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
    gap: 0;
    padding: 8px 0 32px;
    margin: 0;
    background: var(--bg);
    box-shadow: 8px 0 32px rgba(17, 22, 31, 0.15);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 1200;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
    flex-wrap: nowrap;
    border-right: 1px solid rgba(0, 60, 255, 0.2);
  }

  body.nav-drawer-open .nav--aligned__left {
    transform: translateX(0);
  }

  .nav--aligned__left > li {
    display: block;
    width: 100%;
    height: auto;
    border-bottom: 1px solid var(--border);
  }

  .nav--aligned__left > li > a {
    display: flex;
    width: 100%;
    min-height: 48px;
    min-width: 0;
    padding: 12px 18px;
    justify-content: flex-start;
    font-size: 15px;
    text-align: left;
  }

  .nav--aligned__left .has-dropdown {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .nav--aligned__left .dropdown {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    min-width: 0;
  }

  .nav--aligned__left .dropdown.dropdown--open {
    display: block;
  }

  .nav--aligned__left .dropdown li a {
    padding: 10px 18px 10px 28px;
    min-height: 44px;
    justify-content: flex-start;
    font-size: 14px;
  }

  .nav--aligned__cta {
    max-width: min(100%, 14.5rem);
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
    letter-spacing: 0.06em;
    font-weight: 400;
  }
}

@media (min-width: 768px) {
  .nav-drawer-backdrop {
    display: none !important;
  }

  body.nav-drawer-open {
    overflow: auto;
  }

  .nav--aligned {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 12px;
    height: var(--nav-h);
    min-height: var(--nav-h);
    padding: 0 40px;
    margin: 0;
  }

  .nav--aligned__left {
    gap: 20px;
    justify-self: start;
    min-width: 0;
    align-self: center;
    margin-top: 0;
  }

  .nav--aligned__left li:nth-child(n) > a {
    padding: 0;
    font-size: 14px;
  }

  /* Sem HOME no PC: o símbolo substitui; !important evita sobrepor por cache/outras regras */
  .nav__home-item {
    display: none !important;
  }

  .nav--aligned__logo {
    justify-self: center;
    margin-top: 0;
    align-self: center;
    position: relative;
  }

  .nav--aligned__right {
    justify-self: end;
    margin-top: 0;
    align-self: center;
  }

  .nav--aligned__contact {
    font-size: 14px;
  }

  .nav--aligned__cta {
    font-size: 15px;
    line-height: 1.3;
    max-width: none;
    white-space: nowrap;
    text-align: right;
    letter-spacing: 0.08em;
    font-weight: 400;
  }
}

/* Logo na navbar — cor fixa #0b00ff (máscara no PNG; img invisível mantém dimensões e alt) */
.navbar .logo {
  position: relative;
}

.navbar .logo .nav__logo-img {
  opacity: 0;
  filter: none;
}

.navbar .logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #0b00ff;
  -webkit-mask-image: url("assets/simbolocisma1.png");
  mask-image: url("assets/simbolocisma1.png");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Mozilla Text', sans-serif;
}

.language-selector button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Hide current language text on mobile, show only arrow */
.language-selector button #current-lang {
  display: none !important;
}

/* Mobile-first: Desktop language selector */
@media (min-width: 768px) {
  .logo-section .language-selector {
    display: block !important;
    margin-left: 15px;
  }
  
  .language-selector button #current-lang {
    display: inline !important;
  }
  
  .language-selector button .arrow {
    display: none !important;
  }
}

.language-selector button:hover {
  background: #f3f4f6;
}

.language-selector .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.language-selector.open .arrow {
  transform: rotate(180deg);
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 4px 0;
  min-width: 60px;
  z-index: 100;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown button {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  border-radius: 0;
  color: var(--text);
  font-size: 14px;
}

.language-dropdown button:hover {
  background: #f3f4f6;
  color: var(--accent);
}

.language-dropdown button.active {
  color: var(--accent);
  background: #f8f9ff;
}

/* Page - Mobile first */
main { padding: 20px 0; }
.hero {
  padding: 30px 0 50px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 28px;
}
.hero p { color: var(--muted); font-size: 16px; }

/* Mobile-first: Desktop page styles */
@media (min-width: 768px) {
  main:not(.home-main) { padding: 40px 0; }
  .hero {
    padding: 60px 0 100px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero p { font-size: 18px; }
}

.address-link:hover { color: var(--accent) !important; }

.section { padding: 20px 0; }
.section h2 { margin-top: 0; }

/* Sobre Nós - galeria mobile first */
.about-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}
.about-gallery img:first-child {
  max-width: 100%;
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.about-gallery .bottom-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}
.about-gallery .bottom-row img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Mobile-first: Desktop gallery */
@media (min-width: 768px) {
  .about-gallery {
    gap: 15px;
    margin: 15px 0;
  }
  .about-gallery img:first-child {
    max-width: 100%;
    height: 500px;
  }
  .about-gallery .bottom-row {
    flex-direction: row;
    gap: 15px;
    max-width: 100%;
  }
  .about-gallery .bottom-row img {
    flex: 1;
    min-width: 0;
    height: 600px;
  }
}

/* Imagem única (página visitantes) - Mobile first */
.about-gallery img:only-child {
  max-width: 100%;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* Mobile-only image - same format as other pages */
.about-gallery .mobile-only {
  max-width: 100%;
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center 70%;
}

/* Mobile-first: Desktop single image */
@media (min-width: 768px) {
  .about-gallery img:only-child {
    max-width: 100%;
    height: 600px;
  }
}

/* Páginas de aulas: duas colunas (imagem | texto), centrado */
.class-page-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.class-page-split__image {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
}

.class-page-split__image.about-gallery {
  margin: 0;
}

.class-page-split__image.about-gallery img:only-child,
.class-page-split__image.about-gallery img:first-child {
  aspect-ratio: auto;
  object-fit: contain;
  height: auto;
}

.class-page-split__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
  max-width: 100%;
}

.class-page-split__body {
  flex: 0 1 auto;
  min-width: 0;
  max-width: min(100%, 500px);
  width: 100%;
}

.class-page-split__body .about-text {
  margin-top: 0;
  color: var(--accent);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.class-page-split__body .class-page-cta-modal {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.class-page-split__body .class-page-cta-modal:hover {
  text-decoration: underline;
}

.class-page-split__body .class-page-cta-modal:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.class-page-split__body .class-text-box p {
  color: var(--accent);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.class-page-split__body .class-text-box h3 {
  text-align: center;
}

.class-page-split__body .class-page-title {
  margin: 0 0 14px 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: left;
}

.class-page-split__body .classes-text-container {
  margin-top: 0;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .class-page-split {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 36px;
    flex-wrap: nowrap;
  }

  .class-page-split__image {
    flex: 0 0 50%;
    max-width: 50%;
  }

  body.page--class-no-scroll .class-page-split__image.about-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .class-page-split__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-self: flex-start;
    min-height: 0;
    width: auto;
    max-width: min(500px, calc(100% - 48px));
  }

  .class-page-split__body .about-text {
    max-width: none;
  }
}


/* Mobile/Desktop visibility classes */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

/* Mobile-first: Desktop visibility */
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}
.about-text {
  margin-top: 16px;
  text-align: justify;
  color: var(--muted);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  line-height: 1.6;
  font-size: 14px;
}

/* Mobile-first: Desktop text */
@media (min-width: 768px) {
  .about-text {
    max-width: 950px;
    font-size: 16px;
  }
}

/* Classes text boxes - Mobile first */
.classes-text-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.class-text-box {
  width: 100%;
  padding: 15px;
  text-align: justify;
}

/* Mobile-first: Desktop classes layout */
@media (min-width: 768px) {
  .classes-text-container {
    flex-direction: row;
    max-width: 950px;
  }

  .class-page-split__body .classes-text-container {
    max-width: none;
  }
  .class-text-box {
    flex: 1;
    max-width: calc(50% - 7.5px);
    padding: 20px;
  }
}

.class-text-box h3 {
  margin: 0 0 12px 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: normal;
  font-family: 'Mozilla Text', sans-serif;
  text-align: center;
}

.class-text-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-family: 'Mozilla Text', sans-serif;
}

/* Mobile-first: Desktop class text */
@media (min-width: 768px) {
  .class-text-box h3 {
    font-size: 18px;
  }
  .class-text-box p {
    font-size: 16px;
  }
}

/* Tabela do horário - Mobile first */
.schedule-table { 
  width: 100%; 
  max-width: 950px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  margin: 0 auto;
}
.schedule-table th, 
.schedule-table td { 
  padding: 8px; 
  border-bottom: 1px solid var(--accent); 
  text-align: left; 
}

.schedule-table .day-header td {
  border-bottom: none;
  padding-top: 30px;
  padding-bottom: 4px;
}
.schedule-table th { 
  color: #a3a8b3; 
  font-weight: 600; 
}
.schedule-table .day-header { 
  background: none; 
  font-weight: 700; 
  color: var(--accent); 
  border-bottom: none;
}
.schedule-table .time { 
  font-weight: 600; 
  color: #6b7280;
  white-space: nowrap;
}

@media (min-width: 768px) {
  /* keep desktop table spacing handled below */
}

/* Mobile-first: Desktop table */
@media (min-width: 768px) {
  .schedule-table {
    font-size: 14px;
  }
  .schedule-table th, 
  .schedule-table td { 
    padding: 12px; 
  }
}

/* Mais espaço entre hora e tipologia */
.schedule-table td.time {
  padding-right: 80px;
}
.schedule-table td.time + td {
  padding-left: 80px;
}

@media (min-width: 768px) {
  .schedule-table td.time {
    padding-right: 140px;
  }
  .schedule-table td.time + td {
    padding-left: 140px;
  }
}

/* Contact page layout */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px 0;
}

.contact-page__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.contact-page__desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  font-style: normal;
  text-align: justify;
}

.contact-page__form {
  flex: 1;
}

.contact-page__info {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 60, 255, 0.3);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
}

@media (max-width: 767px) {
  .contact-page,
  .contact-page__form,
  .contact-page__info {
    min-width: 0;
    max-width: 100%;
  }

  .contact-page {
    padding: 12px 0 24px;
    gap: 28px;
  }

  .contact-page__desc {
    text-align: left;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .contact-info-block p,
  .contact-info-block a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-hours li {
    gap: 12px;
    min-width: 0;
  }

  .contact-hours li span:last-child {
    flex-shrink: 0;
    text-align: right;
  }

  .contact-map--full {
    margin-top: 28px;
  }

  .reviews-section {
    margin-top: 28px;
    padding-top: 28px;
  }

  .form-submit {
    align-self: stretch;
    text-align: center;
  }
}

@media (min-width: 768px) {
  .contact-page {
    flex-direction: row;
    gap: 60px;
    padding: 40px 0;
  }
  .contact-page__title {
    font-size: 36px;
  }
  .contact-page__desc {
    font-size: 16px;
  }
  .contact-page__form {
    flex: 1 1 60%;
    min-width: 0;
  }
  .contact-page__info {
    flex: 0 0 280px;
    padding-top: 0;
    align-self: flex-start;
  }
}

/* Contact info blocks */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 60, 255, 0.15);
}

.contact-info-block:last-child {
  border-bottom: none;
}

.contact-info-block__title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.contact-info-block p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
}

.contact-info-block a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-info-block a:hover {
  color: var(--accent);
}

.contact-map {
  width: 100%;
  max-width: 100%;
}

.contact-map--full {
  position: relative;
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 60, 255, 0.15);
  background: rgba(0, 60, 255, 0.04);
}

.contact-map--full iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

/* Camada clicável: um toque abre direções (comportamento anterior ao embed) */
.contact-map__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 1;
}

.contact-map__overlay:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

@media (min-width: 768px) {
  .contact-map--full {
    margin-top: 50px;
  }

  .contact-map--full iframe {
    height: 420px;
  }
}

.contact-hours {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
  padding: 6px 0;
}

.contact-hours li + li {
  border-top: 1px solid rgba(0,0,0,0.04);
}

/* Contact form */
.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .form-row {
    flex-direction: row;
    gap: 16px;
  }
  .form-row .form-group {
    flex: 1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-required {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 60, 255, 0.3);
  border-radius: 0;
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  transition: border-color 0.2s ease;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.form-submit {
  align-self: flex-start;
  padding: 10px 32px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-submit:hover {
  background: var(--accent);
  color: #fff;
}


@media (min-width: 768px) {
  .form-group label {
    font-size: 14px;
  }
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 15px;
  }
  .form-submit {
    font-size: 14px;
  }
}

/* Thank you section */
.contact-thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 0;
  text-align: center;
}

.thank-you-text {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.4px;
  color: var(--text);
  margin: 0;
}

.thank-you-link {
  display: inline-block;
  padding: 10px 32px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.thank-you-link:hover {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 768px) {
  .thank-you-text {
    font-size: 22px;
  }
  .thank-you-link {
    font-size: 14px;
  }
}
/* Reviews section (Elfsight): sem overflow hidden/auto no wrapper — evita cortar as setas do carrossel */
.reviews-section {
  margin-top: 40px;
  padding-top: 40px;
  overflow: visible;
}

@media (min-width: 768px) {
  .reviews-section {
    margin-top: 50px;
    padding-top: 50px;
  }
}

/* Modal — aula experimental → WhatsApp */
.aula-modal[hidden] {
  display: none !important;
}

.aula-modal:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1100;
  padding: 20px;
  box-sizing: border-box;
}

body.aula-modal-open {
  overflow: hidden;
}

.aula-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 22, 31, 0.45);
  cursor: pointer;
}

.aula-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  background: var(--bg);
  border: 1px solid rgba(0, 60, 255, 0.3);
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 12px 40px rgba(17, 22, 31, 0.12);
}

.aula-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.aula-modal__close:hover {
  color: var(--accent);
}

.aula-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.aula-modal__title {
  margin: 0 40px 12px 0;
  font-family: 'Mozilla Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.2;
}

.aula-modal__subtitle {
  margin: 0 0 24px;
  font-family: 'Mozilla Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  line-height: 1.55;
  font-style: italic;
}

.aula-modal__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.aula-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.aula-modal__field label,
.aula-modal__legend {
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
}

.aula-modal__field input,
.aula-modal__field select {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(0, 60, 255, 0.3);
  border-radius: 0;
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: transparent;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.aula-modal__field input::placeholder {
  color: var(--muted);
}

.aula-modal__field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23003cff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
  color: var(--text);
}

.aula-modal__field input:focus,
.aula-modal__field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.aula-modal__fieldset {
  margin: 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.aula-modal__legend {
  padding: 0;
  margin-bottom: 10px;
}

.aula-modal__radios {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.aula-modal__radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
}

.aula-modal__radio input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.aula-modal__submit {
  margin-top: 10px;
  align-self: stretch;
  width: 100%;
  padding: 12px 28px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-family: 'Mozilla Text', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.4px;
  text-transform: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.aula-modal__submit:hover {
  background: var(--accent);
  color: #fff;
}

.aula-modal__submit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .aula-modal__panel {
    padding: 32px 28px 28px;
  }

  .aula-modal__title {
    font-size: 28px;
  }

  .aula-modal__subtitle {
    font-size: 15px;
  }

  .aula-modal__field input,
  .aula-modal__field select {
    font-size: 15px;
  }

  .aula-modal__submit {
    font-size: 14px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}