/* ==========================================================================
   Liverpool Idiomas — Design System v2.1
   Mobile-first · WCAG 2.2 AA · Sem frameworks externos
   Base: branco · Superfícies escuras: azul escuro #38446A/#2B3E54
   Detalhes: #050ACD (como o vermelho — nunca em campos grandes)
   Tokens: brand #050ACD / #6D92DB / #38446A / #475095 / #ED3237 · acento acessível #C4272C
   Fontes: Outfit (headings) · Plus Jakarta Sans (body)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. RESET & BOX-MODEL
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* A gaveta de navegacao mobile fica fora da tela via transform: translateX(100%),
   e transforms entram na area de overflow rolavel do documento — o que criava
   rolagem horizontal de 335px em 390px e 360px em 768px. `clip` recorta sem criar
   container de scroll, portanto o `position: sticky` do header continua funcionando. */
html { overflow-x: clip; }

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* -----------------------------------------------------------------------
     MARCA LIVERPOOL IDIOMAS — paleta oficial (amostrada do logotipo)
       branco  = base (60–70%)
       azul    = identidade (20–30%)
       vermelho= acento estratégico (5–10%)
     ----------------------------------------------------------------------- */
  --liverpool-blue:       #050ACD;
  --liverpool-blue-light: #6D92DB;
  --liverpool-red:        #ED3237;
  --liverpool-slate:      #38446A;
  --liverpool-blue-mid:   #475095;
  --liverpool-teal:       #326284;
  --liverpool-white:      #FFFFFF;

  /* Escala azul (derivada da paleta do logotipo) */
  --blue-900: #2B3E54;   /* navy do logo — rodapé e superfícies profundas */
  --blue-800: #38446A;   /* azul ardósia — títulos e textos fortes */
  --blue-700: #475095;   /* azul intermediário — cards escuros, placeholders */
  --blue-600: #050ACD;   /* azul institucional — navegação e seções */
  --blue-500: #1A20D8;   /* hover do azul institucional */
  --blue-300: #6D92DB;   /* azul claro — fundos suaves, bordas, ícones */
  --blue-100: #E7EDF9;   /* tint azul */
  --blue-50:  #F4F7FC;   /* wash azul — seções alternadas */

  /* Vermelho (acento) */
  --red-600: #ED3237;    /* vermelho da marca — decorativo e indicadores */
  --red-700: #C4272C;    /* vermelho acessível AA — texto e preenchimento */
  --red-300: #FCA5A5;    /* vermelho claro — texto/indicador sobre fundo azul (5.7:1) */

  /* Cores semânticas — nomes preservados, valores agora na paleta da marca */
  --primary:          var(--blue-800);
  --primary-mid:      var(--blue-700);
  --action:           var(--blue-600);
  --action-hover:     var(--blue-500);
  --action-light:     rgba(5,10,205,.10);
  --accent:           var(--red-600);
  --accent-strong:    var(--red-700);
  --accent-hover:     var(--red-600);
  --conversion:       #16A34A;   /* WhatsApp — identidade da plataforma */
  --conversion-hover: #15803D;
  --dark-footer:      var(--blue-900);
  /* Superfícies escuras = azul escuro; #050ACD fica reservado a detalhes */
  --section-dark-bg:  var(--blue-800);

  /* Fundos */
  --light-bg:   var(--blue-50);
  --card-bg:    #FFFFFF;
  --hero-bg:    var(--blue-800);

  /* Texto */
  --text-dark:  var(--blue-800);
  --text-muted: #5C6784;   /* 5.63:1 sobre branco */
  --text-light: #C7D2EE;   /* 6.3–7.4:1 sobre azul/ardósia */
  --text-xlight:#DCE3F5;

  /* Bordas */
  --border:     #E4E9F7;
  --border-mid: #CBD4EC;

  /* Border-radius */
  --radius-card: 16px;
  --radius-btn:   8px;
  --radius-pill: 9999px;
  --radius-sm:    6px;

  /* Sombras */
  --shadow-soft:  0 4px 20px -2px rgba(43,62,84,.06);
  --shadow-hover: 0 12px 32px -4px rgba(43,62,84,.16);
  --shadow-modal: 0 24px 64px -8px rgba(43,62,84,.26);
  --shadow-wa:    0 8px 24px -4px rgba(22,163,74,.35);

  /* Tipografia */
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Escala tipográfica (mobile-first) */
  --text-xs:  12px;
  --text-sm:  14px;
  --text-base:15px;
  --text-md:  16px;
  --text-lg:  18px;
  --text-xl:  20px;

  /* Espaçamentos (sistema de 8pt) */
  --sp-1:  8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;
  --sp-9: 96px;

  /* Layout */
  --container-max: 1200px;
  --header-h: 64px;

  /* Transições */
  --transition: .2s ease;
  --transition-slow: .35s ease;

  /* v3 — Premium EDTECH refinements (recolorido para a marca) */
  --surface-soft:   var(--blue-50);
  --glass-bg:       rgba(255,255,255,.92);
  --glass-br:       saturate(150%) blur(14px);
  --hairline:       rgba(255,255,255,.14);
--hero-glow-top:  radial-gradient(1100px 520px at 88% -12%, rgba(109,146,219,.38), transparent 60%);
--hero-glow-bot:  radial-gradient(860px 420px at 6% 108%, rgba(43,62,84,.55), transparent 55%);
--section-glow:   radial-gradient(900px 420px at 85% -20%, rgba(109,146,219,.26), transparent 60%);
  --card-shadow:    0 1px 2px rgba(43,62,84,.04), 0 18px 44px -20px rgba(43,62,84,.18);
  --card-shadow-hover: 0 2px 6px rgba(43,62,84,.06), 0 28px 56px -20px rgba(43,62,84,.24);
  --ring-focus:     0 0 0 4px rgba(5,10,205,.20);
  --track-caps:     .12em;
  --track-display:  -.02em;
  --radius-lg:      22px;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Contém a gaveta off-canvas no eixo X — SOMENTE no mobile (desktop intocado) */
@media (max-width: 1023.98px) {
  html { overflow-x: clip; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  line-height: 1.65;
  background: var(--card-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: var(--track-display);
  color: var(--primary);
  text-wrap: balance;
}

/* Mobile-first — base menor */
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: var(--text-md); font-weight: 600; }
h5 { font-size: var(--text-base); font-weight: 600; }

p { color: var(--text-muted); font-size: var(--text-base); line-height: 1.7; }

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

strong { font-weight: 600; color: var(--primary); }

ul, ol { padding-left: var(--sp-2); }
li { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   4. ACESSIBILIDADE
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(5,10,205,.20); }

.skip-link {
  position: absolute;
  left: -999px; top: var(--sp-1);
  z-index: 200;
  background: var(--action);
  color: #fff;
  padding: 10px var(--sp-2);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: var(--text-sm);
}
.skip-link:focus { left: var(--sp-1); }

/* --------------------------------------------------------------------------
   5. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-2);
}

.container-sm { max-width: 680px; }
.container-md { max-width: 880px; }

/* --------------------------------------------------------------------------
   6. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--liverpool-white);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px -24px rgba(43,62,84,.55);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-br);
    backdrop-filter: var(--glass-br);
  }
}

/* Abaixo de 1024px a nav vira gaveta off-canvas posicionada fora da viewport
   (translateX(100%)). Sem o clip, essa caixa contador continua no fluxo
   rolavel e estica o scrollWidth da pagina em ~360px em todo mobile. O clip
   fica restrito ao header e so neste breakpoint: no desktop os dropdowns
   pendentes precisam escapar dos limites do header. `clip` (e nao `hidden`)
   nao cria containing block para descendentes, entao o drawer continua
   funcionando igual, so deixa de contabilizar fora da viewport. */
@media (max-width: 1023.98px) {
  .site-header { overflow-x: clip; }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-1);
}

.logo img { height: 40px; width: auto; }
.logo:hover { opacity: .88; }
.logo:focus-visible { border-radius: var(--radius-sm); }

/* Hambúrguer */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  min-width: 48px;
  padding: 10px;
  background: transparent;
  border: 1.5px solid rgba(56,68,106,.28);
  border-radius: var(--radius-btn);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav Actions — só aparece inline no desktop; a nav vira gaveta no mobile */
.header-actions { display: none; }

/* --------------------------------------------------------------------------
   Gaveta off-canvas (mobile): desliza da direita, sobre a página.
   `position:absolute` dentro do header sticky evita o containing-block do
   backdrop-filter; `100dvh` garante altura total da viewport.
   -------------------------------------------------------------------------- */
.main-nav {
  position: absolute;
  top: 0; right: 0;
  width: min(86%, 360px);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background: var(--section-dark-bg);
  box-shadow: -20px 0 52px -14px rgba(43,62,84,.45);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  visibility: hidden;
  z-index: 2;
  transition: transform var(--transition-slow), visibility 0s linear var(--transition-slow);
}
.nav-open .main-nav {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--transition-slow), visibility 0s;
}

/* Cabeçalho da gaveta (logo + fechar) */
.nav-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  min-height: var(--header-h);
  padding: 0 var(--sp-2) 0 var(--sp-3);
  background: var(--liverpool-white);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: inline-flex; align-items: center; }
.nav-brand img { height: 34px; width: auto; }
.nav-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(56,68,106,.06);
  border: 1.5px solid rgba(56,68,106,.25);
  border-radius: var(--radius-btn);
  color: var(--primary); cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.nav-close:hover { background: rgba(56,68,106,.12); border-color: rgba(56,68,106,.45); }
.nav-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Itens dentro da gaveta (exclui os botões do CTA, que mantêm o estilo .btn) */
.main-nav a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 15px var(--sp-3);
  font-size: var(--text-md);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:not(.btn):hover, .main-nav a:not(.btn).active { color: #fff; background: rgba(255,255,255,.045); text-decoration: none; }
.main-nav a:not(.btn).active { background: rgba(255,255,255,.09); box-shadow: inset 3px 0 0 var(--red-300); }

/* Submenus — accordion (altura controlada por JS, ver main.js) */
.dropdown, .dropdown-sub { position: relative; width: 100%; }
.dropdown > a::after {
  content: '';
  width: 8px; height: 8px; margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.dropdown.open > a::after { transform: rotate(-135deg); }
.dropdown-menu, .dropdown-submenu {
  overflow: hidden;
  max-height: 0;
  background: transparent;
  transition: max-height var(--transition-slow);
}
.dropdown-menu { padding-left: var(--sp-2); }
.dropdown-submenu { padding-left: var(--sp-3); }
.dropdown-menu a:not(.btn) { font-size: var(--text-sm); padding-left: var(--sp-3); border-bottom: 1px dashed rgba(255,255,255,.12); }
.dropdown-sub > a.has-children { gap: 8px; padding-right: var(--sp-3); }
.dropdown-sub .sub-caret { display: inline-block; font-size: 14px; color: var(--text-light); transition: transform var(--transition); }
.dropdown-sub.open .sub-caret { transform: rotate(90deg); }

/* CTA fixa no rodapé da gaveta */
.nav-cta {
  position: sticky; bottom: 0;
  display: flex; flex-direction: column; gap: var(--sp-1);
  margin-top: auto;
  padding: var(--sp-2) var(--sp-3) calc(var(--sp-2) + env(safe-area-inset-bottom, 0px));
  background: var(--dark-footer);
  border-top: 1px solid rgba(255,255,255,.14);
}
.nav-cta .btn { width: 100%; }

/* Overlay / backdrop */
.nav-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100dvh;
  z-index: 1;
  background: rgba(43,62,84,.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility 0s linear var(--transition);
}
body.menu-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--transition), visibility 0s;
}

/* Scroll lock + WhatsApp flutuante oculto com a gaveta aberta */
body.menu-open { overflow: hidden; }
body.menu-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* --------------------------------------------------------------------------
   7. BOTÕES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px var(--sp-4);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  min-height: 48px;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

/* CTA principal — vermelho da marca sobre fundos claros; hover azul institucional */
.btn-primary   { background: var(--accent-strong); color: #fff; box-shadow: 0 10px 24px -12px rgba(196,39,44,.55); }
.btn-primary:hover { background: var(--action); text-decoration: none; box-shadow: 0 8px 22px -6px rgba(5,10,205,.42); transform: translateY(-1px); }

/* Sobre fundo azul institucional o contraste exige CTA claro com texto azul;
   o vermelho permanece como acento (overline, indicadores, ícones, nav ativa) */
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-primary {
  background: var(--liverpool-white);
  color: var(--blue-600);
  box-shadow: 0 10px 26px -12px rgba(5,10,205,.45);
}
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-primary:hover {
  background: var(--blue-100);
  color: var(--blue-600);
}

.btn-conversion { background: var(--conversion); color: #fff; }
.btn-conversion:hover { background: var(--conversion-hover); text-decoration: none; }

.btn-accent    { background: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: var(--action); color: #fff; text-decoration: none; }

/* Secundário — outline azul sobre fundo claro */
.btn-secondary {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid rgba(5,10,205,.38);
}
.btn-secondary:hover { background: rgba(5,10,205,.06); text-decoration: none; border-color: var(--action); }

/* …e outline branco sobre fundo azul */
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-secondary {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-secondary:hover {
  background: rgba(255,255,255,.14);
  border-color: #fff;
}

/* Variante enxuta (usada nos rodapés de seção azul e em tabelas) */
.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 1.5px solid rgba(5,10,205,.32);
  padding: 12px var(--sp-3);
  font-size: var(--text-sm);
}
.btn-outline:hover { color: var(--blue-600); background: var(--action-light); border-color: var(--action); text-decoration: none; }
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-outline {
  color: var(--text-light);
  border-color: rgba(199,210,238,.45);
}
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .nav-cta) .btn-outline:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.12);
}

.btn-wa { background: var(--conversion); color: #fff; }
.btn-wa:hover { background: var(--conversion-hover); text-decoration: none; box-shadow: var(--shadow-wa); }

.btn-ghost { background: transparent; color: var(--action); border: 1.5px solid var(--action); }
.btn-ghost:hover { background: var(--action-light); text-decoration: none; }

.btn-lg { padding: 16px 36px; font-size: var(--text-md); min-height: 56px; }
.btn-sm { padding: 10px var(--sp-2); font-size: var(--text-sm); min-height: 40px; }
.btn-full { width: 100%; }

/* --------------------------------------------------------------------------
   8. ACTIONS GROUP
   -------------------------------------------------------------------------- */
.actions {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}
.actions .btn { width: 100%; max-width: 340px; }
@media (min-width: 560px) { .actions .btn { width: auto; } }

/* --------------------------------------------------------------------------
   9. OVERLINE / BADGE
   -------------------------------------------------------------------------- */
.overline {
  display: inline-block;
  background: rgba(5,10,205,.08);
  color: var(--blue-600);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11px;
  padding: 7px 14px;
  border: 1px solid rgba(5,10,205,.22);
  border-radius: var(--radius-pill);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
/* Sobre fundo azul a pílula ganha tinta vermelha — acento estratégico da marca */
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark) .overline {
  background: rgba(237,50,55,.22);
  color: #fff;
  border-color: rgba(237,50,55,.50);
}
.overline.green { background: var(--blue-100); color: var(--blue-700); border-color: var(--border-mid); }
.overline.red   { background: rgba(237,50,55,.22);  color: #fff; border-color: rgba(237,50,55,.50); }

.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  line-height: 1.6;
}
.badge-blue   { background: var(--action); color: #fff; }
.badge-red    { background: var(--accent-strong); color: #fff; }
.badge-green  { background: var(--blue-700); color: #fff; }
.badge-dark   { background: var(--primary-mid); color: var(--text-light); }
.badge.royal  { background: linear-gradient(135deg, var(--blue-600), var(--blue-500)); color: #fff; }

/* --------------------------------------------------------------------------
   10. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  background-image:
    var(--hero-glow-top),
    var(--hero-glow-bot);
  color: #fff;
  text-align: center;
  padding: 84px var(--sp-2) var(--sp-9);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }
.hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -1px;
  transform: translateX(-50%);
  width: min(560px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
}
.hero h1 {
  color: #fff;
  max-width: 860px;
  margin: var(--sp-2) auto var(--sp-2);
  font-size: 34px;
}
.hero .sub {
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto var(--sp-4);
  font-size: var(--text-md);
  line-height: 1.75;
}
.hero .actions { margin-top: var(--sp-3); }

/* Hero interno (páginas internas — fundo menos carregado) */
.hero-light {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  padding: var(--sp-8) var(--sp-2) var(--sp-7);
}

/* Hero com grid (texto + imagem) */
.hero-split { text-align: left; }
.hero-split .hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: center;
}

/* --------------------------------------------------------------------------
   11. TRUSTBAR / STATS
   -------------------------------------------------------------------------- */
.trustbar { background: var(--light-bg); padding: var(--sp-5) 0; }
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2);
}
.trust-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-2);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}
.trust-item:hover { transform: translateY(-3px); border-color: rgba(5,10,205,.28); box-shadow: var(--card-shadow-hover); }
.trust-item .trust-icon { font-size: 24px; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 12px; background: linear-gradient(135deg, rgba(5,10,205,.14), rgba(5,10,205,.05)); border: 1px solid rgba(5,10,205,.18); border-radius: 14px; }
.trust-item .stat-num {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--action);
  display: block;
  margin-bottom: 4px;
}
.trust-item p { font-weight: 600; color: var(--primary); margin-top: 4px; font-size: var(--text-sm); line-height: 1.4; }
.trust-item small { color: var(--text-muted); font-weight: 400; display: block; margin-top: 2px; font-size: var(--text-xs); }

/* --------------------------------------------------------------------------
   12. SEÇÕES
   -------------------------------------------------------------------------- */
.section          { padding: var(--sp-7) 0; }
.section.alt      { background: var(--light-bg); }
.section.dark     { background: var(--section-dark-bg); position: relative; }
.section.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--section-glow);
  pointer-events: none;
}
.section.dark > .container { position: relative; z-index: 1; }
.section.dark-deep { background: var(--dark-footer); }
.section.dark h2,
.section.dark h3,
.section.dark h4  { color: #fff; }
.section.dark p   { color: var(--text-light); }
.section.dark-deep h2,
.section.dark-deep h3 { color: #fff; }
.section.dark-deep p  { color: var(--text-light); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-5);
}
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p  { font-size: var(--text-md); color: var(--text-muted); }

/* --------------------------------------------------------------------------
   13. GRID / CARDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }

.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-4);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  color: var(--primary);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(237,50,55,.65), transparent);
  opacity: .45;
  transition: opacity var(--transition-slow);
}
a.card:hover {
  text-decoration: none;
  transform: translateY(-5px);
  border-color: rgba(196,39,44,.38);
  box-shadow: var(--card-shadow-hover);
}
a.card:hover::before { opacity: 1; }
.card .icon {
  font-size: 24px;
  margin-bottom: var(--sp-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(5,10,205,.12), rgba(5,10,205,.04));
  border: 1px solid rgba(5,10,205,.18);
  border-radius: 14px;
}
.card h3 { margin-bottom: var(--sp-1); }
.card p  { font-size: var(--text-sm); }
.card .card-badge {
  display: inline-block;
  margin-bottom: var(--sp-1);
}
.card-highlight {
  border-color: var(--action);
  border-width: 2px;
}
.card-dark {
  background: var(--primary-mid);
  border-color: rgba(255,255,255,.16);
  color: #fff;
}
.card-dark h3 { color: #fff; }
.card-dark p  { color: var(--text-light); }
.card-dark::before { background: linear-gradient(90deg, transparent, rgba(109,146,219,.7), transparent); }

/* Card de formato com destaque "Mais Popular" */
.format-card { position: relative; }
.format-card .format-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--action);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   14. PERFIS (Para quem é)
   -------------------------------------------------------------------------- */
.profiles-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-2); }
.profile-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--primary);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.profile-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); text-decoration: none; }
.profile-card .profile-icon { font-size: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: linear-gradient(135deg, rgba(5,10,205,.14), rgba(5,10,205,.05)); border: 1px solid rgba(5,10,205,.18); border-radius: 14px; }
.profile-card h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.profile-card p  { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   15. FAQ (details/summary nativo)
   -------------------------------------------------------------------------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-1); max-width: 760px; margin-inline: auto; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  gap: var(--sp-2);
  transition: background var(--transition);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--action);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(5,10,205,.3); box-shadow: var(--card-shadow-hover); }
.faq-item summary:hover { background: var(--light-bg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p {
  padding: var(--sp-2) var(--sp-3) var(--sp-3);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   16. TIMELINE (Intercâmbio)
   -------------------------------------------------------------------------- */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(5,10,205,.55), rgba(5,10,205,.12));
}
.tl-item {
  display: flex;
  gap: var(--sp-3);
  position: relative;
  margin-bottom: var(--sp-5);
}
.tl-item:last-child { margin-bottom: 0; }
.tl-year {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--text-xs);
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px -6px rgba(5,10,205,.55);
}
.tl-item h3 { font-size: var(--text-md); margin-bottom: 6px; }
.tl-item p  { font-size: var(--text-sm); }

/* --------------------------------------------------------------------------
   17. EXAMES (tab groups)
   -------------------------------------------------------------------------- */
.exam-group { margin-bottom: var(--sp-5); }
.exam-group-title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-1);
  border-bottom: 3px solid var(--action);
}
.exam-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
}
.exam-level {
  display: inline-block;
  background: var(--action);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-1);
}

/* --------------------------------------------------------------------------
   18. TABELA COMPARATIVA (Formatos)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-card); border: 1px solid var(--border); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  background: var(--card-bg);
}
.compare-table th {
  background: var(--primary);
  color: #fff;
  padding: var(--sp-2) var(--sp-2);
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 600;
}
.compare-table td {
  padding: var(--sp-2) var(--sp-2);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--light-bg); }
.compare-table .check { color: var(--action); font-size: var(--text-md); }
.compare-table .cross { color: var(--accent-strong); }

/* --------------------------------------------------------------------------
   19. FORMULÁRIO
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-2); }
.form-group { display: grid; gap: 6px; }
.form label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: var(--card-bg);
  color: var(--primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.form input:focus,
.form select:focus,
.form textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(5,10,205,.15);
}
.form input.error,
.form textarea.error,
input.error,
textarea.error {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(196,39,44,.12);
}
.form-error { color: var(--accent-strong); font-size: var(--text-xs); font-weight: 500; margin-top: 4px; display: none; }
.form-error.visible { display: block; }
.form-success {
  display: none;
  background: rgba(5,10,205,.06);
  border: 1.5px solid rgba(5,10,205,.35);
  border-radius: var(--radius-btn);
  padding: var(--sp-3);
  color: var(--blue-700);
  font-weight: 600;
  text-align: center;
}
.form-success.visible { display: block; }

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--dark-footer);
  color: var(--text-light);
  padding: var(--sp-7) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-4) var(--sp-3);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.site-footer a {
  color: var(--text-light);
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
  font-size: var(--text-sm);
  min-width: 0;
  overflow-wrap: anywhere;
  transition: color var(--transition);
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-light);
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--action); color: #fff; }

/* --------------------------------------------------------------------------
   21. WHATSAPP FLUTUANTE
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--conversion);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-wa);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.1); text-decoration: none; box-shadow: 0 12px 32px rgba(22,163,74,.45); }
.wa-float svg  { width: 30px; height: 30px; fill: #fff; }

/* --------------------------------------------------------------------------
   23. SECTION CTA FINAL
   -------------------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; max-width: 680px; margin-inline: auto; }
.cta-final p  { color: var(--text-light); max-width: 560px; margin: var(--sp-2) auto 0; }
.cta-final .actions { margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   24. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-light);
  margin-bottom: var(--sp-2);
}
.breadcrumb a { color: var(--text-light); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.breadcrumb span { color: var(--text-xlight); }

/* --------------------------------------------------------------------------
   25. PROFESSORAS
   -------------------------------------------------------------------------- */
.teacher-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-3);
  box-shadow: var(--shadow-soft);
}
.teacher-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--action-light);
  border: 3px solid var(--action);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.teacher-card h3 { font-size: var(--text-md); margin-bottom: 4px; }
.teacher-card p  { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.teacher-card .teacher-role {
  color: var(--action);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
/* Accordeon "Conheça a professora" — nativo (details/summary, sem JS) */
.teacher-more { margin-top: var(--sp-1); }
.teacher-more summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--action);
  list-style: none;
  transition: color var(--transition);
}
.teacher-more summary::-webkit-details-marker { display: none; }
.teacher-more summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 500;
  color: var(--action);
  transition: transform var(--transition);
}
.teacher-more[open] summary { color: var(--accent-strong); }
.teacher-more[open] summary::after { transform: rotate(45deg); }
.teacher-more summary:hover { color: var(--accent-strong); }
.teacher-more summary:hover::after { color: var(--accent-strong); }
.teacher-creds {
  margin: var(--sp-2) 0 0;
  padding-left: 2px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.teacher-creds li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.teacher-creds li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--action);
  font-weight: 700;
}
/* Nota discreta da equipe administrativa */
.team-note {
  margin-top: var(--sp-3);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.team-note strong { color: var(--primary); }

/* Grid próprio das professoras: 1/2/3 colunas conforme a largura */
.grid.grid-3.teacher-grid { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid.grid-3.teacher-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid.grid-3.teacher-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   26. CHECK-LIST (benefícios)
   -------------------------------------------------------------------------- */
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-1);
  font-size: var(--text-base);
  color: var(--text-muted);
}
.check-list li::before {
  content: '✓';
  color: var(--action);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
/* Sobre fundo azul o tique passa a vermelho claro (o vermelho puro não tem contraste) */
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark) .check-list li::before {
  color: var(--red-300);
}
/* Links (não botões) sobre fundo azul/navy — hover em vermelho claro legível */
:is(.hero, .cta-final, .section.dark, .section.dark-deep, .card-dark, .site-footer) a:not(.btn):hover {
  color: var(--red-300);
}

/* --------------------------------------------------------------------------
   27. NÚMERO + LABEL (processo)
   -------------------------------------------------------------------------- */
.step-card { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-inline: auto;
  margin-bottom: var(--sp-2);
  box-shadow: 0 8px 22px -8px rgba(5,10,205,.55);
}

/* --------------------------------------------------------------------------
   28. BREAKPOINTS (mobile-first → escalando)
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .profiles-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  h3 { font-size: 20px; }

  .hero   { padding: var(--sp-9) var(--sp-3) var(--sp-9); }
  .hero h1 { font-size: 50px; }
  .section { padding: var(--sp-9) 0; }

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

  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
  .profiles-grid { grid-template-columns: repeat(3, 1fr); }

  .timeline::before { left: 32px; }
  .tl-year { width: 64px; height: 64px; font-size: var(--text-sm); }
}

@media (min-width: 1024px) {
  h1 { font-size: 52px; }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }
  .hero h1 { font-size: 58px; }

  /* Header desktop: menu inline (zera o modo gaveta do mobile) */
  .nav-toggle, .nav-head, .nav-cta, .nav-overlay { display: none !important; }
  .main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 0 var(--sp-3);
    position: static;
    transform: none;
    visibility: visible;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transition: none;
    z-index: auto;
  }
  .main-nav a:not(.btn) {
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 8px 10px;
    width: auto;
    gap: 0;
    border-radius: var(--radius-btn);
    border: none !important;
    display: inline-flex;
    justify-content: flex-start;
    box-shadow: none;
    transition: color var(--transition), background var(--transition);
  }
  .main-nav a:not(.btn):hover { color: var(--blue-600); background: rgba(5,10,205,.06); text-decoration: none; }
  .main-nav a:not(.btn).active { color: var(--blue-600); background: rgba(5,10,205,.08); box-shadow: inset 0 -2px 0 var(--red-600); border-radius: 6px 6px 0 0; }
  /* Itens dos dropdowns descem em navy — texto claro, hover com indicador vermelho */
  .main-nav .dropdown-menu a:not(.btn),
  .main-nav .dropdown-submenu a:not(.btn) { color: var(--text-light); box-shadow: none; }
  .main-nav .dropdown-menu a:not(.btn):hover,
  .main-nav .dropdown-submenu a:not(.btn):hover {
    color: #fff;
    background: rgba(255,255,255,.10);
    box-shadow: inset 3px 0 0 var(--red-300);
  }
  .main-nav .dropdown-menu a:not(.btn).active,
  .main-nav .dropdown-submenu a:not(.btn).active { color: #fff; box-shadow: inset 3px 0 0 var(--red-300); }

  .header-actions { display: flex !important; gap: var(--sp-1); }

  /* Submenus voltam a ser dropdowns absolutos (sem accordion/altura travada) */
  .dropdown-menu, .dropdown-submenu { max-height: none !important; overflow: visible !important; }
  .dropdown > a::after { content: ' ▾'; width: auto; height: auto; margin-left: 0; border: 0; transform: none; }
  .dropdown-sub .sub-caret, .dropdown-sub.open .sub-caret { transform: none; }

  .dropdown { position: relative; width: auto; }
  .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important; left: 0 !important;
    background: var(--dark-footer) !important;
    min-width: 200px !important;
    padding: var(--sp-1) 0 !important; padding-left: 0 !important;
    border-radius: 0 0 var(--radius-btn) var(--radius-btn) !important;
    box-shadow: var(--shadow-hover) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
  }
  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu { display: block !important; }
  /* Ponte invisível para cobrir o gap de 8px entre o item pai e o menu —
     sem isso o hover se perde na travessia e o submenu nunca é clicável */
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px; left: 0; right: 0;
    height: 8px;
  }
  .dropdown-menu a {
    padding: 11px 16px !important;
    font-size: var(--text-sm) !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
  }
  .dropdown-menu a:last-child { border-bottom: none !important; }

  /* Sub-níveis (nível 3) — flyout lateral */
  .dropdown-sub { position: relative; }
  .dropdown-sub > a.has-children {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding-right: 24px !important;
  }
  .dropdown-sub .sub-caret { font-size: 14px; color: var(--text-light); transition: transform .2s; }
  .dropdown-submenu {
    display: none !important; position: absolute !important;
    top: -8px; left: 100%;
    background: var(--dark-footer) !important;
    min-width: 210px !important; padding: 6px 0 !important;
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0 !important;
    box-shadow: var(--shadow-hover) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-left: 2px solid var(--action) !important;
  }
  .dropdown-sub:hover .dropdown-submenu,
  .dropdown-sub:focus-within .dropdown-submenu { display: block !important; }
  .dropdown-submenu a { padding: 11px 16px !important; white-space: nowrap; }

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

  .hero-split .hero-inner { grid-template-columns: 1fr 1fr; }

  .profiles-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 1280px) {
  .wa-float { right: 24px; bottom: 24px; }
}

/* --------------------------------------------------------------------------
   29. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   30. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .wa-float, .nav-toggle, .btn { display: none !important; }
  .lightbox { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero { background: #fff; color: #000; padding: 24pt 0; }
  .hero h1 { color: #000; }
}

/* --------------------------------------------------------------------------
   31. v4 — ÍCONES SVG & AJUSTES DE PRODUTO
   (Páginas de curso como ferramentas de decisão · footer sem emojis)
   -------------------------------------------------------------------------- */

/* Ícones SVG dentro de spans .icon / .profile-icon */
.card .icon svg,
.profile-card .profile-icon svg,
.teacher-avatar svg {
  width: 26px;
  height: 26px;
  fill: var(--action);
  display: block;
}
.card-dark .icon svg { fill: var(--blue-300); }
.icon .btn-icon { display: inline-flex; align-items: center; gap: 8px; }

/* Rodapé — redes sociais em SVG */
.footer-social a svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}
.site-footer a { display: flex; align-items: center; gap: 8px; }
.site-footer h4 { display: block; }

/* Chips de prova (hero interno) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  justify-content: center;
  margin-top: var(--sp-3);
}
.chip-row .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text-xlight);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
  white-space: nowrap;
}
.chip-row .chip svg {
  width: 14px;
  height: 14px;
  fill: var(--blue-300);
  flex-shrink: 0;
}

/* Check-list em duas colunas (benefícios) */
.check-list.two-col { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
}

/* Tabela comparativa — coluna fixa à esquerda (scroll horizontal no mobile) */
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}
.compare-table th:first-child {
  background: var(--primary);
  box-shadow: 1px 0 0 rgba(255,255,255,.14);
}
.compare-table td:first-child {
  background: var(--card-bg);
  box-shadow: 1px 0 0 var(--border);
  font-weight: 600;
  color: var(--primary);
}
.compare-table tr:nth-child(even) td:first-child { background: var(--light-bg); }

/* Hero interno — breadcrumb alinhado à esquerda */
.hero .breadcrumb { justify-content: flex-start; }

/* Título de seção com âncora suave */
section[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-2)); }

/* --------------------------------------------------------------------------
   32. v5 — HERO SPLIT COM FOTOS REAIS, DESTAQUES DE INTERCÂMBIO, GALERIA E
   ANIMAÇÕES DE ENTRADA (atentos a prefers-reduced-motion)
   -------------------------------------------------------------------------- */

/* Hero em duas colunas (texto + foto real do cliente) */
.hero-split { text-align: left; padding-bottom: var(--sp-8); }
.hero-split .hero-inner { display: grid; gap: var(--sp-6); align-items: center; }
.hero-copy .overline { margin-bottom: var(--sp-2); }
.hero-copy h1 { margin-inline: 0; }
.hero-copy .sub { margin-inline: 0; }
.hero-split .actions,
.hero-split .chip-row { justify-content: flex-start; }

/* Moldura da foto principal + cards flutuantes (vidro) */
.hero-media { position: relative; width: 100%; }
.hero-shot {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-modal);
  background: var(--primary-mid);
}
.hero-shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 12px 16px;
  background: rgba(43,62,84,.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  color: #fff;
}
.hero-float .f-ic {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5,10,205,.38), rgba(5,10,205,.14));
  border: 1px solid rgba(5,10,205,.3);
}
.hero-float .f-ic svg { width: 22px; height: 22px; fill: var(--blue-300); display: block; }
.hero-float strong { display: block; color: #fff; font-family: var(--font-head); font-size: var(--text-sm); font-weight: 700; line-height: 1.25; }
.hero-float small { color: var(--text-light); font-size: var(--text-xs); line-height: 1.3; }
.hero-float.f1 { top: 18px; left: -20px; }
.hero-float.f2 { bottom: 22px; left: 26px; }
.hero-float.f3 { top: 8%; right: -18px; }
@media (max-width: 1023px) {
  .hero-float.f1 { left: 12px; }
  .hero-float.f3 { right: 12px; }
  .hero-float.f2 { left: 14px; bottom: 12px; }
}

/* Destaque de intercâmbio (home) — colagem com fotos reais */
.exchange-feature { text-align: left; }
.exchange-grid { display: grid; gap: var(--sp-6); align-items: center; }
.exchange-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 176px;
  gap: 12px;
}
.exchange-media figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--primary-mid);
  border: 1px solid rgba(255,255,255,.06);
}
.exchange-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.exchange-media .ph-tall { grid-row: span 2; }
.exchange-feature h2 { color: #fff; margin-bottom: var(--sp-2); }
.exchange-feature p  { color: var(--text-light); margin-bottom: var(--sp-3); }
.section.dark .check-list li { color: var(--text-light); }
.section.dark .check-list li::before { color: var(--red-300); }
.exchange-feature .actions { justify-content: flex-start; margin-top: var(--sp-3); }

/* Cards de destino (páginas de intercâmbio) */
.trip-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  color: var(--primary);
  text-decoration: none;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
}
a.trip-card:hover { text-decoration: none; transform: translateY(-5px); border-color: rgba(5,10,205,.32); box-shadow: var(--card-shadow-hover); }
.trip-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--primary-mid); }
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.trip-card:hover .trip-media img { transform: scale(1.05); }
.trip-body { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.trip-year {
  display: inline-block;
  background: var(--action-light);
  color: var(--action);
  font-family: var(--font-head);
  font-size: var(--text-xs); font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-pill);
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: var(--sp-1);
}
.trip-body h3 { font-size: var(--text-lg); margin-bottom: 4px; }
.trip-body p  { font-size: var(--text-sm); }

/* Galeria de fotos — masonry responsivo */
.gallery-masonry { columns: 2; column-gap: var(--sp-2); }
.gallery-masonry .photo-item {
  break-inside: avoid;
  position: relative;
  margin-bottom: var(--sp-2);
  border-radius: 14px;
  overflow: hidden;
  background: var(--primary-mid);
}
.gallery-masonry .photo-item img { width: 100%; height: auto; display: block; }
.gallery-masonry .photo-item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 30px 14px 10px;
  background: linear-gradient(180deg, transparent, rgba(43,62,84,.9));
  color: #fff;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .04em;
  pointer-events: none;
}

/* Filtros da galeria de intercâmbio */
.gallery-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; margin-bottom: var(--sp-4); }
.gallery-filters button {
  appearance: none; cursor: pointer; border: 1px solid var(--primary-mid);
  background: transparent; color: var(--text-muted); font-family: inherit; font-weight: 600;
  font-size: var(--text-sm); padding: 9px 18px; border-radius: var(--radius-pill);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.gallery-filters button:hover { border-color: var(--action); color: var(--action); }
.gallery-filters button.active { background: var(--action); border-color: var(--action); color: #fff; }
.photo-item.is-filtered { display: none; }

/* --------------------------------------------------------------------------
   GALERIA — AMPLIAR (lightbox)
   O link envolve a miniatura e aponta para o proprio arquivo em tamanho real:
   sem JS ele abre a foto, com JS o main.js intercepta e abre o dialogo. Por
   isso nao ha botao "morto" na pagina, e o teclado/leitor de tela ja recebem
   a semantica de link natively.
   -------------------------------------------------------------------------- */
.gallery-masonry .photo-zoom {
  display: block;
  position: relative;
  cursor: zoom-in;
  line-height: 0;
}
.gallery-masonry .photo-zoom::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10, 16, 36, .34);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-masonry .photo-zoom::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  z-index: 1;
  background-color: rgba(255, 255, 255, .92);
  /* lupa desenhada em CSS para nao depender de arquivo de icone */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338446A' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(10, 16, 36, .32);
  opacity: 0;
  transform: scale(.82);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-masonry .photo-zoom:hover::after,
.gallery-masonry .photo-zoom:focus-visible::after { opacity: 1; }
.gallery-masonry .photo-zoom:hover::before,
.gallery-masonry .photo-zoom:focus-visible::before { opacity: 1; transform: none; }
.gallery-masonry .photo-zoom:focus-visible { outline: 3px solid var(--red-300); outline-offset: -3px; }
/* Em telas de toque o :hover gruda depois do toque e a lupa ficaria marcada
   numa miniatura que já foi fechada — o foco de teclado continua valendo. */
@media (hover: none) {
  .gallery-masonry .photo-zoom:hover::after,
  .gallery-masonry .photo-zoom:hover::before { opacity: 0; }
  .gallery-masonry .photo-zoom:hover::before { transform: scale(.82); }
}

/* Diálogo */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;                 /* acima do header (100) e do WhatsApp (150) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 16, 36, .95);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: 0;
  padding: 0;
  cursor: zoom-out;
}
.lightbox-figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  max-width: 100%;
  max-height: 100%;
  padding: clamp(var(--sp-3), 5vh, var(--sp-5)) clamp(var(--sp-3), 5vw, var(--sp-5));
  pointer-events: none;         /* só a imagem e os botões recebem clique */
}
.lightbox-img {
  position: relative;
  z-index: 0;
  display: block;
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  background: var(--blue-900);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
  pointer-events: auto;
}
.lightbox-caption {
  color: var(--text-xlight);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
}
.lightbox-counter {
  color: var(--text-light);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  text-align: center;
  margin-top: -8px;
}
/* Os controles são filhos do diálogo, não da figura: assim as setas ficam
   presas às bordas da tela em vez de grudarem na largura da foto. */
.lightbox-btn {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px; min-width: 48px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.lightbox-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-btn:hover { background: rgba(255, 255, 255, .24); border-color: #fff; }
.lightbox-btn:focus-visible { outline: 2px solid var(--red-300); outline-offset: 2px; }
.lightbox-close { top: clamp(10px, 2vw, 20px); right: clamp(10px, 2vw, 20px); }
.lightbox-prev, .lightbox-next { top: 50%; margin-top: -24px; }
.lightbox-prev { left: clamp(10px, 2vw, 24px); }
.lightbox-next { right: clamp(10px, 2vw, 24px); }
.lightbox.is-open .lightbox-figure { animation: lightbox-in .28s ease both; }
@keyframes lightbox-in {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: none; }
}

/* Entra/sai com a foto, em vez de sumir junto com o diálogo. */
.lightbox:not(.is-open) .lightbox-backdrop { opacity: 0; transition: opacity .2s ease; }
.lightbox.is-open .lightbox-backdrop { opacity: 1; transition: opacity .2s ease; }

body.is-lightbox-open { overflow: hidden; }
body.is-lightbox-open .wa-float { opacity: 0; visibility: hidden; pointer-events: none; }

/* Em telas estreitas as setas saem de cena: a navegacao e por swipe, e o
   teclado (setas) continua valendo. O botao de fechar permanece. */
@media (max-width: 767.98px) {
  .lightbox-prev, .lightbox-next { display: none; }
  .lightbox-img { max-height: 72vh; }
}
/* Com as setas visiveis a foto recebe recuos laterais fixos: sem isso uma
   imagem deitada encostaria nelas. 84px = botao (48) + distancia (24) + folga. */
@media (min-width: 768px) {
  .lightbox-figure { padding-left: 84px; padding-right: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox.is-open .lightbox-figure { animation: none; }
  .gallery-masonry .photo-zoom::after,
  .gallery-masonry .photo-zoom::before { transition: none; }
}

/* Reveal on scroll (respeita prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-group.in-view > * { opacity: 1; transform: none; }
.reveal-group.in-view > *:nth-child(2) { transition-delay: .08s; }
.reveal-group.in-view > *:nth-child(3) { transition-delay: .16s; }
.reveal-group.in-view > *:nth-child(4) { transition-delay: .24s; }
.reveal-group.in-view > *:nth-child(5) { transition-delay: .32s; }
.reveal-group.in-view > *:nth-child(6) { transition-delay: .40s; }

/* Escala desktop */
@media (min-width: 768px) {
  .exchange-media { grid-auto-rows: 220px; }
  .gallery-masonry { columns: 3; column-gap: var(--sp-3); }
  .gallery-masonry .photo-item { margin-bottom: var(--sp-3); }
}
@media (min-width: 1024px) {
  .hero-split .hero-inner { grid-template-columns: 1.05fr 1fr; gap: var(--sp-7); }
  .exchange-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
}
@media (min-width: 1280px) {
  .gallery-masonry { columns: 4; }
}

/* --------------------------------------------------------------------------
   33. HERO SLIDER — carrossel editorial (home)
   Fotografia real do cliente + overlay institucional + tipografia responsiva
   -------------------------------------------------------------------------- */
.hero-slider {
  padding: 0;
  background: var(--blue-900);
  text-align: left;
  overflow: hidden;
}
.hero-slider::after { content: none; }

.slider {
  position: relative;
  display: grid;
  min-height: 560px;
}
.slider .slide {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.slider .slide.is-active { z-index: 2; opacity: 1; visibility: visible; }

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.slider .slide.is-active .slide-bg { animation: hero-dolly 9s ease-out forwards; }
@keyframes hero-dolly {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Overlays institucionais (azul-ardósia + navy) — nunca apagam a foto.
   Intensidade calibrada por medicao de contraste real sobre a foto renderizada:
   o piso de luminancia sob o texto precisa ficar abaixo de ~0.16 para o
   texto branco/claro manter 4.5:1 (WCAG AA) mesmo sobre as fotos mais claras. */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.ov-l { background:
  linear-gradient(90deg,  rgba(10,16,36,.95) 0%, rgba(10,16,36,.93) 42%, rgba(10,16,36,.74) 70%, rgba(10,16,36,.34) 100%),
  linear-gradient(180deg, rgba(43,62,84,.30) 0%, rgba(43,62,84,.06) 26%, rgba(18,25,50,.80) 100%); }
.ov-r { background:
  linear-gradient(270deg, rgba(10,16,36,.95) 0%, rgba(10,16,36,.93) 42%, rgba(10,16,36,.74) 70%, rgba(10,16,36,.34) 100%),
  linear-gradient(180deg, rgba(43,62,84,.30) 0%, rgba(43,62,84,.06) 26%, rgba(18,25,50,.80) 100%); }
.ov-c { background:
  linear-gradient(180deg, rgba(10,16,36,.92) 0%, rgba(10,16,36,.86) 34%, rgba(10,16,36,.88) 56%, rgba(10,16,36,.96) 100%); }
/* Slide com criacao densa nas quinas: escurece topo, faixa central e base,
   mantendo o texto HTML do slide com contraste garantido. */
.ov-band { background:
  linear-gradient(180deg, rgba(10,16,36,.93) 0%, rgba(10,16,36,.88) 18%, rgba(10,16,36,.88) 32%, rgba(10,16,36,.90) 68%, rgba(10,16,36,.94) 86%, rgba(10,16,36,.96) 100%); }

/* Conteúdo do slide */
.slide-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: clamp(84px, 11vh, 150px) 0 clamp(96px, 9vh, 128px);
}
.hero-slider .slide-content h1,
.hero-slider .slide-content h2 {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: var(--track-display);
  line-height: 1.1;
  max-width: 840px;
  margin: var(--sp-2) 0 0;
}
.hero-slider .slide-content h1 { font-size: clamp(32px, 5.6vw, 64px); }
.hero-slider .slide-content h2 { font-size: clamp(29px, 4.9vw, 56px); }
.hero-slider .slide-content .sub {
  color: #e9f0ff;
  font-size: clamp(15px, 1.55vw, 18px);
  line-height: 1.7;
  max-width: 640px;
  margin: var(--sp-2) 0 0;
}
/* O bloco e centralizado pelo .slide (align-items:center). Nenhum slide recebe
   padding-top unilateral: os criativos 02 e 03 foram conferidos por OCR e nao
   tem texto embutido, entao nada impede o centro optico igual ao dos demais. */
.hero-slider .slide-content .actions { margin-top: var(--sp-3); justify-content: flex-start; }
.hero-slider .slide .overline { margin-top: 0; }

/* Composições independentes por slide.
   O alinhamento a direita e apenas tipografico: o .container continua sendo o
   mesmo grid de --container-max dos demais slides (centralizado por
   margin-inline:auto), entao as quatro composicoes comecam e terminam na mesma
   coluna do restante do site. Antes o slide 2 usava flex + 760px + 5vw, o que
   jogava o texto 64px para fora da grade. */
.hero-slider .slide-r { text-align: right; }
.hero-slider .slide-r .slide-content .sub,
.hero-slider .slide-r .slide-content .actions { margin-left: auto; }
.hero-slider .slide-r .slide-content .actions { justify-content: flex-end; }
.hero-slider .slide-c { text-align: center; }
.hero-slider .slide-c .slide-content .container { max-width: 860px; }
.hero-slider .slide-c .slide-content .sub,
.hero-slider .slide-c .slide-content .actions { margin-inline: auto; }
.hero-slider .slide-c .slide-content .actions { justify-content: center; }

/* Chips (slide de cursos) */
.slide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: var(--sp-3) 0 0;
  justify-content: flex-start;
}
.slide-chips li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(8,13,30,.62);
  border: 1px solid rgba(255,255,255,.30);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* Entrada escalonada do conteúdo no slide ativo */
.hero-slider .slide-content .container > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.hero-slider .slide.is-active .slide-content .container > * { opacity: 1; transform: none; }
.hero-slider .slide.is-active .slide-content .container > *:nth-child(1) { transition-delay: .10s; }
.hero-slider .slide.is-active .slide-content .container > *:nth-child(2) { transition-delay: .20s; }
.hero-slider .slide.is-active .slide-content .container > *:nth-child(3) { transition-delay: .30s; }
.hero-slider .slide.is-active .slide-content .container > *:nth-child(4) { transition-delay: .40s; }
.hero-slider .slide.is-active .slide-content .container > *:nth-child(5) { transition-delay: .50s; }

/* Navegação numérica 01…04 */
.slider-chrome {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  pointer-events: none;
}
.slider-chrome .container { pointer-events: auto; }
.slider-nav { display: flex; }
.slider-dot {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  padding: 12px 10px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.55);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  position: relative;
  transition: color var(--transition);
}
.slider-dot:hover { color: #fff; }
.slider-dot::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  height: 3px;
  border-radius: 3px;
  background: transparent;
  transition: background var(--transition-slow);
}
.slider-dot.is-current { color: #fff; }
.slider-dot.is-current::after { background: var(--red-600); }
.slider-dot:focus-visible { outline: 2px solid var(--red-300); outline-offset: 2px; border-radius: 6px; }

/* Setas (desktop) */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 21;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.30);
  background: rgba(43,62,84,.38);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.slider-arrow svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.slider-arrow.prev { left: var(--sp-3); }
.slider-arrow.next { right: var(--sp-3); }
.slider-arrow:hover { background: rgba(43,62,84,.68); border-color: #fff; }
.slider-arrow:active { transform: translateY(-50%) scale(.96); }
.slider-arrow:focus-visible { outline: 2px solid var(--red-300); outline-offset: 2px; }

@media (min-width: 768px) {
  .slider { min-height: clamp(620px, 78svh, 900px); }
}

/* Mobile: sem setas — swipe + indicadores */
@media (max-width: 1023.98px) {
  .slider-arrow { display: none; }
}

/* Mobile: slide de destaque à direita passa a alinhar à esquerda p/ legibilidade.
   O .container nao e tocado: ele ja e centralizado por margin-inline:auto e
   usa o mesmo gutter dos outros slides, entao a coluna continua alinhada. */
@media (max-width: 767.98px) {
  .hero-slider .slide-r { text-align: left; }
  .hero-slider .slide-r .slide-content .sub,
  .hero-slider .slide-r .slide-content .actions { margin-left: 0; }
  .hero-slider .slide-r .slide-content .actions { justify-content: flex-start; }

  /* No mobile o texto ocupa a largura toda e a foto aparece por tras: o scrim
     vira uniforme e mais forte, senao o contraste do .sub cai abaixo de 4.5:1. */
  .slide-overlay.ov-l,
  .slide-overlay.ov-r,
  .slide-overlay.ov-c,
  .slide-overlay.ov-band {
    background: linear-gradient(180deg, rgba(10,16,36,.90) 0%, rgba(10,16,36,.92) 45%, rgba(10,16,36,.96) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-slider .slide { transition: none; }
  .slider .slide.is-active .slide-bg { animation: none; }
  .hero-slider .slide-content .container > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
