/* =========================================================================
   Il Pontino v2 - foglio di stile editoriale
   Carattere unico: Source Sans 3 (sans serif). Palette del sito originale www.ilpontino.it:
   blu portale #006cda, rosso logo, Il Pontino Nuovo #EC008C, Il Pontino Aprilia #00ADEF, Il Litorale #00A650.
   ========================================================================= */
:root {
  --ink: #121212;
  --ink-2: #3b3b3b;
  --muted: #6d6d6d;
  --rule: #e4e1dc;
  --rule-strong: #006cda;
  --blu-scuro: #0052a6;
  --blu-tenue: #eaf3fd;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --blu: #006cda;
  --rosso: #e10600;
  --nuovo: #EC008C;
  --aprilia: #00ADEF;
  --litorale: #00A650;
  --serif: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1420px;
  --gap: clamp(18px, 2.4vw, 32px);
  --tc: var(--blu);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;

}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--blu); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }
::selection { background: var(--blu); color: #fff; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #121212; color: #fff; padding: 8px 14px; z-index: 2000; }
.skip:focus { left: 8px; color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.narrow { max-width: 860px; }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- barra superiore */
/* Riprende #top-header di www.ilpontino.it: fondo #006cda, testi bianchi maiuscoli 12px, logo bianco a sinistra, social a destra */
.topbar { background: var(--blu); color: #fff; font-size: 12px; line-height: 12px; }
.topbar-in { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.tb-logo { display: block; margin-right: auto; }
.tb-logo img { height: 24px; width: auto; }
.tb-links { display: flex; align-items: center; gap: 14px; }
.tb-links a { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; display: inline-flex; align-items: center; }
.tb-links a:hover, .tb-social a:hover { color: #fff; opacity: .72; }
.tb-social { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.tb-social a { display: inline-flex; color: #fff; transition: opacity .18s ease; }
.tb-social .ico { width: 13px; height: 13px; }
.tb-date { text-transform: capitalize; font-weight: 600; color: var(--blu); }
.ico { fill: currentColor; flex-shrink: 0; }

/* ---------------------------------------------------------------- testata */
.masthead { padding: clamp(18px, 3vw, 34px) 0 clamp(14px, 2.4vw, 26px); }
.masthead-in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.mh-logo img { width: clamp(220px, 30vw, 380px); height: auto; }
.mh-side { font-size: 12px; line-height: 1.5; color: var(--muted); }
.mh-side b { color: var(--ink-2); font-weight: 600; letter-spacing: .3px; }
.mh-left { line-height: 1.6; }
.mh-right { display: flex; justify-content: flex-end; gap: 16px; align-items: center; }
.mh-right img { height: 26px; width: auto; opacity: .9; transition: opacity .2s ease, transform .2s ease; }
.mh-right a:hover img { opacity: 1; transform: translateY(-1px); }

/* ---------------------------------------------------------------- menu */
.mainnav {
  position: sticky; top: 0; z-index: 900; background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(0, 108, 218, .06);
}
.mainnav-in { display: flex; align-items: center; min-height: 50px; gap: 18px; }
.nav-logo { display: block; width: 0; overflow: hidden; opacity: 0; transition: width .25s ease, opacity .25s ease; }
.nav-logo img { width: 104px; height: auto; }
.mainnav.is-stuck .nav-logo { width: 104px; opacity: 1; }
.menu { list-style: none; display: flex; margin: 0 auto; padding: 0; gap: 4px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  position: relative; display: block; margin: 7px 2px; padding: 8px 14px; font-size: 15px; font-weight: 600;
  letter-spacing: .2px; color: var(--ink); border-radius: 4px; transition: color .18s ease, background-color .18s ease;
}
.menu > li > a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--blu); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.menu > li > a:hover { color: var(--blu); }
.menu > li > a:hover::after { transform: scaleX(1); }
.menu > li > a[aria-current="page"] { color: var(--blu); background: var(--blu-tenue); }
.menu > li > a[aria-current="page"]::after { transform: scaleX(1); }
.sub-toggle { display: none; }
.sub {
  list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--rule); border-top: 2px solid var(--blu); border-radius: 0 0 6px 6px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: 8px 18px; font-size: 14px; border-left: 3px solid transparent; }
.sub a[style]:hover { border-left-color: var(--tc); color: var(--tc); }
.sub a:hover { background: var(--blu-tenue); color: var(--blu); }
.burger { display: none; }
.drawer-backdrop { display: none; }

/* ---------------------------------------------------------------- sezioni */
.sec { padding-top: clamp(34px, 5vw, 60px); }
.sec-sm { margin-top: clamp(30px, 4vw, 46px); }
.sec-head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 14px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.sec-head::before { content: ''; position: absolute; left: 0; top: -2px; width: 64px; height: 3px; border-radius: 2px; background: var(--blu); }
.sec-title { font-family: var(--sans); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.5px; color: var(--ink); }
.sec-more { font-size: 14px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; color: var(--blu); }
.sec-more:hover { color: var(--blu-scuro); }
.mini-title { position: relative; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 12px 0 0; border-top: 1px solid var(--rule); margin-bottom: 20px; color: var(--blu); }
.mini-title::before { content: ''; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--tc); }
.mini-title span { color: var(--muted); font-weight: 500; letter-spacing: .5px; margin-left: 6px; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; color: var(--tc); margin-bottom: 8px; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.note a { color: var(--blu); text-decoration: underline; }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  font-size: 14px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; border-radius: 4px;
  border: 1px solid transparent; cursor: pointer; transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-tc { background: var(--tc); color: #fff; }
.btn-tc:hover { color: #fff; background: color-mix(in srgb, var(--tc) 82%, #000); }
.btn-dark { background: var(--blu); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--blu-scuro); }
.btn-ghost { border-color: var(--tc); color: var(--tc); background: transparent; }
.btn-ghost:hover { background: var(--tc); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 14.5px; }
.link-arch { font-size: 13.5px; font-weight: 700; color: var(--tc); }
.link-arch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- testate */
.sec.sec-testate { padding-top: clamp(24px, 3.5vw, 40px); }
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tcard {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 26px 22px 24px; border-top: 5px solid var(--tc); background: var(--paper-2);
  isolation: isolate; overflow: hidden;
}
.tcard::before {
  content: ''; position: absolute; left: 0; right: 0; top: 150px; height: 46%; z-index: -1;
  background: color-mix(in srgb, var(--tc) 10%, #fff);
}
.tcard-logo img { height: 56px; width: auto; }
.tcard-terr { margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--ink-2); }
.tcard-cover { margin: 22px auto 0; width: min(78%, 290px); }
.tcard-info { margin-top: 22px; }
.tcard-info h3 { font-size: 25px; line-height: 1.15; font-weight: 800; color: var(--tc); }
.tcard-info p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.tcard-info p span { color: var(--tc); }
.tcard-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.tcard-actions .btn { width: 100%; max-width: 290px; }
.tcard-long { display: contents; }

.paper { position: relative; display: block; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 20px -10px rgba(0, 0, 0, .35); transition: transform .3s ease, box-shadow .3s ease; }
.paper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .10), rgba(0, 0, 0, 0) 6%, rgba(255, 255, 255, 0) 94%, rgba(0, 0, 0, .05)); pointer-events: none; }
.paper img { width: 100%; height: auto; aspect-ratio: 620 / 877; object-fit: cover; }
a.paper:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 18px 30px -14px rgba(0, 0, 0, .45); }
.cover-missing { display: flex; align-items: center; justify-content: center; aspect-ratio: 620 / 877; background: repeating-linear-gradient(135deg, #f3f3f3 0 10px, #ebebeb 10px 20px); color: var(--muted); font-size: 13px; padding: 20px; }

/* ---------------------------------------------------------------- notizie: card */
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; }
.k-cat { color: var(--blu); }
.k-cat:hover { color: var(--ink); }
.k-terr { color: var(--tc); position: relative; padding-left: 12px; }
.k-terr::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--tc); border-radius: 50%; }
.k-terr:hover { color: var(--ink); }
.story-media { display: block; overflow: hidden; background: var(--paper-2); }
.story-media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.story:hover .story-media img { transform: scale(1.03); }
.story-title { font-weight: 700; letter-spacing: -.3px; color: var(--ink); }
.story-title a:hover { color: var(--blu); }
.story-excerpt { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; margin-top: 8px; font-weight: 400; }
.story-meta { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.story-std .story-body { padding-top: 14px; }
.story-std .story-title { font-size: 21px; line-height: 1.22; }
.story-std .story-excerpt { font-size: 15.5px; }
.story-lead .story-media img { aspect-ratio: 3 / 2; }
.story-lead .story-body { padding-top: 18px; }
.story-lead .story-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; }
.story-lead .story-excerpt { font-size: 19px; font-weight: 500; margin-top: 12px; max-width: 62ch; }
.story-side { display: grid; grid-template-columns: minmax(0, 1fr) 38%; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.story-side:last-child { border-bottom: 0; padding-bottom: 0; }
.story-side .story-media { order: 2; }
.story-side .story-title { font-size: 20px; line-height: 1.22; }
.story-compact { padding-top: 14px; border-top: 1px solid var(--rule); }
.story-compact .story-title { font-size: 18px; line-height: 1.25; }
.story-thumb { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.story-thumb:last-child { border-bottom: 0; }
.story-thumb .story-title { font-size: 16.5px; line-height: 1.25; }
.story-thumb .story-meta { margin-top: 4px; font-size: 12px; }
.story-row { display: grid; grid-template-columns: 36% minmax(0, 1fr); gap: var(--gap); padding: 0 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--rule); }
.story-row .story-title { font-size: 24px; line-height: 1.18; }

.evidenza { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.evidenza-side { display: flex; flex-direction: column; gap: 20px; border-left: 1px solid var(--rule); padding-left: var(--gap); }
.evidenza-sm .story-lead .story-title { font-size: clamp(26px, 3vw, 36px); }
.evidenza-sm .story-side .story-title { font-size: 18px; }

.grid-ultime { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-ultime .story:first-child { grid-column: span 2; grid-row: span 2; }
.grid-ultime .story:first-child .story-title { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.grid-ultime .story:first-child .story-media img { aspect-ratio: 4 / 3; }
.grid-ultime .story:not(:first-child) .story-excerpt { display: none; }
.compatte { margin-top: 10px; }
.sec .center { margin-top: 34px; }

/* ---------------------------------------------------------------- territorio (schede) */
.sec-territorio { margin-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(30px, 4vw, 50px); background: var(--paper-2); }
.sec-territorio .sec-head { border-top-color: transparent; padding-top: 0; }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; padding: 14px 20px 12px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px;
  font-family: var(--sans); font-size: 19px; font-weight: 700; color: var(--muted); cursor: pointer; transition: color .18s ease, border-color .18s ease;
}
.tab:hover { color: var(--tc); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tc); }
.tab-panel .story-std { background: #fff; }
.tab-panel .story-std .story-body { padding: 14px 16px 18px; }
.panel-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 24px; }
.panel-foot .btn-ghost { border-color: var(--tc); color: var(--tc); }
.panel-foot .btn-ghost:hover { background: var(--tc); color: #fff; }
.vuoto { color: var(--muted); }

.cat-grid { row-gap: 34px; }
.cat-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding-bottom: 8px; border-bottom: 2px solid var(--blu); margin-bottom: 4px; }
.cat-title a { color: var(--blu); }
.cat-more { font-size: 16px; line-height: 1.3; padding-top: 10px; }

/* ---------------------------------------------------------------- pubblicità */
.adv { margin: clamp(26px, 3vw, 38px) auto; width: 100%; }
.adv-tag { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1.6px; color: #9a9a9a; text-align: center; margin-bottom: 5px; }
.adv-box { width: 100%; height: 100%; }
.adv-ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; padding: 8px;
  background: #fafaf8; border: 1px solid var(--rule); color: var(--muted);
}
.adv-label { font-size: 17px; font-style: italic; color: var(--ink-2); }
.adv-size { font-size: 11px; letter-spacing: .5px; }
.adv-cta { font-size: 11.5px; font-weight: 700; color: var(--blu); }
.adv-cta:hover { text-decoration: underline; }
.adv a img, .adv picture img { width: 100%; height: 100%; object-fit: contain; }
.adv-caption { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.adv-leaderboard .adv-box { height: clamp(90px, 8.5vw, 130px); }
.adv-infeed .adv-box { height: clamp(90px, 9vw, 120px); }
.adv-inarticle .adv-box { height: 250px; }
.adv-sidebar { margin-top: 0; }
.adv-sidebar .adv-box { aspect-ratio: 1 / 2; }

/* ---------------------------------------------------------------- layout con colonna laterale */
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: 6px; }
.col-side { position: relative; }
.side-box { margin-top: 30px; }
.side-title { position: relative; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding-top: 12px; border-top: 1px solid var(--rule); margin-bottom: 6px; color: var(--blu); }
.side-title::before { content: ''; position: absolute; left: 0; top: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--blu); }
.side-rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.side-rank li { counter-increment: r; position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); }
.side-rank li::before { content: counter(r); position: absolute; left: 0; top: 8px; font-size: 28px; line-height: 1; color: var(--blu); font-weight: 800; }
.side-rank a { font-size: 16px; line-height: 1.3; font-weight: 700; display: block; }
.side-rank span { font-size: 12px; color: var(--muted); }
.side-testata { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.side-cover { width: 64px; height: auto; aspect-ratio: 620 / 877; object-fit: cover; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .4); }
.side-testata img:not(.side-cover) { height: 22px; width: auto; }
.side-testata small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.side-testata:hover small { color: var(--tc); }

/* ---------------------------------------------------------------- pagine elenco */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 18px 0 6px; }
.breadcrumb a:hover { color: var(--blu); }
.breadcrumb [aria-current] { color: var(--ink-2); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-sep { color: #c3c0ba; }
.page-head { padding: 14px 0 24px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -1.2px; font-weight: 800; color: var(--blu); }
.page-head[style] h1 { color: var(--tc); }
.page-head .lead { margin-top: 12px; font-weight: 500; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 64ch; }
.page-testata { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 14px 8px 10px; border: 1px solid var(--rule); font-size: 13px; font-weight: 700; }
.page-testata img { height: 30px; width: auto; }
.page-testata:hover { border-color: var(--tc); color: var(--tc); }
.months { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 18px 0 0; font-size: 14px; }
.months a { font-weight: 700; color: var(--blu); }
.months span { color: var(--muted); font-size: 12px; }
.filters { margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #d3d0ca; background: #fff;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.chip:hover { border-color: var(--tc); color: var(--tc); }
.chip.on { background: var(--tc); border-color: var(--tc); color: #fff; }
.chip:not([style]).on { background: var(--blu); border-color: var(--blu); }
.filter-empty { color: var(--muted); padding: 20px 0; }
.rows .adv { margin: 0 auto 26px; }
.zone-group { margin-top: 34px; padding-top: 14px; border-top: 4px solid var(--tc); }
.zone-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.zone-head img { height: 40px; width: auto; }
.zone-head p { font-size: 12px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); font-weight: 700; }
.zone-title { font-size: 26px; padding: 8px 0 4px; }
.zone-title a { color: var(--tc); }

/* ---------------------------------------------------------------- articolo */
.article { max-width: 1000px; }
.art-head { max-width: 900px; }
.art-foot { max-width: 780px; }
.art-head { padding-top: 10px; }
.art-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -1.2px; font-weight: 800; margin-top: 6px; }
.art-dek { font-weight: 500; font-size: clamp(19px, 2vw, 22px); line-height: 1.42; color: var(--ink-2); margin-top: 16px; }
.art-byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--muted); margin: 22px 0 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.art-byline b { color: var(--ink); }
.art-hero { margin: 26px 0 0; }
.art-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.art-hero figcaption, .np-figura-interna figcaption { font-size: 13px; color: var(--muted); padding-top: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.art-body { font-size: 19px; line-height: 1.7; font-weight: 400; color: #1d1d1d; max-width: 680px; margin-top: 30px; }
.art-body p { margin: 0 0 1.15em; }
.art-body h2, .art-body .art-h2 { font-size: 27px; line-height: 1.2; margin: 1.6em 0 .5em; letter-spacing: -.4px; font-weight: 700; }
.art-body h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; margin: 1.4em 0 .4em; }
.art-body blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--blu); font-size: 23px; line-height: 1.4; font-style: italic; font-weight: 500; color: var(--ink); }
.art-body .np-figura-interna { margin: 1.6em 0; }
.art-body .np-figura-interna img { width: 100%; }
.art-body .adv { font-family: var(--sans); margin: 1.6em auto; }
.box-approf { margin: 34px 0 0; padding: 22px 24px; border-top: 4px solid var(--tc); background: var(--paper-2); max-width: 680px; }
.box-approf h3 { font-size: 23px; line-height: 1.2; margin-bottom: 8px; font-weight: 700; }
.box-approf p { font-size: 15.5px; color: var(--ink-2); }
.box-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.box-links a:not(.btn) { font-weight: 700; color: var(--tc); font-size: 14px; }
.gallery { margin-top: 40px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-grid a { display: block; overflow: hidden; background: var(--paper-2); }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease, opacity .2s ease; }
.gallery-grid a:hover img { transform: scale(1.05); opacity: .92; }
.art-foot { margin-top: 36px; }
.art-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; margin-bottom: 18px; }
.art-tags > span { color: var(--muted); }
.art-tags a { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-right: 6px; }
.sh {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--rule); background: #fff;
  border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.sh-fb .ico { color: #1877F2; } .sh-wa .ico { color: #25D366; } .sh-tg .ico { color: #229ED9; } .sh-x .ico { color: #111; } .sh-copy .ico { color: var(--muted); }
.sh-fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.sh-wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.sh-tg:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.sh-x:hover { background: #111; border-color: #111; color: #fff; }
.sh-copy:hover, .sh-copy.copiato { background: var(--blu); border-color: var(--blu); color: #fff; }
.sh:hover .ico, .sh-copy.copiato .ico { color: #fff; }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; border-top: 1px solid var(--rule); }
.prevnext a { display: block; padding: 16px 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.prevnext small { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); margin-bottom: 6px; }
.pn-next { grid-column: 2; text-align: right; }
.leggi-anche { margin-top: 50px; }

/* ---------------------------------------------------------------- testata e edizioni */
.testata-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); padding: 26px 0 34px; border-top: 6px solid var(--tc); margin-top: 10px; }
.th-logo { height: clamp(56px, 7vw, 80px); width: auto; }
.th-terr { margin-top: 18px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }
.th-terr a { color: var(--tc); }
.th-descr { font-size: clamp(20px, 2.1vw, 24px); line-height: 1.4; font-weight: 500; margin-top: 16px; }
.th-more { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; }
.th-more p { margin: 0 0 .8em; }
.th-more p:first-child { display: none; }
.th-last { background: var(--paper-2); padding: 22px; text-align: center; }
.th-last .paper { width: min(80%, 300px); margin: 6px auto 0; }
.th-num { margin: 16px 0 14px; font-size: 15px; color: var(--ink-2); }
.year { margin-top: 10px; }
.year-title { font-size: 30px; font-weight: 800; margin: 10px 0 18px; color: var(--tc); }
.year-title span { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 30px 22px; }
.ed-card { text-align: center; }
.ed-card h3 { font-size: 19px; margin-top: 12px; }
.ed-card p { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.arch-testata { border-top: 5px solid var(--tc); padding-top: 18px; }
.arch-head { display: flex; align-items: center; gap: 16px; }
.arch-head img { height: 44px; width: auto; }
.arch-head span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); }
.page-head .chips { margin-top: 18px; }

.edition { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(26px, 5vw, 70px); padding: 18px 0 10px; align-items: start; }
.ed-cover .paper { max-width: 420px; }
.ed-logo { height: 60px; width: auto; }
.edition h1 { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; margin-top: 18px; letter-spacing: -1px; font-weight: 800; }
.edition h1 span { display: block; color: var(--tc); }
.ed-date { font-size: 22px; color: var(--ink-2); margin-top: 6px; }
.ed-facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ed-facts li { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); }
.ed-facts span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--muted); font-weight: 700; }
.ed-facts b { font-size: 15.5px; }
.ed-descr { font-style: italic; font-size: 18px; color: var(--ink-2); margin-top: 18px; }
.ed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 24px; }
.flip-section { margin-top: 40px; scroll-margin-top: 60px; }
.flip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.flip-head .mini-title { flex: 1 1 100%; }
.flip-help { font-size: 13.5px; color: var(--muted); margin: -10px 0 14px; }
.flip-stage { position: relative; height: min(86vh, 860px); min-height: 460px; background: #2b2b2b; overflow: hidden; }
.flip-poster { position: absolute; inset: 0; width: 100%; border: 0; padding: 30px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 40%, #4a4a4a, #222 70%); }
.flip-poster-img { height: 72%; width: auto; aspect-ratio: 620 / 877; object-fit: cover; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); transition: transform .3s ease; }
.flip-poster:hover .flip-poster-img { transform: translateY(-4px) scale(1.01); }
.flip-missing { margin-top: 40px; padding: 22px 24px; background: var(--paper-2); border-left: 4px solid var(--tc); }
.flip-missing p { color: var(--ink-2); }
.flip-missing code { font-size: 13px; background: #fff; padding: 1px 5px; }
.ocr details { border-bottom: 1px solid var(--rule); }
.ocr summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 15px; }
.ocr summary:hover { color: var(--tc); }
.ocr details p { font-size: 16.5px; line-height: 1.6; color: var(--ink-2); padding: 0 0 16px; }
.ed-nav { max-width: 860px; }

/* ---------------------------------------------------------------- pagine istituzionali (contenuti originali) */
.prose { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); padding-bottom: 20px; }
.prose h1, .prose .big-title { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; color: var(--blu); margin: 10px 0 24px; }
.prose h2 { font-size: 26px; color: var(--ink); margin: 1.4em 0 .5em; }
.prose h3 { font-size: 23px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 22px; }
.prose a { color: var(--blu); text-decoration: underline; }
.prose br + br { display: none; }
.prose .span1 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 10px 0 24px; }
.prose .clear { display: none; }
.prose .grey-box { background: var(--paper-2); border-left: 4px solid var(--blu); padding: 18px 20px; line-height: 1.7; }
.prose .editore-testata { padding: 24px 0; border-top: 1px solid var(--rule); overflow: hidden; }
.prose .editore-testata img { float: left; height: 46px; width: auto; margin: 4px 22px 10px 0; }
.prose .ins-contatti .span3 { text-align: center; border-top: 3px solid var(--blu); padding-top: 16px; }
.prose .ins-contatti img { height: 40px; width: auto; margin: 0 auto 12px; }
.prose .ico { vertical-align: -3px; margin-right: 4px; }

.page-404 { padding: 70px 0 40px; }
.page-404 h1 { font-size: clamp(40px, 6vw, 64px); }
.page-404 p { margin-top: 14px; }

/* ---------------------------------------------------------------- footer */
.footer { margin-top: clamp(50px, 7vw, 90px); border-top: 4px solid var(--blu); background: var(--paper-2); padding: 34px 0 30px; font-size: 14px; }
.ft-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.ft-logo img { width: 200px; height: auto; }
.ft-social { display: flex; gap: 14px; }
.ft-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid #d6d2cb; border-radius: 50%; color: var(--ink-2); transition: background-color .18s ease, color .18s ease; }
.ft-social a:hover { background: var(--blu); border-color: var(--blu); color: #fff; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 26px 0; }
.ft-grid h3 { color: var(--blu); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; margin-bottom: 12px; }
.ft-grid ul { list-style: none; margin: 0; padding: 0; }
.ft-grid li { padding: 4px 0; }
.ft-testate li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.ft-testate img { height: 34px; width: auto; }
.ft-testate span { font-size: 12.5px; color: var(--muted); }
.ft-legal { border-top: 1px solid var(--rule); padding-top: 18px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.ft-legal a { text-decoration: underline; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .menu > li > a { padding: 15px 10px 14px; font-size: 12.5px; letter-spacing: .6px; }
  .grid-ultime { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-side { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 960px) {
  .tb-links { gap: 12px; }
  .mh-side { display: none; }
  .masthead-in { grid-template-columns: 1fr; justify-items: center; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 10px; }
  .burger span { display: block; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  .menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .burger span:nth-child(2) { opacity: 0; }
  .menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-logo { width: 104px; opacity: 1; }
  .menu {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); z-index: 1001; flex-direction: column; gap: 0; margin: 0;
    padding: 70px 0 30px; background: #fff; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
  }
  .menu-open .menu { transform: translateX(0); visibility: visible; }
  .menu-open .burger { position: fixed; top: 6px; right: 10px; z-index: 1002; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
  .menu > li > a { flex: 1; padding: 16px 24px; font-size: 15px; border-bottom: 0; margin: 0; }
  .menu > li > a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--blu); }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: none; border: 0; border-left: 1px solid var(--rule); font-size: 16px; cursor: pointer; transition: transform .2s ease; }
  .sub-open .sub-toggle { transform: rotate(180deg); }
  .sub { position: static; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 10px; display: none; min-width: 0; }
  .sub-open .sub { display: block; }
  .sub a { padding: 10px 36px; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 899; background: rgba(0, 0, 0, .35); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .menu-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }

  .tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tcards:not(.tcards-page) .tcard { padding: 16px 14px; border-top-width: 4px; }
  .tcards:not(.tcards-page) .tcard::before { top: 92px; }
  .tcards:not(.tcards-page) .tcard-logo img { height: 38px; max-width: 100%; object-fit: contain; }
  .tcards:not(.tcards-page) .tcard-terr { margin-top: 4px; font-size: 10.5px; letter-spacing: 1.2px; }
  .tcards:not(.tcards-page) .tcard-cover { margin-top: 12px; width: min(62%, 170px); }
  .tcards:not(.tcards-page) .tcard-info { margin-top: 12px; }
  .tcards:not(.tcards-page) .tcard-info h3 { font-size: 18px; line-height: 1.15; }
  .tcards:not(.tcards-page) .tcard-info p { font-size: 12.5px; margin-top: 2px; }
  .tcards:not(.tcards-page) .tcard-actions { margin-top: 10px; gap: 6px; }
  .tcards:not(.tcards-page) .tcard:not(:nth-child(3)) .tcard-actions { margin-top: auto; padding-top: 10px; }
  .tcards:not(.tcards-page) .tcard-actions .btn { min-height: 40px; padding: 9px 12px; font-size: 14px; }
  .tcards:not(.tcards-page) .tcard-actions .link-arch { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
  .tcards:not(.tcards-page) .tcard-long { display: none; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: clamp(84px, 24%, 130px) minmax(0, 1fr); grid-template-areas: "cover logo" "cover terr" "cover info" "cover actions"; column-gap: 16px; align-items: center; justify-items: start; align-content: center; text-align: left; }
  .tcards:not(.tcards-page) .tcard:nth-child(3)::before { top: 0; bottom: 0; height: auto; right: auto; width: calc(clamp(84px, 24%, 130px) + 30px); }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-logo { grid-area: logo; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-terr { grid-area: terr; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-cover { grid-area: cover; margin: 0; width: 100%; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-info { grid-area: info; margin-top: 8px; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-actions { grid-area: actions; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-actions .btn { width: auto; }
  .tcards-page { display: grid; grid-template-columns: 1fr; margin-right: 0; padding-right: 0; overflow: visible; }
  .tcards-page .tcard { flex: none; }
  .evidenza { grid-template-columns: 1fr; }
  .evidenza-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
  .layout-side { grid-template-columns: 1fr; }
  .col-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .col-side .adv-sidebar { grid-column: 1 / -1; margin: 10px auto 0; }
  .col-side .adv-sidebar .adv-box { aspect-ratio: auto; height: 250px; }
  .testata-hero, .edition { grid-template-columns: 1fr; }
  .ed-cover .paper { max-width: 340px; margin: 0 auto; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .adv-leaderboard .adv-box { height: auto; aspect-ratio: 320 / 100; }
  .adv-infeed .adv-box { height: 250px; }
  .adv-size { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; gap: 12px; }
  .story-row .story-title { font-size: 22px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-body { font-size: 19px; }
  
  .ed-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flip-stage { height: 78vh; min-height: 420px; }
}

@media (max-width: 560px) {
  .topbar-in { gap: 12px; }
  .tb-links { display: none; }
  .tb-social { margin-left: auto; }
  .grid-ultime, .grid-4, .grid-2, .col-side { grid-template-columns: 1fr; }
  .grid-ultime .story:first-child { grid-column: auto; grid-row: auto; }
  .story-side { grid-template-columns: minmax(0, 1fr) 34%; }
  .story-side .story-title { font-size: 18px; }
  .story-lead .story-excerpt { font-size: 17px; }
  .sh span { display: none; }
  .sh { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .share-label { width: 100%; }
  .prevnext { grid-template-columns: 1fr; }
  .pn-next { grid-column: 1; text-align: left; }
  .ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-top { flex-direction: column; align-items: flex-start; }
  .tab { font-size: 18px; padding: 12px 14px 10px; }
  .prose .editore-testata img { float: none; margin: 0 0 12px; }
}

@media (max-width: 400px) {
  .tcards:not(.tcards-page) { gap: 10px; }
  .tcards:not(.tcards-page) .tcard { padding: 13px 10px; }
  .tcards:not(.tcards-page) .tcard::before { top: 78px; }
  .tcards:not(.tcards-page) .tcard-logo img { height: 30px; }
  .tcards:not(.tcards-page) .tcard-terr { font-size: 9.5px; letter-spacing: .8px; }
  .tcards:not(.tcards-page) .tcard-cover { width: min(70%, 130px); margin-top: 10px; }
  .tcards:not(.tcards-page) .tcard-info h3 { font-size: 16px; }
  .tcards:not(.tcards-page) .tcard-info p { font-size: 11.5px; }
  .tcards:not(.tcards-page) .tcard-actions .btn { padding: 8px; font-size: 13.5px; }
  .tcards:not(.tcards-page) .tcard-actions .link-arch { font-size: 12.5px; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) { column-gap: 12px; }
  .tcards:not(.tcards-page) .tcard:nth-child(3) .tcard-actions .btn { padding: 8px 16px; }
}
@media (max-width: 360px) {
  .tcards:not(.tcards-page) .tcard-info h3 { font-size: 14.5px; }
  .tcards:not(.tcards-page) .tcard-info p { font-size: 11px; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Modulo richiesta pubblicità */
.adv-form-wrap { margin: 36px 0 72px; padding: clamp(22px, 3vw, 40px); background: var(--paper-2); border-top: 4px solid var(--blu); }
.adv-form { display: grid; gap: 18px; }
.adv-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.adv-form input:not([type=checkbox]), .adv-form select, .adv-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #cfcac2; border-radius: 6px; background: #fff; width: 100%; }
.adv-form input:focus, .adv-form select:focus, .adv-form textarea:focus { outline: 2px solid var(--blu); outline-offset: 1px; border-color: var(--blu); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-privacy { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.f-privacy input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blu); }
.f-err { color: #c40000; font-weight: 600; font-size: 14.5px; margin: 8px 0 0; }
.tsel-group { border: 0; padding: 0; margin: 0; }
.tsel-group legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.tsel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tsel { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px !important; min-height: 160px; padding: 40px 14px 16px; border: 2px solid var(--rule); border-radius: 10px; background: #fff; cursor: pointer; user-select: none; transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s; }
.tsel:hover { border-color: color-mix(in srgb, var(--tc) 50%, var(--rule)); transform: translateY(-1px); }
.tsel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tsel img { height: 48px; width: auto; max-width: 100%; object-fit: contain; }
.tsel-txt { display: grid; gap: 2px; }
.tsel b { font-size: 16px; color: var(--ink); }
.tsel small { font-size: 13.5px; color: var(--muted); font-weight: 400; }
.tsel-check { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 2px solid #c9c4bc; border-radius: 6px; display: grid; place-items: center; color: transparent; background: #fff; transition: background-color .18s, border-color .18s, color .18s; }
.tsel:has(input:checked) { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 8%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 18%, transparent); }
.tsel:has(input:checked) .tsel-check { background: var(--tc); border-color: var(--tc); color: #fff; }
.tsel:has(input:focus-visible) { outline: 2px solid var(--tc); outline-offset: 3px; }
.tsel-group.errore .tsel { border-color: #e7a3a3; }
.adv-riepilogo { margin-top: 24px; padding: 22px 24px; border-left: 4px solid var(--blu); background: var(--blu-tenue); border-radius: 0 8px 8px 0; }
.adv-riepilogo h3 { margin: 0 0 10px; }
.adv-riepilogo p { margin: 4px 0; }
@media (max-width: 760px) {
  .f-row { grid-template-columns: 1fr; }
  .tsel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tsel-grid { grid-template-columns: 1fr; }
  .tsel { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 84px; padding: 14px 48px 14px 14px; gap: 14px !important; }
  .tsel img { height: 40px; width: 130px; flex: 0 0 130px; object-fit: contain; object-position: left center; }
  .tsel-check { top: 50%; transform: translateY(-50%); }
}

.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.f-help { font-size: 14px; color: var(--muted); margin: 0; max-width: 620px; }
.adv-riepilogo .f-help { margin: 14px 0 12px; }

/* Pagina Pubblicità */
.pubbl-head { max-width: 980px; padding: 10px 0 6px; }
.pubbl-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; color: var(--blu); margin: 8px 0 18px; }
.pubbl-head .lead { max-width: 860px; margin: 0 0 10px; }

/* Pagina L'Editore */
.ed-head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding: 10px 0 34px; border-bottom: 1px solid var(--rule); }
.ed-head h1 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -1px; font-weight: 800; color: var(--blu); margin: 8px 0 16px; }
.ed-head .lead { margin: 0; max-width: 720px; }
.ed-box { font-style: normal; background: var(--paper-2); border-left: 4px solid var(--blu); padding: 20px 22px; line-height: 1.75; font-size: 15.5px; color: var(--ink-2); }
.ed-box a { color: var(--blu); text-decoration: underline; }
.ed-tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.ed-tcard { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--rule); border-top: 5px solid var(--tc); background: #fff; transition: box-shadow .2s ease, transform .2s ease; }
.ed-tcard:hover { box-shadow: 0 10px 28px rgba(0, 0, 0, .07); transform: translateY(-2px); }
.ed-tcard-logo img { height: 52px; width: auto; max-width: 100%; object-fit: contain; }
.ed-tcard h3 { font-size: 22px; font-weight: 800; color: var(--tc); margin: 16px 0 6px; }
.ed-tcard-descr { font-size: 16px; line-height: 1.5; color: var(--ink); margin: 0 0 16px; }
.ed-tcard-testo { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); flex: 1; }
.ed-tcard-testo p { margin: 0 0 .8em; }
.ed-tcard .link-arch { color: var(--tc); margin-top: 8px; }
.tstats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.tstats li { background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tstats b { font-size: 19px; line-height: 1.2; font-weight: 800; color: var(--tc); }
.tstats span { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 600; }
.tstats-nota { font-size: 13px; color: var(--muted); margin: -10px 0 16px; }
.th-text .tstats { margin-top: 20px; max-width: 560px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.th-more p:first-child { display: block; }
.ed-social { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin: 20px 0 72px; padding: clamp(24px, 3vw, 40px); background: var(--blu-tenue); border-left: 5px solid var(--blu); }
.ed-social h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; color: var(--blu); margin: 0 0 12px; }
.ed-social p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); margin: 0; }
.soc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.soc-link { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: #fff; border: 1px solid #cfe0f5; border-radius: 8px; font-weight: 700; font-size: 15px; color: var(--ink); transition: background-color .18s, color .18s, border-color .18s, transform .18s; }
.soc-link .ico { fill: var(--blu); transition: fill .18s; }
.soc-link:hover { background: var(--blu); border-color: var(--blu); color: #fff; transform: translateY(-1px); }
.soc-link:hover .ico { fill: #fff; }
.zone-prov { font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; color: var(--tc); margin: 0; }
@media (max-width: 1100px) {
  .ed-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .ed-head, .ed-social { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ed-tgrid { grid-template-columns: 1fr; }
  .th-text .tstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Frontend PHP: paginazione, ricerca, moduli, video, allegati ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 28px 0 8px; font-size: 14px; font-weight: 700; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); }
.pager a:hover { border-color: var(--blu); color: var(--blu); }
.pager .pg-on { background: var(--blu); border-color: var(--blu); color: #fff; }
.pager .pg-gap { border: 0; min-width: 20px; color: var(--muted); }
.months a[aria-current] { color: var(--ink); text-decoration: underline; }
.search-form { display: flex; gap: 10px; margin-top: 18px; max-width: 640px; }
.search-form input { flex: 1; font: inherit; padding: 11px 14px; border: 1px solid #cfcac2; border-radius: 6px; background: #fff; min-width: 0; }
.ocr-risultati { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ocr-risultati li { padding: 12px 16px; border-left: 4px solid var(--tc); background: var(--paper-2); }
.ocr-risultati a { color: var(--ink); }
.ocr-risultati small { color: var(--muted); font-weight: 400; }
.ocr-risultati p { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
mark { background: #fff1a8; color: inherit; padding: 0 1px; }
.f-esito { padding: 16px 18px; border-radius: 6px; margin-bottom: 18px; font-size: 15.5px; border: 1px solid; }
.f-esito-ok { background: #ecf8f0; border-color: #9fd6b3; color: #145c2e; }
.f-esito-ko { background: #fdeeee; border-color: #f0b0ae; color: #8a1714; }
.f-esito a { color: inherit; text-decoration: underline; word-break: break-all; }
.f-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.adv-form button[disabled] { opacity: .6; cursor: wait; }
.art-video { position: relative; aspect-ratio: 16 / 9; margin: 28px 0; background: #000; }
.art-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.art-cta { margin: 24px 0; }
.art-allegati ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.art-allegati a { font-weight: 700; color: var(--blu); }
.art-allegati small { color: var(--muted); }
.side-news p { font-size: 14.5px; color: var(--ink-2); margin: 0 0 12px; }
.th-scheda { margin-top: 14px; }
.tb-cerca { display: inline-flex; }
.menu-cerca .ico { vertical-align: -2px; }

.f-captcha { margin: 8px 0 18px; }
.f-captcha .f-err { margin-top: 6px; }
