@font-face { font-family: "Playfair"; src: url("/fonts/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("/fonts/playfair-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --navy: #051c2c;
  --deep: #020c15;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.18);
  --gold: #f2c879;
  --ice: #8fc4ff;
  --error: #ffb4a8;
  --radius-control: 999px;
  --radius-surface: 20px;
  --serif: "Playfair", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--navy); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.star { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ───── Movimenti condivisi ───── */
@keyframes rise { from { opacity: 0; transform: translateY(0.7em) rotate(3deg); filter: blur(10px); } }
@keyframes letter { from { opacity: 0; transform: translateY(0.9em) rotateX(-90deg) scale(0.6); filter: blur(6px); } }
@keyframes up { from { opacity: 0; transform: translateY(26px); } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(0.9); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(90px); filter: blur(8px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fadein { from { opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { to { scale: 1.14; } }
@keyframes ring { from { transform: scale(0.45); opacity: 0.85; } to { transform: scale(1.55); opacity: 0; } }
@keyframes drift { to { transform: translate(260px, 180px) scale(1.25); } }
@keyframes twinkle { from { opacity: 0.25; } to { opacity: 1; } }
@keyframes turn { to { --a: 360deg; } }
@keyframes shine { from { transform: translateX(-160%) skewX(-20deg); } to { transform: translateX(360%) skewX(-20deg); } }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) rotate(280deg) scale(0); opacity: 0; } }
@keyframes bump { from { transform: scale(1.6); color: var(--gold); } }
@keyframes wobble { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

.w, .c, .nw { display: inline-block; }
.nw { white-space: nowrap; }
/* Le entrate partono quando la scena diventa quella attiva (slide) o quando la vista compare (telefono). */
.scene.on .w, .view .w, .now .w { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 150ms) + var(--i) * 60ms); }
.scene.on .c { animation: letter 0.9s var(--spring) both; animation-delay: calc(var(--d, 150ms) + var(--i) * 38ms); }
.spark { position: fixed; z-index: 9; width: 14px; height: 14px; color: var(--gold); pointer-events: none; animation: fly 0.85s ease-out forwards; }
.spark .star { display: block; width: 100%; height: 100%; }

/* Controlli a pillola, condivisi da telefono e regia */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: max(44px, 3.25rem); padding: 0 1.6rem; border-radius: var(--radius-control);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--ink);
  font: 600 1.0625rem var(--sans); cursor: pointer; text-decoration: none;
  transition: transform 0.15s, background 0.25s, border-color 0.25s;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { transform: scale(0.96); }
.btn.primary { background: linear-gradient(100deg, #fff, #fdf0d2); color: var(--navy); border-color: transparent; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 30%; background: linear-gradient(90deg, transparent, rgba(242, 200, 121, 0.75), transparent); animation: shine 3.2s ease-in-out infinite; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.wide { width: 100%; }

/* Cielo di fondo di telefono e regia: solo CSS, per non consumare batteria */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #0b3050, var(--navy) 50%, var(--deep)); }
.sky i { position: absolute; width: 95vmax; height: 95vmax; border-radius: 50%; left: -45vmax; top: -45vmax; background: radial-gradient(closest-side, rgba(64, 140, 255, 0.34), transparent); animation: drift 16s ease-in-out infinite alternate; }
.sky i + i { left: auto; top: auto; right: -50vmax; bottom: -45vmax; background: radial-gradient(closest-side, rgba(242, 200, 121, 0.2), transparent); animation-duration: 21s; animation-direction: alternate-reverse; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0; animation: twinkle 2.6s ease-in-out infinite alternate;
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 9%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 64% 34%, var(--gold), transparent), radial-gradient(1.2px 1.2px at 30% 52%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 88% 61%, #fff, transparent), radial-gradient(1.3px 1.3px at 8% 77%, var(--ice), transparent),
    radial-gradient(1.7px 1.7px at 47% 88%, #fff, transparent);
}
.sky::after { transform: scaleX(-1) translateY(9%); animation-duration: 3.7s; animation-direction: alternate-reverse; }

/* ───── Telefono ───── */
.phone { max-width: 34rem; margin: 0 auto; min-height: 100%; padding: 1.25rem 1.25rem 2.5rem; display: flex; flex-direction: column; gap: 1.75rem; font-size: 1.0625rem; line-height: 1.45; }
.brand { display: flex; align-items: center; gap: 0.6rem; font: 600 1.2rem var(--serif); animation: up 0.8s var(--ease) both; }
.brand .star { font-size: 1.15rem; color: var(--gold); animation: spin 9s linear infinite; }
.phone h1 { font: 700 1.8rem/1.18 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.view { display: flex; flex-direction: column; gap: 1.25rem; }
.view .in { animation: up 0.7s var(--ease) both; animation-delay: calc(300ms + var(--i, 0) * 80ms); }
.wait { margin-top: 12vh; text-align: center; align-items: center; }
.orb { position: relative; width: 9rem; height: 9rem; display: grid; place-items: center; color: var(--gold); animation: pop 0.9s var(--spring) both; }
.orb .star { font-size: 4rem; filter: drop-shadow(0 0 24px rgba(242, 200, 121, 0.7)); animation: spin 14s linear infinite, breathe 2.4s ease-in-out infinite alternate; }
.orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(242, 200, 121, 0.6); animation: ring 3s ease-out infinite; }
.orb i:nth-of-type(2) { animation-delay: 1s; }
.orb i:nth-of-type(3) { animation-delay: 2s; }

.options { display: flex; flex-direction: column; gap: 0.75rem; border: 0; padding: 0; margin: 0; }
.option { position: relative; display: block; animation: pop 0.65s var(--spring) both; animation-delay: calc(350ms + var(--i) * 90ms); }
.option input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.face {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 0.9rem; min-height: 4rem; padding: 0.8rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-surface); background: rgba(255, 255, 255, 0.05); font-weight: 500;
  transition: transform 0.15s, border-color 0.3s, color 0.35s;
}
.face::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #fff, #fdf0d2); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.face > * { position: relative; }
.key { flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 0.95rem var(--sans); transition: background 0.3s, color 0.3s, transform 0.6s var(--spring); }
.key::after { content: attr(data-k); }
.option input:active + .face { transform: scale(0.96); }
.option input:checked + .face { color: var(--navy); border-color: #fff; }
.option input:checked + .face::before { transform: scaleX(1); }
.option input:checked + .face .key { background: var(--navy); border-color: var(--navy); transform: rotate(360deg) scale(1.1); }
.option input:checked + .face .key::after { content: "✓"; }
.option input:focus-visible + .face { outline: 3px solid var(--gold); outline-offset: 3px; }
.status { min-height: 1.5rem; color: var(--muted); }
.status.error { color: var(--error); animation: wobble 0.5s; }

.form { display: flex; flex-direction: column; gap: 1rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field label, .legend { font-size: 0.9rem; color: var(--muted); padding: 0; }
.field input {
  height: max(44px, 3.1rem); width: 100%; padding: 0 1.15rem; border-radius: var(--radius-control);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); color: var(--ink); font: 1.0625rem var(--sans);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field input:focus { outline: 0; border-color: var(--gold); background: rgba(255, 255, 255, 0.11); box-shadow: 0 0 0 4px rgba(242, 200, 121, 0.2); }
.rows { border: 1px solid var(--line); border-radius: var(--radius-surface); overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.rows label { display: flex; align-items: center; gap: 0.85rem; min-height: 3.4rem; padding: 0.5rem 1.15rem; cursor: pointer; transition: background 0.3s, padding-left 0.3s var(--spring); }
.rows label + label { border-top: 1px solid var(--line); }
.rows label:has(input:checked) { background: rgba(242, 200, 121, 0.16); padding-left: 1.5rem; }
.rows input, .consent input { width: 1.3rem; height: 1.3rem; accent-color: var(--gold); flex: none; margin: 0; }
.consent { display: flex; gap: 0.85rem; align-items: flex-start; min-height: 2.75rem; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 0.15rem; }
.consent a { color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

/* ───── Slide: palco 1920×1080 scalato sullo schermo ───── */
.stage-wrap { position: fixed; inset: 0; background: #000; overflow: hidden; cursor: none; }
.stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #0b3050 0%, var(--navy) 45%, var(--deep) 100%); }
.aurora i { position: absolute; left: -400px; top: -520px; width: 1300px; height: 1300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(64, 140, 255, 0.36), transparent); animation: drift 22s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(2) { left: auto; top: auto; right: -480px; bottom: -640px; background: radial-gradient(closest-side, rgba(242, 200, 121, 0.2), transparent); animation-duration: 29s; animation-direction: alternate-reverse; }
.aurora i:nth-child(3) { left: 560px; top: 260px; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(126, 96, 255, 0.2), transparent); animation-duration: 35s; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5)); }

.slide { position: absolute; inset: 0; z-index: 2; padding: 120px 150px; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; }
.slide.on { opacity: 1; visibility: visible; }
.slide.out { visibility: visible; animation: leave 0.55s var(--ease) both; }
@keyframes leave { from { opacity: 1; } to { opacity: 0; transform: scale(1.12); filter: blur(14px); } }
/* Le slide fuori scena non consumano: i loro movimenti continui restano fermi. */
.slide:not(.on):not(.out) * { animation-play-state: paused !important; }
.slide.black { background: #000; z-index: 4; }
.slide.black.on { animation: fadein 0.7s both; }
.slide.s-loop { padding: 0; }

.mark { position: absolute; left: 150px; bottom: 54px; z-index: 4; display: flex; align-items: center; gap: 16px; font: 500 26px var(--sans); color: var(--muted); transition: opacity 0.5s; }
.mark .star { font-size: 28px; color: var(--gold); animation: spin 12s linear infinite; }
.progress { position: absolute; left: 0; bottom: 0; z-index: 4; height: 5px; background: linear-gradient(90deg, var(--ice), var(--gold)); box-shadow: 0 0 18px var(--gold); transition: width 0.8s var(--ease), opacity 0.5s; }
.stage[data-t="black"] :is(.mark, .progress), .stage:is([data-t="loop"], [data-t="title"], [data-t="qr"]) .mark { opacity: 0; }

.rule { display: block; width: 120px; height: 3px; flex: none; background: var(--gold); transform-origin: left; }
.scene.on .rule { animation: draw 0.8s var(--ease) 0.8s both; }
.who { display: flex; align-items: center; gap: 28px; margin-top: 46px; font: 400 58px var(--sans); color: var(--gold); --d: 950ms; }

.s-title h1 { font: 700 168px/1 var(--serif); letter-spacing: -0.02em; max-width: 1080px; perspective: 800px; }
.bigstar { position: absolute; right: 130px; top: 280px; width: 520px; height: 520px; color: var(--gold); }
.bigstar .star { width: 100%; height: 100%; filter: drop-shadow(0 0 70px rgba(242, 200, 121, 0.6)); animation: spin 40s linear infinite, breathe 4s ease-in-out infinite alternate; }
.bigstar::before, .bigstar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(242, 200, 121, 0.55); animation: ring 3.4s ease-out infinite; }
.bigstar::after { animation-delay: 1.7s; }
.scene.on .bigstar { animation: starIn 1.5s var(--spring) both; }
@keyframes starIn { from { opacity: 0; transform: scale(0) rotate(-200deg); } }

.s-say { gap: 44px; }
.s-say p { font: 600 100px/1.14 var(--serif); letter-spacing: -0.015em; max-width: 1560px; text-wrap: balance; --d: 500ms; }
.s-say .rule { width: 160px; height: 4px; }
.scene.on.s-say .rule { animation-delay: 0.15s; }
.s-say.hammer { align-items: center; text-align: center; gap: 0; }
.s-say.hammer p { font-size: 176px; font-weight: 800; line-height: 1.06; max-width: 1700px; }
.s-say.hammer p:last-of-type:not(:first-of-type) { color: var(--gold); font-style: italic; }
.scene.on.hammer { animation: shake 0.5s 0.85s; }
.scene.on.hammer p { animation: slam 0.7s cubic-bezier(0.2, 1.3, 0.3, 1) both; animation-delay: calc(250ms + var(--i) * 600ms); }
@keyframes slam { from { opacity: 0; transform: scale(2.3); filter: blur(30px); } 55% { opacity: 1; } }
@keyframes shake { 20% { transform: translate(-12px, 7px); } 40% { transform: translate(9px, -7px); } 60% { transform: translate(-6px, 4px); } 80% { transform: translate(3px, -2px); } }
.underline { width: 460px; height: 6px; margin-top: 64px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.scene.on .underline { animation: draw 1.1s var(--ease) 1.5s both; }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6), transparent 60%); }
.scene.on .flash { animation: flash 0.9s ease-out 0.8s both; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

.s-list { padding-block: 110px; }
.s-list h2 { font: 700 82px/1.08 var(--serif); letter-spacing: -0.015em; margin-bottom: 48px; max-width: 1500px; text-wrap: balance; }
.s-list ol { list-style: none; margin: 0; padding: 0; }
.s-list li { position: relative; display: grid; grid-template-columns: 110px 1fr 1fr; align-items: baseline; gap: 40px; padding: 34px 0; }
.s-list li.solo { grid-template-columns: 110px 1fr; }
.s-list li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; transform-origin: left; background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.2)); }
.scene.on li::before { animation: draw 0.9s var(--ease) both; animation-delay: calc(550ms + var(--i) * 150ms); }
.scene.on li > * { animation: slideIn 0.8s var(--ease) both; animation-delay: calc(650ms + var(--i) * 150ms); }
.s-list .idx { font: 500 44px var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }
.s-list li b { font: 600 54px/1.15 var(--sans); }
.s-list li .p { font-size: 40px; line-height: 1.2; color: var(--muted); }

.side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.scene.on .side { animation: float 5s ease-in-out 1.6s infinite alternate; }
@keyframes float { to { transform: translateY(-16px); } }
.qr { position: relative; width: var(--q, 400px); height: var(--q, 400px); margin-bottom: 12px; }
.qr::before { content: ""; position: absolute; inset: -10px; border-radius: 38px; filter: blur(3px); background: conic-gradient(from var(--a), var(--gold), transparent 25%, var(--ice) 50%, transparent 75%, var(--gold)); animation: turn 5s linear infinite; }
.qr::after { content: ""; position: absolute; inset: -10px; border-radius: 38px; border: 3px solid var(--gold); animation: halo 2.6s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.24); opacity: 0; } }
.scene.on .qr { animation: qrIn 1s var(--spring) 0.45s both; }
@keyframes qrIn { from { opacity: 0; transform: scale(0.5) rotate(-12deg); } }
.qrbox { position: relative; z-index: 1; width: 100%; height: 100%; background: #fff; border-radius: 28px; padding: 22px; }
.qrbox img { display: block; width: 100%; height: 100%; }
.scan { font-size: 30px; color: var(--muted); }
.host { font: 600 36px var(--sans); overflow-wrap: anywhere; text-align: center; }

.s-poll { flex-direction: row; align-items: center; gap: 100px; --q: 440px; }
.s-poll .q { flex: 1; min-width: 0; }
.s-poll h2 { font: 700 68px/1.12 var(--serif); letter-spacing: -0.01em; margin-bottom: 46px; text-wrap: balance; }
.bar { margin-bottom: 24px; }
.scene.on .bar { animation: slideIn 0.8s var(--ease) both; animation-delay: calc(550ms + var(--i) * 120ms); }
.bar .row { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; font-size: 42px; margin-bottom: 12px; transition: color 0.4s; }
.bar .row b { font: 600 52px var(--sans); font-variant-numeric: tabular-nums; }
.track { height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.1); overflow: hidden; transition: box-shadow 0.5s; }
.fill { position: relative; overflow: hidden; height: 100%; width: 0; border-radius: 13px; background: linear-gradient(90deg, #3d7bd9, var(--ice)); transition: width 1s cubic-bezier(0.3, 1.4, 0.4, 1); }
.fill::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: shine 2.2s linear infinite; }
.bar.top .row { color: var(--gold); }
.bar.top .track { box-shadow: 0 0 36px rgba(242, 200, 121, 0.45); }
.bar.top .fill { background: linear-gradient(90deg, #c9963e, var(--gold)); }
.tally { display: flex; align-items: center; gap: 14px; margin-top: 34px; font-size: 32px; color: var(--muted); }
.scene.on .tally { animation: fadein 0.8s 1.3s both; }
.tally b { display: inline-block; font-size: 44px; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally b.bump { animation: bump 0.5s var(--spring); }
.tally i { width: 16px; height: 16px; border-radius: 50%; background: #ff6464; animation: twinkle 0.7s ease-in-out infinite alternate; }

.s-case { overflow: hidden; }
.ghost { position: absolute; left: 0; top: 330px; white-space: nowrap; font: 800 420px/1 var(--serif); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.11); animation: marquee 60s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.s-case h1 { position: relative; font: 800 176px/1 var(--serif); letter-spacing: -0.02em; perspective: 800px; }
.s-case .who { position: relative; font-size: 72px; font-family: var(--serif); font-style: italic; }

.s-qr { flex-direction: row; align-items: center; gap: 130px; --q: 600px; }
.s-qr h1 { font: 800 132px/1.04 var(--serif); letter-spacing: -0.02em; margin-bottom: 36px; perspective: 800px; --d: 500ms; }
.s-qr .txt p { font-size: 50px; line-height: 1.25; color: var(--muted); --d: 1100ms; }

/* Schemi e grafici: stesso titolo dell'elenco */
:is(.s-orbit, .s-path, .s-versus, .s-chart) { padding-block: 110px; }
:is(.s-orbit, .s-path, .s-versus, .s-chart) h2 { font: 700 82px/1.08 var(--serif); letter-spacing: -0.015em; margin-bottom: 56px; max-width: 1500px; text-wrap: balance; }

.orbit { position: relative; width: 1620px; height: 600px; flex: none; }
.orbit > svg { position: absolute; inset: 0; }
.orbit > svg path { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 1; opacity: 0.7; }
.scene.on .orbit > svg path { animation: trace 0.9s var(--ease) both; animation-delay: calc(900ms + var(--i) * 220ms); }
@keyframes trace { from { stroke-dashoffset: 1; } }
.hub { position: absolute; left: 640px; top: 130px; width: 340px; height: 340px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; background: radial-gradient(circle, #123f66, var(--navy) 75%); border: 2px solid var(--gold); box-shadow: 0 0 90px rgba(242, 200, 121, 0.35); }
.scene.on .hub { animation: starIn 1.1s var(--spring) 0.3s both; }
.hub .star { font-size: 54px; color: var(--gold); animation: spin 20s linear infinite; }
.hub b { font: 700 38px/1.1 var(--serif); }
.hub span { font-size: 30px; color: var(--gold); }
.hub i { position: absolute; inset: -46px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.3); animation: spin 50s linear infinite; }
.sat { position: absolute; width: 500px; display: flex; flex-direction: column; gap: 10px; left: 0; top: 60px; text-align: right; }
.sat:nth-of-type(3) { top: 400px; }
.sat:nth-of-type(4), .sat:nth-of-type(5) { left: 1120px; text-align: left; }
.sat:nth-of-type(5) { top: 400px; }
.scene.on .sat { animation: pop 0.8s var(--spring) both; animation-delay: calc(1500ms + var(--i) * 220ms); }
.sat b { font: 600 46px/1.1 var(--sans); }
.sat span { font-size: 32px; line-height: 1.2; color: var(--muted); }

.s-path ol { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 48px; }
.s-path .line { position: absolute; left: 0; right: 0; top: 46px; height: 4px; border-radius: 2px; transform-origin: left; background: linear-gradient(90deg, var(--gold), var(--ice)); box-shadow: 0 0 22px rgba(242, 200, 121, 0.5); }
.scene.on .line { animation: draw calc(var(--n) * 450ms) linear 0.6s both; }
.s-path li { position: relative; display: flex; flex-direction: column; gap: 16px; }
.dot { width: 96px; height: 96px; margin-bottom: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 3px solid var(--gold); color: var(--gold); font: 600 44px var(--sans); box-shadow: 0 0 40px rgba(242, 200, 121, 0.4); }
.scene.on .dot { animation: starIn 0.8s var(--spring) both; animation-delay: calc(600ms + var(--i) * 450ms); }
.scene.on.s-path li > :not(.dot) { animation: up 0.7s var(--ease) both; animation-delay: calc(800ms + var(--i) * 450ms); }
.s-path li b { font: 600 50px/1.12 var(--sans); }
.s-path li .p { font-size: 36px; line-height: 1.22; color: var(--muted); }

.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 44px; }
.vs .card { min-height: 420px; padding: 56px; border: 1px solid var(--line); border-radius: 36px; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.scene.on .vs .card { animation: slideIn 0.9s var(--ease) 0.7s both; }
.scene.on .vs .card:first-child { animation-name: slideBack; }
@keyframes slideBack { from { opacity: 0; transform: translateX(-90px); filter: blur(8px); } }
.vs .card b { font: 700 62px/1.1 var(--serif); }
.vs .card span { font-size: 44px; line-height: 1.22; color: var(--muted); }
.vs .mid { font-size: 90px; color: var(--gold); filter: drop-shadow(0 0 30px rgba(242, 200, 121, 0.7)); }
.scene.on .vs .mid { animation: starIn 1s var(--spring) 1.3s both; }
.vs .mid .star { display: block; animation: spin 14s linear infinite; }

.rings { display: flex; gap: 56px; }
.ring { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.scene.on .ring { animation: pop 0.8s var(--spring) both; animation-delay: calc(500ms + var(--i) * 180ms); }
.ring .ask { font-size: 32px; line-height: 1.2; color: var(--muted); min-height: 3.6em; text-wrap: balance; }
.dial { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.dial svg { position: absolute; inset: 0; rotate: -90deg; overflow: visible; }
.dial circle { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 16; }
.dial .arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 12px rgba(242, 200, 121, 0.7)); transition: stroke-dashoffset 1.6s var(--ease) 0.9s; }
.dial b { font: 600 84px var(--sans); font-variant-numeric: tabular-nums; }
.ring .ans { font: 700 46px/1.12 var(--serif); color: var(--gold); text-wrap: balance; }
.ring .n { font-size: 28px; color: var(--muted); }

.s-image { padding: 0; justify-content: flex-end; overflow: hidden; }
.s-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene.on.s-image img { animation: zoom 24s ease-out both; }
@keyframes zoom { from { scale: 1.12; } }
.s-image h2 { position: relative; padding: 220px 150px 110px; font: 700 76px/1.1 var(--serif); background: linear-gradient(transparent, rgba(2, 12, 21, 0.92)); }

/* Comando dello schermo intero: si vede solo mentre si muove il mouse */
.fs { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 5; opacity: 0; pointer-events: none; transition: opacity 0.3s; background: rgba(5, 28, 44, 0.85); }
.moving .fs, .fs:focus-visible { opacity: 1; pointer-events: auto; }
.moving .stage-wrap { cursor: default; }

/* ───── Dashboard ───── */
.dash { padding: 1.25rem 0 3rem; display: flex; flex-direction: column; gap: 2rem; font-size: 1.0625rem; }
.dash > :not(.wide) { margin-inline: 1.5rem; }
.dash header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.dash header .brand { margin-right: auto; }
.dash h2 { font: 700 1.5rem/1.2 var(--serif); display: flex; align-items: baseline; gap: 0.75rem; }
.dash h2 small { font: 500 1rem var(--sans); color: var(--muted); }
.dash table { width: 100%; border-collapse: collapse; }
.dash :is(th, td) { text-align: left; padding: 0.7rem 1.5rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dash :is(th, td):first-child { padding-left: 1.5rem; }
.dash th { padding-block: 0; }
.dash th button { min-height: 44px; background: none; border: 0; padding: 0; color: var(--muted); font: 500 0.9rem var(--sans); cursor: pointer; }
.dash th button[aria-sort]::after { content: " ↑"; color: var(--gold); }
.dash th button[aria-sort="descending"]::after { content: " ↓"; }
.dash tbody tr { animation: up 0.5s var(--ease) both; }
.dash td .btn { min-height: 44px; padding: 0 1.1rem; font-size: 0.95rem; }
.dash .detail td { padding-left: 1.5rem; background: rgba(255, 255, 255, 0.04); }
.dash .detail dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.4rem 2rem; }
.dash .detail dt { color: var(--muted); }
.dash .detail dd { margin: 0; font-weight: 600; }
.dash .empty { color: var(--muted); padding: 1rem 1.5rem; }
.dash .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; }
.dash .q { border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 1.1rem 1.25rem; background: rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 0.7rem; }
.dash .q h3 { font: 600 1.1rem/1.3 var(--sans); }
.dash .q .row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.dash .q .row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash .q .track { height: 8px; margin-top: 0.25rem; }
.dash .q .fill { transition: width 0.8s var(--ease); }
.dash .q .top .fill { background: linear-gradient(90deg, #c9963e, var(--gold)); }

/* ───── Regia ───── */
.regia { max-width: 46rem; margin: 0 auto; padding: 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.0625rem; }
/* Slide corrente e comandi restano visibili mentre si scorre la scaletta */
.regia .top { position: sticky; top: 0; z-index: 1; display: flex; flex-direction: column; gap: 0.75rem; padding: 1.25rem 0 0.75rem; margin-top: -1.25rem; background: rgba(5, 28, 44, 0.86); backdrop-filter: blur(14px); }
.regia .now { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-surface); padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; background: rgba(255, 255, 255, 0.05); }
.regia .now h1 { font: 700 1.5rem/1.2 var(--serif); --d: 0ms; }
.regia .now .progress { height: 4px; }
.regia .nav { display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; }
.regia .nav .btn { min-height: 4.5rem; font-size: 1.2rem; }
.regia .tools { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.regia ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.regia ol li { animation: up 0.5s var(--ease) both; animation-delay: calc(min(var(--i), 20) * 25ms); }
.regia ol button {
  display: flex; gap: 0.9rem; width: 100%; min-height: max(44px, 2.9rem); align-items: center; padding: 0.4rem 0.6rem;
  background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background 0.3s, padding-left 0.35s var(--spring);
}
.regia ol button:hover { background: rgba(255, 255, 255, 0.07); }
.regia ol button[aria-current="true"] { background: rgba(242, 200, 121, 0.16); font-weight: 600; padding-left: 1.1rem; box-shadow: inset 4px 0 var(--gold); }
.regia ol .n { width: 2rem; color: var(--gold); font-variant-numeric: tabular-nums; flex: none; }
.regia ol .k { color: var(--muted); margin-left: auto; font-size: 0.875rem; flex: none; }

/* Con «riduci movimento» resta lo stato finale, senza animazioni. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
