/* Raccoon Music Label — stile del marchio Raccoon Music (base comune in assets/raccoon-base.css),
   sempre in tema scuro. */

@font-face { font-family: 'Acumin Pro'; src: url('fonts/AcuminPro-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; ascent-override: 120.5%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Acumin Pro'; src: url('fonts/AcuminPro-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; ascent-override: 120.4%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Acumin Pro'; src: url('fonts/AcuminPro-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; ascent-override: 120%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Acumin Pro'; src: url('fonts/AcuminPro-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; ascent-override: 126.5%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'Acumin Pro'; src: url('fonts/AcuminPro-Black.woff2') format('woff2'); font-weight: 800 900; font-display: swap; ascent-override: 119.6%; descent-override: 30%; line-gap-override: 0%; }

:root {
  --bg: #161616;
  --bg-2: #1A1A1A;
  --panel: #1F1F1F;
  --panel-2: #2A2A2A;
  --line: rgba(242, 237, 228, 0.10);
  --line-2: #343434;
  --field: #7E7C77;
  --ink: #F2EDE4;
  --ink-2: #DDD8CF;
  --ink-3: #B0ACA5;
  --accent: #F38B28;
  --accent-text: #F7A256;
  --accent-soft: rgba(243, 139, 40, .13);
  --band: #E9B44C;
  --band-soft: rgba(233, 180, 76, .13);
  --raccoon: #4FA8E8;
  --raccoon-soft: rgba(79, 168, 232, .13);
  --good: #5DC08A;
  --mid: #E9B44C;
  --weak: #F08A84;
  --red: #8B2E2E;
  --blue: #0077C8;
  --r-sm: 8px;
  --r-lg: 16px;
  --font: 'Acumin Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --side: 272px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- barra laterale (come il Gestionale) ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  background: #0A0A0A; border-right: 1px solid #1E1E1E;
  display: flex; flex-direction: column;
  overflow-y: auto; z-index: 40; user-select: none;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 16px; }
.brand .logo-box { width: 40px; height: 40px; border-radius: var(--r-sm); background: #141414; padding: 4px; display: grid; place-items: center; flex: none; }
.brand .logo-box img { width: 32px; height: 32px; object-fit: contain; }
.wordmark-row { display: flex; align-items: center; gap: 8px; }
.wordmark { display: inline-block; height: 14px; aspect-ratio: 3670 / 566; background: currentColor; -webkit-mask: url('assets/raccoon-music-wordmark.svg') no-repeat left center / contain; mask: url('assets/raccoon-music-wordmark.svg') no-repeat left center / contain; color: var(--ink); }
.tag-mini { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 1px 6px; border-radius: 4px; border: 1px solid #2E2E2E; line-height: 1.2; }
.brand p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.2; }
nav { display: flex; flex-direction: column; padding: 0 12px 16px; }
.nav-group { padding: 20px 12px 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.nav-group:first-child { padding-top: 4px; }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none;
  min-height: 40px; padding: 0 10px 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 14px; line-height: 1;
  transition: background-color .15s, color .15s; margin-bottom: 2px;
}
.nav-link .ic { color: var(--ink-3); transition: color .15s; }
.nav-link:hover { background: #151515; color: var(--ink); }
.nav-link:hover .ic { color: var(--ink); }
.nav-link.active { background: #1C1C1C; color: var(--ink); font-weight: 600; }
.nav-link.active .ic { color: var(--accent); }
.nav-link .nav-mark { position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); transform: scaleY(0); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.nav-link.active .nav-mark { transform: scaleY(1); }
.nav-link .count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 6px; border-radius: var(--r-sm); border: 1px solid #2E2E2E; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 12px 16px 16px; border-top: 1px solid #1E1E1E; font-size: 13px; color: var(--ink-3); }

main { margin-left: var(--side); min-height: 100vh; padding: 44px clamp(20px, 4vw, 56px) 96px; outline: none; }
.wrap { max-width: 1080px; margin: 0 auto; }

.topbar { display: none; }
.scrim { display: none; }

@media (max-width: 1023.98px) {
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30;
    background: rgba(10,10,10,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #1E1E1E; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  }
  .topbar .rm-stripes { position: absolute; left: 0; right: 0; top: 0; --rm-stripe-h: 2px; }
  .brand-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
  .brand-mini img { width: 30px; height: 30px; }
  .brand-mini .page-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--r-sm); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
  .menu-btn:hover { background: #1C1C1C; }
  .sidebar { transform: translateX(-102%); transition: transform .25s cubic-bezier(.2,.8,.2,1); width: min(82vw, 300px); box-shadow: 0 12px 32px -12px rgba(0,0,0,.6); }
  .sidebar.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(10,10,10,.7); z-index: 35; }
  main { margin-left: 0; padding: 24px 16px 80px; }
}

/* ---------- tipografia (maiuscolo solo nel logotipo) ---------- */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent-text); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
h1 { font-weight: 600; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: balance; }
h2 { font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; letter-spacing: -0.015em; margin: 56px 0 14px; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 8px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 760px; margin: 0 0 28px; line-height: 1.45; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-3); }
.small { font-size: 15px; }
.mono { font-variant-numeric: tabular-nums; }
strong { font-weight: 600; }
.label { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- componenti ---------- */
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* Pannello su scuro: solo il fondo appena rialzato */
.card { background: var(--panel); border-radius: var(--r-lg); padding: 18px 18px 16px; min-width: 0; position: relative; }
.card h3 { display: flex; align-items: center; gap: 8px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.accent { background: linear-gradient(180deg, rgba(243,139,40,.16), rgba(243,139,40,.03) 75%), var(--panel); box-shadow: inset 0 0 0 1px rgba(243,139,40,.35); }
a.card { text-decoration: none; transition: background-color .15s, transform .15s; display: block; }
a.card:hover { background: #262626; transform: translateY(-2px); }
a.card .go { position: absolute; right: 16px; top: 16px; color: var(--ink-3); }
a.card:hover .go { color: var(--accent); }

.kpi { font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: .45em; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
@media (max-width: 600px) { .g4 .card { padding: 14px; } .g4 .kpi { font-size: 30px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--ink-2); background: #1C1C1C; }
.pill.r { background: rgba(79,168,232,.14); color: #8CC6F0; border-color: rgba(79,168,232,.3); }
.pill.b { background: rgba(233,180,76,.14); color: #F0C878; border-color: rgba(233,180,76,.3); }
.pill.a { background: rgba(243,139,40,.14); color: #F7B370; border-color: rgba(243,139,40,.3); }
.pill.good { background: rgba(93,192,138,.14); color: #8FD9AE; border-color: rgba(93,192,138,.3); }
.pill.mid { background: rgba(233,180,76,.14); color: #F0C878; border-color: rgba(233,180,76,.3); }
.pill.weak { background: rgba(240,138,132,.14); color: #F5A9A4; border-color: rgba(240,138,132,.3); }
.pill.solid { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }

ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.clean li:first-child { border-top: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 8px; }
ul.ticks li { position: relative; padding: 5px 0 5px 22px; color: var(--ink-2); }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 2px; border-radius: 2px; background: var(--accent); }
ul.ticks.no li::before { background: var(--weak); }

.callout { background: var(--accent-soft); padding: 14px 16px; border-radius: var(--r-lg); margin: 18px 0; box-shadow: inset 3px 0 0 var(--accent); color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout.blue { background: var(--raccoon-soft); box-shadow: inset 3px 0 0 var(--raccoon); }
.callout.warn { background: rgba(240,138,132,.1); box-shadow: inset 3px 0 0 var(--weak); }
.callout p:last-child { margin: 0; }

.table-wrap { overflow-x: auto; background: var(--panel); border-radius: var(--r-lg); margin: 12px 0 8px; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: #1A1A1A; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { table { font-size: 14px; } th, td { padding: 10px 12px; } .table-wrap table { min-width: 560px; } }

/* percorso */
.path { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); position: relative; margin: 26px 0 10px; }
.path::before { content: ""; position: absolute; left: 6%; right: 6%; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, #2E2E2E 0 8px, transparent 8px 14px); }
.path a { position: relative; text-decoration: none; text-align: center; padding: 0 6px; }
.path .dot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-weight: 600; background: var(--panel); position: relative; z-index: 1; transition: background-color .15s, color .15s; font-variant-numeric: tabular-nums; color: var(--ink-2); box-shadow: inset 0 0 0 1px #2E2E2E; }
.path a:hover .dot { background: var(--accent); color: #0A0A0A; box-shadow: none; }
.path strong { display: block; font-size: 15px; }
.path span { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 760px) {
  .path { grid-template-columns: 1fr; gap: 10px; }
  .path::before { left: 23px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, #2E2E2E 0 8px, transparent 8px 14px); }
  .path a { display: grid; grid-template-columns: 48px 1fr; gap: 14px; text-align: left; align-items: center; padding: 0; }
  .path .dot { margin: 0; }
}

.steps { counter-reset: s; display: grid; gap: 10px; margin: 14px 0; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--panel); border-radius: var(--r-lg); padding: 14px 16px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-weight: 600; color: var(--accent-text); font-size: 16px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.step h3 { margin-bottom: 4px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step .who { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }

/* grafici */
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font); }
.chart-card { background: var(--panel); border-radius: var(--r-lg); padding: 18px; margin: 14px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart-card .legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.scroll-x svg { min-width: 760px; }
.scroll-hint { display: none; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 800px) { .scroll-hint { display: block; } }

/* strumenti */
.tool { background: var(--panel); border-radius: var(--r-lg); padding: 20px; margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-3); }
input[type=text], input[type=date], input[type=number], input[type=password], select, textarea {
  background: #262626; border: 1px solid var(--field); border-radius: var(--r-sm); padding: 10px 14px; width: 100%; min-width: 0; min-height: 44px; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(243,139,40,.45); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }
input[type=date] { color-scheme: dark; }
.seg { display: inline-flex; background: #2A2A2A; border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { background: transparent; border: 0; min-height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.seg button.on { background: var(--ink); color: #0A0A0A; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--accent); color: #0A0A0A; font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background-color .15s, transform .15s; text-decoration: none; }
.btn:hover { background: #F7A256; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--field); }
.btn.ghost:hover { background: #1E1E1E; border-color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.counter { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.counter.over { color: var(--weak); }
.bar { height: 8px; background: #1E1E1E; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s; }

.dates { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.date-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; }
.date-row:first-child { border-top: 0; }
.date-row .d { font-size: 14px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.date-row.past { opacity: .42; }
.date-row.key { background: rgba(243,139,40,.08); }
.date-row.key .d { color: var(--accent-text); }
@media (max-width: 600px) { .date-row { grid-template-columns: 1fr auto; gap: 4px 10px; } .date-row .d { grid-column: 1 / -1; } }

.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check:first-of-type { border-top: 0; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check.done span { color: var(--ink-3); text-decoration: line-through; }

.strength { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.strength i { width: 14px; height: 6px; border-radius: 2px; background: #2E2E2E; }
.strength.s3 i { background: var(--good); }
.strength.s2 i:nth-child(-n+2) { background: var(--mid); }
.strength.s1 i:first-child { background: var(--weak); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .two-col { grid-template-columns: 1fr; } }

.sources { font-size: 14px; color: var(--ink-3); }
.sources a { color: #4FA8E8; text-underline-offset: 3px; }
.page-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-nav a { text-decoration: none; color: var(--ink-3); font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.page-nav a strong { color: var(--ink); font-size: 16px; }
.page-nav a:hover strong { color: var(--accent-text); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.hero img { width: 140px; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } .hero img { display: none; } }

.note { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.note a, .lead a, p a { color: #4FA8E8; text-underline-offset: 3px; }
details { background: var(--panel); border-radius: var(--r-lg); padding: 14px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
details[open] summary { margin-bottom: 10px; }
.quote { border: 1px dashed #3A3A3A; border-radius: var(--r-sm); padding: 14px 16px; font-size: 15px; color: var(--ink-2); background: #1A1A1A; line-height: 1.55; }

/* ---------- roster ---------- */
.band-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.band-avatar { width: 64px; height: 64px; border-radius: var(--r-lg); background: var(--accent); color: #0A0A0A; display: grid; place-items: center; font-weight: 900; font-size: 28px; letter-spacing: -0.02em; }
.progress-ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--p) * 1%), #262626 0); display: grid; place-items: center; }
.progress-ring span { width: 50px; height: 50px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }

.track { position: relative; margin: 18px 0; padding-left: 34px; }
.track::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: #262626; }
.t-item { position: relative; padding: 0 0 18px; }
.t-item:last-child { padding-bottom: 0; }
.t-dot { position: absolute; left: -34px; top: 1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: inset 0 0 0 2px #3A3A3A; color: var(--ink-3); }
.t-dot .ic { width: 16px; height: 16px; }
.t-item.done .t-dot { background: var(--good); box-shadow: none; color: #0A0A0A; }
.t-item.now .t-dot { background: var(--accent); box-shadow: 0 0 0 5px rgba(243,139,40,.22); color: #0A0A0A; }
.t-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 28px; }
.t-head strong { font-size: 16px; }
.t-item.done .t-head strong { color: var(--ink-2); }
.t-body { color: var(--ink-3); font-size: 15px; margin-top: 4px; }
.phase-label { font-size: 13px; font-weight: 600; color: var(--ink-3); margin: 22px 0 10px; }
.next-box { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.next-box .ic { width: 28px; height: 28px; color: var(--accent); }

@media print { .sidebar, .topbar { display: none; } main { margin: 0; } }
.pill .ic { width: 14px; height: 14px; }
.eyebrow .ic { width: 16px; height: 16px; }
.btn .ic { width: 18px; height: 18px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: #1E1E1E; padding: 1px 6px; border-radius: 6px; }

/* grafici larghi: su telefono si scorrono di lato invece di rimpicciolirsi */
@media (max-width: 760px) {
  .chart-card svg.wide { min-width: 720px; }
  .chart-card:has(svg.wide)::after { content: "Scorri di lato per vedere tutto →"; display: block; position: sticky; left: 0; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
}
/* barre orizzontali in HTML */
.hbars { display: grid; gap: 16px; }
.hbar-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.hbar-top span { color: var(--ink-2); font-size: 15px; }
.hbar-top em { font-style: normal; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.hbar-top strong { font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hbar-track { height: 14px; background: #1E1E1E; border-radius: 99px; overflow: hidden; }
.hbar-track i { display: block; height: 100%; border-radius: 99px; }
/* imbuto in HTML */
.funnel { display: grid; gap: 6px; justify-items: center; }
.funnel div { width: var(--w); min-width: 240px; max-width: 100%; text-align: center; padding: 12px 16px; border-radius: 10px; color: #0A0A0A; }
.funnel strong { display: block; font-size: 16px; }
.funnel span { font-size: 14px; opacity: .85; }

/* ---------- modifica dall'app ---------- */
.edit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -6px 0 18px; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.sync-status .ic { width: 16px; height: 16px; }
.sync-status[data-state="online"] .ic { color: var(--good); }
.sync-status[data-state="error"] { color: var(--weak); }
.sync-status[data-state="saving"] .ic { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: #1E1E1E; color: var(--ink); }
.card .icon-btn.go { position: absolute; right: 10px; top: 10px; }
button.as-btn { cursor: pointer; font: inherit; }
button.pill.as-btn { font-size: 13px; font-weight: 600; }
button.pill.as-btn:hover { filter: brightness(1.25); }
button.t-dot.as-btn { border: 0; padding: 0; cursor: pointer; }
button.t-dot.as-btn:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.btn.danger-ghost { color: #F5A9A4; border-color: rgba(240,138,132,.45); }
.btn.danger-ghost:hover { background: rgba(240,138,132,.12); border-color: #F08A84; }
.inline-form { background: #1A1A1A; border-radius: var(--r-lg); padding: 14px; margin-top: -2px; }
.tool h3 { display: flex; align-items: center; gap: 8px; }
details.tool summary { display: flex; align-items: center; gap: 8px; }
.date-row.late { background: rgba(240,138,132,.08); }
.date-row.late .d { color: #F5A9A4; }
a.date-row:hover { background: #262626; }
.code-dialog { border: 0; border-radius: var(--r-lg); background: var(--panel); color: var(--ink); padding: 22px; width: min(92vw, 380px); box-shadow: 0 12px 32px -12px rgba(0,0,0,.6); }
.code-dialog::backdrop { background: rgba(10,10,10,.7); }
.code-dialog h3 { display: flex; align-items: center; gap: 8px; }
.code-dialog .err { color: var(--weak); margin: 8px 0 0; }
.app-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; animation: none; transition: opacity .25s, transform .25s; background: #1E1E1E; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
.app-toast .ic { color: var(--good); }
.app-toast.bad .ic { color: var(--weak); }
.nav-fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; border-radius: var(--r-sm); }
.nav-fold summary::-webkit-details-marker { display: none; }
.nav-fold summary:hover { color: var(--ink); }
.nav-fold .chev { width: 16px; height: 16px; transition: transform .2s; }
.nav-fold[open] .chev { transform: rotate(180deg); }

/* =========================================================
   GUIDA: card che si aprono, foglio di dettaglio
   ========================================================= */
.takeaway { font-size: clamp(20px, 2.2vw, 26px); line-height: 1.3; font-weight: 500; color: var(--ink); max-width: 820px; margin: 4px 0 26px; text-wrap: balance; }
.takeaway em { font-style: normal; color: var(--accent-text); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left; background: var(--panel); border: 0; border-radius: var(--r-lg); padding: 18px; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s; min-height: 132px; font: inherit; }
.tile:hover { background: #262626; transform: translateY(-2px); }
.tile .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #2A2A2A; color: var(--accent-text); }
.tile .ti .ic { width: 20px; height: 20px; }
.tile strong { font-size: 17px; font-weight: 600; line-height: 1.25; }
.tile span.sub { font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.tile .more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--accent-text); display: inline-flex; align-items: center; gap: 4px; }
.tile .more .ic { width: 14px; height: 14px; }
.tile .big { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile.wide { grid-column: span 2; }
@media (max-width: 600px) { .tile.wide { grid-column: auto; } .tiles { grid-template-columns: 1fr 1fr; } .tile { min-height: 120px; padding: 14px; } .tile strong { font-size: 16px; } .tile span.sub { font-size: 14px; } }
@media (max-width: 380px) { .tiles { grid-template-columns: 1fr; } }

.topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.topic-tiles .tile { min-height: 150px; }
.topic-tiles .tile .ti { width: 48px; height: 48px; }
.topic-tiles .tile strong { font-size: 20px; }

/* foglio di dettaglio */
.sheet { border: 0; padding: 0; background: var(--panel); color: var(--ink); max-width: none; max-height: none; margin: 0; box-shadow: 0 12px 40px -8px rgba(0,0,0,.7); }
.sheet::backdrop { background: rgba(10,10,10,.6); }
.sheet .sh-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.sheet .sh-head h2 { margin: 0; font-size: 22px; font-weight: 500; }
.sheet .sh-body { padding: 18px 20px 28px; }
.sheet .sh-body > *:first-child { margin-top: 0; }
.sheet h3 { margin-top: 20px; }
.sheet .chart-card, .sheet .card, .sheet .table-wrap, .sheet .tool { background: #2A2A2A; }
@media (min-width: 761px) {
  .sheet[open] { position: fixed; inset: 0 0 0 auto; height: 100vh; width: min(640px, 92vw); border-radius: var(--r-lg) 0 0 var(--r-lg); overflow-y: auto; animation: sh-in-r .25s cubic-bezier(.2,.8,.2,1); }
}
@media (max-width: 760px) {
  .sheet[open] { position: fixed; inset: auto 0 0 0; width: 100%; max-height: 88vh; border-radius: 20px 20px 0 0; overflow-y: auto; animation: sh-in-b .25s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
  .sheet .sh-head::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: #444; }
}
@keyframes sh-in-r { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sh-in-b { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* due buste */
.envelopes { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 12px; }
@media (max-width: 860px) { .envelopes { grid-template-columns: 1fr; } }
.env { border-radius: var(--r-lg); padding: 18px; background: var(--panel); position: relative; overflow: hidden; }
.env::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.env .who-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.env .who-row .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
.env h3 { margin: 0; font-size: 18px; }
.env .what { font-size: 14px; color: var(--ink-3); margin: 0; }
.env .flow-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; font-size: 14px; }
.env .flow-line b { font-weight: 600; background: #2A2A2A; padding: 5px 10px; border-radius: 999px; }
.env .flow-line .ic { width: 14px; height: 14px; color: var(--ink-3); }
.env .when { font-size: 14px; color: var(--ink-2); margin: 0; }

/* barra dei soldi */
.money { margin: 8px 0 6px; }
.money-bar { display: flex; height: 44px; border-radius: 12px; overflow: hidden; gap: 2px; }
.money-bar > div { display: flex; align-items: center; padding: 0 10px; font-size: 13px; font-weight: 600; color: #0A0A0A; white-space: nowrap; overflow: hidden; min-width: 0; }
.money-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.money-legend div { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--ink-2); }
.money-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: translateY(1px); }
.money-legend b { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink); }


.two-def { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .two-def { grid-template-columns: 1fr; } }
.two-def > div { background: #2A2A2A; border-radius: 12px; padding: 14px; }
.two-def h4 { margin: 0 0 4px; font-size: 16px; }
.two-def .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
button.chip-btn { border: 1px solid var(--line); background: #262626; color: var(--ink-2); border-radius: 999px; min-height: 36px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
button.chip-btn:hover { border-color: var(--accent); color: var(--ink); }

.phases-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 24px; }
.phases-mini div { background: var(--panel); border-radius: 12px; padding: 12px; }
.phases-mini div.on { background: linear-gradient(180deg, rgba(243,139,40,.2), rgba(243,139,40,.05)), var(--panel); }
.phases-mini b { display: block; font-size: 16px; font-weight: 600; }
.phases-mini span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 560px) { .phases-mini { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   BAND
   ========================================================= */
.band-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #262626; min-height: 260px; display: flex; align-items: flex-end; margin-bottom: 14px; }
.band-hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.band-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,22,22,0) 25%, rgba(22,22,22,.55) 60%, rgba(22,22,22,.96)); }
.band-hero .bh-in { position: relative; z-index: 1; padding: 22px; width: 100%; }
.band-hero h1 { margin: 0 0 6px; }
.band-hero .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-2); font-size: 15px; }
.band-hero .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.band-hero .links a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(22,22,22,.7); backdrop-filter: blur(6px); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; border: 1px solid rgba(242,237,228,.18); }
.band-hero .links a:hover { border-color: var(--accent); }
.band-hero .back { position: absolute; z-index: 2; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(22,22,22,.7); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.band-hero.noimg { min-height: 180px; background: linear-gradient(135deg, #2A2A2A, #1F1F1F); }

.band-thumb { position: relative; height: 150px; margin: -18px -18px 14px; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; background: #2A2A2A; }
.band-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.band-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(31,31,31,.9)); }
.band-thumb .ring-pos { position: absolute; right: 14px; bottom: -0px; z-index: 1; }

.tabs { display: flex; gap: 4px; background: var(--panel); padding: 4px; border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; margin: 22px 0 16px; }
.tabs button { border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; font-weight: 500; min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #0A0A0A; font-weight: 600; }

.phase-strip { display: flex; gap: 4px; margin: 6px 0 4px; }
.phase-strip > div { flex: 1; height: 8px; border-radius: 99px; background: #2E2E2E; overflow: hidden; }
.phase-strip > div i { display: block; height: 100%; background: var(--good); }
.phase-strip > div.cur i { background: var(--accent); }

.phase-box { background: var(--panel); border-radius: var(--r-lg); margin-bottom: 10px; overflow: hidden; }
.phase-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.phase-box > summary::-webkit-details-marker { display: none; }
.phase-box .ph-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #2A2A2A; color: var(--ink-3); }
.phase-box .ph-ic .ic { width: 16px; height: 16px; }
.phase-box.done .ph-ic { background: var(--good); color: #0A0A0A; }
.phase-box.cur .ph-ic { background: var(--accent); color: #0A0A0A; }
.phase-box .ph-t { flex: 1; min-width: 0; }
.phase-box .ph-t b { display: block; font-size: 17px; font-weight: 600; }
.phase-box .ph-t span { font-size: 13px; color: var(--ink-3); }
.phase-box .chev { width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s; }
.phase-box[open] > summary .chev { transform: rotate(180deg); }
.phase-box .steps-list { padding: 0 8px 8px; }

.step-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 8px; border-radius: 10px; cursor: pointer; }
.step-row:hover { background: #2A2A2A; }
.step-row .sd { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 2px #4A4A4A; color: #0A0A0A; }
.step-row .sd .ic { width: 14px; height: 14px; }
.step-row.done .sd { background: var(--good); box-shadow: none; }
.step-row.prog .sd { background: var(--accent); box-shadow: none; }
.step-row .st { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.step-row.done .st { color: var(--ink-3); }
.step-row .sdate { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.step-row .sdate.late { color: #F5A9A4; font-weight: 600; }
.step-row > .ic { width: 16px; height: 16px; color: #5A5A5A; flex: none; }

.status-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0 18px; }
.status-pick button { border: 1px solid var(--line); background: #2A2A2A; color: var(--ink-2); border-radius: 12px; min-height: 48px; font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.status-pick button.on[data-s="fatto"] { background: var(--good); color: #0A0A0A; border-color: var(--good); }
.status-pick button.on[data-s="in corso"] { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.status-pick button.on[data-s="da fare"] { background: var(--ink); color: #0A0A0A; border-color: var(--ink); }

.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.member { background: var(--panel); border-radius: var(--r-lg); padding: 14px; text-align: center; }
.member .ph { position: relative; width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 10px; overflow: hidden; background: #2A2A2A; display: grid; place-items: center; font-weight: 600; font-size: 24px; color: var(--ink-3); }
.member .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.member b { display: block; font-size: 15px; }
.member span { font-size: 13px; color: var(--ink-3); }
.bio { font-size: 17px; line-height: 1.55; color: var(--ink-2); white-space: pre-line; max-width: 760px; }
.rel-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border-radius: 12px; margin-bottom: 8px; text-decoration: none; }
.rel-list a:hover { background: #262626; }
.rel-list .ic { color: var(--good); }
.tc-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.tc-pick { display: grid; gap: 8px; }
.tc-pick button { display: flex; align-items: center; gap: 12px; text-align: left; background: #2A2A2A; border: 0; border-radius: 12px; padding: 10px; color: var(--ink); font: inherit; cursor: pointer; }
.tc-pick button:hover { background: #333; }
.tc-pick img, .tc-pick .noimg { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: #3A3A3A; flex: none; }
.tc-pick b { display: block; }
.tc-pick span { font-size: 13px; color: var(--ink-3); }
.nav-fold { background: transparent; padding: 0; margin: 0; border-radius: 0; }
.nav-fold summary { padding: 20px 12px 8px; }
.nav-fold[open] summary { margin-bottom: 0; }
.money-legend { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.money-legend b { white-space: nowrap; }
@media (max-width: 600px) { .money-legend { grid-template-columns: 1fr; } }

/* ---------- pillole ---------- */
.pills { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.pill-card { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--panel); border: 0; border-radius: var(--r-lg); padding: 16px 18px; color: var(--ink); font: inherit; cursor: pointer; transition: background-color .15s, transform .15s; }
.pill-card:hover { background: #262626; transform: translateY(-2px); }
.pill-card .pk { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pill-card strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.pill-card .pw { font-size: 14px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 600px) { .pills { grid-template-columns: 1fr 1fr; } .pill-card { padding: 14px; } .pill-card .pk { font-size: 22px; } .pill-card strong { font-size: 15px; } .pill-card .pw { display: none; } }

.ruler { position: relative; height: 120px; margin: 8px 8px 28px; }
.ruler-line { position: absolute; left: 0; right: 0; top: 40px; height: 2px; background: #3A3A3A; }
.ruler-pt { position: absolute; left: var(--x); top: 0; transform: translateX(-50%); width: 112px; text-align: center; }
.ruler-pt::after { content: ""; position: absolute; left: 50%; top: 34px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 2px #6A6A6A; }
.ruler-pt.on::after { background: var(--accent); box-shadow: 0 0 0 5px rgba(243,139,40,.25); }
.ruler-pt .rw { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); height: 30px; line-height: 30px; }
.ruler-pt.on .rw { color: var(--accent-text); }
.ruler-pt .rt { display: block; margin-top: 26px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
@media (max-width: 760px) {
  .ruler { height: auto; margin: 6px 0 24px; padding-left: 26px; }
  .ruler-line { left: 7px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .ruler-pt { position: relative; left: 0; transform: none; width: auto; text-align: left; display: flex; gap: 10px; align-items: baseline; padding: 6px 0; }
  .ruler-pt::after { left: -26px; top: 9px; margin-left: 0; }
  .ruler-pt .rw { height: auto; line-height: 1.3; min-width: 64px; }
  .ruler-pt .rt { margin-top: 0; }
}

/* =========================================================
   REVISIONE DI LEGGIBILITÀ (righe corte, tocchi grandi, navigazione col pollice)
   ========================================================= */
/* righe di testo tra 50 e 75 caratteri */
.lead, .takeaway { max-width: 62ch; }
.sh-body p, .sh-body li, .bio { max-width: 68ch; }
@media (min-width: 1024px) { body { font-size: 17px; } .small { font-size: 15px; } }

/* torna indietro, unica etichetta sopra i titoli */
.back-link { margin: 0 0 10px; }
.back-link a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #8CC6F0; text-decoration: none; font-size: 15px; font-weight: 600; }
.back-link .ic { width: 16px; height: 16px; }

/* tocchi da almeno 44px */
.icon-btn { width: 44px; height: 44px; }
.btn.sm { min-height: 40px; }
button.chip-btn { min-height: 44px; }
.step-row { min-height: 52px; }
.seg button { min-height: 44px; }
@media (max-width: 1023.98px) { .btn.sm { min-height: 44px; } }

/* barra di avanzamento con le tre righe del marchio */
.prog-stripes { --rm-stripe-h: 4px; border-radius: 4px; background: #2E2E2E; }

/* card principale "adesso" */
.focus { display: grid; grid-template-columns: 132px 1fr; gap: 0; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; margin-bottom: 12px; min-height: 132px; transition: background-color .15s; }
.focus:hover { background: #262626; }
.focus-img { background: #2A2A2A; position: relative; }
.focus-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.focus-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.focus-body strong { font-size: 20px; font-weight: 600; line-height: 1.25; }
@media (max-width: 600px) { .focus { grid-template-columns: 1fr; } .focus-img { height: 120px; } .focus-body strong { font-size: 18px; } }

/* liste al posto delle griglie di card: si leggono dall'alto in basso */
.list { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.list-row, .feature { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; text-decoration: none; color: var(--ink); }
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row:hover { background: #262626; }
.list-row .ti, .feature .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #2A2A2A; color: var(--accent-text); flex: none; }
.list-row .ti .ic, .feature .ti .ic { width: 20px; height: 20px; }
.lr-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lr-t strong { font-size: 17px; font-weight: 600; }
.lr-t span { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.list-row .chev, .feature .chev { width: 18px; height: 18px; color: #6A6A6A; flex: none; }
.feature { background: linear-gradient(135deg, rgba(243,139,40,.22), rgba(243,139,40,.06)), var(--panel); border-radius: var(--r-lg); margin-bottom: 12px; min-height: 84px; }
.feature .ti { background: var(--accent); color: #0A0A0A; }
.feature .lr-t strong { font-size: 20px; }

/* card: niente scritta "approfondisci", solo la freccia in alto */
.tile { padding-right: 40px; }
.tile .chev { position: absolute; right: 14px; top: 18px; width: 18px; height: 18px; color: #6A6A6A; }
.tile:hover .chev { color: var(--accent-text); }

/* righe dell'agenda su due livelli */
.dr-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-t .label { font-size: 13px; }

/* avanti e indietro */
.page-nav a span { display: inline-flex; align-items: center; gap: 4px; }
.page-nav a .ic { width: 14px; height: 14px; }
.page-nav a.nx { text-align: right; align-items: flex-end; }

/* pillole in home: una riga che scorre di lato */
.pills-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pills-row > * { scroll-snap-align: start; }
.pills-row .pill-card .pk { font-size: 24px; }
.more-card { justify-content: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
@media (max-width: 600px) { .pills-row { grid-auto-columns: 72%; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; } }

/* barra in basso sul telefono: le quattro sezioni a portata di pollice */
.tabbar { display: none; }
@media (max-width: 1023.98px) {
  .menu-btn { display: none; }
  .topbar { padding-left: 16px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(15,15,15,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #262626; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; color: var(--ink-3); text-decoration: none; font-size: 12.5px; font-weight: 600; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on .ic { color: var(--accent); }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .app-toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (min-width: 601px) { .pills-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; } }

/* ---------- archivio, guida RouteNote, piano ---------- */
.dist-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.dist-side { display: flex; align-items: center; gap: 10px; margin: 14px 18px 6px; padding: 12px 14px; border-radius: 12px; background: #2A2A2A; color: var(--ink); text-decoration: none; }
.dist-side .ic { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.dist-side span { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.2; }
.dist-side small { font-weight: 400; color: var(--ink-3); font-size: 13px; }
.dist-side:hover { background: #333; }
.kv-list { display: flex; flex-direction: column; gap: 0; }
.kv { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #2E2E2E; min-height: 44px; }
.kv:last-child { border-bottom: 0; }
.kv-k { flex: 0 0 38%; max-width: 170px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.kv-v { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kv-v.code, .code { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.copy-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--field); background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; flex: none; transition: background-color .15s, border-color .15s; }
.copy-btn .ic { width: 16px; height: 16px; }
.copy-btn:hover { background: #2A2A2A; }
.copy-btn.ok { background: var(--good); color: #0A0A0A; border-color: var(--good); }
.arch-row { border: 0; font: inherit; color: inherit; cursor: pointer; width: 100%; text-align: left; background: var(--panel); }
.arch-row .codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.arch-row .codes .pill { font-size: 13px; }
.card.empty { text-align: center; padding: 26px 18px; }
.card.empty p { margin: 0 0 14px; color: var(--ink-2); }
.storage { display: flex; gap: 8px; align-items: center; margin-top: 22px; }
.sheet-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2E2E2E; }
.sheet-form h3 { margin: 0 0 12px; }
.track-checks { display: flex; flex-direction: column; gap: 4px; }
.track-checks .check { padding: 8px 10px; }
.upl { background: #2A2A2A; border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.upl-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.upl-cur { margin: 0 0 10px; overflow-wrap: anywhere; }
.upl-btn { cursor: pointer; }
.upl-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.upl-prog .prog-stripes { flex: 1; }

/* guida RouteNote */
.rn-pick { margin-bottom: 12px; }
.rn-pick .field { margin-bottom: 10px; }
.rn-before summary { cursor: pointer; }
.rn-screen .rn-num { font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.rn-body { padding: 0 16px 14px; }
.rn-field { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; padding: 12px 0; border-top: 1px solid #2E2E2E; }
.rn-field:first-child { border-top: 0; }
@media (max-width: 640px) { .rn-field { grid-template-columns: 1fr; gap: 4px; } }
.rn-n { font-weight: 600; color: var(--accent-text); font-size: 15px; }
.rn-what { margin: 0 0 6px; color: var(--ink-3); font-size: 14px; max-width: 62ch; }
.rn-put { display: flex; align-items: center; gap: 10px; }
.rn-put-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rn-warn { display: flex; gap: 8px; margin: 8px 0 0; font-size: 14px; color: #F5C27A; max-width: 62ch; }
.rn-warn .ic { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.rn-next { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid #2E2E2E; color: var(--ink-2); }
.rn-next .ic { width: 18px; height: 18px; color: var(--accent-text); flex: none; }
.rn-after { padding-left: 20px; margin: 0; }
.rn-after li { margin: 0 0 10px; color: var(--ink-2); }
.codes-def { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .codes-def { grid-template-columns: 1fr; } }

/* piano */
.plan-form .seg { display: flex; gap: 6px; }
.plan-form .seg label { flex: 1; }
.plan-form .seg input { position: absolute; opacity: 0; pointer-events: none; }
.plan-form .seg span { display: grid; place-items: center; min-height: 44px; border-radius: 10px; border: 1px solid var(--field); cursor: pointer; font-weight: 500; }
.plan-form .seg input:checked + span { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.plan-rows { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.plan-row { display: grid; grid-template-columns: 28px 1fr 180px 190px 44px; gap: 10px; align-items: end; }
.plan-row .field { margin-bottom: 8px; }
.plan-row .pr-n { color: var(--ink-3); font-variant-numeric: tabular-nums; padding-bottom: 20px; }
.plan-row .icon-btn { margin-bottom: 8px; }
@media (max-width: 640px) { .plan-row { grid-template-columns: 20px 1fr 44px; } .plan-row .field:nth-child(3) { grid-column: 2; } .plan-row .pr-n { align-self: start; padding-top: 32px; } }
.plan-rels .date-row { cursor: default; }
.warn-list .callout { margin: 10px 0; }
.warn-list .btn { margin-left: 8px; vertical-align: middle; }
.plan-steps summary { cursor: pointer; }
.plan-step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #2E2E2E; }
.plan-step .d { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.plan-step p { margin: 4px 0 0; max-width: 62ch; }

/* galleria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.g-item { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #2A2A2A; cursor: pointer; color: var(--ink); font: inherit; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.g-item:hover img { transform: scale(1.04); }
.g-item .g-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13px; text-align: left; background: linear-gradient(to top, rgba(0,0,0,.8), transparent); display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-item .g-label .ic { width: 14px; height: 14px; flex: none; }
.g-item.cover { outline: 2px solid var(--accent); outline-offset: -2px; }
.g-lock { display: grid; place-items: center; height: 100%; color: var(--ink-3); }
.photo-big { border-radius: 12px; overflow: hidden; background: #0A0A0A; margin-bottom: 12px; }
.photo-big img { width: 100%; max-height: 60vh; object-fit: contain; display: block; }

/* EPK: pagina A4 in anteprima, stampabile */
.epk-actions { margin-bottom: 8px; }
.epk-stage { position: relative; overflow: hidden; margin-top: 16px; border-radius: 6px; }
.epk-scale { transform-origin: top left; width: 210mm; }
.epk-page { width: 210mm; height: 297mm; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #111; font-family: "Acumin Pro", system-ui, sans-serif; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.epk-hero { position: relative; height: 105mm; flex: none; overflow: hidden; background: #222; }
.epk-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.epk-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.08) 68%, transparent 100%); }
.epk-hero-title { position: absolute; left: 6mm; bottom: 6mm; right: 40mm; }
.epk-kicker { font-size: 10px; font-weight: 600; margin: 0 0 3px; }
.epk-name { font-size: 36px; font-weight: 600; line-height: 1; color: #fff; margin: 0 0 4px; }
.epk-meta { font-size: 12px; color: rgba(255,255,255,.9); margin: 0; }
.epk-hero-social { position: absolute; right: 6mm; bottom: 6mm; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.epk-hero-social a { font-size: 10px; font-weight: 600; color: #fff; text-decoration: none; }
.epk-body { flex: 1; display: flex; flex-direction: column; gap: 3mm; padding: 4mm 5mm; overflow: hidden; --s: 1; }
.epk-grid { flex: 1; display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: minmax(0, 1fr); gap: 4mm; min-height: 0; }
.epk-col { display: flex; flex-direction: column; gap: 2.5mm; min-height: 0; overflow: hidden; }
.epk-block { flex: none; }
.epk-block h2, .epk-box h2, .epk-timeline h2 { font-size: calc(13px * var(--s, 1)); font-weight: 600; margin: 0 0 2mm; display: flex; align-items: center; gap: 5px; color: #111; }
.epk-block h2::after { content: ""; flex: 1; height: 1px; background: #d8d4ca; margin-left: 8px; }
.epk-dot { width: 5px; height: 5px; flex: none; background: var(--accent); display: inline-block; }
.epk-block p, .epk-block li { font-size: calc(12.5px * var(--s, 1)); line-height: 1.45; color: #333; margin: 0 0 1.5mm; }
.epk-block ul { margin: 0; padding: 0; list-style: none; }
.epk-block strong { color: #111; font-weight: 600; }
.epk-role { color: #8A8A86; font-size: calc(10px * var(--s, 1)); }
.epk-box { background: #16161a; color: #fff; border-radius: 2mm; padding: 3.5mm; flex: none; }
.epk-box h2 { color: #fff; font-size: calc(12px * var(--s, 1)); }
.epk-box .epk-dot { background: #fff; }
.epk-box p { font-size: calc(11px * var(--s, 1)); line-height: 1.4; color: rgba(255,255,255,.85); margin: 0 0 1mm; }
.epk-box-sub { font-size: 9px !important; font-weight: 600; color: rgba(255,255,255,.6) !important; margin: 1.5mm 0 .5mm !important; }
.epk-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2mm; flex: none; }
.epk-link-card { display: flex; align-items: center; gap: 2mm; border: 1px solid #e9e6de; border-radius: 2mm; padding: 2.5mm; text-decoration: none; background: #fff; }
.epk-link-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--accent); }
.epk-link-name { font-size: 10px; font-weight: 600; color: #111; }
.epk-square-photo { flex: 1; min-height: 30mm; overflow: hidden; border-radius: 2mm; }
.epk-square-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.epk-timeline { flex: none; background: #f4f2ed; border: 1px solid #e9e6de; border-radius: 2mm; padding: 3mm; }
.epk-tl-track { display: flex; align-items: flex-start; }
.epk-tl-item { flex: 1; text-align: center; position: relative; }
.epk-tl-item:not(:first-child)::before { content: ""; position: absolute; top: 3px; left: -50%; width: 100%; height: 1px; background: #d8d4ca; }
.epk-tl-dot { display: block; width: 7px; height: 7px; border-radius: 50%; margin: 0 auto 2px; position: relative; background: var(--accent); }
.epk-tl-year { font-size: 10px; font-weight: 600; color: #111; }
.epk-tl-label { font-size: 9px; color: #666; line-height: 1.2; }
.epk-footer { flex: none; height: 25mm; display: flex; background: #111; color: #fff; }
.epk-footer-left, .epk-footer-right { flex: 1; padding: 3mm 5mm; display: flex; flex-direction: column; justify-content: center; }
.epk-footer-right { text-align: right; align-items: flex-end; }
.epk-footer-label { font-size: 8px; letter-spacing: .08em; color: rgba(255,255,255,.5); margin-bottom: 1mm; }
.epk-footer strong { font-size: 11px; color: #fff; }
.epk-footer span { font-size: 9.5px; color: rgba(255,255,255,.85); }
.epk-footer a { font-size: 9.5px; font-weight: 600; color: #fff; text-decoration: none; margin-top: 1mm; }
@media print {
  @page { size: A4; margin: 0; }
  body, html { background: #fff !important; }
  .topbar, .sidebar, .tabbar, .scrim, .back-link, .epk-wrap h1, .epk-wrap .lead, .epk-actions, .epk-wrap .note, #toast, .rm-grain::before { display: none !important; }
  main, .wrap, .epk-wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; }
  .epk-stage { height: auto !important; overflow: visible !important; margin: 0 !important; border-radius: 0; }
  .epk-scale { transform: none !important; }
  .epk-page { box-shadow: none; }
}

/* agente del pitch */
.agent-card { margin-bottom: 22px; box-shadow: inset 0 0 0 1px rgba(243,139,40,.35); }
.pa-out { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pa-box { background: #2A2A2A; border-radius: 12px; padding: 12px 14px; }
.pa-box .quote { margin: 8px 0 0; }
.g-item video, .photo-big video { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-big video { max-height: 60vh; object-fit: contain; background: #000; }

/* stampa e promozione */
.who-table { padding: 4px 16px; }
.who-row { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 0; border-top: 1px solid #2E2E2E; color: var(--ink); text-decoration: none; }
.who-row:first-child { border-top: 0; }
.who-row .w { flex: 0 0 72px; color: var(--accent-text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.who-row span:nth-child(2) { flex: 1; }
.fmt-meta { display: grid; gap: 10px; margin-bottom: 12px; }
.fmt-meta p { margin: 2px 0 0; }
.fmt-rules summary { cursor: pointer; }
.where-list { display: flex; flex-direction: column; }
.where-row { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid #2E2E2E; }
.where-row:first-child { border-top: 0; }
.where-row a { color: var(--ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.where-row a .ic { width: 14px; height: 14px; color: var(--accent-text); }
.iv-link { margin: 12px 0 14px; border: 1px solid var(--field); border-radius: 12px; }
/* intervista */
.iv-sec .iv-body { padding: 0 16px 10px; }
.iv-q { padding: 12px 0; border-top: 1px solid #2E2E2E; }
.iv-q:first-child { border-top: 0; }
.iv-t { margin: 0; font-weight: 600; }
.iv-h { margin: 4px 0 0; color: var(--ink-3); font-size: 14px; max-width: 62ch; }
.iv-opts { margin: 10px 0 8px; }
.chip { border: 1px solid var(--line); background: #262626; color: var(--ink-2); border-radius: 999px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip.on { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.iv-q textarea { width: 100%; min-height: 56px; margin-top: 8px; }
.iv-ro textarea, .iv-ro .chip { pointer-events: none; opacity: .75; }

.tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }
.tabs-row .tabs { margin: 0; }
.plan-btn { min-height: 44px; }

.watch-row { cursor: default; }
.watch-row .lr-t > span { display: block; margin-top: 2px; }
.watch-do { display: flex; gap: 6px; color: var(--ink-2); margin-top: 6px !important; }
.watch-do .ic { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--accent-text); }
.split-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; }
.split-people div { background: #2A2A2A; border-radius: 12px; padding: 12px; text-align: center; }
.split-people b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.split-people span { font-size: 13px; color: var(--ink-3); }
[hidden] { display: none !important; }

.deep { margin-top: 14px; padding-top: 10px; border-top: 1px solid #2E2E2E; }
.deep h3 { font-size: 16px; margin: 16px 0 6px; }
.deep p, .deep li { color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--raccoon); font: inherit; font-size: inherit; text-decoration: underline; cursor: pointer; }

.proj-box { background: var(--panel); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; }
.proj-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.proj-head:hover { background: #262626; }
.proj-cover { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #2A2A2A; display: grid; place-items: center; color: var(--accent-text); flex: none; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-tracks { border-radius: 0; background: #1A1A1A; }
.proj-tracks .list-row { padding-left: 32px; }
.inbox-row { cursor: default; }
.who-row { border: 0; background: transparent; width: 100%; font: inherit; cursor: pointer; text-align: left; }
.seg-sm span { min-height: 40px; font-size: 14px; padding: 0 8px; }
.field.is-off { opacity: .45; }
@media (max-width: 640px) { .plan-row { grid-template-columns: 20px 1fr 44px; } .plan-row .field:nth-child(3), .plan-row .field:nth-child(4) { grid-column: 2; } }
.gap-seg { width: max-content; }
.gap-seg span { min-width: 44px; }
.plan-step { cursor: pointer; grid-template-columns: 24px 64px 1fr; }
.plan-step input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.plan-step.off { opacity: .45; }
.plan-step.off strong { text-decoration: line-through; }

.arch-sec { margin-bottom: 12px; }
.arch-sec .arch-body { padding: 0 16px 16px; }
.arch-sec .proj-box { background: #1A1A1A; }
.arch-sec .proj-tracks { background: #161616; }
.arch-sec .kv { border-color: #2A2A2A; }
.dist-bar { margin-bottom: 14px; }

.row-dl { display: flex; align-items: stretch; background: var(--panel); }
.row-dl + .row-dl { border-top: 1px solid var(--line); }
.row-dl .arch-row { flex: 1; min-width: 0; }
.row-dl .dl-side { display: flex; align-items: center; gap: 6px; padding: 0 12px 0 0; flex-wrap: wrap; justify-content: flex-end; }
.proj-tracks .row-dl { background: transparent; }
.proj-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 12px 94px; }
.proj-actions:empty { display: none; }
@media (max-width: 640px) { .row-dl { flex-direction: column; } .row-dl .dl-side { padding: 0 16px 12px 70px; justify-content: flex-start; } .proj-actions { padding-left: 16px; } }

/* card delle uscite */
.rel-card { background: #1A1A1A; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.rel-head { display: flex; gap: 16px; align-items: flex-start; }
.rel-cover { width: 120px; height: 120px; flex: none; border-radius: 10px; overflow: hidden; background: #2A2A2A; border: 0; padding: 0; cursor: pointer; }
.rel-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-nocover { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 4px; color: var(--ink-3); }
.rel-nocover small { font-size: 13px; }
.rel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rel-type { font-size: 13px; color: var(--ink-3); }
.rel-title { all: unset; cursor: pointer; font-size: 22px; font-weight: 600; line-height: 1.15; display: inline-flex; align-items: center; gap: 6px; }
.rel-title .chev { width: 18px; height: 18px; color: var(--ink-3); }
.rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.rel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.rel-tracks { margin-top: 12px; border-top: 1px solid #2A2A2A; }
.trk { display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #242424; min-height: 44px; }
.trk:last-child { border-bottom: 0; }
.trk-main { all: unset; flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 4px; border-radius: 8px; }
.trk-main:hover { background: #222; }
.trk-n { width: 22px; flex: none; text-align: center; color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.trk-n .ic { width: 16px; height: 16px; color: var(--accent-text); }
.trk-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.trk-code { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.trk-code.muted { color: var(--ink-3); }
.trk-warn .ic { width: 16px; height: 16px; color: #F5C27A; }
.trk-dl { display: flex; align-items: center; gap: 4px; flex: none; }
.dl-mini { width: 40px; height: 40px; }
.trk-fmt { font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--field); border-radius: 8px; padding: 4px 6px; text-decoration: none; }
@media (max-width: 640px) {
  .rel-cover { width: 88px; height: 88px; }
  .rel-title { font-size: 19px; }
  .trk-code { display: none; }
}

.indie-kpi .kpi { font-size: 40px; }
.indie-row { padding: 12px 0; border-top: 1px solid #2E2E2E; }
.indie-row:first-child { border-top: 0; }
.indie-table th, .indie-table td { vertical-align: top; font-size: 14px; }
.indie-table thead th:nth-child(3), .indie-table td:nth-child(3) { background: rgba(243,139,40,.08); }
.hbar-top > span { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.hbar-top > strong { flex: none; }
.hbar-top > span strong { white-space: normal; font-size: 15px; }

/* ---------- firma dei contratti ---------- */
.firma-mode .sidebar, .firma-mode .tabbar, .firma-mode .menu-btn, .firma-mode .scrim { display: none !important; }
.firma-mode main { margin-left: 0; }
@media (min-width: 1024px) {
  .firma-mode .topbar { display: flex; align-items: center; gap: 12px; position: relative; background: #0A0A0A; border-bottom: 1px solid #1E1E1E; padding: 12px 24px; }
  .firma-mode .topbar .rm-stripes { position: absolute; left: 0; right: 0; top: 0; --rm-stripe-h: 2px; }
  .firma-mode .brand-mini { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .firma-mode .brand-mini img { width: 30px; height: 30px; }
  .firma-mode .brand-mini .page-name { font-weight: 600; font-size: 15px; }
}
.sg-wrap { max-width: 900px; }
.sg-who .prog-stripes { margin: 10px 0 14px; }
.sg-people { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-person { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: var(--r-sm); background: #2A2A2A; min-width: 150px; flex: 1 1 150px; transition: background-color .15s; }
.sg-person:hover { background: #333; }
.sg-person:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sg-person strong { font-size: 15px; font-weight: 600; }
.sg-person span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.sg-person .ic { width: 15px; height: 15px; }
.sg-person .ic.ok { color: var(--good); }
.sg-person.on { background: var(--ink); color: #0A0A0A; }
.sg-person.on span { color: #4A4743; }
.sg-person.on .ic.ok { color: #2E7A4B; }
.sg-mine { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.sg-data { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); background: #262626; margin-bottom: 10px; }
.sg-data span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sg-data .ic { width: 16px; height: 16px; color: var(--good); flex: none; }
.sg-data.warn { background: rgba(233,180,76,.12); }
.sg-data.warn .ic { color: var(--mid); }
.sg-acts { display: grid; gap: 8px; }
.sg-act { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: #262626; cursor: pointer; transition: background-color .15s; }
.sg-act:hover { background: #2E2E2E; }
.sg-act:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sg-act > span:not(.sg-go) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sg-act small { font-size: 13px; color: var(--ink-3); }
.sg-act > .ic { color: var(--accent-text); }
.sg-act .sg-go { flex: none; background: var(--accent); color: #0A0A0A; font-weight: 600; font-size: 14px; border-radius: 999px; padding: 6px 14px; }
.sg-act.done { cursor: default; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.sg-act.done > .ic { color: var(--good); }
.sg-meta { margin-bottom: 16px; }
.sg-pages { display: grid; gap: 18px; }
.sg-page { position: relative; background: #fff; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 595.28 / 841.89; --u: 1px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); }
.sg-page > img { width: 100%; height: 100%; display: block; }
.sg-txt { position: absolute; font-family: Helvetica, Arial, sans-serif; font-size: calc(var(--u) * var(--s)); line-height: 1; color: #111; white-space: nowrap; pointer-events: none; }
.sg-txt.b { font-weight: 700; }
.sg-txt.c { transform: translateX(-50%); }
.sg-slot { position: absolute; display: flex; align-items: flex-end; }
.sg-slot > img { max-width: 100%; max-height: 100%; object-fit: contain; object-position: left bottom; }
.sg-slot.empty { border-radius: 4px; background: rgba(243,139,40,.10); }
.sg-slot.empty.mine { background: rgba(243,139,40,.22); box-shadow: inset 0 0 0 1px rgba(243,139,40,.8); }
.sg-slot button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px dashed #8A857D; background: rgba(250,247,241,.92); color: #333; font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.sg-slot.mine button { border: 0; background: var(--accent); color: #0A0A0A; box-shadow: 0 4px 12px -4px rgba(0,0,0,.45); }
.sg-slot button .ic { width: 14px; height: 14px; }
.sg-page.narrow .sg-slot.empty:not(.mine) button { inset: 0; transform: none; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; font-size: 0; }
.sg-page.narrow .sg-slot.empty:not(.mine) { box-shadow: inset 0 0 0 1px rgba(138,133,125,.55); }
.sg-table td, .sg-table th { white-space: nowrap; vertical-align: middle; }
.sg-table td:first-child { white-space: normal; min-width: 150px; }
.sg-table .sg-ok { color: var(--good); }
.sg-table .ic { width: 16px; height: 16px; vertical-align: -3px; }
.sg-dl { margin: 14px 0 6px; }
.sg-leo .sg-link { display: flex; gap: 8px; margin: 6px 0 8px; flex-wrap: wrap; }
.sg-leo .sg-link input { flex: 1 1 260px; min-width: 0; font-size: 14px; }
.sg-legal { margin-top: 22px; }
.sg-legal summary { cursor: pointer; }
.sg-card { margin-bottom: 14px; }
.sg-card-top { display: flex; gap: 12px; align-items: flex-start; }
.sg-card-top .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #0A0A0A; flex: none; }
.sg-card .prog-stripes { margin-top: 12px; }
.sg-as { margin-top: 0; }
.sg-reuse { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r-sm); background: #2A2A2A; margin-bottom: 10px; cursor: pointer; }
.sg-reuse input { width: 20px; height: 20px; accent-color: var(--accent); }
.sg-reuse img { height: 44px; max-width: 200px; object-fit: contain; background: #FAF7F1; border-radius: 6px; padding: 4px 8px; margin-left: auto; }
.sg-pad { position: relative; height: 210px; background: #FAF7F1; border-radius: var(--r-sm); overflow: hidden; touch-action: none; }
.sg-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.sg-pad::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 52px; border-bottom: 1px solid #C9C2B6; }
.sg-pad-x { position: absolute; left: 10px; bottom: 54px; color: #9A9389; font: 400 20px/1 var(--font); }
.sg-clear { position: absolute; right: 8px; top: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #C9C2B6; background: #FAF7F1; color: #333; font: 500 13px/1 var(--font); cursor: pointer; }
.sg-clear .ic { width: 14px; height: 14px; }
.sg-submit { margin-top: 14px; width: 100%; }
.sheet .err { color: var(--weak); margin: 10px 0 0; }
@media (max-width: 600px) {
  .sg-person { min-width: 0; flex-basis: calc(50% - 4px); }
  .sg-slot button { min-height: 24px; padding: 0 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sg-slot.empty.mine button { animation: sgPulse 1.6s ease-in-out 2; }
  @keyframes sgPulse { 50% { box-shadow: 0 0 0 6px rgba(243,139,40,.25); } }
}
.sg-docs { display: grid; gap: 10px; margin-top: 14px; }
.sg-doc-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); background: #262626; }
.sg-doc-thumb { flex: none; width: 74px; aspect-ratio: 595.28 / 841.89; border-radius: 4px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.sg-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sg-doc-ph { color: #8A857D; }
.sg-doc-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-doc-info .small .ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--good); }

/* ---------- lancio: percorso a serpente ---------- */
.fl-wrap { margin: 6px 0 28px; }
.fl-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.fl-wrap .prog-stripes { margin: 12px 0 14px; }
.fl-nextbar { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); margin-bottom: 16px; transition: background-color .15s; }
.fl-nextbar:hover { background: rgba(243,139,40,.2); }
.fl-nextbar > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-nextbar > .ic:first-child { color: var(--accent-text); }
.fl-snake { display: flex; flex-direction: column; }
.fl-row { display: grid; grid-template-columns: repeat(var(--k), minmax(0, 1fr)); gap: 0 34px; }
.fl-card { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 132px; padding: 14px 14px 12px; border-radius: var(--r-lg); background: var(--panel); transition: background-color .15s, transform .15s; }
.fl-card:hover { background: #262626; }
.fl-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-card strong { font-size: 15px; line-height: 1.25; font-weight: 600; }
.fl-n { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-3); background: #2A2A2A; font-variant-numeric: tabular-nums; }
.fl-n .ic { width: 14px; height: 14px; }
.fl-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #2A2A2A; color: var(--accent-text); margin-bottom: 4px; }
.fl-ic .ic { width: 18px; height: 18px; }
.fl-d { font-size: 13px; color: var(--ink-2); }
.fl-x { font-size: 13px; color: var(--ink-3); }
.fl-st { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.fl-card.st-fatto { background: rgba(93,192,138,.08); box-shadow: inset 0 0 0 1px rgba(93,192,138,.35); }
.fl-card.st-fatto .fl-n { background: var(--good); color: #0A0A0A; }
.fl-card.st-fatto .fl-ic { color: var(--good); }
.fl-card.st-fatto .fl-st { color: var(--good); }
.fl-card.st-in-corso .fl-st { color: var(--mid); }
.fl-card.next { box-shadow: inset 0 0 0 2px var(--accent); }
.fl-card.next .fl-st { color: var(--accent-text); }
.fl-card.late:not(.st-fatto) .fl-d { color: var(--weak); }
/* frecce tra le card della stessa riga */
.fl-row .fl-card::after { content: ""; position: absolute; top: 50%; right: -26px; width: 18px; height: 18px; transform: translateY(-50%); background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.fl-row .fl-card:last-child::after, .fl-row .fl-card:has(+ .fl-empty)::after { display: none; }
.fl-row.rev .fl-card::after { right: auto; left: -26px; transform: translateY(-50%) rotate(180deg); }
.fl-row.rev .fl-card:last-child::after { display: block; }
.fl-row.rev .fl-card:first-of-type::after, .fl-row.rev .fl-empty + .fl-card::after { display: none; }
/* svolta tra una riga e l'altra */
.fl-turn { display: grid; grid-template-columns: repeat(var(--k), minmax(0, 1fr)); gap: 0 34px; height: 30px; }
.fl-turn span { display: grid; place-items: center; color: var(--ink-3); }
.fl-turn span .ic { transform: rotate(90deg); }
.fl-turn.right span { grid-column: var(--k); }
.fl-turn.left span { grid-column: 1; }
.fl-turn.one span { grid-column: 1; }
.fl-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-detail { display: grid; gap: 12px; margin-top: 8px; }
.fl-detail p { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 419px) {
  .fl-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
  .fl-card strong { flex: 1; min-width: 60%; }
  .fl-ic { margin: 0; }
  .fl-d, .fl-x, .fl-st { flex-basis: 100%; padding-left: 44px; }
  .fl-st { padding-top: 0; }
  .fl-n { top: 14px; }
}

/* ---------- dashboard: righe di band, card di uscite da scorrere ---------- */
.fh-row { margin: 0 0 28px; }
.fh-row-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.fh-row-head h2 { margin: 0; }
.fh-row-head h2 a { color: inherit; text-decoration: none; }
.fh-nav { margin-left: auto; display: inline-flex; gap: 6px; align-self: center; }
.fh-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(600px, 88%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.fh-track::-webkit-scrollbar { display: none; }
.fh-track.one { grid-auto-columns: min(760px, 100%); }
.fh-card { scroll-snap-align: start; margin: 0; }
.fh-top { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.fh-top .focus-img { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: rgba(127,127,127,.15); }
.fh-top .focus-img img { width: 100%; height: 100%; object-fit: cover; }
.fh-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fh-name { font-size: 22px; line-height: 1.15; }
.fh-next { font-size: 15px; }
.fh-next b { font-weight: 500; color: var(--accent); }
.fh-next .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--good); }
.fh-card .prog-stripes { margin: 14px 0 12px; }
.fh-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.fh-step { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px 0 4px; border-radius: 999px; background: rgba(127,127,127,.1); color: inherit; text-decoration: none; font-size: 13px; transition: background-color .15s; }
.fh-step:hover { background: rgba(243,139,40,.18); }
.fh-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(127,127,127,.18); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; }
.fh-n .ic { width: 14px; height: 14px; }
.fh-step.st-fatto { opacity: .75; }
.fh-step.st-fatto .fh-n { background: var(--good); color: #fff; }
.fh-step.st-in-corso .fh-n { box-shadow: inset 0 0 0 2px var(--accent); }
.fh-step.next { background: var(--accent); color: #0A0A0A; font-weight: 500; }
.fh-step.next .fh-n { background: #0A0A0A; color: #fff; }
.fh-step.late:not(.next) { box-shadow: inset 0 0 0 1px var(--weak); }
.fh-arrow { display: inline-flex; color: #8A857D; }
.fh-arrow .ic { width: 14px; height: 14px; }
.fh-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.fh-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(127,127,127,.35); cursor: pointer; transition: background-color .15s, width .25s; }
.fh-dots button.on { width: 22px; border-radius: 4px; background: var(--accent); }
.fh-empty { max-width: 600px; }
@media (max-width: 600px) { .fh-t { display: none; } .fh-step { padding: 0 4px; } .fh-step.next .fh-t { display: inline; } .fh-step.next { padding-right: 10px; } .fh-nav { display: none; } .fh-name { font-size: 20px; } }
.sg-linkrow { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sg-linkrow:first-of-type { border-top: 0; padding-top: 0; }
.sg-linkrow .sg-link { margin-top: 8px; }
.fl-band { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-3, #A8A29A); }
.fl-band .ic { width: 13px; height: 13px; }
.fl-none { max-width: 560px; }

/* ---------- vista della band ---------- */
.bt-list .bt-row { align-items: center; }
.bt-row .btn.sm { flex: none; }
.bt-row.bt-done { opacity: .7; }
.bt-row.bt-done .ti { background: var(--good); color: #fff; }
.bt-donebox { margin-top: 10px; }
.bt-donebox summary { cursor: pointer; color: #A8A29A; font-size: 13px; padding: 6px 0; }
.fl-who { font-size: 13px; font-weight: 500; }
.fl-card.who-band .fl-who { color: var(--accent); }
.band-mode .fl-card.who-rc { opacity: .55; }
.band-mode .fl-card.who-band { box-shadow: inset 0 0 0 2px var(--accent); }
.band-mode .fh-step[data-who="rc"]:not(.next) { opacity: .5; }
.band-mode .fh-step[data-who="band"]:not(.next):not(.st-fatto) { box-shadow: inset 0 0 0 2px var(--accent); }
.fl-wholine { margin: -2px 0 14px; padding: 10px 12px; border-radius: 8px; background: rgba(127,127,127,.1); font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.fl-wholine.band { background: rgba(243,139,40,.16); }
.fl-wholine .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* ---------- lezioni ---------- */
.lz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 8px; }
.lz-card { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(127,127,127,.1); color: inherit; text-decoration: none; transition: background-color .15s; }
.lz-card:hover { background: rgba(243,139,40,.14); }
.lz-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.lz-card > span:nth-child(2) > span { font-size: 13px; color: #A8A29A; }
.lz-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(127,127,127,.2); font-weight: 500; font-variant-numeric: tabular-nums; }
.lz-card.done .lz-num { background: var(--good); color: #fff; }
.lz-num .ic { width: 16px; height: 16px; }
.lz-wrap { max-width: 720px; }
.lz-title { margin-bottom: 12px; }
.lz-dots { display: flex; gap: 6px; margin: 0 0 14px; }
.lz-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(127,127,127,.3); transition: background-color .25s; }
.lz-dots i.on { background: var(--accent); }
.lz-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 16px; outline: none; }
.lz-track::-webkit-scrollbar { display: none; }
.lz-slide { scroll-snap-align: start; scroll-snap-stop: always; min-height: 420px; padding: 24px 22px; background: rgba(127,127,127,.1); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.lz-slide h2 { margin: 0; font-size: 26px; line-height: 1.15; }
.lz-k { font-size: 13px; color: #A8A29A; font-variant-numeric: tabular-nums; }
.lz-say { font-size: 17px; line-height: 1.45; margin: auto 0 0; }
.lz-end { align-items: flex-start; justify-content: center; }
.lz-end .lz-say { margin: 0; }
.lz-ok { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--good); color: #fff; }
.lz-nav { display: flex; justify-content: space-between; margin-top: 14px; }
.lz-big strong { display: block; font-size: 40px; line-height: 1.05; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.lz-big span { display: block; margin-top: 8px; font-size: 16px; color: #A8A29A; }
.lz-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lz-vs > div { padding: 14px; border-radius: 8px; background: rgba(127,127,127,.12); }
.lz-vs strong { display: block; font-size: 19px; margin: 8px 0 4px; }
.lz-vs p { margin: 0; font-size: 14px; color: #A8A29A; }
.lz-tag { display: inline-block; padding: 2px 8px; border-radius: 8px; background: var(--accent); color: #0A0A0A; font-size: 13px; font-weight: 500; }
.lz-tag.alt { background: #0077C8; color: #fff; }
.lz-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.lz-box { padding: 8px 12px; border-radius: 8px; background: rgba(243,139,40,.18); font-size: 15px; font-weight: 500; }
.lz-flow.alt .lz-box { background: rgba(0,119,200,.22); }
.lz-arr { display: inline-flex; color: #8A857D; }
.lz-arr .ic { width: 16px; height: 16px; }
.lz-rows { display: flex; flex-direction: column; border-radius: 8px; overflow: hidden; }
.lz-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(127,127,127,.1); font-size: 16px; }
.lz-rows > div + div { border-top: 1px solid rgba(127,127,127,.18); }
.lz-rows b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.lz-rows .hl { background: rgba(243,139,40,.2); }
.lz-rows .hl b { color: var(--accent); }
.lz-rows .bad b { color: #D9534F; }
.lz-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; }
.lz-bar span { display: flex; align-items: center; justify-content: center; color: #0A0A0A; font-size: 15px; }
.lz-bar span + span { color: #fff; }
.lz-legend { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; flex-wrap: wrap; }
.lz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.lz-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lz-list li { padding: 10px 14px; border-radius: 8px; background: rgba(127,127,127,.1); font-size: 16px; }
@media (max-width: 600px) { .lz-slide { min-height: 62vh; padding: 20px 16px; } .lz-big strong { font-size: 34px; } .lz-vs { grid-template-columns: 1fr; } }
.iv-export { gap: 8px; margin: 0 0 14px; }

/* ---------- notifiche ---------- */
.bell-btn { margin-left: auto; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; }
.bell-btn .ic { width: 22px; height: 22px; }
.bell-btn[hidden], .bell-side[hidden] { display: none; }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #0A0A0A; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; }
.bell-side { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.bell-side .count.on { background: var(--accent); color: #0A0A0A; }
.ev-row.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }
.ev-row.good .ti { background: var(--good); color: #fff; }
.ev-home { margin: 6px 0 24px; }
.push-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.push-box > div:first-child { display: flex; flex-direction: column; gap: 2px; max-width: 420px; }
.push-box strong .ic { width: 16px; height: 16px; vertical-align: -2px; }

/* invio dei comunicati */
.pr-row { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 10px; background: #242424; }
.pr-row.off { opacity: .7; }
.pr-top { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; }
.pr-top label { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.pr-top input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); }
.pr-row textarea { min-height: 76px; margin-top: 10px; width: 100%; }

/* lancio: data modificabile e step aggiunti a mano */
.fl-add { margin: 10px 0 0; }
.fl-card.custom:not(.next):not(.st-fatto) { box-shadow: inset 0 0 0 1px var(--line); background: transparent; }
.fl-card.custom:not(.next):not(.st-fatto):hover { background: #202020; }
.fl-edit { margin-top: 16px; }
.fl-date-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.fl-date-row input[type=date] { flex: 1 1 180px; min-width: 0; }
.fl-edit .small { margin: 4px 0 0; }
.status-pick.two { grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.status-pick.two button.on { background: var(--accent); color: #0A0A0A; border-color: var(--accent); }
.pr-attach { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; margin: 4px 0 18px; }
.pr-attach > svg { flex: none; color: var(--accent); margin-top: 2px; }
.pr-attach > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

/* dati dell'app: passi del trasferimento */
.dt-step { border-top: 1px solid var(--line); padding: 18px 0 6px; }
.dt-step h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.dt-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); font-size: 15px; flex: none; }
.dt-step.on .dt-n { background: var(--accent); border-color: var(--accent); color: #0A0A0A; }
.dt-step.done .dt-n { background: transparent; border-color: var(--accent); color: var(--accent); }
