

section { position: relative; }
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { margin-top: 10px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
.lamp { color: var(--lamp-ink); }

/* ---------- eroe: il pannello vero, da provare ---------- */
.hero { padding: 112px 0 clamp(70px, 9vw, 120px); text-align: center; overflow: hidden;
  background: radial-gradient(60% 46% at 50% 78%, var(--glow), transparent 72%); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); }
.hero .lead { margin: 20px auto 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 12px; }
.hero .cta { justify-content: center; }
.fine { font-size: .86rem; color: var(--ink-3); margin: 0; }
.desk {
  position: relative; width: min(1120px, calc(100vw - 32px)); margin: 44px auto 0; aspect-ratio: 16 / 9.4;
}
.desk-screen { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; container-type: inline-size;
  background: var(--wall); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); }
.desk-screen::after { content: ""; position: absolute; inset: 0; background: #05060a; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; z-index: 2; }
.desk[data-stato="run"] .desk-screen::after { opacity: .55; }
.desk .menubar { position: relative; z-index: 3; font-size: max(11px, 1.15cqw); height: 2.1em; }
.desk .term { left: 3.5cqw; top: 7cqw; width: 44cqw; font-size: max(9px, 1.15cqw); }
.desk .svp { position: absolute; z-index: 4; right: 7.5cqw; top: 2.6cqw; font-size: max(10.5px, 1.04cqw); }
.chip { position: absolute; z-index: 5; left: calc(3% + var(--pw) + 18px); bottom: 4cqw; font: 600 13px/1 var(--font-mono); color: #200E02; background: #F5863A;
  padding: 9px 13px; border-radius: 999px; box-shadow: 0 10px 30px -6px #F5863A; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s; }
.chip { white-space: nowrap; } .chip .corto { display: none; }
.desk[data-stato="run"] .chip { opacity: 1; transform: none; }
/* telefono stretto: l'etichetta resta su una riga col testo corto */
@media (max-width: 420px) { .chip { left: 10px; padding: 8px 11px; } .chip .lungo { display: none; } .chip .corto { display: inline; } }
.callout { position: absolute; z-index: 5; right: calc(7.5cqw + 25.5em); bottom: 26%; display: flex; align-items: flex-end; gap: 10px;
  font: 500 14px/1.3 var(--font); color: #1b2233; text-align: right; text-shadow: 0 0 14px rgba(255,255,255,.9), 0 0 3px rgba(255,255,255,.8); transition: opacity .4s; }
.callout b { display: block; font-size: 17px; font-weight: 700; }
.callout svg { width: 64px; height: 34px; stroke: var(--lamp-ink); fill: none; stroke-width: 2; stroke-linecap: round; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .callout { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); } :root:not([data-theme="light"]) .callout svg { stroke: #F5863A; } }
:root[data-theme="dark"] .callout { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
:root[data-theme="dark"] .callout svg { stroke: #F5863A; }
.playing .callout, .played .callout { opacity: 0; }
/* il telefono a sinistra, sporgente sotto il desktop: non copre mai il pannello */
.desk { --pw: clamp(130px, 15vw, 210px); }
.desk .phonebox { position: absolute; z-index: 6; left: 3%; bottom: calc(var(--pw) * -.62); }
.desk .phone { --w: var(--pw); }
.desk-foot { position: absolute; left: calc(3% + var(--pw) + 24px); right: 0; top: calc(100% + 22px); display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: .85rem; color: var(--ink-3); text-align: right; }
.replay { padding: 8px 14px; font-size: .88rem; display: none; }
.played .replay { display: inline-flex; }
@media (max-width: 760px) {
  .hero { padding-top: 96px; }
  .desk { aspect-ratio: auto; height: 600px; transform: none; }
  .desk .term, .callout { display: none; }
  .desk .menubar span:nth-child(n+3):nth-child(-n+6) { display: none; }
  .desk .svp { right: auto; left: 50%; transform: translateX(-50%); top: 38px; font-size: 11.2px; width: min(22.5em, calc(100% - 20px)); }
  .desk { --pw: 124px; }
  .desk .phonebox { left: auto; right: -4px; bottom: -40px; }
  .chip { left: 12px; bottom: 14px; font-size: 11px; }
  .desk-foot { left: 0; top: calc(100% + 54px); flex-direction: column; gap: 10px; justify-content: center; text-align: center; }
}

/* ---------- la notifica grande: il momento che vende ---------- */
.bignote {
  --nb: rgba(246, 246, 250, .86); --ni: #111216; --ni2: rgba(17, 18, 22, .58);
  display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center;
  width: clamp(250px, 32vw, 390px); padding: 14px 18px 14px 14px; border-radius: 24px;
  background: var(--nb); color: var(--ni);
  -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 0 0 .5px rgba(0,0,0,.12), 0 30px 70px -18px rgba(0,0,0,.55), 0 8px 24px -10px rgba(0,0,0,.35);
  font: 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif; text-align: left;
  transition: opacity .5s ease, transform .7s cubic-bezier(.18, 1.35, .4, 1);
}
.bignote .ico { width: 46px; height: 46px; border-radius: 12px; background: #2f8f83; display: grid; place-items: center; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25); }
.bignote .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bignote .txt { display: grid; gap: 1px; min-width: 0; }
.bignote .hd { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--ni2); text-transform: uppercase; letter-spacing: .04em; }
.bignote .hd b { font-weight: 600; } .bignote .hd i { font-style: normal; text-transform: none; letter-spacing: 0; }
.bignote .ti { font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.bignote .bo { color: var(--ni2); font-weight: 500; }
.bignote.pending { opacity: 0; transform: translateY(-26px) scale(.86); pointer-events: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bignote { --nb: rgba(44, 44, 50, .84); --ni: #f5f5f7; --ni2: rgba(235, 235, 245, .6); } }
:root[data-theme="dark"] .bignote { --nb: rgba(44, 44, 50, .84); --ni: #f5f5f7; --ni2: rgba(235, 235, 245, .6); }
.desk .bignote { position: absolute; z-index: 7; left: calc(3% + var(--pw) * .5); bottom: calc(var(--pw) * .3); }
@media (max-width: 760px) { .desk .bignote { left: 10px; right: 10px; bottom: 120px; width: auto; font-size: 14px; } }

/* ---------- la storia: dal tavolo al treno ---------- */
.story { height: 420vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: radial-gradient(70% 60% at 72% 46%, var(--glow), transparent 70%), linear-gradient(180deg, var(--bg), var(--sky-1) 55%, var(--bg)); }
.story-grid { height: 100%; display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 40px; align-items: center; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.beats li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 18px; opacity: .32; transition: opacity .5s ease; }
.beats li.on { opacity: 1; }
.beats li.was { opacity: .55; }
.beats .t { grid-row: span 2; align-self: start; font: 700 .95rem/1 var(--font-mono); color: #F5863A; background: #0d0e10; padding: 9px 0; border-radius: 8px; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.beats h3 { margin: 4px 0 2px; font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--font-display); letter-spacing: -.03em; }
.beats p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.story-visual { position: relative; height: 100%; display: grid; place-items: center; }
.story .macwrap { position: relative; width: min(640px, 100%); transform: translateY(calc(var(--close, 0) * -6vh + var(--bag, 0) * 17vh)) scale(calc(1 - var(--bag, 0) * .3)); z-index: 2; }
.story .mbp { --w: min(640px, 46vw); perspective-origin: 50% -25%; opacity: calc(1 - var(--stand, 0) * 1.6); }
.slab { position: absolute; left: 13%; right: 13%; top: 4%; aspect-ratio: 16 / 10.4; border-radius: 18px 18px 8px 8px;
  background: linear-gradient(175deg, #e6e7eb, #c6c8ce 60%, #b2b4bb);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), inset 0 -6px 0 rgba(0,0,0,.08), 0 24px 60px rgba(0,0,0,.35);
  opacity: var(--stand, 0); transform-origin: 50% 100%;
  transform: perspective(1100px) rotateX(calc((1 - var(--stand, 0)) * 72deg)); }
.bag { position: absolute; left: 50%; bottom: -4vh; width: min(560px, 42vw); transform: translate(-50%, calc((1 - var(--bag, 0)) * 110%)); z-index: 3; pointer-events: none; }
.bag-back { z-index: 1; }
.bag .handle { fill: none; stroke: #262a33; stroke-width: 14; stroke-linecap: round; }
.bag svg { width: 100%; height: auto; }
.bag .back { fill: #262a33; } .bag .front { fill: #343a47; } .bag .pocket { fill: #2c313c; }
.bag .seam { stroke: rgba(255,255,255,.2); stroke-dasharray: 6 6; fill: none; stroke-width: 2.5; }
.bag .zip { stroke: var(--lamp); stroke-width: 4; stroke-linecap: round; }
.bag .tagb { fill: var(--lamp); }
.awake-tag { position: absolute; z-index: 7; left: 50%; top: 18%; transform: translate(-50%, 0); opacity: calc(var(--close, 0) * (1 - var(--phone, 0) * 1.4));
  font: 600 .88rem/1 var(--font-mono); color: #200E02; background: #F5863A; padding: 9px 14px; border-radius: 999px; box-shadow: 0 10px 40px -6px #F5863A; white-space: nowrap; }
.story .phonebox { position: absolute; right: -3%; bottom: 7vh; z-index: 6; transform: translateY(calc((1 - var(--phone, 0)) * 130%)) rotate(calc((1 - var(--phone, 0)) * 7deg)); }
.story .phone { --w: clamp(170px, 16vw, 240px); }
.bignote-wrap { position: absolute; z-index: 8; right: clamp(120px, 13vw, 200px); bottom: 34vh; opacity: var(--phone, 0); }
.streaks { position: absolute; inset: 30% 0 10% 0; opacity: calc(var(--bag, 0) * .8); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 134, 58, .25) 50%, transparent) 0 30% / 220px 1.5px no-repeat,
              linear-gradient(90deg, transparent, rgba(156, 199, 255, .25) 50%, transparent) 0 60% / 340px 1px no-repeat,
              linear-gradient(90deg, transparent, rgba(245, 134, 58, .3) 50%, transparent) 0 82% / 160px 2px no-repeat;
  animation: corsa 1.8s linear infinite; }
@keyframes corsa { from { background-position: 110% 30%, 120% 60%, 105% 82%; } to { background-position: -40% 30%, -60% 60%, -30% 82%; } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 500 .74rem/1 var(--font-mono); color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; opacity: calc(1 - var(--p, 0) * 10); }
@media (max-width: 860px) {
  .story { height: 380vh; }
  .story-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding-top: 80px; }
  .beats { gap: 0; min-height: 132px; }
  .beats li { grid-area: 1 / 1; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
  .beats li.on { opacity: 1; transform: none; }
  .beats li.was { opacity: 0; }
  .beats { grid-template-areas: "a"; }
  .story .mbp { --w: 84vw; }
  .bag { width: 74vw; }
  .story .phone { --w: 132px; }
  .story .phonebox { right: 0; bottom: 4vh; }
  .bignote-wrap { right: 70px; left: 0; bottom: 30vh; }
  .bignote-wrap .bignote { width: auto; font-size: 14px; }
}
.story.calmo { height: auto; }
.story.calmo .stage { position: relative; height: auto; padding: 100px 0; }
.story.calmo .beats li { opacity: 1; }
.story.calmo .story-visual { min-height: 520px; }

/* ---------- il problema ---------- */
.versus { display: grid; gap: 18px; }
/* tre colonne solo da 1000 px: più stretto, il comando di pmset non ci sta nemmeno andando a capo */
@media (min-width: 1000px) { .versus { grid-template-columns: repeat(3, 1fr); } }
.shell { background: #0d0e11; color: #d8dbe2; border-radius: 16px; padding: 0 0 20px; font: 500 .9rem/1.65 var(--font-mono); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), var(--shadow-sm); overflow: hidden; }
.shell .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; color: rgba(255,255,255,.55); font: 600 .74rem/1 var(--font); }
.shell .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3b40; display: block; }
.shell pre { margin: 0; padding: 4px 4px 0 16px; white-space: pre; overflow-x: auto; font: inherit; }
.shell .cmd { color: #fff; } .shell .cmd::before { content: "$ "; color: #8be28b; }
.shell .dot { display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; background: #F5863A; vertical-align: .02em; }
.shell .c { color: rgba(255,255,255,.5); }
.shell .y { color: #8be28b; } .shell .n { color: #ff8a7a; } .shell .w { color: #F5863A; }
.shell.us { box-shadow: inset 0 0 0 1.5px rgba(245,134,58,.55), 0 20px 60px -20px rgba(245,134,58,.35); }
.shell .verdict { margin: 16px 16px 0; font: 700 1.05rem/1.25 var(--font-display); letter-spacing: -.02em; color: #fff; }
/* telefono, e tre colonne strette da computer: ogni esito va a capo sotto il suo commento,
   niente scorrimento nel riquadro. Da 1180 px le righe intere ci stanno. */
@media (max-width: 480px), (min-width: 1000px) and (max-width: 1179.98px) {
  .shell pre { white-space: pre-line; overflow-x: visible; }
  .shell .c { display: block; }
  .shell .c + .y, .shell .c + .n, .shell .c + .w { margin-left: 2ch; }
  .shell .segue { margin-left: 4ch; }
  .shell .c.dopo { display: inline-block; width: 100%; padding-left: 2ch; box-sizing: border-box; }
}
@media (max-width: 480px) { .shell pre { padding: 4px 16px 0; } }
@media (max-width: 340px) { .shell pre { font-size: 13.5px; } }

/* ---------- calore: i dati veri ---------- */
.heat-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .heat-grid { grid-template-columns: 1.6fr 1fr; } }
.chart { background: var(--surface); border-radius: 22px; padding: 22px 20px 14px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .ax { fill: var(--ink-3); font: 500 15px var(--font-mono); }
.chart .stop { stroke: var(--hot); stroke-width: 1.5; stroke-dasharray: 5 6; }
.chart .stopl { fill: var(--hot); font: 650 17px var(--font); }
.chart .worst { fill: none; stroke: var(--ink-3); stroke-width: 2.5; stroke-dasharray: 7 7; }
.chart .worstdot { fill: var(--bg); stroke: var(--ink-3); stroke-width: 2.5; }
.chart .worstl { fill: var(--ink-2); font: 500 16px var(--font); }
.chart .real { fill: none; stroke: var(--lamp); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .realdot { fill: var(--lamp); }
.chart .reall { fill: var(--lamp-ink); font: 700 18px var(--font); }
.js .chart .real { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
.js .chart .worst { opacity: 0; transition: opacity .9s ease; }
.js .chart .realdot, .js .chart .worstdot, .js .chart .reall, .js .chart .worstl { opacity: 0; transition: opacity .5s ease 2.1s; }
.js .chart .worstdot, .js .chart .worstl { transition-delay: .8s; }
.js .chart.drawn .real { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1) .4s; }
.js .chart.drawn .worst, .js .chart.drawn .realdot, .js .chart.drawn .worstdot, .js .chart.drawn .reall, .js .chart.drawn .worstl { opacity: 1; }
.chart figcaption { font-size: .85rem; color: var(--ink-3); margin: 10px 4px 2px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-bottom: 26px; }
.stat { background: var(--surface); padding: 18px 16px; }
.stat b { display: block; font: 650 clamp(1.7rem, 3vw, 2.4rem)/1 var(--font-round); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-3); line-height: 1.3; }
.stat b { white-space: nowrap; }
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 6.2rem 1fr; align-items: center; gap: 12px; padding: 14px 16px; }
  .stat span { margin-top: 0; }
}
.heat-copy p { color: var(--ink-2); }
.proof { margin: 26px 0 0; display: grid; gap: 12px; }
.proof img { max-width: 360px; width: 100%; }
.proof img { border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-sm); }
.proof figcaption { font-size: .84rem; color: var(--ink-3); }

/* ---------- telefono ---------- */
.phone-sec { overflow: hidden; }
.phone-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .phone-grid { grid-template-columns: 1fr 1fr; } }
.phone-sec .phone { --w: min(330px, 78vw); margin: 0 auto; }
.phone-sec .phone-notes { bottom: 12cqw; flex-direction: column; }
.js .phone-sec .note { opacity: 0; transform: translateY(24px) scale(.94); }
.js .phone-sec .in .note { opacity: 1; transform: none; }
.js .phone-sec .in .note:nth-child(1) { transition-delay: .2s; }
.js .phone-sec .in .note:nth-child(2) { transition-delay: .9s; }
.js .phone-sec .in .note:nth-child(3) { transition-delay: 1.6s; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.ticks li { padding-left: 34px; position: relative; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 650; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 6px; background: var(--lamp-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 4.5px; border-left: 2px solid var(--lamp-ink); border-bottom: 2px solid var(--lamp-ink); transform: rotate(-45deg); }

/* ---------- le guardie ---------- */
.guards { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); }
@media (min-width: 820px) { .guards { grid-template-columns: repeat(3, 1fr); } }
.guard { padding: 26px 22px 30px 0; border-bottom: 1px solid var(--line-2); }
.guard b { display: block; font: 650 clamp(2.4rem, 5.4vw, 4.4rem)/1 var(--font-round); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.guard b small { font-size: .45em; letter-spacing: 0; margin-left: .08em; }
.guard span { display: block; margin-top: 10px; color: var(--ink-2); font-size: .95rem; max-width: 22em; }
.guard:first-child b { color: var(--lamp-ink); }
.nopass { margin-top: 44px; display: grid; gap: 22px; color: var(--ink-2); }
@media (min-width: 820px) { .nopass { grid-template-columns: 1fr 1fr; } }
.nopass h3 { font: 700 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin: 0 0 8px; }
.nopass p { margin: 0; }

/* ---------- confronto ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 940px; font-size: .92rem; table-layout: fixed; }
thead th:first-child { width: 14%; }
th, td { text-align: left; vertical-align: top; padding: 15px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
thead th { font-size: .9rem; font-weight: 650; }
thead th span { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
tbody th { font-weight: 600; }
.note-src a { color: var(--ink-2); }
th.us, td.us { background: var(--lamp-soft); }
thead th.us { color: var(--lamp-ink); }
.yes { color: var(--ok); font-weight: 650; } .no { color: var(--hot); font-weight: 650; } .part { color: var(--lamp-ink); font-weight: 650; }
.small { font-size: .84rem; color: var(--ink-3); }
.note-src { margin-top: 14px; }
.scroll-tip { display: none; }
@media (max-width: 820px) { .scroll-tip { display: block; margin: 0 0 10px; } }

/* ---------- prezzo ---------- */
.price-sec { text-align: center; }
.ticket { position: relative; max-width: 620px; margin: 0 auto; border-radius: 28px; padding: clamp(32px, 5vw, 52px) clamp(22px, 5vw, 52px);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); overflow: hidden; }
.ticket::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(50% 50% at 50% 50%, var(--lamp-soft), transparent 70%); pointer-events: none; }
.price { position: relative; font: 700 clamp(4.4rem, 12vw, 7rem)/.9 var(--font-round); letter-spacing: -.05em; margin: 10px 0 6px; }
.price small { font: 500 1.1rem/1 var(--font); letter-spacing: 0; color: var(--ink-3); margin-left: .2em; }
.ticket .checks { list-style: none; padding: 0; margin: 26px auto; max-width: 360px; text-align: left; display: grid; gap: 10px; }
.ticket .checks li { padding-left: 30px; position: relative; }
.ticket .checks li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 12px; height: 6.5px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.ticket .cta { justify-content: center; }
.ticket .small { position: relative; max-width: 460px; margin: 16px auto 0; }

/* ---------- domande ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font: 650 1.08rem/1.35 var(--font-display); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- chiusura ---------- */
.last { text-align: center; padding: clamp(90px, 13vw, 170px) 0; overflow: hidden;
  background: radial-gradient(50% 60% at 50% 100%, var(--glow), transparent 75%); }
.last h2 { font-size: clamp(2.8rem, 8vw, 6.4rem); }
/* il segno «not»: lettere del colore del testo, punto arancione, alone che respira piano */
.last .segno { width: 136px; margin: 0 auto 22px; color: var(--ink); }
.last .segno svg { display: block; width: 100%; height: auto; fill: currentColor; }
.last .segno .o { fill: #F5863A; }
.last .segno .alone { animation: respiro 4s ease-in-out infinite; }
@keyframes respiro { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.last .cta { justify-content: center; }

/* ---------- piede ---------- */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-3); }
footer a:hover { color: var(--ink); }
.disclaimer { flex-basis: 100%; font-size: .8rem; margin: 6px 0 0; }

/* ---------- pagine legali ---------- */
.legal { padding: 120px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font: 750 clamp(2.2rem, 5vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -.04em; margin: 0 0 .3em; }
.legal h2 { font: 700 1.35rem/1.25 var(--font-display); letter-spacing: -.02em; margin: 2.2em 0 .6em; }
.legal h2[id] { scroll-margin-top: 84px; }
.legal h3 { font: 650 1.08rem/1.3 var(--font-display); margin: 1.6em 0 .5em; }
.legal li { margin-bottom: .45em; }
.legal .meta { color: var(--ink-3); }
.legal p, .legal li { color: var(--ink-2); }
.legal strong { color: var(--ink); }
.legal a { color: var(--lamp-ink); }
.warning { border-left: 4px solid var(--lamp); background: var(--surface); border-radius: 0 16px 16px 0; padding: 18px 22px; margin: 24px 0; box-shadow: 0 0 0 1px var(--line); }
.warning p { margin: 0; }
.todo { border: 1.5px dashed var(--hot); color: var(--hot) !important; border-radius: 12px; padding: 10px 14px; margin: 14px 0; font-size: .9rem; }

.story.calmo .scroll-hint, .story.calmo .awake-tag, .story.calmo .bag { display: none; }

/* ---------- guide ---------- */
.guide { max-width: 780px; margin: 0 auto; padding: 116px 16px 40px; }
@media (min-width: 760px) { .guide { padding-left: 32px; padding-right: 32px; } }
.g-crumb { margin: 0; font: 600 .78rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.g-crumb a { color: var(--lamp-ink); text-decoration: none; }
.g-head h1 { font: 750 clamp(2.1rem, 5.2vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -.04em; margin: 14px 0 18px; text-wrap: balance; }
.g-head .lead { margin: 0 0 14px; }
.g-meta { color: var(--ink-3); font-size: .88rem; margin: 0; }
.g-body { margin-top: 34px; }
.g-body h2 { font: 720 clamp(1.45rem, 3vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -.03em; margin: 2.1em 0 .55em; text-wrap: balance; }
.g-body h3 { font: 680 1.15rem/1.3 var(--font-display); letter-spacing: -.015em; margin: 1.6em 0 .4em; }
.g-body p, .g-body li { color: var(--ink-2); font-size: 1.05rem; line-height: 1.7; }
.g-body li { margin-bottom: .45em; }
.g-body strong { color: var(--ink); }
.g-body a { color: var(--lamp-ink); text-underline-offset: 2px; }
.g-body pre { margin: 18px 0 22px; padding: 16px 18px; border-radius: 14px; background: #0d0e11; color: #e6e8ee; overflow-x: auto;
  font: 500 .88rem/1.65 var(--font-mono); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.g-body pre code { background: none; padding: 0; font: inherit; color: inherit; }
.g-body pre .c { color: rgba(255,255,255,.45); }
.tldr, .warn { margin: 26px 0; padding: 18px 22px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tldr { border-left: 4px solid var(--lamp); }
.warn { border-left: 4px solid var(--hot); }
.tldr p, .warn p { margin: 0; }
.tldr p + p, .warn p + p { margin-top: .6em; }
.tldr b:first-child, .warn b:first-child { color: var(--ink); }
.g-body .table-scroll { margin: 20px 0 26px; }
.g-body table { min-width: 600px; table-layout: auto; font-size: .93rem; }
.g-body td, .g-body th { color: var(--ink-2); }
.g-body thead th, .g-body tbody th { color: var(--ink); }
.g-body figure.chart { margin: 24px 0; }
.g-src { font-size: .9rem !important; color: var(--ink-3) !important; }
.g-app { margin: 60px 0 0; padding: 28px; border-radius: 22px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .g-app { grid-template-columns: 1fr auto; } }
.g-app h2 { font: 720 1.4rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.g-app p { margin: 0; color: var(--ink-2); }
.g-app .kicker { margin-bottom: 12px; }
.g-app .cta { margin: 0; }
.g-more { margin: 56px 0 20px; }
.g-more h2 { font: 700 1.2rem/1.2 var(--font-display); margin: 0 0 10px; }
.g-more ul, .g-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.g-more li, .g-list li { border-bottom: 1px solid var(--line-2); }
.g-more a, .g-list a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; }
.g-more a b, .g-list a b { font: 650 1.05rem/1.3 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.g-more a span, .g-list a span { color: var(--ink-3); font-size: .93rem; }
.g-more a:hover b, .g-list a:hover b { color: var(--lamp-ink); }
.g-list a { padding: 24px 0; }
.g-list a b { font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.025em; }

/* ---------- il film: la scena 3D ferma mentre la sezione scorre (16/11) ----------
   Sempre scuro, anche col tema chiaro: è la notte nello zaino. Testi a sinistra,
   un solo titolo per momento, un solo bottone (le quattro regole del reel di
   @vadimship.dev, Video/reel_2026-11-16_siti/RAPPORTO.md). */
.film {
  --ink: #f2efe8; --ink-2: #b9b5ac; --ink-3: #8d8a83; --lamp: #F5863A; --lamp-ink: #F5863A;
  height: 640vh; color: var(--ink);
  background: #07080b;
}
.film-palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background:
    radial-gradient(70% 60% at 72% 46%, rgba(120, 140, 200, .10), transparent 70%),
    radial-gradient(50% 40% at 70% 80%, rgba(245, 134, 58, calc(.05 + var(--p, 0) * .12)), transparent 70%),
    #07080b; }
.film-tela { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.film-testi { position: relative; height: 100%; pointer-events: none; }
.battuta { position: absolute; left: 16px; right: 16px; top: 50%; max-width: 520px;
  transform: translateY(calc(-50% + 26px)); opacity: 0; visibility: hidden;
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), visibility 0s .55s; }
.battuta.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition-delay: 0s; pointer-events: auto; }
@media (min-width: 760px) { .battuta { left: 32px; } }
@media (min-width: 1224px) { .battuta { left: calc((100vw - var(--max)) / 2 + 32px); } }
.battuta .h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); margin: 0 0 .3em; }
.battuta .lead { color: var(--ink-2); max-width: 25em; }
.battuta .ora { font: 600 .82rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lamp-ink); margin: 0 0 16px; }
.eroe h1 { font-size: clamp(2.9rem, 5.6vw, 5rem); }
@media (min-width: 761px) { .battuta.eroe { max-width: 640px; } }
.eroe .lead { margin-top: 22px; max-width: 23em; }
.eroe .fine { color: var(--ink-3); }
.eroe .fine a { color: var(--ink-2); }
.gradi { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 14px; font-family: var(--font-round); }
.gradi b { font-size: clamp(4.4rem, 11vw, 8.6rem); font-weight: 700; letter-spacing: -.04em; line-height: .9;
  font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff3c4, #F5863A 45%, #e5484d);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.gradi span { font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink-2); font-weight: 600; }
.film-nota { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; margin-top: 26px; max-width: 420px;
  padding: 14px 16px; border-radius: 22px; background: rgba(44, 44, 50, .82); color: #f5f5f7;
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.14), 0 30px 70px -20px rgba(0,0,0,.8);
  transform: translateY(-18px) scale(.92); opacity: 0; transition: transform .6s cubic-bezier(.2,1.3,.4,1) .25s, opacity .4s .25s; }
.battuta.on .film-nota { transform: none; opacity: 1; }
.film-nota .ico { width: 46px; height: 46px; border-radius: 12px; background: #2f8f83; display: grid; place-items: center; }
.film-nota .ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.film-nota .txt { display: grid; gap: 1px; min-width: 0; }
.film-nota .hd { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(235,235,245,.6); text-transform: uppercase; letter-spacing: .04em; }
.film-nota .hd i { font-style: normal; text-transform: none; letter-spacing: 0; }
.film-nota .ti { font-weight: 700; font-size: 1.08rem; }
.film-nota .bo { color: rgba(235,235,245,.6); font-weight: 500; }
.film-giu { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; font: 600 .72rem/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: calc(1 - var(--p, 0) * 30); }
.film-giu::after { content: ""; display: block; width: 1px; height: 26px; margin: 10px auto 0; background: linear-gradient(var(--ink-3), transparent); }
.film-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.06); }
.film-barra i { display: block; height: 100%; background: var(--lamp); transform-origin: 0 50%; transform: scaleX(0); }
/* telefono: i testi in alto, il Mac sotto */
@media (max-width: 760px) {
  .film { height: 600vh; }
  .battuta { top: 84px; transform: translateY(20px); }
  .battuta.on { transform: none; }
  .battuta .lead { font-size: 1rem; }
  .battuta .h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .eroe h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .gradi b { font-size: 4rem; }
}
/* senza WebGL o con poco movimento: niente scena ferma, i testi uno sotto l'altro */
.film.senza-3d { height: auto; }
.film.senza-3d .film-palco { position: relative; height: auto; }
.film.senza-3d .film-tela, .film.senza-3d .film-giu, .film.senza-3d .film-barra { display: none; }
.film.senza-3d .battuta { position: relative; top: auto; left: auto; transform: none; opacity: 1; visibility: visible; padding: 60px 0; }
.film.senza-3d .film-nota { opacity: 1; transform: none; position: static; }
.film.senza-3d .eroe { padding-top: 120px; }

/* la prova del pannello, sotto il film */
.prova { padding-top: clamp(90px, 11vw, 140px); }
.prova .h2 { margin-bottom: 12px; }

/* la barra in alto sopra il film: scura anche col tema chiaro */
.sul-film .top { --ink: #f2efe8; --ink-2: #b9b5ac; --bg: #07080b; --line: rgba(255,255,255,.1); color: var(--ink); }

/* la scala della termocamera: 25-42 °C, col segno al valore letto */
.scala { position: relative; width: min(340px, 100%); margin: 0 0 18px; }
.scala i { display: block; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, #050214, #380b6b 20%, #9e0d80 40%, #eb4d1a 60%, #ffb81a 80%, #fffad1); }
.scala b { position: absolute; top: -5px; left: calc(var(--t, 0) * 100%); width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px;
  background: #fff; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); }
.scala > span { display: flex; justify-content: space-between; margin-top: 8px; font: 600 .72rem/1 var(--font-mono); color: var(--ink-3); letter-spacing: .04em; }
.scala span em { font-style: normal; color: #ff8a7a; }

/* ---------- telefono e PC stretti (16/11, dopo la prova dell'utente): niente scorrimento laterale ----------
   Fino a 1023 px la tabella mostra Hibernot accanto a un'app sola, scelta coi bottoni sopra
   (sotto i 1024 px le sei colonne non ci stanno: prima fra 761 e 1023 px si scorreva di lato). */
.confronta { display: none; }
@media (max-width: 1023px) {
  .confronta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
  .confronta span { width: 100%; font: 600 .78rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .confronta button { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem;
    background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .confronta button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
  #compare .table-scroll { overflow: visible; }
  #compare table { min-width: 0; table-layout: fixed; font-size: .9rem; }
  #compare thead th:first-child { width: 30%; }
  #compare th, #compare td { padding: 12px 10px; }
  #compare :is(th, td):nth-child(n+2):nth-child(-n+5) { display: none; }
  #compare .table-scroll[data-col="2"] :is(th, td):nth-child(2),
  #compare .table-scroll[data-col="3"] :is(th, td):nth-child(3),
  #compare .table-scroll[data-col="4"] :is(th, td):nth-child(4),
  #compare .table-scroll[data-col="5"] :is(th, td):nth-child(5) { display: table-cell; }
}
/* telefono: una scheda per riga, col nome della riga sopra e le due app affiancate sotto
   (in tre colonne «Notifications» usciva dalla sua cella) */
@media (max-width: 480px) {
  #compare table, #compare thead, #compare tbody { display: block; }
  #compare tr { display: grid; grid-template-columns: 1fr 1fr; }
  #compare thead th:first-child { display: none; }
  #compare tbody th { grid-column: 1 / -1; padding: 14px 12px 2px; border-bottom: 0; }
  #compare tbody td { padding: 6px 12px 14px; }
  #compare thead th { padding: 14px 12px 12px; }
  #compare thead th span { overflow-wrap: anywhere; }
}
/* solo telefono: niente comparse, film più corto, notifica del film nel flusso */
@media (max-width: 760px) {
  .js .reveal { opacity: 1; transition: none; }
  .film { height: 480vh; }
  .film-nota { position: relative; left: auto; right: auto; bottom: auto; margin-top: 22px; }
  .desk .phonebox { display: none; }
}
