/* Chi suona stasera · stile "serigrafia": titoli da locandina, ombre sfalsate, biglietti di carta.
   I colori stanno tutti in theme.css. Una colonna stretta da telefono; barra fissa in basso. */
:root {
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); padding: 1px 5px; border-radius: 3px; }

/* ----- Struttura ----- */
.wrap { max-width: 560px; margin: 0 auto; padding: 22px 18px calc(86px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.mt { margin-top: 18px; }
.userline { margin: 0; font-size: 14px; color: var(--muted); }

/* ----- Barra in alto ----- */
.topbar { max-width: 560px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top)) 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 14px; font-weight: 700; z-index: 40; }
.skip:focus { left: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 20px; line-height: .88; letter-spacing: .02em;  max-width: 5.5em; }
.topright { display: flex; gap: 8px; align-items: center; }
.bandlink, .acct { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.bandlink[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.acct.on { width: 40px; padding: 0; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (max-width: 380px) { .brand-name { font-size: 18px; } .bandlink, .acct { padding: 0 11px; } }

/* ----- Barra fissa in basso: agganciata al bordo; il Play sporge a metà, contornato ----- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--accent); padding-bottom: env(safe-area-inset-bottom); }
.tabbar-in { max-width: 560px; margin: 0 auto; height: 62px; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: rgba(246, 243, 236, .68); text-decoration: none; font-size: 11px; font-weight: 700; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent2); }
.tab-mid { height: 62px; position: relative; }
.tab-play { position: absolute; left: 0; right: 0; margin: 0 auto; top: -30px; width: 68px; height: 68px; border-radius: 50%; background: var(--accent2); color: var(--accent); border: 6px solid var(--bg); box-sizing: border-box; display: grid; place-items: center; box-shadow: 0 2px 0 rgba(12, 43, 49, .12); }
.tab-play svg { width: 26px; height: 26px; margin-left: 3px; }
.tab-mid .tab-label { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 11px; font-weight: 700; color: rgba(246, 243, 236, .85); }

/* ----- Titoli ----- */
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 13vw, 72px); line-height: .88; overflow-wrap: anywhere; margin-bottom: 14px; letter-spacing: .005em;  }
h1.small { font-size: clamp(38px, 11.5vw, 58px); }
h2 { font-size: 34px; line-height: .95; }
h3 { margin: 0; }
.place { position: relative; display: inline-block; max-width: 100%; color: var(--accent); }
.place select { max-width: 100%; appearance: none; -webkit-appearance: none; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit;  border: 0; border-bottom: 5px solid var(--accent); padding: 0 .1em 0 0; margin: 0; cursor: pointer; border-radius: 0; }
.place select option { font-family: var(--font-body); font-size: 16px; text-transform: none; color: #111; }

/* ----- Pulsanti, scelte e campi ----- */
.controls { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg button { background: transparent; color: var(--text); border: 2px solid var(--line); border-radius: 14px; padding: 9px 15px; min-height: 44px; font: 700 14px var(--font-body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ghost { display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 2px solid var(--line); border-radius: 14px; padding: 9px 15px; min-height: 44px; font: 700 14px var(--font-body); cursor: pointer; text-decoration: none; }
.ghost:hover { border-color: var(--muted); }
.ghost.accent { color: var(--accent); border-color: var(--accent); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hint { font-size: 13px; color: var(--muted); min-height: 1.3em; margin-top: 8px; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.meta { color: var(--muted); font-size: 15px; margin: 0; }
.empty { padding: 22px 0; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.panel { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 20px 18px; }
form, .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.f.full { grid-column: 1 / -1; }
label, .lbl { font-size: 13px; font-weight: 700; color: var(--muted); }
input, select.field { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 2px solid var(--field-line); border-radius: 14px; padding: 10px 11px; min-height: 46px; }
input[type="date"], input[type="time"] { color-scheme: light; }
.submit { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 14px; padding: 13px 16px; min-height: 48px; font: 700 16px var(--font-body); cursor: pointer; box-shadow: 0 3px 0 var(--accent2); }
.submit:disabled { opacity: .6; cursor: default; }
.span-all { grid-column: 1 / -1; }
.err { color: var(--bad); font-size: 14px; grid-column: 1 / -1; min-height: 1.2em; }
.err.ok { color: var(--text); }
.turnstile { grid-column: 1 / -1; min-height: 65px; }
details.sub { grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: 14px; padding: 10px 12px; }
details.sub summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent); }
details.sub .grid2 { margin-top: 12px; }
.searchrow { display: flex; gap: 8px; }
.searchrow input { flex: 1; min-width: 0; }
.pickrow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; background: var(--field); color: var(--text); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; font: inherit; cursor: pointer; }
.pickrow:hover { border-color: var(--accent); }
.pickrow .s { font-size: 13px; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 500; color: var(--text); }
label.check input { width: 22px; min-height: 22px; height: 22px; }
@media (max-width: 440px) { form, .grid2 { grid-template-columns: 1fr; } .stage { grid-template-columns: 1fr; justify-items: start; } }

/* ----- Etichette ----- */
.chip { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--accent); color: var(--accent); border-radius: 99px; padding: 1px 8px; }
.chip.live { background: var(--accent); color: var(--accent-ink); }
.chip.muted { border-color: var(--muted); color: var(--muted); }
.chip.bad { border-color: var(--bad); color: var(--bad); }
.stars { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ----- Play e serata scelta ----- */
.stage { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.play { position: relative; width: 112px; height: 112px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 0 var(--accent2), 0 14px 24px rgba(12,43,49,.25); cursor: pointer; display: grid; transition: transform .1s, box-shadow .1s; place-items: center; flex: none; }
.play svg { width: 46px; height: 46px; margin-left: 6px; }
.play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--accent2); opacity: .55; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.92); opacity: .7; } 100% { transform: scale(1.18); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .play::after { animation: none; } }
.stage-copy { font-size: 14px; color: var(--muted); }
.stage-copy strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: .95; color: var(--text); margin-bottom: 4px; }

.pick { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 6px 0 var(--accent2); }
.pick .when { position: relative; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 -20px 6px; padding: 0 20px 16px; border-bottom: 2px dashed var(--paper-ink); }
.pick .when::before, .pick .when::after { content: ""; position: absolute; bottom: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); }
.pick .when::before { left: -9px; } .pick .when::after { right: -9px; }
.time { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: .85; font-variant-numeric: tabular-nums; }
.day { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--paper-accent); }
.band { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: .92; margin: 0; text-transform: uppercase; }
.where { font-size: 16px; margin: 0; }
.pick .meta { color: var(--paper-muted); }
.pick .stars { color: var(--paper-accent); }
.pick .chip { border-color: var(--paper-accent); color: var(--paper-accent); }
.pick .chip.live { background: var(--paper-accent); color: var(--paper); }
.pick .ghost, .pick .ghost.accent { color: var(--paper-ink); border-color: var(--paper-ink); }
.pick .ghost:first-child { background: var(--paper-ink); color: var(--paper); }

/* ----- Elenco ----- */
.listhead { display: flex; flex-direction: column; gap: 14px; }
.daytitle { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: .08em; color: var(--accent); padding: 18px 0 6px; border-bottom: 2px solid var(--line); }
.gig { display: grid; grid-template-columns: minmax(76px, max-content) 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.gig .t { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: .95; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gig .n { font-size: 19px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gig .s { font-size: 14px; color: var(--muted); }
.gig .links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 6px; font-size: 14px; }
.reasons { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; }

/* ----- Area band e admin ----- */
.item { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.item .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; align-items: center; }
.item input { max-width: 150px; min-height: 40px; padding: 6px 8px; font-size: 14px; }

/* ----- Passaporto ----- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.stat { padding: 14px 6px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--accent); }
.stat span { font-size: 12px; color: var(--muted); }
.trophy { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trophy .ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--muted); color: var(--muted); font-weight: 700; }
.trophy.on .ico { border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.trophy.off { opacity: .65; }
.trophy b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
.trophy span { font-size: 14px; color: var(--muted); }
.medals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 6px; }
.medal { --c: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.medal.m2 { --c: var(--accent2); } .medal.m3 { --c: var(--text); }
.medal svg { width: 100px; height: 100px; }
.m-ring { fill: none; stroke: var(--c); stroke-width: 3; }
.m-dash { fill: none; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 2 4; }
.m-core { fill: var(--c); }
.m-day { font-family: var(--font-display); font-weight: 800; font-size: 28px; fill: var(--accent-ink); }
.m-mon { font-family: var(--font-body); font-weight: 700; font-size: 9px; letter-spacing: 1.4px; fill: var(--accent-ink); }
.medal-n { font-weight: 700; font-size: 13px; line-height: 1.15; }
.medal-v { font-size: 12px; color: var(--muted); line-height: 1.15; }
.starsrow { display: inline-flex; gap: 2px; }
.starsrow button { background: none; border: 0; padding: 4px 3px; font-size: 26px; line-height: 1; cursor: pointer; color: var(--line); min-width: 36px; min-height: 44px; }
.starsrow button.on { color: var(--accent); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cornice-oro { border-color: #f2b134 !important; } .cornice-argento { border-color: #c9d3d6 !important; } .cornice-bronzo { border-color: #c98a5a !important; } .cornice-doppietta { border-color: #7ad7c1 !important; } .cornice-sostenitore { border-color: #f2b134 !important; box-shadow: 0 0 0 3px rgba(242,177,52,.35), 0 0 14px rgba(242,177,52,.55); }

/* ----- QR della serata (sempre bianco su nero per essere letto bene) ----- */
.poster { background: #fff; color: #111; border-radius: 14px; padding: 22px 18px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.poster-band { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; text-transform: uppercase; }
.poster-meta { font-size: 16px; }
.poster-qr { width: min(100%, 320px); }
.poster-qr svg { width: 100%; height: auto; display: block; }
.poster-cta { font-weight: 700; font-size: 18px; }
.poster-url { font-size: 12px; color: #555; word-break: break-all; }
@media print {
  body * { visibility: hidden; }
  #poster, #poster * { visibility: visible; }
  #poster { position: absolute; left: 0; top: 0; width: 100%; padding: 40px; }
  .poster-band { font-size: 64px; } .poster-qr { width: 420px; } .poster-cta { font-size: 28px; }
}

/* ----- Avvisi ----- */
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; background: var(--paper); color: var(--paper-ink); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 3px 0 var(--accent2); }
.toast.on { opacity: 1; }

/* ----- Logo delle band, campi lunghi ----- */
textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 2px solid var(--field-line); border-radius: 14px; padding: 10px 11px; resize: vertical; min-height: 92px; }
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vh:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
label.ghost { cursor: pointer; color: var(--text); font-size: 14px; }
.logo-tile { flex: none; display: inline-grid; place-items: center; overflow: hidden; background: var(--paper); color: var(--paper-ink); border-radius: 14px; font-family: var(--font-display); font-weight: 800; }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lt-s { width: 36px; height: 36px; font-size: 20px; } .lt-m { width: 64px; height: 64px; font-size: 34px; } .lt-l { width: 96px; height: 96px; font-size: 52px; }
.pick .logo-tile { border: 2px solid var(--paper-ink); }
.logo-tile.vuoto { background: var(--line); color: var(--text); }
.pick .logo-tile.vuoto { background: transparent; color: var(--paper-ink); }
.bandhead { display: flex; align-items: center; gap: 14px; }
.about { margin: 4px 0 0; font-size: 15px; }
.sociallinks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 700; margin-top: 4px; }
.pick .sociallinks a { color: var(--paper-accent); }
.logo-box { display: flex; gap: 16px; align-items: center; }
.logorow { display: flex; gap: 16px; align-items: center; }
.item .head .logo-tile, .gig .n .logo-tile { margin-right: 4px; }
.gig .n { align-items: center; }

/* ----- Pannello admin ----- */
.stats.big { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); }
.stats.big .stat { background: var(--surface); border: 0; padding: 16px 8px 14px; }
.stats.big .stat + .stat { border-left: 0; }
.stats.big .stat span { display: block; margin-top: 2px; }
input[type="search"] { -webkit-appearance: none; appearance: none; }
.item .grid2 { margin-top: 8px; }
.item .grid2 input { max-width: none; min-height: 46px; padding: 10px 11px; font-size: 16px; }
#schede button .chip { margin-left: 6px; }

/* ----- Versione desktop (schermi larghi): menu in alto al posto della barra in basso ----- */
.topnav-d { display: none; }
@media (min-width: 960px) {
  .tabbar { display: none; }
  .wrap { max-width: 800px; padding: 40px 28px 80px; gap: 36px; }
  .toast { bottom: 28px; }
  .topbar { max-width: 1120px; padding: 22px 28px 0; }
  .brand-name { font-size: 26px; max-width: none; white-space: nowrap; line-height: 1; }
  .topnav-d { display: flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 18px; }
  .topnav-d a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; color: var(--muted); font-weight: 700; text-decoration: none; border-radius: 999px; }
  .topnav-d a:hover { color: var(--text); }
  .topnav-d a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -4px 0 var(--accent2); border-radius: 0; }
  .topnav-d .dplay { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 var(--accent2); margin-left: 10px; }
  .topnav-d .dplay:hover { color: var(--accent-ink); }
  .dplay svg { width: 18px; height: 18px; }
  h1 { font-size: 84px; }
  h1.small { font-size: 64px; }
  .time { font-size: 84px; } .band { font-size: 52px; }
  .pick .time { font-size: 96px; } .pick .band { font-size: 46px; }

  /* Home: apertura al centro; annuncio a sinistra e elenco a destra */
  body[data-nav="cerca"] .wrap { max-width: 1120px; }
  .apertura h1 { font-size: 88px; }
  .apertura .play { width: 220px; height: 220px; }
  .apertura .play svg { width: 88px; height: 88px; }
  .apertura { gap: 32px; }
  #dove { max-width: 640px; margin: 0 auto; width: 100%; }
  #risultati { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); column-gap: 64px; align-items: start; }
  #risultati > section:first-child { position: sticky; top: 24px; }
  #risultati > section + section { margin-top: 0; }
  .gig { grid-template-columns: minmax(116px, max-content) 1fr; }

  body[data-nav="band"] .wrap.wide { max-width: 1000px; }

}
@media (min-width: 1400px) { .topbar { max-width: 1240px; } body[data-nav="cerca"] .wrap { max-width: 1240px; } }

.stats + p, .stats + .meta { margin-top: 14px; }

/* ----- Stile "gioco" ----- */
.play:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--accent2), 0 4px 10px rgba(12,43,49,.25); }
.submit:active, .tab-play:active { transform: translateY(2px); }
.pick .when { border-bottom-color: var(--paper-muted); }
.pick .ghost:first-child { background: var(--paper-accent); color: var(--paper); border-color: var(--paper-accent); }
.pick .ghost:first-child { color: #0c2b31; }
.pick .ghost, .pick .ghost.accent { border-radius: 99px; }
.ghost, .submit, .seg button { border-radius: 99px; }
.panel { border-radius: 22px; }
.stat b { color: var(--text); }
.poster { border: 2px solid var(--line); }

/* ----- Apertura, annuncio e "Dove sei?" ----- */
.apertura { height: calc(100vh - 104px); height: calc(100dvh - 104px); min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; text-align: center; position: relative; }
.apertura h1 { font-size: clamp(48px, 14.5vw, 80px); margin: 0; }
.apertura .play { width: 176px; height: 176px; }
.apertura .play svg { width: 70px; height: 70px; margin-left: 8px; }
.apertura .play::before { content: ""; position: absolute; inset: -30px; border-radius: 50%; border: 2px solid var(--accent); opacity: .14; }
.apertura .tocca { margin: 0; color: var(--muted); max-width: 260px; }
.privacy { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: #fff4d6; border: 1.5px dashed #c99a2e; border-radius: 18px; padding: 14px 16px; font-size: 14px; max-width: 420px; }
.privacy svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.privacy p { margin: 0; }
.vola { position: fixed !important; z-index: 60; margin: 0 !important; transition: transform .55s cubic-bezier(.5,-.2,.3,1.1), opacity .2s .45s; transform-origin: top left; }
body[data-stato="apertura"] .tabbar, body[data-stato="dove"] .tabbar { opacity: 0; pointer-events: none; }
.tabbar { transition: opacity .3s; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.nextbtn { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; margin-top: 14px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: 700 16px var(--font-body); cursor: pointer; }
.nextbtn span { font-weight: 500; font-size: 13px; color: var(--muted); }
.pick .row-actions .go { background: var(--paper-accent); color: #0c2b31; border-color: var(--paper-accent); min-height: 52px; flex: 1 1 100%; font-size: 16px; }
.pick .time { font-size: 92px; }
.pick .band { font-size: 44px; }
.cambia { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.dove-ris { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); font: 700 14px var(--font-body); cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.sub-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
@media (min-width: 960px) {
  .apertura { min-height: calc(100svh - 160px); }
  body[data-stato="apertura"] .topnav-d, body[data-stato="dove"] .topnav-d { visibility: hidden; }
  .vola { transition-duration: .5s; }
}
@media (prefers-reduced-motion: reduce) { .vola, .tabbar { transition: none; } }

.searchrow .submit { grid-column: auto; padding: 0 22px; }

/* ----- Animazioni (spente se l'utente preferisce meno movimento) ----- */
@keyframes onda { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes respiro { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes entra { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes scivola { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .apertura .play { animation: respiro 2.8s ease-in-out infinite; }
  .apertura .play:active { animation: none; }
  .apertura .play::before, .apertura .play::after { inset: 0; border: 3px solid var(--accent); opacity: 0; animation: onda 2.8s ease-out infinite; }
  .apertura .play::after { border-color: var(--accent2); animation-delay: 1.4s; }
  .apertura h1 { animation: pop .6s cubic-bezier(.3,1.4,.5,1) both; }
  .apertura .tocca, .apertura .privacy, .apertura .cambia { animation: entra .6s ease-out .35s both; }
  .apertura .privacy { animation-delay: .5s; } .apertura .cambia { animation-delay: .65s; }
  #dove > * { animation: entra .4s ease-out both; }
  #dove > :nth-child(2) { animation-delay: .06s; } #dove > :nth-child(3) { animation-delay: .12s; } #dove > :nth-child(n+4) { animation-delay: .18s; }
  .dove-ris .pickrow { animation: scivola .3s ease-out both; }
  .dove-ris .pickrow:nth-child(2) { animation-delay: .05s; } .dove-ris .pickrow:nth-child(3) { animation-delay: .1s; } .dove-ris .pickrow:nth-child(n+4) { animation-delay: .15s; }
  .pick { animation: entra .5s cubic-bezier(.2,.9,.3,1.1) both; }
  .pick .time { animation: pop .5s cubic-bezier(.3,1.4,.5,1) .15s both; }
  .pick .band, .pick .bandhead .logo-tile { animation: scivola .4s ease-out .3s both; }
  .pick .row-actions { animation: entra .4s ease-out .45s both; }
  .gig { animation: entra .4s ease-out both; }
  .gig:nth-child(2) { animation-delay: .05s; } .gig:nth-child(3) { animation-delay: .1s; } .gig:nth-child(n+4) { animation-delay: .15s; }
  .tab-play { transition: transform .15s; } .tab-play:hover { transform: scale(1.06); }
  .nextbtn, .chips button, .pickrow, .ghost, .seg button { transition: transform .12s, border-color .15s, background .15s; }
  .nextbtn:active, .chips button:active, .pickrow:active, .ghost:active { transform: scale(.97); }
  .chips button:hover, .pickrow:hover { transform: translateY(-2px); }
}

/* ----- Passaporto a livelli ----- */
.livello { background: var(--paper); color: var(--paper-ink); border-radius: 22px; padding: 18px; box-shadow: 0 6px 0 var(--accent2); }
.lv-top { display: flex; align-items: center; gap: 14px; }
.lv-badge { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--accent2); color: #0c2b31; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; line-height: .9; }
.lv-badge span { font-size: 12px; letter-spacing: .06em; } .lv-badge b { font-size: 30px; }
.lv-titolo { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; text-transform: uppercase; }
.lv-sub { font-size: 13px; color: var(--paper-muted); margin-top: 4px; }
.lv-bar { margin-top: 14px; height: 12px; border-radius: 99px; background: #14434b; overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent2); transition: width .8s cubic-bezier(.2,.9,.3,1); }
.lv-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--paper-muted); margin-top: 6px; }
.serie { margin-top: 12px; background: #fff4d6; border: 1.5px dashed #c99a2e; border-radius: 16px; padding: 10px 14px; font-size: 14px; display: flex; flex-direction: column; }
.serie span { color: var(--muted); font-size: 12px; }
.tabs { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0; }
.areachip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; background: #f2e3bd; color: #5a3d00; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.lv-bar i.w0 { width: 0%; }
.lv-bar i.w5 { width: 5%; }
.lv-bar i.w10 { width: 10%; }
.lv-bar i.w15 { width: 15%; }
.lv-bar i.w20 { width: 20%; }
.lv-bar i.w25 { width: 25%; }
.lv-bar i.w30 { width: 30%; }
.lv-bar i.w35 { width: 35%; }
.lv-bar i.w40 { width: 40%; }
.lv-bar i.w45 { width: 45%; }
.lv-bar i.w50 { width: 50%; }
.lv-bar i.w55 { width: 55%; }
.lv-bar i.w60 { width: 60%; }
.lv-bar i.w65 { width: 65%; }
.lv-bar i.w70 { width: 70%; }
.lv-bar i.w75 { width: 75%; }
.lv-bar i.w80 { width: 80%; }
.lv-bar i.w85 { width: 85%; }
.lv-bar i.w90 { width: 90%; }
.lv-bar i.w95 { width: 95%; }
.lv-bar i.w100 { width: 100%; }


.bandlink, .acct { white-space: nowrap; }

/* ----- Locandina e promemoria del QR ----- */
.poster-brand { align-self: stretch; background: #0c2b31; color: #f6f3ec; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 22px; padding: 8px 12px; border-radius: 10px; margin-bottom: 6px; }
.reminder { background: #fff4d6; border: 1.5px dashed #c99a2e; border-radius: 18px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
@media print { .poster-brand { background: #0c2b31 !important; color: #f6f3ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 40px; padding: 18px; } }

input:focus, textarea:focus, select.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(242, 177, 52, .45); outline: none; }
input::placeholder, textarea::placeholder { color: #7b8386; }
input[type="checkbox"] { accent-color: var(--accent); }
.panel { border-color: var(--line); }

/* ----- Desktop: Passaporto e area band con menu a sinistra e contenuto a destra ----- */
@media (min-width: 960px) {
  body[data-nav="passaporto"] .wrap, body[data-area="band"] .wrap { max-width: 1120px; }
  body[data-nav="passaporto"] #dash.stack, body[data-area="band"] #dash.stack { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 56px; align-items: start; }
  #dash.stack > :first-child { grid-column: 1; grid-row: 1; position: sticky; top: 24px; }
  #dash.stack > [data-pane] { grid-column: 2; grid-row: 1; }
  #dash.stack > :first-child h1.small { font-size: 44px; }
  #dash.stack .tabs { position: static; flex-direction: column; flex-wrap: nowrap; display: flex; align-items: stretch; overflow: visible; gap: 6px; margin-top: 18px; padding: 0; }
  #dash.stack .tabs button { text-align: left; }
  #dash.stack .stats { max-width: none; }
}
@media (min-width: 960px) { .userline { margin: 4px 0 -8px; } }
.panel + .row-actions, div + .row-actions.mt { margin-top: 18px; }

.zona { margin: 0; font-size: 14px; color: var(--text); background: #e3ecee; border-radius: 14px; padding: 10px 14px; max-width: 420px; text-align: left; }
#dove .zona { margin-top: 12px; }
#fuori { margin-bottom: 12px; background: #fbeccb; }

/* ===== Social: "Ci andrò", amici, privacy ===== */
.vado.on { background: var(--accent2); border-color: var(--accent2); color: #14262b; }
.pick .ghost.vado.on { background: var(--accent2); color: #14262b; border-color: var(--accent2); }
.linkbtn.vado.on { font-weight: 800; text-decoration-color: var(--accent2); }
.amici-va { font-size: 14px; margin-top: 6px; }
.amici-va b { font-weight: 800; }
.amici-box { display: grid; gap: 12px; }
.amico { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.amico .nm b { display: block; }
.amico .nm span { color: var(--muted); font-size: 13px; }
.amico .azioni { display: flex; gap: 6px; flex-wrap: wrap; }
.amico .ghost { min-height: 36px; padding: 5px 11px; font-size: 13px; }
.addamico { display: flex; gap: 8px; flex-wrap: wrap; }
.addamico input { flex: 1 1 180px; }
.vanno { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.vanno b { display: block; }
.vanno span { color: var(--muted); font-size: 14px; }
.pericolo { border-color: var(--bad); }
.pericolo h2 { color: var(--bad); }
.ghost.bad { color: var(--bad); border-color: var(--bad); }
.sitefoot { max-width: 760px; margin: 28px auto 90px; padding: 0 16px; text-align: center; font-size: 13px; color: var(--muted); }
.sitefoot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin: 0 8px; }
.legal h2 { margin-top: 22px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Materiale per le band ===== */
.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.brandcard { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 700; text-align: center; min-height: 120px; }
.brandcard.scuro { background: #0c2b31; color: #f6f3ec; border-color: #0c2b31; }
.brandcard.wide { grid-column: span 2; }
.brandcard img { max-width: 100%; height: 60px; width: auto; }
.brandcard:hover { border-color: var(--accent2); }

.posbox { font-size: 14px; font-weight: 700; color: var(--accent); background: rgba(242, 177, 52, .25); border-radius: 12px; padding: 8px 12px; margin: 8px 0 12px; }
.posbox:empty { display: none; }

/* Prima pagina: ferma, senza scorrimento */
body[data-stato="apertura"] { overflow: hidden; height: 100vh; height: 100dvh; overscroll-behavior: none; }
body[data-stato="apertura"] .wrap { padding-bottom: 0; }
.privacy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.minilink { font-size: 13px; color: var(--muted); }
.minilink a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.passi { margin: 6px 0 8px 18px; padding: 0; font-size: 15px; line-height: 1.5; }
.passi li { margin: 4px 0; }

/* Foglio con la locandina da condividere (sopra la pagina) */
.sheet { position: fixed; inset: 0; z-index: 70; background: rgba(12, 43, 49, .6); overflow-y: auto; padding: 16px 14px calc(24px + env(safe-area-inset-bottom)); }
.sheet[hidden] { display: none; }
.sheet .panel { max-width: 560px; margin: 0 auto; }
body.sheet-aperto { overflow: hidden; }
.so-anteprima { margin: 14px 0; display: flex; justify-content: center; }
.so-anteprima img { width: 100%; max-width: 360px; height: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--line); transition: opacity .15s; }

/* Avanzamento dei traguardi */
.lv-bar.tbar { height: 8px; margin-top: 8px; background: var(--line); }
.lv-bar.tbar i { background: var(--accent); }
.trophy .tcount { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }

/* Filtri extra e link alla band */
.filtri2 { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; width: 100%; margin-top: 8px; }
.filtri2 .seg1 { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.filtri2 .seg1[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filtri2 select { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: 14px; max-width: 100%; }
a.bandlink { color: inherit; text-decoration: none; }
a.bandlink:hover, a.bandlink:focus-visible { text-decoration: underline; }

/* Passaporto: schede in una riga che scorre, elementi come carte */
@media (max-width: 959px) {
  #dash.stack .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  #dash.stack .tabs::-webkit-scrollbar { display: none; }
  #dash.stack .tabs button { flex: 0 0 auto; white-space: nowrap; }
}
#traguardi .trophy { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; margin-bottom: 10px; }
.medal { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 12px 6px 10px; }
.legal ol.passi-l { padding-left: 22px; }
.legal ol.passi-l li { margin-bottom: 8px; }
.lead-p { font-size: 18px; }

.apertura-links { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.apertura-links a { color: inherit; font-weight: 700; }

/* Moduli del Passaporto: gruppi con titolo, Salva sempre a portata di pollice, sezioni ordinate. */
.fgroup { grid-column: 1 / -1; margin: 8px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fgroup:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.sezione-h { margin: 18px 4px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
body[data-nav="passaporto"] form .submit.fisso { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 0 0 10px var(--bg); }
@media (min-width: 960px) { body[data-nav="passaporto"] form .submit.fisso { position: static; box-shadow: none; } }

/* Selettore del raggio (slider a tacche) */
.raggio { flex: 1 1 100%; max-width: 420px; }
.raggio label { display: block; font: 700 14px var(--font-body); margin-bottom: 4px; }
.raggio input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
.raggio input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--line); }
.raggio input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--line); }
.raggio input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 3px solid var(--accent2); }
.raggio input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--accent2); }
.raggio input[type="range"]:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; border-radius: 8px; }
.raggio-tacche { display: flex; justify-content: space-between; font: 600 11px var(--font-body); color: var(--muted, #5b6b6f); padding: 0 6px; margin-top: -6px; }

/* ----- Passaporto: schede sempre visibili e fisse, elenco bollini ----- */
.tabs-eq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tabs-eq button { padding: 7px 2px; min-height: 52px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; font-size: 14px; white-space: nowrap; }
.tabs-eq button small { font: 600 11px var(--font-body); opacity: .75; }
#tab-amici[hidden] { display: none; }
.sezione-t { margin: 0 0 10px; font: 800 24px var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
.cerca-b { margin: 12px 0; }
.cerca-b input { width: 100%; }
.mese { margin: 18px 2px 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.brow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 8px; }
.brow .bd { flex: none; width: 46px; text-align: center; font-family: var(--font-display); line-height: 1; }
.brow .bd b { display: block; font-size: 28px; font-weight: 800; color: var(--accent); }
.brow .bd span { font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.brow .bt { min-width: 0; }
.brow .bt b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.brow .bt span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.brow .starsrow { margin-top: 6px; }
.piu { width: 100%; margin-top: 8px; }
.stack > [data-pane].stack { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 959px) {
  body[data-nav="passaporto"] #dash.stack > :first-child { display: contents; }
  body[data-nav="passaporto"] #dash.stack .tabs.tabs-eq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0; margin: -14px 0 0; border-bottom: 1px solid var(--line); overflow: visible; }
  body[data-nav="passaporto"] #dash.stack .tabs button { flex: initial; }
}
@media (min-width: 960px) {
  body[data-nav="passaporto"] #dash.stack > :first-child { position: sticky; top: 24px; }
}
@media (max-width: 959px) { body[data-nav="passaporto"] #dash.stack .tabs.tabs-eq.tre { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .tabs-eq button { flex-direction: row; justify-content: space-between; padding: 10px 16px; min-height: 48px; font-size: 16px; } }
.chi-suona { margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.chi-suona a { display: inline-block; margin-left: 6px; font-size: 13px; color: var(--muted); }

/* ----- Il tuo profilo: avatar con cornice e titolo ----- */
.id-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.id-row.pub { border: 0; padding: 0; margin-bottom: 0; }
.id-row b { display: block; font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.id-row h1.small { margin: 0; }
.livello { --ring-gap: var(--paper); }
.avatar { --ring: transparent; --ring-gap: var(--bg); flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--accent2); color: #0c2b31; display: flex; align-items: center; justify-content: center; font: 800 28px var(--font-display); position: relative; margin: 6px; }
.livello .avatar { --ring-gap: var(--paper); }
.avatar[class*="cornice-"] { box-shadow: 0 0 0 3px var(--ring-gap), 0 0 0 7px var(--ring); }
.avatar.cornice-oro { --ring: #f2b134; } .avatar.cornice-argento { --ring: #c9d3d6; } .avatar.cornice-bronzo { --ring: #c98a5a; } .avatar.cornice-doppietta { --ring: #7ad7c1; }
.avatar.cornice-sostenitore { --ring: #ff7a59; box-shadow: 0 0 0 3px var(--ring-gap), 0 0 0 7px #ff7a59, 0 0 18px 8px rgba(255,122,89,.45); }
.avatar.cornice-sostenitore::after { content: "♥"; position: absolute; right: -12px; bottom: -12px; width: 24px; height: 24px; border-radius: 50%; background: #ff7a59; color: #fff; font: 700 13px var(--font-body); display: flex; align-items: center; justify-content: center; }
.id-tag { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; border: 2px solid var(--accent2); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.id-tag.cornice-sostenitore { border-color: #ff7a59 !important; box-shadow: none; }
.id-link { display: block; font-size: 13px; color: inherit; opacity: .8; }
.cornice-sostenitore { border-color: #ff7a59 !important; box-shadow: 0 0 0 3px rgba(255,122,89,.3), 0 0 14px rgba(255,122,89,.45); }

/* ----- Avatar con immagine, cornici gratuite e griglie di scelta ----- */
.avatar { overflow: visible; }
.avatar img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar.cornice-azzurra { --ring: #4aa8d8; } .avatar.cornice-viola { --ring: #9b7be0; } .avatar.cornice-verde { --ring: #5cc98a; }
.avatar.mini { width: 44px; height: 44px; font-size: 20px; margin: 5px; }
.avatar.mini[class*="cornice-"] { box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 5px var(--ring); }
.avatar.mini.cornice-sostenitore { box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 5px #ff7a59, 0 0 10px 4px rgba(255,122,89,.4); }
.avatar.mini.cornice-sostenitore::after { width: 16px; height: 16px; right: -8px; bottom: -8px; font-size: 9px; }
.amico .avatar { --ring-gap: var(--surface); }
.amico { justify-content: flex-start; }
.amico .nm { flex: 1; min-width: 0; }
.amico .azioni { margin-left: auto; }
.lbl { font-size: 14px; font-weight: 700; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px 8px; }
.pick-item { --ring-gap: var(--surface); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 8px; background: transparent; border: 2px solid var(--line); border-radius: 16px; font: 600 12px var(--font-body); color: var(--text); cursor: pointer; min-height: 44px; }
.pick-item .avatar { --ring-gap: var(--surface); margin: 6px; }
.pick-item span:last-child { text-align: center; line-height: 1.2; }
.pick-item[aria-pressed="true"] { border-color: var(--accent); background: #e9f0ee; }
.pick-item:focus-visible { outline: 3px solid var(--accent2); outline-offset: 2px; }
.pick-item.bloccato { opacity: .55; }
.pick-item.bloccato .avatar img { filter: grayscale(1); }

/* ----- Profilo in alto a destra e amici con avatar ----- */
.acct.acct-av { width: 46px; min-height: 46px; padding: 0; border: 0; background: transparent; }
.acct.acct-av .avatar { --ring-gap: var(--bg); width: 34px; height: 34px; margin: 0; font-size: 16px; }
.acct.acct-av .avatar[class*="cornice-"] { box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 4px var(--ring); }
.acct.acct-av .avatar.cornice-sostenitore { box-shadow: 0 0 0 2px var(--ring-gap), 0 0 0 4px #ff7a59, 0 0 8px 3px rgba(255,122,89,.4); }
.acct.acct-av .avatar.cornice-sostenitore::after { width: 14px; height: 14px; right: -7px; bottom: -7px; font-size: 8px; }
.acct-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.amici-va { display: flex; align-items: center; gap: 8px; }
.av-pila { display: inline-flex; padding-left: 4px; }
.av-pila .avatar.mini { --ring-gap: var(--surface); width: 28px; height: 28px; font-size: 13px; margin: 3px 0 3px -6px; }
.av-pila .avatar.mini[class*="cornice-"] { box-shadow: 0 0 0 1.5px var(--ring-gap), 0 0 0 3px var(--ring); }
.av-pila .avatar.mini.cornice-sostenitore::after { display: none; }
.vanno { display: flex; align-items: center; gap: 10px; }
.vanno .avatar { --ring-gap: var(--surface); color: #0c2b31; font-size: 20px; flex: none; }

/* Cornice riservata allo staff e cornici personalizzate delle band (immagine sopra l'avatar) */
.avatar.cornice-admin { --ring: #9b7be0; box-shadow: 0 0 0 3px var(--ring-gap), 0 0 0 7px #9b7be0, 0 0 0 9px #f2b134; }
.avatar.cornice-admin::after { content: "★"; position: absolute; right: -12px; bottom: -12px; width: 24px; height: 24px; border-radius: 50%; background: #f2b134; color: #0c2b31; font: 700 13px var(--font-body); display: flex; align-items: center; justify-content: center; }
.id-tag.cornice-admin { border-color: #9b7be0 !important; box-shadow: none; }
.avatar.cornice-custom { box-shadow: none; }
.avatar .cornice-img { position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; max-width: none; border-radius: 0; pointer-events: none; }
.icone-band { display: grid; gap: .5rem; margin-top: .75rem; }
.icona-riga { display: flex; align-items: center; gap: .75rem; }
.icona-riga .nm { flex: 1; min-width: 0; }
.icona-riga .nm span { display: block; font-size: .85rem; opacity: .75; }

/* Onde che partono dal centro del Play e si allargano verso i bordi, dietro a tutto il resto della prima pagina */
.apertura { isolation: isolate; overflow: hidden; overflow: clip; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: calc(50vw - 50%); padding-right: calc(50vw - 50%); }
html, body { overflow-x: clip; }
.topbar { z-index: 2; }
.play-wrap { position: relative; display: grid; place-items: center; }
.radar { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.radar i { position: absolute; left: -600px; top: -600px; width: 1200px; height: 1200px; border-radius: 50%; border: 3px solid rgba(242, 177, 52, .6); opacity: 0; transform: scale(.12); will-change: transform, opacity; }
/* senza movimento: due cerchi fissi e leggerissimi */
.radar i:nth-child(1) { transform: scale(.2); opacity: .16; }
.radar i:nth-child(2) { transform: scale(.36); opacity: .1; }
.radar i:nth-child(3) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .radar i { animation: onda-radar 6s ease-out infinite; }
  .radar i:nth-child(2) { animation-delay: 2s; }
  .radar i:nth-child(3) { display: block; animation-delay: 4s; }
}
@keyframes onda-radar { 0% { transform: scale(.12); opacity: .4; } 100% { transform: scale(1); opacity: 0; } }

/* Dopo il tocco sul Play: il pulsante "cerca" finché non arriva la posizione */
.apertura .play.cerca { box-shadow: 0 2px 0 var(--accent2), 0 6px 14px rgba(12, 43, 49, .25); transform: translateY(4px) scale(.97); }
.apertura .play.cerca svg { opacity: .55; }
.apertura .play.cerca::before { inset: -12px; border: 5px solid transparent; border-top-color: var(--accent2); border-right-color: var(--accent2); opacity: 1; }
.apertura .play.cerca::after { inset: -26px; border: 3px solid transparent; border-bottom-color: var(--accent); opacity: .5; }
.apertura.cerca .tocca { color: var(--text); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .apertura .play.cerca { animation: none; }
  .apertura .play.cerca::before { animation: gira .9s linear infinite; }
  .apertura .play.cerca::after { animation: gira 1.6s linear infinite reverse; }
  .apertura .play.cerca svg { animation: batti .8s ease-in-out infinite; }
  .apertura.cerca .radar i { animation-duration: 2.8s; }
  .apertura.cerca .radar i:nth-child(2) { animation-delay: .9s; }
  .apertura.cerca .radar i:nth-child(3) { animation-delay: 1.8s; }
}
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes batti { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* Prima pagina fluida: misure legate a larghezza E altezza dello schermo, così non si taglia su nessun telefono */
.apertura { gap: clamp(8px, 2.2vh, 26px); }
.apertura h1 { font-size: clamp(34px, min(13vw, 7.4vh), 88px); }
.apertura .play { width: clamp(108px, 21vh, 220px); height: clamp(108px, 21vh, 220px); }
.apertura .play svg { width: 40%; height: 40%; margin-left: 4.5%; }
.apertura .tocca { font-size: clamp(14px, 2.1vh, 17px); }
.apertura .privacy { padding: clamp(8px, 1.5vh, 14px) 16px; font-size: clamp(12.5px, 1.85vh, 14px); }
.apertura .zona { margin: 0; font-size: clamp(12.5px, 1.85vh, 14px); padding: clamp(8px, 1.4vh, 14px) 16px; }
@media (max-height: 800px) { .apertura .apertura-links { display: none; } }
@media (max-height: 700px) { .apertura .zona { display: none; } }
@media (max-height: 520px) { .apertura .tocca { display: none; } .apertura .play { width: 92px; height: 92px; } .apertura h1 { font-size: 32px; } .apertura .privacy { font-size: 12px; padding: 6px 12px; } }
