:root {
  --bg: #0b0d10;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.1);
  --line: rgba(255,255,255,0.12);
  --text: #f4f4f1;
  --muted: #a8adb7;
  --accent: #ff5a36;
  --accent-2: #9f7bff;
  --green: #5bffb2;
  --gold: #ffcb54;
  --danger: #ff5167;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius: 24px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: radial-gradient(circle at top, #151922 0%, #0b0d10 45%); color: var(--text); font-family: Inter, Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
body { min-height: 100vh; }
.shell { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.topbar, .admin-top { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; gap: 20px; }
.brand { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; }
.brand-wrap { display: flex; flex-direction: column; gap: 4px; }
.tagline { color: var(--muted); font-size: .95rem; }
.main-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.main-nav a { color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: stretch; padding: 28px 0 18px; }
.hero-copy, .hero-panel, .featured-card, .story-card, .manifesto-box, .admin-card, .login-card { background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-copy { padding: 36px; }
.hero-panel { padding: 28px; }
.eyebrow, .panel-kicker { color: var(--gold); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .95; letter-spacing: -0.06em; margin: 0 0 16px; max-width: 12ch; }
.hero-text { color: var(--muted); font-size: 1.12rem; line-height: 1.7; max-width: 58ch; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hero-points li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); }
.featured { padding: 12px 0 10px; }
.featured-card { display: block; padding: 32px; }
.featured-card h2 { font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.05em; margin: 18px 0 12px; max-width: 16ch; }
.featured-card p { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 58ch; }
.featured-meta, .story-topline, .article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; border: 1px solid transparent; }
.badge-mainstream { background: rgba(255,90,54,.13); color: #ff916f; border-color: rgba(255,90,54,.3); }
.badge-underground { background: rgba(159,123,255,.15); color: #bca8ff; border-color: rgba(159,123,255,.32); }
.badge-jazz { background: rgba(91,255,178,.12); color: #87ffca; border-color: rgba(91,255,178,.3); }
.badge-cross, .badge-manual { background: rgba(255,203,84,.12); color: #ffd776; border-color: rgba(255,203,84,.26); }
.grid-section, .manifesto { padding: 28px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 2rem; letter-spacing: -0.04em; margin: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 55ch; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-card a { display: block; padding: 24px; height: 100%; }
.story-card h3 { font-size: 1.35rem; line-height: 1.08; letter-spacing: -0.04em; margin: 16px 0 10px; }
.story-card p, .manifesto-box p { color: var(--muted); line-height: 1.7; }
.story-footer { display: flex; justify-content: space-between; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); margin-top: 18px; font-size: .95rem; }
.manifesto-box { padding: 28px; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); padding: 32px 0 46px; border-top: 1px solid var(--line); margin-top: 24px; }
.article-shell { padding: 30px 0 60px; }
.article-layout { max-width: 860px; }
.article-layout h1 { font-size: clamp(2.1rem, 5vw, 4.8rem); line-height: .96; letter-spacing: -0.06em; margin: 18px 0 18px; }
.article-dek { font-size: 1.18rem; color: #d6d8df; line-height: 1.7; max-width: 50ch; }
.article-body { color: #d8dae2; line-height: 1.9; font-size: 1.05rem; padding-top: 10px; }
.external-link { margin-top: 26px; }
.external-link a { color: var(--gold); }
.admin-body { background: linear-gradient(180deg, #0b0d10, #131720); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 60px; }
.admin-card { padding: 24px; }
.admin-card.full, .alert.full, .stats { grid-column: 1 / -1; }
.admin-card h2, .admin-card h1 { margin: 0 0 12px; letter-spacing: -0.03em; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stats-grid div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.stats-grid strong { display: block; font-size: 2rem; margin-bottom: 8px; }
.stats-grid span { color: var(--muted); }
.stacked-form { display: grid; gap: 14px; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; font-size: .94rem; color: #dde0e8; }
input, textarea, select { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font: inherit; }
textarea { resize: vertical; min-height: 120px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font: inherit; }
.button.primary { background: linear-gradient(135deg, var(--accent), #ff7d56); color: #fff; border-color: transparent; }
.button.ghost { background: transparent; }
.button.danger { background: rgba(255,81,103,.12); border-color: rgba(255,81,103,.3); color: #ff95a6; }
.button.mini { padding: 8px 10px; font-size: .82rem; border-radius: 12px; }
.form-actions, .row-actions, .admin-actions-top, .inline-checks { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); }
.alert.success { background: rgba(91,255,178,.1); color: #9effd2; border-color: rgba(91,255,178,.24); }
.alert.error { background: rgba(255,81,103,.1); color: #ffb6c1; border-color: rgba(255,81,103,.22); }
.login-wrap { display: grid; place-items: center; min-height: 100vh; padding: 22px; }
.login-card { width: min(540px, 100%); padding: 30px; }
.login-card p { color: var(--muted); line-height: 1.7; }
.ghost-link { color: var(--gold); margin-top: 12px; display: inline-block; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .88rem; font-weight: 600; }
.narrow { max-width: 900px; padding-bottom: 50px; }
@media (max-width: 980px) {
  .hero, .admin-grid, .two-cols, .card-grid { grid-template-columns: 1fr; }
  .site-footer, .section-head, .topbar, .admin-top { flex-direction: column; align-items: start; }
  .featured-card h2 { max-width: none; }
}

/* ==========================================================
   XMUSIC — intestazione editoriale pubblica V2
   Solo fascia superiore: il resto del sito resta invariato.
   ========================================================== */
.xm-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% -45%, rgba(245,198,47,.16), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(92,69,138,.16), transparent 30%),
    linear-gradient(180deg, rgba(8,10,14,.99), rgba(10,13,18,.985));
  border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 46px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.xm-site-header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #f5c62f 0%, #f09c26 100%);
  box-shadow: 0 0 24px rgba(245,198,47,.22);
}
.xm-site-header::after {
  content: "X";
  position: absolute;
  right: 8.5%;
  top: -74px;
  color: rgba(255,255,255,.018);
  font: 900 220px/.8 Arial Black, Arial, sans-serif;
  letter-spacing: -.12em;
  pointer-events: none;
}
.xm-masthead {
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(220px,.7fr) auto;
  align-items: center;
  gap: 36px;
  padding-top: 21px;
  padding-bottom: 20px;
  position: relative;
  z-index: 1;
}
.xm-brand-area {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.xm-brand {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(3rem, 5.15vw, 4.65rem);
  font-weight: 950;
  line-height: .77;
  letter-spacing: -.085em;
  white-space: nowrap;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.xm-brand strong {
  color: #f5c62f;
  font: inherit;
}
.xm-brand-voice {
  min-width: 0;
  padding-left: 21px;
  border-left: 1px solid rgba(245,198,47,.42);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.xm-brand-kicker {
  color: #f5c62f;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .18em;
  white-space: nowrap;
}
.xm-tagline {
  color: #f2f0eb;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  font-style: italic;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.xm-editorial-note {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #b8bdc7;
  min-width: 0;
}
.xm-editorial-note span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #f5c62f, rgba(245,198,47,.15));
  flex: 0 0 auto;
}
.xm-editorial-note em {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .92rem;
  line-height: 1.45;
}
.xm-utility-nav {
  align-self: start;
  padding-top: 9px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 19px;
  white-space: nowrap;
}
.xm-utility-nav a {
  position: relative;
  color: #b7bdc7;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .18s ease;
}
.xm-utility-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: #f5c62f;
  transition: right .2s ease;
}
.xm-utility-nav a:hover { color: #fff; }
.xm-utility-nav a:hover::after { right: 0; }
.xm-utility-nav .xm-control-link {
  color: #f5c62f;
}
.xm-nav-band {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(16,19,25,.96);
}
.xm-nav-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.xm-home-link {
  flex: 0 0 auto;
  width: 43px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f5c62f;
  color: #11151b;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.20), 0 8px 22px rgba(245,198,47,.15);
  transition: transform .18s ease, filter .18s ease;
}
.xm-home-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.xm-home-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xm-primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.xm-primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #e7e8ec;
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}
.xm-primary-nav a:hover {
  color: #f5c62f;
  background: rgba(255,255,255,.045);
}
.xm-nav-signature {
  margin-left: auto;
  color: #8f96a3;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: .84rem;
  font-style: italic;
  white-space: nowrap;
}
@media (max-width: 1030px) {
  .xm-masthead {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 22px;
  }
  .xm-editorial-note { display: none; }
  .xm-brand-area { gap: 18px; }
  .xm-brand-voice { padding-left: 17px; }
}
@media (max-width: 760px) {
  .xm-site-header { position: relative; }
  .xm-site-header::after { right: -38px; top: -34px; font-size: 150px; }
  .xm-masthead {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 13px;
    padding-top: 21px;
    padding-bottom: 17px;
  }
  .xm-brand-area {
    align-items: flex-start;
    gap: 14px;
  }
  .xm-brand { font-size: clamp(2.65rem, 12vw, 3.45rem); }
  .xm-brand-voice { padding-left: 14px; gap: 5px; }
  .xm-brand-kicker { font-size: .59rem; letter-spacing: .13em; }
  .xm-tagline { font-size: .92rem; max-width: 280px; }
  .xm-utility-nav {
    align-self: auto;
    justify-content: flex-start;
    padding-top: 0;
    gap: 16px;
  }
  .xm-nav-inner {
    min-height: 52px;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .xm-nav-inner::-webkit-scrollbar { display: none; }
  .xm-primary-nav { flex: 0 0 auto; }
  .xm-primary-nav a {
    min-height: 34px;
    padding: 0 10px;
    font-size: .72rem;
  }
  .xm-nav-signature { display: none; }
}
@media (max-width: 470px) {
  .xm-brand-area {
    flex-direction: column;
    gap: 13px;
  }
  .xm-brand-voice {
    border-left: 0;
    border-top: 1px solid rgba(245,198,47,.36);
    padding: 11px 0 0;
  }
  .xm-utility-nav { gap: 13px; flex-wrap: wrap; }
  .xm-utility-nav a { font-size: .7rem; }
}
