/* ============================================================================
   Nord Servizi — serviziassistenziali.com
   Foglio di stile unico del sito. Statico, self-contained, ultra-compatibile.
   Sistema visivo coerente con la brochure: serif editoriale per i titoli,
   fondo crema, bande verde scuro per "in cifre" e footer.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   FONT — Newsreader (display serif) + Public Sans (body).
   --------------------------------------------------------------------------
   FONT SELF-HOSTED (zero tracciamento — vedi brief §8 e §11):
   i .woff2 di Newsreader e Public Sans sono ospitati in  assets/fonts/  e
   dichiarati qui sotto con @font-face. Nessuna chiamata a Google Fonts: il
   sito non invia l'IP del visitatore a server terzi, quindi non serve alcun
   consenso/banner per i font. Sottoinsieme "latin" (include gli accenti IT).
   ---------------------------------------------------------------------------- */
@font-face { font-family:'Public Sans'; font-weight:400; font-style:normal;
  src:url('../fonts/public-sans-400.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Public Sans'; font-weight:600; font-style:normal;
  src:url('../fonts/public-sans-600.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Public Sans'; font-weight:700; font-style:normal;
  src:url('../fonts/public-sans-700.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Newsreader'; font-weight:400; font-style:normal;
  src:url('../fonts/newsreader-400.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Newsreader'; font-weight:500; font-style:normal;
  src:url('../fonts/newsreader-500.woff2') format('woff2'); font-display:swap; }
@font-face { font-family:'Newsreader'; font-weight:400; font-style:italic;
  src:url('../fonts/newsreader-400-italic.woff2') format('woff2'); font-display:swap; }

/* ---- Tokens -------------------------------------------------------------- */
:root {
  /* Brand */
  --c-verde-nord:        #1e4435;
  --c-verde-nord-scuro:  #14302a;
  --c-verde-nord-tenue:  #2f5a4a;

  /* Carta / superfici */
  --c-carta:             #f6f3ec;
  --c-carta-scura:       #ece7da;
  --c-carta-bordo:       #ddd6c4;
  --c-bianco:            #ffffff;

  /* Inchiostro */
  --c-inchiostro:        #1a1d22;
  --c-inchiostro-2:      #3a3f47;
  --c-inchiostro-3:      #6b7079;
  --c-inchiostro-4:      #9aa0a8;

  /* Pietra */
  --c-pietra:            #c9c4b6;
  --c-lichene:           #8aa692;
  --c-ottone:            #a78a4e;

  /* Alias */
  --bg:        var(--c-carta);
  --surface:   var(--c-bianco);
  --fg:        var(--c-inchiostro);
  --fg-2:      var(--c-inchiostro-2);
  --fg-3:      var(--c-inchiostro-3);
  --border:    var(--c-carta-bordo);
  --border-strong: var(--c-pietra);
  --brand:     var(--c-verde-nord);

  --font-display: 'Newsreader', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --ls-eyebrow: 0.16em;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);   /* @kind other */
  --dur: 220ms;   /* @kind other */

  --gutter: 24px;
  --max-w: 1180px;
  --header-h: 76px;
}

/* ---- Reset minimo, ben supportato ---------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  color: var(--fg);
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* Anchor offset under sticky header */
:target { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---- Utility ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--fg-3);
  margin: 0;
}
.eyebrow--brand { color: var(--brand); }
.eyebrow--light { color: rgba(255,255,255,0.72); }
.rule { height: 1px; width: 56px; background: var(--brand); border: 0; margin: 0; transform: scaleY(var(--hairline, 1)); transform-origin: top; }
.rule--full { width: 100%; background: var(--border-strong); }
.lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.32;
  color: var(--fg-2);
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ============================================================================
   HEADER + NAV
   ============================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,243,236,0.94);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
@supports (backdrop-filter: blur(6px)) {
  .site-header { backdrop-filter: blur(8px); }
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Wordmark */
.brand-lockup { display: flex; align-items: center; gap: 12px; color: var(--brand); }
.brand-lockup .mark { width: 38px; height: 38px; flex: 0 0 auto; color: var(--brand); }
.brand-lockup .mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1; letter-spacing: -0.01em; color: var(--fg); }
.brand-sub { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); margin-top: 5px; }

/* Desktop nav */
.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a, .nav .nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 14px;
  font-size: 15px; font-weight: 500; color: var(--fg-2);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  transition: color var(--dur) var(--ease);
}
.nav a:hover, .nav .nav-parent:hover { color: var(--brand); }
.nav .caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--dur) var(--ease); }
.has-dropdown.open > .nav-trigger .caret { transform: rotate(225deg) translateY(-2px); }
.nav-trigger { display: inline-flex; align-items: stretch; }
.nav-trigger > a { padding-right: 4px; }
.nav-trigger > .caret-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; width: 30px; background: none; border: 0; cursor: pointer; color: var(--fg-2);
}
.nav-trigger > .caret-btn:hover { color: var(--brand); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% - 4px); left: 0;
  min-width: 320px;
  background: var(--c-bianco);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -18px rgba(26,29,34,0.28);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  height: auto; padding: 10px 14px; color: var(--fg);
  border-bottom: 1px solid var(--c-carta-scura);
}
.dropdown li:last-child a { border-bottom: 0; }
.dropdown li a:hover { background: var(--c-carta); color: var(--brand); }
.dropdown .d-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; }
.dropdown .d-meta { font-size: 12px; color: var(--fg-3); white-space: nowrap; }

/* Mobile toggle */
.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================================
   HERO
   ============================================================================ */
.hero { position: relative; background: #0d1f1a; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,14,0.32) 0%, rgba(8,18,14,0.10) 38%, rgba(8,18,14,0.72) 100%); }
.hero-inner { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding-top: 80px; padding-bottom: 64px; }
.hero-content { max-width: 880px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 500; line-height: 1.0; letter-spacing: -0.02em; color: #fff;
  margin: 18px 0 0;
}
.hero h1 i { font-weight: 400; }
.hero-sub { display: flex; align-items: center; gap: 18px; margin-top: 26px; color: rgba(255,255,255,0.88); }
.hero-sub .rule { background: rgba(255,255,255,0.7); width: 40px; }
.hero-sub p { font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 2vw, 21px); }
.hero-scroll { position: absolute; right: calc(var(--gutter) - 0.18em); bottom: 26px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.7); }

/* ============================================================================
   SECTIONS
   ============================================================================ */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--c-carta-scura); }
.section-head { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head .rule { margin-bottom: 26px; }
.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.02em;
}
.section-title i { font-weight: 400; }

/* Chi siamo — two column editorial */
.editorial { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.editorial .ed-aside .eyebrow { margin-bottom: 16px; }
.editorial .ed-aside .rule { margin-bottom: 24px; }
.editorial .ed-aside h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.015em; color: var(--fg);
}
.editorial .ed-body { display: flex; flex-direction: column; gap: 20px; max-width: 58ch; }
.editorial .ed-body p { font-size: 18px; line-height: 1.62; color: var(--fg-2); }
.editorial .ed-body p b { color: var(--fg); font-weight: 600; }
.sign { margin-top: 12px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }

/* ---- Know-how ------------------------------------------------------------ */
.know-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.capabilities { display: flex; flex-direction: column; }
.cap {
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 18px 0;
}
.cap:first-child { padding-top: 0; }
.cap .cap-n { font-family: var(--font-display); font-size: 18px; color: var(--brand); font-weight: 500; line-height: 1.3; }
.cap h3 { font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.cap p { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); max-width: 46ch; }

/* Schema-tipo (stylized plan, CSS only) */
.schema-card { background: var(--c-bianco); border: 1px solid var(--border); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.schema-card .eyebrow { margin-bottom: 18px; }
.schema {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}
.schema .nucleo {
  border: 1px solid var(--c-verde-nord-tenue);
  background: rgba(47,90,74,0.05);
  padding: 16px 14px; min-height: 78px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.schema .nucleo .n-tag { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.schema .nucleo .n-sub { font-size: 11.5px; color: var(--fg-3); }
.schema .servizi {
  grid-column: 1 / -1;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  padding: 16px 14px;
}
.schema .servizi .n-tag { color: rgba(255,255,255,0.7); }
.schema .servizi .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.schema .servizi .chips span { font-size: 11px; border: 1px solid rgba(255,255,255,0.35); padding: 3px 9px; border-radius: 999px; color: #fff; }
.schema-caption { margin-top: 16px; font-size: 12.5px; font-style: italic; color: var(--fg-3); font-family: var(--font-display); }

/* ============================================================================
   REALIZZAZIONI GRID
   ============================================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.section-lead { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--fg-2); max-width: 62ch; }
.realizz-more { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); max-width: 760px; font-size: 16px; line-height: 1.64; color: var(--fg-2); }
.realizz-more b { color: var(--fg); font-weight: 600; }
.card {
  display: flex; flex-direction: column;
  background: var(--c-bianco); border: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative; color: inherit; text-decoration: none;
}
.card:hover { box-shadow: 0 18px 40px -22px rgba(26,29,34,0.30); border-color: var(--border-strong); }
.card .ratio { position: relative; width: 100%; padding-bottom: 56.25%; overflow: hidden; background: var(--c-carta-scura); }
.card .ratio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.card-place { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; font-size: 13px; color: var(--fg-3); align-items: baseline; }
.card-meta b { color: var(--brand); font-weight: 600; }
.card-link { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.card-link .arr { transition: transform var(--dur) var(--ease); }
.card:hover .card-link .arr { transform: translateX(4px); }

/* ============================================================================
   BANDA "IN CIFRE" (verde scuro)
   ============================================================================ */
.figures { background: var(--c-verde-nord); color: #fff; position: relative; overflow: hidden; }
.figures .fil { position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; color: #fff; opacity: 0.05; pointer-events: none; }
.figures-inner { padding: clamp(56px, 7vw, 96px) var(--gutter); position: relative; }
.figures .eyebrow { margin-bottom: 18px; }
.figures h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); font-weight: 500; max-width: 22ch; letter-spacing: -0.02em; line-height: 1.05; }
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.fig .fig-n { font-family: var(--font-display); font-weight: 500; font-size: clamp(38px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.fig .fig-l { margin-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.66); }

/* ============================================================================
   CTA — Torniamo in pista
   ============================================================================ */
.cta { padding: clamp(64px, 8vw, 112px) 0; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; max-width: 16ch; }
.cta h2 i { font-weight: 400; }
.cta p:not(.eyebrow) { margin-top: 18px; font-size: 18px; color: var(--fg-2); max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 30px;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 16px;
  border: 1px solid var(--brand); white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.btn:hover { background: var(--c-verde-nord-scuro); color: #fff; }
.btn--ghost { background: none; color: var(--brand); }
.btn--ghost:hover { background: var(--c-carta-scura); color: var(--brand); }

/* ---- Back to top ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand);
  cursor: pointer;
  box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              visibility var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--c-verde-nord-scuro); }
.back-to-top svg { width: 18px; height: 18px; display: block; }
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease); transform: none; }
  .back-to-top.is-visible { transform: none; }
}
@media print { .back-to-top { display: none; } }

/* ============================================================================
   STRUCTURE PAGES
   ============================================================================ */
.crumb { padding: 24px var(--gutter) 0; }
.crumb a { font-size: 14px; font-weight: 500; color: var(--fg-3); display: inline-flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--brand); }

.struct-head { padding: 28px var(--gutter) 36px; }
.struct-head .eyebrow { margin-bottom: 14px; }
.struct-title { font-size: clamp(36px, 5.2vw, 62px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.0; }
.struct-title i { font-weight: 400; }
.struct-sub { margin-top: 16px; font-size: 16px; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.struct-sub .dot { color: var(--border-strong); }

.struct-photo { width: 100%; position: relative; padding-bottom: 56.25%; overflow: hidden; background: var(--c-carta-scura); border: 1px solid var(--border); }
.struct-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* La foto resta allineata al gutter su desktop; va a tutta larghezza in mobile. */
.photo-wrap { padding: 0 var(--gutter); }

.struct-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 80px); padding: clamp(40px, 6vw, 72px) var(--gutter); align-items: start; }
.struct-desc p { font-size: 19px; line-height: 1.66; color: var(--fg-2); }
.struct-desc p + p { margin-top: 18px; }
.struct-desc .lead-first::first-letter { /* subtle */ }

.facts { position: sticky; top: calc(var(--header-h) + 24px); }
.fact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; }
.fact .f-l { font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-3); font-weight: 600; }
.fact .f-v { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; text-align: right; }

/* Planimetria — uno o più piani impilati, proporzione naturale (non forzata 16:9) */
.plan-section { padding: 0 var(--gutter) clamp(48px, 7vw, 88px); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.plan-head .eyebrow { margin: 0; }
.plan-head .plan-cap { font-size: 13px; font-style: italic; color: var(--fg-3); font-family: var(--font-display); }

.plan-stack { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); }
.plan-level { margin: 0; }
.plan-level-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.plan-level-head .lv-n { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.plan-level-head .lv-t { font-family: var(--font-display); font-size: 18px; color: var(--fg); }
.plan-level-head .lv-note { font-size: 13px; font-style: italic; color: var(--fg-3); font-family: var(--font-display); margin-left: auto; text-align: right; }
.plan-frame { background: transparent; border: 0; padding: clamp(12px, 3vw, 32px) 0; display: flex; justify-content: center; }
.plan-frame img { width: 100%; max-width: 860px; height: auto; }

/* Prev / next */
.struct-nav { }
.struct-nav-inner { display: grid; grid-template-columns: 1fr 1fr; }
.struct-nav a { display: flex; flex-direction: column; gap: 6px; padding: 28px 0; }
.struct-nav a.prev { padding-right: 24px; }
.struct-nav a.next { padding-left: 24px; text-align: right; align-items: flex-end; border-left: 1px solid var(--border); }
.struct-nav .nl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--fg-3); font-weight: 600; }
.struct-nav .nt { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--fg); transition: color var(--dur) var(--ease); }
.struct-nav a:hover .nt { color: var(--brand); }

/* ============================================================================
   FOOTER (centralizzato)
   ============================================================================ */
.site-footer { background: var(--c-verde-nord); color: rgba(255,255,255,0.82); }
.footer-inner { padding: clamp(56px, 7vw, 88px) var(--gutter) 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .mark { color: #fff; }
.footer-brand .footer-legal { margin-top: 20px; font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.72); }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.55); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }
.footer-col a, .footer-col p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.7; }
.footer-col a { display: inline-block; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col .mail { font-family: var(--font-display); font-size: 18px; }
.footer-bottom { margin-top: 40px; margin-right: min(0px, calc((var(--max-w) - var(--page-w, 100vw)) / 2)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.6); }
.footer-bottom a { color: rgba(255,255,255,0.8); }
.footer-bottom a:hover { color: #fff; }

/* ============================================================================
   PRIVACY PAGE
   ============================================================================ */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 112px); }
.doc-inner { max-width: 740px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 500; letter-spacing: -0.02em; }
.doc .rule { margin: 24px 0 40px; }
.doc h2 { font-size: 22px; font-weight: 600; margin: 36px 0 10px; }
.doc p { font-size: 17px; line-height: 1.7; color: var(--fg-2); margin-bottom: 14px; }
.doc p b { color: var(--fg); }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .updated { margin-top: 40px; font-size: 14px; color: var(--fg-3); font-style: italic; font-family: var(--font-display); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .know-grid { grid-template-columns: 1fr; gap: 48px; }
  .schema-card { position: static; }
  .struct-body { grid-template-columns: 1fr; gap: 40px; }
  .facts { position: static; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }

  /* Foto struttura a tutta larghezza (la scritta mantiene il gutter) */
  .photo-wrap { padding: 0; max-width: none; }
  .struct-photo { border-left: 0; border-right: 0; }

  /* Mobile nav */
  .menu-toggle { display: flex; }
  /* backdrop-filter crea un containing block per i figli position:fixed,
     ancorando il pannello del menu all'header (66px) invece che al viewport.
     Lo disattiviamo qui così il pannello copre l'intera altezza schermo. */
  .site-header { backdrop-filter: none !important; }
  .nav-collapse {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--c-carta); border-top: 1px solid var(--border);
    transform: translateX(100%); transition: transform var(--dur) var(--ease);
    overflow-y: auto; padding: 8px 0 40px;
  }
  .nav-collapse.open { transform: translateX(0); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter); }
  .nav > li { border-bottom: 1px solid var(--border); }
  .nav a, .nav .nav-parent { height: 56px; padding: 0; font-size: 18px; width: 100%; }
  .nav-trigger { justify-content: space-between; }
  .nav-trigger > a { flex: 1; }
  .nav-trigger > .caret-btn { width: 56px; height: 56px; }
  /* Accordion dropdown on mobile */
  .dropdown {
    position: static; min-width: 0; opacity: 1; visibility: hidden; transform: none;
    box-shadow: none; border: 0; border-top: 1px solid var(--border); padding: 0;
    max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease), visibility var(--dur);
    background: var(--c-carta-scura);
  }
  .has-dropdown:hover .dropdown { opacity: 1; visibility: hidden; max-height: 0; }
  .has-dropdown.open .dropdown { visibility: visible; max-height: 600px; }
  .dropdown li a { padding: 14px var(--gutter); height: auto; }
  .dropdown .d-name { font-size: 16px; }

  .editorial { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { grid-template-columns: 1fr; gap: 20px; }
  .figures-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .struct-nav-inner { grid-template-columns: 1fr; }
  .struct-nav a.next { border-left: 0; text-align: left; align-items: flex-start; padding-left: 0; }
  .struct-nav a.prev { padding-right: 0; }
  .hero-inner { min-height: 70vh; }
}

@media (max-width: 480px) {
  .figures-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
  .schema { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

/* Print */
@media print {
  .site-header, .menu-toggle, .hero-scroll, .struct-nav, .cta { display: none; }
  body { background: #fff; }
  .figures, .site-footer { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================================
   FONT SELF-HOSTED — attivo. Le dichiarazioni @font-face sono in cima a questo
   file e i binari .woff2 si trovano in  assets/fonts/ . Nessuna dipendenza da
   Google Fonts.
   ============================================================================ */
