/* News, Articoli e pagine di testo. Stesso linguaggio della home: cornici blueprint,
   hairline, kicker maiuscoli, numeri condensati tabulari. Solo token di styles.css. */

.js-only { display: none !important; }
html:not(.no-js) .js-only { display: flex !important; }
html:not(.no-js) .progress.js-only { display: block !important; }

/* ── percorso ─────────────────────────────────────────────────────────── */
.crumbs { padding: 20px 0 0; font-size: 13px; letter-spacing: 0.04em; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li { display: flex; align-items: center; gap: 6px; color: var(--color-neutral-700); min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--color-neutral-500); }
.crumbs a { color: var(--color-neutral-800); text-decoration: none; }
.crumbs a:hover { color: var(--color-accent-700); text-decoration: underline; }
.crumbs [aria-current] { max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── elementi comuni ──────────────────────────────────────────────────── */
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.meta-dim { font-size: 13px; color: var(--color-neutral-700); }
.tag { font-size: 12px; letter-spacing: 0.04em; }
.tag-outline { border-color: color-mix(in srgb, var(--color-accent) 60%, transparent); color: var(--color-accent-700); }
.tag-neutral { background: transparent; border: 1px solid var(--color-divider); }

.read-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.read-more svg { transition: transform .2s; }
.read-more:hover svg { transform: translateX(4px); }

.level { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-800); }
.level-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.level-bars i { width: 4px; background: color-mix(in srgb, var(--color-text) 16%, transparent); }
.level-bars i:nth-child(1) { height: 5px; }
.level-bars i:nth-child(2) { height: 8px; }
.level-bars i:nth-child(3) { height: 12px; }
.level-bars i.on { background: var(--color-accent); }

/* ── testata delle liste ──────────────────────────────────────────────── */
.listing { padding-bottom: 64px; }
.listing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; padding: 40px 0 28px; border-bottom: 1px solid var(--color-divider); margin-bottom: 28px; }
.listing-title { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; margin: 0 0 0 -0.04em; max-width: 16ch; }
.listing-head .lead { font-size: 17px; line-height: 1.5; max-width: 56ch; margin: 18px 0 0; }
.listing-stats { display: flex; margin: 0; border: 1px solid var(--color-divider); }
.listing-stats > div { padding: 12px 18px; min-width: 92px; }
.listing-stats > div + div { border-left: 1px solid var(--color-divider); }
.listing-stats dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); }
.listing-stats dd { margin: 4px 0 0; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 30px; line-height: 1; font-feature-settings: 'tnum' 1; text-transform: uppercase; }
.listing-stats dd a { text-decoration: none; }
.listing-intro { margin-bottom: 28px; }

/* ── filtri ───────────────────────────────────────────────────────────── */
.filters { flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 28px; }
.chip { font: inherit; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-neutral-800); background: transparent; border: 1px solid var(--color-divider); padding: 7px 14px; min-height: 36px; cursor: pointer; }
.chip:hover { color: var(--color-text); border-color: color-mix(in srgb, var(--color-text) 40%, transparent); }
.chip[aria-pressed='true'] { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.chip-level[aria-pressed='true'] { background: var(--color-accent); border-color: var(--color-accent); }
.chip-sep { width: 1px; height: 22px; background: var(--color-divider); margin: 0 4px; }
[data-filter-item][hidden], [data-month][hidden] { display: none !important; }
.empty { padding: 24px 0; }

/* ── news: in evidenza ────────────────────────────────────────────────── */
.news-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 48px; }
.news-lead-media { display: block; position: relative; overflow: hidden; min-height: 300px; border-right: 1px solid var(--color-divider); }
.news-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.news-lead:hover .news-lead-media img { transform: scale(1.03); }
.news-lead-body { padding: 28px 28px 30px; display: flex; flex-direction: column; }
.news-lead-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.04; margin: 18px 0 12px; }
.news-lead-title a, .log-title a, .guide-title a { color: inherit; text-decoration: none; }
.news-lead-title a:hover, .log-title a:hover, .guide-title a:hover { color: var(--color-accent-700); }
.news-lead-body > p { font-size: 16px; line-height: 1.55; margin: 0; }

.stamp { display: flex; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--color-divider); font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-transform: uppercase; font-feature-settings: 'tnum' 1; }
.stamp-day { font-size: 34px; line-height: 1; color: var(--color-accent); }
.stamp-year { font-size: 18px; color: var(--color-neutral-700); }
.stamp-tag { margin-left: auto; font-size: 12px; letter-spacing: 0.1em; padding: 4px 8px; border: 1px solid var(--color-accent); color: var(--color-accent-700); }

/* ── news: registro ───────────────────────────────────────────────────── */
.news-log { margin-bottom: 56px; }
.log-month { display: flex; align-items: center; gap: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-body); font-weight: 600; color: var(--color-accent-700); margin: 0; padding: 26px 0 10px; }
.log-month::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }
.log-row { position: relative; display: grid; grid-template-columns: 64px 168px minmax(0, 1fr) 32px; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.log-row::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 1px; background: var(--color-accent); transition: width .35s ease; }
.log-row:hover::before { width: 100%; }
.log-date { display: grid; font-family: var(--font-heading); font-weight: var(--font-heading-weight); text-transform: uppercase; font-size: 14px; letter-spacing: 0.08em; color: var(--color-neutral-700); line-height: 1.1; font-feature-settings: 'tnum' 1; }
.log-date span { font-size: 40px; line-height: 1; color: var(--color-text); letter-spacing: 0; }
.log-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--color-divider); }
.log-thumb img { width: 100%; height: 100%; object-fit: cover; }
.log-title { font-size: 24px; line-height: 1.12; margin: 0 0 8px; letter-spacing: 0; }
.log-body > p { font-size: 15px; line-height: 1.5; margin: 0; max-width: 64ch; }
.log-body .meta-row { margin-top: 10px; }
.log-arrow { color: var(--color-neutral-500); padding-top: 6px; transition: color .2s, transform .2s; }
.log-row:hover .log-arrow { color: var(--color-accent); transform: translateX(4px); }

/* ── articoli: griglia ────────────────────────────────────────────────── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 28px; margin-bottom: 56px; }
.guide-card { display: flex; flex-direction: column; padding: 20px; transition: background .2s; }
.guide-card:hover { background: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.guide-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.guide-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 48px; line-height: 1; color: var(--color-accent); font-feature-settings: 'tnum' 1; }
.guide-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 16px; }
.guide-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.02); transition: filter .4s; }
.guide-card:hover .guide-media img { filter: none; }
.guide-title { font-size: 24px; line-height: 1.08; margin: 0 0 10px; }
.guide-card > p { font-size: 15px; line-height: 1.5; margin: 0 0 18px; flex: 1; }
.guide-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--color-divider); padding-top: 12px; }
.guide-meta > div { padding-right: 18px; }
.guide-meta > div + div { padding-left: 18px; border-left: 1px solid var(--color-divider); }
.guide-meta dt, .spec dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); }
.guide-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }

/* ── dettaglio: testata ───────────────────────────────────────────────── */
.post { padding-bottom: 64px; }
.post-head { max-width: 860px; padding: 36px 0 28px; }
.post-kicker { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); margin-bottom: 14px; }
.post-kicker .kicker { margin: 0; }
.post-kicker > * + *::before { content: "·"; margin-right: 14px; color: var(--color-neutral-500); }
.post-title { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.02; margin: 0 0 0 -0.03em; text-wrap: balance; }
.post-lead { font-size: 19px; line-height: 1.5; margin: 18px 0 0; max-width: 60ch; color: var(--color-neutral-800); }

.post-cover { margin: 0 0 40px; }
.post-cover-img { aspect-ratio: 21 / 9; overflow: hidden; }
.post-cover-img img { width: 100%; height: 100%; object-fit: cover; }
.post-cover figcaption { position: absolute; left: 0; right: 0; bottom: -26px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-cover figcaption a { color: inherit; }
/* foto a bassa risoluzione: formato ridotto invece di stirarle a tutta larghezza */
.post-cover-narrow { max-width: 560px; }
.post-cover-narrow .post-cover-img { aspect-ratio: 4 / 3; }

.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.post-side { position: sticky; top: 92px; display: grid; gap: 24px; }
.source-box { padding: 18px; }
.source-box .kicker { margin-bottom: 8px; }
.source-name { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; line-height: 1.15; margin: 0; overflow-wrap: anywhere; }
.source-box .read-more { margin-top: 12px; font-size: 14px; }

.spec { margin: 0; display: grid; }
.spec > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); }
.spec > div:last-child { border-bottom: 0; }
.spec dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right; }

.post-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-divider); }
.share { flex-wrap: wrap; align-items: center; gap: 8px; display: flex; }
.share-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); margin-right: 6px; }
.share .btn { min-height: 36px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.share .btn.is-done { border-color: var(--color-accent); color: var(--color-accent-700); }

.pager { display: grid; grid-template-columns: 1fr 1fr; margin: 56px 0 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.pager-cell { display: grid; gap: 6px; padding: 20px 20px 22px 0; text-decoration: none; color: inherit; }
.pager-cell .kicker { margin: 0; }
.pager-next { text-align: right; padding: 20px 0 22px 20px; border-left: 1px solid var(--color-divider); grid-column: 2; }
.pager-title { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 20px; line-height: 1.15; }
.pager-cell:hover .pager-title { color: var(--color-accent-700); }

/* ── articolo: testata e layout ───────────────────────────────────────── */
.guide-head { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 48px; align-items: end; padding: 36px 0 32px; border-bottom: 1px solid var(--color-divider); margin-bottom: 40px; }
.spec-card { padding: 18px 20px 8px; }
.spec-card .kicker { margin-bottom: 4px; }

.guide-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: 14px; max-height: calc(100vh - 120px); overflow: auto; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-divider); }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--color-neutral-800); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--color-text); }
.toc a.is-active { border-left-color: var(--color-accent); color: var(--color-text); font-weight: 600; }
.toc-num { font-family: var(--font-heading); font-weight: var(--font-heading-weight); color: var(--color-accent); font-feature-settings: 'tnum' 1; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 30; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--color-accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ── prosa ────────────────────────────────────────────────────────────── */
.prose { font-size: 17px; line-height: 1.68; max-width: 70ch; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose table, .prose .highlight, .prose details, .prose .admonition, .prose .tabbed-set { margin: 0 0 22px; }
.prose h2 { font-size: 30px; line-height: 1.1; letter-spacing: 0.01em; text-transform: uppercase; margin: 52px 0 16px; scroll-margin-top: 90px; }
.prose h3 { font-size: 22px; line-height: 1.2; letter-spacing: 0.01em; margin: 36px 0 10px; scroll-margin-top: 90px; }
.prose h4 { font-size: 18px; margin: 28px 0 8px; }
.prose .headerlink { margin-left: 10px; font-family: var(--font-body); font-size: .6em; color: var(--color-neutral-500); text-decoration: none; opacity: 0; transition: opacity .15s; }
.prose :is(h2, h3, h4):hover .headerlink, .prose .headerlink:focus-visible { opacity: 1; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--color-accent); }
.prose strong { font-weight: 600; }
.prose img { height: auto; border: 1px solid var(--color-divider); }
.prose hr { height: 1px; border: 0; background: var(--color-divider); margin: 40px 0; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--color-accent); font-family: var(--font-heading); font-size: 24px; line-height: 1.3; color: var(--color-neutral-900); }
.prose blockquote p:last-child { margin-bottom: 0; }

/* intestazioni numerate negli articoli: 01, 02... come le sezioni della home */
.prose-numbered { counter-reset: h2; }
.prose-numbered h2 { counter-increment: h2; display: flex; align-items: baseline; gap: 14px; padding-top: 18px; border-top: 1px solid var(--color-divider); }
.prose-numbered h2::before { content: counter(h2, decimal-leading-zero); font-size: 18px; color: var(--color-accent); font-feature-settings: 'tnum' 1; letter-spacing: 0.04em; }

/* tabelle */
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th { text-align: left; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); padding: 10px 14px 10px 0; border-bottom: 1px solid var(--color-divider); }
.prose td { padding: 11px 14px 11px 0; border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent); vertical-align: top; }

/* codice */
.prose code { font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace; font-size: .86em; }
.prose :not(pre) > code { padding: 1px 6px; background: color-mix(in srgb, var(--color-accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--color-accent) 22%, transparent); overflow-wrap: anywhere; }
.prose .highlight { position: relative; border: 1px solid var(--color-divider); background: var(--color-surface); }
.prose .highlight pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; tab-size: 4; }
.prose .highlight[data-lang]::before { content: attr(data-lang); position: absolute; left: -1px; top: -1px; transform: translateY(-100%); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--color-neutral-700); padding: 2px 8px; border: 1px solid var(--color-divider); border-bottom: 0; background: var(--color-bg); }
.prose .highlight[data-lang] { margin-top: 34px; }
.prose .highlight .filename { display: block; padding: 8px 20px; border-bottom: 1px solid var(--color-divider); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; color: var(--color-neutral-800); background: color-mix(in srgb, var(--color-text) 4%, transparent); }
.copy-btn { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; padding: 5px 9px; cursor: pointer; color: var(--color-neutral-800); background: var(--color-bg); border: 1px solid var(--color-divider); opacity: 0; transition: opacity .15s; }
.highlight:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-done { opacity: 1; }
.copy-btn.is-done { color: var(--color-accent-700); border-color: var(--color-accent); }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* evidenziazione sintassi: palette del sito */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .ch, .highlight .cs, .highlight .cp { color: var(--color-neutral-600); font-style: italic; }
.highlight .k, .highlight .kn, .highlight .kd, .highlight .kc, .highlight .kr, .highlight .ow, .highlight .kp { color: var(--color-accent-700); font-weight: 600; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sd, .highlight .se, .highlight .si, .highlight .sa { color: #3f6a3a; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .il { color: #8a4b20; }
.highlight .nf, .highlight .fm, .highlight .nc { color: var(--color-accent-900); font-weight: 600; }
.highlight .nb, .highlight .bp, .highlight .nd { color: #6b4a8a; }
.highlight .o, .highlight .p { color: var(--color-neutral-800); }
.highlight .gp, .highlight .go { color: var(--color-neutral-600); user-select: none; }
.highlight .nv, .highlight .na, .highlight .nt { color: var(--color-accent-800); }
.highlight .hll { background: color-mix(in srgb, var(--color-accent) 14%, transparent); display: block; }

/* box di avviso (admonition / details) */
.prose .admonition, .prose details { position: relative; padding: 16px 20px 4px 22px; border: 1px solid var(--color-divider); border-left: 3px solid var(--color-accent); background: color-mix(in srgb, var(--color-accent) 5%, transparent); font-size: 16px; }
.prose .admonition-title, .prose details > summary { font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 8px; color: var(--color-accent-800); }
.prose details > summary { cursor: pointer; list-style: none; padding-bottom: 12px; margin: 0; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
.prose details[open] > summary::after { content: "-"; }
.prose details { border-bottom: 1px solid var(--color-divider); }
.prose :is(.admonition, details) > :last-child { margin-bottom: 14px; }
.prose :is(.admonition, details).warning, .prose :is(.admonition, details).danger { border-left-color: #b4542f; background: color-mix(in srgb, #b4542f 6%, transparent); }
.prose :is(.admonition, details).warning > :is(.admonition-title, summary), .prose :is(.admonition, details).danger > :is(.admonition-title, summary) { color: #8a3a1c; }
.prose :is(.admonition, details).tip, .prose :is(.admonition, details).success { border-left-color: #4f7a49; background: color-mix(in srgb, #4f7a49 6%, transparent); }
.prose :is(.admonition, details).tip > :is(.admonition-title, summary) { color: #355531; }

/* tab (pymdownx.tabbed, alternate_style) */
.prose .tabbed-set { display: flex; flex-wrap: wrap; position: relative; border: 1px solid var(--color-divider); }
.prose .tabbed-set > input { position: absolute; opacity: 0; pointer-events: none; }
.prose .tabbed-labels { display: flex; width: 100%; border-bottom: 1px solid var(--color-divider); overflow-x: auto; }
.prose .tabbed-labels > label { padding: 10px 16px; cursor: pointer; font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-neutral-700); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.prose .tabbed-content { width: 100%; padding: 16px 18px 0; }
.prose .tabbed-block { display: none; }
.prose .tabbed-set > input:nth-child(1):checked ~ .tabbed-content > .tabbed-block:nth-child(1),
.prose .tabbed-set > input:nth-child(2):checked ~ .tabbed-content > .tabbed-block:nth-child(2),
.prose .tabbed-set > input:nth-child(3):checked ~ .tabbed-content > .tabbed-block:nth-child(3),
.prose .tabbed-set > input:nth-child(4):checked ~ .tabbed-content > .tabbed-block:nth-child(4) { display: block; }
.prose .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > label:nth-child(1),
.prose .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > label:nth-child(2),
.prose .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > label:nth-child(3),
.prose .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > label:nth-child(4) { color: var(--color-text); border-bottom-color: var(--color-accent); }
.prose .tabbed-set > input:focus-visible ~ .tabbed-labels { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.prose kbd { font-family: inherit; font-size: .85em; padding: 1px 6px; border: 1px solid var(--color-divider); border-bottom-width: 2px; background: var(--color-bg); }

/* ── correlati e CTA ──────────────────────────────────────────────────── */
.related { padding: 56px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.related-card { display: grid; gap: 10px; padding: 18px; text-decoration: none; color: inherit; }
.related-card:hover { background: color-mix(in srgb, var(--color-accent) 5%, transparent); }
.related-title { font-size: 20px; line-height: 1.12; }

.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 28px; margin-top: 64px; }
.cta-title { font-size: clamp(24px, 3vw, 32px); line-height: 1.05; margin: 0 0 8px; }
.cta-box p.muted { margin: 0; font-size: 16px; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-actions .btn { min-height: 46px; padding-inline: 20px; font-size: 15px; }
.cta-mail { margin: 10px 0 0; font-size: 13px; color: var(--color-neutral-700); }
.cta-side { padding: 18px; display: grid; gap: 8px; }
.cta-side .kicker { margin: 0; }
.cta-side-title { font-size: 22px; line-height: 1.05; margin: 0; }
.cta-side p.muted { margin: 0; font-size: 14px; line-height: 1.45; }
.cta-side .btn { min-height: 44px; margin-top: 6px; font-size: 15px; }
.guide-side { position: sticky; top: 92px; display: grid; gap: 28px; }
.guide-side .toc { position: static; }

/* ── pagine semplici (privacy, 404) ───────────────────────────────────── */
.page { max-width: 800px; padding-top: 40px; padding-bottom: 64px; }
.page-title { font-size: clamp(34px, 5vw, 48px); line-height: 1.04; margin: 0 0 28px; }
.page .prose h2 { font-size: 22px; margin: 36px 0 8px; }
.page-404 .cta-actions { margin-top: 28px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; border: 1px solid var(--color-divider); padding: 16px 18px; }
  .guide-side { position: static; }
  .guide-side .cta-side { display: none; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 820px) {
  .listing-head, .guide-head { grid-template-columns: minmax(0, 1fr); }
  .listing-stats { justify-self: start; }
  .news-lead { grid-template-columns: minmax(0, 1fr); }
  .news-lead-media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--color-divider); }
  .log-row { grid-template-columns: 52px minmax(0, 1fr); gap: 8px 16px; }
  .log-thumb, .log-arrow { display: none; }
  .log-date span { font-size: 32px; }
  .cta-box { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .listing-head { padding-top: 24px; }
  .post-head, .guide-head { padding-top: 24px; }
  .post-cover-img { aspect-ratio: 16 / 10; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 26px; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager-next { grid-column: 1; border-left: 0; border-top: 1px solid var(--color-divider); padding-left: 0; text-align: left; }
  .listing-stats > div { padding: 10px 14px; min-width: 0; }
  .news-lead-body { padding: 22px 20px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-lead-media img, .read-more svg, .log-row::before, .log-arrow, .guide-media img { transition: none; }
  .progress { display: none !important; }
}
