/* Firma&Paga — "Entra nel telefono": sezione in scorrimento della home (vedi sito/partials/storia.blade.php, js/storia.js).
   Senza la classe .js-attiva (niente JS o "riduci movimento") la sezione è statica e leggibile. */
.storia { position: relative; background: radial-gradient(900px 600px at 85% 30%, rgba(15,123,79,.45), transparent 60%), var(--verde-notte); color: #DCEBE3; overflow: clip; }
.storia::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); pointer-events: none; }
.storia-intro { position: relative; padding-top: 72px; text-align: center; max-width: 760px; }
.storia-intro .etichetta-s { color: var(--verde-neon); }
.storia-intro h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin: 10px 0 10px; }
.storia-intro h2 em { font-style: normal; background: linear-gradient(90deg, #34C77B, #8CF0BB, #34C77B); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: luccica 5s linear infinite; }
.storia-intro p { color: #9FB8AC; margin: 0; }
.storia-nota { position: relative; padding-bottom: 64px; text-align: center; }
.storia-nota p { color: #9FB8AC; font-size: .92rem; max-width: 640px; margin: 0 auto; }

/* ---- Struttura ---- */
.storia-palco { position: relative; }
.storia-sticky { position: relative; padding: 40px 0; }
.storia-griglia { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 56px; align-items: center; }
.js-attiva .storia-palco { height: calc(var(--passi) * 85vh + 45vh); }
.js-attiva .storia-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 68px 0 0; box-sizing: border-box; display: flex; align-items: center; }
.js-attiva .storia-griglia { width: 100%; }

/* ---- Testi ---- */
.storia-testi { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: none; }
.storia-testo { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1), background .45s, border-color .45s; }
.storia-testo h3 { margin: 0 0 4px; color: #fff; font-size: 1.2rem; }
.storia-testo p { margin: 0; color: #A9C1B5; line-height: 1.5; }
.storia-testo .num { flex: 0 0 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: rgba(52,199,123,.14); color: var(--verde-neon); border: 1px solid rgba(52,199,123,.35); transition: background .4s, color .4s, box-shadow .4s; }
.js-attiva .storia-testo { opacity: .32; transform: translateX(-6px); }
.js-attiva .storia-testo.attivo { opacity: 1; transform: none; background: rgba(255,255,255,.05); border-color: rgba(52,199,123,.28); }
.js-attiva .storia-testo.fatto { opacity: .55; }
.storia-testo.attivo .num { background: var(--verde-neon); color: #06140D; box-shadow: 0 0 0 6px rgba(52,199,123,.18); }
.js-attiva .storia-testi { transition: opacity .3s; opacity: calc(1 - var(--u, 0) * 1.6); }

/* ---- Scena e telefono ---- */
.storia-scena { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; perspective: 1400px; }
.storia-alone { position: absolute; width: 120%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -54%) translate(calc(var(--mx, 0) * -18px), calc(var(--my, 0) * -14px)) scale(calc(.7 + var(--e, 1) * .4)); background: radial-gradient(circle, rgba(52,199,123,.38), rgba(52,199,123,.12) 40%, transparent 64%); opacity: calc(var(--e, 1) * (1 - var(--u, 0))); pointer-events: none; }
/* Alone che "respira": solo scala, sul compositore */
.js-attiva .storia-alone { animation: respira 4.8s ease-in-out infinite; }
@keyframes respira { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
/* Ombra a terra: si allarga quando il telefono si avvicina e scivola con l'inclinazione */
.storia-ombra { position: absolute; left: 50%; top: 50%; width: calc(300px * var(--k, 1)); height: 60px; margin: calc(325px * var(--k, 1) - 10px) 0 0 calc(-150px * var(--k, 1)); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); pointer-events: none;
  transform: translateX(calc(var(--mx, 0) * -22px)) scale(calc(.55 + var(--e, 1) * .5), calc(.6 + var(--e, 1) * .4)); opacity: calc(var(--e, 1) * (1 - var(--u, 0) * 2)); }
.tel3d-box { position: relative; width: calc(300px * var(--k, 1)); height: calc(650px * var(--k, 1)); }
/* Il telefono è disegnato a 300×650 e scalato (--k da storia.js) per stare nello schermo: il contenuto non va mai a capo */
.tel3d { position: absolute; left: 50%; top: 50%; width: 300px; height: 650px; margin: -325px 0 0 -150px; border-radius: 46px; background: #0b1410; border: 10px solid #1b2a23; box-sizing: border-box; box-shadow: 0 50px 100px rgba(0,0,0,.6), inset 0 0 0 2px #0a0f0c, 0 0 0 1px rgba(255,255,255,.06);
  transform-origin: 50% 50%; will-change: transform;
  opacity: calc(1 - var(--u, 0) * var(--u, 0) * var(--u, 0));
  transform:
    translateY(calc((1 - var(--e, 1)) * 120px))
    rotateX(calc((1 - var(--e, 1)) * 34deg + var(--my, 0) * -7deg))
    rotateY(calc((1 - var(--e, 1)) * -24deg + var(--mx, 0) * 9deg))
    rotateZ(calc((1 - var(--e, 1)) * -9deg))
    scale(calc(var(--k, 1) * (.74 + var(--e, 1) * .26) * (1 + var(--u, 0) * var(--u, 0) * 3.2)));
}
/* Bordo metallico sottile che prende luce */
.tel3d::after { content: ""; position: absolute; inset: -10px; border-radius: 46px; padding: 1px; background: linear-gradient(calc(140deg + var(--mx, 0) * 30deg), rgba(255,255,255,.35), rgba(255,255,255,0) 30%, rgba(255,255,255,0) 70%, rgba(52,199,123,.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); pointer-events: none; }
/* Dynamic Island: si allarga (clip-path) quando arriva la notifica del passo 5 */
.tel3d-isola { position: absolute; top: 9px; left: 50%; width: 176px; height: 32px; margin-left: -88px; z-index: 6; border-radius: 999px; background: #050906; color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 8px; box-sizing: border-box; font-size: 11px; font-weight: 800; clip-path: inset(3px 44px round 999px); transition: clip-path .55s cubic-bezier(.3,1.4,.5,1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.tel3d-isola > * { opacity: 0; transition: opacity .25s; }
.tel3d.isola-larga .tel3d-isola { clip-path: inset(0 0 round 999px); transition-delay: .3s; }
.tel3d.isola-larga .tel3d-isola > * { opacity: 1; transition-delay: .6s; }
.isola-ico { width: 20px; height: 20px; border-radius: 6px; background: #0F7B4F url("../img/icon-192.png") center / cover; flex: none; }
.isola-testo { color: #8CF0BB; font-variant-numeric: tabular-nums; }
.isola-onda { margin-left: auto; display: flex; gap: 2px; align-items: center; height: 12px; }
.isola-onda i { width: 3px; height: 12px; border-radius: 2px; background: var(--verde-neon); transform: scaleY(.3); }
.tel3d.isola-larga .isola-onda i { animation: onda .9s ease-in-out infinite; }
.isola-onda i:nth-child(2) { animation-delay: .15s !important; } .isola-onda i:nth-child(3) { animation-delay: .3s !important; }
@keyframes onda { 50% { transform: scaleY(1); } }
/* Riflesso che scorre sul vetro con lo scorrimento (--p) e con il mouse (--mx) */
.tel3d-riflesso { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; pointer-events: none; z-index: 5; }
.tel3d-riflesso::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 70%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 45%, rgba(255,255,255,.05) 60%, transparent);
  transform: translateX(calc(var(--p, 0) * 260% + var(--mx, 0) * 30%)) skewX(-14deg); }
.tel3d-box.vibra { animation: vibra .5s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes vibra { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 2px 0; } 30%, 50%, 70% { translate: -3px 0; } 40%, 60% { translate: 3px 0; } }
.tel3d-schermo { position: absolute; inset: 0; border-radius: 36px; overflow: hidden; background: #F4F7F5; color: #14211B; font-size: 12px; }
.tel3d-schermo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 35%); pointer-events: none; z-index: 4; }
.tel3d-schermo { perspective: 900px; }

/* ---- Badge fluttuanti attorno al telefono ---- */
.badge-f { position: absolute; z-index: 3; pointer-events: none; display: none;
  transform: translate3d(calc(var(--mx, 0) * var(--z, 1) * 22px), calc((var(--p, 0) - .5) * var(--z, 1) * -70px + var(--my, 0) * var(--z, 1) * 14px), 0); }
.js-attiva .badge-f { display: block; }
.badge-f > span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 14px 9px 10px; border-radius: 14px; background: rgba(255,255,255,.96); color: #14211B; font-weight: 800; font-size: 13px; box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.4) inset;
  opacity: 0; transform: translateY(14px) scale(.8); transition: opacity .35s, transform .5s cubic-bezier(.3,1.5,.5,1); }
.badge-f.visibile > span { opacity: 1; transform: none; transition-delay: var(--ritardo, .5s); }
.b-ico { width: 24px; height: 24px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #E4F4EC; color: #0F7B4F; }
.b-ico svg { width: 15px; height: 15px; }
.badge-sms { top: 16%; right: calc(50% + 150px * var(--k, 1) - 26px); }
.badge-firma { top: 44%; left: calc(50% + 150px * var(--k, 1) - 22px); --ritardo: 2.1s; }
.badge-euro { top: 66%; right: calc(50% + 150px * var(--k, 1) - 30px); --ritardo: .9s; }
.badge-euro > span { background: #0F7B4F; color: #fff; font-size: 17px; padding: 10px 16px; box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 6px rgba(52,199,123,.18); }

/* Puntini di avanzamento */
.storia-punti { display: flex; gap: 8px; position: relative; z-index: 2; opacity: calc(1 - var(--u, 0) * 2); }
.storia-punti button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.25); cursor: pointer; transition: width .35s, background .35s; }
.storia-punti button.attivo { width: 26px; background: var(--verde-neon); }
.storia-punti button.fatto { background: rgba(52,199,123,.55); }

/* ---- Schermate ---- */
.scr { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transform: translate3d(60%, 0, 0) scale(.9); transition: opacity .4s ease, transform .65s cubic-bezier(.2,.8,.2,1); pointer-events: none; z-index: 1; background: #F4F7F5; border-radius: 36px; }
.scr.attivo { opacity: 1; transform: none; z-index: 2; box-shadow: -18px 0 40px rgba(6,36,26,.18); }
/* La vecchia schermata arretra: rimpicciolisce e sfuma dietro la nuova */
.scr.uscita { opacity: 0; transform: translate3d(-14%, 0, 0) scale(.84); transition: opacity .55s .1s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
.indietro .scr { transform: translate3d(-60%, 0, 0) scale(.9); }
.indietro .scr.attivo { transform: none; box-shadow: 18px 0 40px rgba(6,36,26,.18); }
.indietro .scr.uscita { transform: translate3d(14%, 0, 0) scale(.84); }
.scr-testa { padding: 50px 18px 12px; background: #0F7B4F; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; font-weight: 800; font-size: 14px; }
.scr-testa small { font-weight: 500; opacity: .85; font-size: 11px; }
.scr-testa.chiara { background: #fff; color: #14211B; border-bottom: 1px solid #E3EAE6; }
.scr-corpo { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.scr-btn { margin-top: auto; text-align: center; background: #14211B; color: #fff; font-weight: 800; border-radius: 14px; padding: 13px; font-size: 13px; }
.scr-btn.verde { background: #0F7B4F; }
@keyframes s-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* 1. Agenda */
.ag-voce { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #E0E8E3; border-radius: 14px; padding: 10px 12px; }
.ag-voce .ora { font-weight: 800; color: #0F7B4F; font-size: 12px; min-width: 38px; }
.ag-voce b { display: block; font-size: 12.5px; } .ag-voce small { color: #64766D; font-size: 11px; }
.ag-voce .pill { margin-left: auto; font-size: 10px; font-weight: 800; color: #0F7B4F; background: #E4F4EC; padding: 3px 8px; border-radius: 999px; }
.scr-agenda.attivo .ag-voce { animation: s-entra .5s calc(.15s + var(--d) * .12s) both; }
.scr-agenda.attivo .ag-voce:first-child { box-shadow: 0 0 0 2px #34C77B, 0 10px 24px rgba(15,123,79,.18); }
.scr-agenda.attivo .scr-btn { animation: s-entra .5s .7s both, pulsa 1.6s 1.4s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { box-shadow: 0 0 0 0 rgba(20,33,27,.35); } 50% { box-shadow: 0 0 0 8px rgba(20,33,27,0); } }

/* 2. Rapportino */
.timer { display: flex; align-items: center; gap: 10px; background: #14211B; color: #fff; border-radius: 16px; padding: 14px 16px; }
.timer .cifre { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.timer small { opacity: .7; margin-left: auto; }
.pallino-rec { width: 10px; height: 10px; border-radius: 50%; background: #F87171; animation: lampo 1.2s ease-in-out infinite; }
@keyframes lampo { 50% { opacity: .25; } }
.mat { display: flex; justify-content: space-between; background: #fff; border: 1px solid #E0E8E3; border-radius: 12px; padding: 10px 12px; }
.mat span { color: #33443C; } .mat b { font-variant-numeric: tabular-nums; }
.scr-rapportino.attivo .mat { animation: s-entra .45s calc(.25s + var(--d) * .18s) both; }
.foto-riga { display: flex; gap: 8px; }
.foto { width: 54px; height: 54px; border-radius: 12px; background: linear-gradient(135deg, #8BB3A0, #4C7563); position: relative; overflow: hidden; }
.foto.f1::after { content: ""; position: absolute; inset: 30% 18% 18% 30%; border-radius: 6px; background: rgba(255,255,255,.35); }
.foto.f2 { background: linear-gradient(135deg, #B9A58B, #6E5A44); }
.foto.aggiungi { background: #fff; border: 1.5px dashed #BFCDC5; color: #0F7B4F; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; }
.scr-rapportino.attivo .foto-riga { animation: s-entra .45s .85s both; }
.scr-rapportino .tot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding: 12px 4px 4px; border-top: 1px dashed #CFDAD3; font-size: 13px; }
.scr-rapportino .tot b { font-size: 22px; color: #0F7B4F; }
.scr-rapportino.attivo .tot { animation: s-entra .45s 1.05s both; }

/* 3. Firma */
.firma-area { position: relative; flex: 1; min-height: 150px; background: #fff; border: 1.5px dashed #BFCDC5; border-radius: 16px; overflow: hidden; }
.firma-area svg { position: absolute; inset: 8% 4%; width: 92%; height: 84%; }
.firma-area path { fill: none; stroke: #14211B; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.firma-area path.sotto { stroke: #D5DFD9; stroke-width: 1.5; stroke-dasharray: 4 5; stroke-dashoffset: 0; }
.scr-firma.attivo .firma-area path:not(.sotto) { animation: traccia 1.8s .35s cubic-bezier(.45,.05,.4,1) forwards; }
@keyframes traccia { to { stroke-dashoffset: 0; } }
.dito { position: absolute; width: 34px; height: 34px; border-radius: 50%; background: rgba(15,123,79,.18); border: 2px solid rgba(15,123,79,.5); left: 6%; top: 60%; opacity: 0; }
.scr-firma.attivo .dito { animation: dito 1.8s .35s cubic-bezier(.45,.05,.4,1) forwards; }
@keyframes dito { 0% { opacity: 1; left: 4%; top: 58%; } 25% { left: 26%; top: 38%; } 50% { left: 46%; top: 66%; } 75% { left: 68%; top: 30%; } 98% { opacity: 1; left: 90%; top: 24%; } 100% { opacity: 0; left: 90%; top: 24%; } }
.firma-info { display: flex; justify-content: space-between; color: #64766D; font-size: 11px; }
.scr-firma.attivo .scr-btn { animation: s-entra .4s 2s both; }

/* 4. Pagamento */
.importo { text-align: center; padding: 14px 0 6px; } .importo small { color: #64766D; display: block; } .importo b { font-size: 34px; letter-spacing: -.02em; }
.metodo { border-radius: 14px; padding: 13px 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; justify-content: center; }
.metodo.apple { background: #000; color: #fff; }
.metodo.carta { background: #fff; border: 1px solid #E0E8E3; justify-content: flex-start; }
.metodo.carta .chip { width: 26px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #3A6EA5, #1E3B5C); }
.metodo.carta .sp { flex: 1; }
.metodo.bonifico { background: #fff; border: 1px solid #E0E8E3; color: #33443C; }
.scr-paga.attivo .metodo { animation: s-entra .4s calc(.2s + var(--i, 0) * .1s) both; }
.scr-paga .metodo.carta { --i: 1; } .scr-paga .metodo.bonifico { --i: 2; }
.scr-paga.attivo .metodo.apple { animation: s-entra .4s .2s both, premi .35s 1.1s ease-in-out; }
@keyframes premi { 50% { transform: scale(.95); } }
.esito { position: absolute; inset: 0; background: rgba(244,247,245,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; opacity: 0; font-size: 16px; }
.scr-paga.attivo .esito { animation: compare .4s 1.45s forwards; }
@keyframes compare { to { opacity: 1; } }
.spunta-grande { width: 84px; height: 84px; border-radius: 50%; background: #0F7B4F; position: relative; transform: scale(.4); box-shadow: 0 12px 30px rgba(15,123,79,.35); }
.spunta-grande::after { content: ""; position: absolute; left: 30px; top: 18px; width: 20px; height: 38px; border-right: 6px solid #fff; border-bottom: 6px solid #fff; transform: rotate(45deg) scale(0); transform-origin: 50% 60%; }
.scr-paga.attivo .spunta-grande { animation: rimbalza .5s 1.5s cubic-bezier(.3,1.6,.5,1) forwards; }
.scr-paga.attivo .spunta-grande::after { animation: spunta .35s 1.85s ease-out forwards; }
@keyframes rimbalza { to { transform: scale(1); } }
@keyframes spunta { to { transform: rotate(45deg) scale(1); } }

/* 5. Notifica e incasso */
.scr-incasso { background: radial-gradient(400px 300px at 50% 0%, #1F6B4C, transparent 70%), linear-gradient(180deg, #0D3325, #06241A); color: #fff; padding: 64px 14px 18px; gap: 14px; }
.blocco-ora small, .notifica small, .saldo small { color: rgba(255,255,255,.85); opacity: 1 !important; }
.blocco-ora { text-align: center; } .blocco-ora b { display: block; font-size: 54px; font-weight: 300; letter-spacing: -.03em; line-height: 1; } .blocco-ora small { opacity: .8; }
.notifica { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 12px; margin-top: 10px; }
.notifica .app-ico { flex: 0 0 34px; height: 34px; border-radius: 9px; background: #0F7B4F url("../img/icon-192.png") center / cover; }
.notifica b { display: block; font-size: 11px; opacity: .8; } .notifica span { display: block; font-weight: 700; font-size: 13px; } .notifica small { opacity: .75; font-size: 11px; }
.scr-incasso.attivo .notifica { animation: cala .7s .55s cubic-bezier(.2,1.25,.4,1) both, scuoti .45s 1.25s ease-in-out both; }
@keyframes cala { 0% { opacity: 0; transform: translateY(-120px) scale(.6); } 55% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes scuoti { 20%, 60% { transform: translateX(-4px) rotate(-1deg); } 40%, 80% { transform: translateX(4px) rotate(1deg); } }
.scr-incasso.attivo .blocco-ora { animation: s-entra .5s .1s both; }
.saldo { margin-top: auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 14px; }
.saldo small { opacity: .75; display: block; } .saldo b { font-size: 26px; font-variant-numeric: tabular-nums; }
.barre { display: flex; align-items: flex-end; gap: 6px; height: 54px; margin-top: 10px; }
.barre i { flex: 1; border-radius: 4px 4px 2px 2px; background: rgba(52,199,123,.35); height: 0; }
.barre i:nth-child(1) { --h: 30% } .barre i:nth-child(2) { --h: 55% } .barre i:nth-child(3) { --h: 40% } .barre i:nth-child(4) { --h: 70% } .barre i:nth-child(5) { --h: 52% } .barre i:nth-child(6) { --h: 85% } .barre i:nth-child(7) { --h: 100%; background: var(--verde-neon); }
.scr-incasso.attivo .barre i { animation: cresce .6s calc(.8s + var(--n, 0) * .06s) cubic-bezier(.2,.8,.2,1) forwards; }
.barre i:nth-child(2) { --n: 1 } .barre i:nth-child(3) { --n: 2 } .barre i:nth-child(4) { --n: 3 } .barre i:nth-child(5) { --n: 4 } .barre i:nth-child(6) { --n: 5 } .barre i:nth-child(7) { --n: 6 }
@keyframes cresce { to { height: var(--h); } }
.scr-incasso.attivo .saldo { animation: s-entra .5s .65s both; }

/* ---- Mobile: telefono sopra, testo del passo sotto ---- */
@media (max-width: 900px) {
  .storia-griglia { grid-template-columns: 1fr; gap: 18px; }
  .storia-scena { order: -1; }
  .js-attiva .storia-palco { height: calc(var(--passi) * 80vh + 60vh); }
  .js-attiva .storia-sticky { align-items: flex-start; padding-top: 72px; }
  .js-attiva .storia-testi { position: relative; min-height: 150px; }
  .js-attiva .storia-testo { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); pointer-events: none; padding: 12px 14px; }
  .js-attiva .storia-testo.attivo { opacity: 1; transform: none; pointer-events: auto; }
  .js-attiva .storia-testo.fatto { opacity: 0; }
  .storia-testo h3 { font-size: 1.08rem; }
  .storia-testo p { font-size: .95rem; }
}

/* ---- Senza animazioni ---- */
@media (prefers-reduced-motion: reduce) {
  .storia *, .storia *::before, .storia *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition: none !important; }
  .tel3d { transform: scale(var(--k, 1)) !important; opacity: 1 !important; }
  .badge-f, .tel3d-riflesso { display: none !important; }
}
/* Touch / mobile: niente inclinazione col mouse, badge più piccoli */
@media (max-width: 900px) {
  .badge-f > span { font-size: 11.5px; padding: 7px 10px 7px 8px; border-radius: 12px; gap: 6px; }
  .b-ico { width: 20px; height: 20px; }
  .badge-euro > span { font-size: 14px; padding: 8px 12px; }
  .badge-sms { top: 8%; } .badge-firma { top: 30%; } .badge-euro { top: 52%; }
  .badge-sms, .badge-euro { right: auto; left: max(6px, calc(50% - 150px * var(--k, 1) - 40px)); }
  .badge-firma { left: auto; right: max(6px, calc(50% - 150px * var(--k, 1) - 40px)); }
}
.scr-incasso { inset: -1px; }
.scr-testa small { opacity: 1; color: rgba(255,255,255,.85); }
.scr-testa.chiara small { color: #64766D; }
