/* ==========================================================================
   Declorsystem — Design system
   Palette derivata dal marchio storico: indigo #3b398f + azzurro #76bfe0
   ========================================================================== */

:root {
  /* Brand */
  --indigo:        #3b398f;
  --indigo-dark:   #2c2b6b;
  --indigo-darker: #1d1c47;
  --indigo-light:  #4b48b4;
  --azure:         #76bfe0;
  --azure-dark:    #38a2d2;
  --azure-light:   #a0d3ea;

  /* Neutrali */
  --ink:      #1b1f27;
  --ink-2:    #2e353e;
  --body:     #4a5260;
  --muted:    #6d7686;
  --line:     #e3e7ee;
  --line-2:   #eef1f6;
  --surface:  #ffffff;
  --surface-2:#f6f8fb;
  --surface-3:#eef3f9;

  /* Tipografia */
  --ff-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-body: "Open Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Spazio / forma */
  --container: 1180px;
  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 1px 2px rgba(27,31,39,.05), 0 8px 28px rgba(27,31,39,.07);
  --shadow-lg:0 2px 6px rgba(27,31,39,.06), 0 22px 55px rgba(27,31,39,.12);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-light); }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .55em;
  font-weight: 600;
  letter-spacing: -.011em;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.05rem); font-weight: 700; letter-spacing: -.024em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); letter-spacing: -.018em; }
h3 { font-size: clamp(1.2rem, 1.06rem + .6vw, 1.45rem); }
h4 { font-size: 1.12rem; }
p  { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .42em; }
strong, b { color: var(--ink-2); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }
:focus-visible { outline: 3px solid var(--azure-dark); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(3.4rem, 2rem + 5.5vw, 6rem) 0; }
.section--tight { padding: clamp(2.4rem, 1.6rem + 3vw, 3.8rem) 0; }
.section--alt { background: var(--surface-2); }
.section--deep { background: var(--ink); color: #c9cfdb; }
.section--deep h2, .section--deep h3 { color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--indigo); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 186px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; margin: 0; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: 8px;
  font-family: var(--ff-head); font-size: .805rem; font-weight: 500;
  letter-spacing: .055em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap;
  background: none; border: 0; cursor: pointer;
  transition: background .16s, color .16s;
}
.nav__link:hover { background: var(--surface-3); color: var(--indigo); }
.nav__link[aria-current="page"] { color: var(--indigo); background: var(--surface-3); }
.nav__caret { width: 9px; height: 9px; flex: 0 0 auto; transition: transform .2s; opacity: .65; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__sub {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 268px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .17s, transform .17s, visibility .17s;
}
.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__sub.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub li { margin: 0; }
.nav__sub a {
  display: block; padding: 9px 13px; border-radius: 8px;
  font-size: .9rem; color: var(--ink-2); line-height: 1.4;
}
.nav__sub a:hover { background: var(--surface-3); color: var(--indigo); }
.nav__sub-title {
  padding: 11px 13px 5px; font-family: var(--ff-head); font-size: .7rem;
  font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.nav__sub-title:not(:first-child) { border-top: 1px solid var(--line-2); margin-top: 6px; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 19px; height: 2px; background: currentColor;
  border-radius: 2px; margin-inline: auto; transition: transform .22s, opacity .22s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--ff-head); font-size: .87rem; font-weight: 600;
  letter-spacing: .028em; text-align: center; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s, box-shadow .16s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgba(59,57,143,.24); }
.btn--primary:hover { background: var(--indigo-dark); color: #fff; box-shadow: 0 9px 24px rgba(59,57,143,.32); }
.btn--accent { background: var(--azure-dark); color: #fff; box-shadow: 0 6px 18px rgba(56,162,210,.26); }
.btn--accent:hover { background: #2d8fbb; color: #fff; }
.btn--ghost { background: transparent; color: var(--indigo); border-color: rgba(59,57,143,.32); }
.btn--ghost:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.42); }
.btn--on-dark:hover { background: #fff; color: var(--indigo); border-color: #fff; }
.btn--sm { padding: 9px 18px; font-size: .8rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(118,191,224,.34), transparent 62%),
    radial-gradient(880px 460px at 6% 108%, rgba(59,57,143,.20), transparent 60%),
    linear-gradient(168deg, #f7f9fc 0%, #eef3f9 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: clamp(3.2rem, 2rem + 6vw, 6.2rem) 0; position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 1rem + 3.5vw, 4rem); align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; margin-bottom: 20px;
  background: rgba(255,255,255,.86); border: 1px solid rgba(59,57,143,.16);
  border-radius: 999px;
  font-family: var(--ff-head); font-size: .73rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--indigo);
}
.hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure-dark); box-shadow: 0 0 0 4px rgba(118,191,224,.32);
}
.hero h1 { margin-bottom: .5em; }
.hero__lead { font-size: clamp(1.02rem, .96rem + .36vw, 1.19rem); color: var(--body); max-width: 60ch; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.hero__figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--indigo) 0%, var(--indigo-light) 55%, var(--azure-dark) 100%);
  box-shadow: var(--shadow-lg);
}

/* Hero compatto per pagine interne */
.page-hero {
  background:
    radial-gradient(760px 380px at 88% -20%, rgba(118,191,224,.3), transparent 60%),
    linear-gradient(160deg, #f7f9fc 0%, #eef3f9 100%);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.3rem, 1.5rem + 3.4vw, 3.9rem) 0 clamp(2rem, 1.3rem + 3vw, 3.3rem);
}
.page-hero h1 { margin-bottom: .35em; }
.page-hero__lead { font-size: 1.06rem; max-width: 68ch; margin-bottom: 0; }
.eyebrow {
  display: block; margin-bottom: 13px;
  font-family: var(--ff-head); font-size: .75rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--azure-dark);
}

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 15px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 7px; }
.crumbs li + li::before { content: "›"; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--indigo); }
.crumbs [aria-current] { color: var(--ink-2); }

/* ---------- Section head ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.04rem; margin-bottom: 0; color: var(--muted); }

/* ---------- Grid / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(59,57,143,.2); }
.card__media { position: relative; aspect-ratio: 3 / 2; background: var(--surface-3); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  display: inline-block; margin-bottom: 11px; align-self: flex-start;
  padding: 4px 11px; border-radius: 999px;
  background: var(--surface-3); color: var(--indigo);
  font-family: var(--ff-head); font-size: .68rem; font-weight: 600;
  letter-spacing: .085em; text-transform: uppercase;
}
.card__title { font-size: 1.08rem; margin-bottom: .5em; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--indigo); }
.card__text { font-size: .945rem; color: var(--muted); margin-bottom: 1.1em; }
.card__link {
  margin-top: auto; align-self: flex-start;
  font-family: var(--ff-head); font-size: .855rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 7px;
}
.card__link::after { content: "→"; transition: transform .18s; }
.card__link:hover::after { transform: translateX(3px); }

/* Cornice immagine con proporzioni fisse */
.frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-3);
}
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame--4x3  { aspect-ratio: 4 / 3; }
.frame--16x8 { aspect-ratio: 16 / 8; }
.frame--mb   { margin-bottom: 26px; }

/* Segnaposto immagine mancante */
.ph {
  display: grid; place-content: center; gap: 8px; text-align: center;
  width: 100%; height: 100%; padding: 20px;
  background:
    linear-gradient(135deg, rgba(59,57,143,.09), rgba(118,191,224,.16)),
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(59,57,143,.045) 11px 22px);
  color: var(--indigo);
}
.ph__icon { width: 34px; height: 34px; margin-inline: auto; opacity: .5; }
.ph__label {
  font-family: var(--ff-head); font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; opacity: .72;
}

/* ---------- Feature (vantaggi) ---------- */
.feature { padding: 30px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon {
  display: grid; place-content: center;
  width: 50px; height: 50px; margin-bottom: 18px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--indigo) 0%, var(--indigo-light) 100%);
  color: #fff;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.05rem; }
.feature p:last-child { margin-bottom: 0; }
.feature p { font-size: .945rem; }

/* ---------- Prose (contenuto lungo) ---------- */
.prose { max-width: 74ch; }
.prose > h2 { margin-top: 2.3em; }
.prose > h3 { margin-top: 1.9em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-s); margin: 2rem 0; }
.prose blockquote {
  margin: 2rem 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--azure); color: var(--ink-2);
  font-size: 1.06rem; font-style: italic;
}
.lead { font-size: 1.12rem; color: var(--ink-2); }

/* ---------- Tabella specifiche ---------- */
.specs { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.specs caption {
  text-align: left; padding-bottom: 13px;
  font-family: var(--ff-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
}
.specs th, .specs td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.specs th {
  width: 40%; font-family: var(--ff-head); font-weight: 600;
  font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.specs td { color: var(--ink-2); }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Elenco applicazioni ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0 0 1.5em; padding: 0; }
.tags li {
  margin: 0; padding: 7px 15px;
  background: var(--surface-3); border-radius: 999px;
  font-family: var(--ff-head); font-size: .82rem; font-weight: 500; color: var(--indigo);
}

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .8em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--azure-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Download / brochure ---------- */
.downloads { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.download {
  display: flex; align-items: center; gap: 16px;
  padding: 19px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.download:hover { border-color: rgba(59,57,143,.3); box-shadow: var(--shadow); transform: translateY(-2px); }
.download__icon {
  flex: 0 0 auto; display: grid; place-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--surface-3); color: var(--indigo);
}
.download__icon svg { width: 21px; height: 21px; }
.download__text { min-width: 0; }
.download__title { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .95rem; color: var(--ink); }
.download__meta { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--indigo-darker) 0%, var(--indigo) 52%, var(--indigo-light) 100%);
  color: #fff;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(620px 320px at 88% 12%, rgba(118,191,224,.34), transparent 62%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 34px; flex-wrap: wrap;
  padding: clamp(2.6rem, 1.8rem + 3vw, 4rem) 0;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 0; max-width: 54ch; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat__value { display: block; margin-bottom: 6px; font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--indigo); line-height: 1.1; }
.stat__label { display: block; font-size: .88rem; line-height: 1.45; color: var(--muted); }

/* ---------- Form ---------- */
.form-card { padding: clamp(26px, 2vw, 38px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 19px; }
.field label { display: block; margin-bottom: 7px; font-family: var(--ff-head); font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field .req { color: #c0392b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 15px;
  font-family: inherit; font-size: .97rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s);
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(59,57,143,.13);
}
.field textarea { min-height: 132px; resize: vertical; }
.field__hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.field__error { display: none; margin-top: 6px; font-size: .84rem; color: #c0392b; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: #c0392b; }
.field.is-invalid .field__error { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: .89rem; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.radio-group label:has(input:checked) { border-color: var(--indigo); background: var(--surface-3); color: var(--indigo); }
.radio-group input { width: auto; }
.consent { display: flex; align-items: flex-start; gap: 11px; font-size: .89rem; }
.consent input { width: auto; margin-top: .32em; flex: 0 0 auto; }
.consent label { font-family: var(--ff-body); font-weight: 400; font-size: .89rem; color: var(--body); margin: 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-s); font-size: .92rem; }
.form-status.is-visible { display: block; }
.form-status--ok   { background: #eaf7f0; color: #1c6b45; border: 1px solid #b9e3cd; }
.form-status--info { background: var(--surface-3); color: var(--indigo-dark); border: 1px solid var(--azure-light); }
.form-status--err  { background: #fdecea; color: #a5281c; border: 1px solid #f5c3bd; }

/* Modulo disattivato: resta visibile ma non si può compilare né inviare */
.form-card.is-disabled {
  opacity: .45; filter: grayscale(.4);
  pointer-events: none; user-select: none; box-shadow: none;
}
.form-lock { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-lock__note {
  margin-bottom: 14px; padding: 12px 16px;
  background: var(--surface-3); border: 1px solid var(--azure-light);
  border-radius: var(--radius-s); font-size: .9rem; color: var(--indigo-dark);
}
.form-lock__note a { font-weight: 600; }

/* ---------- Contatti ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 15px; margin-bottom: 22px; }
.contact-list__icon {
  flex: 0 0 auto; display: grid; place-content: center;
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--surface-3); color: var(--indigo);
}
.contact-list__icon svg { width: 19px; height: 19px; }
.contact-list__label { display: block; font-family: var(--ff-head); font-size: .73rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list__value { color: var(--ink-2); font-weight: 500; }
.contact-list__value a { color: var(--ink-2); }
.contact-list__value a:hover { color: var(--indigo); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #98a2b3; font-size: .93rem; }
.site-footer a { color: #c7cedb; }
.site-footer a:hover { color: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: clamp(3rem, 2rem + 3vw, 4.4rem) 0 2.6rem; }
.site-footer__logo { width: 178px; margin-bottom: 20px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center;
  padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .84rem; color: #79839a;
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal li { margin: 0; }
.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-content: center; width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #c7cedb;
  transition: background .16s, border-color .16s, color .16s;
}
.social a:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.social svg { width: 17px; height: 17px; }

/* ---------- Utility ---------- */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Nota redazionale — visibile solo in fase di lavorazione */
.editor-note {
  margin: 2rem 0; padding: 15px 19px;
  background: #fff8e6; border: 1px dashed #e3b341; border-left-width: 4px;
  border-radius: var(--radius-s); font-size: .89rem; color: #6b5310;
}
.editor-note strong { color: #6b5310; }
.editor-note p:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* Nota: .site-header usa backdrop-filter, che rende l'header il blocco
     contenitore dei discendenti position:fixed. Per questo l'altezza del
     pannello è dichiarata esplicitamente invece di affidarsi a `bottom: 0`,
     che qui si risolverebbe sul bordo dell'header e non sul viewport. */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: #fff; padding: 18px 22px 40px;
    overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 0;
    transform: translateX(100%); transition: transform .25s ease;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: .9rem; }
  .nav__caret { width: 11px; height: 11px; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin: 2px 0 8px 12px; padding: 0 0 0 8px;
    min-width: 0; display: none;
  }
  .nav__sub.is-open { display: block; }
  .nav__item--has-sub:hover > .nav__sub { display: none; }
  .nav__item--has-sub:hover > .nav__sub.is-open { display: block; }
  body.nav-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { max-height: 46vh; object-fit: cover; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .site-footer__top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { color: #000; }
}
