/* 100.000 POSTI — centomilaposti.it
   Mondo dei video: nero profondo, oro dei biglietti, azzurro olografico. Orbitron per i numeri, Montserrat per il resto. */

@font-face { font-family: 'Orbitron'; src: url('/fonts/Orbitron-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('/fonts/Orbitron-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('/fonts/Orbitron-800.woff2') format('woff2'); font-weight: 800 900; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-600.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('/fonts/Montserrat-700.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --bg: #030409;
  --ink: #f4efe4;
  --soft: #c9c3b7;
  --muted: #8a8791;
  --dim: #55535c;
  --gold: #e6c27a;
  --gold-hi: #ffd88a;
  --cyan: #8fe2ff;
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(11, 12, 18, 0.66);
  --f-num: 'Orbitron', ui-monospace, monospace;
  --f-txt: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --top-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-txt); font-weight: 600; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
b, strong { font-weight: 700; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #000; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.gold { color: var(--gold); text-shadow: 0 0 34px rgba(255, 196, 100, 0.32); }
.num { font-family: var(--f-num); font-weight: 800; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 18px; font-size: 11.5px; letter-spacing: .4em; font-weight: 700; color: var(--gold); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.02; }
h2 { font-size: clamp(32px, 5vw, 64px); text-transform: uppercase; }
.lead { color: var(--soft); font-size: clamp(16px, 1.3vw, 18px); max-width: 50ch; }

/* ---------- pulsanti ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: var(--h); padding: 10px 26px; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  font-weight: 800; font-size: 12.5px; letter-spacing: .16em; line-height: 1.15; text-align: center; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn small { font-weight: 600; font-size: 10.5px; letter-spacing: .1em; opacity: .7; margin-top: 3px; }
.btn-gold { color: #150f04; background: linear-gradient(180deg, #ffe7b0 0%, #e8c278 50%, #c99f52 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(255, 225, 160, .5), 0 12px 36px -12px rgba(255, 190, 90, .7); overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; inset: 0; transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shine 5s 2.5s infinite; }
@keyframes shine { 0%, 72% { transform: translateX(-130%) skewX(-20deg); } 100% { transform: translateX(230%) skewX(-20deg); } }
.btn-gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px rgba(255, 235, 180, .7), 0 16px 44px -10px rgba(255, 190, 90, .9); }
.btn-line { color: var(--ink); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn-line:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.btn-sm { --h: 40px; padding: 6px 18px; font-size: 11px; }
.btn-xl { --h: 72px; padding: 14px 46px; font-size: clamp(14px, 1.6vw, 17px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- barra in alto ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--top-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--pad) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: background .4s, transform .5s var(--ease); }
.top.solid { background: rgba(3, 4, 9, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.top.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.emblem { width: 40px; height: auto; fill: none; stroke: var(--gold); stroke-width: 5; filter: drop-shadow(0 0 6px rgba(255, 200, 110, .55)); }
.emblem .dot { fill: #fff; stroke: none; }
.brand-t { font-family: var(--f-num); font-weight: 700; font-size: 13px; letter-spacing: .22em; color: var(--gold); white-space: nowrap; }
.brand-t b { color: #fff; font-weight: 800; letter-spacing: .06em; }
.nav { display: flex; gap: 30px; font-size: 12.5px; letter-spacing: .08em; }
.nav a { text-decoration: none; color: var(--soft); transition: color .25s; }
.nav a:hover { color: #fff; }
@media (max-width: 860px) { .nav { display: none; } }
@media (max-width: 420px) { .brand-t { font-size: 11px; } .emblem { width: 32px; } }

/* ---------- HERO con lo stadio 3D ---------- */
.hero { position: relative; height: 100svh; min-height: 700px; overflow: hidden; background: radial-gradient(70% 60% at 62% 55%, #0b1020 0%, var(--bg) 70%); isolation: isolate; }
.stage3d { position: absolute; inset: 0; z-index: 0; }
.stage3d canvas { position: relative; width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; outline: none; opacity: 0; transition: opacity .7s ease; }
.stage3d.pronto canvas { opacity: 1; }
.stage-poster, .stage-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage3d.pronto .stage-poster { visibility: hidden; transition: visibility 0s .8s; }
.stage3d canvas:active { cursor: grabbing; }
.hero-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 4, 9, .94) 0%, rgba(3, 4, 9, .72) 26%, rgba(3, 4, 9, 0) 52%),
              linear-gradient(180deg, rgba(3, 4, 9, .7) 0%, transparent 16%, transparent 78%, var(--bg) 100%); }
.st-labels { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.st-label { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity .3s; white-space: nowrap; }
.st-sec { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-num); font-weight: 800; font-size: 13px;
  background: rgba(4, 5, 10, .7); box-shadow: inset 0 0 0 1.5px var(--c), 0 0 18px -2px var(--c); color: var(--c); backdrop-filter: blur(4px); }
.st-sec-a { --c: #ffcf7a; } .st-sec-b { --c: #8fe2ff; } .st-sec-c { --c: #c3a8ff; } .st-sec-d { --c: #7d9cf0; }
.st-stage { font-size: 10px; letter-spacing: .42em; padding-left: .42em; color: rgba(255, 215, 170, .85); text-shadow: 0 0 12px rgba(255, 80, 60, .8); }
.st-sel { padding: 6px 11px; border-radius: 999px; background: linear-gradient(180deg, #ffe7b0, #d9b264); color: #120c03; font-family: var(--f-num); font-weight: 800; font-size: 12px; letter-spacing: .08em;
  box-shadow: 0 8px 26px -6px rgba(255, 190, 90, .8); }
.st-sel::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #d9b264; transform: rotate(45deg); z-index: -1; }

.hero-ui { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-ui > * { pointer-events: auto; }
.hero-copy { position: absolute; left: var(--pad); top: calc(50% + var(--top-h) / 2); transform: translateY(-50%); width: min(470px, 40vw); }
.live { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 10.5px; letter-spacing: .26em; color: var(--soft);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.live b { color: #fff; font-family: var(--f-num); letter-spacing: .08em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff4b3e; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(255, 75, 62, .6); } 70% { box-shadow: 0 0 0 9px rgba(255, 75, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 75, 62, 0); } }
.hero-t { font-size: clamp(40px, 4.4vw, 66px); text-transform: uppercase; line-height: .98; letter-spacing: -.02em; }
.hero-t span { display: block; }
.hero-t .h-num { font-family: var(--f-num); font-weight: 800; font-size: 1.32em; letter-spacing: .01em; line-height: 1; color: #fff7e6;
  text-shadow: 0 0 22px rgba(255, 205, 120, .45), 0 0 60px rgba(255, 190, 90, .25); font-variant-numeric: tabular-nums; }
.hero-sub { margin: 20px 0 26px; color: var(--soft); font-size: 15.5px; line-height: 1.6; max-width: 40ch; }

.panel { position: relative; border-radius: 22px; padding: 18px; background: var(--glass); backdrop-filter: blur(20px) saturate(1.35); -webkit-backdrop-filter: blur(20px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .07), 0 30px 80px -30px rgba(0, 0, 0, .9); }
.finder label { display: block; font-size: 10.5px; letter-spacing: .32em; color: var(--muted); margin: 0 0 10px 4px; }
.finder-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: box-shadow .3s; }
.finder-row:focus-within { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(230, 194, 122, .12); }
.finder-pre { font-family: var(--f-num); color: var(--muted); font-size: 14px; }
.finder input { flex: 1 1 auto; width: 0; min-width: 0; background: none; border: 0; outline: 0; font-family: var(--f-num); font-weight: 800; font-size: 21px; letter-spacing: .14em; color: #fff; }
.finder input::placeholder { color: #34333b; }
.finder-msg { margin: 9px 0 0 6px; min-height: 1.3em; font-size: 12px; color: var(--muted); }
.finder-msg.err { color: #ff9a8a; }

.seat { position: relative; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); animation: seatIn .5s var(--ease); }
@keyframes seatIn { from { opacity: 0; transform: translateY(8px); } }
.seat-x { position: absolute; right: -4px; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); cursor: pointer; font-size: 18px; line-height: 1; color: var(--muted); }
.seat-top { display: flex; align-items: center; gap: 10px; }
.seat-k { font-size: 10.5px; letter-spacing: .32em; color: var(--muted); }
.seat-pill { font-size: 9.5px; letter-spacing: .22em; padding: 4px 9px; border-radius: 999px; color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(143, 226, 255, .45); }
.seat-pill.occ { color: #140e03; background: var(--gold); box-shadow: 0 0 16px rgba(255, 200, 110, .5); }
.seat-n { font-family: var(--f-num); font-weight: 800; font-size: 52px; line-height: 1.05; letter-spacing: .03em; margin: 6px 0 12px;
  background: linear-gradient(180deg, #fffaf0, #efcf8e); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.seat-dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.seat-dl div { padding: 9px 10px; border-radius: 12px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.seat-dl dt { font-size: 9px; letter-spacing: .26em; color: var(--muted); }
.seat-dl dd { margin: 2px 0 0; font-family: var(--f-num); font-weight: 700; font-size: 13.5px; letter-spacing: .06em; }

.hero-dock { position: absolute; right: var(--pad); bottom: 30px; display: flex; align-items: flex-end; gap: 12px; }
.legend { list-style: none; margin: 0; padding: 6px; display: flex; gap: 4px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); }
.legend li { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; cursor: pointer; transition: background .25s; min-width: 96px; }
.legend li:hover, .legend li.on { background: rgba(255, 255, 255, .07); }
.legend b { font-family: var(--f-num); font-size: 13px; }
.lg-n { grid-column: 1 / -1; font-family: var(--f-num); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.lg-bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); margin-top: 6px; overflow: hidden; }
.lg-bar i { display: block; height: 100%; width: var(--fill, 0%); background: var(--c, var(--gold)); box-shadow: 0 0 8px var(--c, var(--gold)); }
.legend li[data-sec="A"] { --c: #ffcf7a; } .legend li[data-sec="B"] { --c: #8fe2ff; } .legend li[data-sec="C"] { --c: #c3a8ff; } .legend li[data-sec="D"] { --c: #7d9cf0; }
.sw { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.ctrl { display: grid; gap: 6px; }
.ctrl button { width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer; font-size: 18px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s; }
.ctrl button:hover { background: rgba(40, 42, 56, .8); }
.hint3d { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); margin: 0; font-size: 10px; letter-spacing: .38em; color: var(--muted); pointer-events: none; transition: opacity .8s; white-space: nowrap; }
.hint3d.off { opacity: 0; }
.tip3d { position: absolute; z-index: 4; left: 0; top: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); white-space: nowrap; padding: 8px 12px; border-radius: 10px;
  background: rgba(6, 7, 12, .92); box-shadow: inset 0 0 0 1px rgba(230, 194, 122, .35), 0 10px 30px rgba(0, 0, 0, .6); font-size: 10.5px; letter-spacing: .14em; }
.tip3d b { font-family: var(--f-num); color: var(--gold-hi); font-size: 13px; letter-spacing: .06em; }
.st-occ { color: var(--gold); } .st-free { color: var(--cyan); }

@media (max-width: 1100px) and (min-width: 761px) {
  .hero-copy { width: min(400px, 46vw); }
  .hint3d { display: none; }
}
@media (max-width: 760px) {
  .hero { height: auto; min-height: 0; padding-top: calc(var(--top-h) + env(safe-area-inset-top)); background: var(--bg); }
  .stage3d { position: relative; inset: auto; height: 62svh; min-height: 380px; }
  .st-labels { top: calc(var(--top-h) + env(safe-area-inset-top)); bottom: auto; height: max(62svh, 380px); }
  .hero-shade { top: calc(var(--top-h) + env(safe-area-inset-top)); bottom: auto; height: max(62svh, 380px);
    background: linear-gradient(180deg, var(--bg) 0%, transparent 12%, transparent 72%, var(--bg) 100%); }
  .hero-ui { position: relative; inset: auto; z-index: 3; margin-top: -40px; padding: 0 var(--pad) 40px; }
  .hero-copy { position: static; transform: none; width: auto; }
  .live { margin-bottom: 16px; }
  .hero-t { font-size: clamp(32px, 9.4vw, 42px); }
  .hero-sub { font-size: 14.5px; margin: 14px 0 20px; }
  .hero-dock { position: static; margin-top: 14px; }
  .legend { width: 100%; justify-content: space-between; }
  .legend li { min-width: 0; flex: 1; padding: 8px; }
  .ctrl { position: absolute; right: 12px; top: -150px; z-index: 4; }
  .ctrl button { width: 38px; height: 38px; }
  .hint3d { top: calc(var(--top-h) + env(safe-area-inset-top) + 14px); bottom: auto; font-size: 9px; letter-spacing: .3em; }
  .seat-n { font-size: 44px; }
}

/* ---------- sezioni ---------- */
.sec { position: relative; padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); }
.come { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { position: relative; padding: 30px 28px 32px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)); box-shadow: inset 0 0 0 1px var(--line); }
.steps li::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 55% at 0% 0%, rgba(255, 200, 110, .1), transparent 70%); pointer-events: none; }
.st-n { display: block; font-family: var(--f-num); font-weight: 800; font-size: 54px; line-height: 1; color: transparent; -webkit-text-stroke: 1.3px var(--gold); margin-bottom: 26px; }
.steps h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.steps p { margin: 0; color: #aaa59c; font-size: 14.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.biglietto { background: radial-gradient(55% 60% at 72% 50%, rgba(70, 120, 255, .13), transparent 70%), var(--bg); overflow: hidden; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.tk-copy .lead { margin: 22px 0 30px; }
.tk-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-stage { perspective: 1400px; display: grid; justify-items: center; }
.tk-card { position: relative; width: min(340px, 74vw); aspect-ratio: 968 / 1685; transform-style: preserve-3d; border-radius: 5.6% / 3.2%;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 50px rgba(90, 150, 255, .3)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.tk-card canvas { width: 100%; height: 100%; border-radius: inherit; }
.tk-holo, .tk-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.tk-holo { mix-blend-mode: color-dodge; opacity: .2;
  background: linear-gradient(calc(115deg + var(--ry, 0deg) * 3), transparent 20%, hsla(190, 90%, 60%, .7) 35%, hsla(300, 90%, 65%, .7) 45%, hsla(45, 90%, 60%, .7) 55%, hsla(150, 90%, 55%, .6) 65%, transparent 80%);
  background-size: 220% 220%; background-position: calc(50% + var(--ry, 0deg) * 4) calc(50% + var(--rx, 0deg) * 4); }
.tk-glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .2), transparent 45%); mix-blend-mode: overlay; }
@media (max-width: 860px) { .tk-grid { grid-template-columns: minmax(0, 1fr); } .tk-stage { order: -1; } .tk-ctas .btn { flex: 1; } }

.sipario { min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; padding: 120px 0; }
.sip-bg, .sip-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sip-shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 60%, rgba(0, 0, 0, .25), rgba(0, 0, 0, .78) 80%), linear-gradient(180deg, var(--bg), transparent 22%, transparent 70%, var(--bg)); }
.sip-in h2 { font-size: clamp(28px, 4.4vw, 58px); max-width: 22ch; margin: 0 auto; text-shadow: 0 4px 30px #000; }
.sip-in .btn { margin-top: clamp(34px, 5vw, 52px); }

.foot { padding: 50px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-in { display: grid; gap: 10px; justify-items: center; text-align: center; }
.foot p { margin: 0; }
.foot a { color: var(--soft); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 14px 20px; border-radius: 14px;
  background: rgba(12, 12, 18, .95); box-shadow: inset 0 0 0 1px rgba(230, 194, 122, .4), 0 20px 60px rgba(0, 0, 0, .7); font-size: 13.5px; transition: opacity .35s, transform .45s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .1s; } .steps .reveal:nth-child(3) { transition-delay: .2s; }

/* ---------- area account ---------- */
.acc { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: calc(var(--top-h) + env(safe-area-inset-top)); }
.acc-visual { position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px var(--pad);
  background: radial-gradient(60% 60% at 50% 50%, rgba(70, 120, 255, .14), transparent 70%), url('/media/posto.webp') center / cover; }
.acc-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 4, 9, .35), rgba(3, 4, 9, .85)); }
.acc-visual > * { position: relative; }
.acc-main { display: grid; align-content: center; padding: 48px var(--pad); }
.acc-card { width: 100%; max-width: 440px; margin: 0 auto; }
.acc-card h1 { font-size: clamp(30px, 3.6vw, 46px); text-transform: uppercase; margin-bottom: 12px; }
.acc-card .lead { font-size: 15px; margin: 0 0 26px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 24px; }
.tabs button { border: 0; background: none; padding: 11px; border-radius: 999px; font-size: 11.5px; letter-spacing: .18em; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .3s; }
.tabs button.on { background: rgba(255, 255, 255, .09); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field label { font-size: 10.5px; letter-spacing: .28em; color: var(--muted); padding-left: 4px; }
.field input { width: 100%; padding: 15px 18px; border-radius: 14px; border: 0; outline: 0; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); font-size: 16px; transition: box-shadow .25s; }
.field input:focus { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 4px rgba(230, 194, 122, .12); }
.field input.code { font-family: var(--f-num); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.field small { font-size: 12px; color: var(--muted); padding-left: 4px; }
.form-msg { min-height: 1.4em; margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.form-msg.err { color: #ff9a8a; }
.form-msg.ok { color: #9be3b0; }
.badge-prova { display: inline-block; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; font-size: 10px; letter-spacing: .26em; color: #ffb38a; box-shadow: inset 0 0 0 1px rgba(255, 150, 100, .45); }
.acc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.acc-info div { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.acc-info dt { font-size: 9.5px; letter-spacing: .26em; color: var(--muted); }
.acc-info dd { margin: 3px 0 0; font-family: var(--f-num); font-weight: 700; font-size: 15px; letter-spacing: .05em; overflow-wrap: anywhere; }
.acc-actions { display: grid; gap: 10px; }
.acc-link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.acc-ticket { width: min(340px, 72vw); }
.acc-steps { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; color: var(--soft); font-size: 14px; }
.acc-steps li { display: flex; gap: 12px; align-items: baseline; }
.acc-steps li b { font-family: var(--f-num); color: var(--gold); font-size: 12px; }
@media (max-width: 860px) {
  .acc { grid-template-columns: minmax(0, 1fr); }
  .acc-visual { min-height: 46svh; }
  .acc-main { padding-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-gold::after, .tk-card, .live-dot { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
