/* ilMonti.com — tema "Comizio"
   Nero, bianco e un verde pieno. Titoli in Barlow Condensed maiuscolo, testo in Literata.
   Il tono è quello di un manifesto: diretto, leggibile da lontano. */

@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --nero: #000000;
  --bianco: #ffffff;
  /* palette presa dal logo ilMonti.com */
  --verde: #24914F;        /* verde del logo: fasce, pulsanti, evidenze, sempre con testo nero */
  --verde-scuro: #186C3C;  /* verde bosco del logo: leggibile su bianco */
  --verde-chiaro: #A3C67F; /* verde salvia del logo: fondi e dettagli leggeri */
  --giallo: #F0BA00;       /* giallo oro del logo: piccole evidenze, su nero o con testo nero */
  --giallo-chiaro: #F3E37E;/* giallo pallido del logo */
  --grigio-testo: #333333;
  --grigio: #5c5c5c;
  --grigio-chiaro: #f2f2f0;
  --riga: #d4d4d0;        /* bordi leggeri (area admin) */
  --titolo: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --testo: "Literata", Georgia, serif;
  --corpo: Georgia, Times, "Times New Roman", serif;
  --wrap: 75rem;
  --g: clamp(1rem, 4vw, 2rem);

  /* nomi usati dall'area admin */
  --bosco: var(--nero);
  --bosco-scuro: var(--nero);
  --bosco-medio: var(--verde-scuro);
  --crema: var(--bianco);
  --carta: var(--grigio-chiaro);
  --inchiostro: var(--nero);
  --muschio: var(--grigio);
  --ambra: var(--verde);
  --ambra-testo: var(--verde-scuro);
  --serif: var(--testo);
  --mono: var(--titolo);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bianco);
  color: var(--nero);
  font-family: var(--testo);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--verde); }
:focus-visible { outline: 3px solid var(--verde); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--verde); color: var(--nero); padding: .5rem 1rem; z-index: 10; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--g); }
.narrow { max-width: 44rem; margin: 0 auto; padding: 2.5rem var(--g) 4rem; }
.hp { position: absolute; left: -5000px; }
.muted, .hint { color: var(--grigio); }
.hint { font-size: .9rem; }

/* Etichette in stile manifesto */
.tag, .kicker, .meta {
  font-family: var(--titolo); font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.tag { display: inline-block; background: var(--nero); color: var(--verde); padding: .2em .55em; text-decoration: none; line-height: 1.2; }
.band .tag { background: var(--nero); color: var(--verde); }
a.tag:hover { color: var(--bianco); }

/* Pulsanti */
.btn, .button, button {
  display: inline-block; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: 1.25rem; line-height: 1; padding: .85em 1.4em; border: 0; border-radius: 0; cursor: pointer;
  background: var(--nero); color: var(--bianco); text-decoration: none;
}
.btn:hover, .button:hover, button:hover { background: #222; color: var(--verde); }
.btn-verde { background: var(--verde); color: var(--nero); }
.btn-verde:hover { background: var(--nero); color: var(--verde); }

/* ---------- Testata ---------- */
.topbar-wrap { background: var(--nero); color: var(--bianco); }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.6rem; padding-top: 1rem; padding-bottom: 1rem; }
.wordmark {
  font-family: var(--titolo); font-weight: 800; font-size: 2.1rem; line-height: 1; text-transform: uppercase;
  color: var(--bianco); text-decoration: none; letter-spacing: .005em; white-space: nowrap; margin-right: auto;
}
.wordmark:hover { color: var(--verde); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.nav a {
  font-family: var(--titolo); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .02em;
  color: var(--bianco); text-decoration: none; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--verde); }
.top-actions { display: flex; align-items: center; gap: .9rem; }
.top-search { color: var(--bianco); display: inline-flex; padding: .4rem; }
.top-search:hover { color: var(--verde); }
.top-actions .btn { font-size: 1.15rem; padding: .6em 1em; }

/* ---------- Fascia verde ---------- */
.band { background: var(--verde); color: var(--nero); }
.band a { color: var(--nero); }
.band a.btn { color: var(--bianco); }
.band a.btn:hover { color: var(--verde); }
.band a.tag { color: var(--verde); }
.band-inner { padding-top: clamp(2.5rem, 7vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); display: flex; flex-direction: column; gap: 1.6rem; }
.band .meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: 1.2rem; }
.mega {
  margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2.9rem, 8vw, 7.6rem); line-height: .9; max-width: 17ch; text-wrap: balance;
}
.mega a { text-decoration: none; }
.mega a:hover { text-decoration: underline; text-decoration-thickness: .06em; text-decoration-color: var(--nero); }
.dek { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; max-width: 36em; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; }
.lead-actions span { font-size: 1.05rem; }
.cover { margin: 0; }
.cover img { display: block; width: 100%; max-height: 640px; object-fit: cover; background: #1f1f1f; }

/* Testata di pagine elenco */
.page-head { gap: 1rem; }
.page-head h1 { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: .92; }
.page-intro { margin: 0; font-size: 1.2rem; max-width: 40em; }
.years { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .4rem 0 0; padding: 0; }
.years a { display: inline-block; font-family: var(--titolo); font-weight: 600; font-size: 1.1rem; text-decoration: none; padding: .2em .55em; border: 2px solid var(--nero); }
.years a:hover, .years a[aria-current] { background: var(--nero); color: var(--verde); }
.years small { font-weight: 600; opacity: .75; margin-left: .25em; }

/* ---------- Elenco articoli ---------- */
.section { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: 1rem; }
.section-h { margin: 0 0 .5rem; font-family: var(--titolo); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 2.9rem); text-transform: uppercase; line-height: 1; }
.list { border-top: 6px solid var(--nero); }
.item { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 2px solid var(--nero); }
.item-date { font-family: var(--titolo); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; padding-top: .45rem; line-height: 1.2; }
.item-body { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.item-cats { font-family: var(--titolo); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; color: var(--verde-scuro); }
.item-cats a { text-decoration: none; }
.item-cats a:hover { text-decoration: underline; }
.item-title { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.item-title a { text-decoration: none; }
.item-title a:hover { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: .08em; }
.item-excerpt { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--grigio-testo); max-width: 44em; }
.item-thumb { width: 11rem; align-self: start; padding-top: .3rem; }
.item-thumb img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--grigio-chiaro); }
.all-link { display: inline-block; margin-top: 1.6rem; font-family: var(--titolo); font-weight: 800; font-size: 1.4rem; text-transform: uppercase; }
.empty { padding: 2rem 0; font-size: 1.2rem; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 2rem 0 0; font-family: var(--titolo); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; }
.pager a { text-decoration: none; border-bottom: 4px solid var(--verde); }
.pager a[rel="next"] { justify-self: end; }
.pager-pos { color: var(--grigio); }

.search-big { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.search-big input { flex: 1 1 16rem; font: inherit; font-size: 1.2rem; padding: .8rem 1rem; border: 3px solid var(--nero); border-radius: 0; }

/* ---------- Chi scrive ---------- */
.author-block { background: var(--nero); color: var(--bianco); display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; padding: clamp(1.8rem, 4vw, 3rem); }
.author-photo { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; flex: none; background: #333; }
.author-initials { width: 11rem; height: 11rem; border-radius: 50%; flex: none; background: var(--verde); color: var(--nero); display: flex; align-items: center; justify-content: center; font-family: var(--titolo); font-weight: 800; font-size: 4rem; }
.author-text { flex: 1 1 22rem; display: flex; flex-direction: column; gap: .9rem; }
.author-text h2 { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: 2.5rem; line-height: 1; text-transform: uppercase; color: var(--verde); }
.author-text p { margin: 0; font-size: 1.3rem; line-height: 1.5; }
.author-links { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.author-links a { font-family: var(--titolo); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; color: var(--bianco); text-decoration: none; border-bottom: 3px solid var(--verde); }
.author-links a:hover { color: var(--verde); }
.promo { flex: 0 1 14rem; }
.promo img { display: block; width: 100%; }

/* ---------- Iscrizione ---------- */
.subscribe { background: var(--verde); color: var(--nero); padding: clamp(1.8rem, 4vw, 3rem); }
.subscribe form { display: flex; flex-wrap: wrap; align-items: end; gap: 1.2rem 1.5rem; }
.sub-text { flex: 1 1 22rem; display: flex; flex-direction: column; gap: .4rem; }
.sub-text h2 { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: clamp(2.2rem, 4.5vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.sub-text p, .sub-text label { margin: 0; font-size: 1.1rem; }
.sub-row { flex: 2 1 26rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.sub-row input { flex: 1 1 15rem; font: inherit; font-size: 1.2rem; padding: .85rem 1rem; border: 3px solid var(--nero); border-radius: 0; background: var(--bianco); color: var(--nero); }
.subscribe .check { flex-basis: 100%; }
.subscribe a { color: var(--nero); }
.subscribe-dark { background: var(--nero); color: var(--bianco); }
.subscribe-dark .sub-text h2 { color: var(--verde); }
.subscribe-dark a { color: var(--bianco); }
.subscribe-dark .sub-row input { border-color: var(--bianco); }
.subscribe-dark button { background: var(--verde); color: var(--nero); }
.check { display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; line-height: 1.4; }
.check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--nero); }
.form-msg { padding: .8rem 1rem; font-size: 1rem; margin: 0 0 1rem; border-left: 6px solid var(--nero); background: var(--bianco); color: var(--nero); flex-basis: 100%; }
.form-msg.ok { border-color: var(--verde); }
.form-msg.err { border-color: #c2410c; }

/* ---------- Articolo ---------- */
.article-head { max-width: 62rem; }
.article-head .mega { font-size: clamp(2.7rem, 7vw, 6.2rem); max-width: 18ch; }
.article-head .dek { font-style: italic; }
.byline { display: flex; align-items: center; gap: .9rem; font-size: 1.1rem; }
.byline img, .byline .mini-initials { width: 3.3rem; height: 3.3rem; border-radius: 50%; object-fit: cover; flex: none; }
.byline .mini-initials { background: var(--nero); color: var(--verde); display: flex; align-items: center; justify-content: center; font-family: var(--titolo); font-weight: 800; font-size: 1.4rem; }
.article-cover { max-width: 62rem; margin: 0 auto; padding: 0 var(--g); }

.prose { max-width: 44rem; margin: 3rem auto 0; padding: 0 var(--g); font-size: 1.28rem; line-height: 1.72; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 2.4rem; line-height: 1; margin: 1.7em 0 .5em; text-wrap: balance; }
.prose h3 { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; line-height: 1.05; margin: 1.6em 0 .45em; }
.prose h4 { font-family: var(--titolo); font-weight: 600; text-transform: uppercase; font-size: 1.35rem; margin: 1.5em 0 .4em; }
.prose a { color: var(--nero); text-decoration-color: var(--verde); text-decoration-thickness: 3px; }
.prose a:hover { background: var(--verde); }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--verde-scuro); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: 1.4rem 1.6rem; background: var(--verde); color: var(--nero);
  font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1.08;
}
.prose blockquote p { margin: 0 0 .5em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: .6em; font-weight: 600; font-size: 1.05rem; font-style: normal; }
.prose hr { border: 0; border-top: 6px solid var(--nero); width: 5rem; margin: 2.5em 0; }
.prose figure { margin: 2em 0; }
.prose figure.wide, .prose .alignwide, .prose .alignfull { margin-left: calc(50% - min(50vw - var(--g), 31rem)); margin-right: calc(50% - min(50vw - var(--g), 31rem)); }
.prose figcaption, .prose .wp-caption-text { font-family: var(--titolo); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; color: var(--grigio); margin-top: .5em; line-height: 1.3; }
.prose img { display: block; }
.prose code { font-size: .85em; background: var(--grigio-chiaro); padding: .1em .3em; }
.prose pre { background: var(--nero); color: var(--bianco); padding: 1rem; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1.8em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prose th { font-family: var(--titolo); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; text-align: left; border-bottom: 4px solid var(--nero); padding: .5rem .6rem; }
.prose td { border-bottom: 1px solid #bdbdbd; padding: .5rem .6rem; vertical-align: top; }
.prose .embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; background: var(--nero); }
.prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { max-width: 100%; border: 0; }
.prose video { width: 100%; height: auto; }
.prose .callout { background: var(--grigio-chiaro); border-left: 8px solid var(--verde); padding: 1.1em 1.3em; margin: 1.8em 0; font-size: 1.12rem; }
.prose .callout p:last-child { margin-bottom: 0; }
.prose mark { background: var(--verde); color: var(--nero); padding: 0 .15em; }
.prose .label { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; background: var(--nero); color: var(--verde); padding: .05em .4em; }
.prose .button-link { display: inline-block; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; text-decoration: none; background: var(--nero); color: var(--bianco); padding: .55em 1em; }
.prose .button-link:hover { background: var(--verde); color: var(--nero); }
.prose details { border-top: 2px solid var(--nero); border-bottom: 2px solid var(--nero); padding: .6em 0; margin: 1.5em 0; }
.prose summary { cursor: pointer; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }

.after { max-width: 44rem; margin: 0 auto; padding: 0 var(--g); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-top: 6px solid var(--nero); padding-top: 1.2rem; margin-top: 3rem; }
.share-label { font-family: var(--titolo); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; margin-right: .5rem; }
.share a, .share button {
  font-family: var(--titolo); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; padding: .45em .8em; border: 2px solid var(--nero); background: var(--bianco); color: var(--nero);
}
.share a:hover, .share button:hover { background: var(--verde); color: var(--nero); }
.after .subscribe { margin-top: 2rem; }

.adjacent { max-width: 62rem; margin: 3.5rem auto 0; padding: 0 var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.adj { text-decoration: none; font-family: var(--titolo); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.adj span { display: block; font-weight: 600; font-size: 1.05rem; color: var(--grigio); margin-bottom: .4rem; }
.adj-next { text-align: right; }
.adj:hover { color: var(--verde-scuro); }

.related { max-width: 62rem; margin: 3.5rem auto 0; padding: 0 var(--g); }
.related h2 { margin: 0 0 .8rem; font-family: var(--titolo); font-weight: 800; font-size: 2rem; text-transform: uppercase; }
.related ul { list-style: none; margin: 0; padding: 0; border-top: 6px solid var(--nero); }
.related li { border-bottom: 2px solid var(--nero); padding: 1rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.related a { font-family: var(--titolo); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; text-decoration: none; }
.related a:hover { text-decoration: underline; text-decoration-color: var(--verde); }
.related time { font-family: var(--titolo); font-weight: 600; text-transform: uppercase; color: var(--grigio); }

/* ---------- Commenti ---------- */
.comments { max-width: 44rem; margin: 3.5rem auto 0; padding: 0 var(--g) 5rem; }
.comments > h2 { margin: 0 0 1rem; font-family: var(--titolo); font-weight: 800; font-size: 2.2rem; text-transform: uppercase; }
.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.comment { border-top: 2px solid var(--nero); padding: 1.2rem 0; }
.replies { margin: 1rem 0 0 1.4rem; }
.replies .comment { border-top: 0; border-left: 6px solid var(--verde); padding: .6rem 0 .6rem 1.2rem; }
.comment-body header { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; margin-bottom: .4rem; }
.c-name { font-weight: 700; }
.c-badge { font-family: var(--titolo); font-weight: 800; font-size: .95rem; text-transform: uppercase; background: var(--nero); color: var(--verde); padding: .05rem .4rem; }
.c-date { font-family: var(--titolo); font-weight: 600; font-size: 1rem; text-transform: uppercase; color: var(--grigio); text-decoration: none; }
.c-text p { margin: 0 0 .7em; font-size: 1.1rem; line-height: 1.6; overflow-wrap: anywhere; }
.reply-btn { background: none; color: var(--nero); padding: 0; font-size: 1.05rem; border-bottom: 3px solid var(--verde); }
.reply-btn:hover { background: none; color: var(--verde-scuro); }
.comment-form { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 6px solid var(--nero); display: grid; gap: 1rem; }
.comment-form h3 { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--titolo); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.comment-form input:not([type=checkbox]), .comment-form textarea {
  font: inherit; font-size: 1.1rem; padding: .7rem .85rem; border: 3px solid var(--nero); border-radius: 0; background: var(--bianco); color: var(--nero); width: 100%;
}
.comment-form textarea { resize: vertical; line-height: 1.5; }
.comment-form button[type="submit"] { justify-self: start; background: var(--verde); color: var(--nero); }
.comment-form button[type="submit"]:hover { background: var(--nero); color: var(--verde); }
.reply-to { margin: 0; }
.reply-to button { background: none; color: var(--grigio); padding: 0 .3rem; font-size: 1rem; text-decoration: underline; }

.preview-bar { background: var(--verde); color: var(--nero); font-family: var(--titolo); font-weight: 800; text-transform: uppercase; padding: .6rem var(--g); text-align: center; }
.handoff { font-size: 1.2rem; }
.small { font-size: 1rem; color: var(--grigio); }

/* ---------- Piede ---------- */
.site-footer { background: var(--nero); color: var(--bianco); margin-top: 4rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand { font-family: var(--titolo); font-weight: 800; font-size: 1.9rem; text-transform: uppercase; line-height: 1; color: var(--bianco); text-decoration: none; }
.footer-tag { margin: .4rem 0 0; color: #bdbdbd; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-links a, .footer-legal a { font-family: var(--titolo); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: var(--bianco); text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: var(--verde); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.footer-legal p { margin: 0; color: #bdbdbd; font-size: .95rem; }

/* ---------- Schermi piccoli ---------- */
@media (max-width: 760px) {
  body { font-size: 1.06rem; }
  .wordmark { font-size: 1.75rem; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav ul { flex-wrap: nowrap; }
  .nav a { font-size: 1.15rem; }
  .item { grid-template-columns: 1fr; gap: .4rem; padding: 1.3rem 0; }
  .item-date { padding: 0; font-size: 1.05rem; }
  .item-thumb { display: none; }
  .prose { font-size: 1.15rem; }
  .prose h2 { font-size: 1.95rem; }
  .prose blockquote { font-size: 1.55rem; }
  .field-row, .adjacent { grid-template-columns: 1fr; }
  .adj-next { text-align: left; }
  .author-photo, .author-initials { width: 7rem; height: 7rem; font-size: 2.6rem; }
  .prose .alignleft, .prose .alignright { float: none; margin: 1em 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .topbar-wrap, .share, .after, .adjacent, .related, .comments, .site-footer { display: none; }
  .band { background: none; }
}

/* ---------- Etichette nere "di traverso", come un nastro adesivo ---------- */
.tag, .c-badge, .prose .label, .years a[aria-current] {
  display: inline-block; transform: rotate(-2.5deg); transform-origin: center;
}
.tag + .tag, .tag:nth-of-type(even) { transform: rotate(1.8deg); }
.tag:nth-of-type(3n) { transform: rotate(-1.2deg); }
.tag { margin: .15em .2em .15em 0; }
.years a:hover { transform: rotate(-2.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .years a { transition: transform .15s; }
}

/* ---------- Home: foto dell'ultimo pezzo sopra al titolo ---------- */
.lead-cover { margin: 0 0 2rem; border: .5rem solid var(--nero); box-shadow: .9rem .9rem 0 var(--verde-scuro); }
.lead-cover img { max-height: 440px; aspect-ratio: 2 / 1; }
@media (max-width: 40rem) { .lead-cover { border-width: .3rem; box-shadow: .5rem .5rem 0 var(--verde-scuro); margin-bottom: 1.4rem; } }


/* ---------- Corpo dei pezzi in Georgia (come il Post) ---------- */
.prose, .lead-opening { font-family: var(--corpo); font-size: 1.25rem; line-height: 1.55; }
@media (max-width: 40rem) { .prose, .lead-opening { font-size: 1.12rem; } }

/* ---------- Home: titolo a sinistra, foto a destra, poi sottotitolo e inizio articolo ---------- */
.lead.has-cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: center; }
.lead .lead-head { display: flex; flex-direction: column; gap: 1.4rem; }
.lead .mega { font-size: clamp(2.6rem, 5.4vw, 5.6rem); max-width: none; }
.lead .lead-cover { margin: 0; }
.lead .lead-cover img { max-height: none; aspect-ratio: 3 / 2; }
.lead .lead-dek { max-width: 36em; font-size: clamp(1.15rem, 1.7vw, 1.38rem); }
.lead-opening-text { max-width: 46rem; }
.lead-opening { padding-top: 2.2rem; padding-bottom: .5rem; }
.lead-opening p { margin: 0 0 1em; }
.lead-more { display: flex; flex-wrap: wrap; align-items: center; margin-top: 1.6rem !important; gap: .6rem 1.4rem; }
.lead-more span { font-family: var(--titolo); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; color: var(--grigio); }
@media (max-width: 48rem) {
  .lead.has-cover { grid-template-columns: 1fr; }
  .lead .lead-cover { order: -1; }
}

/* ==========================================================
   Giallo: piccole evidenze (etichette, "Iscriviti", evidenziatore)
   ========================================================== */
::selection { background: var(--giallo); color: var(--nero); }
.tag, .band .tag, .band a.tag, .c-badge, .prose .label, .byline .mini-initials,
.years a:hover, .years a[aria-current] { color: var(--giallo); }
a.tag:hover { color: var(--bianco); }
.top-actions .btn-verde { background: var(--giallo); color: var(--nero); }
.top-actions .btn-verde:hover { background: var(--bianco); color: var(--nero); }
.nav a:hover, .nav a[aria-current], .wordmark:hover, .top-search:hover,
.footer-links a:hover, .footer-legal a:hover, .author-links a:hover { color: var(--giallo); }
.btn:hover, .button:hover, button:hover, .band a.btn:hover { color: var(--giallo); }
.author-text h2, .subscribe-dark .sub-text h2 { color: var(--giallo); }
.author-links a { border-bottom-color: var(--giallo); }
.subscribe-dark button { background: var(--giallo); }
.prose a:hover { background: var(--giallo); }
.prose mark { background: linear-gradient(transparent 12%, var(--giallo) 12%, var(--giallo) 88%, transparent 88%); padding: 0 .1em; }
.prose strong { background: linear-gradient(transparent 62%, rgba(240, 186, 0, .45) 62%); }
.lead-cover { box-shadow: .9rem .9rem 0 var(--giallo); }
@media (max-width: 40rem) { .lead-cover { box-shadow: .5rem .5rem 0 var(--giallo); } }
.prose :is(h1, h2, h3, h4, h5, h6) strong, .prose :is(h1, h2, h3, h4, h5, h6) mark { background: none; }

/* ==========================================================
   Home a blocchi
   ========================================================== */
.hb { margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.hb-whatsapp, .lay-band, .hb-videos { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem;
  border-bottom: 6px solid var(--nero); padding-bottom: .5rem; margin-bottom: 1.8rem; }
.sec-head .section-h { margin: 0; }
.section-h a { text-decoration: none; }
.section-h a:hover { color: var(--verde-scuro); }
.sec-all { font-family: var(--titolo); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; border-bottom: 3px solid var(--verde); }
.sec-all:hover { border-bottom-color: var(--giallo); }

/* Box articolo */
.card { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.card-img { display: block; overflow: hidden; background: var(--grigio-chiaro); }
.card-img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.card-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-family: var(--titolo); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .03em; color: var(--grigio); }
.card-cat { color: var(--verde-scuro); text-decoration: none; font-weight: 800; }
.card-title { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; line-height: .97; font-size: 1.65rem; text-wrap: balance; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: .08em; }
.card-ex { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--grigio-testo); }
.card-big .card-title { font-size: clamp(2.1rem, 3.6vw, 3.1rem); line-height: .93; }
.card-big .card-ex { font-size: 1.15rem; }
.card-normal.no-img { border-top: 6px solid var(--verde); padding-top: 1rem; }
.card-big.no-img { background: var(--grigio-chiaro); padding: clamp(1.4rem, 3vw, 2.2rem); border-left: 10px solid var(--verde); }
.card-compact.has-img { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 1rem; align-items: start; }
.card-compact .card-title { font-size: 1.35rem; }
.card-row .card-title { font-size: 1.5rem; }

/* Ultimi pezzi: uno grande e quattro piccoli */
.latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 2rem; }
.latest-grid > .card-big { grid-column: span 2; grid-row: span 2; }
.latest-grid > .card-normal .card-ex { display: none; }

/* Canale WhatsApp */
.hb-whatsapp { background: var(--nero); color: var(--bianco); margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.hb-whatsapp-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: center; }
.hb-whatsapp .tag { background: var(--verde); color: var(--nero); justify-self: start; grid-column: 1 / -1; }
.hb-whatsapp h2 { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: .93; }
.hb-whatsapp p { margin: 0; font-size: 1.12rem; color: #d8d8d8; grid-column: 1; }
.hb-whatsapp .btn { grid-column: 2; grid-row: 2 / span 2; justify-self: start; display: inline-flex; align-items: center; gap: .6rem; font-size: 1.35rem; padding: .8em 1.3em; }
.btn-giallo, .band a.btn-giallo { background: var(--giallo); color: var(--nero); }
.btn-giallo:hover { background: var(--bianco); color: var(--nero) !important; }

/* Sezioni per categoria */
.feat-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.lay-feature-r .feat-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.lay-feature-r .feat-grid > .card-big { order: 2; }
.feat-side { display: flex; flex-direction: column; }
.feat-side > .card { padding: 1.2rem 0; border-bottom: 2px solid var(--nero); }
.feat-side > .card:first-child { padding-top: 0; }
.row-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.2rem 2rem; }
.row-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lay-band { background: var(--grigio-chiaro); }
.num-grid { list-style: none; margin: 0; padding: 0; counter-reset: n; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.num-grid li { counter-increment: n; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.num-grid li::before { content: counter(n, decimal-leading-zero); font-family: var(--titolo); font-weight: 800; font-size: 4.2rem; line-height: .8; color: var(--verde); }

/* Social */
.hb-social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
.hb-social-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hb-social-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sbox { display: flex; flex-direction: column; gap: .35rem; padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; min-height: 15rem;
  transform: rotate(-.8deg); transition: transform .2s ease; }
.sbox:nth-child(even) { transform: rotate(.9deg); }
.sbox:hover { transform: rotate(0) translateY(-3px); }
.sbox-ico { margin-bottom: .6rem; }
.sbox-name { font-family: var(--titolo); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; }
.sbox-who { font-family: var(--titolo); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .02em; opacity: .85; }
.sbox-text { font-size: 1rem; line-height: 1.45; flex: 1; margin-top: .3rem; }
.sbox-cta { font-family: var(--titolo); font-weight: 800; font-size: 1.1rem; text-transform: uppercase; margin-top: .8rem; }
.sbox-ig { background: var(--nero); color: var(--bianco); }
.sbox-ig .sbox-ico, .sbox-ig .sbox-cta { color: var(--giallo); }
.sbox-fb { background: var(--verde); color: var(--nero); }
.sbox-ss { background: var(--giallo); color: var(--nero); }
.sbox-yt { background: var(--bianco); color: var(--nero); border: 4px solid var(--nero); }
.sbox-yt .sbox-ico { color: #d9261c; }

/* Video */
.hb-videos { background: var(--nero); color: var(--bianco); margin-top: clamp(2.8rem, 6vw, 4.5rem); }
.hb-videos .sec-head { border-bottom-color: var(--bianco); }
.hb-videos .sec-all { color: var(--bianco); }
.hb-videos .hint { color: #9a9a9a; margin: 1rem 0 0; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.video-grid.n1 { grid-template-columns: minmax(0, 1fr); max-width: 52rem; }
.video-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
button.yt { all: unset; box-sizing: border-box; position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; cursor: pointer; background: #222; overflow: hidden; }
button.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .2s; }
button.yt:hover img { opacity: 1; }
button.yt:focus-visible { outline: 3px solid var(--giallo); outline-offset: 3px; }
.yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-3deg); background: var(--giallo); color: var(--nero);
  width: 4.4rem; height: 3.2rem; display: flex; align-items: center; justify-content: center; }

/* Archivio */
.hb-archive .sec-head .tag { transform: rotate(2deg); }
.hb-archive .all-link { margin-top: 2.4rem; }
.hb-archive .years { margin-top: 1.2rem; }

@media (max-width: 64rem) {
  .latest-grid, .row-grid, .row-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-grid > .card-big { grid-row: auto; }
  .hb-social-grid, .hb-social-grid.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid, .lay-feature-r .feat-grid { grid-template-columns: 1fr; }
  .lay-feature-r .feat-grid > .card-big { order: 0; }
}
@media (max-width: 40rem) {
  .latest-grid, .row-grid, .row-grid.n3, .row-grid.n2, .num-grid, .video-grid, .video-grid.n2,
  .hb-social-grid, .hb-social-grid.n3, .hb-social-grid.n2 { grid-template-columns: 1fr; }
  .latest-grid > .card-big { grid-column: auto; }
  .latest-grid > .card-normal.has-img { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 1rem; }
  .hb-whatsapp-in { grid-template-columns: 1fr; }
  .hb-whatsapp .btn { grid-column: 1; grid-row: auto; }
  .num-grid li::before { font-size: 3rem; }
  .sbox { min-height: 0; }
  .card-title { font-size: 1.45rem; }
}
.feat-grid .card-big .card-img img { aspect-ratio: 16 / 10; }
:is(.hb-whatsapp, .lay-band, .hb-videos) + :is(.hb-whatsapp, .lay-band, .hb-videos) { margin-top: 0; }
@media (max-width: 40rem) {
  .row-grid > .card-normal.has-img + .card-normal.has-img { display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 1rem; }
  .row-grid > .card-normal + .card-normal .card-ex { display: none; }
}

/* ---------- Logo ---------- */
.wordmark.logo, .footer-brand.logo { display: block; line-height: 0; }
.wordmark.logo img { display: block; height: 3.6rem; width: auto; }
.footer-brand.logo img { display: block; height: 5.2rem; width: auto; max-width: 100%; }
.wordmark.logo:hover img { opacity: .9; }
@media (max-width: 40rem) { .wordmark.logo img { height: 2.3rem; } }

/* ---------- Apertura home: testo a sinistra, foto a destra ---------- */
.lead.has-cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 2rem clamp(2rem, 4vw, 3.5rem); align-items: start; }
.lead .lead-head { gap: 1.1rem; }
.lead .mega { font-size: clamp(2.4rem, 4.7vw, 4.8rem); line-height: .92; }
.lead .lead-dek { font-size: clamp(1.12rem, 1.55vw, 1.32rem); max-width: 34em; }
.lead-when { margin: .2rem 0 0; padding-top: .8rem; border-top: 3px solid var(--nero); width: fit-content; min-width: 8rem;
  font-family: var(--titolo); font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.lead .lead-cover img { aspect-ratio: 4 / 3; }
@media (max-width: 48rem) { .lead.has-cover { grid-template-columns: 1fr; } .lead .lead-cover img { aspect-ratio: 3 / 2; } }

/* ---------- Spazi pubblicitari ---------- */
.ad { display: block; text-align: center; }
.ad-label { display: block; font-family: var(--titolo); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--grigio); margin-bottom: .4rem; text-align: left; }
.ad img { display: block; width: 100%; height: auto; margin: 0 auto; }
.ad-link { display: block; border: 1px solid var(--riga); line-height: 0; transition: border-color .2s; }
.ad-link:hover { border-color: var(--nero); }
.ad-home_1 .ad-link, .ad-home_2 .ad-link { max-width: 75rem; }
.prose .ad { margin: 2.2em 0; padding: 1rem 0; border-top: 2px solid var(--nero); border-bottom: 2px solid var(--nero); }
.prose .ad img { max-height: 520px; width: auto; max-width: 100%; }
.prose .ad a { background: none !important; }
.after > .ad { margin: 0 0 2.5rem; }
.after > .ad img { max-height: 520px; width: auto; max-width: 100%; }
.ad-code { min-height: 90px; }

/* ---------- Riquadri pubblicitari quadrati ---------- */
.ad-squares { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.ad-squares.n1 { grid-template-columns: minmax(0, 24rem); justify-content: center; }
.ad-squares.n2 { grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; }
.ad-sq img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 40rem) { .ad-squares, .ad-squares.n2 { grid-template-columns: 1fr; } }

/* ---------- Libri consigliati ---------- */
.book { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.book-cover { display: block; line-height: 0; transition: transform .2s ease; }
.book-cover:hover { transform: rotate(-1.5deg) translateY(-3px); }
.book-cover img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; box-shadow: .5rem .5rem 0 var(--nero); background: var(--grigio-chiaro); }
.book-fake { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; aspect-ratio: 2 / 3; padding: 1.2rem; background: var(--nero);
  color: var(--giallo); box-shadow: .5rem .5rem 0 var(--verde); line-height: 1; }
.book-fake span { font-family: var(--titolo); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: .95; }
.book-fake small { font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; color: var(--bianco); }
.book-body { display: flex; flex-direction: column; gap: .3rem; }
.book-title { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: 1.35rem; line-height: 1; text-transform: uppercase; }
.book-title a { text-decoration: none; }
.book-title a:hover { text-decoration: underline; text-decoration-color: var(--verde); }
.book-author { margin: 0; font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grigio); }
.book-note { margin: .4rem 0 0; font-size: 1rem; line-height: 1.5; }
.book-buy { align-self: flex-start; margin-top: .4rem; font-family: var(--titolo); font-weight: 800; font-size: .95rem; text-transform: uppercase;
  text-decoration: none; background: var(--giallo); color: var(--nero); padding: .3em .7em; }
.book-buy:hover { background: var(--nero); color: var(--giallo); }
.books-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.8rem 2.2rem; }
.books-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem 1.6rem; }
.books-strip.n1, .books-strip.n2, .books-strip.n3 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.affiliate-note { margin: 2.2rem 0 0; font-size: .85rem; color: var(--grigio); }
@media (max-width: 64rem) { .books-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .books-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) {
  .books-grid, .books-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
  .book-title { font-size: 1.15rem; }
  .book-fake span { font-size: 1.2rem; }
}

/* Menu con "Libri consigliati": più compatto sugli schermi medi, a capo sul telefono */
@media (min-width: 40.01rem) {
  .topbar { gap: .8rem 1.2rem; }
  .nav ul { gap: .4rem 1.05rem; }
  .nav a { font-size: 1.12rem; }
  .wordmark.logo img { height: 2.9rem; }
  .top-actions .btn { font-size: 1rem; padding: .55em .8em; }
}
@media (max-width: 40rem) {
  .nav { overflow: visible; }
  .nav ul { flex-wrap: wrap; gap: .35rem 1.1rem; }
  .nav a { font-size: 1.05rem; }
}
@media (max-width: 66rem) and (min-width: 40.01rem) {
  .nav { order: 3; flex-basis: 100%; }
}

/* ==========================================================
   Bandi e novità normative
   ========================================================== */
.g-tabs { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.g-tabs a { font-family: var(--titolo); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; text-decoration: none;
  padding: .45em .9em; border: 3px solid var(--nero); color: var(--nero); background: transparent; }
.g-tabs a span { font-weight: 600; opacity: .7; }
.g-tabs a[aria-current] { background: var(--nero); color: var(--giallo); }
.g-tabs a:hover { background: var(--nero); color: var(--bianco); }
.g-filters { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; padding: 1.2rem; background: var(--grigio-chiaro); margin-bottom: 1.4rem; }
.g-filters .g-q { flex: 1 1 18rem; }
.g-filters input[type=search], .g-filters select { width: 100%; font: inherit; font-size: 1.05rem; padding: .6rem .7rem; border: 2px solid var(--nero); background: var(--bianco); }
.g-filters select { width: auto; }
.g-filters .check { display: flex; align-items: center; gap: .4rem; font-size: 1rem; }
.g-count { font-family: var(--titolo); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; color: var(--grigio); margin: 0 0 .6rem; }
.g-list { border-top: 6px solid var(--nero); }
.g-item { padding: 1.3rem 0; border-bottom: 2px solid var(--nero); display: flex; flex-direction: column; gap: .45rem; }
.g-featured { background: linear-gradient(90deg, rgba(240, 186, 0, .16), transparent 60%); padding-left: .9rem; border-left: 6px solid var(--giallo); }
.g-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grigio); }
.g-dl { font-weight: 800; padding: .1em .5em; background: var(--grigio-chiaro); color: var(--nero); }
.g-dl-urgent { background: var(--giallo); }
.g-dl-past { background: #ddd; color: #666; }
.g-dl-ok { background: var(--verde); color: var(--nero); }
.g-local { color: var(--verde-scuro); font-weight: 800; }
.g-level { color: var(--nero); }
.g-title { margin: 0; font-family: var(--titolo); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.85rem); line-height: 1; text-transform: uppercase; text-wrap: balance; }
.g-title a { text-decoration: none; }
.g-title a:hover { text-decoration: underline; text-decoration-color: var(--verde); }
.g-sub { margin: 0; font-size: 1rem; color: var(--grigio-testo); }
.g-sum { margin: 0; font-size: 1.02rem; line-height: 1.5; color: var(--grigio-testo); }
.g-comment { margin: .2rem 0 0; font-size: 1.05rem; line-height: 1.5; }
.g-comment span { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: .85rem; background: var(--nero); color: var(--giallo); padding: .1em .4em; margin-right: .3em; }
.g-disclaimer { font-size: .88rem; color: var(--grigio); margin-top: 2rem; max-width: 52rem; }
.g-compact { padding: .9rem 0; }
.g-compact .g-title { font-size: 1.3rem; }
.g-list-compact { border-top-width: 4px; margin-bottom: 1rem; }
.hb-grants-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; }
.hb-grants-sub { margin: 0 0 .6rem; font-family: var(--titolo); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; color: var(--verde-scuro); }
.g-head { gap: 1.1rem; }
.g-h1 { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: .93; max-width: 24ch; text-wrap: balance; }
.g-ente { margin: 0; font-family: var(--titolo); font-weight: 600; font-size: 1.3rem; text-transform: uppercase; }
.g-body { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; padding-top: 2.5rem; padding-bottom: 1rem; align-items: start; }
.g-facts { position: sticky; top: 1rem; background: var(--grigio-chiaro); padding: 1.4rem; border-top: 6px solid var(--nero); }
.g-facts dl { margin: 1rem 0 1.2rem; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; }
.g-facts dt { font-family: var(--titolo); font-weight: 600; text-transform: uppercase; font-size: .9rem; color: var(--grigio); }
.g-facts dd { margin: 0; font-weight: 600; }
.g-dl-big { display: inline-block; margin: 0; font-family: var(--titolo); font-size: 1.25rem; text-transform: uppercase; }
.g-go { display: block; text-align: center; }
.g-text { max-width: 44rem; font-family: var(--corpo); font-size: 1.2rem; line-height: 1.55; }
.g-text h2 { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin: 1.6em 0 .5em; }
.g-text h2:first-child { margin-top: 0; }
.g-andrea { border-left: 6px solid var(--giallo); padding: .2rem 0 .2rem 1.2rem; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .6rem; }
.g-andrea .tag { align-self: flex-start; }
@media (max-width: 64rem) { .hb-grants-grid { grid-template-columns: 1fr; } }
@media (max-width: 48rem) {
  .g-body { grid-template-columns: 1fr; gap: 1.8rem; }
  .g-facts { position: static; }
  .g-text { font-size: 1.1rem; }
}

/* ---------- Questionario "Per te" ---------- */
.pt-form { max-width: 52rem; display: flex; flex-direction: column; gap: 2.2rem; }
.pt-step { border: 0; margin: 0; padding: 0 0 2rem; border-bottom: 2px solid var(--nero); }
.pt-step legend { display: flex; align-items: center; gap: .8rem; font-family: var(--titolo); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; line-height: 1; margin-bottom: 1rem; padding: 0; }
.pt-n { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: var(--nero); color: var(--giallo); font-size: 1.4rem; transform: rotate(-4deg); flex: none; }
.pt-hint { margin: .2rem 0 .8rem; color: var(--grigio); font-size: 1rem; }
.pt-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.pt-chip { position: relative; cursor: pointer; }
.pt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pt-chip span { display: inline-block; padding: .55em 1em; border: 2px solid var(--nero); background: var(--bianco); font-family: var(--titolo); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; transition: background .12s, color .12s, transform .12s; }
.pt-chip span small { font-weight: 600; font-size: .8em; opacity: .7; text-transform: none; }
.pt-chip:hover span { background: var(--grigio-chiaro); }
.pt-chip input:checked + span { background: var(--nero); color: var(--giallo); transform: rotate(-1.2deg); }
.pt-chip input:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 2px; }
.pt-check { display: flex; gap: .55rem; align-items: flex-start; font-size: 1.05rem; margin-top: .4rem; }
.pt-check input { margin-top: .3em; width: 1.1rem; height: 1.1rem; flex: none; }
.pt-field { display: grid; gap: .35rem; font-family: var(--titolo); font-weight: 600; text-transform: uppercase; font-size: 1rem; margin-bottom: 1rem; max-width: 28rem; }
.pt-field input { font: inherit; font-family: var(--testo); text-transform: none; font-size: 1.1rem; padding: .7rem .8rem; border: 2px solid var(--nero); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin: 0; }
.pt-actions .btn { font-size: 1.3rem; padding: .8em 1.4em; }
.pt-privacy { margin: 0; font-size: .9rem; color: var(--grigio); }
.pt-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.2rem; align-items: center; padding: .9rem 1.1rem; background: var(--nero); color: var(--bianco); margin-bottom: 1rem; }
.pt-bar p { margin: 0; }
.pt-bar .tag { background: var(--giallo); color: var(--nero); margin-right: .4rem; }
.pt-bar a { color: var(--giallo); font-family: var(--titolo); font-weight: 800; text-transform: uppercase; text-decoration: none; }
.pt-bar-off { background: var(--grigio-chiaro); color: var(--nero); }
.pt-bar-off a { color: var(--verde-scuro); }
.pt-cta { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.5rem; align-items: center; padding: 1.3rem 1.5rem; margin-bottom: 1.4rem; background: var(--nero); color: var(--bianco); text-decoration: none; border-left: 10px solid var(--giallo); }
.pt-cta-big { font-family: var(--titolo); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1; grid-column: 1; }
.pt-cta-small { grid-column: 1; color: #d6d6d6; font-size: 1.02rem; }
.pt-cta .btn { grid-column: 2; grid-row: 1 / span 2; }
.pt-cta:hover .btn { background: var(--bianco); }
@media (max-width: 40rem) { .pt-cta { grid-template-columns: 1fr; } .pt-cta .btn { grid-column: 1; grid-row: auto; justify-self: start; } }

/* ---- Palette del logo: filetto verde/salvia/giallo sotto la testata, come le pennellate del logo ---- */
.topbar-wrap { border-bottom: 5px solid var(--verde); border-image: linear-gradient(90deg, var(--verde-scuro) 0 34%, var(--verde-chiaro) 34% 67%, var(--giallo) 67% 100%) 1; }
.site-footer { border-top: 5px solid var(--verde); border-image: linear-gradient(90deg, var(--verde-scuro) 0 34%, var(--verde-chiaro) 34% 67%, var(--giallo) 67% 100%) 1; }

/* ---- Testata bianca con il logo completo (More than politics) ---- */
.topbar-wrap { background: var(--bianco); color: var(--nero); }
.topbar { padding-top: .9rem; padding-bottom: .9rem; }
.wordmark.logo img, .topbar .wordmark.logo img { height: 5.6rem; }
.nav a { color: var(--nero); }
.nav a:hover, .nav a[aria-current] { color: var(--verde-scuro); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--giallo); }
.top-search { color: var(--nero); }
.top-search:hover { color: var(--verde-scuro); }
.top-actions .btn-verde { background: var(--giallo); color: var(--nero); }
.top-actions .btn-verde:hover { background: var(--nero); color: var(--giallo); }
@media (max-width: 66rem) { .wordmark.logo img, .topbar .wordmark.logo img { height: 4.8rem; } }
@media (max-width: 40rem) {
  .wordmark.logo img, .topbar .wordmark.logo img { height: 3.3rem; }
  .topbar { column-gap: .7rem; }
  .top-actions { gap: .4rem; }
  .top-actions .btn { font-size: .95rem; padding: .5em .7em; }
}

/* ---- Testata: logo al centro, menu diviso a sinistra e a destra; sul telefono menu a tre righe ---- */
.topbar-c { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 1.6rem; padding-top: .9rem; padding-bottom: .9rem; }
.topbar-c .wordmark.logo { margin: 0; justify-self: center; }
.topbar-c .wordmark.logo img { height: 5.6rem; }
.tb-side { display: flex; align-items: center; gap: 1.1rem; min-width: 0; }
.tb-left { justify-content: flex-start; }
.tb-right { justify-content: flex-end; }
.topbar-c .nav { order: 0; flex: 1 1 auto; flex-basis: auto; overflow: visible; }
.topbar-c .nav ul { flex-wrap: nowrap; gap: .4rem 1.15rem; }
.tb-left .nav ul { justify-content: flex-end; }
.tb-right .nav ul { justify-content: flex-start; }
.topbar-c .nav a { font-size: 1.15rem; }
.topbar-c .top-sub { flex: none; font-size: 1rem; padding: .55em .85em; background: var(--giallo); color: var(--nero); }
.topbar-c .top-sub:hover { background: var(--nero); color: var(--giallo); }
.tb-mob { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: .5rem; margin-left: -.5rem; cursor: pointer; color: var(--nero); }
.menu-toggle:hover { color: var(--verde-scuro); background: none; }
.burger { display: grid; gap: 5px; width: 28px; }
.burger span { display: block; height: 3px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-panel { background: var(--bianco); border-top: 1px solid var(--riga); }
.menu-panel ul { list-style: none; margin: 0; padding: .4rem 0; }
.menu-panel li a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--grigio-chiaro); font-family: var(--titolo); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; color: var(--nero); text-decoration: none; }
.menu-panel li a:hover, .menu-panel li a[aria-current] { color: var(--verde-scuro); }
.menu-panel li a[aria-current] { box-shadow: inset 4px 0 0 var(--giallo); padding-left: .7rem; }
.menu-panel-actions { display: flex; align-items: center; gap: 1.2rem; margin: 1rem 0 1.4rem; }
.menu-panel-actions .btn { background: var(--giallo); color: var(--nero); }
.menu-panel-search { font-family: var(--titolo); font-weight: 700; text-transform: uppercase; color: var(--nero); }
@media (max-width: 82rem) and (min-width: 72.01rem) {
  .topbar-c { column-gap: 1.1rem; }
  .topbar-c .wordmark.logo img { height: 5rem; }
  .topbar-c .nav ul { gap: .4rem .85rem; }
  .topbar-c .nav a { font-size: 1.05rem; }
}
@media (max-width: 72rem) {
  .topbar-c .nav-split, .tb-desk, .topbar-c .top-sub { display: none; }
  .menu-toggle, .tb-mob { display: inline-flex; }
  .topbar-c .wordmark.logo img { height: 4.4rem; }
}
@media (max-width: 40rem) {
  .topbar-c { column-gap: .6rem; padding-top: .7rem; padding-bottom: .7rem; }
  .topbar-c .wordmark.logo img { height: 3.6rem; }
}
@media (min-width: 72.01rem) { .menu-panel { display: none !important; } }

/* ---- Voci del menu più evidenti, con evidenziatore giallo inclinato che "si stende" al passaggio ---- */
.topbar-c .tb-mob, .topbar-c .top-search { display: inline-flex; }
.topbar-c .nav a {
  position: relative; display: inline-block; z-index: 0;
  font-size: 1.32rem; font-weight: 700; letter-spacing: .03em; color: var(--nero);
  padding: .3rem .35rem; transition: color .2s;
}
.topbar-c .nav a::before {
  content: ""; position: absolute; z-index: -1; left: -.15rem; right: -.15rem; top: 18%; bottom: 8%;
  background: var(--giallo); transform: skewX(-12deg) scaleX(0); transform-origin: left center;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.topbar-c .nav a::after {
  content: ""; position: absolute; left: .35rem; right: .35rem; bottom: -.15rem; height: 3px;
  background: var(--verde); transform: scaleX(0); transform-origin: right center; transition: transform .28s ease .05s;
}
.topbar-c .nav a:hover, .topbar-c .nav a:focus-visible { color: var(--nero); }
.topbar-c .nav a:hover::before, .topbar-c .nav a:focus-visible::before { transform: skewX(-12deg) scaleX(1); }
.topbar-c .nav a:hover::after { transform: scaleX(1); transform-origin: left center; }
.topbar-c .nav a[aria-current] { color: var(--nero); box-shadow: none; }
.topbar-c .nav a[aria-current]::before { background: var(--verde-chiaro); transform: skewX(-12deg) scaleX(1); }
.topbar-c .nav a[aria-current]:hover::before { background: var(--giallo); }
.topbar-c .nav ul { gap: .4rem .8rem; }
.topbar-c .top-search { flex: none; transition: transform .2s, color .2s; }
.topbar-c .top-search:hover { color: var(--verde-scuro); transform: scale(1.12) rotate(-8deg); }
.topbar-c .top-sub { transition: transform .2s, background .2s, color .2s; }
.topbar-c .top-sub:hover { transform: rotate(-2deg) scale(1.04); }
@media (max-width: 82rem) and (min-width: 72.01rem) {
  .topbar-c .nav a { font-size: 1.15rem; padding: .3rem .25rem; }
  .topbar-c .nav ul { gap: .4rem .45rem; }
}
/* menu del telefono: stesso evidenziatore */
.menu-panel li a { position: relative; z-index: 0; transition: padding .2s; }
.menu-panel li a::before {
  content: ""; position: absolute; z-index: -1; left: -.4rem; top: 22%; bottom: 22%; width: calc(100% + .8rem);
  background: var(--giallo); transform: skewX(-10deg) scaleX(0); transform-origin: left center; transition: transform .25s;
}
.menu-panel li a:hover::before, .menu-panel li a:active::before { transform: skewX(-10deg) scaleX(1); }
.menu-panel li a:hover { padding-left: .5rem; color: var(--nero); }
/* testata un po' più larga del contenuto, così le voci non toccano il logo */
.topbar-c { max-width: 92rem; column-gap: 2rem; }
.topbar-c .nav a { font-size: 1.24rem; }
.tb-right { gap: .9rem; }
.topbar-c .nav-split { min-width: 0; }
@media (max-width: 90rem) and (min-width: 72.01rem) {
  .topbar-c { column-gap: 1.2rem; }
  .topbar-c .wordmark.logo img { height: 5rem; }
  .topbar-c .nav a { font-size: 1.12rem; padding: .3rem .25rem; }
  .topbar-c .nav ul { gap: .4rem .4rem; }
  .tb-right { gap: .6rem; }
}

/* ==========================================================
   Profilo approfondito: questionario per ruolo, pertinenza, promemoria
   ========================================================== */
.pt2 .pt-step { padding-bottom: 2.2rem; margin-bottom: 1.8rem; }
.pt-js [hidden] { display: none !important; }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .7rem; }
.pt-card { position: relative; cursor: pointer; }
.pt-card input { position: absolute; opacity: 0; pointer-events: none; }
.pt-card > span { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: .9rem 1rem; border: 2px solid var(--nero); background: var(--bianco); transition: transform .15s, background .15s, box-shadow .15s; }
.pt-card strong { font-family: var(--titolo); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }
.pt-card small { color: var(--grigio); font-size: .95rem; line-height: 1.35; }
.pt-card:hover > span { box-shadow: 5px 5px 0 var(--verde-chiaro); transform: translate(-2px, -2px); }
.pt-card input:checked + span { background: var(--nero); color: var(--bianco); box-shadow: 6px 6px 0 var(--giallo); transform: translate(-3px, -3px) rotate(-.6deg); }
.pt-card input:checked + span small { color: var(--verde-chiaro); }
.pt-card input:focus-visible + span { outline: 3px solid var(--verde); outline-offset: 3px; }
.pt-comune { position: relative; max-width: 30rem; }
.pt-comune .pt-field { max-width: none; margin-bottom: .4rem; }
.pt-sugg { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: -.4rem 0 0; padding: 0; list-style: none; background: var(--bianco); border: 2px solid var(--nero); border-top: 0; box-shadow: 6px 6px 0 var(--verde-chiaro); max-height: 20rem; overflow: auto; }
.pt-sugg li { padding: .6rem .8rem; cursor: pointer; display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; border-top: 1px solid var(--grigio-chiaro); }
.pt-sugg li span { color: var(--grigio); font-size: .92rem; }
.pt-sugg li.on, .pt-sugg li:hover { background: var(--giallo); }
.pt-sugg li.on span, .pt-sugg li:hover span { color: var(--nero); }
.pt-comune-info { display: inline-block; margin: .2rem 0 0; padding: .3rem .7rem; background: var(--verde-chiaro); font-family: var(--titolo); font-weight: 700; text-transform: uppercase; font-size: .95rem; letter-spacing: .02em; transform: rotate(-1deg); }
.pt-settori { margin-top: .3rem; }
.pt-more { margin-top: .8rem; }
.pt-more summary { cursor: pointer; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; font-size: 1.05rem; color: var(--verde-scuro); margin-bottom: .7rem; }
.pt-live { position: sticky; bottom: 0; z-index: 30; margin: 1.5rem calc(-1 * var(--g)) 0; background: var(--nero); color: var(--bianco); border-top: 5px solid var(--giallo); }
.pt-live-in { display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.4rem; flex-wrap: wrap; padding-top: .8rem; padding-bottom: .8rem; }
.pt-live p { margin: 0; font-family: var(--titolo); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.pt-live strong { display: inline-block; min-width: 1.6ch; color: var(--giallo); font-size: 2rem; line-height: 1; vertical-align: -.2rem; }
.pt-live-sep { margin: 0 .55rem; color: var(--verde-chiaro); }
.pt-pulse strong { animation: ptPulse .45s ease; }
@keyframes ptPulse { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-4deg); } 100% { transform: scale(1); } }

/* motivi "per te" e azioni sulle schede */
.g-why { display: flex; flex-wrap: wrap; gap: .35rem .45rem; margin: .1rem 0; align-items: center; }
.g-why span { font-family: var(--titolo); font-weight: 600; font-size: .92rem; letter-spacing: .02em; padding: .12rem .5rem; background: #eef5e6; color: var(--verde-scuro); }
.g-why .g-why-l { background: var(--verde-scuro); color: var(--bianco); text-transform: uppercase; font-weight: 800; }
.g-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.g-act { font-family: var(--titolo); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; background: var(--bianco); color: var(--nero); border: 2px solid var(--nero); padding: .3rem .7rem; cursor: pointer; transition: background .15s, transform .15s, color .15s; }
.g-act:hover { background: var(--giallo); color: var(--nero); transform: rotate(-1.5deg); }
.g-act-on { background: var(--giallo); }
.g-act-no { border-color: var(--riga); color: var(--grigio); }
.g-act-no:hover { background: var(--grigio-chiaro); border-color: var(--nero); }
.g-act-big { width: 100%; font-size: 1.1rem; padding: .6rem .9rem; }
.g-act-share { border-color: var(--verde-scuro); color: var(--verde-scuro); }
.g-act-share:hover { background: var(--verde); color: var(--nero); border-color: var(--nero); }
.g-share-box { margin-top: 1rem; }
.g-share-box .small { margin: .4rem 0 0; color: var(--grigio); }
.g-share-pop { position: absolute; z-index: 70; width: 17.5rem; background: var(--bianco); border: 1px solid #dcdcd8; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: .7rem .6rem .6rem; display: flex; flex-direction: column; gap: .1rem; }
.g-share-pop[hidden] { display: none; }
.g-share-h { margin: 0 2rem .35rem .55rem; font-family: var(--testo); font-weight: 600; font-size: .9rem; color: var(--grigio); line-height: 1.3; }
.g-share-pop .g-share-opt { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; font-family: var(--testo); font-weight: 500; font-size: .98rem; text-transform: none; letter-spacing: 0; background: transparent; color: var(--nero); border: 0; border-radius: 6px; padding: .55rem .55rem; text-decoration: none; cursor: pointer; line-height: 1.25; }
.g-share-pop .g-share-opt:hover, .g-share-pop .g-share-opt:focus-visible { background: var(--grigio-chiaro); color: var(--nero); }
.g-share-pop .g-share-native { background: #eef6f0; color: var(--verde-scuro); font-weight: 600; margin-bottom: .2rem; }
.g-share-pop .g-share-native:hover, .g-share-pop .g-share-native:focus-visible { background: #e0efe4; color: var(--verde-scuro); }
.g-share-ico { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--grigio); }
.g-share-ico .f { fill: currentColor; stroke: none; }
.g-share-native .g-share-ico { color: var(--verde-scuro); }
.g-share-wa .g-share-ico { color: #1fa855; }
.g-share-pop .g-share-close { position: absolute; top: .35rem; right: .4rem; background: none; border: 0; border-radius: 50%; color: var(--grigio); font-size: 1.4rem; line-height: 1; width: 2rem; height: 2rem; padding: 0; cursor: pointer; }
.g-share-pop .g-share-close:hover { background: var(--grigio-chiaro); color: var(--nero); }
.g-followed { box-shadow: inset 6px 0 0 var(--giallo); padding-left: 1rem; }
.g-gone { opacity: 0; transform: translateX(2rem); transition: opacity .3s, transform .3s; }
.g-toast { position: fixed; z-index: 60; left: 50%; bottom: 1.2rem; transform: translateX(-50%); max-width: min(36rem, calc(100vw - 2rem)); background: var(--nero); color: var(--bianco); padding: .8rem 1rem; border-left: 6px solid var(--giallo); font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.g-toast button { margin-left: .6rem; background: var(--giallo); color: var(--nero); border: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; padding: .25rem .6rem; cursor: pointer; }
.g-follow-form { margin-top: .6rem; padding: .9rem 1rem; background: #fbf6dc; border: 2px solid var(--nero); display: grid; gap: .6rem; }
.g-follow-form p { margin: 0; font-size: 1rem; }
.g-follow-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.g-follow-row input { flex: 1 1 12rem; font: inherit; padding: .55rem .7rem; border: 2px solid var(--nero); }
.g-follow-close { justify-self: start; background: none; border: 0; padding: 0; font-family: var(--titolo); text-transform: uppercase; color: var(--grigio); cursor: pointer; text-decoration: underline; }
.g-follow-box { margin-top: 1rem; }
.g-follow-box .small { margin: .4rem 0 0; color: var(--grigio); }
.g-follow-box.g-followed { padding-left: 0; box-shadow: none; }
.g-group-h { font-family: var(--titolo); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin: 1.6rem 0 .2rem; padding-bottom: .3rem; border-bottom: 4px solid var(--nero); }
.g-group-h small { font-size: .55em; color: var(--grigio); font-weight: 600; margin-left: .4rem; }
.g-followed-box { margin-bottom: 1.5rem; padding: .2rem 1rem .6rem; background: #fbf6dc; }
.g-followed-box .g-group-h { border-bottom-color: var(--giallo); }
.g-other { margin-top: 2.2rem; border-top: 4px solid var(--verde-chiaro); }
.g-other summary { cursor: pointer; padding: 1rem 0; font-family: var(--titolo); font-size: 1.35rem; text-transform: uppercase; }
.g-other summary span { font-size: .75em; color: var(--grigio); margin-left: .4rem; }
.g-fit { margin-top: 1rem; padding: .9rem 1rem; border: 2px solid var(--nero); }
.g-fit-h { margin: 0 0 .4rem; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.g-fit ul { margin: 0; padding-left: 1.1rem; }
.g-fit-yes { background: #eef5e6; box-shadow: 5px 5px 0 var(--verde); }
.g-fit-mid { background: #fbf6dc; }
.g-fit-no { background: var(--grigio-chiaro); }
@media (max-width: 40rem) {
  .pt-live p { font-size: 1rem; }
  .pt-live strong { font-size: 1.6rem; }
  .pt-live .btn { padding: .45em .8em; font-size: .95rem; }
  .pt-live-in { flex-wrap: nowrap; }
}

/* ---- Link: titoli che si colorano di giallo, link nel testo come evidenziatore ---- */
/* titoli (home, elenchi, correlati): niente sottolineatura, al passaggio diventano gialli con un filo nero che li tiene leggibili */
.mega a, .card-title a, .item-title a, .section-h a, .related a, .g-title a, .book-title a, .adj {
  text-decoration: none; transition: color .18s ease;
}
.mega a:hover, .card-title a:hover, .item-title a:hover, .section-h a:hover, .related a:hover, .g-title a:hover, .book-title a:hover, .adj:hover,
.mega a:focus-visible, .card-title a:focus-visible, .item-title a:focus-visible, .g-title a:focus-visible {
  text-decoration: none; color: var(--giallo);
  -webkit-text-stroke: .025em var(--nero); paint-order: stroke fill;
}
/* sulla fascia verde il giallo pallido si stacca meglio dal fondo */
.band .mega a:hover, .band .mega a:focus-visible { color: var(--giallo-chiaro); }

/* link nel corpo degli articoli: evidenziatore giallo + sottolineatura verde; al passaggio l'evidenziatore diventa verde chiaro */
.prose a {
  color: var(--nero);
  text-decoration: underline; text-decoration-color: var(--verde); text-decoration-thickness: 2px; text-underline-offset: .18em;
  background-image: linear-gradient(transparent 52%, rgba(240, 186, 0, .5) 52%, rgba(240, 186, 0, .5) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-color .2s ease, background-image .2s ease;
}
.prose a:hover, .prose a:focus-visible {
  background-color: transparent;
  background-image: linear-gradient(transparent 30%, rgba(163, 198, 127, .7) 30%, rgba(163, 198, 127, .7) 96%, transparent 96%);
  text-decoration-color: var(--verde-scuro);
}
/* il grassetto resta evidenziato in giallo ma senza sottolineatura, per distinguerlo dai link */
.prose a strong { background: none; }

/* ---- Citazioni: leggere, in corsivo, con le virgolette giganti del logo ---- */
.prose blockquote {
  position: relative; isolation: isolate; margin: 3.4em 0 2.2em; padding: .3rem 0 .3rem 2rem;
  background: none; color: var(--nero); border-left: 4px solid var(--verde);
  font-family: var(--testo); font-weight: 400; font-style: italic; text-transform: none;
  font-size: 1.45rem; line-height: 1.42; letter-spacing: 0;
}
.prose blockquote::before {
  content: "\201C"; position: absolute; z-index: 1; left: -.5rem; top: -3rem;
  font-family: Georgia, serif; font-style: normal; font-weight: 700; font-size: 5.2rem; line-height: 1;
  color: var(--giallo); pointer-events: none;
}
.prose blockquote p { margin: 0 0 .6em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite, .prose blockquote .q-src {
  display: block; margin-top: .9em; font-family: var(--titolo); font-style: normal; font-weight: 700;
  font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--verde-scuro);
}
.prose blockquote cite::before, .prose blockquote .q-src::before { content: ""; display: inline-block; width: 1.6rem; height: 3px; background: var(--giallo); vertical-align: middle; margin-right: .6rem; }
.prose blockquote a { font-style: italic; }
@media (max-width: 40rem) {
  .prose blockquote { font-size: 1.25rem; padding-left: 1.5rem; }
  .prose blockquote::before { font-size: 4.4rem; left: -.4rem; top: -2.6rem; }
}

/* ---- Citazioni, versione sobria: niente virgolette giganti, corpo come il testo, linea sottile ---- */
.prose blockquote {
  margin: 1.5em 0; padding: .1rem 0 .1rem 1.2rem; border-left: 3px solid var(--verde);
  font-family: var(--corpo); font-style: italic; font-weight: 400; text-transform: none;
  font-size: 1.15em; line-height: 1.5; color: #222;
}
.prose blockquote::before { content: none; display: none; }
.prose blockquote p { margin: 0 0 .4em; }
.prose blockquote cite, .prose blockquote .q-src {
  margin-top: .45em; font-family: var(--titolo); font-style: normal; font-weight: 600;
  font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--grigio);
}
.prose blockquote cite::before, .prose blockquote .q-src::before { content: "— "; display: inline; width: auto; height: auto; background: none; margin: 0; }
@media (max-width: 40rem) {
  .prose blockquote { font-size: 1.08em; padding-left: 1rem; }
}

/* ---- Frasi in evidenza (pull quote): box a destra, a sinistra o al centro del pezzo ---- */
.prose .pq { margin: .4em 0 1.2em; padding: .9rem 0 .8rem; border-top: 4px solid var(--giallo); border-bottom: 1px solid var(--riga); }
.prose .pq p {
  margin: 0; font-family: var(--testo); font-style: italic; font-weight: 500; font-size: 1.22rem; line-height: 1.38; color: var(--verde-scuro);
}
.prose .pq-dx, .prose .pq-sx { width: 40%; }
.prose .pq-dx { float: right; margin-left: 1.6rem; margin-right: calc(-1 * min(6vw, 5rem)); }
.prose .pq-sx { float: left; margin-right: 1.6rem; margin-left: calc(-1 * min(6vw, 5rem)); }
.prose .pq-centro { clear: both; margin: 1.6em auto; max-width: 34rem; text-align: center; border-bottom: 0; padding-bottom: 0; }
.prose .pq-centro p { font-size: 1.42rem; }
.prose .pq-centro::after { content: ""; display: block; width: 3rem; height: 3px; margin: .9rem auto 0; background: var(--verde); }
.prose h2, .prose h3, .prose figure, .prose blockquote, .prose .ad { clear: both; }
@media (max-width: 64rem) {
  .prose .pq-dx, .prose .pq-sx { margin-left: 0; margin-right: 0; }
  .prose .pq-dx { margin-left: 1.4rem; }
  .prose .pq-sx { margin-right: 1.4rem; }
}
@media (max-width: 40rem) {
  .prose .pq-dx, .prose .pq-sx { float: none; width: auto; margin: 1.4em 0; }
  .prose .pq p, .prose .pq-centro p { font-size: 1.15rem; }
}

/* ---- Frasi in evidenza come box: fondo nero, testo bianco centrato, accenti gialli (distinte dalle citazioni) ---- */
.prose .pq {
  background: var(--nero); color: var(--bianco); text-align: center;
  padding: 1.1rem 1.3rem 1.25rem; border: 0; border-bottom: 5px solid var(--giallo);
  box-shadow: 6px 6px 0 var(--verde-chiaro);
}
.prose .pq::before {
  content: "\201C"; display: block; height: 1.6rem; margin-bottom: .2rem;
  font-family: Georgia, serif; font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--giallo);
}
.prose .pq p {
  margin: 0; font-family: var(--testo); font-style: normal; font-weight: 600; color: var(--bianco);
  font-size: 1.15rem; line-height: 1.42; text-align: center; hyphens: none;
}
.prose .pq-dx, .prose .pq-sx { width: 38%; }
.prose .pq-dx { margin: .3em calc(-1 * min(6vw, 5rem)) 1.2em 1.8rem; }
.prose .pq-sx { margin: .3em 1.8rem 1.2em calc(-1 * min(6vw, 5rem)); }
.prose .pq-centro { max-width: 32rem; margin: 2em auto; padding: 1.4rem 2rem 1.5rem; }
.prose .pq-centro p { font-size: 1.32rem; }
.prose .pq-centro::after { content: none; }
@media (max-width: 64rem) {
  .prose .pq-dx { margin-right: 0; }
  .prose .pq-sx { margin-left: 0; }
}
@media (max-width: 40rem) {
  .prose .pq-dx, .prose .pq-sx { float: none; width: auto; margin: 1.6em 0; }
  .prose .pq p, .prose .pq-centro p { font-size: 1.1rem; }
}

/* ---- Titoli dei paragrafi: sottolineati di giallo (al posto degli evidenziatori incollati da WordPress) ---- */
.prose h2, .prose h3, .prose h4 {
  text-decoration: underline; text-decoration-color: var(--giallo); text-decoration-thickness: .16em;
  text-underline-offset: .14em; text-decoration-skip-ink: none;
}
.prose h2 mark, .prose h3 mark, .prose h4 mark { background: none !important; color: inherit !important; padding: 0; }
.prose h2 a, .prose h3 a { text-decoration: inherit; background: none; }
/* box dentro un paragrafo (span) e tra paragrafi (aside): stesso aspetto */
.prose span.pq { display: block; }
.prose .pq .pq-t { display: block; margin: 0; font-family: var(--testo); font-style: normal; font-weight: 600; color: var(--bianco); font-size: 1.15rem; line-height: 1.42; text-align: center; }
.prose .pq-centro .pq-t { font-size: 1.32rem; }
@media (max-width: 40rem) { .prose .pq .pq-t { font-size: 1.1rem; } }

/* ---- Passaggio del mouse sui titoli: verde scuro sul bianco, giallo (senza bordo) sul titolo d'apertura ---- */
.mega a:hover, .card-title a:hover, .item-title a:hover, .section-h a:hover, .related a:hover, .g-title a:hover, .book-title a:hover, .adj:hover,
.mega a:focus-visible, .card-title a:focus-visible, .item-title a:focus-visible, .g-title a:focus-visible {
  color: var(--verde-scuro); -webkit-text-stroke: 0; paint-order: normal;
}
.band .mega a:hover, .band .mega a:focus-visible, .lead .mega a:hover { color: var(--giallo); -webkit-text-stroke: 0; }

/* ==========================================================
   "Gli ultimi pezzi" a mosaico
   ========================================================== */
.mz { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.4rem 2rem; align-items: start; }
.mz article { position: relative; min-width: 0; }
.mz-meta { margin: 0 0 .45rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grigio); }
.mz-cat { color: var(--verde-scuro); font-weight: 800; text-decoration: none; }
.mz-title { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; line-height: 1; font-size: 1.7rem; text-wrap: balance; }
.mz-title a { text-decoration: none; transition: color .18s; }
.mz-title a:hover { color: var(--verde-scuro); }
.mz-ex { margin: .6rem 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--grigio-testo); }
.mz-n { position: absolute; z-index: 2; font-family: var(--titolo); font-weight: 800; font-size: 1rem; letter-spacing: .04em; background: var(--giallo); color: var(--nero); padding: .1rem .45rem; transform: rotate(-4deg); }
.mz img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mz a:hover img { transform: scale(1.04); }

/* 1 — grande: foto con cartellino bianco sovrapposto */
.mz-a { grid-column: 1 / 8; grid-row: 1 / 3; padding-bottom: 4rem; }
.mz-a-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--grigio-chiaro); }
.mz-a-box { position: relative; margin: -6rem 0 0 2rem; width: min(88%, 34rem); background: var(--bianco); border: 3px solid var(--nero); box-shadow: 9px 9px 0 var(--giallo); padding: 1.3rem 1.5rem 1.4rem; }
.mz-a .mz-n { top: -.9rem; left: 1.2rem; }
.mz-a .mz-title { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.mz-a.mz-noimg .mz-a-box { margin: 0; width: auto; }

/* 2 — riquadro nero, titolo bianco che diventa giallo */
.mz-b { grid-column: 8 / 13; background: var(--nero); color: var(--bianco); padding: 2rem 1.6rem 1.6rem; transform: rotate(.6deg); }
.mz-b .mz-n { top: -.8rem; right: 1.2rem; transform: rotate(4deg); }
.mz-b .mz-meta { color: #bbb; }
.mz-b .mz-cat { color: var(--verde-chiaro); }
.mz-b .mz-title { font-size: 2rem; }
.mz-b .mz-title a:hover { color: var(--giallo); }
.mz-b .mz-ex { color: #d6d6d6; }
.mz-go { display: inline-block; margin-top: 1rem; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; color: var(--giallo); text-decoration: none; border-bottom: 3px solid var(--giallo); }
.mz-go:hover { color: var(--bianco); border-color: var(--bianco); }

/* 3 — foto inclinata con ombra verde */
.mz-c { grid-column: 8 / 13; display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: .3rem 1.1rem; align-items: start; }
.mz-c-img { grid-row: 1 / 4; display: block; overflow: hidden; aspect-ratio: 1; transform: rotate(-3deg); box-shadow: 6px 6px 0 var(--verde); margin-top: .4rem; }
.mz-c .mz-n { top: -.4rem; left: -.4rem; }
.mz-c .mz-title { font-size: 1.45rem; }
.mz-c .mz-ex { display: none; }

/* 4 — riquadro salvia con la data in grande */
.mz-d { grid-column: 1 / 5; background: #e6efd9; padding: 1.4rem 1.4rem 1.5rem; border-top: 6px solid var(--verde); margin-top: -1rem; }
.mz-d .mz-n { top: -1rem; right: 1rem; }
.mz-day { margin: 0 0 .5rem; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; line-height: .85; font-size: 1.3rem; color: var(--verde-scuro); }
.mz-day span { display: block; font-size: 4.6rem; color: var(--verde); }

/* 5 — miniatura tonda e filetto spesso */
.mz-e { grid-column: 5 / 13; display: grid; grid-template-columns: minmax(0, 1fr) 9rem; gap: .2rem 1.6rem; border-top: 6px solid var(--nero); padding-top: 1.1rem; margin-top: 1rem; }
.mz-e .mz-meta, .mz-e .mz-title, .mz-e .mz-ex { grid-column: 1; }
.mz-e-img { grid-column: 2; grid-row: 1 / 4; display: block; overflow: hidden; aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--giallo); }
.mz-e .mz-n { top: -1.2rem; left: 0; }
.mz-e .mz-title { font-size: 2rem; }

@media (max-width: 64rem) {
  .mz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 1.6rem; }
  .mz-a, .mz-b, .mz-e { grid-column: 1 / -1; grid-row: auto; }
  .mz-c, .mz-d { grid-column: auto; margin-top: 0; }
  .mz-a { padding-bottom: 0; }
  .mz-c { grid-template-columns: 1fr; }
  .mz-c-img { grid-row: auto; aspect-ratio: 3 / 2; }
}
@media (max-width: 40rem) {
  .mz { grid-template-columns: 1fr; }
  .mz-c, .mz-d { grid-column: 1 / -1; }
  .mz-a-box { margin: -2.5rem .6rem 0; width: auto; padding: 1rem 1.1rem; }
  .mz-b { transform: none; }
  .mz-e { grid-template-columns: minmax(0, 1fr) 6rem; gap: .2rem 1rem; }
  .mz-title, .mz-b .mz-title, .mz-e .mz-title { font-size: 1.55rem; }
}
@media (max-width: 40rem) {
  .mz-c { grid-template-columns: 36% minmax(0, 1fr); gap: .3rem 1rem; }
  .mz-c-img { grid-row: 1 / 4; aspect-ratio: 1; box-shadow: 4px 4px 0 var(--verde); }
  .mz-c .mz-title { font-size: 1.3rem; }
}
@media (max-width: 64rem) {
  .mz-a-img { aspect-ratio: 16 / 9; }
  .mz-c { grid-template-columns: 40% minmax(0, 1fr); gap: .3rem 1rem; }
  .mz-c-img { grid-row: 1 / 4; aspect-ratio: 1; }
}

/* "Gli ultimi pezzi": 3-5 in elenco ordinato sotto il riquadro nero */
.mz-list { grid-column: 8 / 13; grid-row: 2; list-style: none; margin: 0; padding: 0; border-top: 4px solid var(--nero); }
.mz-li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--riga); }
.mz-li-noimg { grid-template-columns: 1fr; }
.mz-li-img { display: block; overflow: hidden; aspect-ratio: 1; background: var(--grigio-chiaro); }
.mz-li > div { position: relative; }
.mz-li-n { display: inline-block; margin-bottom: .3rem; font-family: var(--titolo); font-weight: 800; font-size: .9rem; background: var(--giallo); padding: 0 .4rem; transform: rotate(-3deg); }
.mz-li .mz-meta { display: inline-flex; margin: 0 0 .3rem .5rem; font-size: .88rem; }
.mz-li .mz-title { font-size: 1.3rem; line-height: 1.05; }
@media (max-width: 64rem) {
  .mz-list { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 40rem) {
  .mz-li { grid-template-columns: 5rem minmax(0, 1fr); }
  .mz-li .mz-meta { display: flex; margin-left: 0; }
}

/* ---- Home: un bando e una norma in primo piano ---- */
.hbg { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; }
.hbg article { display: flex; flex-direction: column; gap: .55rem; padding: 1.6rem 1.7rem 1.5rem; position: relative; }
.hbg-b { background: var(--bianco); border: 3px solid var(--nero); box-shadow: 9px 9px 0 var(--giallo); }
.hbg-n { background: #e6efd9; border-top: 6px solid var(--verde); }
.hbg-kicker { margin: 0 0 .2rem; }
.hbg-meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--grigio); }
.hbg-title { margin: 0; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; line-height: 1.02; font-size: clamp(1.6rem, 2.4vw, 2.2rem); text-wrap: balance; }
.hbg-n .hbg-title { font-size: clamp(1.4rem, 2vw, 1.75rem); }
.hbg-title a { text-decoration: none; transition: color .18s; }
.hbg-title a:hover { color: var(--verde-scuro); }
.hbg-ente { margin: 0; color: var(--grigio-testo); font-size: 1rem; }
.hbg-sum { margin: .2rem 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--grigio-testo); }
.hbg-actions { margin: auto 0 0; padding-top: .9rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.hbg-more { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid var(--verde); color: var(--nero); }
.hbg-more:hover { color: var(--verde-scuro); }
.hbg-cta { margin: 1.8rem 0 0; }
.hbg-cta a { display: block; padding: .9rem 1.2rem; background: var(--nero); color: var(--bianco); text-decoration: none; border-left: 8px solid var(--giallo); }
.hbg-cta a strong { color: var(--giallo); font-family: var(--titolo); text-transform: uppercase; margin-right: .3rem; }
.hbg-cta a:hover { background: #1a1a1a; }
@media (max-width: 52rem) { .hbg { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .hbg article { padding: 1.2rem 1.1rem; } .hbg-b { box-shadow: 6px 6px 0 var(--giallo); } }
/* due bandi affiancati + rettangolo con la novità normativa */
.hbg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hbg-b:nth-child(2) { box-shadow: 9px 9px 0 var(--verde-chiaro); }
.hbg-all { margin: 1.4rem 0 0; text-align: right; }
.hbg-n { margin-top: 2rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .6rem 1.8rem; align-items: center; padding: 1.3rem 1.6rem; background: #e6efd9; border-top: 0; border-left: 8px solid var(--verde); }
.hbg-n-label { margin: 0; align-self: start; padding-top: .2rem; }
.hbg-n-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.hbg-n .hbg-title { font-size: clamp(1.25rem, 1.8vw, 1.55rem); }
.hbg-n .hbg-sum { margin: 0; }
.hbg-n-all { white-space: nowrap; }
@media (max-width: 52rem) {
  .hbg { grid-template-columns: 1fr; }
  .hbg-n { grid-template-columns: 1fr; }
  .hbg-all { text-align: left; }
}

/* ---- Home, bandi e norme su fondo scuro ---- */
.hb-grants2 { background: var(--nero); color: var(--bianco); padding: clamp(2.5rem, 5vw, 3.8rem) 0; border-top: 5px solid var(--verde); border-image: linear-gradient(90deg, var(--verde-scuro) 0 34%, var(--verde-chiaro) 34% 67%, var(--giallo) 67% 100%) 1; }
.hb-grants2 .sec-head { border-bottom-color: var(--giallo); }
.hb-grants2 .section-h, .hb-grants2 .section-h a { color: var(--bianco); }
.hb-grants2 .section-h a:hover { color: var(--giallo); }
.hb-grants2 .sec-all { color: var(--giallo); border-bottom-color: var(--giallo); }
.hb-grants2 .sec-all:hover { color: var(--bianco); }
.hb-grants2 .hbg-b { color: var(--nero); border-color: var(--bianco); }
.hbg-sec2 { margin-top: 3rem; }
.hbg-norme { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.hb-grants2 .hbg-n { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: 1.2rem 1.3rem 1.1rem; background: #1b1b1b; border: 0; border-top: 5px solid var(--verde-chiaro); }
.hb-grants2 .hbg-n .hbg-meta { color: #aaa; }
.hb-grants2 .hbg-n .hbg-title { font-size: 1.3rem; line-height: 1.08; }
.hb-grants2 .hbg-n .hbg-title a { color: var(--bianco); }
.hb-grants2 .hbg-n .hbg-title a:hover { color: var(--giallo); }
.hb-grants2 .hbg-n .hbg-sum { color: #cfcfcf; font-size: .96rem; margin: 0; }
.hbg-src { margin: auto 0 0; padding-top: .5rem; font-family: var(--titolo); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; color: var(--verde-chiaro); }
.hb-grants2 .hbg-cta a { background: var(--giallo); color: var(--nero); border-left-color: var(--verde); }
.hb-grants2 .hbg-cta a strong { color: var(--nero); }
.hb-grants2 .hbg-cta a:hover { background: var(--bianco); }
@media (max-width: 64rem) { .hbg-norme { grid-template-columns: 1fr; } }
.hb-grants2 .hbg-n { align-items: stretch; text-align: left; }

/* ---- Sezione bandi e norme: grigio antracite invece del nero pieno ---- */
.hb-grants2 { background: #2b2d2c; }
.hb-grants2 .hbg-n { background: #3a3c3b; }
.hb-grants2 .hbg-n .hbg-meta { color: #c2c2c2; }

/* ---- Banner del canale WhatsApp: verde, con il simbolo di WhatsApp grande sullo sfondo ---- */
.hb-whatsapp { position: relative; overflow: hidden; background-color: var(--verde); color: var(--bianco);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.8 11.9 11.9 0 0 0 4.6 4c1.7.7 2.4.8 3.2.7.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: clamp(16rem, 34vw, 30rem) auto; background-position: right -3rem center; }
.hb-whatsapp::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--verde) 45%, rgba(36, 145, 79, .82) 70%, rgba(36, 145, 79, .7)); pointer-events: none; }
.hb-whatsapp-in { position: relative; z-index: 1; }
.hb-whatsapp .tag { background: var(--nero); color: var(--giallo); }
.hb-whatsapp h2 { color: var(--bianco); }
.hb-whatsapp p { color: #f1f7ee; }
.hb-whatsapp .btn { background: var(--giallo); color: var(--nero); box-shadow: 5px 5px 0 var(--nero); }
.hb-whatsapp .btn:hover { background: var(--bianco); color: var(--nero); }
@media (max-width: 40rem) { .hb-whatsapp { background-position: right -5rem bottom -3rem; background-size: 16rem auto; } }
/* banner WhatsApp più basso: tutto su una fascia */
.hb-whatsapp { padding: 1.5rem 0; background-size: clamp(9rem, 16vw, 13rem) auto; background-position: right 1rem center; }
.hb-whatsapp-in { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 2.4rem; }
.hb-whatsapp .tag { grid-column: 1; font-size: .85rem; }
.hb-whatsapp h2 { grid-column: 1; font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1; }
.hb-whatsapp p { grid-column: 1; font-size: 1rem; }
.hb-whatsapp .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 1.15rem; padding: .7em 1.1em; margin-right: clamp(0rem, 9vw, 9rem); }
@media (max-width: 52rem) {
  .hb-whatsapp-in { grid-template-columns: 1fr; }
  .hb-whatsapp .btn { grid-column: 1; grid-row: auto; margin: .5rem 0 0; justify-self: start; }
  .hb-whatsapp { background-position: right -2rem bottom -2rem; background-size: 9rem auto; }
}

/* ---- Box Substack: arancione Substack con il simbolo grande sullo sfondo ---- */
.sbox-ss { position: relative; overflow: hidden; background-color: #FF6719; color: var(--bianco);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M5 4h14v2.2H5zM5 8.4h14v2.2H5zM5 12.8h14V21l-7-3.9L5 21z'/%3E%3C/svg%3E"); background-repeat: no-repeat;
  background-size: 9.5rem auto; background-position: right -1.6rem bottom -1.2rem; }
.sbox-ss::after { content: ""; position: absolute; inset: 0; background: rgba(255, 103, 25, .72); pointer-events: none; }
.sbox-ss > * { position: relative; z-index: 1; }
.sbox-ss .sbox-ico { color: var(--bianco); }
.sbox-ss .sbox-who { opacity: .95; }
.sbox-ss .sbox-cta { color: var(--nero); background: var(--bianco); align-self: flex-start; padding: .25rem .6rem; }
.sbox-ss:hover .sbox-cta { background: var(--nero); color: var(--bianco); }

/* ---- Box social nei colori di ciascuna piattaforma, con il simbolo grande sullo sfondo ---- */
.sbox-ig, .sbox-fb, .sbox-yt { position: relative; overflow: hidden; color: var(--bianco); border: 0; }
.sbox-ig > *, .sbox-fb > *, .sbox-yt > * { position: relative; z-index: 1; }
.sbox-ig::after, .sbox-fb::after, .sbox-yt::after { content: ""; position: absolute; right: -1.6rem; bottom: -1.4rem; width: 9.5rem; height: 9.5rem; background-repeat: no-repeat; background-size: contain; opacity: .22; pointer-events: none; }
.sbox-ig { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 45%, #8134AF 75%, #515BD4 100%); }
.sbox-ig::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='4' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3Ccircle cx='17.5' cy='6.5' r='1.3' fill='%23ffffff'/%3E%3C/svg%3E"); }
.sbox-fb { background: #1877F2; }
.sbox-fb::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M13.5 21v-7.5h2.6l.4-3h-3V8.6c0-.9.3-1.5 1.5-1.5h1.6V4.4a21 21 0 0 0-2.3-.1c-2.3 0-3.9 1.4-3.9 4v2.2H7.8v3h2.6V21h3.1z'/%3E%3C/svg%3E"); }
.sbox-yt { background: #FF0000; }
.sbox-yt::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M21.6 7.2a2.5 2.5 0 0 0-1.8-1.8C18.2 5 12 5 12 5s-6.2 0-7.8.4A2.5 2.5 0 0 0 2.4 7.2 26 26 0 0 0 2 12a26 26 0 0 0 .4 4.8 2.5 2.5 0 0 0 1.8 1.8C5.8 19 12 19 12 19s6.2 0 7.8-.4a2.5 2.5 0 0 0 1.8-1.8A26 26 0 0 0 22 12a26 26 0 0 0-.4-4.8zM10 15V9l5.2 3z'/%3E%3C/svg%3E"); }
.sbox-ig .sbox-ico, .sbox-fb .sbox-ico, .sbox-yt .sbox-ico { color: var(--bianco); }
.sbox-ig .sbox-cta, .sbox-fb .sbox-cta, .sbox-yt .sbox-cta { color: var(--nero); background: var(--bianco); align-self: flex-start; padding: .25rem .6rem; }
.sbox-ig:hover .sbox-cta, .sbox-fb:hover .sbox-cta, .sbox-yt:hover .sbox-cta { background: var(--nero); color: var(--bianco); }
.sbox-ig .sbox-who, .sbox-fb .sbox-who, .sbox-yt .sbox-who { opacity: .95; }

/* ---- Bandi in primo piano più compatti ---- */
.hb-grants2 .hbg { gap: 1.4rem; }
.hb-grants2 .hbg-b { padding: 1rem 1.2rem 1rem; gap: .4rem; box-shadow: 6px 6px 0 var(--giallo); }
.hb-grants2 .hbg-b:nth-child(2) { box-shadow: 6px 6px 0 var(--verde-chiaro); }
.hb-grants2 .hbg-b .hbg-meta { gap: .35rem .7rem; font-size: .85rem; }
.hb-grants2 .hbg-b .hbg-meta .tag { font-size: .8rem; padding: .15em .5em; }
.hb-grants2 .hbg-b .hbg-title { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.05; }
.hb-grants2 .hbg-b .hbg-ente { font-size: .92rem; }
.hbg-go { align-self: flex-start; margin-top: .2rem; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: .95rem; text-decoration: none; color: var(--nero); background: var(--giallo); padding: .25rem .6rem; }
.hbg-go:hover { background: var(--nero); color: var(--giallo); }
.hb-grants2 .hbg-sec2 { margin-top: 2.2rem; }

/* ---- Novità normative: schede chiare ad alto contrasto sul fondo scuro ---- */
.hb-grants2 .hbg-n { background: #f2f6ec; border-top: 5px solid var(--verde); color: var(--nero); }
.hb-grants2 .hbg-n .hbg-meta { color: #4a4a4a; }
.hb-grants2 .hbg-n .hbg-title a { color: var(--nero); }
.hb-grants2 .hbg-n .hbg-title a:hover { color: var(--verde-scuro); }
.hb-grants2 .hbg-n .hbg-sum { color: #333; }
.hb-grants2 .hbg-src { color: var(--verde-scuro); }

/* ---- Fascia sotto il menu: bandi e novità normative ---- */
.gbar { background: var(--giallo); color: var(--nero); border-bottom: 2px solid var(--nero); }
.gbar-in { display: flex; align-items: center; gap: .5rem 1.2rem; padding-top: .55rem; padding-bottom: .55rem; flex-wrap: wrap; }
.gbar-tag { flex: none; font-family: var(--titolo); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; background: var(--nero); color: var(--giallo); padding: .15rem .55rem; transform: rotate(-2deg); }
.gbar-txt { margin: 0; flex: 1 1 auto; font-size: .98rem; line-height: 1.3; }
.gbar-txt a { color: var(--nero); text-decoration: none; font-family: var(--titolo); text-transform: uppercase; letter-spacing: .02em; font-size: 1.08rem; }
.gbar-txt a:hover { text-decoration: underline; text-decoration-color: var(--verde-scuro); text-decoration-thickness: 2px; }
.gbar-sep { margin: 0 .35rem; }
.gbar-hide { color: inherit; }
.gbar-cta { flex: none; font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1rem; text-decoration: none; background: var(--nero); color: var(--bianco); padding: .4rem .8rem; transition: background .15s, color .15s; }
.gbar-cta:hover { background: var(--verde-scuro); color: var(--bianco); }
/* la fascia prende il posto del filetto tricolore sotto la testata */
.topbar-wrap:has(+ .gbar) { border-bottom: 0; }
@media (max-width: 52rem) { .gbar-hide { display: none; } }
@media (max-width: 40rem) {
  .gbar-in { gap: .4rem .7rem; }
  .gbar-tag { display: none; }
  .gbar-txt { font-size: .9rem; }
  .gbar-txt a { font-size: .98rem; }
  .gbar-cta { font-size: .85rem; padding: .3rem .55rem; }
}

/* ---- Icone dei temi e loghi degli enti ---- */
.gi { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 3.2rem; height: 3.2rem; border: 2px solid var(--nero); }
.gi svg { width: 62%; height: 62%; }
.gi-verde { background: var(--verde); color: var(--nero); }
.gi-bosco { background: var(--verde-scuro); color: var(--bianco); border-color: var(--verde-scuro); }
.gi-salvia { background: var(--verde-chiaro); color: var(--nero); }
.gi-giallo { background: var(--giallo); color: var(--nero); }
.gi-nero { background: var(--nero); color: var(--giallo); }
.g-item.g-has-ico { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0 1.1rem; align-items: start; }
.g-main { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.g-ico { margin-top: .15rem; transform: rotate(-3deg); transition: transform .2s; }
.g-item:hover .g-ico { transform: rotate(0) scale(1.05); }
.g-compact.g-has-ico { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0 .8rem; }
.g-compact .gi { width: 2.4rem; height: 2.4rem; }
.g-logo { display: inline-block; height: 1.5rem; width: auto; max-width: 7rem; object-fit: contain; vertical-align: middle; margin-right: .5rem; background: var(--bianco); }
.g-headline { display: flex; align-items: flex-start; gap: 1.1rem; }
.gi-big { width: 4.6rem; height: 4.6rem; border-width: 3px; transform: rotate(-3deg); margin-top: .3rem; box-shadow: 5px 5px 0 rgba(0,0,0,.85); }
.g-logo-wrap { display: inline-flex; background: var(--bianco); padding: .25rem .45rem; margin-right: .6rem; vertical-align: middle; }
.g-logo-wrap .g-logo { margin: 0; height: 1.8rem; }
.hb-grants2 .hbg-b { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); column-gap: 1rem; }
.hb-grants2 .hbg-b > :not(.hbg-ico) { grid-column: 2; }
.hbg-ico { grid-column: 1; grid-row: 1 / span 4; width: 2.8rem; height: 2.8rem; transform: rotate(-3deg); }
.hbg-ico-n { width: 2.3rem; height: 2.3rem; margin-bottom: .2rem; }
@media (max-width: 40rem) {
  .g-item.g-has-ico { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 .8rem; }
  .g-item .gi { width: 2.5rem; height: 2.5rem; }
  .gi-big { width: 3.4rem; height: 3.4rem; }
}
/* fila dei temi con icona, in cima alla pagina dei bandi */
.g-temi { display: flex; gap: .6rem; overflow-x: auto; padding: .3rem .2rem 1rem; margin-bottom: .6rem; scrollbar-width: thin; }
.g-tema { flex: none; display: flex; flex-direction: column; align-items: center; gap: .4rem; width: 6.2rem; padding: .7rem .3rem .6rem; text-decoration: none; color: var(--nero); border: 2px solid transparent; transition: border-color .15s, background .15s, transform .15s; }
.g-tema span { font-family: var(--titolo); font-weight: 700; font-size: .9rem; line-height: 1.05; text-transform: uppercase; text-align: center; letter-spacing: .02em; }
.g-tema:hover { border-color: var(--nero); transform: translateY(-2px); }
.g-tema.on { border-color: var(--nero); background: #fbf6dc; box-shadow: 4px 4px 0 var(--giallo); }
.gi-sm { width: 2.8rem; height: 2.8rem; transform: rotate(-3deg); }
.g-tema:hover .gi-sm, .g-tema.on .gi-sm { transform: rotate(0); }
@media (min-width: 64.01rem) {
  .g-temi { flex-wrap: wrap; overflow: visible; gap: .45rem; justify-content: space-between; }
  .g-tema { width: 5.6rem; }
}
@media (min-width: 64.01rem) { .g-temi { flex-wrap: nowrap; gap: .3rem; } .g-tema { width: auto; flex: 1 1 0; min-width: 0; padding-left: .15rem; padding-right: .15rem; } .g-tema span { font-size: .85rem; } }

/* ==========================================================
   Cruscotto dei bandi
   ========================================================== */
.gd { margin: .4rem 0 2rem; }
.gd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kpi { position: relative; padding: 1rem 1.1rem 1rem; background: var(--bianco); border: 2px solid var(--nero); display: flex; flex-direction: column; gap: .15rem; }
.kpi p { margin: 0; }
.kpi-lab { font-family: var(--titolo); font-weight: 800; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; }
.kpi-n { font-family: var(--titolo); font-weight: 800; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: .95; color: var(--nero); }
.kpi-eur { font-family: var(--titolo); font-weight: 700; font-size: 1.25rem; color: var(--verde-scuro); }
.kpi-eur small { display: block; font-family: var(--testo); font-weight: 400; font-size: .78rem; color: var(--grigio); }
.kpi-sub { font-size: .9rem; color: var(--grigio); line-height: 1.3; margin-top: .25rem !important; }
.kpi-main { background: var(--nero); color: var(--bianco); border-color: var(--nero); box-shadow: 6px 6px 0 var(--verde); }
.kpi-main .kpi-n { color: var(--giallo); }
.kpi-main .kpi-eur { color: var(--verde-chiaro); }
.kpi-main .kpi-eur small, .kpi-main .kpi-sub { color: #c9c9c9; }
.kpi-hot { background: var(--giallo); box-shadow: 6px 6px 0 var(--nero); }
.kpi-hot .kpi-eur, .kpi-hot .kpi-sub, .kpi-hot .kpi-eur small { color: #2a2a2a; }
.kpi-off { background: var(--grigio-chiaro); border-color: var(--riga); }
.kpi-off .kpi-n { color: #555; }
.gd-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.gd-box { border-top: 4px solid var(--nero); padding-top: .7rem; }
.gd-h { margin: 0 0 .7rem; font-family: var(--titolo); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .03em; }
.gd-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.gd-bars a { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; text-decoration: none; color: var(--nero); padding: .15rem .2rem; border-radius: 4px; }
.gd-bars a:hover { background: #f6f3e2; }
.gd-bl { display: flex; align-items: center; gap: .45rem; font-family: var(--titolo); font-weight: 600; font-size: .95rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-track { height: 12px; background: var(--grigio-chiaro); border-radius: 0 4px 4px 0; overflow: hidden; }
.gd-bar { display: block; height: 100%; background: var(--verde); border-radius: 0 4px 4px 0; transition: background .15s; }
.gd-bars a:hover .gd-bar { background: var(--verde-scuro); }
.gd-bv { font-family: var(--titolo); font-weight: 800; font-size: 1.05rem; min-width: 1.6rem; text-align: right; }
.gd-bv small { font-family: var(--testo); font-weight: 400; font-size: .8rem; color: var(--grigio); margin-left: .2rem; }
.gi-xs { width: 1.4rem; height: 1.4rem; border-width: 1.5px; }
.gd-next { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.gd-next li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: .1rem .6rem; align-items: baseline; }
.gd-next a { font-family: var(--titolo); font-weight: 700; text-transform: uppercase; font-size: .95rem; line-height: 1.1; color: var(--nero); text-decoration: none; }
.gd-next a:hover { color: var(--verde-scuro); }
.gd-next small { grid-column: 2; font-size: .8rem; color: var(--verde-scuro); font-weight: 600; }
.gd-days { grid-row: span 2; font-family: var(--titolo); font-size: .8rem; text-transform: uppercase; color: var(--grigio); line-height: 1; }
.gd-days strong { display: block; font-size: 1.5rem; color: var(--verde-scuro); }
.gd-days.hot strong { color: #b3261e; }
.gd-note { margin: 1rem 0 0; font-size: .82rem; color: var(--grigio); }
@media (max-width: 64rem) {
  .gd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-row { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .gd-kpis { gap: .7rem; }
  .kpi { padding: .8rem .8rem; }
  .kpi-n { font-size: 2.4rem; }
  .kpi-eur { font-size: 1.05rem; }
  .gd-bars a { grid-template-columns: 7.2rem minmax(0, 1fr) auto; }
}
@media (max-width: 40rem) { .gd-bars a { grid-template-columns: 9.6rem minmax(0, 1fr) auto; gap: .45rem; } .gd-bl { font-size: .86rem; } .kpi-main, .kpi-hot { box-shadow: 4px 4px 0 var(--verde); } .kpi-hot { box-shadow: 4px 4px 0 var(--nero); } }
/* regioni dentro "Regionale" nel cruscotto */
.gd-reg details > summary { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; cursor: pointer; list-style: none; padding: .15rem .2rem; border-radius: 4px; }
.gd-reg details > summary::-webkit-details-marker { display: none; }
.gd-reg details > summary:hover { background: #f6f3e2; }
.gd-caret { display: inline-block; transition: transform .15s; color: var(--verde-scuro); }
.gd-reg details[open] .gd-caret { transform: rotate(90deg); }
.gd-sub { list-style: none; margin: .3rem 0 .2rem 1rem; padding: 0 0 0 .6rem; border-left: 3px solid var(--giallo); display: grid; gap: .3rem; }
.gd-sub a { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
.gd-sub .gd-bl { font-size: .88rem; }
.gd-bar-sub { background: var(--verde-chiaro); }
.gd-sub a:hover .gd-bar-sub { background: var(--verde); }
.g-regbar { margin: 0 0 1rem; padding: .6rem .9rem; background: #fbf6dc; border-left: 6px solid var(--giallo); }
@media (max-width: 40rem) { .gd-reg details > summary { grid-template-columns: 9.6rem minmax(0, 1fr) auto; } .gd-sub a { grid-template-columns: 8rem minmax(0, 1fr) auto; } }

/* Novità normative: sezione distinta dai bandi, su fondo scuro */
.band-norme { background: #2b2d2c; color: #f4f1ea; }
.band-norme a { color: var(--giallo); }
.band-norme .tag { background: var(--giallo); color: var(--nero); }
.band-norme h1 { color: #fff; }
.band-norme .page-intro { color: #e4e0d6; }
.norme-count { font-family: var(--titolo); text-transform: uppercase; letter-spacing: .03em; font-size: .95rem; color: #cfcabe; margin: .2rem 0 0; }
.norme-count strong { color: var(--giallo); font-size: 1.25rem; }
.g-cross { margin: 1.6rem 0 .4rem; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.g-cross a { color: var(--verde-scuro); text-decoration: none; border-bottom: 2px solid var(--giallo); }
.g-cross a:hover { color: var(--nero); background: var(--giallo-chiaro); }

/* Questionario: regione di interesse */
.pt-regione { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; max-width: 28rem; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .9rem; }
.pt-regione select { font: inherit; font-family: var(--testo); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 1rem; padding: .6rem .7rem; border: 2px solid var(--nero); background: #fff; }
.pt-hint-small { font-size: .88rem; margin-top: .35rem; }

/* Questionario: domanda 1 obbligatoria */
.pt-step.pt-err legend { color: #b3261e; }
.pt-step.pt-err .pt-cards { outline: 3px solid #b3261e; outline-offset: 6px; }
.pt-live-need { color: var(--giallo); }
.pt-bar-warn { flex-basis: 100%; margin: .2rem 0 0; padding: .45rem .7rem; background: var(--giallo-chiaro); color: var(--nero); font-size: .95rem; }
.pt-bar-warn a { font-weight: 700; color: var(--nero); }

/* ---- Respiro tra i titoli dei paragrafi e il testo che segue ---- */
.prose h2 { margin-bottom: 2.1rem; }
.prose h3 { margin-bottom: 1.8rem; }
.prose h4 { margin-bottom: 1.4rem; }
/* se WordPress ha lasciato uno spaziatore subito dopo il titolo, non si somma */
.prose :is(h2, h3, h4) + .wp-block-spacer { display: none; }
@media (max-width: 40rem) {
  .prose h2 { margin-bottom: 1.6rem; }
  .prose h3 { margin-bottom: 1.4rem; }
}

/* Novità normative: due schede, leggi e decreti / comunicati e circolari */
.n-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0 0 1.4rem; border: 3px solid var(--nero); }
.n-tabs a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .1rem .8rem; padding: .9rem 1.1rem; text-decoration: none; color: var(--nero); background: #fff; }
.n-tabs a + a { border-left: 3px solid var(--nero); }
.n-tabs strong { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; }
.n-tabs span { font-family: var(--titolo); font-weight: 800; font-size: 1.5rem; color: var(--verde-scuro); }
.n-tabs small { grid-column: 1 / -1; font-size: .9rem; color: #555; }
.n-tabs a:hover { background: var(--giallo-chiaro); }
.n-tabs a[aria-current] { background: #2b2d2c; color: #fff; }
.n-tabs a[aria-current] span { color: var(--giallo); }
.n-tabs a[aria-current] small { color: #d6d2c8; }
@media (max-width: 40rem) { .n-tabs { grid-template-columns: 1fr; } .n-tabs a + a { border-left: 0; border-top: 3px solid var(--nero); } .n-tabs strong { font-size: 1.15rem; } }

/* Testo integrale di leggi e decreti (da Normattiva) */
.g-jump { display: block; margin-top: .7rem; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--verde-scuro); text-decoration: none; }
.g-jump:hover { color: var(--nero); }
.nt-index { list-style: none; margin: 0 0 2rem; padding: 0; border-top: 2px solid var(--nero); }
.nt-index li { border-bottom: 1px solid #ddd; }
.nt-index a { display: block; padding: .55rem .2rem; text-decoration: none; color: var(--nero); line-height: 1.35; }
.nt-index a:hover { background: var(--giallo-chiaro); }
.nt-index strong { font-family: var(--titolo); text-transform: uppercase; margin-right: .5rem; color: var(--verde-scuro); }
.nt-testo { font-family: var(--corpo); font-size: 1.05rem; line-height: 1.65; }
.nt-art { scroll-margin-top: 7rem; padding: 1.2rem 0 .4rem; border-top: 1px solid #ddd; }
.nt-art:first-child { border-top: 0; padding-top: 0; }
.nt-testo .article-num-akn { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; margin: 0; text-decoration: none; }
.nt-testo .article-heading-akn { font-family: var(--titolo); font-weight: 600; font-size: 1.2rem; margin: .1rem 0 .9rem; }
.nt-testo .art-comma-div-akn { margin: 0 0 .8rem; }
.nt-testo .comma-num-akn { font-weight: 700; }
.nt-testo h2 { font-size: 1.3rem; margin: 1rem 0 .5rem; text-decoration: none; }
.nt-pre { margin: 0 0 1.4rem; padding: .7rem 1rem; background: #f3f2ee; border-left: 4px solid var(--giallo); font-size: .95rem; }
.nt-pre summary { cursor: pointer; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.nt-pre h2 { font-size: 1.1rem; }
.nt-fonte { margin-top: 1.6rem; font-size: .88rem; color: #555; border-top: 2px solid var(--nero); padding-top: .7rem; }
.band-norme a.tag, .band-norme .tag { color: var(--nero); background: var(--giallo); }

/* ---- Apertura della home: la foto sfuma verso il titolo ---- */
.band:has(.lead.has-cover) { overflow: clip; }
.lead.has-cover { position: relative; align-items: center; }
.lead.has-cover .lead-head { position: relative; z-index: 2; }
.lead.has-cover .lead-cover {
  border: 0; box-shadow: none; position: relative; z-index: 1; align-self: stretch;
  /* fino al bordo destro dello schermo, a filo sopra e sotto, e un po' sotto il testo */
  margin: calc(-1 * clamp(2.5rem, 7vw, 4.5rem)) calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--g))) calc(-1 * clamp(2.5rem, 6vw, 4rem)) clamp(-8rem, -8vw, -3rem);
}
.lead.has-cover .lead-cover a { display: block; height: 100%; }
.lead.has-cover .lead-cover img {
  display: block; width: 100%; height: 100%; min-height: 26rem; aspect-ratio: auto; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 12%, rgba(0,0,0,.75) 28%, #000 46%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0,0,0,.25) 12%, rgba(0,0,0,.75) 28%, #000 46%);
}
@media (max-width: 48rem) {
  .lead.has-cover .lead-cover { align-self: auto; margin: calc(-1 * clamp(2.5rem, 7vw, 4.5rem)) calc(-1 * var(--g)) -1.5rem; }
  .lead.has-cover .lead-cover img {
    min-height: 0; height: auto; aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 50%, rgba(0,0,0,.6) 72%, transparent 100%);
  }
}

/* Dove trovarmi: senza descrizione, riquadri più bassi e pulsante in fondo */
.sbox { min-height: 12rem; }
.sbox-cta { margin-top: auto; }
.sbox-who { margin-bottom: 1rem; }

/* Menu: piccoli loghi dei social */
.top-social { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; flex: none; }
.top-social a { display: inline-flex; padding: .3rem; color: var(--nero); border-radius: 3px; transition: color .15s, transform .15s; }
.top-social a:hover { transform: translateY(-2px); }
.top-social .tsoc-instagram:hover { color: #DD2A7B; }
.top-social .tsoc-facebook:hover { color: #1877F2; }
.top-social .tsoc-substack:hover { color: #FF6719; }
.top-social .tsoc-youtube:hover { color: #FF0000; }
.menu-panel-social { gap: .6rem; margin-top: 1rem; }
.menu-panel-social svg { width: 26px; height: 26px; }
@media (max-width: 72rem) { .tb-right > .top-social { display: none; } }
.menu-panel .menu-panel-social li { border: 0; padding: 0; margin: 0; }
.menu-panel .menu-panel-social a { padding: .35rem; font-size: inherit; border: 0; }

/* ==================================================================
   Pagina articolo: effetto carta stampata
   Fondo bianco appena caldo con grana sottile della fibra, leggera ombreggiatura ai bordi,
   inchiostro quasi nero, testo giustificato con sillabazione come sui giornali.
   Si applica solo agli articoli (body.is-article), non alla home né alle pagine.
   ================================================================== */
body.is-article {
  --carta-fondo: #fbfaf7;
  --inchiostro-carta: #1e1e1d;
  background-color: var(--carta-fondo);
  background-image:
    /* grana fine della fibra */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .4 0 0 0 0 .38 0 0 0 .5 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    /* nuvolosità della pasta di carta, a scala più ampia */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.008' numOctaves='3' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .47 0 0 0 .14 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    /* bordi appena più scuri, come un foglio sotto la luce */
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, .035) 100%);
  background-attachment: scroll, scroll, fixed;
  color: var(--inchiostro-carta);
}
body.is-article .prose,
body.is-article .after,
body.is-article .comments,
body.is-article .related,
body.is-article .adjacent { color: var(--inchiostro-carta); }
body.is-article .prose a { color: var(--inchiostro-carta); }

/* impaginazione da giornale: giustificato e sillabato, solo dove la colonna è abbastanza larga */
@media (min-width: 40rem) {
  body.is-article .prose p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    text-wrap: pretty;
  }
}
body.is-article .prose { font-feature-settings: "kern", "liga", "onum"; }

/* le immagini si "appoggiano" sul foglio */
body.is-article .prose img,
body.is-article .article-cover img { box-shadow: 0 1px 2px rgba(0, 0, 0, .14); }

/* campi e riquadri bianchi: leggermente più caldi per non stonare sulla carta */
body.is-article .comments input,
body.is-article .comments textarea { background: #fff; }
body.is-article .prose code { background: rgba(0, 0, 0, .05); }

@media print {
  body.is-article { background: #fff; color: #000; }
}

/* Dove trovarmi: quinto riquadro WhatsApp */
.hb-social-grid.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.3rem; }
.sbox-wa { position: relative; overflow: hidden; background: #25D366; color: var(--bianco); border: 0; }
.sbox-wa > * { position: relative; z-index: 1; }
.sbox-wa::after { content: ""; position: absolute; right: -1.6rem; bottom: -1.4rem; width: 9.5rem; height: 9.5rem; background-repeat: no-repeat; background-size: contain; opacity: .22; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2a8.2 8.2 0 0 1-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2z'/%3E%3C/svg%3E"); }
.sbox-wa .sbox-ico { color: var(--bianco); }
.sbox-wa .sbox-who { opacity: .95; }
.sbox-wa .sbox-cta { color: var(--nero); background: var(--bianco); align-self: flex-start; padding: .25rem .6rem; }
.sbox-wa:hover .sbox-cta { background: var(--nero); color: var(--bianco); }
@media (max-width: 64rem) { .hb-social-grid.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hb-social-grid.n5 > :last-child { grid-column: 1 / -1; } }
@media (max-width: 30rem) { .hb-social-grid.n5 { grid-template-columns: 1fr; } .hb-social-grid.n5 > :last-child { grid-column: auto; } }
/* banner sotto la notizia principale */
.hb-ad-lead { margin-top: 2rem; }

/* Menu: «Bandi» lampeggia sempre con l'effetto del passaggio del mouse (evidenziatore giallo + riga verde) */
/* battito di cuore: due pulsazioni ravvicinate (la seconda più corta), poi una pausa; ogni 1,5 secondi */
@keyframes nav-flash-hl {
  0%   { transform: skewX(-12deg) scaleX(0);   animation-timing-function: ease-in-out; }
  26%  { transform: skewX(-12deg) scaleX(1);   animation-timing-function: ease-in-out; }
  36%  { transform: skewX(-12deg) scaleX(.62); animation-timing-function: ease-in-out; }
  48%  { transform: skewX(-12deg) scaleX(1);   animation-timing-function: ease-in-out; }
  80%, 100% { transform: skewX(-12deg) scaleX(0); }
}
@keyframes nav-flash-ul {
  0%   { transform: scaleX(0);   animation-timing-function: ease-in-out; }
  28%  { transform: scaleX(1);   animation-timing-function: ease-in-out; }
  38%  { transform: scaleX(.62); animation-timing-function: ease-in-out; }
  50%  { transform: scaleX(1);   animation-timing-function: ease-in-out; }
  82%, 100% { transform: scaleX(0); }
}
.topbar-c .nav a.nav-flash:not([aria-current])::before { animation: nav-flash-hl 1.5s infinite; transform-origin: left center; }
.topbar-c .nav a.nav-flash:not([aria-current])::after { animation: nav-flash-ul 1.5s infinite; transform-origin: left center; }
.topbar-c .nav a.nav-flash:hover::before, .topbar-c .nav a.nav-flash:hover::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .topbar-c .nav a.nav-flash:not([aria-current])::before { animation: none; transform: skewX(-12deg) scaleX(1); }
  .topbar-c .nav a.nav-flash:not([aria-current])::after { animation: none; transform: scaleX(1); }
}

/* ---- Evidenziatore solo sui link (15/11): grassetto e "evidenziato" senza giallo; i link con giallo acceso su tutta la parola ---- */
.prose strong, .prose b, .prose mark { background: none; }
.prose mark { color: inherit; padding: 0; }
.prose a {
  background-image: linear-gradient(transparent 6%, #FFD60A 6%, #FFD60A 94%, transparent 94%);
  text-decoration-color: var(--verde-scuro);
}
.prose a:hover, .prose a:focus-visible {
  background-image: linear-gradient(transparent 6%, #A3C67F 6%, #A3C67F 94%, transparent 94%);
}
.prose :is(h1, h2, h3, h4, h5, h6) a { background-image: none; }


/* =====================================================================
   Pagine Bandi e Norme: versione leggera (15/11)
   meno nero, righe sottili, titoli meno pesanti; stessi colori e caratteri
   ===================================================================== */
body.is-grants { --linea: #dcdad3; --carta: #f6f5f0; }

/* intestazione: verde con testo bianco e titolo meno spesso (bandi); carta chiara con titolo verde (norme) */
body.is-grants .band .page-head { padding-top: clamp(1.8rem, 5vw, 3rem); padding-bottom: clamp(1.8rem, 4.5vw, 2.6rem); gap: .8rem; }
body.is-grants .page-head h1 { font-weight: 600; font-size: clamp(2.4rem, 5.6vw, 4.2rem); letter-spacing: .005em; }
body.is-grants .band:not(.band-norme) { color: var(--bianco); }
body.is-grants .band:not(.band-norme) h1 { color: var(--bianco); }
body.is-grants .band:not(.band-norme) .page-intro { color: rgba(255, 255, 255, .92); }
body.is-grants .band:not(.band-norme) .tag { background: var(--giallo); color: var(--nero); }
body.is-grants .band-norme { background: var(--carta); color: var(--nero); border-bottom: 1px solid var(--linea); }
body.is-grants .band-norme h1 { color: var(--verde-scuro); }
body.is-grants .band-norme .page-intro { color: var(--grigio-testo); }
body.is-grants .band-norme .norme-count { color: var(--grigio); }
body.is-grants .band-norme .norme-count strong { color: var(--verde-scuro); }
body.is-grants .page-intro { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 44rem; }

/* invito al profilo: da riquadro nero a fascia chiara */
body.is-grants .pt-cta { background: #fdf8e3; color: var(--nero); border-left: 4px solid var(--giallo); padding: 1rem 1.3rem; }
body.is-grants .pt-cta-big { font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); }
body.is-grants .pt-cta-small { color: var(--grigio-testo); font-size: .95rem; }
body.is-grants .pt-cta .btn { padding: .5em 1em; font-size: 1rem; }
body.is-grants .pt-cta:hover .btn { background: var(--nero); color: var(--giallo); }
body.is-grants .pt-bar { border: 1px solid var(--linea); }

/* icone dei temi: bordi sottili, niente fondi neri */
body.is-grants .gi { border-width: 1.5px; border-color: rgba(0, 0, 0, .55); }
body.is-grants .gi-nero { background: var(--bianco); color: var(--nero); }
body.is-grants .gi-bosco { border-color: var(--verde-scuro); }
body.is-grants .g-tema { border-width: 1px; padding: .55rem .3rem .5rem; }
body.is-grants .g-tema span { font-weight: 600; color: var(--grigio-testo); }
body.is-grants .g-tema:hover { border-color: var(--linea); }
body.is-grants .g-tema.on { border-color: var(--giallo); background: #fdf8e3; box-shadow: none; }
body.is-grants .g-tema.on span { color: var(--nero); }

/* cruscotto: riquadri bianchi con bordo sottile, colore solo sui numeri */
body.is-grants .kpi { border: 1px solid var(--linea); box-shadow: none; }
body.is-grants .kpi-lab { font-weight: 600; color: var(--grigio-testo); }
body.is-grants .kpi-n { font-weight: 600; }
body.is-grants .kpi-main { background: var(--bianco); color: var(--nero); border-color: var(--linea); border-top: 4px solid var(--verde); }
body.is-grants .kpi-main .kpi-n { color: var(--verde-scuro); }
body.is-grants .kpi-main .kpi-eur { color: var(--verde-scuro); }
body.is-grants .kpi-main .kpi-eur small, body.is-grants .kpi-main .kpi-sub { color: var(--grigio); }
body.is-grants .kpi-hot { background: #fdf8e3; border-top: 4px solid var(--giallo); }
body.is-grants .kpi-hot .kpi-n { color: #8a6a00; }
body.is-grants .kpi-off { background: var(--bianco); }
body.is-grants .kpi:not(.kpi-main):not(.kpi-hot) { border-top: 4px solid var(--linea); }
body.is-grants .gd-box { border-top: 1px solid var(--linea); }
body.is-grants .gd-h { font-weight: 600; color: var(--grigio-testo); }
body.is-grants .gd-bv { font-weight: 600; }
body.is-grants .gd-next a { font-weight: 600; }
body.is-grants .gd-track { height: 8px; }

/* filtri */
body.is-grants .g-filters { background: var(--carta); padding: 1rem; }
body.is-grants .g-filters input[type=search], body.is-grants .g-filters select { border: 1px solid #bdbab1; border-radius: 3px; background: var(--bianco); }
body.is-grants .g-filters input[type=search]:focus, body.is-grants .g-filters select:focus { border-color: var(--verde); outline: 2px solid rgba(36, 145, 79, .25); }
body.is-grants .g-filters button[type=submit] { background: var(--verde-scuro); color: var(--bianco); border-color: var(--verde-scuro); }
body.is-grants .g-filters button[type=submit]:hover { background: var(--verde); color: var(--nero); }

/* elenco: righe sottili, titoli meno pesanti */
body.is-grants .g-list { border-top: 1px solid var(--linea); }
body.is-grants .g-item { border-bottom: 1px solid var(--linea); padding: 1.1rem 0; }
body.is-grants .g-title { font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.05; }
body.is-grants .g-meta { font-weight: 600; color: var(--grigio-testo); }
body.is-grants .g-dl { font-weight: 600; }
body.is-grants .g-dl-ok { background: #e6f1e9; color: var(--verde-scuro); }
body.is-grants .g-dl-urgent { background: #fdf0b8; color: #6b5200; }
body.is-grants .g-act { border-width: 1px; font-weight: 600; }
body.is-grants .g-ico { transform: none; }
body.is-grants .g-count { font-weight: 600; }

/* schede delle norme (leggi / decreti / comunicati) */
body.is-grants .n-tabs { border: 1px solid var(--linea); }
body.is-grants .n-tabs a + a { border-left: 1px solid var(--linea); }
body.is-grants .n-tabs strong, body.is-grants .n-tabs span { font-weight: 600; }
body.is-grants .n-tabs a[aria-current] { background: #fdf8e3; color: var(--nero); box-shadow: inset 0 -4px 0 var(--giallo); }
body.is-grants .n-tabs a[aria-current] span { color: var(--verde-scuro); }
body.is-grants .n-tabs a[aria-current] small { color: var(--grigio-testo); }
@media (max-width: 40rem) { body.is-grants .n-tabs a + a { border-top: 1px solid var(--linea); } }

/* ===== Repository delle norme per materia ===== */
.n-tabs.n-tabs-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 56rem) { .n-tabs.n-tabs-4 { grid-template-columns: repeat(2, 1fr); } body.is-grants .n-tabs-4 a:nth-child(3) { border-left: 0; } body.is-grants .n-tabs-4 a:nth-child(n+3) { border-top: 1px solid var(--linea); } }
@media (max-width: 40rem) { .n-tabs.n-tabs-4 { grid-template-columns: repeat(2, 1fr); } .n-tabs-4 small { display: none; } .n-tabs-4 a { padding: .6rem .8rem; } .n-tabs-4 strong { font-size: 1rem; } .n-tabs-4 span { font-size: 1.15rem; } body.is-grants .n-tabs-4 a:nth-child(2), body.is-grants .n-tabs-4 a:nth-child(4) { border-left: 1px solid var(--linea); } body.is-grants .n-tabs-4 a:nth-child(2) { border-top: 0; } }
.n-tabs-4 small { font-size: .82rem; }
.nr-wrap { display: grid; grid-template-columns: 17rem 1fr; gap: 2.4rem; align-items: start; margin-top: .4rem; }
.nr-mat { position: sticky; top: 1rem; }
.nr-mat-h { font-family: var(--titolo); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--grigio); margin: 0 0 .5rem; }
.nr-mat ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea, #dcdad3); }
.nr-mat li { border-bottom: 1px solid var(--linea, #dcdad3); }
.nr-mat a { display: flex; justify-content: space-between; gap: .8rem; padding: .55rem .6rem; text-decoration: none; color: var(--nero); font-size: .95rem; line-height: 1.3; }
.nr-mat a b { font-family: var(--titolo); font-weight: 600; color: var(--verde-scuro); }
.nr-mat a:hover { background: var(--carta, #f6f5f0); }
.nr-mat a[aria-current] { background: #fdf8e3; box-shadow: inset 3px 0 0 var(--giallo); font-weight: 600; }
.nr-mat a.nr-empty { color: #9a9890; }
.nr-mat a.nr-empty b { color: #b5b3ab; }
.nr-sec { margin: 0 0 2.2rem; }
.nr-h { display: flex; align-items: center; gap: .6rem; font-family: var(--titolo); font-weight: 600; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .01em; margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--verde); }
.nr-h a { color: var(--nero); text-decoration: none; }
.nr-h a:hover { color: var(--verde-scuro); }
.nr-h-big { font-size: 1.7rem; flex-wrap: wrap; }
.nr-h small { font-family: var(--testo); text-transform: none; font-weight: 400; font-size: .95rem; color: var(--grigio); margin-left: auto; }
.nr-list { list-style: none; margin: 0; padding: 0; }
.nr-item { display: grid; grid-template-columns: 7.5rem 1fr; gap: .2rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea, #dcdad3); }
.nr-item time { font-family: var(--titolo); font-size: .9rem; letter-spacing: .03em; color: var(--grigio); padding-top: .15rem; }
.nr-item > a { color: var(--nero); text-decoration: none; font-weight: 600; line-height: 1.35; }
.nr-item > a:hover { color: var(--verde-scuro); text-decoration: underline; }
.nr-c { grid-column: 2; margin: .15rem 0 0; font-size: .93rem; color: var(--grigio-testo); line-height: 1.45; }
.nr-more { margin: .6rem 0 0; }
.nr-more a { font-family: var(--titolo); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; color: var(--verde-scuro); text-decoration: none; }
@media (max-width: 56rem) {
  .nr-wrap { grid-template-columns: 1fr; gap: 1.2rem; }
  .nr-mat { position: static; }
  .nr-mat ul { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; }
  .nr-mat li { border: 0; }
  .nr-mat a { border: 1px solid var(--linea, #dcdad3); border-radius: 2rem; padding: .3rem .8rem; font-size: .88rem; }
  .nr-mat a[aria-current] { box-shadow: none; border-color: var(--giallo); }
  .nr-item { grid-template-columns: 1fr; }
  .nr-c { grid-column: 1; }
}

/* ===== Condivisione in alto, sotto la foto: solo simboli + contatore ===== */
.share-top { max-width: 44rem; margin: 1.6rem auto 0; padding: 0 var(--g); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.share-top + .prose { margin-top: 1.8rem; }
.share-count { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--titolo); font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; color: var(--grigio); }
.share-top ul { list-style: none; display: flex; gap: .35rem; margin: 0; padding: 0; }
.share-top a, .share-top button { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid #d6d3cb; background: #fff; color: #3b3b3b; cursor: pointer; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.share-top a:hover, .share-top button:hover, .share-top a:focus-visible, .share-top button:focus-visible { color: #fff; border-color: transparent; }
.share-top .st-whatsapp:hover, .share-top .st-whatsapp:focus-visible { background: #25D366; }
.share-top .st-facebook:hover, .share-top .st-facebook:focus-visible { background: #1877F2; }
.share-top .st-x:hover, .share-top .st-x:focus-visible { background: #000; }
.share-top .st-telegram:hover, .share-top .st-telegram:focus-visible { background: #229ED9; }
.share-top .st-linkedin:hover, .share-top .st-linkedin:focus-visible { background: #0A66C2; }
.share-top .st-email:hover, .share-top .st-email:focus-visible, .share-top .st-link:hover, .share-top .st-link:focus-visible { background: var(--verde-scuro); }
.share-top .st-link.copied { background: var(--verde); color: #fff; border-color: transparent; }
@media (max-width: 30rem) { .share-top { justify-content: center; } .share-count { width: 100%; justify-content: center; } .share-top a, .share-top button { width: 2.4rem; height: 2.4rem; } }
@media print { .share-top { display: none; } }

/* ===== Banner consenso cookie ===== */
.ck { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 0 var(--g) var(--g); pointer-events: none; }
.ck[hidden] { display: none; }
.ck-in { pointer-events: auto; position: relative; max-width: 46rem; margin: 0 auto; background: #fff; color: var(--nero); border-top: 5px solid var(--verde); box-shadow: 0 6px 30px rgba(0, 0, 0, .22); padding: 1.1rem 1.3rem 1.2rem; }
.ck-h { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .02em; margin: 0 2rem .35rem 0; }
.ck-t { font-size: .95rem; line-height: 1.5; margin: 0 0 .9rem; }
.ck-t a { color: var(--verde-scuro); text-decoration: underline; }
.ck-b { display: flex; gap: .6rem; flex-wrap: wrap; }
.ck-btn { flex: 1 1 10rem; font-family: var(--titolo); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; padding: .65rem 1rem; border: 2px solid var(--nero); background: #fff; color: var(--nero); cursor: pointer; }
.ck-btn:hover, .ck-btn:focus-visible { background: var(--verde); }
.ck-x { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: #555; padding: .2rem .4rem; }
.ck-x:hover { color: var(--nero); }
.cookie-prefs { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.cookie-prefs:hover { text-decoration: underline; }
@media print { .ck { display: none; } }

/* ===== Pagine privacy e cookie ===== */
.legal { max-width: 44rem; margin: 3rem auto 4rem; padding: 0 var(--g); font-size: 1.08rem; line-height: 1.65; }
.legal h2 { font-family: var(--titolo); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: .8rem 0 1.2rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid #ddd; }
.legal th { font-family: var(--titolo); text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; }
.legal .legal-upd { color: var(--grigio); font-size: .95rem; }
@media (max-width: 40rem) { .legal table, .legal tbody, .legal tr, .legal td, .legal th { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: .15rem 0; } .legal tr { border-bottom: 1px solid #ddd; padding: .5rem 0; } }
.footer-legal .cookie-prefs { font-family: var(--titolo); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; color: var(--bianco); }
.footer-legal .cookie-prefs:hover { color: var(--giallo); text-decoration: none; }
