/* Pagine pubbliche: home (digs.studio), /en, /simili/…, /genere/…. 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(171, 244, 79, 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; }

/* ---------- Pagine pubbliche: navigazione, risposte brevi, artisti simili, generi, FAQ ---------- */
.l-top { gap: 12px; }
.l-top .brand img { display: block; }
.l-nav { display: flex; gap: 18px; margin-right: auto; margin-left: 18px; }
.l-nav a { color: var(--text-2); text-decoration: none; font-size: 14px; }
.l-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .l-nav { display: none; } }

.l-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0; }
.l-facts > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.l-facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); }
.l-facts dd { margin: 6px 0 0; color: var(--text-2); line-height: 1.5; font-size: 15px; }

.l-search { display: flex; gap: 8px; margin: 18px 0 12px; max-width: 560px; }
.l-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px; }
.l-search input:focus { outline: none; border-color: var(--accent); }
.l-search button { flex: none; height: 48px; padding: 0 18px; }
.l-seed-chips { margin-top: 6px; }
.chips a.chip { text-decoration: none; }

.l-genre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.l-genre-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.l-genre-grid h3 { margin: 0 0 8px; font-size: 16px; }
.l-genre-grid p { margin: 0; line-height: 1.9; color: var(--muted); }
.l-genre-grid a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.l-genre-grid a:hover { color: var(--accent); }

.l-vs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.l-vs > div { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 1px; }
.l-vs span { background: var(--panel); padding: 12px 14px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.l-vs [role="rowheader"] { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.l-vs [role="cell"]:last-child { color: var(--text); }
.l-vs-head span { background: var(--panel-2); font-weight: 700; color: var(--text); }
.l-vs-head span:last-child { color: var(--accent); }
@media (max-width: 560px) { .l-vs > div { grid-template-columns: 1fr 1fr; } .l-vs [role="rowheader"], .l-vs [role="columnheader"]:first-child { grid-column: 1 / -1; } }

.l-faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.l-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 16px; list-style: none; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: '+'; float: right; color: var(--accent); font-family: var(--mono); }
.l-faq details[open] summary::after { content: '–'; }
.l-faq details p { margin: 0 0 14px; color: var(--text-2); line-height: 1.6; max-width: 70ch; }

/* Pagine "Artisti simili" e "Genere" */
.l-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.l-crumbs a { color: var(--text-2); text-decoration: none; }
.l-hero-mini { padding: 10px 0 18px; }
.l-hero-mini h1 { font-size: clamp(32px, 5.5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 0; }
.l-genre-chips { margin-top: 14px; }
.l-similar, .l-releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.l-similar li, .l-releases li { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.l-rank { flex: none; width: 26px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; }
.l-who { flex: 1; min-width: 0; }
.l-who a, .l-who b { display: block; color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-who a:hover { color: var(--accent); }
.l-who small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-bc { flex: none; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; padding: 6px 10px; border-radius: 99px; background: var(--accent-soft); white-space: nowrap; }
.l-releases img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--panel-2); flex: none; }
.l-note.small { font-size: 12px; color: var(--muted); }
.l-note.small a { color: var(--text-2); }

/* ---------- Pagina "Artisti simili a X" ---------- */
.a-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: stretch; padding: 8px 0 22px; }
.a-id { display: flex; gap: 22px; align-items: center; min-width: 0; }
.a-disc { flex: none; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.6)); animation: a-spin 18s linear infinite; }
.a-disc .vavatar { display: block; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-head { min-width: 0; }
.a-head h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1; letter-spacing: -0.035em; margin: 6px 0 0; overflow-wrap: anywhere; }
.a-meta { margin: 10px 0 0; color: var(--text-2); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.a-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.a-genres { margin-top: 14px; }
.a-cta { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, var(--accent-soft), rgba(171, 244, 79, 0.03)); border: 1px solid rgba(171, 244, 79, 0.35); }
.a-cta-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.2; }
.a-cta p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.a-go { display: flex; align-items: center; justify-content: center; height: 50px; text-decoration: none; font-size: 16px; margin-top: 4px; }
.a-cta small { color: var(--muted); font-size: 12px; text-align: center; }
.a-answer { margin: 6px 0 8px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; }
.a-answer .eyebrow { margin: 0 0 4px; }
.a-answer p:last-child { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.a-near h3 { margin: 26px 0 10px; font-size: 16px; color: var(--text-2); }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.a-grid.big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.a-card { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.15s, transform 0.15s; }
.a-card:hover { border-color: var(--line-2); transform: translateY(-1px); }
.a-card.big { padding: 14px; background: var(--panel-2); }
.a-card .vavatar { flex: none; }
.a-rank { position: absolute; top: 6px; left: 8px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.a-card.big .a-rank { font-size: 11px; }
.a-txt { flex: 1; min-width: 0; }
.a-main { display: block; color: var(--text); font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-card.big .a-main { font-size: 16px; }
.a-main::after { content: ''; position: absolute; inset: 0; border-radius: inherit; } /* tutta la scheda porta alla pagina dell'artista */
.a-txt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-bc { position: relative; z-index: 1; flex: none; font-size: 11px; font-weight: 700; color: var(--accent); text-decoration: none; padding: 5px 8px; border-radius: 99px; background: var(--accent-soft); white-space: nowrap; }
.a-bc:hover { background: var(--accent); color: var(--accent-ink); }
.a-how { margin-top: 14px; font-size: 13px; }
@media (max-width: 760px) {
  .a-hero { grid-template-columns: 1fr; gap: 18px; }
  .a-id { flex-direction: column; align-items: flex-start; gap: 14px; }
  .a-disc .vavatar { width: 96px; height: 96px; }
  .a-grid, .a-grid.big { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .a-disc { animation: none; } }

/* ---------- Pagina "Genere": copertine a griglia ---------- */
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.g-card a { display: block; text-decoration: none; color: var(--text); }
.g-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--panel-2); transition: transform 0.15s; }
.g-card a:hover img { transform: scale(1.02); }
.g-card b { display: block; margin-top: 8px; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-card small { display: block; color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-card .g-where { color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
