/* Polineu — sistema visual (protótipo) */
:root {
  /* Materiais italianos */
  --ink: #1c1a18;          /* nero ferro */
  --ink-2: #3d3934;
  --muted: #6e675e;
  --line: #e4dfd7;
  --soft: #f4f1ec;         /* pietra */
  --white: #fbfaf8;        /* bianco Carrara */
  --accent: #b5412a;       /* rosso cotto lombardo */
  --accent-ink: #94321f;
  --accent-soft: #f6e6e1;
  --verde: #2f5a4b;        /* verde persiana */
  --giallo: #d49a2a;       /* giallo Torino */
  --dot: #cdc6bb;
  --foot: #eee9e1;         /* pietra serena, fundo do rodapé */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Manrope", system-ui, sans-serif;
  --it: "Bodoni Moda", "Didot", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); caret-color: var(--accent); -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
::selection { background: var(--ink); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #c3c9d4 transparent; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4.1rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 46ch; line-height: 1.6; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
section { padding-block: clamp(72px, 10vw, 128px); }
.soft { background: var(--soft); }
.sec-head { display: grid; gap: 20px 64px; grid-template-columns: 1fr; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.sec-head p { color: var(--muted); max-width: 48ch; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem/1 var(--text); padding: 15px 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; gap: 24px; }
.site-nav { display: none; gap: 30px; font-size: .95rem; color: var(--ink-2); }
.site-nav a { text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 8px; }
@media (min-width: 960px) { .site-nav { display: flex; } }
@media (min-width: 960px) and (max-width: 1099px) { .site-nav { gap: 20px; font-size: .92rem; } }
.header-cta { padding: 12px 20px; font-size: .95rem; }

/* Logo */
.logo { display: inline-flex; text-decoration: none; color: var(--ink); }
.logo svg { height: 50px; width: auto; overflow: visible; }
.site-footer .logo svg { height: 42px; }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 1.05fr; gap: 40px; } }
.hero h1 .l2 { color: var(--accent); display: block; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; }
.hero-note { font-size: .9rem; color: var(--muted); }

/* Carta portulana (Gênova/Veneza): litoral em traço, rosas dos ventos e linhas de rumo */
.dotmap { position: relative; width: 100%; aspect-ratio: 1000 / 924; }
.dotmap svg { width: 100%; height: 100%; overflow: visible; }
.chart .rhumb { stroke-width: .8; opacity: .16; }
.chart .rhumb.r { stroke: var(--accent); } .chart .rhumb.g { stroke: var(--verde); } .chart .rhumb.k { stroke: var(--ink); }
.chart .coast { fill: none; stroke: #d3ccc1; stroke-width: 1; stroke-linejoin: round; }
.chart .coast-br { fill: rgba(47,90,75,.08); stroke: var(--verde); stroke-width: 1.8; stroke-linejoin: round; }
.chart .coast-it { fill: rgba(181,65,42,.12); stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.chart .rose path { stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.chart .rose .f1 { fill: var(--ink); } .chart .rose .f2 { fill: var(--white); }
.chart .rose circle { fill: none; stroke: var(--ink); stroke-width: 1; }
.chart .route { fill: none; stroke: var(--accent); stroke-width: 3.2; stroke-linecap: round; }
.chart .route-ghost { fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .6; }
.chart .pin { fill: var(--white); stroke: var(--verde); stroke-width: 3.5; }
.chart .pin-it { fill: var(--accent); stroke: var(--white); stroke-width: 3; }
.chart .pulse { fill: var(--accent); opacity: .25; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
.chart text { font: 600 28px var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--white); stroke-width: 8px; stroke-linejoin: round; }
.chart text.sub { font: italic 400 25px var(--it); fill: var(--muted); }
.chart text.sea { font: italic 400 30px var(--it); fill: #8d8478; stroke: none; letter-spacing: .14em; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .chart .pulse { animation: none; } }

/* Camada italiana: a frase em italiano que acompanha o título */
.it-line { display: block; font-family: var(--it); font-style: italic; font-weight: 400; letter-spacing: 0; font-size: .5em; line-height: 1.25; color: var(--muted); margin-top: .55em; }
h1 .it-line { font-size: max(.34em, 1.05rem); }
.it-word { font-family: var(--it); font-style: italic; font-weight: 400; letter-spacing: 0; }

/* Arco dos pórticos (Turim, Bolonha) como moldura */
.arch { border-radius: 999px 999px 18px 18px !important; overflow: hidden; }

/* Terrazzo veneziano (SVG gerado, discreto) */
.terrazzo { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg opacity='.5'%3E%3Cpath d='M12 20l7-3 3 6-6 3z' fill='%23b5412a'/%3E%3Cpath d='M80 14l9 2-2 7-8-2z' fill='%23d49a2a'/%3E%3Cpath d='M140 30l6 5-5 5-5-6z' fill='%232f5a4b'/%3E%3Cpath d='M40 90l8-2 2 7-8 2z' fill='%23e8e2d8'/%3E%3Cpath d='M110 80l5 6-6 3-3-6z' fill='%23b5412a'/%3E%3Cpath d='M160 120l7 1-1 7-7-1z' fill='%23e8e2d8'/%3E%3Cpath d='M20 150l6-4 4 5-6 4z' fill='%23d49a2a'/%3E%3Cpath d='M90 150l8 3-3 6-7-3z' fill='%232f5a4b'/%3E%3Ccircle cx='60' cy='45' r='2' fill='%23e8e2d8'/%3E%3Ccircle cx='130' cy='160' r='2.2' fill='%23b5412a'/%3E%3Ccircle cx='170' cy='70' r='1.6' fill='%23d49a2a'/%3E%3Ccircle cx='70' cy='120' r='1.4' fill='%23e8e2d8'/%3E%3C/g%3E%3C/svg%3E"); }

/* Trust strip */
.trust { border-top: 1px solid var(--line); padding-block: 28px; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 16px 48px; align-items: center; justify-content: space-between; font-size: .95rem; color: var(--ink-2); }
.trust strong { color: var(--ink); font-weight: 600; }
.trust-item { display: flex; gap: 12px; align-items: center; }
.trust-item svg { width: 22px; height: 22px; flex: none; color: var(--verde); }

/* Vídeo motion */
.video { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; color: #fff; isolation: isolate; }
.video .scene { position: absolute; inset: 0; }
.video .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 84px; height: 84px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.08); display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .4s var(--ease), background .3s; z-index: 2; }
.video .play:hover { transform: scale(1.06); background: rgba(255,255,255,.16); }
.video .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video .meta { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; z-index: 2; color: rgba(255,255,255,.82); }
.video .meta b { color: #fff; font-weight: 600; }
.video .status { position: absolute; left: 24px; top: 20px; font-size: .8rem; color: rgba(255,255,255,.7); z-index: 2; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* Lista de linhas (estilo índice) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease); }
.row:hover { padding-inline: 8px; }
.row h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.row p { color: var(--muted); font-size: .97rem; grid-column: 1; }
.row .tags { display: none; gap: 8px; }
.row .tag { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-2); white-space: nowrap; }
.row .go { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; color: var(--ink); transition: transform .35s var(--ease), color .3s; }
.row:hover .go { transform: translateX(4px); color: var(--accent); }
@media (min-width: 900px) {
  .row { grid-template-columns: 1.1fr 1.4fr auto 28px; }
  .row p { grid-column: 2; grid-row: 1; }
  .row .tags { display: flex; grid-column: 3; grid-row: 1; }
  .row .go { grid-column: 4; grid-row: 1; }
}

/* Etapas compactas */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(6, 1fr); } }
.step { padding: 28px 24px 8px 0; position: relative; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--verde); }
.step.it::before { background: var(--accent); border-color: var(--accent); }
.step small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.steps-sea { display: flex; justify-content: space-between; font-size: .82rem; color: var(--muted); margin-bottom: 14px; }

/* Checagem rápida (widget de conversão) */
.check { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .check { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 30px 60px -40px rgba(28,26,24,.35); }
.panel fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.panel legend { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; font-size: .9rem; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; transition: background .2s, color .2s, border-color .2s; }
.chip input:hover + span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.verdict { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; min-height: 120px; }
.verdict small { color: var(--muted); font-size: .85rem; }
.verdict strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.55rem; letter-spacing: -0.02em; margin: 4px 0 6px; line-height: 1.15; }
.verdict p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.verdict.good strong { color: var(--verde); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); margin-top: 4px; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }

/* CTA final */
.final { background-color: var(--ink); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 80px); display: grid; gap: 32px; align-items: end; position: relative; overflow: hidden; }
@media (min-width: 900px) { .final { grid-template-columns: 1.4fr auto; } }
.final p { color: rgba(255,255,255,.72); margin-top: 16px; max-width: 48ch; }
.final h2 .accent { color: #f0b24a; }
.final .it-line { color: rgba(255,255,255,.62); }

/* Footer */
.site-footer { padding-block: 72px 40px; font-size: .9rem; color: var(--muted); background: var(--foot); border-top: 1px solid var(--line); }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding-bottom: 40px; margin-bottom: 28px; }
@media (min-width: 900px) { .site-footer .cols { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h4 { font: 600 .9rem var(--text); color: var(--ink); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { display: grid; gap: 10px; font-size: .82rem; line-height: 1.55; }

/* WhatsApp flutuante */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.wa:hover { transform: scale(1.06); }
.wa svg { width: 28px; height: 28px; }

/* Barra fixa de CTA no celular */
.mobile-cta { position: fixed; left: 12px; right: 84px; bottom: 20px; z-index: 55; display: flex; justify-content: center; transform: translateY(140%); transition: transform .45s var(--ease); }
.mobile-cta.show { transform: none; }
.mobile-cta .btn { width: 100%; justify-content: center; box-shadow: 0 14px 30px -12px rgba(181,65,42,.55); }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* Revelação */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Breadcrumb */
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Formulário */
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; font: 500 1rem var(--text); color: var(--ink); background: var(--white); border: 1px solid #cfd5df; border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s; appearance: none; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1a2b' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.input::placeholder { color: #8b94a6; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,26,24,.08); }
.input[aria-invalid="true"] { border-color: #c62f1b; box-shadow: 0 0 0 4px rgba(198,47,27,.08); }
.error { color: #b3261e; font-size: .88rem; font-weight: 500; min-height: 0; }
.error:empty { display: none; }
.options { display: grid; gap: 10px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid #cfd5df; border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--ink-2); }
.opt input { appearance: none; width: 18px; height: 18px; border: 1.5px solid #9aa3b3; border-radius: 50%; margin: 2px 0 0; flex: none; display: grid; place-items: center; cursor: pointer; }
.opt input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .2s var(--ease); }
.opt input:checked { border-color: var(--accent); }
.opt input:checked::after { transform: scale(1); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--soft); }
.opt input[type=checkbox] { border-radius: 5px; }
.opt input[type=checkbox]::after { border-radius: 2px; }
.grid-2 { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* Motion explicativo */
.motion { background: #191714; }
.motion:not(.pv) .scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-rumos, .pv-mar, .pv-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.motion .m-land { fill: none; stroke: #4a443c; stroke-width: 1.2; }
.motion .m-br { fill: transparent; stroke: #6d665c; stroke-width: 1.8; transition: fill 1.2s, stroke 1.2s; }
.motion .m-it { fill: transparent; stroke: #6d665c; stroke-width: 1.8; transition: fill 1.2s, stroke 1.2s; }
.motion[data-scene="history"] .m-it, .motion[data-scene="italy"] .m-it, .motion[data-scene="route"] .m-it, .motion[data-scene="steps"] .m-it, .motion[data-scene="cta"] .m-it { fill: rgba(224,107,80,.25); stroke: #e06b50; }
.motion[data-scene="brazil"] .m-br, .motion[data-scene="route"] .m-br, .motion[data-scene="steps"] .m-br, .motion[data-scene="cta"] .m-br { fill: rgba(126,184,160,.18); stroke: #8fc2ab; }
.motion .m-old { fill: none; stroke: #c9bfb0; stroke-width: 2; stroke-dasharray: 2 7; opacity: .8; }
.motion .m-new { fill: none; stroke: #e06b50; stroke-width: 3; stroke-linecap: round; }
.motion .m-pin { fill: #e9edf3; opacity: 0; transition: opacity .8s; }
.motion .m-pin-it { fill: #e06b50; opacity: 0; transition: opacity .8s; }
.motion:not([data-scene]) .m-pin, .motion:not([data-scene]) .m-pin-it, .motion[data-scene] .m-pin, .motion[data-scene] .m-pin-it { opacity: 1; }
.motion .m-mk { fill: #191714; stroke: #e9edf3; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .5s, transform .6s var(--ease); }
.motion .m-mk.it { stroke: #e06b50; }
.motion .m-rhumb { stroke: #e06b50; stroke-width: .8; opacity: .14; }
.motion[data-scene="steps"] .m-mk, .motion[data-scene="cta"] .m-mk { opacity: 1; transform: none; }
.motion[data-scene="steps"] .m-mk:nth-child(2) { transition-delay: .15s; } .motion[data-scene="steps"] .m-mk:nth-child(3) { transition-delay: .3s; }
.motion[data-scene="steps"] .m-mk:nth-child(4) { transition-delay: .45s; } .motion[data-scene="steps"] .m-mk:nth-child(5) { transition-delay: .6s; } .motion[data-scene="steps"] .m-mk:nth-child(6) { transition-delay: .75s; }
.motion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,23,20,.92) 0%, rgba(25,23,20,.55) 38%, rgba(25,23,20,0) 60%); pointer-events: none; z-index: 1; }
.motion .caption { position: absolute; left: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); bottom: clamp(44px, 6vw, 64px); z-index: 2; font-family: var(--display); font-weight: 500; letter-spacing: -0.015em; font-size: clamp(1.1rem, 2.4vw, 1.9rem); line-height: 1.2; max-width: 20ch; opacity: 0; }
.motion .caption.in { animation: capIn .9s var(--ease) forwards; }
@keyframes capIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.motion .prog { position: absolute; left: clamp(20px, 4vw, 44px); right: clamp(20px, 4vw, 44px); bottom: 24px; height: 2px; background: rgba(255,255,255,.18); z-index: 2; border-radius: 2px; }
.motion .prog i { display: block; height: 100%; width: 0; background: #e06b50; border-radius: 2px; transition: width 4s linear; }
.motion.is-playing .play { opacity: 0; pointer-events: none; }
.motion .title-card { position: absolute; left: clamp(20px, 4vw, 44px); top: clamp(20px, 3vw, 32px); z-index: 2; font-size: .85rem; color: rgba(255,255,255,.72); }
.motion .title-card b { color: #fff; font-weight: 600; }
.video .status.flash { color: #fff; }
.video-script { margin-top: 18px; font-size: .95rem; color: var(--muted); max-width: 70ch; }

.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .85rem; color: var(--muted); margin-top: 8px; justify-content: flex-end; }
.map-legend span { display: inline-flex; align-items: center; gap: 10px; }
.map-legend i { display: inline-block; width: 28px; height: 0; border-top: 2px dotted var(--ink-2); }
.map-legend i.now { border-top: 2px solid var(--accent); }

/* rodapé: assinatura */
.assinatura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; }
.assinatura a { font-weight: 600; color: var(--ink); text-decoration: none; }
.assinatura a:hover { text-decoration: underline; }

.assinatura .vw { display: inline-flex; align-items: center; gap: 10px; }
.assinatura .vw img { height: 15px; width: auto; display: inline-block; }

/* Menu no celular */
.menu-btn { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.header-right { display: flex; align-items: center; gap: 10px; }
@media (min-width: 960px) { .menu-btn { display: none; } }
@media (max-width: 959px) {
  .site-header .header-cta { padding: 11px 16px; font-size: .9rem; }
  .site-nav.open { display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0; padding: 8px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -30px rgba(28,26,24,.4); animation: capIn .35s var(--ease); }
  .site-nav.open a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) { .logo svg { height: 40px; } }

/* ---------- Vídeo de etapa (motion graphics + locução) ---------- */
.ep { --k: 0; --cor: #8fc2ab; position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #191714; color: #fff; isolation: isolate; cursor: pointer; outline: none; user-select: none; }
.ep.ep-it { --cor: #f08a6c; }
.ep:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.ep-foto { position: absolute; inset: -4%; background-size: cover; background-position: center; z-index: -2; transform: scale(calc(1.02 + var(--k) * .12)) translateX(calc(var(--k) * -2%)); filter: saturate(.85); transition: filter .8s; }
.ep-grade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(25,23,20,.94) 0%, rgba(25,23,20,.78) 42%, rgba(25,23,20,.25) 100%), linear-gradient(0deg, rgba(25,23,20,.8), transparent 40%); }
.ep-head { position: absolute; left: 5.5%; top: 9%; display: flex; gap: 16px; align-items: center; }
.ep-ic { width: clamp(46px, 7vw, 74px); height: clamp(46px, 7vw, 74px); border-radius: 50%; border: 1.5px solid var(--cor); color: var(--cor); display: grid; place-items: center; }
.ep-ic svg { width: 54%; height: 54%; }
.ep-ic svg * { stroke-dasharray: 80; stroke-dashoffset: 0; }
.ep.is-on .ep-ic svg * { animation: epDraw 1.6s var(--ease) both; }
@keyframes epDraw { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
.ep-head b { display: block; font: 600 clamp(1.15rem, 2.6vw, 2rem)/1.05 var(--display); letter-spacing: -0.02em; }
.ep-head i { display: block; font: italic 400 clamp(.85rem, 1.5vw, 1.1rem) var(--it); color: rgba(255,255,255,.7); margin-top: 4px; }
.ep-pontos { list-style: none; margin: 0; padding: 0; position: absolute; left: 5.5%; top: 34%; display: grid; gap: clamp(6px, 1.2vw, 14px); max-width: 56%; }
.ep-pontos li { display: flex; gap: 12px; align-items: center; font: 600 clamp(.82rem, 1.75vw, 1.35rem)/1.2 var(--display); letter-spacing: -0.01em; color: rgba(255,255,255,.35); transform: translateX(-10px); opacity: .0; transition: opacity .6s var(--ease), transform .6s var(--ease), color .4s; }
.ep:not(.is-on) .ep-pontos li { opacity: .55; transform: none; }
.ep-pontos li.on { opacity: 1; transform: none; color: rgba(255,255,255,.6); }
.ep-pontos li.atual { color: #fff; }
.ep-ok { width: clamp(20px, 2.4vw, 28px); height: clamp(20px, 2.4vw, 28px); border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid rgba(255,255,255,.35); color: transparent; transition: background .4s, border-color .4s, color .4s; }
.ep-ok svg { width: 60%; height: 60%; }
.ep-pontos li.on .ep-ok { background: var(--cor); border-color: var(--cor); color: #191714; }
.ep-rota { position: absolute; right: 5%; top: 9%; display: grid; justify-items: end; gap: 8px; font: italic 400 .9rem var(--it); color: rgba(255,255,255,.75); }
.ep-rota-l { display: flex; align-items: center; gap: 0; }
.ep-rota-l i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); position: relative; }
.ep-rota-l i + i { margin-left: 16px; }
.ep-rota-l i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 16px; height: 1px; background: rgba(255,255,255,.35); }
.ep-rota-l i.b + i.t { margin-left: 34px; } .ep-rota-l i.b + i.t::before { width: 34px; background: none; border-top: 1px dashed rgba(255,255,255,.45); }
.ep-rota-l i.now { background: var(--cor); border-color: var(--cor); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
@media (max-width: 560px) { .ep-rota { display: none; } .ep-pontos { max-width: 80%; top: 36%; } }
.ep-cc { position: absolute; left: 50%; bottom: 62px; translate: -50% 0; width: max-content; max-width: 86%; text-align: center; font: 600 clamp(.85rem, 1.7vw, 1.2rem)/1.3 var(--text); background: rgba(15,13,11,.75); padding: 6px 12px; border-radius: 8px; opacity: 0; transition: opacity .25s; }
.ep-cc.on { opacity: 1; }
.ep-big { all: unset; cursor: pointer; position: absolute; right: 8%; bottom: 22%; width: clamp(56px, 8vw, 84px); height: clamp(56px, 8vw, 84px); border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 10px rgba(181,65,42,.25); transition: transform .4s var(--ease), box-shadow .4s; animation: epPulse 2.4s var(--ease) infinite; }
.ep-big svg { width: 34%; height: 34%; margin-left: 4%; }
.ep-big:hover { transform: scale(1.07); }
.ep-big:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes epPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181,65,42,.45); } 60% { box-shadow: 0 0 0 16px rgba(181,65,42,0); } }
.ep.is-playing .ep-big, .ep.is-on:not(.is-end) .ep-big { opacity: 0; pointer-events: none; }
.ep-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 10px; background: rgba(15,13,11,.5); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.ep.is-on .ep-bar, .ep:hover .ep-bar, .ep:focus-within .ep-bar { opacity: 1; }
.ep-btn { all: unset; cursor: pointer; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: rgba(255,255,255,.92); }
.ep-btn:hover { background: rgba(255,255,255,.12); }
.ep-btn:focus-visible { outline: 2px solid #fff; }
.ep-btn svg { width: 18px; height: 18px; }
.ep-ccb:not(.on) { opacity: .45; }
.ep-track { flex: 1; height: 30px; display: flex; align-items: center; position: relative; cursor: pointer; }
.ep-track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); }
.ep-track i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--cor); transform-origin: left; transform: scaleX(0); }
.ep:fullscreen { border-radius: 0; aspect-ratio: auto; }
@media (prefers-reduced-motion: reduce) { .ep-foto { transform: none; } .ep-big { animation: none; } .ep.is-on .ep-ic svg * { animation: none; } }

/* ================= Transições entre seções =================
   1) Cada bloco entra subindo e ganhando opacidade, em cascata.
   2) Títulos (h2) sobem por trás de uma máscara, como uma linha impressa; a linha italiana vem depois.
   3) O fundo "pietra" das seções alternadas se abre das bordas para a página inteira enquanto a seção entra.
   4) Entre páginas: a página atual sai suave e a próxima sobe (View Transitions); o cabeçalho fica parado. */
.js .sx-i { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .9s var(--ease) var(--d, 0ms), transform 1.15s var(--ease) var(--d, 0ms); }
.js .sx-i.sx-in { opacity: 1; transform: none; }
.js h2.sx-i, .js .sx-i > h2:first-child { opacity: 1; transform: translate3d(0, .55em, 0); clip-path: inset(-0.2em -0.2em 100% -0.2em); transition: clip-path 1.1s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
.js h2.sx-i.sx-in, .js .sx-i.sx-in > h2:first-child { transform: none; clip-path: inset(-0.2em -0.2em -0.35em -0.2em); }
.js .sx-i > h2:first-child { transition-delay: calc(var(--d, 0ms) + 80ms); }
.js .sx-i .it-line, .js h2.sx-i .it-line { opacity: 0; transform: translateX(-8px); transition: opacity 1s var(--ease) calc(var(--d, 0ms) + 420ms), transform 1s var(--ease) calc(var(--d, 0ms) + 420ms); }
.js .sx-i.sx-in .it-line { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    main section.soft { background: transparent; position: relative; }
    main section.soft::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--soft); animation: sxPietra linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes sxPietra { from { clip-path: inset(0 min(6vw, 72px) round 44px); } to { clip-path: inset(0 0 round 0); } }
  }
}
@media (prefers-reduced-motion: reduce) { .js .sx-i, .js h2.sx-i, .js .sx-i > h2:first-child, .js .sx-i .it-line { opacity: 1; transform: none; clip-path: none; transition: none; } }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  .site-header, .min-header { view-transition-name: topo; }
  ::view-transition-old(root) { animation: vtSai .32s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vtEntra .7s var(--ease) both; }
  @keyframes vtSai { to { opacity: 0; transform: translateY(-14px); } }
  @keyframes vtEntra { from { opacity: 0; transform: translateY(22px); } }
  /* entrada do topo da página na primeira carga */
  main > section:first-child .wrap > * { animation: sxTopo .9s var(--ease) both; }
  main > section:first-child .wrap > *:nth-child(2) { animation-delay: .08s; }
  main > section:first-child .wrap > *:nth-child(3) { animation-delay: .16s; }
  main > section:first-child .wrap > *:nth-child(n+4) { animation-delay: .22s; }
  @keyframes sxTopo { from { opacity: 0; transform: translateY(18px); } }
}

/* ================= Vídeo ampliado sem API de tela cheia (iPhone) ================= */
.ep.ep-max, .player.ep-max { position: fixed; inset: 0; z-index: 300; width: 100vw; height: 100dvh; max-width: none; border-radius: 0; aspect-ratio: auto; margin: 0; }
html.ep-lock, html.ep-lock body { overflow: hidden; }
html.ep-lock .site-header, html.ep-lock .min-header, html.ep-lock .wa, html.ep-lock .mobile-cta { visibility: hidden; }

/* ================= Celular ================= */
@media (max-width: 560px) {
  .ep { aspect-ratio: 4 / 5; border-radius: 16px; }
  .ep-grade { background: linear-gradient(180deg, rgba(25,23,20,.93) 0%, rgba(25,23,20,.74) 58%, rgba(25,23,20,.92) 100%); }
  .ep-head { left: 7%; right: 7%; top: 6.5%; gap: 12px; }
  .ep-head b { font-size: 1.25rem; }
  .ep-pontos { left: 7%; top: 29%; max-width: 86%; gap: 12px; }
  .ep-pontos li { font-size: 1rem; gap: 10px; }
  .ep-big { right: 7%; bottom: 17%; width: 58px; height: 58px; }
  .ep-cc { bottom: 58px; max-width: 90%; font-size: .9rem; }
  .ep-btn { width: 38px; height: 38px; }
}
@media (max-width: 959px) {
  .site-footer { padding-bottom: 112px; }
  .site-footer ul { gap: 2px; }
  .site-footer ul a { display: inline-block; padding-block: 7px; }
}
@media (max-width: 640px) {
  .site-footer .cols > div:nth-child(3) ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .site-footer .cols { gap: 28px; }
}

/* Saída suave entre páginas quando não há View Transitions */
@media (prefers-reduced-motion: no-preference) {
  main, .site-footer { transition: opacity .26s cubic-bezier(.4, 0, 1, 1), transform .26s cubic-bezier(.4, 0, 1, 1); }
  html.saindo main, html.saindo .site-footer { opacity: 0; transform: translateY(-12px); }
}
