/* ============================================================================
   CRIARTE · COLÉGIO RECREIO — Folha de estilo principal
   ----------------------------------------------------------------------------
   Paleta oficial  : Azul #23408E · Amarelo #F9B233 · Vermelho #E52330
                     Areia #F6F1E7 · Grafite #333333
   Tipografia      : Baloo 2 (títulos) · Poppins (corpo) · Caveat (notas à mão)
   Organização     : 01 Tokens & base        08 Capítulo Amarelo (Infantil)
                     02 Utilidades           09 Capítulo Vermelho (Fund. I)
                     03 Progresso & Navbar   10 Capítulo Azul (Fund. II)
                     04 Hero (1ª tela)       11 Para você · 12 Números
                     05 Banner marquee       13 Proposta · 14 Diferenciais
                     06 Jornada (timeline)   15 Espaços · 16 CTA final
                     07 Capítulos (base)     17 Footer · 18 Keyframes
                                             19 Acessibilidade & Responsivo
   ========================================================================== */

/* ============================== 01 · TOKENS ============================== */
:root {
  /* Cores da marca */
  --azul:           #23408E;
  --azul-escuro:    #16295C;
  --azul-claro:     #92BDDF;
  --azul-tint:      #E9EEF8;
  --amarelo:        #F9B233;
  --amarelo-claro:  #FDE3AE;
  --amarelo-escuro: #D98F0B;
  --vermelho:       #E52330;
  --vermelho-escuro:#B5121E;
  --areia:          #F6F1E7;
  --areia-escura:   #EDE5D4;
  --branco:         #FFFFFF;
  --grafite:        #333333;
  --grafite-suave:  #5A5A66;

  /* Tipografia */
  --f-display: "Baloo 2", system-ui, sans-serif;
  --f-body:    "Poppins", system-ui, sans-serif;
  --f-hand:    "Caveat", cursive;

  /* Ritmo */
  --radius:     22px;
  --radius-sm:  14px;
  --shadow-sm:  0 6px 18px rgba(22, 41, 92, .10);
  --shadow-md:  0 14px 34px rgba(22, 41, 92, .16);
  --shadow-lg:  0 24px 60px rgba(22, 41, 92, .22);
  --nav-h:      78px;
  --ease-out:   cubic-bezier(.22, .8, .3, 1);
  --ease-boing: cubic-bezier(.34, 1.56, .5, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--f-body);
  color: var(--grafite);
  background: var(--areia);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--f-display); }

section[id], div[id], header[id], footer[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

::selection { background: var(--amarelo); color: var(--azul-escuro); }

/* =========================== 02 · UTILIDADES ============================ */
.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: .9rem;
}
.eyebrow--center { text-align: center; }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; position: relative; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }

.section-title {
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08;
  color: var(--azul);
  margin-bottom: .8rem;
}

.section-sub {
  font-size: 1.06rem;
  color: var(--grafite-suave);
  max-width: 640px;
  line-height: 1.75;
}

.caveat {
  font-family: var(--f-hand);
  font-weight: 700;
  color: var(--vermelho);
}

/* Cores de preenchimento p/ SVGs (formas da marca) */
.fill-azul        { fill: var(--azul); }
.fill-vermelho    { fill: var(--vermelho); }
.fill-amarelo     { fill: var(--amarelo); }
.fill-branco      { fill: var(--branco); }
.fill-azul-claro  { fill: var(--azul-claro); }

.shape-ic { flex: none; }

/* Setinha desenhada à mão (assinatura da marca) */
.hand-arrow { width: 74px; height: 38px; color: currentColor; }
.hand-arrow__path,
.hand-arrow__tip { stroke-dasharray: 220; stroke-dashoffset: 0; }
.hand-arrow { animation: notaWiggle 3.2s ease-in-out infinite; transform-origin: left center; }

/* Botões */
.btn-cta {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul-escuro);
  background: var(--amarelo);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .85rem 1.9rem;
  box-shadow: 0 10px 24px rgba(249, 178, 51, .5);
  transition: transform .25s var(--ease-boing), box-shadow .25s, background .25s;
}
.btn-cta:hover, .btn-cta:focus {
  background: #FFC24E;
  color: var(--azul-escuro);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(249, 178, 51, .55);
}
.btn-cta--sm { padding: .55rem 1.25rem; font-size: .95rem; box-shadow: 0 6px 16px rgba(249,178,51,.45); }
.btn-cta--lg { padding: 1.05rem 2.6rem; font-size: 1.2rem; }
.btn-cta--inverse {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 41, 92, .35);
}
.btn-cta--inverse:hover, .btn-cta--inverse:focus {
  background: var(--azul-escuro); color: #fff;
  box-shadow: 0 18px 36px rgba(22, 41, 92, .4);
}

.btn-ghost {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--azul);
  border: 2px solid var(--azul);
  border-radius: 999px;
  padding: .8rem 1.7rem;
  background: transparent;
  transition: transform .25s var(--ease-boing), background .25s, color .25s;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: var(--azul); color: #fff; transform: translateY(-3px);
}

/* Formas geométricas flutuantes (elemento oficial da marca) */
.fshape { position: absolute; display: block; opacity: .9; pointer-events: none; }
.fshape--sq { width: 26px; height: 26px; border-radius: 6px; background: var(--azul); }
.fshape--ci { width: 24px; height: 24px; border-radius: 50%; background: var(--vermelho); }
.fshape--tr {
  width: 0; height: 0; background: none;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 26px solid var(--amarelo);
}

/* Sistema de revelação ao rolar (sem depender de hover) */
.reveal, .reveal-card, .reveal-pop {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.reveal-card { transform: translateY(30px) scale(.96); }
.reveal-pop  { transform: translate(-50%, -30%) scale(.6); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }
.delay-5 { transition-delay: .60s; }
.delay-6 { transition-delay: .72s; }
.in-view.reveal      { opacity: 1; transform: none; }
.in-view.reveal-card { opacity: 1; transform: translateY(0) scale(1); }
.in-view.reveal-pop  { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ==================== 03 · PROGRESSO & NAVBAR =========================== */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 5px; z-index: 1100;
  background: rgba(22, 41, 92, .08);
}
#scrollBar {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--amarelo) 0 33%, var(--vermelho) 33% 66%, var(--azul) 66% 100%);
  background-size: 300px 100%;
  transition: width .12s linear;
}

.site-nav {
  padding: .9rem 0;
  transition: background .3s, box-shadow .3s, padding .3s;
  background: transparent;
}
.site-nav.scrolled {
  background: rgba(255, 253, 247, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 26px rgba(22, 41, 92, .1);
  padding: .55rem 0;
}
.brand-img { height: 34px; width: auto; max-width: min(48vw, 260px); transition: height .3s; }
.site-nav.scrolled .brand-img { height: 30px; }
.brand-img--white { display: none; }

.site-nav .nav-link {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--azul);
  padding: .5rem .8rem !important;
  position: relative;
}
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem;
  height: 3px; border-radius: 3px; background: var(--amarelo);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.site-nav .nav-link:hover::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }
.site-nav .nav-link.active { color: var(--azul-escuro); }

.navbar-toggler { border: 0; display: flex; flex-direction: column; gap: 5px; padding: .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--amarelo); border-radius: 8px; }
.toggler-bar { width: 26px; height: 3px; border-radius: 3px; background: var(--azul); display: block; }

.mobile-menu { background: var(--areia); max-width: 320px; }
.mobile-menu .nav-link { font-family: var(--f-display); font-weight: 700; color: var(--azul); }

/* ========================= 04 · HERO (1ª TELA) ========================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 1.6rem) 0 3rem;
  background:
    radial-gradient(720px 420px at 88% 10%, rgba(146, 189, 223, .20), transparent 60%),
    radial-gradient(600px 400px at 6% 88%, rgba(249, 178, 51, .16), transparent 60%),
    var(--areia);
  overflow: hidden;
}

.hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__shapes .f1 { top: 16%; left: 4%;  animation: drift 11s ease-in-out infinite; }
.hero__shapes .f2 { top: 9%;  left: 44%; animation: drift 13s ease-in-out -3s infinite; }
.hero__shapes .f3 { top: 72%; left: 2%;  animation: drift 12s ease-in-out -6s infinite; }
.hero__shapes .f4 { top: 84%; left: 52%; width: 16px; height: 16px; animation: drift 10s ease-in-out -2s infinite; }
.hero__shapes .f5 { top: 20%; right: 3%; left: auto; width: 18px; height: 18px; animation: drift 14s ease-in-out -8s infinite; }
.hero__shapes .f6 { top: 88%; right: 8%; left: auto; transform: scale(.7); animation: drift 12s ease-in-out -5s infinite; }

/* Painel vermelho que envolve todo o conteúdo do hero */
.hero__panel {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(620px 380px at 92% 8%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(520px 360px at 4% 96%, rgba(0, 0, 0, .10), transparent 60%),
    linear-gradient(160deg, var(--vermelho) 0%, var(--vermelho-escuro) 100%);
  border-radius: 32px;
  padding: clamp(1.8rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.2rem);
  box-shadow: 0 30px 70px rgba(181, 18, 30, .35);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.75fr);
  grid-template-rows: auto auto;
  grid-template-areas:
    "text cards"
    "text extra";
  column-gap: clamp(1.6rem, 3.5vw, 3rem);
  row-gap: clamp(1.2rem, 2.2vw, 1.8rem);
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__text { grid-area: text; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero__cards { grid-area: cards; }
.hero__extra { grid-area: extra; display: flex; flex-direction: column; align-items: center; }

/* Eyebrow e nota manuscrita em branco sobre o vermelho */
.hero .eyebrow { color: rgba(255, 255, 255, .92); }
.hero__note.caveat { color: #fff; }
.hero .hand-arrow { color: #fff; }

.hero__title {
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.04;
  color: #fff;
  margin: .2rem 0 1.1rem;
}

.hero__lead { font-size: 1.09rem; line-height: 1.8; color: rgba(255, 255, 255, .92); max-width: 560px; }
.hero__lead strong { color: #fff; font-weight: 700; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.5rem 0 1.6rem; justify-content: center; }

/* Botão contornado adaptado para fundo vermelho */
.btn-ghost--onred {
  color: #fff; border-color: rgba(255, 255, 255, .8);
}
.btn-ghost--onred:hover, .btn-ghost--onred:focus {
  background: #fff; color: var(--vermelho-escuro); border-color: #fff;
}

.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.badge-check {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff;
  border: 1.5px solid var(--areia-escura);
  border-radius: 999px;
  padding: .45rem 1rem .45rem .55rem;
  font-size: .86rem; font-weight: 600; color: var(--azul-escuro);
  box-shadow: var(--shadow-sm);
}
.badge-check__ic {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--vermelho); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800;
  animation: badgePulse 2.6s ease-in-out infinite;
}
.hero__badges .badge-check:nth-child(2) .badge-check__ic { animation-delay: .4s; }
.hero__badges .badge-check:nth-child(3) .badge-check__ic { animation-delay: .8s; }
.hero__badges .badge-check:nth-child(4) .badge-check__ic { animation-delay: 1.2s; }

/* Cartões da jornada — 3 fotos lado a lado, preenchendo a célula (sem espaço vazio) */
.hero__cards {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(.7rem, 1.4vw, 1.1rem);
  padding-top: 2.6rem;            /* espaço só p/ a nota à mão acima */
}

.hero__note {
  position: absolute; top: 0; left: 1%;
  font-size: 1.4rem; transform: rotate(-4deg);
  display: inline-flex; align-items: flex-start; gap: .3rem;
  color: #fff;
  z-index: 2;
}
.hand-arrow--hero { transform: rotate(28deg) translateY(6px); width: 58px; }

.jcard {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
/* Cartazes oficiais (Educação Infantil · Fund. I · Fund. II): todos entregues em 17:25,
   por isso a proporção fixa mostra o cartaz inteiro — sem recorte de texto. */
.jcard img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 17 / 25;
  object-fit: cover; object-position: 50% 50%;
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
}

/* Legenda em faixa branca, abaixo do cartaz (estilo polaroid) */
.jcard__cap {
  display: flex; flex-direction: column; align-items: center; gap: .18rem;
  padding: .55rem .5rem .5rem;
  text-align: center;
}
.jcard__chip {
  display: inline-block; white-space: nowrap;
  font-family: var(--f-display); font-weight: 700; font-size: .88rem; line-height: 1.2;
  color: #fff; padding: .3rem .95rem; border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}
.jcard__sub { font-size: .72rem; font-weight: 600; color: var(--grafite-suave); line-height: 1.3; }
.jcard--amarelo  .jcard__chip { background: var(--amarelo); color: var(--azul-escuro); }
.jcard--vermelho .jcard__chip { background: var(--vermelho); }
.jcard--azul     .jcard__chip { background: var(--azul); }

/* ====================== 05 · BANNER MARQUEE (a frase) =================== */
.banner-faixa {
  background: var(--amarelo);
  border-block: 4px solid var(--azul-escuro);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.banner-faixa__track {
  display: flex; width: max-content;
  animation: marqueeX 26s linear infinite;
}
.banner-faixa__group { display: flex; align-items: center; flex: none; }
.banner-faixa__txt {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  color: var(--azul-escuro);
  white-space: nowrap;
  padding: 0 1.4rem;
}
.banner-faixa__txt strong { color: var(--vermelho); }
.banner-faixa__shapes { display: inline-flex; gap: .55rem; align-items: center; padding-right: 1.4rem; }
.banner-faixa__shapes .shape-ic { animation: spinSlow 8s linear infinite; }
.banner-faixa__shapes .shape-ic:nth-child(2) { animation-direction: reverse; }

/* ==================== 06 · JORNADA / LINHA DO TEMPO ===================== */
.jornada { background: var(--areia); overflow: hidden; position: relative; }

/* Marca d'água — formas grandes à esquerda, estilo Canva (80% transparente) */
.jornada__watermark {
  position: absolute;
  top: 50%; left: -60px;
  transform: translateY(-50%);
  width: min(46vw, 560px);
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .2;                     /* 80% transparente */
}
.jornada .container-xl { position: relative; z-index: 1; }
.wm { position: absolute; display: block; }
.wm--square {
  top: 6%; left: 4%;
  width: min(20vw, 230px); aspect-ratio: 1;
  background: var(--azul);
  border-radius: 26px;
  transform: rotate(-12deg);
  animation: wmFloatA 16s ease-in-out infinite;
}
.wm--circle {
  bottom: 4%; left: 20%;
  width: min(16vw, 190px); aspect-ratio: 1;
  background: var(--vermelho);
  border-radius: 50%;
  animation: wmFloatB 19s ease-in-out infinite;
}
.wm--triangle {
  top: 34%; left: 40%;
  width: 0; height: 0;
  border-left: min(11vw, 130px) solid transparent;
  border-right: min(11vw, 130px) solid transparent;
  border-bottom: min(19vw, 220px) solid var(--amarelo);
  transform: rotate(10deg);
  animation: wmFloatA 22s ease-in-out -4s infinite;
}

.timeline-stage { position: relative; height: 480px; margin-top: 1rem; }

.timeline-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.timeline-path {
  fill: none;
  stroke: rgba(35, 64, 142, .22);
  stroke-width: 4;
  stroke-dasharray: 2 14;
  stroke-linecap: round;
}
.timeline-path--draw {
  stroke: var(--amarelo);
  stroke-width: 6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-out);
}
.timeline-stage.in-view .timeline-path--draw { stroke-dashoffset: 0; }

.traveler__glow { opacity: .3; animation: travelerPulse 1.6s ease-in-out infinite; transform-origin: center; }

.tnode { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }

.tnode__dot {
  position: relative; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
}
.tnode__dot--vermelho { background: var(--vermelho); }
.tnode__dot--amarelo  { background: var(--amarelo); }
.tnode__dot--azul     { background: var(--azul); }
.tnode__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 2px dashed currentColor; opacity: .45;
  animation: spinSlow 12s linear infinite;
}
.tnode__dot--vermelho::after { color: var(--vermelho); }
.tnode__dot--amarelo::after  { color: var(--amarelo-escuro); }
.tnode__dot--azul::after     { color: var(--azul); }

.tnode__card {
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(100% + 16px);
  width: 208px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: .9rem .95rem 1rem;
  box-shadow: var(--shadow-md);
}
/* Losango indicador (aponta para o nó) */
.tnode__card::before,
.tnode:first-of-type .tnode__card::after,
.tnode:nth-of-type(3) .tnode__card::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 14px; height: 14px; background: #fff;
}
.tnode__card::before { top: -7px; }

/* Nós 1 e 3 ficam na parte baixa/média do palco → card ACIMA (evita colisões) */
.tnode:first-of-type .tnode__card,
.tnode:nth-of-type(3) .tnode__card {
  top: auto; bottom: calc(100% + 16px);
}
.tnode:first-of-type .tnode__card::before,
.tnode:nth-of-type(3) .tnode__card::before { display: none; }
.tnode:first-of-type .tnode__card::after,
.tnode:nth-of-type(3) .tnode__card::after { bottom: -7px; }

/* 1º nó encosta na borda esquerda → card alinhado à esquerda */
.tnode:first-of-type .tnode__card { left: 0; transform: none; }
.tnode:first-of-type .tnode__card::after { left: 23px; transform: rotate(45deg); }

/* Último nó encosta na borda direita → card alinhado à direita */
.tnode:last-of-type .tnode__card { left: auto; right: 0; transform: none; }
.tnode:last-of-type .tnode__card::before { left: auto; right: 16px; transform: rotate(45deg); }

.tnode__idade {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--vermelho); background: rgba(229, 35, 48, .1);
  padding: .18rem .55rem; border-radius: 999px; margin-bottom: .35rem;
}
.tnode__fase { font-size: 1.08rem; font-weight: 700; color: var(--azul); margin-bottom: .3rem; }
.tnode__txt  { font-size: .82rem; line-height: 1.55; color: var(--grafite-suave); margin-bottom: .3rem; }
.tnode__nota { font-size: 1.15rem; display: inline-block; transform: rotate(-2deg); }

/* Timeline mobile (trilho vertical) */
.timeline-mobile { position: relative; padding-left: 2.2rem; margin-top: 1rem; }
.timeline-mobile__rail {
  position: absolute; left: 21px; top: 8px; bottom: 8px; width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(180deg, rgba(35,64,142,.25) 0 6px, transparent 6px 16px);
}
.timeline-mobile__walker {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--vermelho);
  box-shadow: 0 0 0 5px rgba(229, 35, 48, .25);
  animation: railWalk 9s ease-in-out infinite;
}
.tmnode { position: relative; display: flex; gap: 1rem; padding: 0 0 2rem; }
.tmnode .tnode__dot { position: absolute; left: -2.2rem; top: 0; width: 42px; height: 42px; transform: translateX(-50%); margin-left: 21px; }
.tmnode > div { background: #fff; border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); flex: 1; }

/* ===================== 07 · CAPÍTULOS (BASE COMUM) ====================== */
.chapter {
  position: relative;
  min-height: 100svh;               /* cada segmento ocupa a tela inteira */
  display: flex;
  align-items: center;
  padding: clamp(5rem, 8vh, 6.5rem) 0;
  overflow: hidden;
}
.chapter__deco  { position: absolute; inset: 0; pointer-events: none; }
.chapter__inner { position: relative; z-index: 2; width: 100%; }

.chapter__tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.chapter__title {
  font-weight: 800;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.05;
  margin-bottom: .4rem;
}
.chapter__faixa { font-weight: 600; font-size: .95rem; opacity: .85; margin-bottom: 1rem; }
.chapter__lead  { font-size: 1.05rem; line-height: 1.8; max-width: 560px; }

.mini-card {
  height: 100%;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.1rem;
  box-shadow: 0 10px 24px rgba(22, 41, 92, .12);
}
.mini-card__emoji { font-size: 1.6rem; line-height: 1; display: inline-block; margin-bottom: .45rem; }
.mini-card__t { font-size: 1rem; font-weight: 700; color: var(--azul); margin-bottom: .3rem; }
.mini-card__d { font-size: .84rem; line-height: 1.6; color: var(--grafite-suave); margin: 0; }

.mini-card--dark {
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 255, 255, .28);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
.mini-card--dark .mini-card__t { color: #fff; }
.mini-card--dark .mini-card__d { color: rgba(255, 255, 255, .85); }

/* Cartão de espaço físico (obrigatório em cada segmento) */
.espaco-card {
  margin: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* --foco: ponto de foco vertical da foto (por <img>, via style="--foco:60%").
   Sem a variável, mantém o enquadramento original de cada componente. */
.espaco-card img { width: 100%; height: 170px; object-fit: cover; object-position: 50% var(--foco, 22%); }
.espaco-card figcaption { padding: 5px; display: grid; gap: .15rem; }
.espaco-card figcaption strong {
  font-family: var(--f-display); font-size: 1rem; color: var(--azul);
  display: inline-flex; align-items: center; gap: .45rem;
}
.espaco-card figcaption strong::before {
  content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--amarelo);
}
.espaco-card--vermelho figcaption strong::before { background: var(--vermelho); border-radius: 50%; }
.espaco-card--azul figcaption strong::before {
  width: 0; height: 0; border-radius: 0; background: none;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 11px solid var(--azul);
}
.espaco-card figcaption span { font-size: .82rem; color: var(--grafite-suave); }

/* ================ 08 · CAPÍTULO AMARELO — BERÇÁRIO AO PRÉ II ============ */
.chapter--amarelo {
  background:
    radial-gradient(560px 380px at 90% 12%, rgba(255, 255, 255, .35), transparent 60%),
    var(--amarelo);
  color: var(--azul-escuro);
}
.chapter--amarelo .chapter__tag   { background: var(--azul-escuro); color: var(--amarelo); }
.chapter--amarelo .chapter__title { color: var(--azul-escuro); }
.chapter--amarelo .chapter__faixa { color: var(--vermelho-escuro); }
.chapter--amarelo .chapter__lead  { color: #4a3a10; }

/* Letras do título pulando (o JS envolve cada letra em <i>) */
.bounce-title i {
  display: inline-block;
  animation: letterBounce 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .07s);
}

/* Nuvens e sol */
.cloud {
  position: absolute; height: 34px; width: 96px; border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 26px -14px 0 4px rgba(255,255,255,.9), 54px -6px 0 0 rgba(255,255,255,.9);
}
.cloud--1 { top: 12%; left: -110px; animation: cloudDrift 34s linear infinite; }
.cloud--2 { top: 26%; left: -160px; transform: scale(.72); animation: cloudDrift 46s linear 8s infinite; }

.sun {
  position: absolute; top: 8%; right: 7%;
  width: 74px; height: 74px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .35);
  animation: sunPulse 4s ease-in-out infinite;
}
.sun::before {
  content: ""; position: absolute; inset: -22px; border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .8);
  animation: spinSlow 18s linear infinite;
}

.chapter--amarelo .c-f1 { background: var(--vermelho); top: 62%; left: 3%;  animation: drift 10s ease-in-out infinite; }
.chapter--amarelo .c-f2 { background: var(--azul);     top: 18%; left: 46%; animation: drift 13s ease-in-out -4s infinite; }
.chapter--amarelo .c-f3 { border-bottom-color: #fff;   top: 74%; right: 5%; left: auto; animation: drift 11s ease-in-out -7s infinite; }

.confete {
  position: absolute; font-size: 1.1rem; color: var(--vermelho); opacity: .8;
  animation: confeteFloat 7s ease-in-out infinite;
}
.confete--1 { top: 40%; left: 8%; }
.confete--2 { top: 14%; right: 30%; color: var(--azul); animation-delay: -2.4s; }
.confete--3 { bottom: 26%; left: 40%; color: #fff; animation-delay: -4.6s; }

/* Polaroids das crianças */
.polaroid-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  align-items: start;
}
.polaroid {
  margin: 0;
  background: #fff;
  padding: .7rem .7rem 0;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
.polaroid img { width: 100%; height: 230px; object-fit: cover; object-position: 50% var(--foco, 50%); border-radius: 8px; }
.polaroid figcaption {
  text-align: center; font-size: 1.45rem; color: var(--azul-escuro);
  padding: .45rem 0 .6rem;
}
.polaroid--1 { transform: rotate(-3.5deg); animation: swayA 5.5s ease-in-out infinite; }
.polaroid--2 { transform: rotate(2.8deg) translateY(20px); animation: swayB 6.5s ease-in-out infinite; }
.polaroid-stage .espaco-card { grid-column: 1 / -1; margin-top: .4rem; }
.polaroid-stage .espaco-card img { height: 250px; }

/* Faixa de atividades no rodapé do capítulo */
.chapter__marquee {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: var(--azul-escuro);
  padding: .55rem 0;
  overflow: hidden;
}
.chapter__marquee-track {
  display: flex; gap: 1rem; width: max-content;
  animation: marqueeX 22s linear infinite;
}
.mq-chip {
  font-family: var(--f-display); font-weight: 600; font-size: .92rem;
  color: var(--amarelo); white-space: nowrap; padding: 0 .5rem;
}
.chapter--amarelo .chapter__inner { padding-bottom: 2.6rem; }

/* ================= 09 · CAPÍTULO VERMELHO — 1º AO 5º ANO ================ */
.chapter--vermelho {
  background:
    radial-gradient(640px 460px at 8% 90%, rgba(0, 0, 0, .18), transparent 60%),
    linear-gradient(160deg, var(--vermelho) 0%, var(--vermelho-escuro) 100%);
  color: #fff;
}
.chapter--vermelho .chapter__tag   { background: var(--amarelo); color: var(--azul-escuro); }
.chapter--vermelho .chapter__title { color: #fff; }
.chapter--vermelho .chapter__faixa { color: var(--amarelo); }
.chapter--vermelho .chapter__lead  { color: rgba(255, 255, 255, .92); }

.gear {
  position: absolute; color: rgba(255, 255, 255, .16);
  animation: spinSlow 16s linear infinite;
}
.gear--1 { width: 150px; top: -40px; right: 6%; }
.gear--2 { width: 90px; bottom: 10%; left: 3%; animation-direction: reverse; animation-duration: 11s; }

.binario {
  position: absolute; top: 50%; right: 8px;
  writing-mode: vertical-rl;
  font-family: monospace; font-size: .8rem; letter-spacing: .35em;
  color: rgba(255, 255, 255, .2);
  animation: binarioScroll 12s linear infinite;
  white-space: nowrap;
}

/* Frase digitando em inglês */
.typing-line {
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.15rem; color: var(--amarelo);
  min-height: 1.9em; margin-bottom: .6rem;
}
.cursor {
  display: inline-block; width: 3px; height: 1.05em;
  background: var(--amarelo); margin-left: 3px; vertical-align: text-bottom;
  animation: blink 1s steps(2) infinite;
}

/* Órbita de atividades ao redor do robô */
.orbit-stage {
  --orbit-r: 150px;
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 1;
  margin: 0 auto .8rem;
}
.orbit-ring {
  position: absolute; inset: 0;
  animation: spinSlow 30s linear infinite;
}
.orbit-ring::before {
  content: ""; position: absolute; inset: 34px; border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, .35);
}
.orbit-chip {
  position: absolute; top: 50%; left: 50%;
  transform:
    rotate(calc(var(--i) * (360deg / var(--n))))
    translateX(var(--orbit-r))
    rotate(calc(var(--i) * (-360deg / var(--n))));
}
.orbit-chip span {
  display: inline-block;
  transform: translate(-50%, -50%);
  background: #fff; color: var(--vermelho-escuro);
  font-family: var(--f-display); font-weight: 700; font-size: .8rem;
  padding: .32rem .8rem; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  max-width: 8.5rem; text-align: center; line-height: 1.2;   /* nomes longos quebram em 2 linhas → sem sobreposição */
  animation: spinReverse 30s linear infinite;
}

.robo {
  position: absolute; top: 50%; left: 50%;
  width: 128px; transform: translate(-50%, -50%);
  animation: roboFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .3));
}
.robo__antena { animation: antenaBlink 1.6s ease-in-out infinite; }
.robo__olho { transform-origin: center; animation: eyeBlink 4.2s ease-in-out infinite; }
.robo__olho--2 { animation-delay: .12s; }

.duo-fotos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.foto-mini {
  margin: 0; background: #fff; padding: .5rem .5rem 0; border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.foto-mini img { width: 100%; height: 130px; object-fit: cover; object-position: 50% var(--foco, 22%); border-radius: 8px; }
.foto-mini figcaption { text-align: center; font-size: 1.25rem; color: var(--vermelho-escuro); padding: .3rem 0 .45rem; }
.duo-fotos .espaco-card { grid-column: 1 / -1; }
.duo-fotos .espaco-card img { height: 190px; }

/* ================== 10 · CAPÍTULO AZUL — 6º AO 9º ANO =================== */
.chapter--azul {
  background: linear-gradient(165deg, var(--azul) 0%, var(--azul-escuro) 100%);
  color: #fff;
}
.chapter--azul .chapter__tag   { background: rgba(255, 255, 255, .14); color: var(--amarelo); border: 1px solid rgba(255,255,255,.25); }
.chapter--azul .chapter__title { color: #fff; }
.chapter--azul .chapter__faixa { color: var(--amarelo); }
.chapter--azul .chapter__lead  { color: rgba(255, 255, 255, .88); }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(80% 80% at 50% 40%, #000 30%, transparent 100%);
}
.sweep-line {
  position: absolute; top: 0; bottom: 0; width: 140px;
  background: linear-gradient(90deg, transparent, rgba(249, 178, 51, .1), transparent);
  animation: sweep 9s ease-in-out infinite;
}

/* Proposta pedagógica do Fundamental II (substitui o quadro "família ↔ aluno") */
.prop-f2 {
  margin-top: 1.2rem;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .22);
  border-left: 6px solid var(--amarelo);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem 1.3rem;
}
.prop-f2__t {
  font-size: 1.12rem; font-weight: 700; color: var(--amarelo);
  display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem;
}
.prop-f2__t::before { content: "📘"; font-size: 1.2rem; }
.prop-f2__intro {
  font-size: .95rem; line-height: 1.7; color: rgba(255, 255, 255, .92);
  margin: 0 0 .9rem;
}
.prop-f2__label { font-size: .86rem; font-weight: 700; color: var(--amarelo); margin: 0 0 .6rem; }
.prop-f2__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: .55rem .9rem;
}
.prop-f2__list li {
  position: relative; padding-left: 1.35rem;
  font-size: .87rem; line-height: 1.6; color: rgba(255, 255, 255, .9);
}
.prop-f2__list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--amarelo);
}
.prop-f2__list li:nth-child(even)::before { border-radius: 50%; background: var(--vermelho); }
@media (min-width: 768px) {
  .prop-f2__list { grid-template-columns: 1fr 1fr; }
}

/* Rota 6º ao 9º ano (preenche em loop, sem toque) */
.roadmap {
  display: flex; align-items: center; gap: .4rem;
  margin-top: 1.6rem; flex-wrap: wrap;
}
.roadmap__step {
  --i: 0;
  font-family: var(--f-display); font-weight: 700; font-size: .88rem;
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 2px solid rgba(255, 255, 255, .35);
  color: #fff;
  animation: stepPop 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.05s);
}
.roadmap__bar {
  flex: 1 1 34px; height: 6px; min-width: 26px;
  border-radius: 6px; background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.roadmap__bar span {
  display: block; height: 100%; border-radius: 6px;
  background: var(--amarelo);
  transform: scaleX(0); transform-origin: left;
  animation: fillBar 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 1.05s + .3s);
}

.f2-fotos { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem; }
.f2-portrait {
  grid-row: span 2; margin: 0;
  border-radius: var(--radius); overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.f2-portrait img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.f2-portrait img.jcard__img--top { object-position: 50% 18%; }
.f2-portrait figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(22, 41, 92, .78); backdrop-filter: blur(4px);
  color: var(--amarelo); font-size: 1.3rem;
  padding: .45rem .8rem; border-radius: 10px; text-align: center;
}
.f2-small { margin: 0; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.f2-small img { width: 100%; height: 220px; object-fit: cover; }
.f2-small figcaption {
  position: absolute; inset: auto 0 0;
  background: linear-gradient(transparent, rgba(22, 41, 92, .85));
  color: #fff; font-size: .78rem; font-weight: 600;
  padding: 1.2rem .7rem .5rem;
}
.f2-fotos .espaco-card img { height: 220px; }

/* ========================== 11 · PARA VOCÊ ============================== */
#para-voce { background: var(--areia); position: relative; overflow: hidden; }

/* Elementos da marca nos cantos da seção */
.pv-corners { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.pv-corner { position: absolute; display: block; opacity: .5; }
.pv-corner.fshape--sq { width: 40px; height: 40px; border-radius: 9px; }
.pv-corner.fshape--ci { width: 40px; height: 40px; border-radius: 50%; }
.pv-corner.fshape--tr {
  width: 0; height: 0; background: none;
  border-left: 24px solid transparent; border-right: 24px solid transparent;
  border-bottom: 42px solid var(--amarelo);
}
.pv-corner--tl { top: 34px;  left: 40px;  background: var(--azul);     animation: drift 12s ease-in-out infinite; }
.pv-corner--tr { top: 30px;  right: 46px; animation: drift 14s ease-in-out -3s infinite; }
.pv-corner--bl { bottom: 40px; left: 56px; background: var(--vermelho); animation: drift 13s ease-in-out -6s infinite; }
.pv-corner--br { bottom: 34px; right: 44px; background: var(--amarelo); transform: rotate(12deg); animation: drift 11s ease-in-out -2s infinite; }

#para-voce .container-xl { position: relative; z-index: 1; }

.pv-card {
  height: 100%;
  border-radius: var(--radius);
  border: 4px solid #fff;                 /* borda branca (destaque) */
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
/* Fundo do card = a cor que antes era só a borda */
.pv-card--amarelo  { background: var(--amarelo); }
.pv-card--vermelho { background: var(--vermelho); }
.pv-card--azul     { background: var(--azul); }
.pv-card.is-featured { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.pv-card__icone { font-size: 2.1rem; line-height: 1; margin-bottom: .8rem; display: inline-block; }
.pv-card__t { font-size: 1.22rem; font-weight: 700; margin-bottom: .8rem; }
.pv-card__list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.pv-card__list li { position: relative; padding-left: 1.4rem; font-size: .89rem; line-height: 1.6; }
.pv-card__list li::before { content: "✔"; position: absolute; left: 0; font-weight: 800; }
.pv-card__cta { margin-top: auto; font-family: var(--f-display); font-weight: 700; text-decoration: none; }
.pv-card__cta:hover { text-decoration: underline; }

/* Contraste por cor de card ------------------------------------------------ */
/* Amarelo → texto escuro */
.pv-card--amarelo .pv-card__t,
.pv-card--amarelo .pv-card__list li,
.pv-card--amarelo .pv-card__cta       { color: var(--azul-escuro); }
.pv-card--amarelo .pv-card__list li::before { color: var(--vermelho); }
.pv-card--amarelo .pv-card__cta:hover { color: #000; }

/* Vermelho e Azul → texto branco */
.pv-card--vermelho .pv-card__t,
.pv-card--vermelho .pv-card__cta,
.pv-card--azul .pv-card__t,
.pv-card--azul .pv-card__cta          { color: #fff; }
.pv-card--vermelho .pv-card__list li,
.pv-card--azul .pv-card__list li      { color: rgba(255, 255, 255, .92); }
.pv-card--vermelho .pv-card__list li::before,
.pv-card--azul .pv-card__list li::before { color: var(--amarelo); }
.pv-card--vermelho .pv-card__cta:hover,
.pv-card--azul .pv-card__cta:hover    { color: var(--amarelo); }

/* ============================ 12 · NÚMEROS ============================== */
.numeros {
  background: #fff;
  border-block: 3px solid var(--areia-escura);
  padding: clamp(2.6rem, 5vw, 3.6rem) 0;
}
.numeros__valor {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 3.6rem);
  color: var(--azul); line-height: 1; margin-bottom: .25rem;
}
.numeros__valor span:last-child { color: var(--vermelho); }
.numeros__valor span:first-child { color: var(--vermelho); }
.numeros__valor .numeros__de { font-size: .4em; font-weight: 700; color: var(--vermelho); margin: 0 .18em; vertical-align: .55em; }
.numeros__label { font-size: .92rem; font-weight: 600; color: var(--grafite-suave); margin: 0; }

/* =========================== 13 · PROPOSTA ============================== */
.proposta { background: var(--areia); overflow: hidden; }

.proposta__foto { position: relative; margin: 0; }
.proposta__foto img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 5px solid #fff;
}
.proposta__nota {
  position: absolute; bottom: -14px; left: 8%;
  font-size: 1.55rem; transform: rotate(-3deg);
  background: #fff; padding: .15rem .9rem; border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.proposta__foto .p-f1 { top: -16px; right: 10%; animation: drift 9s ease-in-out infinite; }
.proposta__foto .p-f2 { bottom: 18%; left: -12px; animation: drift 12s ease-in-out -4s infinite; }

.pilar {
  height: 100%;
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border-radius: var(--radius-sm);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.pilar__shape {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--areia);
  display: inline-flex; align-items: center; justify-content: center;
}
.pilar__t { font-size: 1.02rem; font-weight: 700; color: var(--azul); margin-bottom: .25rem; }
.pilar__d { font-size: .84rem; line-height: 1.6; color: var(--grafite-suave); margin: 0; }

.mvv-card {
  height: 100%;
  background: #fff; border-radius: var(--radius-sm);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--amarelo);
}
.row > div:nth-child(2) .mvv-card { border-left-color: var(--vermelho); }
.row > div:nth-child(3) .mvv-card { border-left-color: var(--azul); }
.mvv-card__t { font-size: 1.15rem; font-weight: 700; color: var(--azul); margin-bottom: .45rem; }
.mvv-card__d { font-size: .88rem; line-height: 1.7; color: var(--grafite-suave); margin: 0; }

/* ========================= 14 · DIFERENCIAIS ============================ */
.diferenciais { background: #fff; position: relative; overflow: hidden; }
.diferenciais .container-xl { position: relative; z-index: 1; }

/* Emblema de fundo: 3 triângulos cobrindo TODO o fundo (70% transparente) */
.tri-emblem {
  position: absolute;
  inset: 0;                     /* ocupa a seção inteira */
  z-index: 0;
  opacity: .80;                 /* 20% de transparência */
  pointer-events: none;
}
.tri-emblem svg { width: 100%; height: 100%; display: block; }
.tri-emblem__t {
  animation: triColorCycle 15s linear infinite;   /* 3 cores × 5s cada */
}
.tri-emblem__t--1 { animation-delay:   0s; }
.tri-emblem__t--2 { animation-delay:  -3s; }
.tri-emblem__t--3 { animation-delay: -6s; }

@keyframes triColorCycle {
  0%,    30%    { fill: var(--amarelo);  }
  33.33%, 63.33%{ fill: var(--azul);     }
  66.66%, 96.66%{ fill: var(--vermelho); }
  100%          { fill: var(--amarelo);  }
}

.dif-card {
  height: 100%;
  background: var(--areia);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  text-align: center;
  transition: transform .5s var(--ease-out), box-shadow .5s, border-color .5s, background .5s;
}
.dif-card__emoji {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; font-size: 1.9rem;
  border-radius: 18px; background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: .9rem;
}
.dif-card__t { font-size: 1.05rem; font-weight: 700; color: var(--azul); margin-bottom: .4rem; }
.dif-card__d { font-size: .84rem; line-height: 1.6; color: var(--grafite-suave); margin: 0; }

/* Holofote que passeia sozinho pelos cards (JS adiciona .spot) */
.dif-card.spot { transform: translateY(-8px); box-shadow: var(--shadow-md); background: #fff; }
.dif-card--amarelo.spot  { border-color: var(--amarelo); }
.dif-card--vermelho.spot { border-color: var(--vermelho); }
.dif-card--azul.spot     { border-color: var(--azul); }
.dif-card.spot .dif-card__emoji { animation: iconePop .6s var(--ease-boing); }

/* =========================== 15 · ESPAÇOS =============================== */
.espacos { background: var(--areia); padding-bottom: clamp(4.5rem, 9vw, 7rem); }

.espacos__marquee { display: grid; gap: 1.2rem; overflow: hidden; }
.espacos__track {
  display: flex; gap: 1.2rem; width: max-content;
  animation: marqueeX 140s linear infinite;
  padding: .4rem 0;
}
.espacos__track--b { animation-direction: reverse; animation-duration: 160s; }

.espaco-item {
  margin: 0; position: relative; flex: none;
  width: 320px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.espaco-item img { width: 100%; height: 310px; object-fit: cover; object-position: 50% var(--foco, 24%); }
.espaco-item figcaption {
  position: absolute; inset: auto 0 0;
  background: linear-gradient(transparent, rgba(22, 41, 92, .88));
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  padding: 2rem 1rem .8rem;
}

/* ========================== 16 · CTA FINAL ============================== */
.cta-final {
  position: relative;
  background:
    radial-gradient(560px 320px at 12% 20%, rgba(255, 255, 255, .3), transparent 60%),
    var(--amarelo);
  padding: clamp(4.5rem, 9vw, 6.5rem) 0;
  overflow: hidden;
}
.cta-final__shapes .cta-f1 { top: 18%; left: 6%; animation: drift 10s ease-in-out infinite; }
.cta-final__shapes .cta-f2 { bottom: 16%; right: 8%; animation: drift 12s ease-in-out -3s infinite; }
.cta-final__shapes .cta-f3 { top: 10%; right: 28%; border-bottom-color: #fff; animation: drift 11s ease-in-out -6s infinite; }

.cta-final__nota {
  display: inline-flex; align-items: flex-end; gap: .2rem;
  font-size: 1.7rem; color: var(--azul-escuro);
  transform: rotate(-3deg); margin-bottom: .4rem;
}
.hand-arrow--cta { transform: rotate(64deg); width: 56px; color: var(--azul-escuro); }

.cta-final__t {
  font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--azul-escuro); margin-bottom: .8rem;
}
.cta-final__d { max-width: 560px; font-size: 1.05rem; line-height: 1.75; color: #4a3a10; margin-bottom: 1.8rem; }

/* ====================== 17 · FOOTER & CONTATO =========================== */
.footer {
  background: var(--azul-escuro);
  color: rgba(255, 255, 255, .85);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}

/* Topo do rodapé: contatos + mini mapa lado a lado */
.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.footer__contact-col { min-width: 0; }
.footer__contact .contact-card { height: 100%; }

.footer__map-col { min-width: 0; display: flex; }
.footer__map {
  position: relative;
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, .16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}
.footer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(1.02); }
.footer__map-link {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--amarelo); color: var(--azul-escuro);
  font-family: var(--f-display); font-weight: 700; font-size: .86rem;
  padding: .5rem .9rem; border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease-boing), background .2s;
}
.footer__map-link:hover { transform: translateY(-2px); background: #ffc24e; color: var(--azul-escuro); }

.footer__logo--combo { height: 46px; }

.contact-card {
  height: 100%;
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.25rem;
}
.contact-card__ic { font-size: 1.6rem; display: inline-block; margin-bottom: .55rem; }
.contact-card h3 { font-size: 1.02rem; font-weight: 700; color: var(--amarelo); margin-bottom: .4rem; }
.contact-card p { font-size: .88rem; line-height: 1.7; margin: 0; }
.contact-card a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-card a:hover { color: var(--amarelo); text-decoration: underline; }

.footer__hr { border-color: rgba(255, 255, 255, .14); margin: 2.6rem 0 2.4rem; opacity: 1; }

.footer__logo { height: 52px; width: auto; margin-bottom: 1rem; }
.footer__desc { font-size: .9rem; line-height: 1.7; max-width: 320px; }

.footer__h {
  font-size: .82rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--amarelo); margin-bottom: .9rem;
}
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__list a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: .92rem; }
.footer__list a:hover { color: var(--amarelo); }

.footer__credit {
  margin: 2.6rem 0 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem; text-align: center;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem;
}
.footer__shapes { display: inline-flex; gap: .35rem; }

/* ================= WHATSAPP · ATENDENTE VIRTUAL (widget) ================ */
.wa-widget {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}

/* Botão flutuante */
.wa-float {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, .45);
  cursor: pointer;
  transition: transform .25s var(--ease-boing), background .25s;
}
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid #25D366;
  animation: waPulse 2.2s ease-out infinite;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float__ic, .wa-float__close { position: absolute; transition: opacity .2s, transform .3s; }
.wa-float__close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.wa-widget.is-open .wa-float { background: #128C7E; }
.wa-widget.is-open .wa-float::after { display: none; }
.wa-widget.is-open .wa-float__ic { opacity: 0; transform: rotate(90deg) scale(.5); }
.wa-widget.is-open .wa-float__close { opacity: 1; transform: none; }

.wa-float__badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--vermelho); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.wa-float__badge[hidden] { display: none; }

/* Balão de saudação (teaser) */
.wa-teaser {
  position: relative;
  display: flex; gap: .7rem; align-items: flex-start;
  width: min(300px, calc(100vw - 40px));
  background: #fff; border-radius: 16px 16px 4px 16px;
  padding: .85rem 1rem;
  box-shadow: 0 18px 40px rgba(22, 41, 92, .22);
  transform-origin: bottom right;
  animation: waPop .4s var(--ease-boing);
}
.wa-teaser[hidden] { display: none; }
.wa-teaser::after {
  content: ""; position: absolute; right: 20px; bottom: -8px;
  width: 16px; height: 16px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.wa-teaser__close {
  position: absolute; top: 6px; right: 8px;
  border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; line-height: 1; color: var(--grafite-suave);
}
.wa-teaser__avatar, .wa-chat__avatar {
  position: relative; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--azul); overflow: hidden;
  display: grid; place-items: center;
}
.wa-teaser__avatar img, .wa-chat__avatar img { width: 78%; height: 78%; object-fit: contain; }
.wa-teaser__online, .wa-dot {
  position: absolute; right: 1px; bottom: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #31D65B; border: 2px solid #fff;
}
.wa-teaser__body { padding-right: .8rem; }
.wa-teaser__name { display: block; font-size: .92rem; color: var(--grafite); line-height: 1.1; }
.wa-teaser__role { display: block; font-size: .74rem; color: var(--grafite-suave); margin-bottom: .3rem; }
.wa-teaser__msg  { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--grafite); }

/* Painel de chat */
.wa-chat {
  width: min(340px, calc(100vw - 32px));
  background: #ECE5DD;
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 54px rgba(22, 41, 92, .3);
  transform-origin: bottom right;
  animation: waPop .35s var(--ease-boing);
}
.wa-chat[hidden] { display: none; }
.wa-chat__head {
  display: flex; align-items: center; gap: .6rem;
  background: #128C7E; color: #fff; padding: .7rem .85rem;
}
.wa-chat__avatar { width: 40px; height: 40px; background: rgba(255,255,255,.18); }
.wa-chat__id { flex: 1; line-height: 1.15; }
.wa-chat__id strong { font-size: .96rem; }
.wa-chat__id span { display: flex; align-items: center; gap: .35rem; font-size: .76rem; opacity: .9; }
.wa-chat__id .wa-dot { position: static; width: 8px; height: 8px; border: 0; }
.wa-chat__close {
  border: 0; background: none; color: #fff; cursor: pointer;
  font-size: 1.5rem; line-height: 1; opacity: .9;
}
.wa-chat__close:hover { opacity: 1; }

.wa-chat__body {
  padding: 1rem .85rem 1.1rem;
  min-height: 130px; max-height: 46vh; overflow-y: auto;
  background-image: linear-gradient(rgba(229,221,213,.6), rgba(229,221,213,.6));
  display: flex; flex-direction: column; gap: .5rem;
}
.wa-bubble {
  position: relative;
  max-width: 84%; padding: .55rem .8rem .95rem;
  border-radius: 10px; font-size: .9rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .12);
}
.wa-bubble time { position: absolute; right: .6rem; bottom: .3rem; font-size: .64rem; color: var(--grafite-suave); }
.wa-bubble--in  { align-self: flex-start; background: #fff; color: var(--grafite); border-top-left-radius: 3px; }
.wa-bubble--out { align-self: flex-end; background: #DCF8C6; color: #12351f; border-top-right-radius: 3px; }

.wa-chat__form { display: flex; align-items: center; gap: .5rem; padding: .6rem .7rem; background: #F0F0F0; }
.wa-chat__input {
  flex: 1; border: 0; border-radius: 999px;
  padding: .6rem .95rem; font-size: .9rem; font-family: var(--f-body);
  background: #fff; color: var(--grafite);
}
.wa-chat__input:focus { outline: 2px solid #25D366; }
.wa-chat__send {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: #25D366; color: #fff; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .2s var(--ease-boing), background .2s;
}
.wa-chat__send:hover { background: #1ebe5a; transform: scale(1.06); }
.wa-chat__note { margin: 0; padding: .1rem .7rem .6rem; font-size: .7rem; color: var(--grafite-suave); text-align: center; background: #F0F0F0; }

/* =========================== 18 · KEYFRAMES ============================= */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%       { transform: translate(10px, -16px) rotate(10deg); }
  66%       { transform: translate(-8px, 10px) rotate(-8deg); }
}
@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
@keyframes marqueeX {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes spinSlow    { to { transform: rotate(360deg); } }
@keyframes spinReverse { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes travelerPulse {
  0%, 100% { transform: scale(1);   opacity: .3; }
  50%      { transform: scale(1.7); opacity: .12; }
}
@keyframes railWalk {
  0%   { top: 0; }
  50%  { top: calc(100% - 14px); }
  100% { top: 0; }
}
@keyframes letterBounce {
  0%, 18%, 100% { transform: translateY(0); }
  9%            { transform: translateY(-9px); }
}
@keyframes cloudDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 260px)); }
}
@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, .35); }
  50%      { box-shadow: 0 0 0 20px rgba(255, 255, 255, .18); }
}
@keyframes confeteFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-18px) rotate(24deg); }
}
@keyframes swayA {
  0%, 100% { transform: rotate(-3.5deg); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}
@keyframes swayB {
  0%, 100% { transform: rotate(2.8deg) translateY(20px); }
  50%      { transform: rotate(4.5deg) translateY(12px); }
}
@keyframes binarioScroll {
  from { transform: translateY(-30%); }
  to   { transform: translateY(30%); }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes roboFloat {
  0%, 100% { transform: translate(-50%, -50%); }
  50%      { transform: translate(-50%, calc(-50% - 10px)); }
}
@keyframes antenaBlink {
  0%, 100% { fill: var(--amarelo); }
  50%      { fill: #fff; }
}
@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(.1); }
}
@keyframes sweep {
  0%   { left: -160px; }
  55%  { left: 100%; }
  100% { left: 100%; }
}
@keyframes fillBar {
  0%        { transform: scaleX(0); }
  16%, 78%  { transform: scaleX(1); }
  100%      { transform: scaleX(1); opacity: 0; }
}
@keyframes stepPop {
  0%, 100% { background: rgba(255, 255, 255, .1); }
  16%, 80% { background: rgba(249, 178, 51, .3); border-color: var(--amarelo); }
}
@keyframes iconePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.25) rotate(-6deg); }
  100% { transform: scale(1); }
}
@keyframes notaWiggle {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(5deg); }
}
@keyframes waPop {
  from { opacity: 0; transform: scale(.6) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes wmFloatA {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50%      { transform: rotate(-9deg) translateY(-18px); }
}
@keyframes wmFloatB {
  0%, 100% { transform: translateY(0) translateX(0); }
  50%      { transform: translateY(16px) translateX(10px); }
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ============== 19 · ACESSIBILIDADE & RESPONSIVO ======================== */
:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .reveal-card, .reveal-pop { opacity: 1 !important; transform: none !important; }
  .timeline-path--draw { stroke-dashoffset: 0; }
  /* Emblema estático (sem giro de cores) mantendo as três cores */
  .tri-emblem__t--1 { fill: var(--amarelo)  !important; }
  .tri-emblem__t--2 { fill: var(--azul)     !important; }
  .tri-emblem__t--3 { fill: var(--vermelho) !important; }
}

@media (max-width: 1199.98px) {
  .orbit-stage { --orbit-r: 128px; width: min(330px, 100%); }
}

@media (max-width: 991.98px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.6rem); }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "cards" "extra";
    row-gap: 1.6rem;
  }
  .hero__cards { padding-top: 3rem; max-width: 640px; margin-inline: auto; }
  .hero__extra { max-width: 640px; margin-inline: auto; width: 100%; }

  .chapter { min-height: auto; }
  .chapter--amarelo .chapter__inner { padding-bottom: 3.2rem; }

  .orbit-stage { margin-bottom: 1.4rem; }
  .f2-portrait img { min-height: 320px; }

  /* rodapé: mapa embaixo dos contatos */
  .footer__top { grid-template-columns: 1fr; }
  .footer__map { min-height: 240px; }
}

@media (max-width: 767.98px) {
  :root { --nav-h: 68px; }
  .brand-img { height: 30px; max-width: min(52vw, 220px); }

  /* Cartazes em carrossel lateral: um por vez, com o próximo aparecendo na borda */
  .hero__cards {
    display: flex; flex-direction: row; align-items: flex-start; flex-wrap: nowrap;
    gap: .85rem; max-width: none; margin-inline: 0;
    padding: 3rem 0 1.4rem;                 /* topo: nota manuscrita · base: sombra dos cartões */
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 8%;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hero__cards::-webkit-scrollbar { display: none; }
  .jcard { flex: 0 0 min(84%, 330px); scroll-snap-align: center; }
  .jcard:first-of-type { margin-left: 8%; }
  .jcard:last-of-type  { margin-right: 8%; }
  .hero__note { position: absolute; top: .2rem; left: 8%; }
  .hand-arrow--hero { transform: rotate(75deg) translateX(4px); width: 44px; }

  .banner-faixa__txt { font-size: 1.15rem; }

  .polaroid img { height: 180px; }
  .polaroid--2 { transform: rotate(2.8deg) translateY(8px); }

  .orbit-stage { --orbit-r: 104px; width: min(280px, 100%); }
  .orbit-chip span { font-size: .7rem; padding: .26rem .6rem; max-width: 6.8rem; }

  .duo-fotos .foto-mini img { height: 110px; }

  .roadmap__step { width: 40px; height: 40px; font-size: .8rem; }

  .f2-fotos { grid-template-columns: 1fr 1fr; }
  .f2-portrait { grid-column: 1 / -1; grid-row: auto; }
  .f2-portrait img { min-height: 280px; }

  .espaco-item { width: 250px; }
  .espaco-item img { height: 170px; }

  .wa-widget { right: 14px; bottom: 14px; gap: 10px; }
  .wa-float { width: 52px; height: 52px; }
  .wa-teaser { width: min(270px, calc(100vw - 28px)); }
  .wa-chat { width: min(320px, calc(100vw - 24px)); }
  .hero__panel { border-radius: 24px; }
  .jornada__watermark { width: 70vw; opacity: .16; }
}

@media (max-width: 575.98px) {
  .hero__title { font-size: 2.25rem; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .hero__panel { padding: 1.5rem 1.15rem; }
  .timeline-mobile { padding-left: 2rem; }
  .cta-final__nota { font-size: 1.4rem; }
}

/* ============================================================================
   20 · AÇÕES DA NAVBAR — Instagram + alternância de tema
   Estilo "chip" arredondado com brilho suave (ref. da imagem enviada),
   dentro da paleta da marca (azul · vermelho · amarelo).
   ========================================================================== */
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.nav-icon {
  position: relative;
  width: 44px; height: 44px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 13px;                     /* quadrado arredondado */
  border: 1.6px solid var(--areia-escura);
  background: rgba(255, 255, 255, .75);
  color: var(--azul);
  cursor: pointer;
  transition: transform .2s var(--ease-boing), background .25s, color .25s,
              border-color .25s, box-shadow .25s;
}
.nav-icon svg { position: relative; z-index: 1; }
.nav-icon:hover, .nav-icon:focus-visible { transform: translateY(-2px); }
.site-nav.scrolled .nav-icon { background: rgba(255, 255, 255, .9); }

/* Instagram — brilho quente da paleta (vermelho → amarelo) */
.nav-icon--ig {
  color: var(--vermelho);
  border-color: rgba(229, 35, 48, .45);
  box-shadow: 0 0 0 1px rgba(229, 35, 48, .12), 0 6px 16px rgba(229, 35, 48, .18);
}
.nav-icon--ig:hover, .nav-icon--ig:focus-visible {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--amarelo), var(--vermelho) 70%);
  box-shadow: 0 8px 22px rgba(229, 35, 48, .4);
}

/* Botão "Agendar visita" no cluster de ações (fica por último no desktop) */
.nav-actions .nav-cta { margin-left: .15rem; }


/* ============================================================================
   22 · REFINAMENTOS MOBILE (foco em toque e legibilidade)
   ========================================================================== */
@media (max-width: 991.98px) {
  .nav-actions { gap: .4rem; }
}
@media (max-width: 575.98px) {
  .nav-icon { width: 40px; height: 40px; }
  /* Área de toque confortável nos CTAs */
  .btn-cta, .btn-ghost { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
  .hero__badges { gap: .5rem; }
  .badge-check { font-size: .82rem; }
  /* Widget do WhatsApp não cobre o CTA do rodapé em telas curtas */
  .wa-widget { bottom: 12px; right: 12px; }
}
@media (max-width: 400px) {
  .nav-actions { gap: .3rem; }
  .nav-icon { width: 38px; height: 38px; }
  .brand-img { height: 26px; max-width: 46vw; }
}

/* ============================================================================
   CTA FINAL — layout com VÍDEO VSL (texto à esquerda + vídeo à direita)
   (regras NOVAS e isoladas; não alteram nada acima)
   ========================================================================== */
.cta-final__grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.cta-final__text { text-align: left; }
.cta-final__grid .cta-final__d { max-width: 540px; margin-left: 0; margin-right: 0; }

.cta-final__video { width: 100%; display: flex; justify-content: center; }
.cta-final__vid {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 9 / 16;                 /* vídeo vertical (1080x1920) */
  max-height: 78vh;
  object-fit: cover;
  background: #16295c;
  border: 6px solid #fff;
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(22, 41, 92, .28);
  display: block;
}

/* MOBILE: vídeo PRIMEIRO, depois o texto */
@media (max-width: 860px) {
  .cta-final__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.8rem;
  }
  .cta-final__video { order: -1; }       /* vídeo antes do texto */
  .cta-final__text { text-align: center; }
  .cta-final__grid .cta-final__d { margin-left: auto; margin-right: auto; }
  .cta-final__vid { max-width: 340px; }
}

/* ============================================================================
   23 · AVALIAÇÕES — carrossel de depoimentos (bordas tricolores girando)
   ----------------------------------------------------------------------------
   Regras 100% NOVAS e isoladas: nada acima foi alterado.
   Mobile-first: 1 card → 2 cards (≥768px) → 3 cards (≥1200px).
   Autoplay de 8s + setas, indicadores, arrasto (swipe) e teclado.
   ========================================================================== */
.avaliacoes {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(680px 420px at 88% 6%,  rgba(146, 189, 223, .22), transparent 62%),
    radial-gradient(600px 400px at 6%  94%, rgba(249, 178, 51, .16),  transparent 62%),
    var(--branco);
  border-block: 3px solid var(--areia-escura);
}
.avaliacoes .container-xl { position: relative; z-index: 1; }

.avaliacoes__shapes { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.avaliacoes__shapes .av-f1 { top: 11%; left: 3%;    animation: drift 12s ease-in-out infinite; }
.avaliacoes__shapes .av-f2 { bottom: 13%; right: 5%; animation: drift 14s ease-in-out -4s infinite; }
.avaliacoes__shapes .av-f3 { top: 8%;  right: 13%;   animation: drift 11s ease-in-out -7s infinite; }

.aval-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------- Estrelas (SVG) */
.aval-star { width: 17px; height: 17px; flex: none; fill: var(--amarelo); display: block; }

.aval-nota { display: inline-flex; align-items: center; gap: 2px; }

.aval-stars { position: relative; display: inline-flex; }
.aval-stars__row { display: inline-flex; gap: 2px; }
.aval-stars__row .aval-star { fill: var(--areia-escura); }
.aval-stars__row--fill {
  position: absolute; top: 0; left: 0; height: 100%;
  width: var(--pct, 100%);
  overflow: hidden;
}
.aval-stars__row--fill .aval-star { fill: var(--amarelo); }

/* ------------------------------------------------- Resumo da nota */
.aval-resumo {
  display: flex; flex-direction: column; align-items: center;
  gap: 1rem; text-align: center;
  background: var(--branco);
  border: 2px solid var(--areia-escura);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.15rem;
  margin-bottom: clamp(1.9rem, 4vw, 2.8rem);
}
.aval-resumo__nota { display: flex; align-items: center; justify-content: center; gap: .8rem; }
.aval-resumo__valor {
  font-family: var(--f-display); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--azul);
}
.aval-resumo__meta { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.aval-resumo__qtd { font-size: .82rem; font-weight: 600; color: var(--grafite-suave); }

.aval-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; }
.aval-tags li {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 600; color: var(--azul-escuro);
  background: var(--areia);
  border: 1.5px solid var(--areia-escura);
  border-radius: 999px;
  padding: .32rem .78rem;
}
.aval-tags b { font-size: .7rem; color: var(--vermelho); }

.aval-resumo__link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--f-display); font-weight: 700; font-size: .92rem;
  color: var(--azul); text-decoration: none;
  border-bottom: 2px solid var(--amarelo);
  padding-bottom: 2px;
  transition: color .25s, gap .25s, border-color .25s;
}
.aval-resumo__link:hover, .aval-resumo__link:focus-visible { color: var(--vermelho); gap: .7rem; border-color: var(--vermelho); }

@media (min-width: 992px) {
  .aval-resumo { flex-direction: row; justify-content: center; gap: 1.7rem; padding: 1.15rem 1.7rem; text-align: left; }
  .aval-resumo__nota { padding-right: 1.7rem; border-right: 2px solid var(--areia-escura); }
  .aval-tags { justify-content: flex-start; }
}

/* ----------------------------------------------------- Carrossel */
.aval-carousel {
  --per: 1;                 /* cards visíveis — o JS lê esta variável */
  --aval-gap: 1rem;
  position: relative;
}
@media (min-width: 768px)  { .aval-carousel { --per: 2; --aval-gap: 1.1rem; } }
@media (min-width: 1200px) { .aval-carousel { --per: 3; --aval-gap: 1.2rem; } }

.aval-viewport {
  overflow-x: auto;                 /* sem JS: rolagem horizontal nativa */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-y;
  padding: 8px 6px 20px;            /* respiro p/ sombra e hover dos cards */
}
.aval-viewport::-webkit-scrollbar { display: none; }

.aval-carousel.is-ready .aval-viewport { overflow: hidden; cursor: grab; }
.aval-carousel.is-dragging .aval-viewport { cursor: grabbing; }
.aval-carousel.is-dragging { user-select: none; -webkit-user-select: none; }

.aval-track { display: flex; align-items: stretch; gap: var(--aval-gap); }
.aval-carousel.is-ready .aval-track {
  transition: transform .7s var(--ease-out);
  will-change: transform;
}
.aval-carousel.is-dragging .aval-track { transition: none; }

.aval-slide {
  flex: 0 0 calc((100% - (var(--per) - 1) * var(--aval-gap)) / var(--per));
  min-width: 0;
  display: flex;
}

/* --------------------------- Card com borda girando (amarelo→vermelho→azul) */
.aval-card {
  --borda: 3px;
  position: relative;
  display: flex;
  width: 100%;
  padding: var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--areia-escura);          /* reserva, caso o gradiente falhe */
  box-shadow: var(--shadow-md);
  transition: transform .45s var(--ease-out), box-shadow .45s;
}
.aval-card::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 260%;
  aspect-ratio: 1;
  z-index: 0;
  transform: translate(-50%, -50%) rotate(0deg);
  background: conic-gradient(from 0deg,
    var(--amarelo)  0     10%,
    var(--vermelho) 23%   43%,
    var(--azul)     57%   77%,
    var(--amarelo)  90%  100%);
  animation: avalBordaSpin 7s linear infinite;
  animation-delay: calc(var(--i, 0) * -2.34s);   /* alterna a cor de partida por card */
  will-change: transform;
}
.aval-card:hover, .aval-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.aval-card:hover::before, .aval-card:focus-within::before { animation-duration: 3.4s; }

.aval-card__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; gap: .7rem;
  min-width: 0;
  border-radius: calc(var(--radius) - var(--borda));
  background: var(--branco);
  padding: 1.4rem 1.3rem 1.2rem;
}

.aval-card__quote {
  position: absolute; top: .1rem; right: 1rem; z-index: 0;
  font-family: var(--f-display); font-weight: 800;
  font-size: 4.6rem; line-height: 1;
  color: var(--areia); pointer-events: none;
}

.aval-card__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.aval-card__quando { font-size: .74rem; font-weight: 600; color: var(--grafite-suave); white-space: nowrap; }

.aval-card__txt {
  position: relative; z-index: 1;
  margin: 0;
  font-size: .92rem; line-height: 1.72;
  color: var(--grafite);
}

.aval-card__autor {
  position: relative; z-index: 1;
  margin-top: auto; padding-top: .95rem;
  border-top: 1.5px solid var(--areia-escura);
  display: flex; align-items: center; gap: .7rem;
}
.aval-card__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 800; font-size: .86rem; letter-spacing: .02em;
}
.aval-card__avatar--amarelo  { background: var(--amarelo);  color: var(--azul-escuro); }
.aval-card__avatar--vermelho { background: var(--vermelho); color: var(--branco); }
.aval-card__avatar--azul     { background: var(--azul);     color: var(--branco); }

.aval-card__id { display: flex; flex-direction: column; min-width: 0; }
.aval-card__id strong {
  font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  color: var(--azul); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.aval-card__id span { font-size: .73rem; color: var(--grafite-suave); }

.aval-card__g {
  margin-left: auto; flex: none;
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grafite-suave);
  background: var(--areia);
  border: 1.5px solid var(--areia-escura);
  border-radius: 999px;
  padding: .24rem .55rem;
}

/* ------------------------------------------------------- Controles */
.aval-ctrl {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.aval-dots  { order: 1; width: 100%; display: flex; align-items: center; justify-content: center; gap: .1rem; }
.aval-prev  { order: 2; }
.aval-next  { order: 3; }
.aval-play  { order: 4; }

.aval-arrow, .aval-play {
  width: 48px; height: 48px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  border: 1.6px solid var(--areia-escura);
  background: var(--branco);
  color: var(--azul);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-boing), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.aval-arrow:hover, .aval-play:hover,
.aval-arrow:focus-visible, .aval-play:focus-visible {
  transform: translateY(-2px);
  background: var(--azul); color: var(--branco); border-color: var(--azul);
  box-shadow: var(--shadow-md);
}
.aval-arrow:active, .aval-play:active { transform: translateY(0); }
.aval-arrow:disabled { opacity: .4; cursor: default; transform: none; }

.aval-play .ic-play  { display: none; }
.aval-play[aria-pressed="true"] .ic-pause { display: none; }
.aval-play[aria-pressed="true"] .ic-play  { display: block; }

/* Indicadores: pílula que preenche em 8s com o tricolor da marca */
.aval-dot {
  position: relative; flex: none;
  height: 44px;                     /* alvo de toque confortável */
  padding: 0 3px;
  border: 0; background: none;
  display: inline-flex; align-items: center;
  cursor: pointer;
}
.aval-dot__bar {
  position: relative;
  display: block; overflow: hidden;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--areia-escura);
  transition: width .5s var(--ease-out), background .3s;
}
.aval-dot:hover .aval-dot__bar { background: var(--azul-claro); }
.aval-dot.is-active .aval-dot__bar { width: 46px; background: var(--areia-escura); }
.aval-dot__fill {
  position: absolute; inset: 0;
  display: block;
  transform: scaleX(0); transform-origin: left center;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amarelo) 0 33%, var(--vermelho) 33% 66%, var(--azul) 66% 100%);
}

@media (min-width: 768px) {
  .aval-ctrl { gap: .6rem; margin-top: 1.7rem; }
  .aval-dots { order: 2; width: auto; margin: 0 .5rem; }
  .aval-prev { order: 1; }
  .aval-next { order: 3; }
  .aval-play { order: 4; margin-left: .5rem; }
}

@media (max-width: 575.98px) {
  .aval-card__inner { padding: 1.25rem 1.15rem 1.1rem; }
  .aval-card__txt   { font-size: .89rem; }
  .aval-card__quote { font-size: 3.8rem; }
  .aval-resumo__valor { font-size: 2.25rem; }
  .aval-dot { padding: 0 2px; }
  .aval-dot.is-active .aval-dot__bar { width: 38px; }
}

/* Sem movimento: nada de autoplay nem giro (o JS também respeita isso) */
@media (prefers-reduced-motion: reduce) {
  .aval-viewport { scroll-behavior: auto; }
  .aval-card::before { animation: none !important; }
  .aval-card:hover, .aval-card:focus-within { transform: none; }
}

@keyframes avalBordaSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}


/* ============================================================================
   24 · ASSINATURA DO RODAPÉ — Fábio Olivieri · KRYPTA
   Gradiente extraído do logo enviado: #3B82F6 → #2EADF2
   ========================================================================== */
.footer__dev {
  margin: .9rem 0 0;
  text-align: center;
  font-size: .8rem;
  line-height: 1.6;
}
.footer__dev-link {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: .3rem;
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  transition: color .25s;
}
.footer__dev-link:hover, .footer__dev-link:focus-visible { color: rgba(255, 255, 255, .8); }

.footer__dev-name { color: rgba(255, 255, 255, .9); font-weight: 600; }

.footer__dev-brand {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .86rem;
  letter-spacing: .16em;
  margin-right: -.16em;              /* corta o vão final do letter-spacing:
                                        o gradiente termina exatamente no "A" */
  text-transform: uppercase;
  color: #3B82F6;                                   /* reserva */
  background-image: linear-gradient(90deg, #3B82F6 0%, #2EADF2 100%);
  -webkit-background-clip: text;
          background-clip: text;
  transition: filter .3s;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer__dev-brand { color: transparent; -webkit-text-fill-color: transparent; }
}
.footer__dev-link:hover .footer__dev-brand,
.footer__dev-link:focus-visible .footer__dev-brand {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, .6));
}


/* ============================================================================
   25 · FOTOS: ZOOM NO HOVER + LIGHTBOX (ampliar ao clicar)
   ----------------------------------------------------------------------------
   Regras 100% NOVAS e isoladas: nenhuma regra acima foi alterada.
   O JS envolve cada foto num <span class="foto-zoom"> (recorte) e marca a
   <figure> como .foto-zoom-host (área de clique + gatilho do hover).
   ========================================================================== */
.foto-zoom-host { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }

.foto-zoom {
  display: block;
  position: relative;
  overflow: hidden;                 /* recorta o zoom exatamente na moldura */
}
/* height:100% SÓ onde a própria <img> usa height:100% e a legenda é absolute.
   Nos demais (alturas fixas + legenda no fluxo), o recorte segue a imagem. */
.f2-portrait .foto-zoom { height: 100%; }
.jcard .foto-zoom { border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0; }
.jcard .foto-zoom > img { border-radius: 0; }
.foto-zoom > img {
  transition: transform .65s var(--ease-out);
}

/* Zoom só onde existe cursor de verdade (não "gruda" no toque) */
@media (hover: hover) {
  .foto-zoom-host:hover .foto-zoom > img,
  .foto-zoom-host:focus-visible .foto-zoom > img { transform: scale(1.09); }
}
.foto-zoom-host:focus-visible { outline: 3px solid var(--amarelo); outline-offset: 4px; }

/* Lupa que aparece sobre a foto no hover */
.foto-zoom::after {
  content: "";
  position: absolute; top: 10px; right: 10px;
  width: 34px; height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94) center / 17px 17px no-repeat
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323408E' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.2' y1='16.2' x2='21' y2='21'/%3E%3Cline x1='11' y1='8.2' x2='11' y2='13.8'/%3E%3Cline x1='8.2' y1='11' x2='13.8' y2='11'/%3E%3C/svg%3E");
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-boing);
  pointer-events: none;
  z-index: 2;
}
@media (hover: hover) {
  .foto-zoom-host:hover .foto-zoom::after,
  .foto-zoom-host:focus-visible .foto-zoom::after { opacity: 1; transform: scale(1); }
}

/* Molduras que ficam no próprio <img>: passam para o recorte (visual idêntico) */
.polaroid  .foto-zoom,
.foto-mini .foto-zoom { border-radius: 8px; }
.polaroid  .foto-zoom > img,
.foto-mini .foto-zoom > img { border-radius: 0; }   /* evita cantos arredondados 2x */

.proposta__foto .foto-zoom {
  border: 5px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.proposta__foto .foto-zoom > img { border: 0; border-radius: 0; box-shadow: none; }

/* A galeria pausa ao passar o mouse — dá para mirar, ampliar e clicar */
@media (hover: hover) {
  .espacos__marquee:hover .espacos__track { animation-play-state: paused; }
}
.espaco-item .foto-zoom::after { top: 12px; right: 12px; }

/* ------------------------------------------------------------- LIGHTBOX */
.lb {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(22, 41, 92, .93);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }

.lb__fig {
  position: relative;
  margin: 0;
  max-width: min(100%, 1180px);
  display: flex; flex-direction: column; align-items: center;
  transform: scale(.94);
  opacity: 0;
  transition: transform .42s var(--ease-boing), opacity .35s var(--ease-out);
}
.lb.is-open .lb__fig { transform: scale(1); opacity: 1; }

.lb__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  border: 5px solid #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  background: var(--areia);
  object-fit: contain;
}

.lb__cap {
  margin-top: 1rem;
  max-width: 720px;
  text-align: center;
  font-family: var(--f-display); font-weight: 700;
  font-size: 1.05rem; line-height: 1.45;
  color: #fff;
}
.lb__cap:empty { display: none; }

.lb__close {
  position: fixed; top: clamp(.8rem, 2.2vw, 1.5rem); right: clamp(.8rem, 2.2vw, 1.5rem);
  z-index: 2;
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: transform .2s var(--ease-boing), background .25s, border-color .25s, color .25s;
}
.lb__close:hover, .lb__close:focus-visible {
  background: var(--amarelo);
  border-color: var(--amarelo);
  color: var(--azul-escuro);
  transform: rotate(90deg) scale(1.06);
}

/* Trava a rolagem do fundo enquanto o lightbox está aberto */
body.lb-aberto { overflow: hidden; }

@media (max-width: 575.98px) {
  .lb { padding: 1rem .8rem 1.2rem; }
  .lb__img { max-height: 68vh; border-width: 4px; }
  .lb__cap { font-size: .95rem; margin-top: .8rem; }
  .lb__close { width: 46px; height: 46px; top: .7rem; right: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .foto-zoom > img { transition: none; }
  .foto-zoom-host:hover .foto-zoom > img { transform: none; }
  .lb, .lb__fig { transition: none; }
  .lb__fig { transform: none; opacity: 1; }
}


/* ============================================================================
   26 · NAVBAR COM 9 ITENS — espaçamento afinado
   ----------------------------------------------------------------------------
   Com "Avaliações" + "Tour Guiado" os links passaram a exigir ~867px.
   O menu desktop agora abre em 1200px (abaixo disso, o hambúrguer — que já
   traz os 9 itens). Aqui o espaçamento é ajustado para caber sempre em UMA
   linha, sem nunca quebrar um rótulo ("Tour Guiado" fica inteiro).
   ========================================================================== */
.site-nav .nav-link { white-space: nowrap; }

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-nav .nav-link { padding: .5rem .38rem !important; font-size: .9rem; }
  .site-nav .nav-link::after { left: .38rem; right: .38rem; }
}
@media (min-width: 1400px) {
  .site-nav .nav-link { padding: .5rem .62rem !important; font-size: .96rem; }
  .site-nav .nav-link::after { left: .62rem; right: .62rem; }
}
