/* Pagina di presentazione per DJ (/dj). Usa i token e i componenti di style.css. */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.l-top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 20px 12px;
  background: rgba(11, 11, 15, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.l-top .brand { text-decoration: none; }
.l-top-cta {
  background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 8px 14px; border-radius: 10px;
}

.l-main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 40px; }

/* HERO */
.l-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 24px 0 48px; }
.l-hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: -0.035em; margin: 10px 0 0; }
.l-hero h1 span { color: var(--accent); }
.l-lead { color: var(--muted); font-size: 18px; line-height: 1.55; margin: 20px 0 0; max-width: 52ch; }
.l-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; align-items: stretch; }
.l-btn { width: auto; margin: 0; padding: 16px 26px; text-decoration: none; }
.l-btn.wide { width: 100%; margin-top: 20px; }
.l-btn-2 { width: auto; display: inline-flex; align-items: center; padding: 14px 22px; text-decoration: none; }

/* Telefono disegnato in HTML */
.phone {
  justify-self: center; width: 280px; aspect-ratio: 9 / 18.5; border-radius: 40px; padding: 12px;
  background: #1b1b24; border: 1px solid #2f2f3c; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(198, 255, 61, 0.25);
}
.phone-screen { height: 100%; border-radius: 30px; background: var(--bg); padding: 22px 14px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.p-bar { display: flex; gap: 3px; align-items: center; }
.p-bar i { flex: 1; height: 4px; border-radius: 99px; background: var(--panel-2); }
.p-bar i.on { background: #3b3b4a; }
.p-bar i.crate { background: var(--hot); }
.p-bar i.now { background: var(--text); }
.p-bar span { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-left: 6px; }
.p-art {
  position: relative; aspect-ratio: 1; border-radius: 16px; margin-top: 6px;
  background: radial-gradient(circle at 50% 40%, #1d2410, #0d0d12 70%); display: grid; place-items: center;
}
.p-tag { position: absolute; left: 8px; top: 8px; font-family: var(--mono); font-size: 9px; color: var(--accent); background: rgba(11,11,15,.75); padding: 3px 6px; border-radius: 6px; }
.p-vinyl { width: 62%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #1a1a22 0 2px, #101015 2px 4px); position: relative; animation: spin 4s linear infinite; }
.p-vinyl::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: var(--accent); }
.p-title { margin: 6px 0 0; font-weight: 700; font-size: 16px; }
.p-artist { margin: 0; font-size: 12px; color: var(--muted); }
.p-time { height: 5px; border-radius: 99px; background: var(--panel-2); overflow: hidden; margin-top: 4px; }
.p-time i { display: block; height: 100%; width: 38%; background: var(--text); }
.p-listened { margin: 2px 0 0; font-size: 10px; color: var(--muted); text-align: center; }
.p-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 2px; }
.p-c, .p-play { display: grid; place-items: center; border-radius: 50%; }
.p-c { width: 38px; height: 38px; border: 1.5px solid var(--line-2); color: var(--text-2); }
.p-c.warm { color: var(--warm); }
.p-c.hot { width: 44px; height: 44px; color: #fff; background: var(--hot); border-color: var(--hot); }
.p-play { width: 50px; height: 50px; background: var(--text); color: var(--bg); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.p-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.p-play svg { fill: currentColor; stroke: none; }

/* SEZIONI */
.l-section { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.l-section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 20px; line-height: 1.1; }
.l-sub { color: var(--muted); margin: -8px 0 18px; line-height: 1.5; }
.l-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.l-cards.two { grid-template-columns: repeat(2, 1fr); }
.l-cards article { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.l-cards h3 { font-size: 17px; margin: 6px 0 8px; }
.l-cards p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.l-ic { font-size: 26px; }
.l-ladder { margin-top: 12px !important; font-family: var(--mono); font-size: 12px !important; line-height: 1.7 !important; }
.l-ladder b { color: var(--accent); }

.l-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 10px; }
.l-steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 60px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); line-height: 1.5;
}
.l-steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-weight: 700; display: grid; place-items: center;
}
.l-steps b, .l-rules b { color: var(--text); }

.l-rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.l-rules li { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; color: var(--muted); line-height: 1.5; }

.l-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.l-list b { color: var(--text); }

.l-live { margin-top: 18px; }
.l-live-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin: 0 0 10px; }
.l-toplist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.l-toplist li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.l-toplist img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--panel-2); flex: none; }
.l-toplist div { min-width: 0; flex: 1; }
.l-toplist b, .l-toplist span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-toplist span { color: var(--muted); font-size: 13px; }
.l-toplist em { font-style: normal; color: var(--hot); font-weight: 600; font-size: 13px; flex: none; }

.l-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.l-stats:empty { display: none; }
.l-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.l-stats b { display: block; font-family: var(--mono); font-size: 26px; color: var(--accent); }
.l-stats span { font-size: 12px; color: var(--muted); }
.l-stats .l-note { grid-column: 1 / -1; margin: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.l-form { display: grid; gap: 12px; }
.l-form textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: 15px; padding: 12px; resize: vertical;
}
.l-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.l-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.l-form-row small { color: var(--muted); }
.l-form-msg { margin: 0; font-size: 14px; min-height: 1em; }
.l-form-msg.ok { color: var(--accent); }
.l-form-msg.err { color: var(--hot); }

.l-end { text-align: center; }
.l-end h2 { margin-bottom: 16px; }

.l-foot { max-width: 1040px; margin: 0 auto; padding: 24px 16px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.6; }
.l-foot a { color: var(--text); }

@media (max-width: 820px) {
  .l-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 8px; }
  .phone { width: 240px; }
  .l-cards, .l-cards.two { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .l-top { padding-left: 16px; padding-right: 16px; }
  .l-lead { font-size: 16px; }
  .l-ctas .l-btn, .l-ctas .l-btn-2 { width: 100%; justify-content: center; }
  .l-stats { grid-template-columns: 1fr 1fr; }
}

/* Badge "Powered by Netlify" (iniettato da Netlify sul piano gratuito): copre la barra in basso.
   Netlify permette di toglierlo (Project configuration → General → Powered by Netlify badge). */
#nl-badge-frame { display: none !important; }
