/* Fondazione Gagliardi — stile del sito
   Colori e caratteri dal Manuale di identità visiva (v1.0, settembre 2026). */

:root {
  --bordeaux: #7A1F2B;
  --bordeaux-profondo: #551520;
  --antracite: #2C2C2C;
  --avorio: #F7F3EC;
  --rosa-antico: #C98F92;
  --pietra: #DDD3C4;
  --carta: #EFE8DC;
  --grigio-pietra: #6E6A63;
  --testo-2: #4A4743;
  --avorio-scuro: #E9E3D8;
  --footer-muted: #B9B2A6;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1280px;

  --trama: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='64'%3E%3Cg fill='%237A1F2B' fill-opacity='.32'%3E%3Crect x='5.7' y='6' width='.7' height='22'/%3E%3Crect x='17.7' y='38' width='.7' height='22'/%3E%3C/g%3E%3C/svg%3E");
  --trama-neg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='64'%3E%3Cg fill='%23F7F3EC' fill-opacity='.2'%3E%3Crect x='5.7' y='6' width='.7' height='22'/%3E%3Crect x='17.7' y='38' width='.7' height='22'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--avorio);
  color: var(--antracite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--bordeaux); text-decoration: none; }
a:hover { color: var(--bordeaux-profondo); text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bordeaux); color: var(--avorio); padding: 10px 16px;
}
.skip-link:focus { top: 12px; color: var(--avorio); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Logo ---------- */
.logo { display: block; height: auto; color: var(--antracite); fill: var(--bordeaux); }
.logo--neg { color: var(--avorio); fill: var(--rosa-antico); }
.logo--avorio { color: var(--avorio); fill: var(--avorio); }

/* ---------- Etichette e testi ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--bordeaux);
}
.lead { font-size: 18px; line-height: 1.6; color: var(--testo-2); max-width: 30em; text-wrap: pretty; }
.muted { color: var(--testo-2); }
.more {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bordeaux);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; padding: 14px 22px; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--bordeaux); color: var(--avorio); }
.btn--primary:hover { background: var(--bordeaux-profondo); color: var(--avorio); }
.btn--outline { background: transparent; border-color: var(--antracite); color: var(--antracite); padding: 13px 22px; }
.btn--outline:hover { background: var(--antracite); color: var(--avorio); }

/* ---------- Filetto istituzionale ---------- */
.filetto { display: flex; align-items: center; gap: 14px; }
.filetto::before, .filetto::after { content: ""; flex: 1; height: 1px; background: var(--antracite); opacity: .5; }
.filetto > span { width: 1.5px; height: 22px; background: var(--bordeaux); }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--antracite); color: var(--avorio-scuro); font-size: 12px; letter-spacing: 0.06em; }
.topbar .wrap { padding-top: 8px; padding-bottom: 8px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar .lang { display: flex; gap: 12px; }
.topbar .lang a { color: var(--avorio-scuro); opacity: .6; }
.topbar .lang a:hover { opacity: 1; text-decoration: none; }
.topbar .lang a[aria-current] { color: #FFFFFF; opacity: 1; font-weight: 600; }

/* ---------- Header / navigazione ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pietra);
}
.site-header .wrap { padding-top: 20px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-header .brand { display: block; width: 170px; flex: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.site-nav a { color: var(--antracite); }
.site-nav a:hover { color: var(--bordeaux); text-decoration: none; }
.site-nav .nav-cta { background: var(--bordeaux); color: var(--avorio); padding: 10px 18px; letter-spacing: 0.06em; }
.site-nav .nav-cta:hover { background: var(--bordeaux-profondo); color: var(--avorio); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--antracite); color: var(--antracite);
  font: 600 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 14px; cursor: pointer; align-items: center; gap: 10px;
}
.nav-toggle .bars { position: relative; width: 16px; height: 10px; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s, top .2s; }
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 4.25px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .site-header .brand { width: 140px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--avorio); border-bottom: 1px solid var(--pietra);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; font-size: 16px; }
  .site-nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--pietra); }
  .site-nav li:last-child a { margin-top: 18px; text-align: center; border-bottom: 0; }
}

/* ---------- Segnaposto immagini ---------- */
.media {
  position: relative; width: 100%; overflow: hidden;
  background: var(--carta) var(--trama);
  border: 1px solid var(--pietra);
}
.media__ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-size: 13px; color: var(--grigio-pietra); letter-spacing: 0.04em;
}
.media__ph span { background: var(--carta); padding: 6px 10px; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--4x5 { aspect-ratio: 4 / 5; max-height: 560px; }
.media--4x3 { aspect-ratio: 4 / 3; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--trama); opacity: .7; }
.hero .wrap {
  position: relative; padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 24px; background: var(--avorio); padding: 8px 0; }
.hero h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.02; text-wrap: balance; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Missione ---------- */
.mission { background: var(--bordeaux); color: var(--avorio); }
.mission .wrap {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center;
}
.mission .eyebrow { color: var(--avorio); }
.mission blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; text-wrap: pretty;
}
@media (max-width: 720px) { .mission .wrap { grid-template-columns: 1fr; } }

/* ---------- Sezioni ---------- */
.section { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.section-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px 32px; align-items: end; margin-bottom: 48px;
}
.section-head h2 { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.05; text-wrap: balance; }
.section-head .num { font-family: var(--serif); font-size: 20px; color: var(--bordeaux); margin-bottom: 8px; }
.section-head p { font-size: 17px; line-height: 1.65; color: var(--testo-2); text-wrap: pretty; }

/* Chi siamo */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 56px; }
.about p { font-size: 17px; line-height: 1.7; color: var(--testo-2); text-wrap: pretty; }
.about p + p { margin-top: 16px; }
.values { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--antracite); }
.values li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--pietra); }
.values .n { font-family: var(--serif); font-size: 22px; color: var(--bordeaux); line-height: 1.2; }
.values strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.2; }
.values span.t { color: var(--testo-2); font-size: 15px; }

/* Aree di intervento */
.aree { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px; margin-top: 40px; }
.area { display: flex; flex-direction: column; gap: 16px; }
.area .num { font-family: var(--serif); font-size: 20px; color: var(--bordeaux); }
.area h3 { font-size: 34px; line-height: 1; }
.area p { color: var(--testo-2); text-wrap: pretty; }

/* Progetti ed eventi */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.card { background: #FFFDF9; border: 1px solid #E4DBCD; display: flex; flex-direction: column; }
.card__visual { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: flex; align-items: flex-end; padding: 24px; }
.card__visual--scuro { background: var(--antracite); color: var(--avorio); }
.card__visual--scuro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: var(--bordeaux) var(--trama-neg); }
.card__visual--bordeaux { background: var(--bordeaux) var(--trama-neg); color: var(--avorio); }
.card__visual--bordeaux::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(247, 243, 236, 0.55); pointer-events: none; }
.card__visual > * { position: relative; z-index: 1; }
.card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__body h3 { font-size: 30px; line-height: 1.1; }
.card__body p { color: var(--testo-2); }
.card__meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--testo-2); }
.card__meta strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1.1; color: var(--antracite); }
.card__body .more { margin-top: auto; padding-top: 8px; }

/* Bandi */
.notice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start;
  border: 1px solid var(--pietra); border-left: 3px solid var(--bordeaux); padding: 24px; background: #FFFDF9;
}
.notice h3 { font-size: 26px; line-height: 1.15; margin-bottom: 6px; }
.notice p { color: var(--testo-2); }
.notice svg { width: 44px; height: auto; }

/* Collaborazioni */
.partners { border-top: 1px solid var(--pietra); background: var(--carta); }
.partners .wrap {
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; align-items: center;
}
.partners h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; text-wrap: balance; }
.partners .col { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.partners p { color: var(--testo-2); }

/* Contatti */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 56px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .eyebrow { margin-bottom: 6px; }
.contact-info address { font-style: normal; font-size: 17px; line-height: 1.7; }
.form { display: grid; gap: 18px; background: #FFFDF9; border: 1px solid #E4DBCD; padding: clamp(20px, 3vw, 32px); }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--antracite); }
.field input, .field select, .field textarea {
  font: 16px/1.5 var(--sans); color: var(--antracite); background: var(--avorio);
  border: 1px solid var(--pietra); border-radius: 0; padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bordeaux); box-shadow: 0 0 0 1px var(--bordeaux); }
.field textarea { min-height: 140px; resize: vertical; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 14px; color: var(--testo-2); align-items: start; }
.check input { margin-top: 4px; accent-color: var(--bordeaux); }
.form .hidden { display: none; }
.form .btn { justify-self: start; }

/* Cosa facciamo */
.attivita { margin-top: clamp(48px, 6vw, 72px); }
.attivita__title { font-size: 30px; line-height: 1.1; padding-bottom: 14px; border-bottom: 2px solid var(--antracite); }
.attivita ol {
  list-style: none; margin: 0; padding: 0; counter-reset: att;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px;
}
.attivita li { counter-increment: att; padding: 18px 0 18px 54px; border-bottom: 1px solid var(--pietra); position: relative; font-size: 15px; color: var(--testo-2); }
.attivita li::before { content: counter(att, upper-roman); position: absolute; left: 0; top: 16px; font-family: var(--serif); font-size: 20px; color: var(--bordeaux); }
.attivita li strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--antracite); line-height: 1.2; margin-bottom: 4px; }

/* Progetto in evidenza */
.feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  background: #FFFDF9; border: 1px solid #E4DBCD; margin-bottom: 24px;
}
.feature__media { aspect-ratio: auto; min-height: 320px; border: 0; border-right: 1px solid #E4DBCD; }
.feature__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.feature__body h3 { font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.feature__sub { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bordeaux); margin-top: -6px; }
.feature__body > p:not(.feature__sub) { color: var(--testo-2); text-wrap: pretty; }
.feature__body strong { color: var(--antracite); }
@media (max-width: 760px) { .feature__media { min-height: 0; aspect-ratio: 4 / 3; border-right: 0; border-bottom: 1px solid #E4DBCD; } }

.facts { margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; border-top: 1px solid var(--pietra); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--pietra); }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grigio-pietra); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 20px; line-height: 1.25; color: var(--antracite); }
.facts--table { grid-template-columns: 1fr; border-top: 2px solid var(--antracite); margin: 0; }
.facts--table > div { display: grid; grid-template-columns: minmax(160px, 260px) minmax(0, 1fr); gap: 8px 24px; padding: 16px 0; align-items: baseline; }
.facts--table dd { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
@media (max-width: 600px) { .facts--table > div { grid-template-columns: 1fr; } }

.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bordeaux); border: 1px solid var(--bordeaux); padding: 6px 10px; }

/* Organi */
.organi { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.organo { background: #FFFDF9; border: 1px solid #E4DBCD; border-top: 3px solid var(--bordeaux); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.organo h3 { font-size: 30px; line-height: 1.1; }
.organo p { color: var(--testo-2); font-size: 15px; }
.people { list-style: none; margin: 0; padding: 0; }
.people li { padding: 10px 0; border-bottom: 1px solid var(--pietra); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bordeaux); font-weight: 600; }
.people li:first-child { padding-top: 0; }
.people strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--antracite); line-height: 1.2; }

/* ---------- Footer ---------- */
.site-footer { background: var(--antracite); color: var(--avorio-scuro); }
.site-footer .wrap { padding-top: clamp(40px, 6vw, 64px); padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid .logo { width: 190px; }
.footer-col { font-size: 14px; line-height: 1.7; }
.footer-col h2 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rosa-antico); margin-bottom: 8px; }
.footer-col a { color: var(--avorio-scuro); }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
  border-top: 1px solid rgba(233, 227, 216, 0.2); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--footer-muted);
}
.footer-bottom a { color: var(--footer-muted); }
.footer-bottom a:hover { color: #FFFFFF; }

/* ---------- Pagine interne (privacy, grazie, 404) ---------- */
.page { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); min-height: 55vh; }
.page .wrap { max-width: 820px; display: flex; flex-direction: column; gap: 24px; }
.page h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.page h2 { font-size: 28px; margin-top: 16px; }
.page p, .page li { font-size: 17px; line-height: 1.7; color: var(--testo-2); }
.form-status { font-size: 14px; color: var(--bordeaux); min-height: 1em; }
.form-status:empty { display: none; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Blog ---------- */
.page--wide .wrap { max-width: var(--maxw); }
.page--wide .lead { max-width: 40em; }
.blog-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; margin-top: 16px; }
.blog-empty { grid-column: 1 / -1; color: var(--grigio-pietra); font-size: 17px; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card__media { display: block; }
.post-card__meta { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--grigio-pietra); }
.post-card h2 { font-size: 30px; line-height: 1.1; }
.post-card h2 a { color: var(--antracite); }
.post-card h2 a:hover { color: var(--bordeaux); text-decoration: none; }
.post-card p { color: var(--testo-2); text-wrap: pretty; }
.post { display: flex; flex-direction: column; gap: 24px; }
.post__head { display: flex; flex-direction: column; gap: 14px; }
.post__author { font-size: 14px; color: var(--grigio-pietra); }
.post__figure { margin: 0; }
.post__figure img { width: 100%; height: auto; border: 1px solid var(--pietra); }
.post__figure figcaption { font-size: 13px; color: var(--grigio-pietra); margin-top: 8px; }
.post__body { display: flex; flex-direction: column; gap: 18px; }
.post__body h2 { font-size: 30px; margin-top: 12px; }
.post__body ul { margin: 0; padding-left: 22px; }
.post__body li { margin: 6px 0; }
.post__body blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--bordeaux); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.35; color: var(--antracite); }
.feature__note { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grigio-pietra); }
.feature__body { justify-content: center; }

/* ---------- Banner consenso cookie (CMP) ---------- */
.cmp { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.cmp__inner {
  pointer-events: auto; position: relative; width: 100%; max-width: 760px;
  background: var(--avorio); border: 1px solid var(--pietra); border-top: 3px solid var(--bordeaux);
  box-shadow: 0 20px 50px -20px rgba(44, 44, 44, 0.45); padding: 24px clamp(20px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cmp__title { font-size: 26px; line-height: 1.1; padding-right: 32px; outline: none; }
.cmp__text { font-size: 14px; line-height: 1.6; color: var(--testo-2); }
.cmp__x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--antracite); cursor: pointer; padding: 4px 8px; }
.cmp__cats { display: flex; flex-direction: column; border-top: 1px solid var(--pietra); }
.cmp__cats[hidden] { display: none; }
.cmp__cat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pietra); font-size: 14px; color: var(--testo-2); }
.cmp__cat input { margin-top: 4px; accent-color: var(--bordeaux); width: 16px; height: 16px; }
.cmp__cat strong { display: block; color: var(--antracite); }
.cmp__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cmp__actions .btn { flex: 1 1 150px; text-align: center; }
.footer-bottom button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--footer-muted); cursor: pointer; }
.footer-bottom button.linklike:hover { color: #FFFFFF; }

/* Pagine legali */
.page--legal h2 { font-size: 26px; margin-top: 20px; }
.page--legal ul { margin: 0; padding-left: 22px; }
.page--legal li { margin: 8px 0; }
.legal-table { overflow-x: auto; border: 1px solid var(--pietra); background: #FFFDF9; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--pietra); vertical-align: top; color: var(--testo-2); }
.legal-table th { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--antracite); }
.legal-table code { font-size: 14px; color: var(--bordeaux); }
