:root {
  --bg: #06060a;
  --panel: rgba(18, 18, 26, .72);
  --edge: rgba(255, 255, 255, .11);
  --text: #f5f5f7;
  --muted: #9b9ba8;
  --lime: #c2ff3d;
  --mint: #2ef2c9;
  --violet: #8a6bff;
  --pink: #ff5cd6;
  --holo: linear-gradient(115deg, var(--lime), var(--mint) 28%, var(--violet) 55%, var(--pink) 78%, var(--lime));
  --display: "Unbounded", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --pad: clamp(18px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0; color: var(--text); background: var(--bg);
  font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
          mask: radial-gradient(ellipse 80% 60% at 50% 20%, #000 20%, transparent 75%);
}
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 5.6vw, 60px); margin-bottom: 30px; }
h3 { font-size: 26px; }
h4 { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; margin: 24px 0 8px; color: var(--muted); }
section { padding: clamp(52px, 8vw, 104px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
section[id] { scroll-margin-top: 72px; }
.fine { font-size: 13.5px; color: var(--muted); margin: 0; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  background: var(--lime); color: #0a0a0a;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(194, 255, 61, .4), 0 10px 40px -8px rgba(194, 255, 61, .55);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(194, 255, 61, .6), 0 16px 50px -8px rgba(194, 255, 61, .75); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn.ghost { background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--edge); }
.btn.wide { width: 100%; margin-top: 20px; }
.link { background: none; border: 0; padding: 0; font: 600 14px var(--body); cursor: pointer; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--edge); }

/* ---------- testata ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--pad); background: rgba(6, 6, 10, .7);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--edge);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font: 900 17px/1 var(--display); letter-spacing: -.03em; text-decoration: none; color: var(--text); }
.brand img { flex: none; display: block; }
.brand .brand-full { height: 30px; width: auto; margin-left: -2px; }
.brand .brand-mark { display: none; width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-weight: 500; font-size: 14px; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 16px; }
@media (max-width: 760px) { .nav { display: none; } .top-actions { margin-left: auto; gap: 12px; } }

/* ---------- apertura ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(32px, 4.5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 24px; padding: 8px 15px 8px 12px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); font: 600 13px/1 var(--body);
}
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
h1 { font-size: clamp(36px, 6.6vw, 88px); letter-spacing: -.045em; }
h1 mark, .final mark { background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; animation: foil 6s linear infinite; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 44ch; margin: 26px 0 30px; }
.lead strong { color: var(--text); }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.btn.big { min-height: 62px; padding: 0 36px; font-size: 18px; }
@keyframes foil { to { background-position: 220% 0; } }

/* ---------- palco del coupon ---------- */
.stage { position: relative; width: min(100%, 600px); margin-top: clamp(52px, 6vw, 72px); padding: 0 8px; perspective: 1000px; }
.halo { position: absolute; inset: -22% -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 107, 255, .42), rgba(46, 242, 201, .12) 55%, transparent 75%); }
.ticket {
  --rx: 6deg; --ry: -10deg; --gx: 32%;
  position: relative; width: 100%; text-align: left; color: #08080b; cursor: grab;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotate(-3deg);
  animation: float 6s ease-in-out infinite; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline-offset: 12px;
}
.ticket:active { cursor: grabbing; }
.tface {
  --notch: 15px;
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--holo); background-size: 240% 100%; animation: foil 9s linear infinite;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.tface.front { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.tface.back {
  position: absolute; inset: 0; transform: rotateY(180deg); background-position: 100% 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px 44px;
}
.tface.back ul { list-style: none; margin: 0; padding: 0; font-size: clamp(13px, 2.6vw, 16px); font-weight: 500; }
.tface.back li { padding: 7px 0; border-top: 1px dashed rgba(8, 8, 11, .35); }
.tface.back .ticket-brand { align-self: flex-start; }
@keyframes float { 50% { translate: 0 -10px; } }
.tface::before { /* trama fine */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 7px);
}
.tface::after { /* riflesso che segue l'inclinazione */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(105deg, transparent calc(var(--gx) - 24%), rgba(255, 255, 255, .95) var(--gx), transparent calc(var(--gx) + 24%));
}
.tface > * { position: relative; z-index: 1; }
.ticket-hint { margin: 22px 0 0; text-align: center; font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ticket-main { padding: 26px 16px 28px 40px; display: flex; flex-direction: column; min-width: 0; }
.ticket-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ticket-brand { font: 900 12px/1 var(--display); letter-spacing: -.01em; padding: 6px 9px; border-radius: 8px; background: #08080b; color: #fff; }
.ticket-stub { padding: 26px 36px 26px 22px; min-width: 170px; border-left: 2px dashed rgba(8, 8, 11, .4); display: flex; flex-direction: column; justify-content: center; gap: 7px; }
.ticket-label { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; opacity: .75; }
.ticket-amount { font: 900 clamp(54px, 15vw, 118px)/.95 var(--display); letter-spacing: -.07em; margin: 16px 0 8px; }
.ticket-amount small { font-size: .42em; margin-left: .1em; letter-spacing: 0; }
.ticket-note { font-size: 15px; font-weight: 600; opacity: .8; }
.ticket-code { font: 700 19px/1.2 var(--mono); white-space: nowrap; }
.ticket-exp { font: 500 11px/1.35 var(--mono); opacity: .8; max-width: 16ch; }
.barcode { height: 34px; margin-top: 8px; opacity: .85; background: repeating-linear-gradient(90deg, #08080b 0 2px, transparent 2px 4px, #08080b 4px 5px, transparent 5px 9px, #08080b 9px 12px, transparent 12px 14px); }
@media (max-width: 520px) {
  .ticket-main { padding: 20px 8px 22px 30px; }
  .ticket-amount { font-size: 12.6vw; }
  .ticket-stub { min-width: 0; padding: 20px 26px 20px 14px; }
  .ticket-code { font-size: 14px; }
  .ticket-note { font-size: 13px; }
  .ticket-label { font-size: 9.5px; letter-spacing: .1em; }
  .barcode { height: 24px; }
}

.chip {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 999px; white-space: nowrap;
  font: 500 14px/1 var(--body); color: var(--text);
  background: rgba(20, 20, 28, .78); border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: float 5s ease-in-out infinite;
}
.chip b { font-weight: 700; color: var(--lime); }
.c1 { left: -9%; top: -24px; animation-delay: -1.2s; }
.c2 { right: -10%; top: -30px; animation-delay: -2.6s; }
.c3 { left: 12%; bottom: -24px; animation-delay: -3.8s; }
@media (max-width: 700px) {
  .chip { font-size: 12.5px; padding: 8px 12px; }
  .c1 { left: 0; } .c2 { right: 0; top: -26px; } .c3 { left: 50%; translate: -50% 0; animation: none; }
}

/* ---------- nastro ---------- */
.strip { overflow: hidden; border-block: 1px solid var(--edge); background: rgba(255, 255, 255, .02); }
.strip-track { display: flex; width: max-content; animation: slide 30s linear infinite; }
.strip span { font: 700 15px/1 var(--display); letter-spacing: -.01em; padding: 18px 0; white-space: nowrap; }
.strip span::after { content: "✦"; color: var(--lime); margin: 0 28px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- riquadri ---------- */
.steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .card, .guarantee-body, .faq details {
  background: var(--panel); border: 1px solid var(--edge); border-radius: 24px;
}
.steps li { counter-increment: s; padding: 28px; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--holo); color: #08080b; font: 900 18px/1 var(--display); margin-bottom: 36px; }
.steps b { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -.03em; color: var(--text); margin-bottom: 8px; }
@media (max-width: 760px) { .steps ol { grid-template-columns: 1fr; } .steps li::before { margin-bottom: 18px; } }

/* ---------- servizi ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 20px; }
.card { position: relative; padding: 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, border-color .2s; }
.card::before { content: ""; position: absolute; inset: -40% 30% auto -20%; height: 70%; background: radial-gradient(closest-side, rgba(138, 107, 255, .35), transparent); pointer-events: none; }
.card:nth-child(2)::before { background: radial-gradient(closest-side, rgba(46, 242, 201, .28), transparent); }
.card:hover { transform: translateY(-4px); border-color: rgba(194, 255, 61, .5); }
.card > * { position: relative; }
.card-size { font: 900 clamp(64px, 11vw, 112px)/.95 var(--display); letter-spacing: -.06em; background: var(--holo); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-name { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 10px 0 26px; }
.card-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--edge); padding-top: 20px; }
.card-now { font: 900 52px/1 var(--display); letter-spacing: -.05em; color: var(--lime); }
.card-was { font: 500 18px var(--mono); text-decoration: line-through; color: var(--muted); }
.card-why { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.card-badge { position: absolute !important; top: 24px; right: 24px; padding: 8px 12px; border-radius: 999px; background: var(--lime); color: #08080b; font: 700 14px/1 var(--mono); }
.card-feats { list-style: none; padding: 0; margin: 0 0 26px; font-size: 14.5px; }
.card-feats li { padding: 9px 0 9px 26px; border-top: 1px solid var(--edge); position: relative; }
.card-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--lime); font-weight: 700; }
.card .btn { margin-top: auto; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* ---------- il conto ---------- */
.math { text-align: center; }
.eq { display: flex; align-items: stretch; justify-content: center; gap: clamp(8px, 2vw, 22px); }
.eq i { align-self: center; font: 500 clamp(26px, 5vw, 56px)/1 var(--display); font-style: normal; color: var(--muted); }
.eq-box { flex: 1; max-width: 300px; padding: clamp(18px, 3vw, 34px) 10px; border-radius: 24px; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.eq-box b { font: 900 clamp(24px, 5.6vw, 64px)/1 var(--display); letter-spacing: -.05em; white-space: nowrap; }
.eq-box span { font-size: clamp(11px, 1.5vw, 14px); color: var(--muted); }
.eq-box.holo { background: var(--holo); background-size: 240% 100%; animation: foil 9s linear infinite; border: 0; color: #08080b; }
.eq-box.holo span { color: rgba(8, 8, 11, .7); font-weight: 600; }
.eq-box.win { border-color: var(--lime); box-shadow: 0 0 60px -12px rgba(194, 255, 61, .6), inset 0 0 40px -20px rgba(194, 255, 61, .5); }
.eq-box.win b { color: var(--lime); }
@media (max-width: 560px) { .eq { gap: 5px; } .eq-box { border-radius: 16px; padding: 16px 4px; } }

/* ---------- garanzia ---------- */
.g-card {
  position: relative; padding: clamp(28px, 5vw, 64px); border-radius: 32px; overflow: hidden;
  background: linear-gradient(#0c0c12, #0c0c12) padding-box, var(--holo) border-box; border: 2px solid transparent;
}
.g-card::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(194, 255, 61, .2), transparent); pointer-events: none; }
.g-card > * { position: relative; }
.g-tag { display: inline-block; margin: 0 0 20px; padding: 7px 13px; border-radius: 999px; background: var(--lime); color: #08080b; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.g-card h2 { max-width: 15ch; font-size: clamp(32px, 6.4vw, 76px); margin-bottom: 22px; }
.g-card em { font-style: normal; background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; }
.g-lead { font-size: clamp(17px, 2vw, 20px); max-width: 44ch; margin: 0 0 22px; }
.g-card ul { padding: 0; margin: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.g-card li { padding: 10px 16px 10px 36px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); font-size: 14.5px; position: relative; }
.g-card li::before { content: "✓"; position: absolute; left: 15px; color: var(--lime); font-weight: 700; }

/* ---------- chiusura e barra telefono ---------- */
.final { text-align: center; }
.final h2 { font-size: clamp(32px, 6.4vw, 76px); max-width: 14ch; margin-inline: auto; }
.dock { display: none; }
@media (max-width: 700px) {
  .dock {
    position: fixed; z-index: 9; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px 10px 20px; border-radius: 999px; background: #0e0e14; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); font-size: 15px;
  }
  .dock b { color: var(--lime); }
  .foot { padding-bottom: 96px; }
}

/* ---------- domande ---------- */
.faq details { max-width: 820px; margin-bottom: 10px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 400 26px/1 var(--mono); color: var(--lime); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--muted); line-height: 1.65; }

/* ---------- piede ---------- */
.foot { border-top: 1px solid var(--edge); padding: 40px var(--pad) 56px; }
.foot span { font: 900 22px/1 var(--display); letter-spacing: -.03em; }
.foot p { max-width: 60ch; font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.foot .fine { opacity: .6; }

/* ---------- finestre ---------- */
.sheet {
  border: 1px solid var(--edge); border-radius: 28px; background: #101016; color: var(--text);
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 30px 24px 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7), 0 0 80px rgba(138, 107, 255, .25);
}
.sheet::backdrop { background: rgba(3, 3, 6, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet[open] { animation: pop .22s ease-out; }
@keyframes pop { from { transform: translateY(16px) scale(.98); } }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--panel); border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.sheet-sub { margin: 8px 0 18px; color: var(--muted); }
.sheet label { display: block; font: 600 13px/1 var(--body); color: var(--muted); margin-top: 16px; }
.sheet input {
  display: block; width: 100%; margin-top: 8px; height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--edge); background: rgba(255, 255, 255, .05); color: var(--text); font: 500 17px var(--body);
}
.sheet input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(194, 255, 61, .15); }
.error { color: #ff6b7a; font-weight: 600; font-size: 14px; margin: 12px 0 0; min-height: 1.4em; }
.switch { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.order-id { font: 700 26px var(--mono); margin: 14px 0; color: var(--lime); }
.orders { list-style: none; padding: 0; margin: 0 0 22px; font: 400 13px/1.5 var(--mono); }
.orders li { padding: 9px 0; border-bottom: 1px solid var(--edge); }

.reveal { overflow: visible; }
.reveal .ticket { margin: 34px 0 0; }
.reveal .ticket-hint { margin: 18px 0 6px; }
.reveal .tface.back { padding: 16px 34px; gap: 8px; }
.reveal .tface.back ul { font-size: 13px; }
.reveal .ticket-main { padding: 20px 8px 22px 30px; }
.reveal .ticket-stub { min-width: 0; padding: 20px 26px 20px 14px; }
.reveal .ticket-amount { font-size: 54px; }
.reveal .ticket-code { font-size: 14px; }
.reveal .ticket-label { font-size: 9.5px; letter-spacing: .1em; }
.reveal .ticket-note { font-size: 13px; }
.reveal .barcode { height: 24px; }

/* ---------- scontrino ---------- */
.receipt { font: 400 15px/1.5 var(--mono); background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); border-radius: 18px; padding: 18px; margin-top: 18px; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.receipt .row.minus { color: var(--lime); }
.receipt .row.total { border-top: 1px dashed var(--edge); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- sito: percorso, payout, benvenuto ---------- */
.section-sub { color: var(--muted); margin: -14px 0 28px; font-size: 18px; }
.track { list-style: none; margin: clamp(48px, 6vw, 76px) 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; text-align: left; }
.track::before { content: ""; position: absolute; left: 4%; right: 4%; top: -18px; height: 3px; border-radius: 3px; background: var(--holo); background-size: 240% 100%; animation: foil 6s linear infinite; }
.track li { position: relative; padding: 22px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 6px; }
.track li::before { content: ""; position: absolute; top: -25px; left: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mint); }
.track span { font: 700 12px/1 var(--mono); color: var(--muted); }
.track b { font: 700 clamp(15px, 1.7vw, 20px)/1.15 var(--display); letter-spacing: -.03em; margin-top: 18px; }
.track em { font-style: normal; font-size: 14px; color: var(--muted); }
.track li.on { background: var(--holo); background-size: 240% 100%; animation: foil 9s linear infinite; border-color: transparent; color: #08080b; box-shadow: 0 20px 60px -10px rgba(138, 107, 255, .6); }
.track li.on span, .track li.on em { color: rgba(8, 8, 11, .72); }
.track li.on::before { background: var(--lime); border-color: var(--lime); box-shadow: 0 0 18px var(--lime); }
@media (max-width: 760px) {
  .track { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 44px; }
  .track::before, .track li::before { display: none; }
  .track li { padding: 18px 16px; } .track b { margin-top: 10px; }
}

.payout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.payout { margin: 0; border-radius: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--edge); display: flex; flex-direction: column; }
.payout img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.payout figcaption { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.payout-amount { font: 900 24px/1 var(--display); letter-spacing: -.04em; color: var(--lime); }
.payout-meta { font-size: 13.5px; color: var(--muted); }
.payout.empty { aspect-ratio: 4 / 5; align-items: center; justify-content: center; gap: 8px; border-style: dashed; border-color: rgba(255, 255, 255, .2); }
.payout.empty .payout-amount { color: rgba(255, 255, 255, .28); }
@media (max-width: 760px) {
  .payout-grid { grid-auto-flow: column; grid-auto-columns: 72%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scrollbar-width: none; }
  .payout { scroll-snap-align: center; }
}

.welcome { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.welcome h2 span { background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; }
.welcome .lead { margin-top: 0; }
.welcome .stage { margin: 0 auto; }
@media (max-width: 860px) { .welcome { grid-template-columns: minmax(0, 1fr); } .welcome .stage { order: -1; margin-bottom: 12px; } }

/* ---------- store ---------- */
.gate { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.gate h1 { max-width: 14ch; }
.store-title { margin-bottom: 22px; }
.coupon-bar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 16px 22px; border-radius: 20px; margin-bottom: 22px; background: var(--panel); border: 1px solid var(--edge); color: var(--muted); font-size: 15px; }
.coupon-bar.on { background: var(--holo); background-size: 240% 100%; animation: foil 9s linear infinite; border-color: transparent; color: #08080b; font-weight: 500; }
.coupon-bar b { font: 700 15px var(--mono); }
.services .card .btn { margin-top: 8px; }

/* ================= movimento ================= */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; background: var(--bg); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(closest-side, rgba(138, 107, 255, .16), transparent); display: none; }
@media (hover: hover) and (pointer: fine) { .cursor-glow { display: block; } }

.hero { min-height: calc(100svh - 66px); justify-content: center; }
h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
h1 .w > span { display: inline-block; }
.scroll-hint { margin-top: clamp(40px, 7vh, 80px); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font: 600 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-hint i { width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .35); position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--lime); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { transform: none; opacity: 0; } }

/* percorso: senza script è un elenco, con lo script diventa una scena fissa */
.journey { max-width: none; padding-block: clamp(52px, 8vw, 104px); }
.journey-pin { max-width: var(--max); margin: 0 auto; position: relative; }
.journey-count { font: 700 15px/1 var(--mono); color: var(--lime); margin: 0 0 22px; }
.journey-count em { font-style: normal; color: var(--muted); }
.jw { margin-bottom: 38px; }
.jw h2 { font-size: clamp(40px, 10.5vw, 168px); letter-spacing: -.055em; margin-bottom: 14px; }
.jw p { font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 40ch; margin: 0; }
.jw.last h2 { background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 6s linear infinite; padding-bottom: .12em; }
.journey-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.journey-bar i { display: block; height: 100%; width: 100%; background: var(--holo); transform-origin: left; }
.journey.live { padding-block: 0; }
.journey.live .journey-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.journey.live .journey-words { position: relative; height: clamp(230px, 46vh, 430px); }
.journey.live .jw { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.journey.live .journey-bar { margin-top: 26px; }
.journey.live .journey-bar i { transform: scaleX(0); }

.card { transform-style: preserve-3d; }
.card .glare { position: absolute !important; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 60%); }
.card:hover .glare { opacity: 1; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- coupon alla cassa ---------- */
.coupon-form { margin-top: 16px; }
.coupon-form div { display: flex; gap: 8px; margin-top: 8px; }
.coupon-form input { margin: 0; flex: 1; min-width: 0; height: 44px; font: 700 15px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.coupon-form .btn { min-height: 44px; flex: none; }
.coupon-form .error { margin-top: 8px; min-height: 0; }
.coupon-bar .copy { margin-left: auto; padding: 7px 14px; border-radius: 999px; border: 0; background: #08080b; color: #fff; font: 600 13px var(--body); cursor: pointer; }

/* ---------- store: configuratore ---------- */
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.three .card-size { font-size: clamp(56px, 7vw, 92px); }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.builder fieldset { border: 1px solid var(--edge); border-radius: 24px; background: var(--panel); padding: 24px; margin: 0 0 16px; min-width: 0; }
.builder legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; font: 700 18px/1.2 var(--display); letter-spacing: -.03em; }
.builder legend span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--holo); color: #08080b; font: 900 13px/1 var(--display); }
.opts { clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; padding: 18px 16px; border-radius: 18px; cursor: pointer; background: rgba(255, 255, 255, .04); border: 1.5px solid var(--edge); color: var(--text); font: inherit; transition: border-color .15s, background .15s, transform .15s; }
.opt b { font: 900 clamp(22px, 3vw, 30px)/1 var(--display); letter-spacing: -.04em; }
.opt span { font-size: 13px; color: var(--muted); }
.opt:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.opt.on { border-color: var(--lime); background: rgba(194, 255, 61, .1); box-shadow: 0 0 34px -12px rgba(194, 255, 61, .8); }
.opt.on b { color: var(--lime); }
.summary { position: sticky; top: 86px; border-radius: 24px; padding: 26px; background: var(--panel); border: 1px solid var(--edge); transition: border-color .3s, box-shadow .3s; }
.summary.ready { border-color: var(--lime); box-shadow: 0 0 70px -22px rgba(194, 255, 61, .7); }
.summary-label { margin: 0 0 10px; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.summary-name { margin: 0; font-weight: 600; font-size: 17px; min-height: 1.5em; }
.summary-price { margin: 14px 0 20px; font: 900 clamp(52px, 7vw, 76px)/1 var(--display); letter-spacing: -.05em; color: rgba(255, 255, 255, .25); }
.summary.ready .summary-price { color: var(--lime); }
.summary .card-feats { margin-bottom: 6px; }
@media (max-width: 860px) { .builder { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } .builder fieldset { padding: 20px 16px; } .opts { grid-template-columns: 1fr 1fr; } }
.coupon-bar b.code { font: 700 16px var(--mono); padding: 5px 10px; border-radius: 8px; background: rgba(8, 8, 11, .16); user-select: all; -webkit-user-select: all; }
.coupon-bar .copy:disabled { opacity: .5; }

/* ---------- modalità di rischio ---------- */
.opts.modes { grid-template-columns: 1fr; gap: 14px; }
.opt { position: relative; }
.opt-badge { position: absolute; top: -10px; right: 12px; padding: 5px 9px; border-radius: 999px; background: var(--lime); color: #08080b; font: 700 10.5px/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; }
.opt .opt-line { color: var(--text); font-size: 13.5px; font-weight: 500; }
.meter { display: block; width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .12); position: relative; overflow: hidden; margin: 2px 0 4px; }
.meter::after { content: ""; position: absolute; inset: 0; border-radius: 5px; background: var(--mint); width: 33%; }
.meter[data-level="2"]::after { width: 66%; background: var(--lime); }
.meter[data-level="3"]::after { width: 100%; background: #ff7a59; }
.risk-note { margin-top: 14px; }
.summary-mode { margin: 6px 0 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
@media (max-width: 860px) { .opts.modes { grid-template-columns: 1fr; } }

/* ---------- configuratore: rifiniture ---------- */
.builder fieldset { transition: border-color .25s; }
.builder fieldset.done { border-color: rgba(194, 255, 61, .35); }
.builder legend::after { content: "✓"; margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 var(--body); color: #08080b; background: var(--lime); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.builder fieldset.done legend::after { transform: scale(1); }
.opt { min-width: 0; }
.opt:active { transform: scale(.98); }
.summary-label { display: flex; justify-content: space-between; }
.summary-label span { color: var(--lime); }
.summary-rows { margin: 0 0 4px; }
.summary-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--edge); font-size: 15px; }
.summary-rows dt { color: var(--muted); }
.summary-rows dd { margin: 0; font-weight: 600; text-align: right; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.summary-total span { font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.summary-total .summary-price { margin: 0; font-size: clamp(44px, 5.4vw, 64px); }
.summary-hint { margin: 12px 0 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.summary.ready .summary-hint { color: var(--text); }
.summary-fine { margin-top: 12px; text-align: center; }
.receipt .row.detail { color: var(--muted); font-size: 13px; }
.buybar { display: none; }
@media (max-width: 860px) {
  .buybar { position: fixed; z-index: 9; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 22px; background: #0e0e14; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 16px 40px rgba(0, 0, 0, .6); }
  .buybar div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .buybar span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar b { font: 900 22px/1 var(--display); letter-spacing: -.04em; color: var(--lime); }
  .buybar .btn { flex: none; min-height: 46px; }
  body[data-page="store"] .foot { padding-bottom: 110px; }
  .coupon-bar .copy { margin-left: 0; }
}

.summary-price.empty, .buybar b.empty { font-family: var(--body); font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .3) !important; }
.summary-total .summary-price.empty { font-size: 28px; }
.sheet .coupon-form label { margin-top: 0; }

/* ---------- rifiniture telefono ---------- */
.opt span { overflow-wrap: anywhere; }
.receipt .row span:last-child { white-space: nowrap; flex: none; }
.receipt .row span:first-child { min-width: 0; }
.sheet { overflow-x: hidden; }
.sheet-sub, .orders li, #accCoupon, #doneEmail { overflow-wrap: anywhere; }
.buybar { transition: transform .25s ease, opacity .25s ease; }
.buybar.off { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- lingue, strumenti, risultati ---------- */
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--edge); }
.lang button { border: 0; background: none; color: var(--muted); font: 700 11.5px/1 var(--mono); padding: 7px 9px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--text); color: #08080b; }
.builder legend i, .summary-label i { font-style: normal; }
.sheet label > span { display: block; }
.asset-empty { clear: both; }
.payout { background: #0c0c12; }
.payout img { aspect-ratio: 4 / 3; object-fit: contain; background: #08080c; }
.payout-kind { font: 700 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 760px) {
  .top { gap: 10px; }
  .top-actions { gap: 10px; }
  .lang button { padding: 6px 7px; font-size: 11px; }
  .brand { font-size: 15px; gap: 6px; }
  .brand .brand-full { height: 26px; }
}
@media (max-width: 400px) { .top .btn.small { padding: 0 13px; } }
/* telefoni stretti: nell'intestazione resta il segno, la scritta torna da 430 px in su */
@media (max-width: 430px) { .top .brand .brand-full { display: none; } .top .brand .brand-mark { display: block; } }

/* ---------- controllo generale ---------- */
.welcome { overflow-x: clip; }
.strip { max-width: 100vw; }
.stage { container-type: inline-size; }
.stage .ticket-amount { font-size: clamp(40px, 14.5cqw, 92px); }
.stage .tface.front { grid-template-columns: minmax(0, 64%) minmax(0, 36%); }
.stage .ticket-stub { min-width: 0; }
.stage .ticket-exp { max-width: none; }
.reveal { container-type: inline-size; }
.reveal .tface.front { grid-template-columns: minmax(0, 62%) minmax(0, 38%); }
.reveal .ticket-amount { font-size: clamp(34px, 14cqw, 60px); }
.reveal .ticket-exp { max-width: none; }
.reveal .ticket-head { gap: 8px; }
.sheet h3 { padding-right: 44px; overflow-wrap: anywhere; }

/* ---------- riscatto del coupon ---------- */
.redeem { overflow: hidden; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.redeem.pop { animation: redeemPop .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes redeemPop { 0% { transform: scale(.9); } 100% { transform: none; } }
.redeem h3 { background: var(--holo); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foil 4s linear infinite; }
.code-big { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 0; padding: 12px 12px 12px 18px; border-radius: 16px; border: 1.5px dashed var(--lime); background: rgba(194, 255, 61, .08); animation: codeGlow 1.6s ease-in-out 3; }
.code-big b { font: 700 clamp(17px, 5.4cqw, 22px)/1 var(--mono); letter-spacing: .06em; color: var(--lime); user-select: all; -webkit-user-select: all; white-space: nowrap; }
.code-big .copy { flex: none; padding: 9px 14px; border-radius: 999px; border: 0; background: var(--lime); color: #08080b; font: 700 13px var(--body); cursor: pointer; }
@keyframes codeGlow { 50% { box-shadow: 0 0 34px -6px rgba(194, 255, 61, .75); } }
.redeem-exp { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.coupon-bar .code { animation: codeGlow 1.6s ease-in-out 2; }

/* ---------- pagamento ed esito dell'ordine ---------- */
.pay-methods { margin-top: 18px; }
.pay-label { margin: 0 0 8px; font: 600 13px/1 var(--body); color: var(--muted); }
.pay-methods .opts { grid-template-columns: 1fr 1fr; }
.pay-methods .opt { padding: 14px; }
.pay-methods .opt b { font-size: 18px; }
.pay-now { margin-left: 10px; padding: 5px 12px; border-radius: 999px; border: 0; background: var(--lime); color: #08080b; font: 700 12px var(--body); cursor: pointer; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.done { overflow: hidden; text-align: center; }
.done[open] { animation: redeemPop .55s cubic-bezier(.2, 1.5, .4, 1); }
.done h3 { padding-right: 0; margin-top: 14px; }
.done .order-id { margin: 8px 0 14px; }
.done .receipt { text-align: left; margin-top: 0; }
.done-text { margin: 16px 0 0; color: var(--text); }
.done-steps { list-style: none; counter-reset: d; margin: 16px 0 0; padding: 0; text-align: left; font-size: 14.5px; color: var(--muted); }
.done-steps li { counter-increment: d; position: relative; padding: 9px 0 9px 34px; border-top: 1px solid var(--edge); overflow-wrap: anywhere; }
.done-steps li::before { content: counter(d); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--edge); font: 700 11px var(--mono); color: var(--lime); }
.done-icon { width: 76px; height: 76px; margin: 0 auto; }
.done-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 14px rgba(194, 255, 61, .55)); }
.done-icon circle { stroke-dasharray: 176; stroke-dashoffset: 0; }
.done-icon path { stroke-dasharray: 60; stroke-dashoffset: 0; }
.done-icon .no { display: none; }
.done[data-kind="cancel"] .done-icon svg, .done[data-kind="unconfirmed"] .done-icon svg { stroke: #ffb04a; filter: none; }
.done[data-kind="cancel"] .ok { display: none; }
.done[data-kind="cancel"] .no { display: block; }
.done-icon.draw circle { animation: drawLine .7s ease-out both; }
.done-icon.draw path { animation: drawTick .45s .55s ease-out both; }
@keyframes drawLine { from { stroke-dashoffset: 176; } }
@keyframes drawTick { from { stroke-dashoffset: 60; } }
.btn.busy { opacity: 1 !important; }
.btn.busy::before { content: ""; width: 16px; height: 16px; margin-right: 10px; border-radius: 50%; border: 2.5px solid rgba(8, 8, 11, .25); border-top-color: #08080b; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- invito al coupon all'ingresso ---------- */
.promo { text-align: center; overflow: hidden; }
.promo[open] { animation: redeemPop .55s cubic-bezier(.2, 1.5, .4, 1); }
.promo h3 { padding: 0 8px; font-size: clamp(24px, 7cqw, 32px); }
.promo-tag { display: inline-block; margin: 0 0 14px; padding: 7px 13px; border-radius: 999px; background: var(--lime); color: #08080b; font: 700 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.promo .ticket { text-align: left; margin: 26px 0 0; }
.promo-sub { margin: 16px 0 0; color: var(--muted); }
.promo-later { display: block; margin: 16px auto 0; color: var(--muted); }

/* finestre alte su schermi bassi: scorrono invece di tagliare il pulsante */
.promo, .redeem, .done { overflow-x: hidden; overflow-y: auto; }
.sheet .btn:focus-visible { outline-offset: 4px; }
.sheet:focus { outline: none; }

/* ---------- schede di esempio (solo in locale) ---------- */
.payout { position: relative; }
.payout-sample { position: absolute; z-index: 2; top: 18px; left: -46px; width: 180px; padding: 7px 0; text-align: center; transform: rotate(-35deg); background: #ffb04a; color: #08080b; font: 800 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0, 0, 0, .5); }
.sample-note { margin-top: 16px; color: #ffb04a; }
.payout-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- indirizzo del sito ---------- */
.foot .foot-domain { display: block; margin-top: 8px; font: 500 13px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.ticket-domain { font: 700 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
