*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yellow: #ffc300;
  --dark-blue: #1b3a6b;
  --navy: #0d2045;
  --light-blue: #a9c5df;
  --gray-light: #f5f5f5;
  --text: #333333;
  --white: #ffffff;
  /* Amarelo de marca original, mas com contorno escuro aplicado no texto
     (ver .text-outline abaixo) para manter legibilidade sobre fundo claro
     sem escurecer a cor. */
  --yellow-ink: var(--yellow);
  --yellow-ink-strong: var(--yellow);

  /* Cores dos 4 programas especiais (hero + cards) — todas derivadas da
     própria paleta (azul e amarelo da marca), variando tom/saturação em
     vez de introduzir matizes novos (roxo/terracota/teal usados antes). */
  --biz-1: var(--dark-blue);
  --biz-2: var(--navy);
  --float-1: #50729b;
  --float-2: #203046;
  --kids-1: #d5911a;
  --kids-2: #5d3614;
  --dive-1: #297bae;
  --dive-2: #0e2949;

  /* Fluid spacing — referência: 1440px */
  --section-pad-v: clamp(40px, 5.5vw, 120px);
  --section-pad-h: clamp(20px, 4vw, 80px);
  --container-w: min(1400px, 90vw);
  --gap-cards: clamp(12px, 1.8vw, 32px);
  /* Altura da imagem papel-rasgado ao ser renderizada */
  --paper-h: clamp(100px, 10vw, 240px);

  /* ===== ESCALA TIPOGRÁFICA ===== */
  /* sm  — corpo de texto, nav, labels, endereço */
  --fs-sm: clamp(16px, 1.75vw, 24px);
  /* md  — títulos de cards, FAQ questions       */
  --fs-md: clamp(28px, 2.5vw, 44px);
  /* lg  — títulos de seção, brand name          */
  --fs-lg: clamp(40px, 4.5vw, 76px);
  /* xl  — títulos display (About, FAQ, unidade) */
  --fs-xl: clamp(56px, 7vw, 120px);
}

html {
  scroll-behavior: smooth;
  /* Evita que o header fixo cubra o topo da seção ao navegar por âncora
     (#sobre, #cursos, #faq, #contato). Ajustado nos breakpoints abaixo
     conforme a altura real do header encolhe no mobile. */
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

/* ===== TOP BAR ===== */
.top-bar {
  background-color: var(--yellow);
  padding: 14px 32px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--dark-blue);
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-bar a {
  color: var(--dark-blue);
  text-decoration: none;
}
.top-bar .social-icons {
  display: flex;
  gap: 10px;
  font-size: var(--fs-sm);
}
.top-bar .btn-secretaria {
  border: 2px solid var(--dark-blue);
  border-radius: 20px;
  padding: 2px 14px;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== NAVBAR ===== */
.navbar {
  background: url("../assets/img/papel-rasgado.webp") 50%
    calc(var(--paper-h) * -0.12) / 100% var(--paper-h) no-repeat;
  box-shadow: none;
  min-height: calc(var(--paper-h) * 0.88);
  width: 100%;
  position: absolute;
  top: calc(clamp(16px, 1.75vw, 24px) + 44px);
  z-index: 100;
  overflow: visible;
}

.navbar-inner {
  padding: clamp(14px, 1.4vw, 24px) clamp(32px, 4vw, 80px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 2;
}
.navbar-logo img {
  height: clamp(60px, 6vw, 140px);
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 40px);
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--dark-blue);
}
.btn-estude {
  background: var(--yellow);
  color: var(--dark-blue) !important;
  text-decoration: none;
  padding: clamp(6px, 0.6vw, 10px) clamp(16px, 1.6vw, 28px);
  border-radius: 25px;
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.btn-estude:hover {
  background: #e6b000;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}
.nav-close-item {
  display: none;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: #a9c5df;
}
.hero-dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-dots {
  display: flex;
  gap: 8px;
}
.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}
.hero-dots span.active {
  background: #555;
}

/* ===== SECTION TITLE STYLE ===== */
.section-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: #333;
  margin-bottom: clamp(28px, 3.5vw, 64px);
  line-height: 1.1;
  text-align: left;
}
.section-title span {
  color: var(--yellow-ink);
  font-weight: 800;
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--navy);
  display: block;
  font-size: 1.4em;
  line-height: 1;
  text-align: right;
}
.section-subtitle {
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto clamp(28px, 3.5vw, 64px);
  text-align: center;
}

/* ===== ABOUT ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(500px, 50vw, 1000px);
  overflow: hidden;
}
.about-text {
  padding: clamp(48px, 6vw, 130px) clamp(32px, 4.5vw, 100px)
    clamp(48px, 6vw, 130px) 8%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.about-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: clamp(20px, 3vw, 52px);
}
.about-title .black {
  color: #333;
  font-weight: 700;
  font-size: 2rem;
  vertical-align: middle;
  display: inline-block;
  margin-top: -32px;
}
.about-title .yellow {
  color: var(--yellow-ink);
  font-weight: 800;
  font-size: 3.5rem;
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--navy);
  display: inline;
  vertical-align: baseline;
}
.about-text p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: clamp(12px, 1.4vw, 26px);
  color: #444;
}
.about-image {
  overflow: hidden;
  position: relative;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  border-radius: 0;
  max-width: none;
}

/* ===== DIVERSITY ===== */
.diversity-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(48px, 6vw, 110px) clamp(32px, 4.5vw, 100px);
  background: #fff;
}
.diversity-title {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.15;
  color: #333;
  margin-bottom: clamp(20px, 2.2vw, 34px);
}
.diversity-title .yellow {
  color: var(--yellow-ink);
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--navy);
}
.diversity-text p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  margin-bottom: clamp(12px, 1.4vw, 26px);
  color: #444;
}
.diversity-text p:last-child {
  margin-bottom: 0;
}
.diversity-text strong {
  color: var(--navy);
}
.diversity-graphic {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.torn-frame {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  transform: rotate(-3.5deg);
  filter: drop-shadow(10px 14px 20px rgba(20, 20, 20, 0.28));
}
.torn-paper-bg {
  position: absolute;
  inset: -7px;
  background: #fff;
  clip-path: polygon(
    0% 0%,
    12.5% -2.2%,
    25% 1.8%,
    37.5% 0.2%,
    50% -3%,
    62.5% -3.1%,
    75% -5.3%,
    87.5% -0.5%,
    100% 0%,
    95.4% 12.5%,
    100.9% 25%,
    100.5% 37.5%,
    105.8% 50%,
    104.4% 62.5%,
    95.6% 75%,
    98.7% 87.5%,
    100% 100%,
    87.5% 97.8%,
    75% 100.9%,
    62.5% 100.6%,
    50% 94.6%,
    37.5% 101.2%,
    25% 98.7%,
    12.5% 99.4%,
    0% 100%,
    2% 87.5%,
    -1.7% 75%,
    0.2% 62.5%,
    2.8% 50%,
    5.9% 37.5%,
    -0.6% 25%,
    -2.4% 12.5%
  );
}
.torn-photo {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  clip-path: polygon(
    0% 0%,
    12.5% -2.2%,
    25% 1.8%,
    37.5% 0.2%,
    50% -3%,
    62.5% -3.1%,
    75% -5.3%,
    87.5% -0.5%,
    100% 0%,
    95.4% 12.5%,
    100.9% 25%,
    100.5% 37.5%,
    105.8% 50%,
    104.4% 62.5%,
    95.6% 75%,
    98.7% 87.5%,
    100% 100%,
    87.5% 97.8%,
    75% 100.9%,
    62.5% 100.6%,
    50% 94.6%,
    37.5% 101.2%,
    25% 98.7%,
    12.5% 99.4%,
    0% 100%,
    2% 87.5%,
    -1.7% 75%,
    0.2% 62.5%,
    2.8% 50%,
    5.9% 37.5%,
    -0.6% 25%,
    -2.4% 12.5%
  );
}

/* ===== COURSES ===== */
.courses-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  text-align: center;
  background: #fff;
}
.courses-section .section-title {
  display: block;
  margin-bottom: clamp(6px, 0.6vw, 10px);
}
.diferenciais-section .section-title {
  margin-bottom: clamp(6px, 0.6vw, 10px);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap-cards);
  margin-top: clamp(28px, 3.5vw, 60px);
}
.course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: clamp(10px, 1.4vw, 24px);
  padding: clamp(18px, 2.2vw, 40px) clamp(12px, 1.4vw, 26px);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.course-card img {
  width: clamp(48px, 7vw, 120px);
  height: clamp(48px, 7vw, 120px);
  object-fit: contain;
  margin-bottom: clamp(10px, 1.4vw, 24px);
}
.course-card h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: clamp(10px, 1.1vw, 18px);
  color: #333;
}
.btn-saiba {
  display: inline-block;
  margin-top: auto;
  background: var(--yellow);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: clamp(3px, 0.4vw, 7px) clamp(12px, 1.4vw, 22px);
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.btn-saiba:hover {
  background: #e6b000;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}
.course-desc {
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.5;
  color: #666;
  margin-bottom: clamp(12px, 1.2vw, 20px);
}

/* ===== PROGRAMAS ESPECIAIS (Business / Dive In / Floating Class) ===== */
.special-programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-cards);
  margin-top: clamp(28px, 3.5vw, 56px);
}
.special-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1vw, 16px);
  padding: clamp(28px, 3vw, 52px) clamp(20px, 2.4vw, 40px);
  border: none;
  border-radius: clamp(14px, 1.6vw, 28px);
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.special-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 80% 0%,
    rgba(255, 255, 255, 0.16),
    transparent 55%
  );
  pointer-events: none;
}
.special-card--business {
  background: linear-gradient(140deg, var(--dark-blue), var(--navy));
}
.special-card--divein {
  background: linear-gradient(140deg, var(--dive-1), var(--dive-2));
}
.special-card--floatingclass {
  background: linear-gradient(140deg, var(--float-1), var(--float-2));
}
.special-card--kids {
  background: linear-gradient(140deg, var(--kids-1), var(--kids-2));
}
.special-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}
.special-badge {
  position: relative;
  z-index: 1;
  background: var(--yellow);
  color: var(--navy);
  font-size: clamp(11px, 0.8vw, 14px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
}
.special-icon {
  position: relative;
  z-index: 1;
  width: clamp(64px, 7vw, 110px);
  height: clamp(64px, 7vw, 110px);
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}
.special-title {
  position: relative;
  z-index: 1;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.special-title span {
  color: var(--yellow);
}
.special-text {
  position: relative;
  z-index: 1;
  font-size: clamp(14px, 1.05vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
  margin-bottom: clamp(6px, 0.8vw, 12px);
}
.special-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: clamp(6px, 0.6vw, 10px) clamp(20px, 1.8vw, 32px);
  border-radius: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    background 0.2s,
    transform 0.2s;
}
.special-card:hover .special-link {
  background: #e6b000;
  transform: scale(1.04);
}
.btn-saiba {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== MODAL DE CURSO ===== */
/* Trava a rolagem da página (html + body) enquanto o modal está aberto,
   para que só o conteúdo do .course-modal-box role. */
html.modal-open,
html.modal-open body {
  overflow: hidden;
}
.course-modal[hidden] {
  display: none;
}
.course-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.course-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  animation: modalFade 0.2s ease;
}
.course-modal-box {
  position: relative;
  background: #fff;
  border-radius: clamp(14px, 1.6vw, 24px);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalPop 0.25s ease;
  overflow: hidden;
}
.course-modal-close {
  position: absolute;
  top: clamp(12px, 1.2vw, 18px);
  right: clamp(12px, 1.2vw, 18px);
  z-index: 1;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f0f0f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.course-modal-close:hover {
  background: #e0e0e0;
}
.course-modal-close svg {
  width: 14px;
  height: 14px;
  fill: #555;
}
/* Cabeçalho — imagem e título ficam estáticos, não rolam */
.course-modal-head {
  flex: 0 0 auto;
  padding: clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px) 0;
}
.course-modal-img {
  width: clamp(80px, 9vw, 110px);
  height: clamp(80px, 9vw, 110px);
  object-fit: contain;
  margin-bottom: clamp(12px, 1.4vw, 20px);
}
.course-modal-title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 700;
  color: #333;
}
/* Área rolável — somente a descrição rola aqui dentro */
.course-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(12px, 1.4vw, 20px) clamp(28px, 3vw, 48px);
}
.course-modal-desc {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.6;
  color: #555;
}
/* Rodapé — botão CTA fixo, fora da rolagem */
.course-modal .btn-estude.course-modal-cta {
  flex: 0 0 auto;
  align-self: center;
  color: #fff !important;
  margin: clamp(4px, 1vw, 12px) clamp(28px, 3vw, 48px) clamp(28px, 3vw, 48px);
}
@keyframes modalFade {
  from {
    opacity: 0;
  }
}
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

/* ===== PAPEL RASGADO ===== */
.papel-rasgado {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.papel-rasgado img {
  width: 100%;
  display: block;
}

/* ===== DIFERENCIAIS ===== */
.diferenciais-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  text-align: center;
  background: #fff;
}
/* Números — os 3 grandes diferenciais em destaque */
.dif-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: clamp(12px, 1.6vw, 24px);
  box-shadow: 0 8px 28px rgba(20, 30, 55, 0.08);
  overflow: hidden;
}
.dif-stat {
  padding: clamp(22px, 2.8vw, 44px) clamp(12px, 1.6vw, 28px);
  border-right: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 0.9vw, 14px);
}
.dif-stat:last-child {
  border-right: none;
}
.dif-stat img {
  width: clamp(36px, 4.5vw, 64px);
  height: clamp(36px, 4.5vw, 64px);
  object-fit: contain;
}
.dif-stat-num {
  font-size: var(--fs-md);
  font-weight: 800;
  color: #222;
  line-height: 1.1;
}
.dif-stat-cap {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

/* "E também" — selo/eyebrow que introduz os selos abaixo */
.dif-and-also {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-blue);
  text-align: left;
  margin: clamp(24px, 3vw, 40px) 0 clamp(12px, 1.4vw, 20px);
}

/* Selos — atributos complementares, mais leves visualmente */
.dif-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-cards);
}
.dif-badge {
  background: #f4f4f4;
  border-radius: clamp(10px, 1.2vw, 16px);
  padding: clamp(14px, 1.7vw, 22px);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  text-align: left;
}
.dif-badge img {
  width: clamp(40px, 4vw, 56px);
  height: clamp(40px, 4vw, 56px);
  object-fit: contain;
  flex-shrink: 0;
}
.dif-badge span {
  font-size: clamp(14px, 1.15vw, 17px);
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}

/* ===== FAQ ===== */
.faq-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: #fff;
}
.faq-title {
  text-align: left;
  color: var(--yellow-ink);
  font-size: clamp(72px, 10vw, 180px);
  font-weight: 800;
  -webkit-text-stroke: 3px var(--navy);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--navy);
  margin-bottom: clamp(32px, 4.2vw, 80px);
  letter-spacing: 1px;
}
.faq-grid {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3.5vw, 64px);
}
.faq-item {
  border-bottom: 1px solid #ddd;
  padding: clamp(14px, 1.4vw, 26px) 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: #333;
  gap: 16px;
}
.faq-question > span:first-child {
  flex: 1;
}
.faq-question .faq-icon {
  flex: 0 0 clamp(24px, 2vw, 36px);
  width: clamp(24px, 2vw, 36px);
  height: clamp(24px, 2vw, 36px);
  border-radius: 50%;
  border: 1.5px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 0.9vw, 14px);
  transition:
    transform 0.3s,
    border-color 0.2s;
  color: #888;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  font-size: var(--fs-sm);
  color: #666;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: clamp(8px, 0.9vw, 14px);
}

/* ===== TESTIMONIALS ===== */
.testimonials-section .section-title {
  text-align: center;
}
.testimonials-section .section-title span {
  display: inline;
  font-size: inherit;
}
.testimonials-section {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: #fff;
  text-align: center;
}
.testimonials-grid {
  margin-top: clamp(24px, 2.8vw, 50px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-cards);
}
.testimonial-card {
  background: var(--yellow);
  border-radius: clamp(8px, 1vw, 18px);
  padding: clamp(16px, 1.8vw, 32px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 16px);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
}
.testimonial-avatar {
  width: clamp(44px, 4vw, 64px);
  height: clamp(44px, 4vw, 64px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
.testimonial-card .stars {
  color: #333;
  font-size: var(--fs-sm);
  line-height: 1;
}
.testimonial-card .name {
  font-weight: 700;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.2;
  margin-bottom: 3px;
}
.testimonial-card p {
  font-size: clamp(13.5px, 1vw, 16px);
  line-height: 1.55;
  color: #333;
}

/* ===== TESTIMONIALS CONTROLS ===== */
.testimonials-track {
  display: contents;
}
.testimonials-slider-row {
  display: contents;
}
.testimonials-prev,
.testimonials-next,
.testimonials-dots {
  display: none;
}

/* ===== FOOTER ===== */
footer {
  background: #a9c5df;
  color: #1b3a6b;
  padding: clamp(32px, 4vw, 80px) clamp(20px, 4vw, 80px) 0;
  /* Escala tipográfica reduzida para o rodapé */
  --fs-sm: clamp(11px, 1vw, 16px);
  --fs-md: clamp(13px, 1.3vw, 20px);
  --fs-lg: clamp(20px, 2.5vw, 38px);
  --fs-xl: clamp(28px, 3.5vw, 56px);
}
.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: clamp(160px, 16vw, 280px) 1fr clamp(260px, 28vw, 460px);
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
  padding-bottom: clamp(32px, 3.5vw, 64px);
}

/* Col 1: Logo */
.footer-col-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-emblem {
  width: clamp(120px, 14vw, 240px);
  height: clamp(120px, 14vw, 240px);
  object-fit: contain;
}
.footer-brand-name {
  font-size: var(--fs-lg);
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1;
  margin-top: 4px;
}
.footer-brand-sub {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Col 2: Info */
.footer-col-info {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1vw, 18px);
}
.footer-heading {
  font-size: var(--fs-md);
  font-weight: 700;
  color: #1b3a6b;
  line-height: 1.1;
  margin-bottom: 4px;
}
.footer-heading span {
  color: var(--yellow-ink-strong);
  font-style: italic;
  font-size: var(--fs-xl);
  font-weight: 900;
  -webkit-text-stroke: 1.5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 2px 2px 0 var(--navy);
  display: block;
  line-height: 1;
}
.footer-col-info address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.5vw, 10px);
}
.footer-col-info address p {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #1b3a6b;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer-social {
  display: flex;
  gap: clamp(10px, 1.1vw, 18px);
  margin-top: 4px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 3.2vw, 48px);
  height: clamp(36px, 3.2vw, 48px);
  font-size: clamp(15px, 1.4vw, 20px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  text-decoration: none;
  line-height: 1;
  transition:
    background 0.2s,
    transform 0.2s;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

/* Ícones SVG inline */
.social-icons svg,
.footer-social svg,
.nav-toggle svg,
.nav-close svg,
.faq-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
  display: inline-block;
}

/* Col 3: Mapa */
.footer-col-map {
  border-radius: clamp(8px, 1vw, 18px);
  overflow: hidden;
  height: clamp(180px, 19vw, 320px);
}
.footer-col-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Portais de acesso */
.footer-portals {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: clamp(10px, 1vw, 18px) 0;
  border-top: 1px solid rgba(27, 58, 107, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 40px);
}
.footer-portals a {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #1b3a6b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.footer-portals a:hover {
  color: var(--yellow-ink-strong);
  -webkit-text-stroke: 1px var(--navy);
  paint-order: stroke fill;
}

.footer-bottom {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: clamp(10px, 1vw, 18px) 0;
  border-top: 1px solid rgba(27, 58, 107, 0.2);
  font-size: var(--fs-sm);
  color: rgba(27, 58, 107, 0.6);
  text-align: center;
}

/* ===== Botão Estude Conosco — azul claro no desktop ===== */
.nav-links .nav-cta-item a.btn-estude {
  background: #a9c5df !important;
  background-color: #a9c5df !important;
  color: #1b3a6b !important;
}

/* ===== CTA cursos (oculto no desktop) ===== */
.courses-cta {
  display: none;
}

/* ===== ANIMAÇÕES ===== */
@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
.hero-bg {
  animation: heroZoom 1.4s ease forwards;
  transition: opacity 0.35s ease;
}

/* .reveal só começa oculto quando o JS confirma suporte a
   IntersectionObserver (classe .js-reveal no <html>, ver <head>). Sem JS
   ou em navegadores sem suporte, o conteúdo permanece visível. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.js-reveal .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Tablet largo */
@media (max-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .dif-badges {
    grid-template-columns: repeat(2, 1fr);
  }
  .special-programs {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / mobile landscape */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 90px;
  }

  /* ── Escala tipográfica reduzida ── */
  :root {
    --fs-sm: clamp(13px, 3.5vw, 18px);
    --fs-md: clamp(18px, 4.5vw, 26px);
    --fs-lg: clamp(24px, 6vw, 36px);
    --fs-xl: clamp(32px, 9vw, 52px);
    /* papel menor no mobile */
    --paper-h: clamp(120px, 32vw, 200px);
    /* +20px para afastar o menu do texto da topbar (par com padding-bottom) */
    --topbar-h: 70px;
  }

  /* ── Top bar: oculta telefone ── */
  .top-bar > span:first-child {
    display: none;
  }
  .top-bar {
    justify-content: flex-end;
    /* padding-bottom estende o amarelo para manter a sobreposição do papel */
    padding: 10px 20px 30px;
  }

  /* ── Navbar: reposiciona para altura real da topbar mobile ── */
  .navbar {
    top: var(--topbar-h);
  }
  .navbar-logo img {
    height: clamp(40px, 10vw, 70px);
  }

  /* ── Topbar: ícones maiores ── */
  .top-bar .social-icons {
    font-size: clamp(20px, 5.5vw, 28px);
    gap: 14px;
  }
  .top-bar .btn-secretaria {
    font-size: clamp(11px, 2.8vw, 15px);
    padding: 2px 10px;
    border-radius: 14px;
    letter-spacing: 0;
  }

  /* ── Navbar dropdown com slide ── */
  .nav-toggle {
    display: block;
  }
  .navbar-inner {
    position: relative;
  }
  .nav-links {
    /* tela cheia */
    position: fixed;
    inset: 0;
    height: 100dvh;
    background: #fff;
    z-index: 250;
    /* layout — itens centralizados vertical e horizontalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    /* slide: começa acima da tela */
    transform: translateY(-100%);
    transition: transform 0.35s ease-in-out;
    /* rola se a viewport for muito baixa, sem cortar o topo */
    overflow-y: auto;
  }
  /* garante que os itens ocupem só o necessário e fiquem no centro */
  .nav-links > li:not(.nav-close-item) {
    flex: 0 0 auto;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  /* botão fechar — canto superior direito */
  .nav-close-item {
    display: block;
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    width: auto !important;
    border-bottom: none !important;
    text-align: unset;
  }
  .nav-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 8px;
    line-height: 1;
    display: block;
  }
  /* itens centralizados */
  .nav-links li {
    list-style: none;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }
  .nav-links li:last-child {
    border-bottom: none;
  }
  .nav-links li a {
    display: block;
    padding: 20px 40px;
    font-size: clamp(16px, 4.5vw, 22px);
    font-weight: 700;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px;
  }
  /* botão Estude Conosco */
  .nav-cta-item {
    border-bottom: none !important;
    padding: 20px 40px;
  }
  .nav-cta-item a.btn-estude {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: clamp(14px, 4vw, 18px);
    width: auto;
  }

  /* ── Hero: ocupa 40% da tela ── */
  .hero {
    height: 40dvh;
    min-height: unset;
  }
  .hero-bg {
    height: 100%;
    min-height: unset;
  }

  /* ── About: coluna única, texto primeiro ── */
  .about-section {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .about-text {
    padding: 40px 24px 32px;
    order: 1;
  }
  .about-image {
    display: none;
  }
  .about-title {
    font-size: var(--fs-lg);
    text-align: center;
  }
  .about-title .black {
    padding-top: 0;
    margin-top: -35px;
  }
  /* ── Diversidade: coluna única, gráfico acima do texto ── */
  .diversity-section {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
  .diversity-graphic {
    order: -1;
  }
  .torn-frame {
    max-width: 260px;
  }
  /* ── Cursos: 3 colunas + botão CTA ── */
  .courses-section .section-title {
    max-width: 170px;
    margin-left: auto;
    margin-right: auto;
  }
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .courses-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(20px, 4vw, 40px);
  }
  .courses-cta .btn-estude {
    font-size: var(--fs-sm);
    padding: 10px 32px;
    border-radius: 25px;
    background: var(--dark-blue);
    color: #fff !important;
  }
  .courses-cta .btn-estude:hover {
    background: var(--navy);
  }
  .course-card--featured {
    grid-column: 1 / -1;
  }
  .course-card:not(.course-card--featured) h3 {
    font-size: 16px;
  }
  .course-card .btn-saiba {
    font-size: clamp(10px, 2.8vw, 13px);
    padding: 3px 8px;
  }
  .course-card .course-desc {
    display: none;
  }
  .special-programs {
    grid-template-columns: 1fr;
  }

  /* ── Diferenciais: números empilhados + selos em coluna única ── */
  .diferenciais-section .section-title {
    max-width: 265px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .diferenciais-section .section-title span {
    text-align: right;
  }
  .dif-stats {
    grid-template-columns: 1fr;
  }
  .dif-stat {
    border-right: none;
    border-bottom: 1px solid #e6e6e6;
    padding: 18px 12px;
  }
  .dif-stat:last-child {
    border-bottom: none;
  }
  .dif-and-also {
    text-align: center;
  }
  .dif-badges {
    grid-template-columns: 1fr;
  }

  /* ── FAQ: coluna única ── */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* ── Depoimentos: slider horizontal ── */
  .testimonials-slider-row {
    display: block;
    position: relative;
    padding: 0 44px;
  }
  .testimonials-prev,
  .testimonials-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--navy);
    color: var(--yellow-ink);
    cursor: pointer;
    transition:
      background 0.2s,
      color 0.2s;
    z-index: 2;
  }
  .testimonials-prev {
    left: 0;
  }
  .testimonials-next {
    right: 0;
  }
  .testimonials-prev:hover,
  .testimonials-next:hover {
    background: var(--yellow);
    color: #fff;
  }
  .testimonials-prev svg,
  .testimonials-next svg {
    width: 9px;
    height: 16px;
    fill: currentColor;
  }
  .testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
  }
  .testimonials-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition:
      background 0.2s,
      transform 0.2s;
  }
  .testimonials-dots .dot.active {
    background: var(--yellow);
    transform: scale(1.3);
  }
  .testimonials-grid {
    display: block;
    overflow: hidden;
  }
  .testimonials-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .testimonial-card {
    flex: 0 0 100%;
    min-width: 0;
  }

  /* ── Footer: coluna única, info primeiro ── */
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-col-info {
    order: 1;
  }
  .footer-col-map {
    order: 2;
  }
  .footer-col-logo {
    order: 3;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 76px;
  }

  /* ── Escala ainda menor ── */
  :root {
    --fs-sm: clamp(12px, 3.8vw, 16px);
    --fs-md: clamp(16px, 5vw, 22px);
    --fs-lg: clamp(20px, 6.5vw, 30px);
    --fs-xl: clamp(28px, 10vw, 44px);
    --paper-h: clamp(100px, 28vw, 160px);
    /* +18px para afastar o menu do texto da topbar (par com padding-bottom) */
    --topbar-h: 54px;
  }
  .top-bar .btn-secretaria {
    font-size: clamp(10px, 3.2vw, 13px);
    padding: 1px 8px;
    border-radius: 12px;
    letter-spacing: 0;
  }

  .top-bar {
    padding: 8px 16px 26px;
  }

  .hero {
    min-height: unset;
  }
  .hero-bg {
    min-height: unset;
    object-fit: cover;
  }

  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .faq-section {
    padding: 32px 16px;
  }

  .footer-inner {
    padding-bottom: 24px;
  }
}

/* ===== DESKTOP (min-width: 769px) ===== */
@media (min-width: 769px) {
  /* Títulos de seção — inline e centralizados no desktop */
  .section-title {
    text-align: center;
  }
  .section-title span {
    display: inline;
    font-size: 1em;
    line-height: inherit;
    text-align: inherit;
  }

  /* Navbar — botão Estude Conosco amarelo */
  .navbar .btn-estude {
    background: var(--yellow) !important;
    color: var(--dark-blue) !important;
  }

  /* Navbar — padding-top proporcional no desktop */
  .navbar-inner {
    padding-top: clamp(6px, 0.7vw, 10px);
  }

  /* Navbar — altura da logo proporcional no desktop */
  .navbar-logo {
    display: flex;
    align-items: center;
  }
  .navbar-logo img {
    height: clamp(60px, 6.25vw, 90px);
    max-height: 90px;
    display: block;
  }

  /* Hero — altura mínima definida no desktop */
  .hero {
    min-height: 85vh;
  }
  .hero-bg {
    min-height: 85vh;
    height: 85vh;
    object-fit: cover;
    object-position: center top;
  }

  /* Cursos — CTA e subtítulo ocultos no desktop */
  .courses-cta {
    display: none;
  }
  .courses-section .section-subtitle {
    display: none;
  }

  /* Cursos — título: Nossos à esquerda, cursos deslocado à direita */
  .courses-section .section-title {
    text-align: left;
    width: fit-content;
    margin-left: 0;
    margin-right: 0;
    line-height: 0.9;
  }
  .courses-section .section-title span {
    display: block;
    text-align: right;
    font-size: 1.4em;
    margin-left: 120px;
    line-height: 0.85;
  }

  /* Diferenciais — subtítulo oculto, espaçamento e background milimetrado */
  .diferenciais-section .section-subtitle {
    display: none;
  }
  .diferenciais-section {
    background-color: #fff;
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
  }
  .diferenciais-section .section-title {
    margin-bottom: clamp(48px, 5vw, 96px);
  }

  /* About — tamanhos maiores no desktop (rem global é para mobile) */
  .about-title .black {
    font-size: var(--fs-lg);
  }
  .about-title .yellow {
    font-size: var(--fs-xl);
  }

  /* Subtitle alinhada ao centro com o título */
  .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Rodapé — título "Conheça nossa Unidade" */
  .footer-heading {
    word-spacing: 10px;
    line-height: 0.4;
  }
  .footer-heading span {
    font-style: normal;
    font-weight: 800;
    text-shadow: 2px 2px 0 #999;
    margin-left: 15px;
  }

}

/* ===== HERO SLIDER ===== */
.hero-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: 85vh;
  overflow: hidden;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: none;
}

/* Slides com texto sobreposto (estilo do slide 1) */
.hero-slide--overlay .hero-bg {
  filter: brightness(0.5);
  object-position: center 68%;
}
.hero-overlay-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 1.6vw, 24px);
  line-height: 1.25;
  color: #fff;
}
.hero-overlay-content {
  height: 100%;
  padding: 0 clamp(24px, 8vw, 140px);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 600;
  color: var(--yellow);
}
.hero-title {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.05;
  max-width: 18ch;
}
.hero-title span {
  color: inherit;
  background: linear-gradient(
    transparent 55%,
    var(--mark, var(--yellow)) 55% 94%,
    transparent 94%
  );
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hero-text {
  font-size: var(--fs-sm);
  line-height: 1.4;
  max-width: 46ch;
}
.hero-cta {
  align-self: flex-start;
  margin-top: clamp(6px, 1vw, 14px);
}

/* Slides tipo "figura" — texto escuro à esquerda + recorte P&B à direita (estilo slide 1) */
.hero-slide--figure {
  background: #a9c5df;
}
.hero-figure {
  position: absolute;
  right: clamp(0px, 2vw, 40px);
  bottom: 0;
  height: 88%;
  width: auto;
  max-width: 52%;
  object-fit: contain;
  object-position: bottom right;
  z-index: 1;
}
.hero-slide--figure .hero-overlay-content {
  color: var(--text);
  max-width: 46%;
}
/* Intro (estátua) — único slide "figura" com fundo claro, texto escuro */
.hero-slide--intro .hero-eyebrow {
  color: var(--dark-blue);
}
/* Os 4 pacotes usam o MESMO gradiente escuro dos cards em Programas
   Especiais (não uma versão clara/pastel) — cor idêntica nas duas
   seções, para identificação imediata do programa. */
.hero-slide--business,
.hero-slide--floating,
.hero-slide--kids,
.hero-slide--dive {
  color: #fff;
}
.hero-slide--business .hero-overlay-content,
.hero-slide--floating .hero-overlay-content,
.hero-slide--kids .hero-overlay-content,
.hero-slide--dive .hero-overlay-content {
  color: #fff;
}
.hero-slide--business .hero-title span,
.hero-slide--floating .hero-title span,
.hero-slide--dive .hero-title span {
  color: var(--yellow);
  background: none;
  padding: 0;
}
/* Kids tem fundo dourado — amarelo em cima ficaria com baixo contraste,
   então o destaque usa navy (mesma combinação já usada nos botões). */
.hero-slide--kids .hero-title span {
  color: var(--navy);
  background: none;
  padding: 0;
}
.hero-slide--business {
  background: linear-gradient(140deg, var(--biz-1), var(--biz-2));
}
.hero-slide--floating {
  background: linear-gradient(140deg, var(--float-1), var(--float-2));
}
.hero-slide--kids {
  background: linear-gradient(140deg, var(--kids-1), var(--kids-2));
}
.hero-slide--dive {
  background: linear-gradient(140deg, var(--dive-1), var(--dive-2));
}
/* Brilho/halo atrás da figura — dá contraste e profundidade */
.hero-slide--figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 4%;
  top: 50%;
  width: min(50%, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.85),
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
}
/* Slide 1 (intro) — título longo: fonte menor e texto mais largo p/ caber */
.hero-slide--intro .hero-overlay-content {
  max-width: 54%;
}
.hero-slide--intro .hero-title {
  font-size: var(--fs-md);
  max-width: 100%;
}
/* Desktop: respiro no topo p/ o texto não encostar no cabeçalho rasgado */
@media (min-width: 769px) {
  .hero-slide--figure .hero-overlay-content {
    padding-top: clamp(28px, 5vh, 64px);
  }
  /* Figura vertical (estátua/empresário) começa abaixo do cabeçalho — sem cortar.
     Altura explícita (não "auto") remove a ambiguidade de top+bottom+height:auto,
     que fazia a figura ficar pequena demais em monitores muito largos (ela era
     limitada por max-width antes de conseguir esticar pela altura disponível). */
  .hero-figure {
    top: clamp(135px, 10vw, 172px);
    right: clamp(24px, 6vw, 180px);
    bottom: auto;
    height: calc(100% - clamp(135px, 10vw, 172px));
    max-width: 58%;
  }
}
/* Figura horizontal (mergulhador) — centralizada à direita */
.hero-figure--wide {
  height: auto;
  width: clamp(380px, 64vw, 960px);
  max-width: 68%;
  top: 50%;
  bottom: auto;
  right: clamp(0px, 1vw, 24px);
  transform: translateY(-50%);
  object-fit: contain;
  object-position: center;
}


/* Dots */
.hero-dots span {
  width: 9px;
  height: 9px;
  background: rgba(13, 32, 69, 0.28);
  cursor: pointer;
  transition:
    background 0.25s ease,
    width 0.25s ease;
}
.hero-dots span.active {
  width: 24px;
  border-radius: 5px;
  background: var(--yellow);
}

/* Barra de progresso do autoplay */
.hero-progress {
  width: clamp(60px, 8vw, 120px);
  height: 4px;
  border-radius: 3px;
  background: rgba(13, 32, 69, 0.18);
  overflow: hidden;
}
.hero-progress i {
  display: block;
  height: 100%;
  background: var(--navy);
  transform-origin: left;
  transform: scaleX(0);
  animation: heroFill 5s linear forwards;
}
@keyframes heroFill {
  to {
    transform: scaleX(1);
  }
}

/* Setas de navegação */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: clamp(40px, 3.4vw, 54px);
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.hero-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.07);
}
.hero-prev {
  left: clamp(8px, 1.5vw, 22px);
}
.hero-next {
  right: clamp(8px, 1.5vw, 22px);
}

/* Animação de entrada do texto a cada troca de slide */
.hero-slide.is-active .hero-overlay-content > * {
  animation: heroRise 0.6s both cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-slide.is-active .hero-eyebrow {
  animation-delay: 0.05s;
}
.hero-slide.is-active .hero-title {
  animation-delay: 0.18s;
}
.hero-slide.is-active .hero-text {
  animation-delay: 0.34s;
}
.hero-slide.is-active .hero-cta {
  animation-delay: 0.48s;
}
.hero-slide.is-active .hero-figure {
  animation: heroFigIn 0.8s both ease;
}
@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes heroFigIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active .hero-overlay-content > *,
  .hero-slide.is-active .hero-figure {
    animation: none;
  }
  .hero-progress i {
    animation: none;
    transform: scaleX(0.5);
  }
  .js-reveal .reveal {
    transition: none;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
  }
  .hero-slide {
    min-height: 62dvh;
  }
  .hero-overlay-content {
    padding-top: 72px;
  }
  .hero-slide--figure .hero-overlay-content {
    max-width: 100%;
    padding-right: 44%;
  }
  .hero-figure {
    height: 62%;
    max-width: 46%;
    right: 0;
  }
  .hero-figure--wide {
    width: 66%;
    max-width: 66%;
    height: auto;
    top: auto;
    bottom: 9%;
    right: 0;
    transform: none;
  }
  .hero-slide--figure:has(.hero-figure--wide) .hero-overlay-content {
    padding-right: 0;
  }
  /* Setas escondidas no mobile (evita sobrepor o texto) */
  .hero-arrow {
    display: none;
  }
}
