/* ─────────────────────────────────────────────
   MARCA DA VÈRTO
   A identidade ainda sera criada. Para trocar as cores,
   basta mudar este bloco.
   ───────────────────────────────────────────── */
:root {
  --notte: #071a20;      /* lago de madrugada, fundo escuro */
  --lago: #0d2a31;       /* secao do filme */
  --lago-2: #103a40;     /* secao do questionario */
  --sole: #ffb547;       /* botoes principais e destaque */
  --alba: #ff7a59;       /* amanhecer */
  --rosso: #e5402f;      /* terceira fase, disco do Japao */
  --luz: #8fefff;        /* primeira fase, eletricidade */
  --gas: #ff9c4a;        /* primeira fase, gas */
  --carta: #f4efe5;      /* papel, secoes claras */
  --papel: #fffdf8;      /* folha da conta */
  --tinta: #0d2329;      /* texto sobre fundo claro */
  --branco: #fbf8f1;     /* texto sobre fundo escuro */
  --verde: #2fa877;      /* item negociavel */

  --fonte: "M PLUS Rounded 1c", "Quicksand", "Nunito", system-ui, sans-serif;
  --mola: cubic-bezier(.2, .8, .2, 1);
  --raio: 28px;
  --margem: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Tudo que depende do WhatsApp so aparece com o numero preenchido no CFG do site.js */
html:not(.com-whats) [data-wa],
html:not(.com-whats) [data-so-whats],
html.com-whats [data-sem-whats] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--notte);
}

body {
  margin: 0;
  background: var(--notte);
  color: var(--branco);
  font-family: var(--fonte);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sole); outline-offset: 3px; }
canvas { display: block; }

.pular {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  padding: .5em 1em; border-radius: 999px;
  background: var(--sole); color: var(--tinta);
  transform: translateY(-200%);
}
.pular:focus { transform: none; }

/* ─── abertura ─── */
#abertura {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(circle at 50% 50%, #0d2d35 0%, var(--notte) 62%);
}
.js #abertura { display: block; }
.js.sem-abertura #abertura { display: none; }
#abertura::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: min(120vw, 900px); aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.6);
  background: radial-gradient(closest-side, rgba(255, 181, 71, .34), rgba(255, 122, 89, .1) 55%, transparent);
  opacity: 0;
  transition: opacity .9s ease, transform 1.4s var(--mola);
}
#abertura.com-halo::before { opacity: 1; transform: translate(-50%, -50%) scale(1); }
#abertura-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.abertura-logo {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0;
  pointer-events: none;
}
.abertura-logo img {
  display: block; width: 80vw; max-width: none; height: auto;
  filter: drop-shadow(0 0 16px rgba(255, 190, 110, .5));
}
#abertura.com-halo .abertura-logo { opacity: 1; transition: opacity .5s ease .6s; }
#abertura.com-halo #abertura-canvas { opacity: 0; transition: opacity .55s ease .68s; }
.abertura-pular {
  position: absolute; left: 50%; bottom: max(26px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  padding: .4em 1.1em; min-height: 40px;
  font-size: .85rem; letter-spacing: .03em;
  color: rgba(251, 248, 241, .62);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

#cortina {
  position: fixed; inset: 0; z-index: 90;
  background: var(--notte);
  transform: translateY(101%);
  transition: transform .34s cubic-bezier(.7, 0, .3, 1);
  pointer-events: none;
}
#cortina.fecha { transform: none; }
.js.sem-abertura #cortina { animation: cortina-abre .5s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes cortina-abre { from { transform: none; } to { transform: translateY(-101%); } }

#progresso {
  position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--luz), var(--sole) 50%, var(--alba));
  transform: scaleX(0); transform-origin: left;
}

/* ─── topo ─── */
.topo {
  position: fixed; z-index: 50;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  top: max(10px, env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between;
  pointer-events: none;
}
.topo > * { pointer-events: auto; }
.marca {
  display: inline-flex; align-items: center;
  height: 2.75rem;
  padding: 0 .85rem;
  border-radius: 999px;
  background: var(--notte);
  text-decoration: none;
  transition: transform .25s var(--mola);
}
.marca img { display: block; height: 1.85rem; width: auto; }
.marca-tinta { background: none; padding: 0; height: auto; }

.idiomas {
  --i: 0;
  position: relative; display: grid; grid-template-columns: repeat(4, 2.5rem);
  padding: 3px; border-radius: 999px;
  background: var(--notte);
}
.idiomas[data-ativo="en"] { --i: 1; }
.idiomas[data-ativo="pt"] { --i: 2; }
.idiomas[data-ativo="es"] { --i: 3; }
.idiomas-pill {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 2.5rem;
  border-radius: 999px; background: var(--sole);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .34s var(--mola);
}
.idiomas a {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  height: 2.25rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; color: rgba(251, 248, 241, .78);
  transition: color .25s, transform .2s var(--mola);
}
.idiomas[data-ativo="it"] a[data-lang="it"],
.idiomas[data-ativo="en"] a[data-lang="en"],
.idiomas[data-ativo="pt"] a[data-lang="pt"],
.idiomas[data-ativo="es"] a[data-lang="es"] { color: var(--tinta); }

.sugestao {
  position: fixed; z-index: 49; right: 12px;
  top: calc(max(10px, env(safe-area-inset-top)) + 54px);
  display: flex; align-items: center;
  border-radius: 999px; background: var(--branco); color: var(--tinta);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
  font-size: .86rem; font-weight: 500;
}
.sugestao.aberta { animation: sobe-sugestao .5s var(--mola) both; }
@keyframes sobe-sugestao { from { opacity: 0; transform: translateY(-10px); } }
.sugestao a { padding: .55em .4em .55em 1.1em; text-decoration: none; min-height: 40px; display: flex; align-items: center; }
.sugestao button { width: 40px; height: 40px; font-size: 1.15rem; color: rgba(13, 35, 41, .6); }

/* ─── capa ─── */
#palco {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #0d2f3f 0%, #4d5a66 30%, #ff9d62 44%, #0b2f38 46%, #061a20 100%);
}
#lago { width: 100%; height: 100%; }
.palco-sombra {
  position: absolute; inset: auto 0 0 0; height: 70%;
  background: linear-gradient(180deg, rgba(4, 16, 22, 0), rgba(4, 16, 22, .58) 26%, rgba(4, 16, 22, .78) 60%, rgba(4, 16, 22, .9));
  pointer-events: none;
}
.capa {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center;
  padding: 96px var(--margem) calc(44px + env(safe-area-inset-bottom));
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
}
.capa-texto { width: 100%; max-width: 70rem; cursor: auto; will-change: opacity, transform; text-shadow: 0 1px 16px rgba(4, 16, 22, .5); }
.capa-texto .btn { text-shadow: none; }
.capa-titulo {
  font-size: clamp(2.85rem, 10.4vw, 5.4rem);
  font-weight: 300; line-height: 1.04; letter-spacing: -.025em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.capa-lead { max-width: 37rem; margin-inline: auto; color: rgba(251, 248, 241, .86); margin-bottom: 26px; text-wrap: pretty; }
.capa-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.capa-tocca {
  display: inline-flex; align-items: center; gap: .7em;
  margin-top: 22px;
  font-size: .84rem; color: rgba(251, 248, 241, .72);
  transition: opacity .35s;
}
.capa-tocca.sumiu { opacity: 0 !important; }
.capa-tocca-anel {
  position: relative; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid currentColor;
}
.capa-tocca-anel::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid currentColor;
  animation: anel 2.2s ease-out infinite;
}
@keyframes anel { to { transform: scale(2.8); opacity: 0; } }

/* entrada da capa */
.js .capa-lead, .js .capa-botoes, .js .capa-tocca { opacity: 0; transform: translateY(16px); }
.js.capa-entrou .capa-lead,
.js.capa-entrou .capa-botoes,
.js.capa-entrou .capa-tocca {
  opacity: 1; transform: none;
  transition: opacity .7s ease, transform .8s var(--mola);
}
.js.capa-entrou .capa-lead { transition-delay: .55s; }
.js.capa-entrou .capa-botoes { transition-delay: .68s; }
.js.capa-entrou .capa-tocca { transition-delay: .9s; }

/* palavra por palavra */
.pal {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .14em .03em .2em; margin: -.14em -.03em -.2em;
}
.pal > span { display: inline-block; }
.js .pal > span { transform: translateY(118%); }
.js.capa-entrou .capa-titulo .pal > span,
.js main .vis .pal > span,
.js main .vis.titulo .pal > span {
  transform: none;
  transition: transform .72s var(--mola);
  transition-delay: calc(var(--i) * 55ms + .3s);
}
.js main .vis .pal > span { transition-delay: calc(var(--i) * 45ms); }

.rev { transition: opacity .55s ease, transform .6s var(--mola); }
.js .rev { opacity: 0; transform: translateY(16px); }
.js .rev.vis { opacity: 1; transform: none; }

/* ─── miolo ─── */
main { position: relative; z-index: 2; display: block; }
main > section {
  position: relative;
  border-radius: var(--raio) var(--raio) 0 0;
  margin-top: calc(var(--raio) * -1);
  padding: clamp(64px, 9vw, 136px) var(--margem) calc(clamp(64px, 9vw, 136px) + var(--raio));
  overflow: clip;
  scroll-margin-top: 0;
}
main > section:first-child { margin-top: 0; }

.kicker { font-size: .92rem; letter-spacing: .02em; margin-bottom: 12px; color: rgba(13, 35, 41, .66); }
.kicker-sole { color: var(--sole); }
.titulo {
  font-size: clamp(2.1rem, 6vw, 4.2rem);
  font-weight: 300; line-height: 1.08; letter-spacing: -.022em;
}
.titulo-grande { font-size: clamp(2.7rem, 9vw, 6.4rem); }

/* ─── botoes ─── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: .7em 1.55em;
  border-radius: 999px;
  font-weight: 500; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .26s var(--mola), background-color .25s, color .25s;
}
.btn > span:not(.onda), .btn > svg { position: relative; z-index: 1; }
.btn svg { flex: none; width: 1.34em; height: 1.34em; }
.btn::after {
  content: ""; position: absolute; z-index: 0; top: -20%; bottom: -20%; left: -40%; width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-120%) skewX(-16deg);
  animation: brilho 4.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brilho {
  0%, 62% { transform: translateX(-120%) skewX(-16deg); }
  88%, 100% { transform: translateX(520%) skewX(-16deg); }
}
.btn-sole { background: var(--sole); color: var(--tinta); animation: halo-sol 2.4s ease-out infinite; }
@keyframes halo-sol {
  0% { box-shadow: 0 0 0 0 rgba(255, 181, 71, .55); }
  70%, 100% { box-shadow: 0 0 0 15px rgba(255, 181, 71, 0); }
}
.btn-vetro { background: rgba(255, 255, 255, .13); color: var(--branco); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); }
.btn-vetro::after { animation-delay: 1.3s; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent); }
.btn-linha { color: var(--branco); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); margin-top: 22px; }
.btn-linha::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .24), transparent); }
.btn-tinta { background: var(--tinta); color: var(--branco); animation: halo-tinta 2.6s ease-out infinite; }
.btn-tinta svg { color: var(--sole); }
.btn-tinta::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .26), transparent); }
@keyframes halo-tinta {
  0% { box-shadow: 0 0 0 0 rgba(13, 35, 41, .34); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(13, 35, 41, 0); }
}
.btn-grande { min-height: 62px; font-size: 1.12em; padding-inline: 2em; }

.ico-wa { fill: currentColor; animation: balanca 3.4s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes balanca {
  0%, 74%, 100% { transform: rotate(0); }
  78% { transform: rotate(-13deg); }
  83% { transform: rotate(11deg); }
  88% { transform: rotate(-7deg); }
  93% { transform: rotate(4deg); }
}
.ico-seta { animation: empurra 1.7s ease-in-out infinite; }
@keyframes empurra { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.ico-play { fill: currentColor; }

.premido { transform: scale(.955) !important; }
.onda {
  position: absolute; z-index: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .42);
  transform: scale(0); opacity: 1; pointer-events: none;
  animation: onda .62s ease-out forwards;
}
@keyframes onda { to { transform: scale(1); opacity: 0; } }
.faisca {
  position: fixed; z-index: 95; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sole); box-shadow: 0 0 8px var(--sole);
  pointer-events: none;
}

/* ─── modelo 3D ─── */
.modello { background: var(--notte); padding-inline: 0 !important; padding-bottom: calc(var(--raio) + 24px) !important; }
.modello-cab { padding-inline: var(--margem); margin-bottom: 28px; }

.modello-grade { position: relative; }
.modello-palco {
  --c: var(--luz);
  position: sticky; top: 0; z-index: 3;
  height: clamp(340px, 52svh, 470px);
  padding-top: 58px;
  background: var(--notte);
  display: flex; flex-direction: column;
}
.modello-palco[data-fase="1"] { --c: var(--sole); }
.modello-palco[data-fase="2"] { --c: #ff6b57; }
.modello-palco::before {
  content: ""; position: absolute; inset: 40px 0 44px;
  background-color: var(--c);
  -webkit-mask: radial-gradient(closest-side, #000, transparent);
  mask: radial-gradient(closest-side, #000, transparent);
  opacity: .13;
  transition: background-color .9s ease;
  pointer-events: none;
}
.modello-palco::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 38px;
  background: linear-gradient(180deg, var(--notte), rgba(7, 26, 32, 0));
  pointer-events: none;
}
#nuvem {
  position: relative; flex: 1; min-height: 0; width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
#nuvem:active { cursor: grabbing; }
.modello-dica {
  position: absolute; left: 0; right: 0; top: 64px;
  display: flex; align-items: center; justify-content: center; gap: .55em;
  font-size: .76rem; color: rgba(251, 248, 241, .6);
  transition: opacity .4s;
  pointer-events: none;
}
.modello-dica.sumiu { opacity: 0; }
.dica-mao {
  width: 10px; height: 10px; border-radius: 50%; background: var(--c);
  transition: background-color .6s;
  margin-right: 6px;
  animation: dica 2.2s var(--mola) infinite;
}
@keyframes dica {
  0%, 100% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
}
.modello-abas {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 12px 8px;
}
.aba {
  display: flex; align-items: center; justify-content: center; gap: .36em;
  min-height: 46px; padding: 0 .3em;
  border-radius: 14px;
  font-size: clamp(.74rem, 3vw, .95rem); font-weight: 500;
  color: rgba(251, 248, 241, .74);
  background: rgba(255, 255, 255, .07);
  transition: background-color .35s, color .3s, transform .26s var(--mola);
}
.aba svg { width: 1.3em; height: 1.3em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aba .ico-cheio { fill: currentColor; stroke: none; }
.aba.ativa { background: var(--c); color: var(--tinta); animation: aba-pula .45s var(--mola); }
@keyframes aba-pula { 40% { transform: translateY(-4px) scale(1.03); } }

.modello-fasi { position: relative; z-index: 1; padding: 34px var(--margem) 0; }
.fase {
  min-height: 50svh;
  padding-bottom: 54px;
  scroll-margin-top: 54svh;
}
.fase:last-child { min-height: 42svh; padding-bottom: 24px; }
.fase > * { transition: opacity .45s ease; }
.fase:not(.atual) > * { opacity: .34; }
.fase-dim { font-size: .92rem; margin-bottom: 4px; color: var(--luz); }
.fase:nth-child(2) .fase-dim { color: var(--sole); }
.fase:nth-child(3) .fase-dim { color: #ff8a78; }
.fase h3 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 300; line-height: 1.12; letter-spacing: -.018em;
  margin-bottom: 12px;
}
.fase p:not(.fase-dim) { color: rgba(251, 248, 241, .82); max-width: 34rem; }

/* ─── filme ─── */
.filme { background: var(--lago); }
.filme-cab { margin-bottom: 26px; max-width: 54rem; }
.player { max-width: 1060px; margin-inline: auto; }
.player-tela {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: var(--notte);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .34);
}
#filme-canvas { width: 100%; height: 100%; }
.player-toque { position: absolute; inset: 0; display: grid; place-items: center; }
.player-icone {
  position: relative;
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(7, 26, 32, .66); color: var(--branco);
  opacity: 0; transform: scale(.8);
  transition: opacity .25s, transform .3s var(--mola);
}
.player-icone svg { position: absolute; width: 34px; height: 34px; fill: currentColor; }
.player-icone .i-play { display: none; }
.player.pausado .player-icone { opacity: 1; transform: none; }
.player.pausado .i-play { display: block; }
.player.pausado .i-pausa { display: none; }
.player-icone.pisca { animation: pisca .55s ease-out; }
@keyframes pisca { 0% { opacity: 1; transform: scale(.86); } 100% { transform: scale(1.14); } }
.player.pausado .player-icone.pisca { animation: none; }

.player-legenda {
  min-height: 3.5em;
  padding: 16px 2px 2px;
  font-size: clamp(1.02rem, 2.8vw, 1.32rem); font-weight: 300; line-height: 1.34;
  transition: opacity .18s ease;
}
.player-legenda.troca { opacity: 0; }
.player-barra {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 14px 0 10px;
  touch-action: none; cursor: pointer;
}
.seg {
  display: block; height: 6px; border-radius: 6px; overflow: hidden;
  background: rgba(255, 255, 255, .18);
  transition: transform .2s var(--mola);
}
.player-barra.arrasta .seg { transform: scaleY(1.7); }
.seg i { display: block; height: 100%; background: var(--sole); transform: scaleX(0); transform-origin: left; }
.seg:nth-child(1) i { background: var(--luz); }
.seg:nth-child(3) i { background: #ff6b57; }
.player-capitulos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cap {
  min-height: 44px; border-radius: 12px;
  font-size: clamp(.76rem, 3vw, .95rem);
  color: rgba(251, 248, 241, .66);
  transition: color .25s, background-color .25s, transform .26s var(--mola);
}
.cap.ativo { color: var(--branco); background: rgba(255, 255, 255, .1); font-weight: 500; }

/* ─── boleta ─── */
.boleta { background: var(--carta); color: var(--tinta); }
.boleta-grade { display: grid; gap: 30px; max-width: 1180px; margin-inline: auto; }
.boleta .titulo { font-size: clamp(1.9rem, 5.2vw, 3.4rem); margin-bottom: 26px; }

.alterna {
  --x: 0;
  position: relative; display: inline-grid; grid-template-columns: repeat(2, minmax(7.5rem, auto));
  padding: 4px; border-radius: 999px;
  background: rgba(13, 35, 41, .08);
}
.alterna[data-i="1"] { --x: 1; }
.alterna-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--tinta);
  transform: translateX(calc(var(--x) * 100%));
  transition: transform .36s var(--mola);
}
.alterna button {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .42em;
  min-height: 48px; padding: 0 1em;
  border-radius: 999px; font-weight: 500;
  color: rgba(13, 35, 41, .72);
  transition: color .3s, transform .24s var(--mola);
}
.alterna button svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.alterna button.ativo { color: var(--branco); }
.alterna button.ativo svg { color: var(--sole); }

.papel {
  position: relative;
  padding: 26px clamp(16px, 4vw, 34px) 30px;
  background: var(--papel);
  box-shadow: 0 24px 56px rgba(13, 35, 41, .15);
  overflow: hidden;
}
.papel::before, .papel::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background-repeat: repeat-x; background-size: 18px 10px;
}
.papel::before { top: 0; background-image: radial-gradient(circle at 9px 0, var(--carta) 6.5px, transparent 7px); }
.papel::after { bottom: 0; background-image: radial-gradient(circle at 9px 10px, var(--carta) 6.5px, transparent 7px); }
.papel-topo {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1.5px dashed rgba(13, 35, 41, .22);
}
.papel-titulo { font-size: 1.2rem; font-weight: 500; }
.papel-barras {
  width: 92px; height: 26px; flex: none;
  background: repeating-linear-gradient(90deg, var(--tinta) 0 2px, transparent 2px 5px, var(--tinta) 5px 6px, transparent 6px 10px);
  opacity: .78;
}
.papel-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 74px; z-index: 2;
  background: linear-gradient(180deg, rgba(47, 168, 119, 0), rgba(47, 168, 119, .2));
  border-bottom: 2px solid var(--verde);
  transform: translateY(-110%);
  pointer-events: none;
}
.papel.escaneia .papel-scan { animation: scan 1.25s ease-in-out both; }
@keyframes scan {
  0% { transform: translateY(-110%); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(620px); opacity: 0; }
}
.voce { border-bottom: 1px solid rgba(13, 35, 41, .1); }
.voce button {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 10px; row-gap: 4px;
  width: 100%; min-height: 62px; padding: 12px 34px 12px 8px;
  text-align: left; border-radius: 10px;
  transition: background-color .25s;
}
.voce-nome { font-weight: 500; line-height: 1.3; }
.voce-selo {
  grid-column: 1; font-size: .78rem; color: rgba(13, 35, 41, .56);
}
.voce-selo-sim {
  justify-self: start;
  display: inline-flex; align-items: center; gap: .45em;
  padding: .12em .72em; border-radius: 999px;
  background: var(--verde); color: #fff; font-weight: 500;
}
.voce-selo-sim::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: ponto 1.5s ease-in-out infinite;
}
@keyframes ponto { 50% { transform: scale(.45); opacity: .5; } }
.voce-mais {
  position: absolute; right: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  transition: transform .3s var(--mola);
}
.voce-mais::before, .voce-mais::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.voce-mais::after { transform: rotate(90deg); transition: transform .3s var(--mola); }
.voce.aberta .voce-mais { transform: rotate(180deg); }
.voce.aberta .voce-mais::after { transform: rotate(0); }
.voce.sim button { background: rgba(47, 168, 119, .09); }
.voce-corpo {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s var(--mola);
}
.voce-corpo > p {
  overflow: hidden; min-height: 0;
  padding: 0 34px 0 8px;
  font-size: .94em; color: rgba(13, 35, 41, .78);
  transition: padding .34s var(--mola);
}
.voce.aberta .voce-corpo { grid-template-rows: 1fr; }
.voce.aberta .voce-corpo > p { padding-block: 8px 16px; }
.papel-nota { margin: 16px 0 8px; font-size: .78rem; color: rgba(13, 35, 41, .56); line-height: 1.4; }

/* ─── historia ─── */
.historia {
  background: var(--papel); color: var(--tinta);
  display: grid; gap: 34px;
  justify-items: start;
}
.historia-retrato {
  position: relative;
  width: min(58vw, 340px); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(circle at 50% 42%, #ffd28a, var(--sole) 54%, var(--alba));
}
.retrato-anel {
  position: absolute; inset: -30%; z-index: -1;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .34), transparent 30%, rgba(255, 255, 255, .22) 55%, transparent 80%, rgba(255, 255, 255, .34));
  animation: gira 11s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }
.retrato-iniciais { font-size: clamp(3.6rem, 13vw, 6.4rem); font-weight: 300; letter-spacing: -.03em; color: var(--tinta); }
.retrato-midia { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.historia-texto { max-width: 40rem; }
.historia-texto .titulo { margin-bottom: 18px; }
.historia-texto > p:not(.kicker) { margin-bottom: 14px; color: rgba(13, 35, 41, .84); }
.historia-texto .historia-destaque { font-size: 1.22em; font-weight: 300; line-height: 1.38; color: var(--tinta); }
.historia-texto .historia-firma { font-size: .86rem; color: rgba(13, 35, 41, .6); margin-bottom: 20px; }

/* ─── questionario ─── */
.quiz { background: var(--lago-2); }
.quiz .titulo { margin-bottom: 26px; }
.quiz-caixa {
  max-width: 44rem;
  min-height: 360px;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 24px;
  background: rgba(7, 26, 32, .56);
}
.quiz-trilha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 24px; }
.quiz-trilha i {
  height: 5px; border-radius: 5px;
  background: rgba(255, 255, 255, .15);
  transition: background-color .35s;
}
.quiz-trilha i.on { background: var(--sole); }
.quiz-tela.ativa { animation: tela .42s var(--mola) both; }
@keyframes tela { from { opacity: 0; transform: translateX(22px); } }
.quiz-tela h3 { font-size: clamp(1.32rem, 4vw, 1.9rem); font-weight: 400; line-height: 1.22; margin-bottom: 18px; }
.quiz-opcoes { display: grid; gap: 10px; }
.opcao {
  position: relative; overflow: hidden;
  min-height: 62px; padding: .7em 1.2em;
  border-radius: 18px;
  text-align: left; font-weight: 500;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .13);
  transition: transform .26s var(--mola), background-color .25s, color .25s;
}
.opcao.escolhida { background: var(--sole); color: var(--tinta); animation: aba-pula .4s var(--mola); }
.res-caminho {
  display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center;
  margin: 6px 6px 6px;
}
.res-no {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transition: background-color .4s;
}
.res-no.alvo { background: var(--sole); animation: halo-sol 1.8s ease-out infinite; }
.res-fio { height: 2px; background: rgba(255, 255, 255, .2); }
.res-rotulos {
  display: flex; justify-content: space-between;
  margin-bottom: 22px;
  font-size: .76rem; color: rgba(251, 248, 241, .6);
}
.res-rotulos .alvo { color: var(--sole); font-weight: 500; }
.quiz-res p { color: rgba(251, 248, 241, .84); margin-bottom: 22px; }
.quiz-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── final ─── */
.final {
  background: linear-gradient(180deg, #ffb547 0%, #ff9a55 60%, #ff7a59 100%);
  color: var(--tinta);
  padding-bottom: 28px !important;
  isolation: isolate;
  text-align: center;
}
.final-sol {
  position: absolute; z-index: -1; left: 50%; bottom: -44vmin;
  width: 118vmin; height: 118vmin; border-radius: 50%;
  background: radial-gradient(closest-side, #fff6dc 0, #ffeab8 80%, rgba(255, 234, 184, .55) 88%, rgba(255, 223, 158, 0));
  transform: translate(-50%, 46%);
  will-change: transform;
}
.final-texto { max-width: 60rem; margin-inline: auto; padding-block: 24px 54px; }
.final-texto .titulo { margin-bottom: 14px; }
.final-texto > p { margin-bottom: 26px; font-size: 1.12em; }
.final-contatos {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px;
  margin-top: 18px; font-weight: 500;
}
.final-contatos a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.rodape {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(13, 35, 41, .2);
  font-size: .86rem;
}
#rodape-piva:empty { display: none; }

/* ─── barra inteligente ─── */
.barra {
  position: fixed; z-index: 45; left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(calc(100vw - 24px), 430px);
  min-height: 56px; padding: .5em 1.15em;
  display: flex; align-items: center; gap: .65em;
  border-radius: 999px;
  background: var(--sole); color: var(--tinta);
  font-weight: 500; text-decoration: none;
  overflow: hidden; isolation: isolate;
  box-shadow: 0 12px 30px rgba(4, 16, 22, .34);
  transform: translate(-50%, 160%);
  transition: transform .5s var(--mola);
}
.barra.visivel { transform: translate(-50%, 0); }
.barra.premido { transform: translate(-50%, 0) scale(.97) !important; }
.barra svg { flex: none; width: 1.42em; height: 1.42em; position: relative; z-index: 1; }
.barra #barra-texto { flex: 1; position: relative; z-index: 1; line-height: 1.2; transition: opacity .14s, transform .14s; }
.barra.troca #barra-texto { opacity: 0; transform: translateY(6px); }
.barra::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .58), transparent);
  animation: brilho 4.2s ease-in-out infinite;
}

/* ─── estado sem WebGL ─── */
.sem-nuvem::before { opacity: .34; }
.sem-nuvem #nuvem { visibility: hidden; }

/* ─── computador ─── */
@media (min-width: 900px) {
  .capa { padding-bottom: 56px; }
  .topo { left: 22px; right: 22px; top: 16px; }

  .modello-grade {
    display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    align-items: start;
  }
  .modello-palco {
    grid-column: 2; grid-row: 1;
    top: 0; height: 100vh; height: 100svh;
    padding: 70px 34px 92px 0;
    background: none;
  }
  .modello-palco::after { display: none; }
  .modello-palco::before { inset: 60px 0 140px; }
  .modello-dica { top: 74px; padding-right: 34px; }
  .modello-abas { padding: 0; gap: 10px; }
  .modello-fasi { grid-column: 1; grid-row: 1; padding: 22vh var(--margem) 16vh; }
  .fase { min-height: 72vh; padding-bottom: 0; }
  .fase:last-child { min-height: 50vh; }
  .aba { min-height: 54px; border-radius: 16px; }

  .filme { --largura-player: min(1060px, calc(58vh * 1.7)); }
  .filme-cab { width: var(--largura-player); max-width: 100%; margin-inline: auto; }
  .filme .titulo { font-size: clamp(2rem, 3.8vw, 3.3rem); }
  .player { width: var(--largura-player); max-width: 100%; }
  .player-tela { aspect-ratio: 1.7; }
  .player-legenda { min-height: 2.6em; text-align: center; }

  .boleta-grade { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .boleta-cab { position: sticky; top: 110px; }

  .historia { grid-template-columns: auto minmax(0, 1fr); gap: clamp(46px, 7vw, 110px); align-items: center; justify-content: center; }

  .quiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
  .quiz .titulo { margin-bottom: 0; }

  .barra { left: auto; right: 22px; bottom: 20px; width: auto; min-width: 280px; transform: translateY(160%); }
  .barra.visivel { transform: none; }
  .barra.premido { transform: scale(.97) !important; }
}

/* ─── passar o mouse: so em aparelho com mouse ─── */
@media (hover: hover) and (pointer: fine) {
  .aba:not(.ativa):hover, .cap:not(.ativo):hover { background: rgba(255, 255, 255, .13); color: var(--branco); }
  .opcao:not(.escolhida):hover { background: rgba(255, 255, 255, .17); }
  .voce button:hover { background: rgba(13, 35, 41, .05); }
  .voce.sim button:hover { background: rgba(47, 168, 119, .15); }
  .idiomas a:hover { color: var(--branco); }
  .idiomas[data-ativo="it"] a[data-lang="it"]:hover,
  .idiomas[data-ativo="en"] a[data-lang="en"]:hover,
  .idiomas[data-ativo="pt"] a[data-lang="pt"]:hover,
  .idiomas[data-ativo="es"] a[data-lang="es"]:hover { color: var(--tinta); }
  .btn-vetro:hover { background: rgba(255, 255, 255, .22); }
  .btn-linha:hover { background: rgba(255, 255, 255, .1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
