/* ─────────────────────────────────────────────
   Methood HUB · design system
   Identità Disobey: pittogramma "O" e lettering largo. Colori aziendali:
   nero #111115, bianco #FFFFFF, viola #916BCF (accento editoriale),
   verdino #20E8A6 (azioni e variazioni positive). Rosso solo per i cali.
   Caratteri: Saira (titoli e cifre), Geist (testo), Geist Mono (etichette dati).
   Raggi: pannelli 22px, elementi interni 12px, controlli a pillola.
   ───────────────────────────────────────────── */

@font-face { font-family: "Saira"; src: url("assets/fonts/saira-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 50% 125%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #ececf0;
  --surface-3: #e2e2e8;
  --line: rgba(17, 17, 21, 0.09);
  --line-2: rgba(17, 17, 21, 0.17);
  --ink: #111115;
  --ink-2: #4c4c57;
  --ink-3: #696974;
  --accent: #7350b4;
  --accent-fill: #916bcf;
  --accent-soft: rgba(145, 107, 207, 0.13);
  --brand-green: #20e8a6;
  --on-green: #111115;
  --up: #06805a;
  --up-fill: #06805a;
  --up-soft: rgba(32, 232, 166, 0.16);
  --down: #c43a3f;
  --down-soft: rgba(196, 58, 63, 0.09);
  --warn: #9a5b0c;
  --warn-soft: rgba(154, 91, 12, 0.11);
  --logo-outer: #111115;
  --logo-inner: #ffffff;
  --cta: #111115;
  --on-cta: #ffffff;
  --knob: #20e8a6;
  --shadow-1: 0 1px 0 rgba(17, 17, 21, 0.03), 0 1px 3px rgba(17, 17, 21, 0.05);
  --shadow-2: 0 2px 6px rgba(17, 17, 21, 0.04), 0 18px 40px -18px rgba(17, 17, 21, 0.22);
  --grain: 0.03;

  --font-display: "Saira", "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --r-panel: 22px;
  --r-inner: 12px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.32, 0.72, 0, 1);

  --z-sticky: 20;
  --z-side: 30;
  --z-scrim: 40;
  --z-dialog: 50;
  --z-grain: 60;

  --wrap: 1240px;
  --side-w: 272px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #111115;
    --surface: #1a1a21;
    --surface-2: #24242c;
    --surface-3: #2e2e37;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --ink: #f5f5f7;
    --ink-2: #b4b4bf;
    --ink-3: #8a8a96;
    --accent: #b39be4;
    --accent-fill: #916bcf;
    --accent-soft: rgba(145, 107, 207, 0.18);
    --brand-green: #20e8a6;
    --on-green: #111115;
    --up: #20e8a6;
    --up-fill: #20e8a6;
    --up-soft: rgba(32, 232, 166, 0.13);
    --down: #ff7183;
    --down-soft: rgba(255, 113, 131, 0.13);
    --warn: #f0b357;
    --warn-soft: rgba(240, 179, 87, 0.13);
    --logo-outer: #ffffff;
    --logo-inner: #111115;
    --cta: #20e8a6;
    --on-cta: #111115;
    --knob: rgba(17, 17, 21, 0.12);
    --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --grain: 0.045;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111115;
  --surface: #1a1a21;
  --surface-2: #24242c;
  --surface-3: #2e2e37;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --ink: #f5f5f7;
  --ink-2: #b4b4bf;
  --ink-3: #8a8a96;
  --accent: #b39be4;
  --accent-fill: #916bcf;
  --accent-soft: rgba(145, 107, 207, 0.18);
  --brand-green: #20e8a6;
  --on-green: #111115;
  --up: #20e8a6;
  --up-fill: #20e8a6;
  --up-soft: rgba(32, 232, 166, 0.13);
  --down: #ff7183;
  --down-soft: rgba(255, 113, 131, 0.13);
  --warn: #f0b357;
  --warn-soft: rgba(240, 179, 87, 0.13);
  --logo-outer: #ffffff;
  --logo-inner: #111115;
  --cta: #20e8a6;
  --on-cta: #111115;
  --knob: rgba(17, 17, 21, 0.12);
  --shadow-1: 0 1px 0 rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --grain: 0.045;
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; touch-action: manipulation; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on;
}
/* grana leggera, fissa e non interattiva */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
kbd { font-family: var(--font-mono); }
.num, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent-fill) 30%, transparent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: var(--z-dialog); padding: 10px 16px; border-radius: var(--r-pill); background: var(--cta); color: var(--on-cta); font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 12px; }

.ico { width: 1.15em; height: 1.15em; flex: none; display: block; }
.logo { display: block; height: 100%; width: auto; }
.logo .lo-outer { fill: var(--logo-outer); }
.logo .lo-inner { fill: var(--logo-inner); }

/* ───────── shell ───────── */
.app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  transition: grid-template-columns 0.42s var(--ease);
  overflow-x: clip;
}
.app.side-collapsed { grid-template-columns: 0 minmax(0, 1fr); }

.sidebar {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  width: var(--side-w);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 18px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-right: 1px solid var(--line);
  transition: transform 0.42s var(--ease), visibility 0.42s;
  z-index: var(--z-side);
  scrollbar-width: thin;
}
.app.side-collapsed .sidebar { transform: translateX(-100%); visibility: hidden; }
.sidebar > * { flex-shrink: 0; }

.side-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 0; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); text-decoration: none; }
.brand-mark { height: 38px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-name { font-family: var(--font-display); font-stretch: 108%; font-weight: 760; font-size: 19px; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.brand-by { display: flex; align-items: center; gap: 6px; height: 10px; color: var(--ink-3); }
.brand-by .by { font-size: 11px; line-height: 1; }
.brand-by [data-brand] { height: 10px; display: block; }
.sidebar .side-close { margin-left: auto; display: none; }

.side-edition {
  position: relative; overflow: hidden;
  display: grid; gap: 2px;
  padding: 14px 16px 15px; border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.side-edition:empty { display: none; }
.side-edition .lbl { font-size: 12px; color: var(--ink-3); }
.side-edition strong { font-family: var(--font-display); font-stretch: 104%; font-weight: 720; font-size: 20px; white-space: nowrap; line-height: 1.15; letter-spacing: -0.01em; }
.side-edition .vs { font-size: 12.5px; color: var(--ink-2); }
.side-edition { padding-right: 52px; }
.side-edition .wm { position: absolute; right: 14px; top: 14px; height: 26px; opacity: 0.14; pointer-events: none; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-group { display: flex; align-items: baseline; gap: 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 14px 10px 6px; }
.nav-group:first-child { padding-top: 2px; }
.nav-group b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; color: var(--ink-3); opacity: 0.8; }
.nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  min-height: 40px; padding: 0 10px;
  border-radius: var(--r-inner);
  color: var(--ink-2); text-decoration: none;
  font-weight: 500; font-size: 14.5px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a .ico { width: 19px; height: 19px; opacity: 0.85; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.nav a[aria-current="page"] .ico { opacity: 1; }
.nav .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-links a {
  display: flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 10px; border-radius: var(--r-inner);
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.side-links a .ico { width: 17px; height: 17px; }
.side-links a .ext { margin-left: auto; width: 13px; height: 13px; opacity: 0.6; }
.side-links a:hover { background: var(--surface-2); color: var(--ink); }
.side-links a.feedback { margin-top: 4px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-links a.feedback:hover { background: color-mix(in srgb, var(--accent-fill) 24%, transparent); color: var(--accent); }

.theme-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.theme-switch button { border: 0; background: transparent; cursor: pointer; min-height: 30px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--ink-3); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

.main { min-width: 0; display: flex; flex-direction: column; padding-inline: clamp(16px, 3.6vw, 52px); }
.top-sentinel { display: block; height: 1px; margin-bottom: -1px; }

.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
  margin-inline: calc(-1 * clamp(16px, 3.6vw, 52px));
  padding: env(safe-area-inset-top, 0px) clamp(16px, 3.6vw, 52px) 0;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.top-mark { display: none; height: 30px; flex: none; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--ink-3); text-decoration: none; transition: color 0.2s var(--ease); }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { opacity: 0.5; }
.crumbs strong { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .ed-badge { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; padding: 0;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease-press);
}
.icon-btn .ico { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }

.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  height: 38px; padding: 0 8px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-size: 13.5px; font-weight: 500;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease-press);
}
.search-trigger .ico { width: 17px; height: 17px; }
.search-trigger kbd { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: var(--surface-2); font-size: 12px; color: var(--ink-3); }
.search-trigger:hover { border-color: var(--ink-3); color: var(--ink); }
.search-trigger:active { transform: scale(0.98); }

/* barra di lettura: animazione legata allo scroll, solo dove il browser la supporta */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; display: none; }
.progress i { display: block; height: 100%; background: var(--accent-fill); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .reading-page .progress { display: block; }
  .reading-page .progress i { animation: grow linear both; animation-timeline: scroll(root block); }
  @keyframes grow { to { transform: scaleX(1); } }
}

#view { container-type: inline-size; container-name: view; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 8px 0 72px; outline: none; }
.view { display: flex; flex-direction: column; gap: 56px; }

.site-foot { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 28px 0 calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; color: var(--ink-3); font-size: 13px; }
.site-foot:empty { display: none; }
.site-foot .foot-logo { height: 26px; display: block; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }

/* ───────── controlli ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  height: 44px; padding: 0 6px 0 20px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease-press);
}
.btn .knob { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); transition: transform 0.35s var(--ease); }
.btn .knob .ico { width: 16px; height: 16px; }
.btn:hover { border-color: var(--ink-3); }
.btn:hover .knob { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--cta); border-color: var(--cta); color: var(--on-cta); }
.btn.primary .knob { background: var(--knob); color: var(--on-green); }
.btn.primary:hover { border-color: var(--cta); background: color-mix(in srgb, var(--cta) 90%, var(--accent-fill)); }
.btn.plain { padding: 0 18px; }
.btn.small { height: 36px; font-size: 13.5px; padding: 0 14px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link .ico { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.text-link:hover .ico { transform: translateX(3px); }

/* variazioni: segno + freccia + colore, mai solo colore */
.delta {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px 2px 6px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.delta .ico { width: 13px; height: 13px; }
.delta.up { background: var(--up-soft); color: var(--up); }
.delta.down { background: var(--down-soft); color: var(--down); }
.delta.flat { padding-left: 8px; }
.pos { color: var(--up); font-weight: 600; white-space: nowrap; }
.neg { color: var(--down); font-weight: 600; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
  vertical-align: 2px;
}
.tag.hot { background: var(--ink); color: var(--paper); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.teal { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag.down { background: var(--down-soft); color: var(--down); }
.tag.up { background: var(--up-soft); color: var(--up); }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.kicker .ico { width: 16px; height: 16px; }
a.kicker:hover { text-decoration: underline; }
.label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

/* ───────── movimento ───────── */
.motion .view { animation: view-in 0.6s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }
.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .rv.in { opacity: 1; transform: none; }
.flash { animation: flash 2.2s ease; border-radius: 10px; }
@keyframes flash { 0%, 40% { background: var(--accent-soft); box-shadow: 0 0 0 8px var(--accent-soft); } }

/* ───────── prima pagina ───────── */
.edition-line {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding-top: 14px; border-top: 3px solid var(--ink);
  font-size: 13.5px; color: var(--ink-2);
}
.edition-line strong { font-family: var(--font-display); font-stretch: 108%; font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: -0.005em; }
.edition-line .rest { margin-left: auto; color: var(--ink-3); }

.lead-story { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-top: -24px; }
.lead-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lead-title {
  font-family: var(--font-display); font-stretch: 106%; font-weight: 780;
  font-size: clamp(2.2rem, 1.15rem + 2.5vw, 3.55rem); line-height: 1; letter-spacing: -0.02em;
}
.lead-dek { font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.32rem); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.lead-copy { display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; line-height: 1.65; max-width: 62ch; color: var(--ink); }
.lead-copy p { text-wrap: pretty; }
.lead-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.lead-copy { padding-top: 18px; border-top: 1px solid var(--line-2); }
.lead-kick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.lead-figures { display: flex; flex-direction: column; border-radius: var(--r-panel); background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line); overflow: hidden; }
.lead-figures header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; }
.lead-figures header h2 { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.lead-figures header .mark { height: 22px; opacity: 0.9; }
.fig { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 6px 14px; padding: 18px 22px 20px; border-top: 1px solid var(--line); }
.fig:first-of-type { border-top: 0; }
.fig .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 720; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1; letter-spacing: -0.02em; }
.fig .l { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }
.fig .delta { justify-self: end; margin-bottom: 4px; }
.fig .meter { grid-column: 1 / -1; height: 4px; border-radius: 4px; display: flex; gap: 0; position: relative; }

/* notizie di taglio: una grande + due in colonna */
.second { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.story { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story h3 { font-family: var(--font-display); font-stretch: 104%; font-weight: 720; font-size: clamp(1.35rem, 1.1rem + 0.6vw, 1.7rem); line-height: 1.08; letter-spacing: -0.012em; }
.story h3 a { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.45s var(--ease); }
.story h3 a:hover { background-size: 100% 2px; }
.story p { color: var(--ink-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.story .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.story.big { padding: 28px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); gap: 16px; }
.story.big h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); }
.story.big.up { background: radial-gradient(120% 70% at 100% 100%, var(--up-soft), transparent 60%), var(--surface); }
.story.big.down { background: radial-gradient(120% 70% at 100% 100%, var(--down-soft), transparent 60%), var(--surface); }
.story.big .bigfig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 18px 0 2px; margin-top: auto; border-top: 1px solid var(--line); }
.story .bigfig .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 740; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 0.95; letter-spacing: -0.02em; }
.story .bigfig .v.up { color: var(--up); } .story .bigfig .v.down { color: var(--down); }
.story .bigfig .l { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }
.second-col { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; min-width: 0; }
.story.row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--line-2); }
.story.row:first-child { padding-top: 4px; border-top: 0; }
.story.row .side-fig { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.story.row .side-fig .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 730; font-size: 1.8rem; line-height: 1; letter-spacing: -0.015em; white-space: nowrap; }
.story.row .side-fig .v.long { font-size: 1.35rem; }
.story .bigfig .v.long { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); }
.story.row .side-fig .v.up { color: var(--up); } .story.row .side-fig .v.down { color: var(--down); }
.story.row .side-fig .l { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.story.row .body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

/* sezione con titolo */
.block-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.block-head h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 740; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); line-height: 1.02; letter-spacing: -0.015em; }
.block-head p { color: var(--ink-2); font-size: 15px; max-width: 60ch; }

/* la settimana in sei numeri: tabella-grafico con barre divergenti dallo zero */
.kpi-board { border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 8px 26px; }
.kpi-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(130px, 0.9fr) minmax(200px, 1.5fr) minmax(0, 1.6fr); align-items: center; gap: 22px; padding: 18px 0; border-top: 1px solid var(--line); }
.kpi-row:first-child { border-top: 0; }
.kpi-row .k-l { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 14.5px; }
.kpi-row .k-l small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.kpi-row .k-v { display: flex; flex-direction: column; gap: 3px; }
.kpi-row .k-v .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 720; font-size: 1.85rem; line-height: 1; letter-spacing: -0.015em; }
.kpi-row .k-v small { font-size: 12.5px; color: var(--ink-3); }
.kpi-row .k-n { font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.div-bar { position: relative; height: 34px; }
.div-bar::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--line-2); }
.div-bar i { position: absolute; top: 50%; height: 10px; margin-top: -5px; width: calc(var(--w) * 38%); transform-origin: left center; transform: scaleX(0); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
.div-bar.up i { left: 50%; background: var(--up-fill); border-radius: 0 4px 4px 0; }
.div-bar.down i { right: 50%; background: var(--down); border-radius: 4px 0 0 4px; transform-origin: right center; }
.div-bar b { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); opacity: 0; transition: opacity 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 700ms); }
.div-bar.up b { left: calc(50% + var(--w) * 38% + 8px); }
.div-bar.down b { right: calc(50% + var(--w) * 38% + 8px); }
.in .div-bar i, .div-bar.in i, :root:not(.motion) .div-bar i { transform: scaleX(1); }
.in .div-bar b, .div-bar.in b, :root:not(.motion) .div-bar b { opacity: 1; }
.kpi-surprise { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 24px; align-items: center; margin: 4px -14px 10px; padding: 18px 20px; border-radius: 16px; background: var(--ink); color: var(--paper); }
.kpi-surprise .tag { background: color-mix(in srgb, var(--paper) 14%, transparent); color: var(--paper); grid-row: span 2; align-self: start; margin-top: 4px; }
.kpi-surprise .v { font-family: var(--font-display); font-stretch: 106%; font-weight: 740; font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.01em; }
.kpi-surprise .v small { font-family: var(--font-text); font-weight: 500; font-size: 13px; opacity: 0.7; margin-left: 8px; letter-spacing: 0; }
.kpi-surprise p { font-size: 14px; opacity: 0.8; }

/* gruppi e notizie per sezione */
.group { display: flex; flex-direction: column; }
.group-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 6px 20px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.group-n { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(3.4rem, 2.6rem + 2.4vw, 5rem); line-height: 0.78; color: transparent; -webkit-text-stroke: 1.5px var(--ink); letter-spacing: -0.04em; }
.group-head h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 750; font-size: clamp(1.7rem, 1.25rem + 1.3vw, 2.5rem); line-height: 1; letter-spacing: -0.015em; }
.group-head p { grid-column: 2; color: var(--ink-2); font-size: 15px; }
.brief { display: grid; grid-template-columns: minmax(0, 1fr) 236px; gap: 20px 40px; padding: 30px 0; border-bottom: 1px solid var(--line-2); }
.brief:last-child { border-bottom: 0; }
.brief-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brief .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.brief .meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); opacity: 0.5; }
.brief h3 { font-family: var(--font-display); font-stretch: 104%; font-weight: 730; font-size: clamp(1.45rem, 1.15rem + 0.8vw, 1.95rem); line-height: 1.05; letter-spacing: -0.012em; }
.brief h3 a { color: inherit; text-decoration: none; }
.brief h3 a:hover { color: var(--accent); }
.brief-dek { font-size: 17px; line-height: 1.55; max-width: 60ch; text-wrap: pretty; }
.brief-synth { font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 66ch; text-wrap: pretty; padding-left: 14px; border-left: 2px solid var(--accent-fill); }
.brief-synth .lbl { display: block; font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.brief-fig { align-self: start; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.brief-fig .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 740; font-size: 2.15rem; line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.brief-fig.up .v { color: var(--up); } .brief-fig.down .v { color: var(--down); }
.brief-fig .l { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.brief-fig .delta { align-self: flex-start; }

details.more { border-top: 1px solid var(--line); }
details.more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; font-size: 14.5px; font-weight: 600; color: var(--ink); transition: color 0.2s var(--ease); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary .plus { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); flex: none; transition: background-color 0.2s var(--ease), transform 0.4s var(--ease); }
details.more > summary .plus::before, details.more > summary .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; margin: -0.75px 0 0 -5px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--ease); }
details.more > summary .plus::after { transform: rotate(90deg); }
details.more[open] > summary .plus::after { transform: rotate(0deg); }
details.more > summary:hover { color: var(--accent); }
details.more > summary:hover .plus { background: var(--accent-soft); }
details.more > summary small { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--ink-3); }
details.more > .more-body { padding: 4px 0 20px 32px; }
.brief-more { display: flex; flex-direction: column; margin-top: 6px; }
.brief-more .more:last-child { border-bottom: 1px solid var(--line); }

/* da tenere d'occhio e verifiche */
.two-up { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.panel > h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 740; font-size: clamp(1.45rem, 1.15rem + 0.8vw, 1.85rem); line-height: 1.05; letter-spacing: -0.012em; }
.panel > .sub { margin-top: 6px; color: var(--ink-3); font-size: 14px; }
.watch-list { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: w; display: flex; flex-direction: column; }
.watch-list li { counter-increment: w; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.watch-list li:first-child { border-top: 0; padding-top: 4px; }
.watch-list li::before { content: counter(w, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-stretch: 108%; font-weight: 760; font-size: 1.6rem; line-height: 1; color: var(--accent-fill); }
.watch-list strong { font-size: 16px; font-weight: 650; }
.watch-list span { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.checks li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; }
.checks li:first-child { border-top: 0; padding-top: 2px; }
.checks .st { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); margin-top: 1px; }
.checks .st .ico { width: 15px; height: 15px; }
.checks li.ok .st { background: var(--up-soft); color: var(--up); }
.checks li.fix .st { background: var(--warn-soft); color: var(--warn); }
.checks .what { display: block; font-size: 12px; font-weight: 700; margin-bottom: 1px; }
.checks li.ok .what { color: var(--up); } .checks li.fix .what { color: var(--warn); }
.checks .where { display: inline-flex; margin-left: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.checks .where:hover { text-decoration: underline; }

/* lettura complessiva */
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 68ch) minmax(0, 1fr); padding: clamp(32px, 5vw, 72px) clamp(20px, 4vw, 48px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.reading > * { grid-column: 2; }
.reading .wm { position: absolute; right: -60px; top: -40px; height: 260px; opacity: 0.045; pointer-events: none; grid-column: auto; }
.reading .kicker { margin-bottom: 14px; }
.reading h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 760; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1; letter-spacing: -0.018em; margin-bottom: 28px; }
.reading .btn { justify-self: start; margin-top: 18px; }

/* ───────── articolo ───────── */
.art-head { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; max-width: 980px; }
.art-head .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.art-meta { font-size: 13.5px; color: var(--ink-3); }
.art-title { font-family: var(--font-display); font-stretch: 106%; font-weight: 780; font-size: clamp(2.3rem, 1.2rem + 3.4vw, 4.1rem); line-height: 0.98; letter-spacing: -0.022em; }
.art-dek { font-size: clamp(1.12rem, 0.98rem + 0.5vw, 1.36rem); line-height: 1.45; color: var(--ink-2); max-width: 54ch; text-wrap: pretty; }

.figures { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.figures .f { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; border-left: 1px solid var(--line); min-width: 0; }
.figures .f:first-child { border-left: 0; padding-left: 0; }
.figures .l { font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.3; }
.figures .v { font-family: var(--font-display); font-stretch: 104%; font-weight: 740; font-size: clamp(1.8rem, 1.3rem + 1.3vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.figures .v.long { font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem); }
.figures .m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--ink-3); }
.figures .n { font-size: 13px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.art-main { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.art-layout:not(:has(.art-rail)) { grid-template-columns: minmax(0, 1fr); }
.art-rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100dvh - 110px); overflow-y: auto; scrollbar-width: none; padding-bottom: 12px; }
.art-rail::-webkit-scrollbar { display: none; }
.toc { display: flex; flex-direction: column; }
.toc .label { margin-bottom: 8px; }
.toc button { position: relative; text-align: left; border: 0; background: none; cursor: pointer; padding: 8px 0 8px 16px; font-size: 13.5px; line-height: 1.35; color: var(--ink-3); border-left: 2px solid var(--line); transition: color 0.2s var(--ease), border-color 0.2s var(--ease); }
.toc button:hover { color: var(--ink); }
.toc button[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--accent-fill); }
.glossary { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.glossary .label { display: block; margin-bottom: 10px; }
.glossary dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.glossary dt { font-weight: 650; }
.glossary dd { margin: 2px 0 0; color: var(--ink-2); }
.toc-mobile, .gloss-mobile { display: none; }

/* prosa */
.prose { font-size: 17px; line-height: 1.68; max-width: 68ch; }
.prose p { margin: 0 0 1em; text-wrap: pretty; hanging-punctuation: first; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 650; }
.prose a { font-weight: 500; }
.lead-prose { font-size: 18.5px; line-height: 1.62; }
.dropcap > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-stretch: 108%; font-weight: 800; font-size: 4.1em; line-height: 0.8; margin: 0.08em 0.1em 0 -0.02em; color: var(--accent-fill); }
.prose h3.cross { font-family: var(--font-display); font-stretch: 106%; font-weight: 720; font-size: 1.4rem; line-height: 1.1; letter-spacing: -0.01em; margin: 2em 0 0.7em; }
.prose > h3.cross:first-child { margin-top: 0; }
blockquote.pull { margin: 1.6em 0; padding: 0 0 0 22px; border-left: 3px solid var(--accent-fill); font-family: var(--font-display); font-stretch: 104%; font-weight: 680; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance; }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.facts li { position: relative; padding-left: 20px; text-wrap: pretty; }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-fill); }
.facts li.sub { padding-left: 0; font-weight: 700; margin-top: 8px; }
.facts li.sub::before { display: none; }
.facts.small { font-size: 14.5px; gap: 8px; }
.prose .facts { margin: 0.4em 0 1.2em; }

.sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 88px; }
.sec > h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 740; font-size: clamp(1.55rem, 1.2rem + 1vw, 2.15rem); line-height: 1.04; letter-spacing: -0.014em; padding-top: 18px; border-top: 1px solid var(--line-2); }
.sec-intro { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 66ch; }

/* classifica: tabella + barre sottili */
.board-panel { border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: 26px 26px 20px; scroll-margin-top: 88px; min-width: 0; }
.panel-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { font-family: var(--font-display); font-stretch: 106%; font-weight: 730; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.1; letter-spacing: -0.01em; }
.panel-head p { font-size: 13.5px; color: var(--ink-3); }
.board-scroll { overflow-x: auto; margin: 0 -10px; padding: 0 10px; scrollbar-width: thin; }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
table.board th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.board td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
table.board tbody tr:first-child td { border-top: 0; }
table.board tbody tr { transition: background-color 0.2s var(--ease); }
table.board tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.board th:first-child, table.board td:first-child { padding-left: 6px; }
table.board small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.b-rank { width: 34px; font-family: var(--font-display); font-stretch: 108%; font-weight: 720; font-size: 17px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.b-name { white-space: normal !important; min-width: 150px; }
.b-name strong { font-weight: 650; font-size: 14.5px; margin-right: 6px; }
.b-name a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.b-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.b-name small { white-space: normal; }
.b-name .tags { margin-top: 6px; display: flex; }
.b-val { min-width: 190px; }
.b-val .num { font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.bar { display: block; height: 8px; margin-bottom: 8px; position: relative; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--w) * 100%); min-width: 3px; background: var(--accent-fill); border-radius: 0 4px 4px 0; transform-origin: left center; transform: scaleX(0); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + 120ms); }
.bar i.neg { background: var(--down); }
.bar i.ghost { background: var(--ink-3); opacity: 0.45; }
.in .bar i, :root:not(.motion) .bar i { transform: scaleX(1); }
td.b-x { font-variant-numeric: tabular-nums; }
td.b-x .num { font-weight: 550; }
.muted { color: var(--ink-3); }
.q { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.q::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.q.ok { background: var(--up-soft); color: var(--up); }
.q.warn { background: var(--warn-soft); color: var(--warn); }
.q.bad { background: var(--down-soft); color: var(--down); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 12.5px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.legend .ok { color: var(--up); } .legend .warn { color: var(--warn); } .legend .bad { color: var(--down); }
.legend .ok + *, .legend span { color: var(--ink-3); }
.legend span i.ok { background: var(--up); } .legend span i.warn { background: var(--warn); } .legend span i.bad { background: var(--down); }
.board-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.6; text-wrap: pretty; }
.board-panel.inline { box-shadow: none; background: transparent; border: 0; padding: 0; }

/* profili */
.profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
.profiles.odd .profile:first-child { grid-column: 1 / -1; }
.pf-head { display: flex; gap: 16px; align-items: flex-start; }
.pf-rank { flex: none; min-width: 44px; font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: 2.6rem; line-height: 0.8; color: transparent; -webkit-text-stroke: 1.2px var(--ink-3); letter-spacing: -0.03em; }
.pf-name { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); }
.pf-head h3 { font-family: var(--font-display); font-stretch: 104%; font-weight: 720; font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.01em; margin-top: 4px; }
.pf-metrics { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-metrics span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 10px; background: var(--paper); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pf-metrics small { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.profile .prose { font-size: 15.5px; line-height: 1.62; }

/* elenco nome · testo */
.dlist { margin: 0; display: flex; flex-direction: column; }
.dlist > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.dlist > div:first-child { border-top: 0; padding-top: 4px; }
.dlist dt { font-weight: 700; font-size: 15px; }
.dlist dd { margin: 0; font-size: 15.5px; line-height: 1.62; text-wrap: pretty; }

/* fasce: barra proporzionale + tre colonne */
.buckets { display: flex; flex-direction: column; gap: 14px; }
.bucket-bar { display: flex; gap: 3px; height: 12px; }
.bucket-bar i { flex: var(--n) 1 0; min-width: 6px; border-radius: 4px; background: var(--tc); transform-origin: left center; transform: scaleX(0); transition: transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 120ms + 120ms); }
.in .bucket-bar i, :root:not(.motion) .bucket-bar i { transform: scaleX(1); }
.bucket-cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; }
.bucket { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.bucket.ok, .bucket-bar .ok { --tc: var(--up); } .bucket.warn, .bucket-bar .warn { --tc: var(--warn); } .bucket.bad, .bucket-bar .bad { --tc: var(--down); }
.bucket .bh { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 10px; margin-bottom: 12px; }
.bucket .bh strong { font-size: 15.5px; font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.bucket .bh strong::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.bucket .bh span { grid-column: 1; font-size: 12.5px; color: var(--ink-3); }
.bucket .bh em { grid-row: 1 / span 2; grid-column: 2; font-style: normal; font-family: var(--font-display); font-weight: 760; font-size: 2rem; line-height: 1; color: var(--ink); }
.bucket ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.bucket li { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.bucket li:first-child { border-top: 0; padding-top: 0; }
.bucket li b { font-weight: 600; font-family: var(--font-mono); font-size: 13px; }

/* schede */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 20px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); min-width: 0; overflow: hidden; }
.card::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tc, var(--line-2)); }
.card.ok { --tc: var(--up); } .card.warn { --tc: var(--warn); } .card.bad { --tc: var(--down); } .card.accent { --tc: var(--accent-fill); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.card-head strong { font-size: 16px; font-weight: 700; margin-right: auto; }
.card-val { font-family: var(--font-display); font-stretch: 104%; font-weight: 680; font-size: 1.15rem; line-height: 1.2; letter-spacing: -0.005em; }
.card p { font-size: 14.5px; line-height: 1.58; color: var(--ink-2); text-wrap: pretty; }
.legend.cards-legend { margin-top: 0; }

/* verdetto */
.verdict { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 88px; }
.verdict > p { font-size: 16.5px; line-height: 1.62; max-width: 66ch; text-wrap: pretty; }
.criteria { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.criteria li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 15px; line-height: 1.5; }
.criteria .ico { width: 20px; height: 20px; color: var(--up); margin-top: 1px; }
.vd-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vd { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.vd .vd-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.vd .vd-h .ico { width: 20px; height: 20px; padding: 3px; border-radius: 7px; }
.vd.good .vd-h { color: var(--up); } .vd.good .vd-h .ico { background: var(--up-soft); }
.vd.bad .vd-h { color: var(--down); } .vd.bad .vd-h .ico { background: var(--down-soft); }
.vd-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.vd-h + .vd-item { border-top: 0; padding-top: 0; }
.vd-item strong { font-weight: 650; }
.vd-item span { color: var(--ink-2); }

/* correzione */
.correction { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-panel); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent); scroll-margin-top: 88px; }
.correction .c-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--warn); }
.correction .c-lbl .ico { width: 18px; height: 18px; }
.correction h2 { font-family: var(--font-display); font-stretch: 106%; font-weight: 730; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.7rem); line-height: 1.08; letter-spacing: -0.01em; }
.correction p { font-size: 16px; line-height: 1.62; max-width: 66ch; }
.correction .facts li::before { background: var(--warn); }
.note-inline { padding: 14px 16px; border-radius: 14px; background: var(--warn-soft); font-size: 14.5px; line-height: 1.55; }
.note-inline .lbl { display: block; font-size: 12px; font-weight: 700; color: var(--warn); margin-bottom: 2px; }

/* fonti */
details.sources { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
details.sources > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 20px; font-weight: 600; font-size: 14.5px; }
details.sources > summary::-webkit-details-marker { display: none; }
details.sources > summary .ico { width: 18px; height: 18px; color: var(--ink-3); }
details.sources > summary small { margin-left: auto; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
details.sources[open] > summary { border-bottom: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 18px 20px 20px; }
figure.shot { margin: 0; display: flex; flex-direction: column; gap: 8px; }
figure.shot button { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; }
figure.shot img { display: block; width: 100%; height: auto; transition: transform 0.6s var(--ease); }
figure.shot button:hover img { transform: scale(1.02); }
figure.shot button .zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(28, 27, 26, 0.72); color: #fff; opacity: 0; transition: opacity 0.2s var(--ease); }
figure.shot button .zoom .ico { width: 17px; height: 17px; }
figure.shot button:hover .zoom, figure.shot button:focus-visible .zoom { opacity: 1; }
figcaption.shot-note { font-size: 12.5px; color: var(--ink-3); }

/* notion ripulito (deep dive) */
.md { font-size: 15.5px; line-height: 1.62; max-width: 72ch; }
.md > p, .md .prose p { margin: 0 0 0.9em; }
.md h3.h { font-family: var(--font-display); font-stretch: 104%; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.005em; margin: 1.6em 0 0.6em; }
.md h3.h:first-child { margin-top: 0; }
.md ul, .md ol { margin: 0 0 0.9em; padding-left: 1.2em; }
.md li { margin: 0.35em 0; }
.md li::marker { color: var(--accent-fill); }
.md .note-plain { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 0 0 14px; }
.md .note-plain p { margin: 0 0 0.6em; } .md .note-plain p:last-child { margin-bottom: 0; }
.md details.more { margin: 0; }
.md details.more > .more-body { padding-left: 0; }
.md blockquote { margin: 0 0 1em; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent-fill); }
.md .cols { display: grid; grid-template-columns: var(--cols); gap: 14px; margin: 0 0 14px; }

/* pagine successiva / precedente */
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pager a { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; transition: border-color 0.25s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.pager a:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pager a .knob { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); flex: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.pager a:hover .knob { background: var(--ink); color: var(--paper); }
.pager a .knob .ico { width: 18px; height: 18px; }
.pager a .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pager a .t small { font-size: 12.5px; color: var(--ink-3); }
.pager a .t strong { font-family: var(--font-display); font-stretch: 106%; font-weight: 720; font-size: 1.35rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager a.next { grid-column: 2; justify-content: flex-end; text-align: right; }

/* ───────── ricerca (palette) e lightbox ───────── */
.scrim { position: fixed; inset: 0; z-index: var(--z-scrim); background: color-mix(in srgb, var(--paper) 40%, rgba(10, 10, 10, 0.45)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.25s var(--ease); }
.side-scrim { z-index: calc(var(--z-side) - 1); }
@keyframes fade { from { opacity: 0; } }
.palette {
  position: fixed; z-index: var(--z-dialog); left: 50%; top: max(8vh, 24px);
  width: min(680px, calc(100vw - 24px)); max-height: min(78vh, 720px);
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2), 0 40px 80px -30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: pop 0.35s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(-8px) scale(0.985); } }
.palette .search-row { display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); transition: box-shadow 0.2s var(--ease); }
.palette .search-row:focus-within { box-shadow: inset 0 -2px 0 var(--accent-fill); }
.palette .search-row .ico { width: 20px; height: 20px; color: var(--ink-3); }
.palette input { flex: 1; min-width: 0; height: 62px; border: 0; background: transparent; font-size: 18px; outline: none; }
.palette input::placeholder { color: var(--ink-3); }
.palette .esc { font-family: var(--font-mono); font-size: 11.5px; padding: 4px 8px; border-radius: 7px; background: var(--surface-2); color: var(--ink-3); border: 0; cursor: pointer; }
.results { overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.result { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; text-align: left; border: 0; background: transparent; border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: background-color 0.15s var(--ease); }
.result:hover, .result:focus-visible, .result.active { background: var(--surface-2); outline: none; }
.result .ri { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); color: var(--ink-2); }
.result .ri .ico { width: 17px; height: 17px; }
.result .where { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.result .snip { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.search-hint { padding: 14px 14px 16px; color: var(--ink-3); font-size: 14px; }
mark { background: color-mix(in srgb, var(--accent-fill) 26%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; }

.lightbox { position: fixed; inset: 0; z-index: var(--z-dialog); display: grid; place-items: center; padding: 24px; background: rgba(12, 12, 11, 0.9); cursor: zoom-out; animation: fade 0.25s var(--ease); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox .icon-btn { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; background: rgba(255, 255, 255, 0.12); color: #fff; }

/* stati */
.banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: var(--down-soft); color: var(--down); font-size: 14.5px; font-weight: 500; }
.banner .btn { margin-left: auto; }
.skeleton { border-radius: var(--r-panel); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.skel-line { height: 14px; border-radius: 7px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-3); }

/* ───────── fallback: markdown di Notion così com'è ───────── */
:root {
  --n-red: #c43a3f; --n-green: #06805a; --n-blue: #2c63a0; --n-purple: #7350b4; --n-orange: #a95a16;
  --n-yellow: #8a6d08; --n-brown: #80553a; --n-pink: #a8427a; --n-gray: #696974;
}
:root[data-theme="dark"] { --n-red: #ff7183; --n-green: #20e8a6; --n-blue: #8ab8ee; --n-purple: #b39be4; --n-orange: #eda36a; --n-yellow: #e3c35a; --n-brown: #cfa384; --n-pink: #e89ac2; --n-gray: #a1a1ac; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --n-red: #ff7183; --n-green: #20e8a6; --n-blue: #8ab8ee; --n-purple: #b39be4; --n-orange: #eda36a; --n-yellow: #e3c35a; --n-brown: #cfa384; --n-pink: #e89ac2; --n-gray: #a1a1ac; } }
.c-red { color: var(--n-red); } .c-green { color: var(--n-green); } .c-blue { color: var(--n-blue); } .c-purple { color: var(--n-purple); } .c-orange { color: var(--n-orange); } .c-yellow { color: var(--n-yellow); } .c-brown { color: var(--n-brown); } .c-pink { color: var(--n-pink); } .c-gray { color: var(--n-gray); }
[class*="hl-"] { background: color-mix(in srgb, var(--tint) 16%, transparent); border-radius: 5px; padding: 0 0.22em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl-red, .bg-red { --tint: var(--n-red); } .hl-green, .bg-green { --tint: var(--n-green); } .hl-blue, .bg-blue { --tint: var(--n-blue); } .hl-purple, .bg-purple { --tint: var(--n-purple); } .hl-orange, .bg-orange { --tint: var(--n-orange); } .hl-yellow, .bg-yellow { --tint: var(--n-yellow); } .hl-brown, .bg-brown { --tint: var(--n-brown); } .hl-pink, .bg-pink { --tint: var(--n-pink); } .hl-gray, .bg-gray { --tint: var(--n-gray); }
.u { text-decoration: underline; text-underline-offset: 3px; }
.doc { font-size: 15.5px; line-height: 1.62; overflow-wrap: break-word; min-width: 0; }
.doc > :first-child { margin-top: 0; }
.doc p { margin: 0 0 0.8em; }
.doc p.tinted { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tint) 9%, transparent); }
.doc strong { font-weight: 650; }
.doc a { font-weight: 500; text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc h1, .doc h2, .doc h3 { scroll-margin-top: 90px; line-height: 1.15; font-family: var(--font-display); font-stretch: 104%; letter-spacing: -0.01em; }
.doc h1 { font-size: 1.6rem; font-weight: 740; margin: 1.6em 0 0.6em; }
.doc h2 { font-size: 1.35rem; font-weight: 720; margin: 1.5em 0 0.6em; }
.doc h3 { font-size: 1.15rem; font-weight: 700; margin: 1.3em 0 0.5em; }
.doc h1.tinted, .doc h2.tinted { padding: 8px 14px; border-radius: 12px; background: color-mix(in srgb, var(--tint) 10%, transparent); }
.doc hr { border: 0; border-top: 1px solid var(--line-2); margin: 1.4em 0; }
.doc ul, .doc ol { margin: 0 0 0.8em; padding-left: 1.3em; }
.doc li { margin: 0.3em 0; }
.doc li::marker { color: var(--ink-3); }
.doc blockquote { margin: 0 0 1em; padding: 14px 18px; border-left: 3px solid var(--tint, var(--accent)); background: color-mix(in srgb, var(--tint, var(--accent)) 7%, transparent); border-radius: 0 14px 14px 0; }
.callout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--tint, var(--n-gray)) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tint, var(--n-gray)) 16%, transparent); }
.callout.noicon { grid-template-columns: minmax(0, 1fr); }
.callout-icon { font-size: 19px; line-height: 1.3; width: 24px; text-align: center; }
.callout-body { min-width: 0; }
.callout-body > :last-child, .toggle-body > :last-child, .col > :last-child { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: var(--cols); gap: 14px; margin: 0 0 14px; }
.col { min-width: 0; }
details.toggle { margin: 0 0 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); }
details.toggle > summary { cursor: pointer; list-style: none; padding: 12px 16px; font-weight: 600; display: flex; align-items: flex-start; gap: 10px; }
details.toggle > summary::-webkit-details-marker { display: none; }
details.toggle > summary::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 0.5em; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform 0.25s var(--ease); }
details.toggle[open] > summary::before { transform: rotate(45deg); }
.toggle-body { padding: 4px 18px 16px 34px; }
.nt-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); scrollbar-width: thin; }
table.nt { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
table.nt th, table.nt td { padding: 10px 12px; text-align: left; vertical-align: top; white-space: nowrap; }
table.nt td.wide { white-space: normal; min-width: 240px; }
table.nt thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); }
table.nt thead th strong { font-weight: inherit; }
table.nt tbody tr { border-top: 1px solid var(--line); }
table.nt tbody tr:first-child { border-top: 0; }
.fallback-head { display: flex; flex-direction: column; gap: 12px; }
.fallback-head h1 { font-family: var(--font-display); font-stretch: 106%; font-weight: 760; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.fallback-head .art-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.fallback-card { padding: clamp(18px, 2.6vw, 32px); border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.fb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.hub-kpi { padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hub-kpi .kpi-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.hub-kpi .kpi-value { font-family: var(--font-display); font-weight: 720; font-size: 1.6rem; line-height: 1.1; }
.hub-kpi .kpi-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--ink-3); }
.hub-kpi .kpi-read { font-size: 13px; color: var(--ink-2); }
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.topic { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); }
.topic h3 { font-family: var(--font-display); font-weight: 720; font-size: 1.3rem; }
.topic .callout, .topic details.toggle { margin: 0; }

/* ───────── responsive (contenitore) ───────── */
@container view (max-width: 1080px) {
  .art-layout { gap: 36px; }
  .art-layout:has(.art-rail) { grid-template-columns: minmax(0, 1fr) 236px; }
  .kpi-row { grid-template-columns: minmax(140px, 1fr) minmax(120px, 0.8fr) minmax(180px, 1.4fr); }
  .kpi-row .k-n { grid-column: 1 / -1; margin-top: -8px; }
}
@container view (max-width: 940px) {
  .art-layout, .art-layout:has(.art-rail) { grid-template-columns: minmax(0, 1fr); }
  .art-rail { display: none; }
  .toc-mobile, .gloss-mobile { display: block; }
}
@container view (max-width: 960px) {
  .lead-story { grid-template-columns: minmax(0, 1fr); margin-top: -16px; }
  .second { grid-template-columns: minmax(0, 1fr); }
  .second-col { grid-template-rows: none; gap: 0; }
  .two-up { grid-template-columns: minmax(0, 1fr); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures .f:nth-child(odd) { border-left: 0; padding-left: 0; }
  .figures .f:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@container view (max-width: 760px) {
  .view { gap: 44px; }
  .brief { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 26px 0; }
  .brief-fig { order: -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 14px 16px; }
  .brief-fig .l { flex-basis: 100%; }
  .brief-fig .v { font-size: 1.8rem; }
  .profiles, .vd-cols, .criteria { grid-template-columns: minmax(0, 1fr); }
  .bucket-cols { grid-template-columns: minmax(0, 1fr); }
  .dlist > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a.next { grid-column: 1; }
  .kpi-board { padding: 4px 18px; }
  .kpi-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 16px 0; }
  .kpi-row .k-v { align-items: flex-end; text-align: right; }
  .kpi-row .div-bar { grid-column: 1 / -1; }
  .kpi-row .k-n { margin-top: 0; }
  .kpi-surprise { grid-template-columns: minmax(0, 1fr); margin-inline: -8px; }
  .kpi-surprise .tag { grid-row: auto; justify-self: start; }
  .topics, .fb-kpis { grid-template-columns: minmax(0, 1fr); }
  .cols, .md .cols { grid-template-columns: minmax(0, 1fr); }
  .group-head { grid-template-columns: minmax(0, 1fr); }
  .group-head p { grid-column: 1; }
  .group-n { font-size: 3rem; }

  /* classifica in schede */
  table.board thead { display: none; }
  table.board, table.board tbody { display: block; }
  table.board tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 8px; padding: 16px 2px 16px 40px; border-top: 1px solid var(--line); }
  table.board.norank tr { padding-left: 2px; }
  table.board tbody tr:first-child { border-top: 0; }
  table.board td { padding: 0; border: 0; white-space: normal; min-width: 0; }
  table.board .b-rank { position: absolute; left: 2px; top: 16px; width: 30px; }
  table.board .b-name { grid-column: 1; grid-row: 1; min-width: 0; }
  table.board .b-first { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  table.board .b-val { grid-column: 1 / -1; min-width: 0; }
  table.board .b-val small { display: inline; margin-left: 8px; }
  table.board .b-x:not(.b-first) { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  table.board .b-x:not(.b-first)::before { content: attr(data-label); font-size: 12px; color: var(--ink-3); min-width: 96px; }
  table.board .b-x small { display: inline; }
  table.board .b-first small { display: block; }
}
@container view (max-width: 560px) {
  .view { gap: 36px; }
  .lead-title, .art-title { font-size: 2.15rem; line-height: 1.02; }
  .lead-dek, .art-dek { font-size: 1.08rem; }
  .lead-copy { font-size: 16px; }
  .edition-line .rest { margin-left: 0; flex-basis: 100%; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures .f { border-left: 0 !important; padding: 16px 0 !important; border-top: 1px solid var(--line); }
  .figures .f:first-child { border-top: 0; }
  .story.big { padding: 22px; }
  .story.row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .story.row .side-fig { flex-direction: row; align-items: baseline; gap: 10px; }
  .board-panel { padding: 20px 16px 16px; border-radius: 18px; }
  .profile { padding: 18px; }
  .prose { font-size: 16.5px; }
  .lead-prose { font-size: 17px; }
  .reading { padding: 28px 18px; border-radius: 18px; }
  .panel { padding: 22px 18px; border-radius: 18px; }
  .pager a { padding: 18px; }
  .pager a .t strong { font-size: 1.15rem; }
  .watch-list li { grid-template-columns: 38px minmax(0, 1fr); }
  .watch-list li::before { font-size: 1.3rem; }
}

/* ───────── responsive (finestra) ───────── */
@media (max-width: 960px) {
  .app, .app.side-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(320px, 88vw);
    box-shadow: var(--shadow-2);
    transform: translateX(-100%); visibility: hidden;
  }
  .app.side-open .sidebar { transform: none; visibility: visible; }
  .sidebar .side-close { display: inline-grid; }
  .top-mark { display: block; }
  .crumbs .sep, .crumbs a.home { display: none; }
}
@media (max-width: 600px) {
  .search-trigger { width: 38px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }
  .search-trigger .lbl, .search-trigger kbd { display: none; }
  .crumbs .ed-badge { display: none; }
  .topbar { min-height: 58px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media print {
  .sidebar, .topbar, .pager, .art-rail, .site-foot nav, body::after { display: none !important; }
  .app { display: block; }
  .rv { opacity: 1 !important; transform: none !important; }
  .bar i, .div-bar i, .bucket-bar i { transform: none !important; }
}
