:root {
  --accent: #22C3E6; --accent-ink: #04222D;
  --bg: #0A1622; --bg-2: #0D1D2C; --panel: #0F2436; --panel-2: #0A1B2A;
  --line: #1B3550; --line-2: #2A4A68;
  --text: #E6F4FA; --text-2: #D6E9F2; --muted: #8FB3C7; --muted-2: #A9C7D6;
  --ded: #D9B3F0; --live: #E0405E; --live-soft: #FF8FA3;
  --display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.nascosto { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
.vuoto { color: var(--muted); margin: 0; }

.btn {
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #12304a; }
.btn.primario { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn.primario:hover { filter: brightness(1.07); }
.btn.grande { height: 58px; padding: 0 28px; border-radius: 14px; font-size: 17px; }
.btn.piccolo { height: 38px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn.scuro { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--text); }
.btn-ic { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.link { background: none; border: none; padding: 0; color: var(--muted); }
.link:hover, .piede a:hover { color: var(--text); }

/* Testata */
.testa {
  position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 clamp(16px, 5vw, 80px); display: flex; align-items: center;
  justify-content: space-between; gap: 20px; background: rgba(10,22,34,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marchio img { border-radius: 11px; }
.marchio-nome, .marchio span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.marchio b { color: var(--accent); font-weight: 700; }
.marchio.piccolo span { font-size: 17px; }
.menu { display: flex; gap: 32px; font-weight: 500; }
.menu a { text-decoration: none; color: var(--muted); }
.menu a:hover { color: var(--text); }
.testa-azioni { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }

/* Apertura */
.eroe { padding: 64px clamp(16px, 5vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 56px; align-items: center; }
.pill-live { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; padding: 6px 12px; border-radius: 99px; background: #3A1420; color: var(--live-soft); }
.pill-live.nonstop { background: #0E3A48; color: var(--accent); }
.eroe h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.05; margin: 24px 0 20px; }
.sotto { font-size: 19px; line-height: 1.55; color: var(--muted-2); max-width: 560px; margin: 0; }
.cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.numeri { display: flex; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.numeri div { display: flex; flex-direction: column; gap: 2px; }
.numeri b { font-family: var(--display); font-size: 28px; }
.numeri span { font-size: 14px; color: var(--muted); }

.carta-live { border-radius: 24px; background: var(--panel); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.live-player { padding: 16px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; height: 100px; }
.play-tondo { width: 62px; height: 62px; flex-shrink: 0; border-radius: 50%; border: none; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.play-tondo.piccolo { width: 44px; height: 44px; }
.live-cover { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--line); }
.live-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.live-etichetta { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-etichetta.diretta { color: var(--live-soft); }
.live-titolo { font-family: var(--display); font-size: 19px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-sotto { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 34px; flex-shrink: 0; }
.eq span { width: 5px; height: 30%; border-radius: 3px; background: var(--accent); }
.suona .eq span { animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.4s !important; } .eq span:nth-child(3) { animation-delay: -.7s !important; }
.eq span:nth-child(4) { animation-delay: -.2s !important; } .eq span:nth-child(5) { animation-delay: -.55s !important; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.live-dj { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: #0E2E40; border: 1px solid var(--accent); }
.live-dj img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--line); }
.live-dj div { display: flex; flex-direction: column; gap: 1px; }
.etichetta { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.live-dj b { font-family: var(--display); font-size: 17px; }
.live-dj span:last-child { font-size: 14px; color: var(--muted); }
.anteprima { display: flex; flex-direction: column; gap: 12px; padding: 4px 6px; min-height: 60px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.avatar { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; object-fit: cover; color: #fff; }
.msg div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.msg b { font-size: 14px; }
.msg span { font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
.scrivi-finto { height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-2); display: flex; align-items: center; padding: 0 8px 0 18px; color: #6E93A8; text-decoration: none; }
.scrivi-finto span { margin-left: auto; height: 38px; padding: 0 16px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; display: flex; align-items: center; }

/* Tre carte */
.tre { padding: 16px clamp(16px, 5vw, 80px) 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.carta { padding: 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.carta h3 { font-size: 22px; font-weight: 600; }
.carta p { margin: 0; line-height: 1.55; color: var(--muted-2); }
.icona-tonda { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.azzurra { background: #0E3A48; color: var(--accent); } .lilla { background: #2A1E3A; color: var(--ded); } .rossa { background: #3A1420; color: var(--live-soft); }

/* Palinsesto */
.fascia { padding: 72px clamp(16px, 5vw, 80px); background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; }
.sopratitolo { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fascia h2, .blocco h2, .diventa h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 12px 0 14px; }
.fascia-intro p, .diventa p { margin: 0; line-height: 1.55; color: var(--muted-2); font-size: 17px; }
.prossima { margin-top: 22px; }
.prossima .carta-mini { padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.carta-mini img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.carta-mini div { display: flex; flex-direction: column; gap: 2px; }
.carta-mini span { font-size: 13px; color: var(--muted); }
.giorni { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.giorno { height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 600; }
.giorno[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.giorno.oggi:not([aria-selected="true"]) { color: var(--text); border-color: var(--line-2); }
.lista-pal { display: flex; flex-direction: column; gap: 10px; }
.slot { min-height: 76px; padding: 12px 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.slot.ora { border-color: var(--accent); background: #0E2E40; }
.slot img, .slot .iniz { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.slot .orario { font-family: var(--display); font-weight: 600; width: 120px; color: var(--muted); flex-shrink: 0; }
.slot.ora .orario { color: var(--accent); }
.slot .nome { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.slot .nome b { font-size: 17px; }
.slot .nome span { color: var(--muted); font-size: 14px; }
.tag-ora { font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 99px; background: #3A1420; color: var(--live-soft); white-space: nowrap; }

/* DJ */
.blocco { padding: 80px clamp(16px, 5vw, 80px); }
.blocco-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.blocco-testa h2 { margin-bottom: 0; }
.griglia-dj { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.carta-dj { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; color: var(--text); }
.carta-dj:hover { border-color: var(--line-2); }
.carta-dj .foto { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: #173652; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 54px; font-weight: 700; color: #4E7590; }
.carta-dj .corpo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.carta-dj b { font-family: var(--display); font-size: 18px; }
.carta-dj span { font-size: 14px; color: var(--muted); }
.carta-dj .in-onda { color: var(--live-soft); font-weight: 700; font-size: 12px; letter-spacing: .06em; }

/* Diventa DJ */
.diventa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: start; border-top: 1px solid var(--line); }
.modulo { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.modulo label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.modulo input, .modulo textarea { border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); padding: 12px; color: var(--text); font-size: 16px; resize: vertical; }
.modulo input:focus, .modulo textarea:focus { outline: none; border-color: var(--accent); }
.esito { min-height: 20px; font-size: 14px; }
.esito.ok { color: #3DDC97; } .esito.ko { color: var(--live-soft); }

/* Invito e piede */
.invito { margin: 0 clamp(16px, 5vw, 80px) 80px; padding: 48px clamp(24px, 4vw, 64px); border-radius: 28px; background: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.invito h2 { color: var(--accent-ink); font-size: clamp(28px, 3.2vw, 40px); }
.invito p { margin: 10px 0 0; color: #0B3F4C; font-size: 18px; }
.piede { padding: 32px clamp(16px, 5vw, 80px) 110px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.piede nav { margin-left: auto; display: flex; gap: 24px; }
.piede nav a { color: var(--muted); text-decoration: none; cursor: pointer; }

/* Barra di ascolto */
.barra-ascolto { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(720px, calc(100% - 24px)); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 18px; background: rgba(15,36,54,.96); border: 1px solid var(--line-2); box-shadow: 0 16px 50px rgba(0,0,0,.45); }
.barra-info { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-ascolto input { width: 110px; accent-color: var(--accent); }

/* Finestre */
.velo { position: fixed; inset: 0; z-index: 60; background: rgba(4,12,20,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.finestra { width: 100%; max-width: 560px; max-height: calc(100% - 32px); overflow-y: auto; background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.finestra-testa { display: flex; align-items: center; gap: 16px; }
.finestra-testa img, .finestra-testa .iniz { width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: #173652; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 34px; font-weight: 700; color: #4E7590; }
.finestra p { margin: 0; line-height: 1.6; color: var(--text-2); white-space: pre-line; }
.podcast { display: flex; flex-direction: column; gap: 10px; }
.podcast-voce { padding: 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.podcast-voce audio { width: 100%; }

@media (max-width: 1080px) {
  .eroe, .fascia, .diventa { grid-template-columns: minmax(0, 1fr); }
  .tre { grid-template-columns: minmax(0, 1fr); }
  .menu { display: none; }
  .menu.aperto { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .menu.aperto a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .testa { height: 64px; }
  .menu.aperto { top: 64px; }
  .marchio-nome { display: none; }
  .testa-azioni .btn:not(.primario) span { display: none; }
  .testa-azioni .btn:not(.primario) { width: 46px; padding: 0; }
  .eroe { padding-top: 36px; gap: 36px; }
  .slot { padding: 12px; gap: 12px; }
  .slot .orario { width: auto; font-size: 13px; }
  .slot img, .slot .iniz { display: none; }
  .piede nav { margin-left: 0; }
  .barra-ascolto input { display: none; }
  .griglia-dj { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .carta-dj .foto { font-size: 40px; }
  .carta-live .eq { display: none; }
  .live-player { padding: 12px; gap: 10px; }
  .play-tondo { width: 52px; height: 52px; }
  .live-cover { width: 52px; height: 52px; }
}
