/* Deep Bench Studio — sito. Design system "Deep Bench Studio — Pesca", tema Carta. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/assets/fonts/BricolageGrotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --brand-ink: #141414;
  --brand-paper: #fff8ee;
  --brand-white: #ffffff;
  --brand-peach: #ffb088;
  --brand-mint: #b8e8d0;
  --brand-butter: #ffe48a;

  --surface: #fff8ee;
  --surface-raised: #ffffff;
  --surface-sunk: #f3eadb;
  --border: #141414;
  --line-soft: #ded4c3;
  --ink: #141414;
  --ink-muted: #4a4a4a;
  --accent: #ffb088;
  --on-accent: #141414;
  --accent-text: #a6461a;
  --shadow-color: #141414;
  --focus-ring: #141414;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius-sm: 8px; --radius-md: 14px;
  --shadow-sm: 4px 4px 0 var(--shadow-color);
  --shadow-md: 8px 8px 0 var(--shadow-color);
  --shadow-lg: 12px 12px 0 var(--shadow-color);
  --stroke: 3px;

  /* colori del formato: cambiano con il selettore "i colori sono vostri" */
  --fmt-bg: var(--brand-peach);
  --fmt-hl: var(--brand-butter);
  --fmt-card: var(--brand-mint);

  --player-h: 56px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/26px var(--font-sans); padding-bottom: var(--player-h); overflow-x: hidden; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); border: var(--stroke) solid var(--border); padding: 8px 16px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- type ---------- */
.kicker { font: 700 13px/16px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; }
.body-l { font-size: 19px; line-height: 29px; }
@media (min-width: 720px) { .body-l { font-size: 20px; line-height: 30px; } }
.lead { font-size: 19px; line-height: 29px; color: var(--ink-muted); max-width: 560px; }
.h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; font-size: clamp(34px, 6vw, 64px); line-height: .98; max-width: 17ch; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 28px; line-height: 1.1; }

/* ---------- design-system components ---------- */
.db-hl { display: inline-block; line-height: .9; border: var(--stroke) solid var(--brand-ink); padding: .04em .1em .1em; margin: .04em 0; color: var(--brand-ink); }
.db-hl-butter { background: var(--brand-butter); }
.db-hl-peach { background: var(--brand-peach); }
.db-hl-mint { background: var(--brand-mint); }

.db-btn { font: 700 16px/20px var(--font-sans); height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-sm); border: var(--stroke) solid var(--border); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; white-space: nowrap; transition: transform .08s, box-shadow .08s; }
.db-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow-color); }
.db-btn:active { transform: translate(4px, 4px); box-shadow: none; }
.db-btn-primary { background: var(--accent); color: var(--on-accent); }
.db-btn-dark { background: var(--brand-ink); color: var(--brand-paper); box-shadow: 4px 4px 0 var(--brand-white); }
.db-btn-dark:hover { box-shadow: 6px 6px 0 var(--brand-white); }
.db-btn .arrow { font-family: var(--font-mono); }
.btn-lg { height: 60px; padding: 0 28px; font-size: 18px; }

.db-tag { display: inline-block; font: 700 12px/24px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: 2px var(--space-3); border: var(--stroke) solid var(--border); background: var(--surface-raised); color: var(--ink); }
.db-tag-mint { background: var(--brand-mint); color: var(--on-accent); }
.db-tag-peach { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }

.chip { font: 700 13px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border: var(--stroke) solid var(--border); background: var(--surface-raised); cursor: pointer; box-shadow: 3px 3px 0 var(--shadow-color); transition: transform .08s, box-shadow .08s, background .12s; }
.chip:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow-color); }
.chip.is-on { background: var(--accent); }

/* ---------- motion: elements drop in, shadow last ---------- */
.js .drop { opacity: 0; transform: translateY(-14px); }
.js .drop.in { animation: drop .42s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-14px); } 70% { opacity: 1; transform: translateY(2px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js .drop { opacity: 1; transform: none; } .js .drop.in { animation: none; } }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: var(--stroke) solid transparent; transition: border-color .15s; }
.site-head.is-stuck { border-bottom-color: var(--border); }
.head-row { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.brand img { width: 168px; height: auto; }
.head-nav { display: none; gap: 24px; margin-left: auto; font-weight: 600; font-size: 16px; }
.head-nav a { text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.head-nav a:hover { border-bottom-color: var(--accent); }
.head-cta { margin-left: auto; height: 44px; padding: 0 16px; font-size: 15px; }
@media (min-width: 980px) { .head-nav { display: flex; } .head-cta { margin-left: 8px; } .brand img { width: 190px; } }
@media (max-width: 420px) { .brand img { width: 140px; } .head-cta { padding: 0 12px; font-size: 14px; } .head-cta .arrow { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 16px; }
.hero-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1040px) { .hero { padding: 64px 0 40px; } .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; } }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(42px, 7.4vw, 78px); line-height: .94; letter-spacing: -.035em; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.hero-note { font: 500 14px/20px var(--font-mono); color: var(--ink-muted); }

.hero-demo { display: flex; flex-direction: column; gap: 20px; }
.demo-label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-live { font: 700 11px/16px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.demo-live::before { content: ""; width: 9px; height: 9px; background: var(--accent-text); border-radius: 9999px; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.yt-meta { display: flex; gap: 12px; align-items: flex-start; }
.yt-avatar, .li-logo { flex: none; width: 40px; height: 40px; border-radius: 9999px; border: var(--stroke) solid var(--border); background: var(--surface-sunk); display: grid; place-items: center; font: 700 8px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.yt-title { font-weight: 700; font-size: 17px; line-height: 22px; }
.yt-sub { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

.q-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.q-label { font-weight: 700; font-size: 16px; }
.q-row { display: flex; gap: 10px; }
.q-input { flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: var(--stroke) solid var(--border); border-radius: var(--radius-sm); background: var(--surface-raised); font-size: 17px; }
.q-input::placeholder { color: #6b6b6b; }
.q-go { flex: none; }
.q-chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.q-chips [data-q-chips] { display: contents; }
.q-chip { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-soft); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.q-chip:hover { text-decoration-color: var(--accent-text); }
.q-chip.is-on { text-decoration-color: var(--accent); text-decoration-thickness: 4px; }
@media (max-width: 480px) { .q-go { padding: 0 14px; } .q-go .arrow { display: none; } }

/* ---------- THUMBNAIL (1280×720 scaled with container units) ---------- */
.thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; container-type: inline-size; overflow: visible; background: var(--fmt-bg); color: var(--brand-ink); border: var(--stroke) solid var(--brand-ink); box-shadow: var(--shadow-md); transition: background .25s; isolation: isolate; }
.thumb .t-in { position: absolute; inset: 0; overflow: hidden; }
.thumb .t-copy { position: absolute; left: 4.4cqw; top: 4.4cqw; width: 52cqw; bottom: 12cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 2.2cqw; }
.thumb .t-tag { display: inline-block; background: var(--brand-white); border: max(2px, .31cqw) solid var(--brand-ink); box-shadow: .39cqw .39cqw 0 var(--brand-ink); font: 700 1.56cqw/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: .78cqw 1.4cqw; }
.thumb .t-title { font-family: var(--font-display); font-weight: 800; font-size: 8.1cqw; line-height: .92; letter-spacing: -.035em; overflow-wrap: break-word; hyphens: manual; }
.thumb .t-w { white-space: nowrap; border-radius: 2px; }
.thumb .t-w[data-w] { cursor: pointer; }
.thumb[data-thumb="hero"] .t-w:hover { outline: 2px dashed rgba(20, 20, 20, .45); outline-offset: 2px; }
.thumb .t-hl { display: inline-block; background: var(--fmt-hl); border: max(2px, .31cqw) solid var(--brand-ink); padding: .04em .1em .1em; line-height: .9; margin: .04em 0; transition: background .25s; }
.thumb .t-photo { position: absolute; right: 5.6cqw; top: 9cqw; width: 33cqw; height: 40cqw; background: var(--fmt-card); border: max(2px, .31cqw) solid var(--brand-ink); box-shadow: 1.1cqw 1.1cqw 0 var(--brand-ink); transition: background .25s; }
.thumb .t-photo img { position: absolute; left: 50%; bottom: 0; height: 116%; width: auto; max-width: none; transform: translateX(-50%); transition: opacity .25s; }
.thumb .t-mark { position: absolute; left: 4cqw; bottom: 3.4cqw; width: 5.9cqw; height: auto; }
.thumb .t-dur { position: absolute; right: 1.4cqw; bottom: 1.4cqw; background: rgba(20, 20, 20, .88); color: #fff; font: 700 1.7cqw/1 var(--font-mono); padding: .5cqw .7cqw; border-radius: .4cqw; }
.thumb .t-ex { position: absolute; left: 12cqw; bottom: 4.6cqw; font: 700 1.3cqw/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.thumb-on-peach { box-shadow: 10px 10px 0 var(--brand-ink); }
.fmt-client .thumb .t-mark { opacity: 0; }
.fmt-client .thumb .t-in::after { content: "Logo"; position: absolute; left: 4cqw; bottom: 3.4cqw; width: 7cqw; height: 5cqw; display: flex; align-items: center; justify-content: center; background: var(--brand-white); border: max(2px, .31cqw) dashed var(--brand-ink); font: 700 1.3cqw/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- sections ---------- */
.sec { padding: 80px 0; }
@media (min-width: 900px) { .sec { padding: 120px 0; } }
.sec-peach { background: var(--brand-peach); border-block: var(--stroke) solid var(--brand-ink); }
.sec-sunk { background: var(--surface-sunk); border-block: var(--stroke) solid var(--brand-ink); }
.sec-mint { background: var(--brand-mint); border-block: var(--stroke) solid var(--brand-ink); }
.sec-butter { background: var(--brand-butter); border-block: var(--stroke) solid var(--brand-ink); }
.sec-mint .sec-lead, .sec-butter .sec-lead, .sec-mint .kicker, .sec-butter .kicker { color: var(--brand-ink); }
.sec-night { --surface: #141414; --surface-raised: #1f1f1f; --border: #fff8ee; --ink: #fff8ee; --ink-muted: #b9b2a6; --shadow-color: #ffb088; --focus-ring: #ffb088; background: var(--surface); color: var(--ink); }
.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 48px; }
.sec-lead { max-width: 640px; color: var(--ink-muted); }
.sec-peach .sec-lead { color: var(--brand-ink); }

/* 01 — problem */
.problem-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.log { display: flex; flex-direction: column; gap: 10px; }
.log-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-sm); padding: 12px 16px; }
.js .log-row { opacity: 0; transform: translateY(-10px); }
.log.in .log-row { animation: drop .4s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.log.in .log-row:nth-child(2) { animation-delay: .12s; }
.log.in .log-row:nth-child(3) { animation-delay: .24s; }
.log.in .log-row:nth-child(4) { animation-delay: .36s; }
.log.in .log-row:nth-child(5) { animation-delay: .48s; }
.log.in .log-row:nth-child(6) { animation-delay: .64s; }
.log-where { font: 700 11px/16px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.log-q { grid-column: 1; font-weight: 700; font-size: 17px; line-height: 22px; }
.log-n { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 700 15px/1 var(--font-mono); background: var(--surface-sunk); border: var(--stroke) solid var(--border); padding: 6px 8px; }
.log-more { background: var(--brand-peach); }
.log-more .log-q { font-weight: 500; }
.log-more .log-n { background: var(--brand-white); }
@media (prefers-reduced-motion: reduce) { .js .log-row { opacity: 1; transform: none; } .js .log.in .log-row { animation: none; } }
.problem-copy { display: flex; flex-direction: column; gap: 8px; }
.problem-copy .sec-head { margin-bottom: 24px; }
.pitch { background: var(--brand-ink); color: var(--brand-paper); padding: 28px; box-shadow: 10px 10px 0 var(--brand-peach); border: var(--stroke) solid var(--brand-ink); }
.pitch p { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.08; letter-spacing: -.02em; }
.why-not { margin-top: 64px; display: grid; gap: 16px; }
@media (min-width: 720px) { .why-not { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .why-not { grid-template-columns: repeat(4, 1fr); } }
.why-not li { border-top: var(--stroke) solid var(--border); padding-top: 16px; color: var(--ink-muted); font-size: 16px; line-height: 24px; }
.why-not b { display: block; color: var(--ink); font-size: 18px; line-height: 23px; margin-bottom: 6px; }

/* 02 — bench */
.bench { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .bench { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.bench-pick { display: grid; grid-template-columns: minmax(110px, 210px) 1fr; gap: 24px; align-items: center; }
.bench-mark { width: 100%; height: auto; overflow: visible; }
.bm-slats polygon { fill: #ffffff; transition: fill .2s; cursor: pointer; }
.bm-slats polygon.is-on { fill: var(--brand-butter); }
.bm-slats polygon:hover { fill: #fff3c4; }
.bench-roles { display: flex; flex-direction: column; gap: 10px; }
.role-btn { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 16px; border: var(--stroke) solid var(--brand-ink); background: var(--brand-white); box-shadow: var(--shadow-sm); cursor: pointer; font-weight: 700; font-size: 17px; transition: transform .08s, box-shadow .08s, background .15s; }
.role-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brand-ink); }
.role-btn[aria-selected="true"] { background: var(--brand-butter); }
.role-btn .kicker { font-size: 11px; color: var(--ink-muted); }
.role-btn[aria-selected="true"] .kicker { color: var(--brand-ink); }
.bench-card { display: grid; grid-template-columns: 38% 1fr; gap: 0; background: var(--brand-white); border: var(--stroke) solid var(--brand-ink); box-shadow: var(--shadow-lg); min-height: 360px; }
.bench-photo { position: relative; background: var(--brand-mint); border-right: var(--stroke) solid var(--brand-ink); overflow: hidden; }
.bench-photo img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 92%; width: auto; max-width: none; transition: opacity .2s, transform .3s; }
.bench-photo img.swap { opacity: 0; transform: translate(-50%, 12px); }
.bench-info { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.bench-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.bench-sub { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.bench-qs { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 4px; }
.bench-qs button { width: 100%; text-align: left; padding: 10px 12px; border: var(--stroke) solid var(--brand-ink); background: var(--surface); font-weight: 700; font-size: 16px; line-height: 21px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; transition: background .12s; }
.bench-qs button:hover, .bench-qs button.is-on { background: var(--brand-peach); }
.bench-qs button .arrow { font-family: var(--font-mono); flex: none; }
.bench-foot { margin-top: 48px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; letter-spacing: -.02em; max-width: 26ch; }
@media (max-width: 560px) {
  .bench-pick { grid-template-columns: 1fr; }
  .bench-mark { display: none; }
  .bench-roles { flex-direction: row; overflow-x: auto; padding: 2px 6px 10px 2px; margin-right: -16px; scrollbar-width: none; }
  .bench-roles::-webkit-scrollbar { display: none; }
  .role-btn { width: auto; flex: none; padding: 10px 14px; font-size: 16px; }
  .role-btn .kicker { display: none; }
  .bench-card { grid-template-columns: 1fr; }
  .bench-photo { height: 260px; border-right: 0; border-bottom: var(--stroke) solid var(--brand-ink); }
}

/* 03 — steps */
.who-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 28px; }
.who-toggle .kicker { margin-right: 6px; color: var(--ink-muted); }
.who-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; padding: 16px 20px; background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-sm); }
.who-bar .who-toggle { margin: 0; }
.chip-voi.is-on { background: var(--brand-mint); }
.steps-sum { font-weight: 700; font-size: 17px; line-height: 24px; max-width: 46ch; }
.phases { display: flex; flex-direction: column; gap: 28px; }
.phase { display: flex; flex-direction: column; gap: 12px; }
.phase-k { color: var(--ink-muted); }
.steps { display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } .step-key { grid-column: 1 / -1; } }
@media (min-width: 1140px) { .steps-a { grid-template-columns: 1fr 3fr; } .step-key { grid-column: auto; } .step-key .sources { display: grid; grid-template-columns: repeat(3, 1fr); } .steps-b { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; align-content: start; gap: 6px 16px; background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-md); padding: 20px; transition: opacity .2s, background .2s, box-shadow .2s; }
.step-n { font: 700 14px/1 var(--font-mono); background: var(--brand-ink); color: var(--brand-paper); padding: 8px; height: fit-content; }
.step-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.12; letter-spacing: -.015em; margin-bottom: 6px; }
.step-body p { font-size: 16px; line-height: 24px; color: var(--ink); }
.step-who { grid-column: 2; display: flex; align-items: flex-end; gap: 6px; margin-top: 8px; }
.who { height: 22px; font: 700 11px/18px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; padding: 0 8px; border: 2px solid var(--brand-ink); background: var(--brand-white); }
.sources { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.sources li { background: var(--brand-white); border: 2px solid var(--brand-ink); padding: 10px 12px; font-size: 15px; line-height: 21px; }
.sources b { display: block; font: 700 11px/16px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.who-voi { background: var(--brand-mint); }
.who-noi { background: var(--brand-peach); }
/* chi fa cosa: Tutti = burro, Voi = menta, Noi = pesca */
.phases[data-show="voi"] .step[data-by~="voi"] { background: var(--brand-mint); }
.phases[data-show="noi"] .step[data-by~="noi"] { background: var(--brand-peach); }


/* 04 — kit */
.colors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 32px; }
.colors .kicker { color: var(--ink-muted); }
.swatches { display: flex; gap: 10px; }
.sw { position: relative; width: 38px; height: 38px; border: var(--stroke) solid var(--brand-ink); background: var(--c); box-shadow: 3px 3px 0 var(--brand-ink); cursor: pointer; padding: 0; transition: transform .08s; }
.sw:hover { transform: translate(-1px, -1px); }
.sw.is-on { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.sw-pick { background: conic-gradient(from 0deg, #f66, #fc6, #6c6, #6cf, #66f, #f6f, #f66); overflow: hidden; }
.sw-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.kit { display: flex; flex-direction: column; gap: 18px; }
.kit-stage { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.015em; }
.kit-arrow { margin-top: 12px; }
.kit-num { display: grid; place-items: center; width: 34px; height: 34px; background: var(--brand-ink); color: var(--brand-paper); font: 700 15px/1 var(--font-mono); }
.arrow-down { font-family: var(--font-mono); font-size: 22px; }
.kit-main-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .kit-main-grid { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.kit-main-grid figure { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.kit-main-grid figcaption { font: 700 12px/16px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.kit-row { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 860px) { .kit-row { grid-template-columns: repeat(3, 1fr); } }
.kit-short .short { max-width: 300px; }
.tag-yt, .tag-li { display: inline-flex; align-items: center; gap: 8px; }
.yt-logo { width: 24px; height: 17px; }
.li-logo-svg { width: 16px; height: 16px; }
@media (min-width: 860px) { .kit .ch-grid { grid-template-columns: repeat(4, 1fr); } }
.kit-item { background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-md); padding: 20px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.kit-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kit-cap h3 { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.12; letter-spacing: -.015em; }
.kit-note { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.kit .thumb { box-shadow: 6px 6px 0 var(--brand-ink); }

.frame169 { position: relative; aspect-ratio: 16 / 9; border: var(--stroke) solid var(--brand-ink); overflow: hidden; background: #8a857e; container-type: inline-size; }
.frame169 img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.lt { position: absolute; left: 6cqw; bottom: 7cqw; display: flex; flex-direction: column; align-items: flex-start; }
.lt-tag { position: relative; z-index: 1; margin-bottom: -2px; background: var(--fmt-bg); border: max(2px, .3cqw) solid var(--brand-ink); font: 700 max(9px, 1.5cqw)/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: .7cqw 1.2cqw; transition: background .25s; }
.lt-panel { background: var(--brand-white); border: max(2px, .3cqw) solid var(--brand-ink); box-shadow: .7cqw .7cqw 0 var(--brand-ink); padding: 1.6cqw 2.4cqw; display: flex; flex-direction: column; gap: .3cqw; }
.lt-panel b { font-family: var(--font-display); font-weight: 800; font-size: max(14px, 3.6cqw); line-height: 1; letter-spacing: -.03em; }
.lt-panel span { font-size: max(11px, 1.9cqw); line-height: 1.25; color: #4a4a4a; font-weight: 500; }

.short { position: relative; aspect-ratio: 9 / 16; width: 100%; max-width: 380px; margin: 0 auto; border: var(--stroke) solid var(--brand-ink); border-radius: 18px; overflow: hidden; background: #8a857e; container-type: inline-size; box-shadow: 6px 6px 0 var(--brand-ink); }
.short-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.short-top { position: absolute; left: 0; right: 0; top: 0; background: var(--fmt-bg); border-bottom: max(2px, .5cqw) solid var(--brand-ink); padding: 9cqw 6.5cqw 5cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 2.4cqw; transition: background .25s; }
.short-tag { background: var(--brand-white); border: max(2px, .45cqw) solid var(--brand-ink); box-shadow: .6cqw .6cqw 0 var(--brand-ink); font: 700 2.4cqw/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: 1cqw 1.8cqw; }
.short-title { font-family: var(--font-display); font-weight: 800; font-size: 6.4cqw; line-height: .98; letter-spacing: -.035em; }
.short-cap { position: absolute; left: 5cqw; right: 5cqw; top: 66%; text-align: center; font-family: var(--font-sans); font-weight: 800; font-size: 9cqw; line-height: 1.12; letter-spacing: -.03em; color: var(--brand-white); -webkit-text-stroke: 1.6cqw var(--brand-ink); paint-order: stroke fill; min-height: 2.3em; }
.short-cap .w { display: inline-block; animation: pop .18s ease-out both; }
.short-cap .w-hl { -webkit-text-stroke: 0; color: var(--brand-ink); background: var(--fmt-hl); border: max(2px, .5cqw) solid var(--brand-ink); padding: .02em .12em .1em; line-height: .95; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }

.li-post { border: 2px solid var(--line-soft); background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.li-head { display: flex; align-items: center; gap: 10px; }
.li-logo { border-radius: 4px; }
.li-head b { display: block; font-size: 15px; line-height: 18px; }
.li-head span { font-size: 12px; color: var(--ink-muted); }
.li-text { font-size: 14px; line-height: 21px; }
.li-text b { display: block; margin-bottom: 6px; }
.li-cover { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 200px; background: var(--brand-paper); border: max(3px, .6cqw) solid var(--brand-ink); padding: 8%; container-type: inline-size; display: flex; flex-direction: column; align-items: flex-start; gap: 6cqw; }
.li-cover-tag { background: var(--brand-mint); border: max(2px, .5cqw) solid var(--brand-ink); font: 700 3.2cqw/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: 1.4cqw 2.4cqw; }
.li-cover p { font-family: var(--font-display); font-weight: 800; font-size: 10cqw; line-height: .95; letter-spacing: -.035em; }
.li-more { position: absolute; right: 7%; bottom: 6%; background: var(--fmt-bg); border: max(2px, .5cqw) solid var(--brand-ink); box-shadow: .7cqw .7cqw 0 var(--brand-ink); border-radius: 1.4cqw; font: 700 3.2cqw/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; padding: 2cqw 3cqw; transition: background .25s; }

.msg { background: var(--surface); border: var(--stroke) solid var(--brand-ink); padding: 16px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.msg-to { font-size: 14px; color: var(--ink-muted); }
.msg-to .kicker { color: var(--ink); margin-right: 6px; }
.msg-text { font-size: 16px; line-height: 24px; background: #fff; border: 2px solid var(--line-soft); padding: 12px; width: 100%; white-space: pre-line; }
.msg-copy { height: 44px; font-size: 15px; }

.channel { display: flex; flex-direction: column; gap: 12px; }
.ch-head { display: flex; gap: 10px; align-items: center; }
.ch-head b { display: block; font-size: 15px; line-height: 18px; }
.ch-head span { font-size: 12px; color: var(--ink-muted); }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-grid .thumb { border-width: 2px; box-shadow: 3px 3px 0 var(--brand-ink); }
.ch-grid .thumb .t-title { cursor: default; }

/* 05 — scale */
.scale { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 860px) { .scale { grid-template-columns: 1fr auto 1fr; } }
.scale-box { border: var(--stroke) solid var(--border); background: var(--surface-raised); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.scale-box canvas { width: 100%; height: auto; aspect-ratio: 5 / 3; }
.scale-box figcaption { font-size: 16px; line-height: 23px; color: var(--ink-muted); }
.scale-box figcaption b { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.scale-right { box-shadow: var(--shadow-lg); }
.scale-vs { align-self: center; justify-self: center; font: 700 13px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-muted); }
.hundred { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4%; width: 60%; aspect-ratio: 1; margin: 0 auto; }
.hundred i:nth-child(n) { border-width: 1.5px; }
.hundred i { aspect-ratio: 1; background: var(--brand-peach); border: 2px solid #fff8ee; transform: scale(0); transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.hundred.in i { transform: none; }
.engines-title { margin: 72px 0 24px; }
.engines { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .engines { grid-template-columns: 1fr 1fr; } }
.engine { border: var(--stroke) solid var(--border); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.engine .kicker { color: var(--brand-peach); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow li { font-weight: 600; font-size: 16px; line-height: 20px; padding: 8px 12px; border: 2px solid var(--border); }
.flow li:not(:last-child)::after { content: "→"; font-family: var(--font-mono); margin-left: 12px; margin-right: -4px; color: var(--brand-peach); }
.flow li { display: inline-flex; align-items: center; }
.flow-end { background: var(--brand-peach); color: var(--brand-ink); border-color: var(--brand-peach) !important; }
.engines-note { margin-top: 32px; max-width: 720px; color: var(--ink-muted); font-size: 18px; line-height: 28px; }

/* 06 — remote */
.remote-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .remote-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.facts { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.facts li { padding-left: 34px; position: relative; color: var(--ink-muted); font-size: 17px; line-height: 25px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 12px; background: var(--brand-peach); border: 2px solid var(--brand-ink); box-shadow: 2px 2px 0 var(--brand-ink); }
.facts b { color: var(--ink); }
.call { background: #1f1f1f; border: var(--stroke) solid var(--brand-ink); box-shadow: var(--shadow-lg); border-radius: 12px; overflow: hidden; color: var(--brand-paper); }
.call-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font: 700 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid #333; }
.rec { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-peach); }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 9999px; background: var(--brand-peach); animation: blink 1.4s steps(2) infinite; }
.call-title { color: #b9b2a6; }
.call-time { margin-left: auto; }
.call-stage { position: relative; aspect-ratio: 4 / 3; background: #c9c9c7; overflow: hidden; }
.call-main { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .call-main { animation: none; } }
.call-self { position: absolute; right: 12px; bottom: 12px; width: 26%; aspect-ratio: 4 / 3; background: var(--brand-paper); border: 2px solid var(--brand-ink); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--brand-ink); font: 700 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.call-self img { width: 36%; }
.call-q { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.call-q .kicker { color: var(--brand-peach); font-size: 11px; }
.call-q p { font-weight: 700; font-size: 18px; line-height: 23px; }

/* 07 — fit */
.fit { display: grid; gap: 24px; align-items: start; }
@media (min-width: 940px) { .fit { grid-template-columns: 1.4fr 1fr; gap: 40px; } }
.checks { display: flex; flex-direction: column; gap: 10px; }
.checks label { display: flex; gap: 14px; align-items: center; background: var(--surface-raised); border: var(--stroke) solid var(--border); padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 17px; line-height: 23px; transition: background .12s, transform .08s, box-shadow .08s; }
.checks label:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.checks input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checks .box { flex: none; width: 26px; height: 26px; border: var(--stroke) solid var(--border); background: var(--surface); display: grid; place-items: center; }
.checks input:checked + .box { background: var(--brand-ink); }
.checks input:checked + .box::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--brand-peach); border-bottom: 3px solid var(--brand-peach); transform: translateY(-2px) rotate(-45deg); }
.checks label:has(input:checked) { background: var(--brand-mint); }
.checks input:focus-visible + .box { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.verdict { position: sticky; top: calc(var(--head-h) + 24px); background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-lg); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.meter { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.meter i { display: block; height: 14px; border: 2px solid var(--brand-ink); background: var(--surface); box-shadow: 2px 2px 0 var(--brand-ink); transition: background .2s, width .2s; }
.meter i:nth-child(1), .meter i:nth-child(6) { width: 40%; }
.meter i:nth-child(2), .meter i:nth-child(5) { width: 70%; }
.meter i:nth-child(3), .meter i:nth-child(4) { width: 100%; }
.meter i.on { background: var(--brand-mint); }
.meter.full i.on { background: var(--brand-peach); }
.verdict-text { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.12; letter-spacing: -.02em; }
.not-for { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.not-for .kicker { color: var(--ink-muted); }
.not-for ul { display: flex; flex-wrap: wrap; gap: 10px; }
.not-for li { border: 2px dashed var(--border); padding: 8px 12px; font-size: 16px; line-height: 22px; color: var(--ink-muted); }

/* 08–09 — placeholders */
.case-grid, .who-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .case-grid { grid-template-columns: 1.2fr 1fr; } .who-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.case-grid .sec-head { margin-bottom: 0; }
.yt-embed { position: relative; aspect-ratio: 16 / 9; border: var(--stroke) solid var(--brand-ink); box-shadow: var(--shadow-lg); background: #000; overflow: hidden; }
.yt-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 76px; transform: translate(-50%, -50%); transition: transform .12s; }
.yt-play:hover .yt-btn { transform: translate(-50%, -50%) scale(1.08); }
.founder { position: relative; margin: 0; width: 100%; max-width: 420px; aspect-ratio: 4 / 5; background: var(--brand-mint); border: var(--stroke) solid var(--brand-ink); box-shadow: var(--shadow-lg); }
.founder img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.who-grid .body-l { margin-bottom: 24px; }

/* 10 — FAQ */
.faq-wrap { max-width: 900px; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface-raised); border: var(--stroke) solid var(--border); }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; font-weight: 700; font-size: 19px; line-height: 25px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--border); font: 700 18px/1 var(--font-mono); background: var(--surface); }
.faq details[open] summary::after { content: "−"; background: var(--brand-peach); }
.faq details > p, .faq-table { padding: 0 20px 20px; color: var(--ink-muted); font-size: 17px; line-height: 26px; max-width: 720px; }
.faq-table { display: flex; flex-direction: column; gap: 10px; }
.faq-table b { display: block; color: var(--ink); font: 700 12px/18px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }

/* CTA */
.cta-final { background: var(--brand-peach); border-top: var(--stroke) solid var(--brand-ink); padding: 88px 0; }
@media (min-width: 900px) { .cta-final { padding: 120px 0; } }
.cta-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 980px) { .cta-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.cta-grid > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-final .db-tag { background: var(--brand-white); }
.cta-final .thumb { --fmt-bg: var(--brand-paper); --fmt-hl: var(--brand-butter); --fmt-card: var(--brand-mint); }
.cta-carry { font-size: 16px; line-height: 23px; max-width: 520px; }

/* footer */
.site-foot { background: var(--brand-ink); color: var(--brand-paper); padding: 56px 0 40px; }
.foot-row { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.foot-logo { width: 200px; height: auto; }
.foot-tag { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 600; }
.foot-nav a { text-decoration-color: var(--brand-peach); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.foot-small { font-size: 14px; line-height: 20px; color: #b9b2a6; }

/* player bar (the page as a video with chapters) */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: var(--player-h); background: var(--brand-paper); border-top: var(--stroke) solid var(--brand-ink); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.player-mark { width: 30px; height: 30px; flex: none; }
.player-now { flex: none; width: min(42vw, 360px); min-width: 0; display: flex; flex-direction: column; }
.player-k { font: 700 10px/14px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-text); }
.player-t { font-weight: 700; font-size: 15px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-track { flex: 1; display: flex; gap: 3px; height: 26px; align-items: center; min-width: 0; }
.player-seg { position: relative; flex: 1; height: 10px; border: 2px solid var(--brand-ink); background: var(--brand-white); padding: 0; cursor: pointer; overflow: hidden; transition: height .12s; }
.player-seg:hover, .player-seg:focus-visible { height: 16px; }
.player-seg b { position: absolute; inset: 0; right: auto; width: calc(var(--p, 0) * 100%); background: var(--brand-peach); }
.player-seg.is-now { border-color: var(--brand-ink); }
.player-seg .sr { position: absolute; }
@media (max-width: 560px) { .player { gap: 10px; } .player-now { width: 46vw; } .player-mark { display: none; } .player-track { gap: 2px; } .player-seg { border-width: 1.5px; } }

/* legal pages */
.page-sub { padding-bottom: 0; }
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 6vw, 56px); line-height: 1; letter-spacing: -.03em; margin: 16px 0 24px; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-muted); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 20px; }
.page-404 { min-height: calc(100vh - var(--head-h) - var(--player-h)); display: grid; place-items: center; padding: 64px 0; }
.page-404 .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 760px; }

.lead b { color: var(--ink); font-weight: 700; }

.log-wrap { display: flex; flex-direction: column; gap: 14px; }
.log-rep .log-q { color: #6b6661; font-weight: 600; }
.log-rep .log-where { color: var(--ink-muted); }

.who-grid .name-note { color: var(--ink-muted); }
@media (max-width: 560px) { .who-bar { padding: 14px; } .who-toggle .kicker { flex-basis: 100%; margin: 0 0 2px; } .who-toggle .chip { flex: 1; text-align: center; } .steps-sum { font-size: 16px; } }
@media (max-width: 939px) { .founder { max-width: 260px; } }

/* 01 — una sola riga ripetuta, sotto il titolo */
.sec-01 { border-top: var(--stroke) solid var(--brand-ink); }
@media (min-width: 900px) { .sec-01 { padding-top: 96px; } }
.problem-grid { align-items: end; }
.problem-main .sec-head { margin-bottom: 28px; }
.repeat-box { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; background: var(--surface-raised); border: var(--stroke) solid var(--border); box-shadow: var(--shadow-md); padding: 16px 20px; max-width: 640px; }
.repeat-box .log-q { grid-column: 1; font-weight: 700; font-size: 19px; line-height: 25px; }
.repeat-box .log-n { grid-column: 2; grid-row: 1 / span 2; background: var(--brand-peach); font-size: 17px; }

/* 04 — player animato: title card, sottopancia, end screen */
.vplayer { position: relative; aspect-ratio: 16 / 9; border: var(--stroke) solid var(--brand-ink); overflow: hidden; background: #8a857e; container-type: inline-size; }
.vp-scene { position: absolute; inset: 0; opacity: 0; }
.vp-title { background: var(--brand-paper); padding: 7cqw 7cqw; display: flex; flex-direction: column; align-items: flex-start; gap: 3cqw; animation: vp-a 9s infinite; }
.vp-tag { background: var(--brand-mint); border: max(2px, .35cqw) solid var(--brand-ink); font: 700 max(8px, 1.8cqw)/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; padding: 1cqw 1.6cqw; }
.vp-q { font-family: var(--font-display); font-weight: 800; font-size: 6.4cqw; line-height: .96; letter-spacing: -.035em; max-width: 80%; }
.vp-mark { position: absolute; right: 6cqw; bottom: 6cqw; width: 8cqw; }
.vp-talk { animation: vp-b 9s infinite; }
.vp-talk .vp-video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.vp-talk .lt { animation: vp-lt 9s infinite; }
.vp-end { background: var(--fmt-bg); padding: 6cqw 7cqw; display: flex; flex-direction: column; justify-content: center; gap: 4cqw; animation: vp-c 9s infinite; transition: background .25s; }
.vp-end-t { font-family: var(--font-display); font-weight: 800; font-size: 6cqw; letter-spacing: -.03em; }
.vp-slots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3cqw; }
.vp-slots span { aspect-ratio: 16 / 9; background: var(--brand-white); border: max(2px, .4cqw) dashed var(--brand-ink); display: grid; place-items: center; font: 700 max(8px, 1.6cqw)/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 1cqw; }
.vp-slots span:last-child { aspect-ratio: 1; border-radius: 9999px; align-self: center; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, .7cqw); background: rgba(255, 255, 255, .35); }
.vp-bar b { display: block; height: 100%; width: 0; background: #ff0000; animation: vp-progress 9s infinite linear; }
@keyframes vp-a { 0%, 31% { opacity: 1; } 34%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes vp-b { 0%, 31% { opacity: 0; } 34%, 69% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes vp-c { 0%, 69% { opacity: 0; } 72%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes vp-lt { 0%, 37% { transform: translateX(-130%); } 42%, 64% { transform: none; } 68%, 100% { transform: translateX(-130%); } }
@keyframes vp-zoom { 0%, 33% { transform: scale(1); } 72%, 100% { transform: scale(1.06); } }
@keyframes vp-progress { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .vp-scene, .vp-talk .lt, .vp-bar b { animation: none; }
  .vp-talk { opacity: 1; }
}

/* hero: la thumbnail "parte" e risponde l'esperto */
.hero-player { position: absolute; inset: 0; z-index: 3; overflow: hidden; background: #8a857e; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.hero-player.on { opacity: 1; }
.hero-player video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hp-tag { position: absolute; left: 3cqw; top: 3cqw; background: var(--brand-white); border: max(2px, .31cqw) solid var(--brand-ink); box-shadow: .39cqw .39cqw 0 var(--brand-ink); font: 700 1.5cqw/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; padding: .8cqw 1.3cqw; }
.hp-cap { position: absolute; left: 4cqw; right: 4cqw; bottom: 9cqw; text-align: center; font-family: var(--font-sans); font-weight: 800; font-size: 6.2cqw; line-height: 1.1; letter-spacing: -.03em; color: var(--brand-white); -webkit-text-stroke: 1cqw var(--brand-ink); paint-order: stroke fill; }
.hp-cap .w { display: inline-block; animation: pop .18s ease-out both; }
.hp-cap .w-hl { -webkit-text-stroke: 0; color: var(--brand-ink); background: var(--fmt-hl); border: max(2px, .35cqw) solid var(--brand-ink); padding: .02em .12em .1em; line-height: .95; }
.hero-player .vp-bar { height: max(4px, .8cqw); }
.hp-play { position: absolute; z-index: 4; right: 3cqw; bottom: 7cqw; width: 10cqw; min-width: 44px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .12s; }
.hp-play svg { width: 100%; height: auto; display: block; filter: drop-shadow(.3cqw .3cqw 0 var(--brand-ink)); }
.thumb.is-manual .hp-play { opacity: 1; pointer-events: auto; }
.thumb.is-playing .hp-play { opacity: 0; pointer-events: none; }
.hp-play:hover { transform: scale(1.08); }

/* Nasconde il badge "Powered by Netlify" che Netlify aggiunge alle pagine pubblicate */
#nl-badge-frame { display: none !important; }
