/* SanPLAY: app completa. Pensata prima per il telefono, poi per lo schermo grande. */
[hidden] { display: none !important; }
:root {
  --bg: #0b0a0d; --surface: #151219; --surface-2: #1c1720; --surface-3: #261f2c; --ink: #f4eef5; --muted: #a89eac;
  --line: #2b2331; --accent: #ff4fbf; --accent-ink: #14070f; --mark: #ffc4ec; --gold: #ffd36b; --ok: #8be3a8; --err: #ff7b7b;
  --glow: 0 0 6px rgba(255, 79, 191, .9), 0 0 22px rgba(255, 79, 191, .55);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 18px; --tab: 62px; --mini: 64px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--body); overflow-x: clip; }
body { min-height: 100dvh; }
a { color: var(--mark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
svg.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- struttura ---------- */
#colonna { max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right, 0px)) calc(var(--tab) + var(--mini) + var(--sab) + 36px) max(16px, env(safe-area-inset-left, 0px)); }
#testa { position: sticky; top: 0; z-index: 6; margin: 0 -16px; padding: calc(var(--sat) + 10px) 16px 10px; display: flex; align-items: center; gap: 10px; background: rgba(11, 10, 13, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#testa .logo { font: 900 26px/1 var(--display); letter-spacing: .02em; text-decoration: none; color: var(--ink); }
#testa .logo b { color: var(--accent); text-shadow: var(--glow); }
#testa .titolo { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
#testa .spazio { flex: 1; }
.tondo { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; text-decoration: none; color: var(--ink); padding: 0; position: relative; flex: none; overflow: hidden; }
.tondo .conta { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 11px/18px var(--mono); text-align: center; }
.tondo:has(.conta) { overflow: visible; }
.badge { font: 600 11px var(--mono); padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.badge.rosa { border-color: var(--accent); color: var(--mark); }
.badge.oro { border-color: var(--gold); color: var(--gold); }
.badge.ok { border-color: var(--ok); color: var(--ok); }
.carico { color: var(--muted); padding: 40px 0; text-align: center; }
#vista { outline: none; animation: entra .22s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* barra in basso */
#tab { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: calc(var(--tab) + var(--sab)); padding-bottom: var(--sab); display: flex; background: rgba(15, 13, 18, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
#tab a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted); font: 600 11px var(--body); letter-spacing: .02em; transition: color .15s; }
#tab a[aria-current="page"] { color: var(--ink); }
#tab a[aria-current="page"] svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 79, 191, .7)); }
#lato { display: none; }

/* ---------- pezzi comuni ---------- */
.sez { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 12px; }
.sez h2 { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.sez a, .sez button { color: var(--muted); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 4px 0; }
.sotto { color: var(--muted); font-size: 14px; }
.nota { color: var(--muted); font-size: 13px; }
.finto { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px dashed #5c4a64; border-radius: 12px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.finto b { color: var(--gold); font: 700 11px var(--mono); letter-spacing: .08em; padding-top: 2px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card + .card { margin-top: 12px; }
.card h3 { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; transition: transform .1s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn:hover { box-shadow: var(--glow); }
.btn.due { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.nudo { background: none; color: var(--mark); padding: 0 8px; box-shadow: none; }
.btn.piccolo { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.largo { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.riga { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip[aria-pressed="true"], .chip.su { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); }
.scorri { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.scorri::-webkit-scrollbar { display: none; }
.scorri > * { flex: none; scroll-snap-align: start; }
.arte { border-radius: 14px; background: linear-gradient(145deg, var(--a, #ff4fbf), var(--b, #6d1450)); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.arte::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .28), transparent 55%); pointer-events: none; }
.arte span { font: 900 clamp(15px, 4.4vw, 22px)/.95 var(--display); text-transform: uppercase; letter-spacing: .02em; padding: 10px; text-align: center; overflow-wrap: anywhere; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.arte img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.arte svg.disegno { width: 56%; height: 56%; stroke: rgba(255, 255, 255, .92); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.quadro { width: 148px; text-decoration: none; color: inherit; background: none; border: 0; padding: 0; text-align: left; }
.quadro .arte { width: 148px; height: 148px; margin-bottom: 8px; }
.quadro b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quadro small { color: var(--muted); font-size: 13px; }

.lista { list-style: none; margin: 0; padding: 0; }
.voce { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.voce:last-child { border-bottom: 0; }
.voce .arte { width: 46px; height: 46px; border-radius: 10px; }
.voce .arte span { font-size: 13px; padding: 2px; }
.voce .txt { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; text-decoration: none; color: inherit; }
.voce .txt b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voce .txt small { color: var(--muted); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voce.attiva .txt b { color: var(--accent); }
.voce .az { display: flex; gap: 2px; align-items: center; }
.ib { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--muted); text-decoration: none; flex: none; padding: 0; }
.ib:hover { color: var(--ink); background: var(--surface-2); }
.ib.pieno { background: var(--accent); color: var(--accent-ink); }
.vuoto { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }
.vuoto b { display: block; color: var(--ink); font: 800 20px var(--display); text-transform: uppercase; margin-bottom: 4px; }
.vuoto .btn { margin-top: 14px; }

/* moduli */
.campi { display: grid; gap: 14px; }
.campi label, .campo { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 16px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
.due-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spunta { display: flex !important; gap: 10px; align-items: flex-start; color: var(--ink) !important; }
.spunta input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 1px; }
.errore { color: var(--err); font-size: 14px; min-height: 1px; }
.bene { color: var(--ok); font-size: 14px; }
.interruttore { appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--surface-3); border: 1px solid var(--line); position: relative; flex: none; cursor: pointer; transition: .15s; }
.interruttore::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: .15s; }
.interruttore:checked { background: var(--accent); border-color: var(--accent); }
.interruttore:checked::after { left: 23px; background: var(--accent-ink); }
.carica-img { display: grid; place-items: center; gap: 4px; min-height: 96px; border: 1px dashed #5c4a64; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: center; cursor: pointer; padding: 10px; position: relative; overflow: hidden; }
.carica-img input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.carica-img b { color: var(--ink); font-size: 14px; }
.miniature { display: flex; gap: 8px; flex-wrap: wrap; }
.miniature img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.segmenti { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.segmenti::-webkit-scrollbar { display: none; }
.segmenti button { flex: 1 0 auto; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.segmenti button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

/* ---------- home ---------- */
.saluto { margin: 8px 0 18px; }
.saluto h1 { font: 900 clamp(34px, 10vw, 46px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.eroe { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: center; padding: 16px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 79, 191, .22), rgba(255, 79, 191, .04) 60%), var(--surface); border: 1px solid #4a2540; }
.eroe .arte { width: 128px; height: 128px; box-shadow: 0 12px 40px rgba(255, 79, 191, .25); }
.eroe h2 { font: 900 32px/.95 var(--display); text-transform: uppercase; margin: 6px 0 4px; }
.eroe .btn { margin-top: 12px; }
.eroe .riga { flex-wrap: nowrap; }
.eroe > div { min-width: 0; }
.atti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.atto { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; min-height: 64px; }
.atto svg { color: var(--accent); }
.atto small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }
.incolla { display: flex; gap: 8px; margin-top: 12px; }
.incolla input { flex: 1; }
.cornice { margin-top: 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cornice iframe { display: block; width: 100%; height: 352px; border: 0; }
.cornice .consenso { padding: 18px; display: grid; gap: 10px; }

/* ---------- player ---------- */
#player { position: fixed; z-index: 19; left: 8px; right: 8px; bottom: calc(var(--tab) + var(--sab) + 8px); border-radius: 16px; background: rgba(38, 31, 44, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid #3a2f42; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); overflow: hidden; }
#player .mini { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; height: var(--mini); }
#player .mini .arte { width: 46px; height: 46px; border-radius: 10px; }
#player .mini .arte span { font-size: 11px; padding: 2px; }
#player .mini .txt { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; }
#player .mini .txt b, #player .mini .txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player .mini .txt small { color: var(--muted); font-size: 13px; }
#player .filo { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); width: 0; }
#player .grande { display: none; }
#player.aperto { inset: 0; border-radius: 0; border: 0; z-index: 30; background: linear-gradient(180deg, var(--pa, #3b0b2b), var(--bg) 62%); overflow-y: auto; }
#player.aperto .mini, #player.aperto .filo { display: none; }
#player.aperto .grande { display: flex; flex-direction: column; gap: 18px; min-height: 100%; max-width: 520px; margin: 0 auto; padding: calc(var(--sat) + 12px) 24px calc(var(--sab) + 24px); }
.grande .su { display: flex; align-items: center; justify-content: space-between; }
.grande .su small { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.grande .arte { width: min(100%, 46dvh); aspect-ratio: 1; margin: 0 auto; border-radius: 22px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
.grande .arte span { font-size: clamp(26px, 9vw, 44px); }
.grande h2 { font: 900 30px/1 var(--display); text-transform: uppercase; }
.grande .barra { height: 28px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.grande .barra i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); width: 100%; position: relative; }
.grande .barra i b { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--ink); width: 0; }
.grande .tempi { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--muted); margin-top: -8px; }
.grande .comandi { display: flex; align-items: center; justify-content: center; gap: 22px; }
.grande .comandi .ib { width: 54px; height: 54px; color: var(--ink); }
.grande .comandi .ib svg { width: 30px; height: 30px; }
.grande .comandi .ib.pieno { width: 72px; height: 72px; background: var(--ink); color: var(--bg); }
.grande .comandi .ib[disabled] { opacity: .3; }
.grande .extra { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.grande .cornice iframe { height: 352px; }

/* ---------- fogli (modali dal basso) ---------- */
#foglio-sfondo { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
#foglio { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; border-top: 1px solid var(--line); padding: 10px 20px calc(var(--sab) + 24px); animation: sale .25s cubic-bezier(.2, .9, .3, 1); max-width: 620px; margin: 0 auto; }
@keyframes sale { from { transform: translateY(40%); opacity: 0; } }
#foglio::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
#foglio h2 { font: 900 26px/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
#foglio .chiudi { position: absolute; top: 14px; right: 12px; }
#foglio .piede { display: flex; gap: 10px; margin-top: 18px; }
#foglio .piede .btn { flex: 1; }
#toast { position: fixed; z-index: 60; left: 0; right: 0; bottom: calc(var(--tab) + var(--mini) + var(--sab) + 24px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
#toast div { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); animation: entra .2s; text-align: center; }
.passi { display: flex; gap: 6px; margin: 4px 0 16px; }
.passi i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.passi i.fatto { background: var(--accent); }
.scegli { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; cursor: pointer; }
.scegli:has(input:checked) { border-color: var(--accent); background: rgba(255, 79, 191, .08); }
.scegli input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; }
.scegli b { display: block; }
.scegli small { color: var(--muted); }
.avanzamento { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 18px 0 8px; }
.avanzamento i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }

/* ---------- eventi ---------- */
.evento { display: block; text-decoration: none; color: inherit; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); margin-top: 14px; }
.evento .arte { height: 168px; border-radius: 0; place-items: end start; }
.evento .arte span { font-size: clamp(28px, 8.5vw, 40px); text-align: left; padding: 14px 16px; max-width: 80%; }
.evento .data { position: absolute; z-index: 3; top: 12px; left: 12px; background: rgba(11, 10, 13, .82); backdrop-filter: blur(6px); border-radius: 12px; padding: 6px 10px; text-align: center; font: 700 11px/1.1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.evento .data b { display: block; font: 900 24px/1 var(--display); letter-spacing: 0; }
.evento .arte .chi { position: absolute; z-index: 3; top: 12px; right: 12px; background: rgba(11, 10, 13, .82); font: 600 11px var(--mono); padding: 4px 9px; max-width: none; text-shadow: none; letter-spacing: .06em; color: var(--ink); border-color: transparent; }
.evento .sotto-ev { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.evento .sotto-ev small { color: var(--muted); display: block; }
.prezzo { font: 700 15px var(--mono); white-space: nowrap; }
.mappa { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #100e14; margin-top: 14px; touch-action: manipulation; }
.mappa svg { display: block; width: 100%; height: auto; }
.mappa .pin { cursor: pointer; }
.mappa .pin circle.alone { fill: var(--accent); opacity: .18; }
.mappa .pin.no circle.alone { fill: var(--muted); }
.mappa .pin.scelto circle.alone { opacity: .45; }
.dettaglio-cima { margin: 0 -16px; }
.dettaglio-cima .arte { height: 240px; border-radius: 0 0 28px 28px; place-items: end start; }
.dettaglio-cima .arte span { font-size: clamp(34px, 10vw, 52px); text-align: left; padding: 20px; }
.fatti { display: grid; gap: 12px; margin: 18px 0; }
.fatti div { display: flex; gap: 12px; align-items: flex-start; }
.fatti svg { color: var(--accent); margin-top: 2px; }
.fatti small { display: block; color: var(--muted); }
.fisso { position: sticky; bottom: calc(var(--tab) + var(--mini) + var(--sab) + 20px); display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 18px; background: rgba(28, 23, 32, .96); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 999px; margin-top: 20px; z-index: 4; }
.fisso .spazio { flex: 1; }
body.senza-player .fisso { bottom: calc(var(--tab) + var(--sab) + 12px); }

.negozi { display: flex; gap: 8px; flex-wrap: wrap; }
.negozi .chip svg.ic { width: 14px; height: 14px; }
.grande .negozi { justify-content: center; }

/* ---------- shop ---------- */
.griglia { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 12px; margin-top: 14px; }
.prodotto { text-decoration: none; color: inherit; }
.prodotto .arte { aspect-ratio: 1; margin-bottom: 8px; border-radius: 18px; }
.prodotto b { display: block; line-height: 1.2; }
.prodotto small { color: var(--muted); }
.galleria { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.galleria .arte { flex: none; width: min(86vw, 420px); aspect-ratio: 1; scroll-snap-align: center; border-radius: 22px; }
.taglie { display: flex; gap: 8px; flex-wrap: wrap; }
.taglie button { min-width: 48px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.taglie button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.quanti { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.quanti button { width: 36px; height: 36px; border: 0; background: none; font-size: 18px; }
.quanti span { min-width: 22px; text-align: center; font: 600 14px var(--mono); }

/* ---------- supporta ---------- */
.artista-card { display: grid; gap: 12px; }
.artista-card .cima { display: flex; gap: 14px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.avatar span { font-size: 22px; padding: 0; }
.avatar.grande { width: 104px; height: 104px; }
.avatar.grande span { font-size: 36px; }
.dona { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- spese ---------- */
.totale { padding: 22px 20px; border-radius: 24px; background: linear-gradient(135deg, rgba(255, 79, 191, .2), rgba(255, 79, 191, .03) 65%), var(--surface); border: 1px solid #4a2540; }
.totale small { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.totale .cifra { font: 900 clamp(52px, 16vw, 72px)/1 var(--display); margin: 4px 0; font-variant-numeric: tabular-nums; }
.totale .cifra span { font-size: .5em; color: var(--muted); }
.diff { display: inline-flex; gap: 6px; align-items: center; font: 600 13px var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--surface-2); }
.diff.su { color: var(--err); }
.diff.giu { color: var(--ok); }
.confronto { display: grid; gap: 8px; margin-top: 16px; }
.confronto div { display: grid; grid-template-columns: 74px 1fr 78px; gap: 10px; align-items: center; font: 500 12px var(--mono); color: var(--muted); }
.confronto i { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.confronto i b { display: block; height: 100%; border-radius: 5px; background: var(--muted); }
.confronto div.ora i b { background: var(--accent); }
.confronto div.ora { color: var(--ink); }
.confronto span:last-child { text-align: right; }
.sigla { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font: 900 18px var(--display); background: var(--c, var(--surface-3)); color: #0b0a0d; flex: none; }
.proposta { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--accent); background: rgba(255, 79, 191, .07); margin-top: 10px; }
.proposta { flex-wrap: wrap; }
.proposta .txt { flex: 1 1 150px; min-width: 0; }
.proposta small { color: var(--muted); display: block; }

/* ---------- tu / aree ---------- */
.profilo { display: flex; gap: 14px; align-items: center; margin: 8px 0 18px; }
.profilo h1 { font: 900 30px/1 var(--display); text-transform: uppercase; }
.tessera { border-radius: 22px; padding: 18px; background: linear-gradient(135deg, #2a0f24, #151219); border: 1px solid #4a2540; display: flex; gap: 16px; align-items: center; }
.tessera .stelle { font: 900 44px/1 var(--display); color: var(--gold); }
.menu { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a, .menu button, .menu .riga-menu { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; background: none; border: 0; text-decoration: none; color: var(--ink); text-align: left; }
.menu svg:first-child { color: var(--accent); }
.menu .txt { flex: 1; min-width: 0; }
.menu small { display: block; color: var(--muted); font-size: 13px; }
.menu .freccia { color: var(--muted); }
.oppure { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 16px 0; }
.oppure::before, .oppure::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.numeri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numero { padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.numero b { display: block; font: 900 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.numero small { color: var(--muted); font-size: 12px; }
.barre { display: grid; gap: 8px; }
.barre div { display: grid; grid-template-columns: minmax(0, 1fr) 2fr 34px; gap: 10px; align-items: center; font-size: 13px; }
.barre span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barre i { display: block; height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.barre i b { display: block; height: 100%; background: var(--accent); border-radius: 5px; }
.barre span:last-child { font: 600 12px var(--mono); text-align: right; }
.coupon { display: grid; grid-template-columns: 1fr auto; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #ffd36b, #ff9d4f); color: #1c1205; margin-top: 10px; }
.coupon .c1 { padding: 14px 16px; }
.coupon .c1 b { font: 900 24px/1 var(--display); text-transform: uppercase; display: block; }
.coupon .c1 small { opacity: .8; }
.coupon .c2 { display: grid; place-items: center; padding: 0 16px; border-left: 2px dashed rgba(28, 18, 5, .4); font: 900 26px var(--display); white-space: nowrap; background: none; border-top: 0; border-right: 0; border-bottom: 0; color: inherit; }
.codice { font: 700 30px var(--mono); letter-spacing: .2em; text-align: center; padding: 22px; border: 2px dashed var(--gold); border-radius: 16px; color: var(--gold); margin: 14px 0; }
.listino { display: grid; gap: 6px; }
.listino div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dotted var(--line); padding: 6px 0; }
.listino span:last-child { font: 600 14px var(--mono); }

/* ---------- schermo grande ---------- */
@media (min-width: 900px) {
  #app { display: grid; grid-template-columns: 248px 1fr; }
  #lato { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100dvh; padding: 22px 14px; border-right: 1px solid var(--line); background: #0f0d12; overflow-y: auto; }
  #lato .logo { font: 900 30px/1 var(--display); color: var(--ink); text-decoration: none; padding: 0 12px 18px; }
  #lato .logo b { color: var(--accent); text-shadow: var(--glow); }
  #lato a.v { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; }
  #lato a.v:hover { background: var(--surface); color: var(--ink); }
  #lato a.v[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
  #lato a.v[aria-current="page"] svg { color: var(--accent); }
  #lato hr { border: 0; border-top: 1px solid var(--line); margin: 10px 4px; width: auto; }
  #tab { display: none; }
  #testa .logo { display: none; }
  #colonna { max-width: 860px; width: 100%; padding-bottom: 130px; }
  #player { left: calc(248px + 24px); right: 24px; bottom: 18px; max-width: 812px; margin: 0 auto; }
  #toast { bottom: 110px; left: 248px; }
  .griglia { grid-template-columns: repeat(4, 1fr); }
  .atti { grid-template-columns: repeat(4, 1fr); }
  .fisso { bottom: 100px; }
  body.senza-player .fisso { bottom: 20px; }
  .eventi-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  #foglio { border-radius: 24px; bottom: 50%; transform: translateY(50%); border: 1px solid var(--line); animation: none; }
}
