/* Polineu — player do vídeo explicativo (home e landing pages) */
.player { outline: none; user-select: none; }
.player .scene { cursor: pointer; }
.player::after { background: linear-gradient(90deg, rgba(25,23,20,.75) 0%, rgba(25,23,20,.25) 40%, rgba(25,23,20,0) 62%), linear-gradient(0deg, rgba(25,23,20,.85) 0%, rgba(25,23,20,0) 30%); }
.pl-chapter { position: absolute; left: clamp(18px, 3vw, 36px); top: clamp(16px, 2.6vw, 30px); z-index: 2; font: italic 400 clamp(1rem, 1.8vw, 1.35rem) var(--it); color: rgba(255,255,255,.85); opacity: 0; }
.pl-chapter.in { animation: capIn .9s var(--ease) forwards; }
.pl-cc { position: absolute; left: 50%; bottom: 78px; translate: -50% 0; z-index: 3; width: max-content; max-width: min(88%, 40ch); text-align: center; font: 600 clamp(1rem, 2vw, 1.45rem)/1.3 var(--text); color: #fff; background: rgba(15,13,11,.72); padding: 8px 14px; border-radius: 8px; opacity: 0; transition: opacity .25s; }
.pl-cc.on { opacity: 1; }
.pl-big { all: unset; box-sizing: border-box; position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; display: inline-flex; align-items: center; gap: 14px; cursor: pointer; color: #fff; font: 600 1.05rem var(--text); padding: 12px 22px 12px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); transition: background .3s, transform .4s var(--ease); }
.pl-big:hover { background: rgba(255,255,255,.18); transform: scale(1.03); }
.pl-big:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.pl-big[hidden] { display: none; }
.pl-big-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.pl-big-ic svg { width: 20px; height: 20px; margin-left: 3px; }
.pl-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; background: rgba(15,13,11,.55); backdrop-filter: blur(8px); color: #fff; }
.pl-btn { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: rgba(255,255,255,.9); flex: none; }
.pl-btn:hover { background: rgba(255,255,255,.12); }
.pl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.pl-btn svg { width: 20px; height: 20px; }
.pl-cc-btn:not(.on) { opacity: .45; }
.pl-time { font-size: .8rem; color: rgba(255,255,255,.8); min-width: 32px; }
.pl-track { flex: 1; display: flex; gap: 3px; height: 36px; align-items: center; outline: none; }
.pl-track:focus-visible { outline: 2px solid #fff; border-radius: 4px; }
.pl-seg { all: unset; position: relative; flex-basis: 0; height: 100%; cursor: pointer; display: flex; align-items: center; }
.pl-seg::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); transition: height .2s; }
.pl-seg i { position: absolute; left: 0; right: 0; height: 3px; border-radius: 3px; background: #e06b50; transform-origin: left; transform: scaleX(0); transition: height .2s; }
.pl-seg:hover::before, .pl-seg:hover i { height: 6px; }
.pl-tip { position: absolute; bottom: 34px; left: 50%; translate: -50% 0; white-space: nowrap; font-size: .78rem; background: #fff; color: var(--ink); padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pl-seg:hover .pl-tip, .pl-seg:focus-visible .pl-tip { opacity: 1; }
@media (max-width: 640px) { .pl-total, .pl-time { display: none; } .pl-cc { bottom: 64px; font-size: .95rem; } .pl-bar { gap: 4px; } }
.pl-end { position: absolute; inset: 0; z-index: 4; display: grid; align-content: center; justify-items: start; gap: 18px; padding: clamp(24px, 6vw, 72px); background: rgba(25,23,20,.82); backdrop-filter: blur(4px); animation: capIn .7s var(--ease); }
.pl-end[hidden] { display: none; }
.pl-end-t { font: 600 clamp(1.4rem, 3vw, 2.3rem) var(--display); letter-spacing: -0.02em; }
.pl-end-areas { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; }
.pl-end-areas a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; font-size: .92rem; transition: background .2s, border-color .2s; }
.pl-end-areas a:hover { background: #fff; color: var(--ink); }
.pl-end-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.pl-again { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: rgba(255,255,255,.85); font-weight: 600; }
.pl-again svg { width: 18px; height: 18px; }
.player:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; }
.capitulos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; }
.capitulos button { all: unset; cursor: pointer; display: inline-flex; gap: 8px; align-items: baseline; font-weight: 500; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.capitulos button span { font-size: .8rem; color: var(--muted); }
.capitulos button:hover { color: var(--accent-ink); border-color: var(--accent); }
.capitulos button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ================= Cenas claras do vídeo (player-cenas.js) ================= */
.player.pv { background: var(--white); color: var(--ink); container-type: inline-size; box-shadow: 0 30px 60px -40px rgba(28,26,24,.45), inset 0 0 0 1px var(--line); }
.player.pv::after { content: none; }
.pv .scene { overflow: hidden; }
.pv .pl-big { background: rgba(28,26,24,.82); border-color: transparent; box-shadow: 0 18px 40px -16px rgba(28,26,24,.55); }
.pv .pl-big:hover { background: var(--ink); }
.pv .pl-end { background: rgba(251,250,248,.95); color: var(--ink); }
.pv .pl-end-areas a { color: var(--ink); border-color: var(--line); background: #fff; }
.pv .pl-end-areas a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pv .pl-again { color: var(--ink-2); }
.pv-q { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s; }
.pv-q.on { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.pv-q [data-at] { --p: 0; }
.pv-q figure { margin: 0; }
.pv-q img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* tipografia em unidades do próprio vídeo (cqw) */
.pv-txt { position: absolute; left: 6cqw; top: 13%; max-width: 50cqw; z-index: 2; }
.pv-txt h3 { font: 600 6.6cqw/1 var(--display); letter-spacing: -0.03em; margin: 0; }
.pv-txt .pv-h-m { font-size: 4.4cqw; line-height: 1.05; }
.pv-l { display: block; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 0.5em)); clip-path: inset(calc((1 - var(--p)) * 100%) -0.2em -0.25em -0.2em); }
.pv-acc { color: var(--accent); }
.pv-txt em { font-style: normal; color: var(--accent); }
.pv-kicker { font: italic 400 2.1cqw var(--it); color: var(--muted); margin: 0 0 1.4cqw; opacity: var(--p); transform: translateX(calc((1 - var(--p)) * -2cqw)); }
.pv-verde { color: var(--verde); } .pv-cotto { color: var(--accent); }
.pv-sub { font: 500 2.2cqw/1.35 var(--text); color: var(--ink-2); margin-top: 2cqw; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 1.2cqw)); max-width: 30ch; }

/* 1 · De lá para cá */
.pv-rumos { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-rumos line { stroke: var(--accent); stroke-width: .7; opacity: .13; }
.pv-hist.on .pv-rumos { transform: rotate(calc(var(--k) * 4deg)) scale(1.05); transform-origin: 30% 30%; }
.pv-arco { position: absolute; right: 6cqw; top: 9%; width: 27cqw; height: 82%; border-radius: 999px 999px 2cqw 2cqw; overflow: hidden; z-index: 1; box-shadow: 0 2cqw 4cqw -2cqw rgba(28,26,24,.4); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 3cqw)); }
.pv-arco img { filter: sepia(.55) saturate(.8) contrast(1.05); transform: scale(calc(1.06 + var(--k, 0) * .14)); transform-origin: 50% 70%; }
.pv-mar { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.pv-arc { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 3 9; vector-effect: non-scaling-stroke; }
.pv-arc-on { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .5; }
.pv-tag { position: absolute; z-index: 4; font: 600 1.6cqw var(--text); padding: .6cqw 1.3cqw; border-radius: 999px; background: #fff; box-shadow: 0 .6cqw 1.6cqw -.6cqw rgba(28,26,24,.35); opacity: var(--p); transform: scale(calc(.6 + var(--p) * .4)); }
.pv-tag.pv-it { color: var(--accent); } .pv-tag.pv-br { color: var(--verde); }

/* 2 · As raízes */
.pv-meia { position: absolute; right: 0; top: 0; bottom: 0; width: 46cqw; clip-path: inset(0 0 0 calc((1 - var(--p)) * 100%)); }
.pv-meia img { transform: scale(calc(1.04 + var(--k, 0) * .12)) translateY(calc(var(--k, 0) * -2%)); filter: saturate(.9); }
.pv-meia::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--white) 0%, rgba(251,250,248,0) 30%); }
.pv-lugares { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2cqw; }
.pv-lugares li { display: flex; align-items: center; gap: 1.4cqw; font: 600 3.4cqw/1.1 var(--display); letter-spacing: -0.02em; opacity: var(--p); transform: translateX(calc((1 - var(--p)) * -3cqw)); }
.pv-lugares i { width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 calc(var(--p) * .8cqw) rgba(47,90,75,.15); }
.pv-voce { margin-top: 3cqw; font: 500 2.4cqw var(--text); color: var(--ink-2); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 1.5cqw)); }
.pv-voce b { font: 600 5cqw var(--display); color: var(--accent); letter-spacing: -0.03em; margin-left: .6cqw; display: inline-block; transform: scale(calc(.7 + var(--p) * .3)); transform-origin: left bottom; }

/* 3 · A Itália de hoje */
.pv-hoje .pv-txt { max-width: 46cqw; }
.pv-oficios { display: flex; flex-wrap: wrap; gap: 1.2cqw; margin-top: 3.2cqw; max-width: 44cqw; }
.pv-oficios span { font: 600 2.2cqw var(--text); color: #fff; background: var(--c); padding: 1cqw 2cqw; border-radius: 999px; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 2cqw)) scale(calc(.7 + var(--p) * .3)); box-shadow: 0 1cqw 2cqw -1cqw var(--c); }
.pv-foto { position: absolute; overflow: hidden; border-radius: 1.6cqw; box-shadow: 0 2cqw 4cqw -2cqw rgba(28,26,24,.45); opacity: var(--p); }
.pv-foto img { transform: scale(calc(1.05 + var(--k, 0) * .12)); }
.pv-f1 { right: 22cqw; top: 9%; width: 22cqw; height: 46%; transform: translateY(calc((1 - var(--p)) * 4cqw + var(--k, 0) * -1.5cqw)) rotate(-2deg); }
.pv-f2 { right: 4cqw; top: 15%; width: 19cqw; height: 40%; transform: translateY(calc((1 - var(--p)) * 4cqw + var(--k, 0) * 1.5cqw)) rotate(2.5deg); }
.pv-f3 { right: 11cqw; bottom: 9%; width: 24cqw; height: 34%; transform: translateY(calc((1 - var(--p)) * 4cqw + var(--k, 0) * -1cqw)) rotate(-1deg); }

/* 4 · O caminho de volta */
.pv-mapa { position: absolute; inset: 0; }
.pv-mapa svg { width: 100%; height: 100%; transform: scale(calc(1 + var(--k, 0) * .06)); transform-origin: 75% 40%; }
.pv-rumo-g line { stroke: var(--accent); stroke-width: .8; opacity: .12; }
.pv-terra { fill: #efeae2; stroke: #d9d1c4; stroke-width: 1; }
.pv-br-f { fill: rgba(47,90,75,.22); stroke: var(--verde); stroke-width: 1.4; }
.pv-it-f { fill: rgba(181,65,42,.25); stroke: var(--accent); stroke-width: 1.4; }
.pv-velho { fill: none; stroke: #b9b0a2; stroke-width: 2; stroke-dasharray: 2 8; }
.pv-novo { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.pv-cometa { fill: #fff; stroke: var(--accent); stroke-width: 4; filter: drop-shadow(0 0 8px rgba(181,65,42,.6)); }
.pv-pin { fill: var(--verde); stroke: #fff; stroke-width: 3; }
.pv-pin-it { fill: var(--accent); }
.pv-rota .pv-txt { top: 16%; }
.pv-rota .pv-txt::before { content: ""; position: absolute; inset: -3cqw -4cqw; background: radial-gradient(closest-side, rgba(251,250,248,.95), rgba(251,250,248,0)); z-index: -1; }

/* 5 · Aqui e lá */
.pv-etapas { display: grid; grid-template-columns: 1fr 8cqw 1.25fr; align-items: center; padding: 7% 6cqw 15%; }
.pv-lado { border-radius: 2cqw; padding: 2.4cqw 2.6cqw; opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 3cqw)); }
.pv-aqui { background: rgba(47,90,75,.1); } .pv-la { background: rgba(181,65,42,.09); }
.pv-lado > p { margin: 0 0 1.6cqw; display: flex; align-items: baseline; gap: 1.2cqw; }
.pv-lado > p b { font: 600 3.6cqw var(--display); letter-spacing: -0.03em; }
.pv-aqui > p b { color: var(--verde); } .pv-la > p b { color: var(--accent); }
.pv-lado > p i { font: italic 400 1.8cqw var(--it); color: var(--muted); }
.pv-lado ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1cqw; }
.pv-lado li { display: flex; align-items: center; gap: 1.3cqw; background: #fff; border-radius: 1.2cqw; padding: .9cqw 1.2cqw; font: 600 1.9cqw var(--text); opacity: var(--p); transform: translateX(calc((1 - var(--p)) * 2.5cqw)); box-shadow: 0 .6cqw 1.4cqw -1cqw rgba(28,26,24,.35); }
.pv-ic { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pv-aqui .pv-ic { color: var(--verde); background: rgba(47,90,75,.12); } .pv-la .pv-ic { color: var(--accent); background: rgba(181,65,42,.1); }
.pv-ic svg { width: 58%; height: 58%; }
.pv-ok { margin-left: auto; width: 2.4cqw; height: 2.4cqw; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--line); transition: background .4s; }
.pv-ok svg { width: 64%; height: 64%; opacity: 0; transition: opacity .3s; }
.pv-aqui .pv-feito .pv-ok { background: var(--verde); } .pv-la .pv-feito .pv-ok { background: var(--accent); }
.pv-feito .pv-ok svg { opacity: 1; }
.pv-ponte { width: 100%; height: 8cqw; overflow: visible; }
.pv-ponte path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; opacity: calc(.2 + var(--k, 0) * .6); }

/* 6 · Convite */
.pv-convite { background: radial-gradient(120% 90% at 85% 20%, rgba(212,154,42,.14), rgba(251,250,248,0) 60%); }
.pv-chips i { position: absolute; width: 1.2cqw; height: .9cqw; border-radius: 2px; left: calc(var(--i) * 7.3% + 2%); top: var(--y, 50%); background: var(--accent); opacity: .5; transform: translateY(calc(var(--k, 0) * -6cqw)) rotate(calc(var(--i) * 40deg + var(--k, 0) * 90deg)); }
.pv-chips i:nth-child(3n) { background: var(--giallo); } .pv-chips i:nth-child(3n+1) { background: var(--verde); }
.pv-convite .pv-txt { top: 20%; }
.pv-convite h3 { font-size: 7.4cqw; }
.pv-selo { display: inline-grid; place-items: center; margin-top: 2.4cqw; width: 11cqw; height: 11cqw; border-radius: 50%; background: var(--giallo); color: var(--ink); font: 600 2.4cqw var(--display); letter-spacing: -0.02em; opacity: var(--p); transform: scale(calc(.4 + var(--p) * .6)) rotate(calc(-14deg + var(--k, 0) * 14deg)); box-shadow: 0 1.4cqw 3cqw -1.4cqw rgba(212,154,42,.9); }
.pv-zap { position: absolute; right: 6cqw; top: 20%; width: 34cqw; background: #fff; border-radius: 2.2cqw; padding: 1.8cqw; box-shadow: 0 3cqw 6cqw -3cqw rgba(28,26,24,.45); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 4cqw)) rotate(calc((1 - var(--p)) * 4deg)); }
.pv-zap-h { margin: 0 0 1.4cqw; display: flex; gap: 1cqw; align-items: center; font-size: 1.6cqw; color: var(--muted); }
.pv-zap-h b { color: var(--ink); font-size: 1.8cqw; }
.pv-zap-h::before { content: ""; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; background: var(--accent); flex: none; }
.pv-digita { display: flex; gap: .6cqw; margin: 0; padding: 1.2cqw 1.6cqw; background: #eef5f1; border-radius: 1.4cqw; width: max-content; opacity: var(--p); }
.pv-digita.pv-esconde { opacity: 0; height: 0; padding: 0; overflow: hidden; }
.pv-digita i { width: .9cqw; height: .9cqw; border-radius: 50%; background: var(--verde); opacity: .5; animation: pvDot 1s infinite; }
.pv-digita i:nth-child(2) { animation-delay: .15s; } .pv-digita i:nth-child(3) { animation-delay: .3s; }
.player:not(.is-playing) .pv-digita i { animation-play-state: paused; }
@keyframes pvDot { 50% { opacity: 1; transform: translateY(-.4cqw); } }
.pv-msg { margin: 0; padding: 1.4cqw 1.8cqw; background: #e8f3ec; border-radius: 1.4cqw 1.4cqw 1.4cqw .3cqw; font: 500 1.9cqw/1.4 var(--text); color: var(--ink); opacity: var(--p); transform: translateY(calc((1 - var(--p)) * 1.5cqw)); }

.pv-tag.pv-it { left: 66%; top: 16%; } .pv-tag.pv-br { left: 7%; top: 86%; }
.pv .pl-chapter { display: none; } /* cada cena já tem o seu título */
.pv-arco img { object-position: 50% 60%; }

/* celular: vídeo vertical (3:4); o conteúdo fica acima da faixa de legenda e controles */
@media (max-width: 560px) {
  .player.pv { aspect-ratio: 3 / 4; }
  .pv .pl-cc { bottom: 58px; font-size: .88rem; max-width: 90%; }
  .pv-txt { left: 7cqw; right: 7cqw; top: 9%; max-width: none; }
  .pv-txt h3 { font-size: 11cqw; } .pv-txt .pv-h-m { font-size: 7.2cqw; }
  .pv-kicker { font-size: 4.2cqw; } .pv-sub { font-size: 4.4cqw; }
  .pv-arco { right: 7cqw; top: auto; bottom: 30%; width: 38cqw; height: 38%; }
  .pv-tag { font-size: 3.4cqw; padding: 1.2cqw 2.6cqw; } .pv-tag.pv-br { top: 64%; }
  .pv-meia { top: auto; bottom: 26%; height: 24%; width: 100%; clip-path: inset(calc((1 - var(--p)) * 100%) 0 0 0); }
  .pv-meia::after { background: linear-gradient(180deg, var(--white) 0%, rgba(251,250,248,0) 45%); }
  .pv-lugares li { font-size: 6.4cqw; } .pv-lugares i { width: 2.6cqw; height: 2.6cqw; }
  .pv-voce { font-size: 4.4cqw; } .pv-voce b { font-size: 8.6cqw; }
  .pv-oficios { max-width: 50cqw; flex-direction: column; align-items: flex-start; gap: 2cqw; }
  .pv-oficios span { font-size: 4.2cqw; padding: 1.8cqw 3.4cqw; }
  .pv-f1 { left: auto; right: 7cqw; top: auto; bottom: 31%; width: 36cqw; height: 34%; }
  .pv-f2, .pv-f3 { display: none; }
  .pv-mapa svg { transform-origin: 70% 50%; }
  .pv-etapas { grid-template-columns: 1fr; grid-template-rows: auto 6cqw auto; padding: 8% 7cqw 30%; align-content: start; }
  .pv-ponte { height: 6cqw; }
  .pv-lado { padding: 3.6cqw; border-radius: 4cqw; } .pv-lado > p b { font-size: 6.4cqw; } .pv-lado > p i { font-size: 3.6cqw; }
  .pv-lado ul { grid-template-columns: 1fr 1fr; gap: 2cqw; } .pv-lado li { font-size: 3.5cqw; padding: 1.8cqw; gap: 2cqw; border-radius: 2.4cqw; }
  .pv-ic { width: 7cqw; height: 7cqw; } .pv-ok { display: none; }
  .pv-convite h3 { font-size: 12cqw; }
  .pv-convite .pv-selo { position: absolute; right: 0; top: -2cqw; margin: 0; width: 19cqw; height: 19cqw; font-size: 4.4cqw; }
  .pv-zap { left: 7cqw; right: 7cqw; width: auto; top: auto; bottom: 29%; padding: 3.4cqw; border-radius: 4cqw; }
  .pv-zap-h { font-size: 3.2cqw; } .pv-zap-h b { font-size: 3.6cqw; } .pv-zap-h::before { width: 7cqw; height: 7cqw; }
  .pv-msg { font-size: 3.8cqw; padding: 2.6cqw 3.2cqw; } .pv-digita { padding: 2.4cqw 3cqw; } .pv-digita i { width: 1.8cqw; height: 1.8cqw; }
}
@media (prefers-reduced-motion: reduce) { .pv-q * { transition: none !important; } .pv-digita i { animation: none; } }
