/* Radar Nucleare — impostazione editoriale */
/* Caratteri ospitati sul sito (Newsreader e IBM Plex Sans, licenza SIL OFL) */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/font-newsreader.woff2) format("woff2-variations"), url(/font-newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(/font-newsreader-italic.woff2) format("woff2-variations"), url(/font-newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(/font-plex-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(/font-plex-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(/font-plex-500-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url(/font-plex-600-normal.woff2) format("woff2"); }

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #faf8f3;
  --ink: #17160f;
  --ink-2: #3b3830;
  --muted: #6d685c;
  --rule: #d3cbba;
  --rule-strong: #17160f;
  --accent: #1f47a6;
  --accent-soft: #c7d2ec;
  --blue: #1f4e7a;
  --green: #2c6a3f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --sea: #dde3e3;
  --land: #faf8f3;
  --land-it: #efe2d0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --paper-2: #1d1c19;
    --card: #1b1a17;
    --ink: #ece7dc;
    --ink-2: #c9c3b6;
    --muted: #979084;
    --rule: #34312b;
    --rule-strong: #ece7dc;
    --accent: #86a3ea;
    --accent-soft: #22335c;
    --blue: #7fa9d6;
    --green: #7cc293;
    --sea: #121416;
    --land: #25231f;
    --land-it: #3a3024;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.preview-bar { background: var(--accent); color: #fff; text-align: center; font-size: .8rem; padding: 6px 16px; letter-spacing: .02em; }

/* ---------- Testata ---------- */
.masthead { border-bottom: 1px solid var(--rule-strong); }
.topline { display: flex; justify-content: space-between; gap: 16px; font-size: .78rem; color: var(--muted); padding-top: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.brandrow { text-align: center; padding-top: 18px; padding-bottom: 14px; }
.wordmark { font-family: var(--serif); font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 600; letter-spacing: -.025em; text-decoration: none; line-height: 1; color: var(--ink); }
.wordmark span { font-style: italic; font-weight: 400; color: var(--accent); }
.wordmark:hover { color: var(--ink); }
.sections { border-top: 3px double var(--rule-strong); }
.sections-inner { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.sections-inner::-webkit-scrollbar { display: none; }
.sections a { font-size: .86rem; font-weight: 500; text-decoration: none; padding: 10px 14px; white-space: nowrap; color: var(--ink-2); border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Elementi comuni ---------- */
.kicker { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin: 0 0 .55rem; }
.kicker a { text-decoration: none; }
.rubric { font-family: var(--sans); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ink); padding-top: 10px; border-top: 2px solid var(--rule-strong); margin: 0 0 16px; }
.dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; color: var(--ink-2); }
.byline { font-size: .82rem; color: var(--muted); margin: 0; }
.byline strong { color: var(--ink-2); font-weight: 600; }
.draft { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.more { display: inline-block; margin-top: 14px; font-size: .86rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule-strong); }
.more::after { content: " →"; }
.more:hover { border-color: var(--accent); }
.fineprint { font-size: .8rem; color: var(--muted); }
.muted { color: var(--muted); }
.band { margin-top: 56px; }
.page { padding-top: 36px; padding-bottom: 72px; }
.page-head { max-width: 780px; margin-bottom: 36px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }

/* ---------- Riga di stato ---------- */
.statusline { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-size: .84rem; color: var(--ink-2); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.statusline strong { color: var(--ink); font-weight: 600; }
.sl-label { font-weight: 600; text-transform: uppercase; letter-spacing: .09em; font-size: .72rem; color: var(--paper); background: var(--ink); padding: 2px 7px; }

/* ---------- Prima pagina ---------- */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0; margin-top: 28px; }
.front-lead { padding-right: 36px; border-right: 1px solid var(--rule); }
.front-side { padding-left: 32px; }
.lead-story h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.04; margin-bottom: 16px; }
.lead-story h1 a, .second-story h2 a, .list-story h2 a, .list-story h3 a { text-decoration: none; }
.lead-story h1 a:hover, .second-story h2 a:hover, .list-story a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.lead-story .dek { font-size: 1.32rem; max-width: 42ch; }
.lead-story { padding-bottom: 28px; }
.second-story { padding: 22px 0; border-top: 1px solid var(--rule); }
.second-story h2 { font-size: 1.65rem; margin-bottom: 10px; }
.second-story .dek { font-size: 1.08rem; }
.latest { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.latest li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.latest li:first-child { padding-top: 0; }
.latest time { font-size: .76rem; color: var(--muted); padding-top: 3px; text-transform: uppercase; letter-spacing: .03em; }
.latest a { font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; text-decoration: none; }
.latest a:hover { text-decoration: underline; }
.latest span { grid-column: 2; font-size: .76rem; color: var(--muted); margin-top: 3px; }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.figures > div { padding: 4px 20px 0; border-left: 1px solid var(--rule); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures dt { font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.figures dt small { font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-left: 4px; font-weight: 400; }
.figures dd { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }

.map-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.teaser-big { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; }
.teaser-map { display: block; border: 1px solid var(--rule); }
.tracker-teaser { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule-strong); }
table.data td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data td.num { color: var(--muted); font-variant-numeric: tabular-nums; width: 36px; }
table.data td.note { color: var(--ink-2); }
table.data .r { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--rule-strong); }
td.status { white-space: nowrap; font-size: .82rem; color: var(--ink-2); }
.status-in-preparazione, .status-esame-preliminare, .status-pareri { color: var(--accent); }
.status-adottato, .status-in-vigore { color: var(--green); }
.steps { display: inline-flex; gap: 2px; margin-right: 8px; vertical-align: 1px; }
.steps i { width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; }
.steps i.on { background: currentColor; border-color: currentColor; }
.steps i:first-child { background: var(--muted); }

.calendar { list-style: none; margin: 0 0 16px; padding: 0; }
.calendar li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.cal-date { color: var(--muted); font-variant-numeric: tabular-nums; }
.calendar li.done .cal-label { color: var(--muted); }
.cal-done { color: var(--green); }
.calendar li.next .cal-date, .calendar li.next em { color: var(--accent); font-style: normal; font-weight: 600; }
.tt-side .calendar li { grid-template-columns: 1fr; gap: 2px; }

.big-stat { font-family: var(--serif); font-size: 1.5rem; }
.big-stat strong { font-size: 3.2rem; font-weight: 500; margin-right: 6px; }
.facts { margin: 0; }
.facts > div { padding: 12px 0; border-top: 1px solid var(--rule); }
.facts dt { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.facts dd { margin: 4px 0 0; }
.legend { color: var(--ink-2); font-size: .95rem; }

/* ---------- Notizie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: .86rem; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 4px; }
.filters span { color: var(--muted); }
.filter { font: inherit; background: none; border: 0; padding: 2px 0; color: var(--ink-2); cursor: pointer; border-bottom: 1px solid transparent; }
.filter:hover { color: var(--ink); }
.filter.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.news-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.news-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.news-item[hidden] { display: none; }
.news-when time { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.news-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; }
.news-body p { margin: 0; color: var(--ink-2); }
.news-body .news-meta { font-size: .78rem; color: var(--muted); margin-top: 8px; }

/* ---------- Analisi ---------- */
.article-list { max-width: 860px; }
.list-story { padding: 24px 0; border-top: 1px solid var(--rule); }
.list-story h2 { font-size: 1.9rem; margin-bottom: 10px; }
.list-story h3 { font-size: 1.4rem; margin-bottom: 8px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.more-grid .list-story { border-top: 0; padding-top: 0; }

.article { max-width: 720px; padding-top: 44px; padding-bottom: 40px; }
.article-head { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.06; margin-bottom: 16px; }
.article-head .dek { font-size: 1.3rem; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.prose { font-family: var(--serif); font-size: 1.22rem; line-height: 1.62; }
.prose p { margin: 0 0 1.1em; }
.article .prose > p:first-of-type::first-letter { float: left; font-size: 3.9em; line-height: .8; font-weight: 500; margin: .06em .08em 0 0; color: var(--ink); }
.prose h2 { font-size: 1.65rem; margin: 2em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 600; }
.prose a { text-decoration-color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 20px; border-left: 3px solid var(--accent); font-size: 1.45rem; line-height: 1.35; font-style: italic; color: var(--ink); }
.prose .box { font-family: var(--sans); font-size: .98rem; line-height: 1.55; background: var(--paper-2); border-top: 2px solid var(--rule-strong); padding: 16px 22px 8px; margin: 1.6em 0 2em; }
.prose .box h3 { font-family: var(--sans); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 8px; color: var(--ink); }
.prose .box ul { margin: 0 0 8px; }
.prose-ui { max-width: 760px; color: var(--ink-2); }
.prose-ui ul { padding-left: 1.2em; }
.sources { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--rule-strong); font-size: .86rem; color: var(--ink-2); }
.sources h2 { font-family: var(--sans); font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; margin: 0 0 8px; }
.sources ol { padding-left: 1.2em; margin: 0; }
.sources li { margin: 5px 0; }
.share { margin-top: 28px; font-size: .86rem; color: var(--muted); }
.share a, .share button { color: var(--ink); font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.share button.ok { color: var(--green); }

/* ---------- Mappa ---------- */
.map svg, svg.map { display: block; width: 100%; height: auto; }
.map .sea { fill: var(--sea); }
.map .land { fill: var(--land); stroke: none; }
.map .land-it { fill: var(--land-it); }
.map .borders { fill: none; stroke: var(--rule); stroke-width: .8; stroke-linejoin: round; }
.mk { cursor: pointer; transition: opacity .15s; }
.mk-attiva { fill: var(--accent); fill-opacity: .82; stroke: var(--paper); stroke-width: 1; }
.mk-ferma { fill: var(--paper); stroke: var(--accent); stroke-width: 2; }
.mk-nuova { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 2.5 1.8; }
.mk-ex { fill: var(--ink); stroke: var(--paper); stroke-width: 1; }
.mk-pot { fill: var(--blue); stroke: var(--paper); stroke-width: 1; }
.mk:hover, .mk:focus, .mk.sel { stroke: var(--ink); stroke-width: 2.4; fill-opacity: 1; outline: none; }
.map-mini .mk { cursor: default; }
.mk-label { font: 500 12px var(--sans); fill: var(--ink-2); paint-order: stroke; stroke: var(--land); stroke-width: 3px; pointer-events: none; }
.map-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; align-items: center; padding: 12px 0; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.tabs { display: inline-flex; border: 1px solid var(--rule-strong); }
.tabs button { font: 600 .86rem var(--sans); background: none; border: 0; padding: 7px 16px; cursor: pointer; color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.layers { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--ink-2); }
.layers label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.layers input { accent-color: var(--ink); margin: 0; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.sw-attiva { background: var(--accent); }
.sw-ferma { border: 2px solid var(--accent); }
.sw-nuova { border: 1.5px dashed var(--ink); }
.sw-ex { background: var(--ink); border-radius: 0; }
.sw-pot { background: var(--blue); border-radius: 0; transform: rotate(45deg) scale(.85); }
.map-stage { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.map-views { border: 1px solid var(--rule); }
.map-note { font-size: .78rem; color: var(--muted); margin: 0; padding: 8px 12px; border-top: 1px solid var(--rule); }
.map-panel { position: sticky; top: 16px; border-top: 2px solid var(--rule-strong); padding-top: 10px; }
.map-panel h3 { font-size: 1.6rem; margin-bottom: 4px; }
.panel-country { color: var(--muted); font-size: .88rem; margin-bottom: 10px; }
.panel-detail { font-family: var(--serif); font-size: 1.15rem; }
.map-panel p { font-size: .92rem; color: var(--ink-2); }
.map-panel .panel-empty p { color: var(--muted); }
.map-section { margin-top: 52px; }
.map-section .rubric { margin-bottom: 14px; }
.plain-list { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.sources ol { font-size: .86rem; }
.map-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--ink); color: var(--paper); font-size: .8rem; padding: 6px 9px; max-width: 240px; line-height: 1.35; }
.map-tip b { display: block; font-weight: 600; }

/* ---------- Piede ---------- */
.site-footer { margin-top: 80px; border-top: 3px double var(--rule-strong); padding: 32px 0 28px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--ink-2); margin-top: 10px; max-width: 34ch; }
.footer-grid h2 { font-family: var(--sans); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; margin-bottom: 10px; }
.footer-grid nav a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink-2); }
.footer-grid nav a:hover { color: var(--accent); }
.wordmark-sm { font-size: 1.7rem; }
.footer-note { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .front { grid-template-columns: 1fr; }
  .front-lead { padding-right: 0; border-right: 0; }
  .front-side { padding-left: 0; margin-top: 12px; }
  .figures { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .map-teaser, .tracker-teaser, .two-col, .more-grid { grid-template-columns: 1fr; gap: 28px; }
  .map-stage { grid-template-columns: 1fr; }
  .map-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .topline { font-size: .72rem; }
  .topline-mid, .topline span:last-child { display: none; }
  .brandrow { padding-top: 12px; padding-bottom: 10px; }
  .sections-inner { justify-content: flex-start; }
  .sections a { padding: 9px 10px; }
  .lead-story h1 { font-size: 2.1rem; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .calendar li { grid-template-columns: 1fr; gap: 2px; }
  .prose { font-size: 1.12rem; }
  .figures dt { font-size: 2.1rem; }
  .layers { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Radar IA ---------- */
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.aud { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 .3rem; color: var(--muted); }
.aud-aziende { color: var(--accent); }
.entry-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule-strong); }
.split-col { padding: 22px 36px 0 0; }
.split-col + .split-col { padding: 22px 0 0 32px; border-left: 1px solid var(--rule); }
.split-title { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.12; margin: 0 0 .4rem; letter-spacing: -.01em; }
.split-title a { text-decoration: none; }
.split-title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.split .latest { margin-top: 14px; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin: 0 0 40px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.hub-links a { display: block; padding: 18px 24px 18px 0; text-decoration: none; }
.hub-links a + a { padding-left: 24px; border-left: 1px solid var(--rule); }
.hub-links a { padding-right: 24px; }
.hub-links strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.hub-links span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.hub-links a:hover strong { color: var(--accent); }
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; margin-bottom: 40px; }
.state-grid > div { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.state-grid h2 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; margin: 0 0 .4rem; }
.state-grid p { margin: 0 0 20px; font-size: .93rem; color: var(--ink-2); line-height: 1.55; }
table.models th small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.bench > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.bandi { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.bando { border-top: 1px solid var(--rule-strong); padding: 16px 0 22px; }
.bando h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.15; margin: 0 0 .35rem; }
.bando h3 a { text-decoration: none; }
.bando h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.bando p { margin: .35rem 0; font-size: .92rem; }
.bando-body { color: var(--muted); }
.bando-deadline strong { color: var(--accent); font-weight: 600; }
.bandi-mini .bando { padding: 12px 0 14px; border-top-color: var(--rule); }
.bandi-mini .bando:first-child { border-top: 0; padding-top: 0; }
.bandi-mini .bando h3 { font-size: 1.15rem; }
.obligations .cal-date { min-width: 150px; }
@media (max-width: 960px) {
  .split, .hub-links { grid-template-columns: 1fr; }
  .split-col, .split-col + .split-col { padding: 22px 0 0; border-left: 0; }
  .split-col + .split-col { margin-top: 18px; border-top: 1px solid var(--rule); }
  .hub-links a, .hub-links a + a { padding: 16px 0; border-left: 0; }
  .hub-links a + a { border-top: 1px solid var(--rule); }
  .bench > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Strumenti: guida illustrata ---------- */
.picto { width: 64px; height: 64px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.picto .a { stroke: var(--accent); stroke-width: 2.2; }
.picto-sm { width: 40px; height: 40px; margin-bottom: 12px; }
.anim .reveal .picto > * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.65,0,.35,1); transition-delay: calc(var(--i, 0) * .18s + .15s); }
.anim .reveal.is-in .picto > * { stroke-dashoffset: 0; }

.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 28px; margin: 8px 0 20px; }
.tool { display: block; padding: 20px 0 22px; border-top: 1px solid var(--rule); text-decoration: none; color: inherit; position: relative; }
.tool::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.tool:hover::before, .tool:focus-visible::before { transform: scaleX(1); }
.tool:hover .tool-pick { color: var(--accent); }
.tool-task { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .35rem; }
.tool-pick { font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; font-weight: 500; margin: 0 0 .45rem; transition: color .25s; }
.tool-why { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

.tg-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 8px 0 36px; border-bottom: 3px double var(--rule-strong); }
.tg-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; }
.tg-hero h1 em { color: var(--accent); font-weight: 400; }
.tg-hero .dek { max-width: 34em; }
.radar-art { width: 100%; max-width: 300px; justify-self: center; color: var(--accent); overflow: visible; }
.radar-rings > * { fill: none; stroke: var(--rule); stroke-width: 1; }
.radar-rings circle:last-of-type { stroke: var(--ink); stroke-width: 1.2; }
.radar-beam { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.radar-sweep { transform-origin: 120px 120px; animation: radar-spin 7s linear infinite; }
.radar-blips circle { fill: var(--accent); opacity: 0; animation: blip 7s ease-out infinite; animation-delay: calc(var(--i) * 1.3s + .6s); }
.anim .radar-rings > * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.65,0,.35,1) forwards; animation-delay: calc(var(--i) * .15s); }
@keyframes radar-spin { to { transform: rotate(-360deg); } }
@keyframes blip { 0% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(1.25); } 30% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; } }
.radar-blips circle { transform-box: fill-box; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.tg-index { margin: 26px 0 8px; }
.tg-index ol { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 32px; }
.tg-index li { break-inside: avoid; }
.tg-index a { display: flex; gap: 12px; align-items: baseline; padding: 7px 0; border-bottom: 1px dotted var(--rule); text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: color .2s, padding-left .25s; }
.tg-index a span { font-family: var(--serif); font-style: italic; color: var(--accent); min-width: 1.6em; }
.tg-index a:hover { color: var(--ink); padding-left: 6px; }

.tg { list-style: none; margin: 28px 0 24px; padding: 0; counter-reset: none; }
.tg-item { border-top: 1px solid var(--rule-strong); position: relative; scroll-margin-top: 20px; }
.tg-sum { display: grid; grid-template-columns: 170px minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding: 34px 0 36px; cursor: pointer; list-style: none; }
.tg-sum::-webkit-details-marker { display: none; }
.tg-sum::marker { content: ""; }
.tg-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.tg-item::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tg-item:hover::after, .tg-item:target::after { transform: scaleX(1); }
.tg-art { display: flex; flex-direction: column; gap: 14px; }
.tg-num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.6rem; line-height: .8; color: var(--muted); letter-spacing: -.03em; transition: color .3s; }
.tg-item:hover .tg-num, .tg-item:target .tg-num { color: var(--accent); }
.tg-art .picto { width: 76px; height: 76px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tg-item:hover .tg-art .picto { transform: translateY(-3px) rotate(-3deg); }
.tg-pick { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.012em; margin: 0 0 .6rem; }
.tg-why { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.tg-meta { margin: 4px 0 0; font-size: .88rem; align-self: start; }
.tg-meta > div { padding: 10px 0; border-top: 1px dotted var(--rule); }
.tg-meta > div:first-child { border-top: 0; padding-top: 0; }
.tg-meta dt { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 3px; }
.tg-meta dd { margin: 0; line-height: 1.45; }

.anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * .08s); }
.anim .reveal.is-in { opacity: 1; transform: none; }
.anim .reveal:not(.is-in) { animation: reveal-safety .6s 3.5s forwards; }
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .tg-hero { grid-template-columns: 1fr; gap: 12px; }
  .radar-art { max-width: 170px; justify-self: center; margin-top: 8px; }
  .tg-sum { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 28px; }
  .dp-row { grid-template-columns: 1fr; gap: 8px; }
  .dp-costs .dp-table th { width: auto; }
  .tg-art { flex-direction: row; align-items: center; justify-content: space-between; }
  .tg-num { font-size: 2.8rem; }
  .tg-art .picto { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim .reveal { opacity: 1; transform: none; }
  .anim .reveal .picto > *, .anim .radar-rings > * { stroke-dashoffset: 0; animation: none; }
  .radar-sweep, .radar-blips circle { animation: none; }
  .radar-blips circle { opacity: .7; }
}

/* Approfondimento a tendina */
.tg-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .84rem; font-weight: 600; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.tg-toggle i { position: relative; width: 11px; height: 11px; flex: none; }
.tg-toggle i::before, .tg-toggle i::after { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 1.6px; background: currentColor; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.tg-toggle i::after { transform: rotate(90deg); }
.tg-d[open] .tg-toggle i::after { transform: rotate(0deg); }
.tg-close { display: none; }
.tg-d[open] .tg-open { display: none; }
.tg-d[open] .tg-close { display: inline; }
.tg-d[open] .tg-num { color: var(--accent); }
.tg-item:has(.tg-d[open])::after { transform: scaleX(1); }
.tg-deep { overflow: hidden; }
.tg-deep-in { padding: 4px 0 40px 206px; }
.tg-d[open] .tg-deep-in { animation: deep-in .55s cubic-bezier(.2,.7,.2,1) both; }
@keyframes deep-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@supports (interpolate-size: allow-keywords) {
  .tg-d { interpolate-size: allow-keywords; }
  .tg-d::details-content { height: 0; overflow: hidden; transition: height .55s cubic-bezier(.2,.7,.2,1), content-visibility .55s allow-discrete; }
  .tg-d[open]::details-content { height: auto; }
}
.dp { margin: 0 0 30px; }
.dp h3 { font-family: var(--sans); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin: 0 0 12px; padding-top: 10px; border-top: 2px solid var(--accent); display: inline-block; }
.dp-table { font-size: .9rem; }
.dp-table th[scope="row"] { font-weight: 600; text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.dp-costs .dp-table th { width: 32%; }
.dp-table td { line-height: 1.5; }
.dp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.dp-how ol, .dp-tips ul { margin: 0; padding: 0; list-style: none; font-size: .94rem; line-height: 1.55; color: var(--ink-2); }
.dp-how ol { counter-reset: step; }
.dp-how li { counter-increment: step; position: relative; padding: 0 0 12px 38px; }
.dp-how li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border: 1px solid var(--accent); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; color: var(--accent); font-size: .95rem; }
.dp-tips li { position: relative; padding: 0 0 12px 22px; }
.dp-tips li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 1.6px; background: var(--accent); }
.dp-sources { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.7; }
.dp-sources a { color: var(--muted); }
@media (max-width: 960px) { .tg-deep-in { padding-left: 0; } .dp-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 640px) {
  .dp-table thead { display: none; }
  .dp-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .dp-table th[scope="row"], .dp-table td { display: block; border: 0; padding: 2px 0; width: auto !important; }
  .dp-compare .dp-table td::before { display: block; font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 6px; }
  .dp-compare .dp-table td:nth-of-type(1)::before { content: "Punti di forza"; }
  .dp-compare .dp-table td:nth-of-type(2)::before { content: "Limiti"; }
}
@media (prefers-reduced-motion: reduce) { .tg-d[open] .tg-deep-in { animation: none; } .tg-d::details-content { transition: none; } }

/* ---------- Super IA ---------- */
.iq-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding: 8px 0 36px; border-bottom: 3px double var(--rule-strong); }
.iq-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.7rem); line-height: 1.03; letter-spacing: -.02em; margin: 0 0 16px; }
.iq-big { display: flex; gap: 18px; align-items: flex-end; margin: 26px 0 18px; }
.iq-big strong { font-family: var(--serif); font-weight: 400; font-size: clamp(4.5rem, 9vw, 7rem); line-height: .82; color: var(--accent); letter-spacing: -.04em; }
.iq-big strong small { font-size: .45em; margin-left: 2px; }
.iq-big span { font-size: .92rem; color: var(--ink-2); line-height: 1.45; max-width: 21em; padding-bottom: 4px; }
.iq-made { font-size: .86rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; margin: 0; }
.iq-made span { color: var(--muted); margin-right: 4px; }
.iq-made b { font-weight: 600; border: 1px solid var(--rule); padding: 2px 8px; border-radius: 99px; background: var(--card); }
.iq-fig { margin: 0; }
.iq-fig figcaption { font-size: .8rem; color: var(--muted); line-height: 1.45; max-width: 34em; margin: 4px auto 0; text-align: center; }
.iq-radial { width: 100%; height: auto; display: block; overflow: hidden; }
.iq-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.iq-w { fill: var(--accent); fill-opacity: .82; stroke: var(--paper); stroke-width: 2; }
.iq-w-over { fill-opacity: 1; }
.iq-w:hover { fill-opacity: 1; }
.iq-gap { fill: url(#iq-hatch); stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.iq-hatch-l { stroke: var(--muted); stroke-width: 1.2; opacity: .55; }
.iq-human { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: .012 .01; }
.iq-human-lbl { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.iq-lbl { font-family: var(--serif); font-size: 15px; fill: var(--ink); }
.iq-lbl-gap { fill: var(--muted); font-style: italic; }
.iq-lbl-v { font-family: var(--sans); font-size: 10.5px; fill: var(--muted); font-style: normal; }
.iq-wedges path { transform-box: view-box; transform-origin: 260px 250px; }
.anim .iq-fig .iq-w, .anim .iq-fig .iq-gap { transform: scale(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * .09s + .2s); }
.anim .iq-fig.is-in .iq-w, .anim .iq-fig.is-in .iq-gap { transform: scale(1); }
.anim .iq-fig .iq-human { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease; }
.anim .iq-fig.is-in .iq-human { stroke-dashoffset: 0; }

.iq-rows { list-style: none; margin: 8px 0 20px; padding: 0; }
.iq-row, .iq-frontier { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 40px; padding: 24px 0 22px; border-top: 1px solid var(--rule); }
.iq-frontier { border-top: 0; grid-template-rows: auto auto auto; }
.iq-frontier .rubric { grid-column: 1 / -1; }
.iq-row-head h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; margin: 0 0 6px; }
.iq-what { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.iq-track { position: relative; height: 14px; background: var(--rule); background: color-mix(in srgb, var(--rule) 55%, transparent); border-radius: 0 4px 4px 0; margin-top: 34px; }
.iq-bar { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 1%); background: var(--accent); border-radius: 0 4px 4px 0; transform-origin: left; }
.anim .reveal .iq-bar { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.8,.2,1) .15s; }
.anim .reveal.is-in .iq-bar { transform: scaleX(1); }
.iq-tick { position: absolute; top: -8px; bottom: -8px; left: calc(var(--v) * 1%); width: 0; border-left: 2px dashed var(--ink); }
.iq-tick em { position: absolute; bottom: calc(100% + 4px); right: 4px; left: auto; white-space: nowrap; font-style: normal; font-size: .72rem; color: var(--ink); font-weight: 600; }
.iq-vals { margin: 12px 0 0; font-size: .88rem; }
.iq-vals strong { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin-right: 6px; }
.iq-verdict { display: inline-block; margin-left: 6px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.iq-verdict.up { color: var(--accent); }
.iq-verdict.down { color: var(--muted); }
.iq-verdict.up::before { content: "▲ "; }
.iq-verdict.down::before { content: "▼ "; }
.iq-note { grid-column: 2; margin: 6px 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.5; }
.iq-src { display: block; margin-top: 4px; color: var(--muted); }
.iq-src a { color: var(--muted); }
.iq-gaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-bottom: 36px; }
.iq-gapcard { border-top: 1px dashed var(--muted); padding: 16px 0 10px; }
.iq-gapcard h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.35rem; margin: 0 0 6px; }
.iq-gapcard p { margin: 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.iq-method ol { margin: 0 0 12px; padding-left: 1.2em; font-size: .9rem; color: var(--ink-2); line-height: 1.6; max-width: 52em; }
.iq-method li { margin-bottom: 6px; }
.iq-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.iq-teaser .iq-big { margin: 10px 0; }
@media (max-width: 960px) {
  .iq-hero, .iq-teaser { grid-template-columns: 1fr; }
  .iq-row, .iq-frontier { grid-template-columns: 1fr; }
  .iq-note { grid-column: 1; }
}
@media (max-width: 640px) {
  .iq-lbl { font-size: 19px; }
  .iq-lbl-v { font-size: 14px; }
  .iq-radial { margin: 0 -8px; width: calc(100% + 16px); }
  .iq-tick em { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .anim .iq-fig .iq-w, .anim .iq-fig .iq-gap, .anim .reveal .iq-bar { transform: none; transition: none; }
  .anim .iq-fig .iq-human { stroke-dashoffset: 0; transition: none; }
}
