/* ╭──────────────────────────────────────────────────────────────╮
   │ Ecotoni srl — design system v5.1                             │
   │ Token in :root; componenti in ordine di pagina.              │
   │ Specifiche complete in docs/HANDOFF.md                       │
   ╰──────────────────────────────────────────────────────────────╯ */

:root {
  /* Colore — neutri caldi con tinta verde, un solo accento (brand) */
  --ink: #121714;
  --ink-2: #1a211d;
  --ink-3: #242d28;
  --paper: #fbfaf7;
  --white: #ffffff;
  --stone: #f3f0e9;
  --stone-2: #eae5da;
  --line: #e1dcd0;
  --line-strong: #cfc8b9;
  --text: #121714;
  --muted: #5b615c;
  --muted-2: #6b716a;
  --on-dark: #eef1ee;
  --on-dark-muted: #a0aaa3;
  --line-dark: rgba(238, 241, 238, 0.1);
  --brand: #1f4d3a;
  --brand-hover: #286a4f;
  --brand-tint: #e3ece6;
  --brand-ink: #0f2a1f;
  /* Rame: solo come tinta "metallo" su fondo scuro, mai per azioni */
  --copper: #b86b3a;
  --copper-light: #e3a677;
  --danger: #a3341f;
  --focus: #2f8a62;

  /* Tipografia */
  --f-display: "Archivo", "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --fs-display: clamp(2.5rem, 1.45rem + 3.5vw, 4.75rem);
  --fs-h1: clamp(2.4rem, 1.6rem + 3.4vw, 4.5rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.4vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.78rem;
  --fs-label: 0.72rem;
  --stretch-display: 112%;

  /* Spazi (scala 4px) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(4.5rem, 2.8rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);

  /* Forme */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Ombre tinte sul verde-grafite, luce dall'alto */
  --sh-1: 0 1px 2px rgba(18, 23, 20, 0.06), 0 1px 1px rgba(18, 23, 20, 0.04);
  --sh-2: 0 14px 34px -14px rgba(18, 23, 20, 0.22);
  --sh-3: 0 34px 80px -34px rgba(18, 23, 20, 0.42);

  /* Movimento */
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --dur-1: 0.18s;
  --dur-2: 0.32s;
  --dur-3: 0.7s;

  /* Livelli */
  --z-float: 90;
  --z-cookie: 95;
  --z-nav: 100;
  --z-backdrop: 110;
  --z-drawer: 120;

  --icon-stroke: 1.75;

  /* Texture */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-display);
  font-stretch: var(--stretch-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.18; font-weight: 650; letter-spacing: -0.015em; }
h4 { font-size: 1.05rem; line-height: 1.3; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
p, li, dd { text-wrap: pretty; }
::selection { background: var(--brand); color: var(--white); }

[hidden] { display: none !important; }
.sprite { display: none; }
.ic {
  width: 1.25em; height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.ic-fill { width: 1.25em; height: 1.25em; flex-shrink: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
.skip-link {
  position: absolute;
  left: var(--sp-4); top: -100px;
  z-index: calc(var(--z-drawer) + 1);
  background: var(--ink); color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-4); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Layout ───────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0 calc(var(--section-y) * 1.08); position: relative; }
.section--stone { background: var(--stone); }
.section--tight { padding-top: calc(var(--section-y) * 0.55); }

/* Sezioni scure: grafite con grana e un bagliore rame */
.section--dark {
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.section--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 92% 0%, rgba(184, 107, 58, 0.18), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(31, 77, 58, 0.45), transparent 70%);
}
.section--dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  pointer-events: none;
}
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark h2 em { color: var(--copper-light); }
.section--dark .lead { color: var(--on-dark-muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--sp-6) var(--sp-8);
  align-items: end;
  margin-bottom: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
}
.section-head h2 { margin-top: var(--sp-4); }
.section-head .lead { padding-bottom: var(--sp-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }

/* ── Tipografia di supporto ───────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--f-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: 0.55; }
.section--dark .eyebrow, .eyebrow--light { color: var(--copper-light); }
.eyebrow--chip {
  padding: 7px 14px 7px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink);
  letter-spacing: 0.12em;
  box-shadow: var(--sh-1);
}
.eyebrow--chip::before { width: 8px; height: 8px; border-radius: 50%; background: #3fa775; opacity: 1; box-shadow: 0 0 0 4px rgba(63, 167, 117, 0.16); }
.lead { font-size: var(--fs-lead); line-height: 1.62; color: var(--muted); max-width: 58ch; }
.label {
  font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2);
}

/* ── Pulsanti ─────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--f-sans); font-size: 0.95rem; font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease),
              border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease),
              box-shadow var(--dur-2) var(--ease);
}
.btn .ic { width: 1.15em; height: 1.15em; transition: transform var(--dur-2) var(--ease); }
.btn:hover { --btn-bg: var(--brand); box-shadow: 0 14px 30px -14px rgba(31, 77, 58, 0.7); }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--white); --btn-bd: var(--ink); box-shadow: none; }
.btn--brand { --btn-bg: var(--brand); }
.btn--brand:hover { --btn-bg: var(--brand-hover); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--copper-light); --btn-fg: var(--ink); box-shadow: none; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: 0.86rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; font-size: 0.92rem;
  color: var(--ink); text-decoration: none;
}
.link-arrow .ic { transition: transform var(--dur-2) var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

/* Tessera icona riutilizzata in elenchi, contatti, documenti */
.icon-tile {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand);
}
.icon-tile .ic { width: 24px; height: 24px; }
.section--dark .icon-tile { background: rgba(227, 166, 119, 0.1); color: var(--copper-light); box-shadow: inset 0 0 0 1px rgba(227, 166, 119, 0.18); }

/* ── Topbar e navigazione ─────────────────────────────────── */
.topbar {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-5);
  min-height: 38px;
}
.topbar__group { display: flex; align-items: center; gap: var(--sp-5); }
.topbar__item { display: inline-flex; align-items: center; gap: 0.5em; }
.topbar__item .ic { width: 15px; height: 15px; color: var(--copper-light); }
.topbar a { color: var(--on-dark); text-decoration: none; }
.topbar a:hover { color: var(--copper-light); }

.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding-top: 18px; padding-bottom: 18px;
}
.brand { display: inline-flex; flex-direction: column; flex-shrink: 0; text-decoration: none; color: var(--ink); line-height: 1; }
.brand__name { font-family: var(--f-sans); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.035em; }
.brand__sub {
  margin-top: 4px;
  font-family: var(--f-mono); font-size: 0.5625rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted-2);
}
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 0;
  border: 0; background: none;
  font: 400 0.875rem/1.55 var(--f-sans);
  color: var(--ink); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
a.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
a.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--brand); font-weight: 500; }
a.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--brand); }
.nav__link .caret { font-size: 8px; opacity: 0.5; transition: transform 0.25s; }
.nav__dd { position: relative; }
.nav__dd:hover .caret, .nav__dd.is-open .caret { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  min-width: 280px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 24px 60px -20px rgba(18, 23, 20, 0.18);
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -4px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
/* Ponte invisibile: il passaggio del mouse dal pulsante al pannello non lo chiude */
.dd-panel::before { content: ""; position: absolute; left: -10px; right: -10px; top: -18px; height: 18px; }
.nav__dd:hover .dd-panel, .nav__dd.is-open .dd-panel, .nav__dd:focus-within .dd-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dd-item {
  display: block;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 0.875rem;
  color: var(--ink); text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.dd-item:hover, .dd-item[aria-current="page"] { background: var(--stone); color: var(--brand); }
.dd-item strong { display: block; font-weight: 500; }
.dd-item span { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--muted); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink); color: var(--white);
  font: 500 0.875rem/1.55 var(--f-sans);
  text-decoration: none;
  transition: background 0.35s var(--ease);
}
.nav__cta:hover { background: var(--brand); }
.nav__cta .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #5dd28b;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93, 210, 139, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(93, 210, 139, 0); }
}
.nav-burger {
  display: none;
  width: 44px; height: 44px; margin: -4px -11px -4px 0;
  align-items: center; justify-content: center;
  padding: 0; border: 0; background: transparent;
  cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  display: block; width: 22px; height: 1.6px; background: var(--ink);
}
.nav-burger span { position: relative; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; }
.nav-burger span::before { top: -7px; }
.nav-burger span::after { top: 7px; }

/* Drawer mobile */
.backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: rgba(18, 23, 20, 0.45);
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease);
}
.backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: var(--z-drawer);
  width: min(400px, 88vw);
  display: flex; flex-direction: column;
  padding: 22px 26px 30px;
  background: var(--paper);
  box-shadow: -30px 0 60px -30px rgba(18, 23, 20, 0.35);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0.42s;
  overflow-y: auto;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-5); }
.drawer__close {
  width: 44px; height: 44px; margin-right: -11px; display: grid; place-items: center;
  padding: 0; border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}
.drawer__close:hover { color: var(--brand); transform: rotate(90deg); }
.drawer__close .ic { width: 22px; height: 22px; }
.drawer__link, .drawer__group {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 13px 0;
  border: 0; border-bottom: 1px solid var(--line);
  background: none;
  font: 500 1.06rem/1.3 var(--f-sans); letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; text-align: left;
  cursor: pointer;
}
.drawer__link[aria-current="page"] { color: var(--brand); }
.drawer__group .ic { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease); }
.drawer__group[aria-expanded="true"] .ic { transform: rotate(180deg); }
.drawer__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-2) var(--ease); }
.drawer__group[aria-expanded="true"] + .drawer__sub { grid-template-rows: 1fr; }
.drawer__sub > div { overflow: hidden; }
.drawer__sub a {
  display: block;
  padding: 10px 0 10px 16px;
  font-size: 0.94rem;
  color: var(--muted); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.drawer__sub a[aria-current="page"] { color: var(--brand); }
.drawer__foot { margin-top: auto; padding-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.drawer__foot .btn { width: 100%; }
body.menu-open { overflow: hidden; }

/* ── Home v5.1 ────────────────────────────────────────────── */

/* Hero a tutta larghezza: la foto del piazzale e' il messaggio */
.hero5 {
  position: relative;
  min-height: clamp(560px, calc(100svh - 114px), 860px);
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero5__media { position: absolute; inset: 0; z-index: -2; }
.hero5__media img { width: 100%; height: 100%; object-fit: cover; object-position: 65% 50%; display: block; }
.hero5::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 18, 16, 0.92) 0%, rgba(14, 18, 16, 0.78) 34%, rgba(14, 18, 16, 0.28) 66%, rgba(14, 18, 16, 0.08) 100%),
    linear-gradient(0deg, rgba(14, 18, 16, 0.85) 0%, rgba(14, 18, 16, 0) 42%);
}
.hero5__inner { padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.hero5__copy { max-width: 760px; }
.hero5__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero5__eyebrow .ic { width: 15px; height: 15px; color: var(--copper-light); }
.hero5 h1 {
  margin-top: var(--sp-5);
  font-size: clamp(2.4rem, 1.5rem + 3.1vw, 4.4rem);
  line-height: 0.98; letter-spacing: -0.04em;
  color: var(--white);
  max-width: 13.5ch;
}
.hero5 h1 em { color: var(--copper-light); }
.hero5__lead { margin-top: var(--sp-5); max-width: 54ch; font-size: var(--fs-lead); line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.hero5__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero5__facts {
  list-style: none; margin: clamp(2rem, 1.2rem + 2.4vw, 3.25rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--r-lg);
  background: rgba(14, 18, 16, 0.5);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.hero5__fact { display: flex; align-items: center; gap: 14px; padding: 20px 24px; }
.hero5__fact + .hero5__fact { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1); }
.hero5__fact .ic { width: 26px; height: 26px; color: var(--copper-light); }
.hero5__fact strong { display: block; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.1; }
.hero5__fact small { display: block; margin-top: 3px; font-size: var(--fs-xs); color: rgba(255, 255, 255, 0.7); line-height: 1.35; }

/* Servizi come indice: la foto cambia passando sulle righe */
.svc5 { padding-top: calc(var(--section-y) * 0.85); }
.svc5__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.svc5__media {
  position: sticky; top: 110px;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-3);
  box-shadow: var(--sh-3);
}
.svc5__img { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease); }
.svc5__img.is-active { opacity: 1; transform: none; }
.svc5__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc5__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.svc5__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center;
  padding: 28px 8px 28px 0;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none; color: var(--ink);
  transition: padding var(--dur-2) var(--ease);
}
.svc5__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand); transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.svc5__icon .ic { width: 26px; height: 26px; }
.svc5__title { display: block; font-family: var(--f-display); font-stretch: 110%; font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.1; transition: color var(--dur-2) var(--ease); }
.svc5__desc { display: block; margin-top: 8px; color: var(--muted); font-size: 0.97rem; line-height: 1.55; max-width: 52ch; }
.svc5__go {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--ink);
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.svc5__go .ic { width: 20px; height: 20px; }
.svc5__item:hover, .svc5__item.is-active { padding-left: 10px; }
.svc5__item:hover .svc5__title, .svc5__item.is-active .svc5__title { color: var(--brand); }
.svc5__item:hover .svc5__icon, .svc5__item.is-active .svc5__icon { background: var(--brand); color: var(--white); }
.svc5__item:hover .svc5__go, .svc5__item.is-active .svc5__go { background: var(--ink); border-color: var(--ink); color: var(--white); transform: rotate(-45deg); }

/* Materiali in home: schede come nello staging */
.mat-tabs {
  display: inline-flex; gap: 4px;
  margin-bottom: var(--sp-6);
  padding: 5px;
  background: var(--stone-2);
  border-radius: var(--r-pill);
}
.mat-tab {
  padding: 10px 22px;
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  font: 500 0.875rem/1.4 var(--f-sans);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.mat-tab:hover { color: var(--ink); }
.mat-tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.mat-panel.is-entering { animation: panel-in 0.5s var(--ease); }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.mat5__foot { margin-top: var(--sp-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-4); }
.mat5__wa .ic-fill { width: 20px; height: 20px; color: #1fa855; }
.mat5__wa:hover { color: var(--brand); }

/* Chi siamo e pilastri, con foto */
.about5__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); align-items: start; }
.about5__media { position: sticky; top: 110px; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-3); box-shadow: var(--sh-3); }
.about5__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about5__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 18, 16, 0.82)); }
.about5__quote {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 28px 30px 30px;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 500;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.3; letter-spacing: -0.015em;
  color: var(--white);
}
.about5__quote::before { content: "\201C"; display: block; font-size: 3.5rem; line-height: 0.6; color: var(--copper-light); margin-bottom: 6px; }
.about5__title { margin-top: var(--sp-4); }
.about5 .lead { margin-top: var(--sp-4); }
.about5__sub {
  margin-top: var(--sp-7);
  font-family: var(--f-mono); font-stretch: normal; font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2);
}
.about5__list { margin-top: var(--sp-4); }
.about5__links { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); }

/* Sedi in banda scura, senza foto */
.sedi5__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.sede5 { position: relative; padding: 32px 32px 6px 0; }
.sede5 + .sede5 { padding-left: 32px; box-shadow: inset 1px 0 0 var(--line-dark); }
.sede5__area { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-light); }
.sede5__area .ic { width: 16px; height: 16px; }
.sede5__role { margin-top: 4px; font-size: var(--fs-sm); color: var(--on-dark-muted); }
.sede5 h3 { margin-top: var(--sp-4); font-size: 1.35rem; }
.sede5__cap { color: var(--on-dark-muted); margin-top: 2px; }
.sede5__hours { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: var(--sp-5); font-size: var(--fs-sm); line-height: 1.55; color: var(--on-dark); }
.sede5__hours .ic { width: 18px; height: 18px; color: var(--copper-light); margin-top: 2px; }
.sede5__actions { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.sede5__actions .link-arrow { color: var(--white); }
.sede5__actions .link-arrow:hover { color: var(--copper-light); }
.sedi5__more { margin-top: var(--sp-7); }

/* Contatti in home: telefono in grande */
.contact5 { background: var(--stone); }
.contact5__phone {
  display: block; margin-top: var(--sp-6);
  font-family: var(--f-display); font-stretch: 112%; font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.05; letter-spacing: -0.035em;
  color: var(--ink); text-decoration: none;
  transition: color var(--dur-2) var(--ease);
}
.contact5__phone .label { display: block; margin-bottom: 8px; letter-spacing: 0.12em; }
.contact5__phone:hover { color: var(--brand); }
.contact5 .contact-list { margin-top: var(--sp-5); }

/* ── Materiali ────────────────────────────────────────────── */
.mat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mat {
  --c1: #c9ced2; --c2: #6b7379;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
  padding: 30px 24px 26px;
  background: var(--white);
  transition: background var(--dur-2) var(--ease);
}
/* Filo colore del metallo: scuro ai bordi e chiaro al centro, come una barra lucidata */
.mat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c2), var(--c1) 55%, var(--c2));
  transition: height var(--dur-2) var(--ease);
}
.mat:hover { background: var(--paper); }
.mat:hover::before { height: 7px; }
.mat__name { font-family: var(--f-display); font-stretch: 108%; font-weight: 650; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.15; }
.mat__desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.mat-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: var(--sp-4);
  max-width: 80ch;
  font-size: var(--fs-sm); line-height: 1.55; color: var(--muted);
}
.mat-note .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.mat-section + .mat-section { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.mat-section__head { margin-bottom: var(--sp-5); }
.mat-section__head h2 { margin-top: var(--sp-3); font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); }

/* ── Chi siamo / punti di forza (sezione scura) ───────────── */
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(3rem, 2rem + 4vw, 6rem); }
.quote {
  position: relative;
  margin: 0;
  padding-top: 44px;
  font-family: var(--f-display); font-stretch: 105%; font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.22; letter-spacing: -0.02em; color: var(--white);
  max-width: 24ch;
}
.quote::before {
  content: "\201C"; position: absolute; top: -18px; left: -4px;
  font-size: 5.5rem; line-height: 1; color: var(--copper-light); opacity: 0.6;
}
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feat {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5);
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.feat:last-child { border-bottom: 1px solid var(--line); }
.section--dark .feat { border-color: var(--line-dark); }
.feat h3 { font-size: 1.15rem; }
.feat p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.section--dark .feat p { color: var(--on-dark-muted); }

/* Griglia di caratteristiche (pagine servizio, chi siamo) */
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.feat-card {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: 26px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.feat-card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.feat-card h3 { font-size: 1.12rem; }
.feat-card p { margin-top: -6px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.section--dark .feat-card { background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line-dark); }
.section--dark .feat-card p { color: var(--on-dark-muted); }
.feat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-intro { position: sticky; top: 110px; }
.service-intro h2 { margin-top: var(--sp-4); }
.service-intro .lead { margin-top: var(--sp-4); }

/* ── Sedi ─────────────────────────────────────────────────── */
.sites-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.site-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.site-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.site-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.site-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.site-card:hover .site-card__media img { transform: scale(1.045); }
.site-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 23, 20, 0.05) 40%, rgba(18, 23, 20, 0.55)); }
.site-card__tag {
  position: absolute; z-index: 2; left: 16px; top: 16px;
  padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(18, 23, 20, 0.55); color: var(--white);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase;
}
.site-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.site-card__role { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.site-card__body h3 { margin-top: 8px; font-size: 1.3rem; }
.site-card__desc { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.meta-list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.meta-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: var(--fs-sm); line-height: 1.5; }
.meta-list .ic { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.site-card__actions { margin-top: auto; padding-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Contatti ─────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); align-items: start; }
.contact-aside { position: sticky; top: 110px; }
.contact-aside h2 { margin-top: var(--sp-4); }
.contact-aside .lead { margin-top: var(--sp-4); }
.contact-list { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: 10px; }
.contact-row {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 14px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
a.contact-row:hover { transform: translateX(4px); box-shadow: var(--sh-2); }
.contact-row .label { display: block; }
.contact-row strong { display: block; margin-top: 3px; font-size: 1.05rem; font-weight: 600; word-break: break-word; }
.contact-row small { display: block; margin-top: 2px; color: var(--muted); font-size: var(--fs-xs); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.form-card h3 { font-size: 1.35rem; }
.form-card > p { margin-top: 6px; color: var(--muted); font-size: var(--fs-sm); }
.form-grid { margin-top: var(--sp-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: 400 1rem/1.4 var(--f-sans);
  color: var(--ink);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), background var(--dur-1);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted-2); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: var(--white);
  box-shadow: 0 0 0 4px rgba(31, 77, 58, 0.12);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 52, 31, 0.1); }
.field__error { display: none; font-size: var(--fs-xs); color: var(--danger); }
.field input:user-invalid ~ .field__error { display: block; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%235b615c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form-foot { margin-top: var(--sp-5); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.check { display: flex; gap: 10px; align-items: flex-start; max-width: 360px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.form-note {
  display: none;
  margin-top: var(--sp-5);
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand-ink);
  font-size: var(--fs-sm); line-height: 1.55;
}
.form-note.is-visible { display: flex; gap: 12px; }
.form-note .ic { width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
.form-note a { color: inherit; font-weight: 600; }

/* ── Pagine interne: intestazione, foto, CTA ──────────────── */
.pagehead {
  position: relative;
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem);
  background: var(--stone);
  overflow: hidden;
  isolation: isolate;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 95% at 100% 0%, rgba(184, 107, 58, 0.17), transparent 70%),
    radial-gradient(42% 85% at 0% 100%, rgba(31, 77, 58, 0.11), transparent 70%);
}
.pagehead::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain-dark);
  opacity: 0.24;
  pointer-events: none;
}
.pagehead--banner { padding-bottom: clamp(6rem, 4rem + 8vw, 11rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0 0 var(--sp-6); padding: 0; font-size: var(--fs-sm); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--sp-6) var(--sp-8); align-items: end; }
.pagehead h1 { max-width: 15ch; }
.pagehead .lead { padding-bottom: 6px; }
.pagehead__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.banner-wrap { position: relative; z-index: 2; }
.banner {
  position: relative;
  margin-left: 0; margin-right: 0;
  margin-top: calc(clamp(6rem, 4rem + 8vw, 11rem) * -1 + var(--sp-6));
  aspect-ratio: 21 / 9;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--ink-3);
}
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(18, 23, 20, 0.55)); }
.banner__caption {
  position: absolute; z-index: 2; left: 24px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.banner__caption .ic { width: 15px; height: 15px; color: var(--copper-light); }

.cta-wrap { padding: clamp(3rem, 2rem + 3vw, 5rem) 0 clamp(3.5rem, 2.5rem + 3.5vw, 6rem); }
/* Dopo una sezione chiara il pannello sale: basta il respiro della sezione precedente */
.section:not(.section--stone):not(.section--dark) + .cta-wrap { padding-top: 0; }
.cta-panel {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--sp-6) var(--sp-8); align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3.5vw, 4.5rem);
  border-radius: var(--r-lg);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--sh-3);
}
.cta-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.07; pointer-events: none; }
.cta-panel--dark {
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(184, 107, 58, 0.22), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(31, 77, 58, 0.55), transparent 70%),
    var(--ink);
}
.cta-panel--brand {
  background:
    radial-gradient(60% 100% at 100% 0%, rgba(255, 255, 255, 0.1), transparent 70%),
    radial-gradient(50% 80% at 0% 100%, rgba(15, 42, 31, 0.6), transparent 70%),
    var(--brand);
}
.cta-panel h2 { margin-top: var(--sp-4); color: var(--white); font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.cta-panel__text > h2:first-child { margin-top: 0; }
.cta-panel--dark h2 em { color: var(--copper-light); }
.cta-panel--brand h2 em { color: #bfe3cf; }
.cta-panel p:not(.eyebrow) { margin-top: var(--sp-4); max-width: 56ch; color: rgba(238, 241, 238, 0.75); font-size: var(--fs-lead); line-height: 1.6; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: flex-end; }

/* Processo in 4 fasi */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.step {
  position: relative;
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.step h3 { font-size: 1.15rem; }
.step p { margin-top: -6px; color: var(--on-dark-muted); font-size: 0.93rem; line-height: 1.55; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -14px; z-index: 1;
  width: 12px; height: 1.5px; background: var(--copper-light); opacity: 0.6;
}

/* Altri servizi */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.related {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  text-decoration: none; color: var(--ink);
  transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.related:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.related p { margin-top: -8px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; }
.related .link-arrow { margin-top: auto; }

/* ── Autorizzazioni: elenco documenti ─────────────────────── */
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--sp-5); align-items: center;
  padding: 20px 22px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
}
.doc__tag { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }
.doc h3 { margin-top: 4px; font-size: 1.12rem; }
.doc p { margin-top: 6px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.55; max-width: 76ch; }
.doc__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: var(--brand-tint); color: var(--brand-ink);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3fa775; }
/* Documento oltre la scadenza (ecotoni_auth_state): pallino e fondo color rame. */
.status--expired { background: #f6e7dc; color: var(--brand-ink); }
.status--expired::before { background: var(--copper); }
.docs-note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); max-width: 80ch; }

/* ── Dove siamo ───────────────────────────────────────────── */
.map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
.map-card { margin: 0; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.map-card iframe { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 0; filter: saturate(0.85); }
.map-card figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 22px 22px; }
.map-card .addr { font-family: var(--f-display); font-stretch: 106%; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.chips { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  font-size: var(--fs-sm); color: var(--on-dark);
}
.chip .ic { width: 15px; height: 15px; color: var(--copper-light); }
.chip--strong { background: rgba(227, 166, 119, 0.14); box-shadow: inset 0 0 0 1px rgba(227, 166, 119, 0.35); }

/* ── Chi siamo ────────────────────────────────────────────── */
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); }
.story h2 { margin-top: var(--sp-4); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.story .lead { margin-top: var(--sp-4); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-5); padding: 0 0 var(--sp-6) 40px; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--brand);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline__year { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--brand); line-height: 1; }
.timeline h3 { font-size: 1.15rem; }
.timeline p { margin-top: 6px; color: var(--muted); font-size: 0.97rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 1.5rem + 4vw, 6rem); align-items: start; }
.faq-aside { position: sticky; top: 110px; }
.help-card { padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); }
.help-card h3 { color: var(--white); font-size: 1.15rem; }
.help-card p { margin-top: 8px; color: var(--on-dark-muted); font-size: var(--fs-sm); }
.help-card .btn { margin-top: var(--sp-4); }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: box-shadow var(--dur-2) var(--ease); }
.faq-item[open] { box-shadow: var(--sh-2); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  padding: 20px 22px;
  list-style: none; cursor: pointer;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon-tile { width: 36px; height: 36px; border-radius: var(--r-pill); }
.faq-item summary .icon-tile .ic { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease); }
.faq-item[open] summary .icon-tile { background: var(--brand); color: var(--white); }
.faq-item[open] summary .icon-tile .ic { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 22px; color: var(--muted); line-height: 1.65; max-width: 70ch; }
.faq-item__body a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }

/* ── Testi legali ─────────────────────────────────────────── */
.legal { max-width: 760px; }
.legal .updated { display: inline-block; margin-bottom: var(--sp-6); font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }
.legal h2 { margin-top: var(--sp-7); font-size: 1.5rem; }
.legal h3 { margin-top: var(--sp-5); font-size: 1.1rem; }
.legal p, .legal li, .legal td, .legal th { font-size: 1rem; line-height: 1.72; color: #2c322e; }
.legal p { margin-top: var(--sp-3); }
.legal ul { margin: var(--sp-3) 0; padding-left: 1.3rem; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; margin: var(--sp-4) 0; font-size: var(--fs-sm); }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.legal .ph { background: #fff3cd; padding: 0 4px; border-radius: 3px; }

/* ── 404 ──────────────────────────────────────────────────── */
.error { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--sp-9) 0; }
.error__code {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 900;
  font-size: clamp(7rem, 4rem + 14vw, 15rem); line-height: 0.85; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 2px var(--brand);
}
.error h1 { margin-top: var(--sp-5); font-size: var(--fs-h2); }
.error p { margin: var(--sp-4) auto 0; color: var(--muted); max-width: 46ch; }
.error__actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* ── Loghi cofinanziamento (apertura del footer, versione in negativo) ── */
.footer__funding {
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  margin-bottom: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}
.funding-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; row-gap: var(--sp-5); }
.funding-logos li { display: flex; align-items: center; justify-content: center; padding: 0 clamp(18px, 3.5vw, 48px); }
.funding-logos li + li { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.funding-logos img { display: block; height: 60px; width: auto; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 var(--sp-6);
  background: var(--ink);
  color: var(--on-dark-muted);
  overflow: hidden;
  isolation: isolate;
}
.footer::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: 0.06; pointer-events: none; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
.footer .brand { color: var(--white); }
.footer__tag { margin-top: var(--sp-4); max-width: 34ch; font-size: 0.95rem; line-height: 1.6; }
.footer__contacts { list-style: none; margin: var(--sp-5) 0 0; padding: 0; display: grid; gap: 10px; }
.footer__contacts a, .footer__contacts li { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; font-size: 0.95rem; }
.footer__contacts .ic { width: 18px; height: 18px; color: var(--copper-light); }
.footer__contacts a:hover { color: var(--copper-light); }
.footer__title { margin: 0 0 var(--sp-5); font-family: var(--f-mono); font-stretch: normal; font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__links a { color: var(--on-dark-muted); text-decoration: none; font-size: 0.95rem; transition: color var(--dur-1); }
.footer__links a:hover { color: var(--white); }
.footer__sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.footer__sites li { padding-left: 14px; border-left: 2px solid rgba(227, 166, 119, 0.4); font-size: 0.93rem; line-height: 1.5; color: var(--on-dark); }
.footer__sites span { display: block; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--copper-light); margin-bottom: 3px; }
.footer__bottom {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: var(--sp-5);
  border-top: 1px solid var(--line-dark);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-xs);
}
.footer__bottom a { color: var(--on-dark-muted); text-decoration: none; }
.footer__bottom a:hover { color: var(--white); }
.footer__legal { display: flex; gap: var(--sp-4); }

/* ── Elementi flottanti ───────────────────────────────────── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: var(--z-float);
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: var(--white);
  box-shadow: 0 16px 34px -12px rgba(37, 211, 102, 0.65);
  transition: transform var(--dur-2) var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); }
.wa-float .ic-fill { width: 30px; height: 30px; }
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: var(--z-cookie);
  max-width: 680px; margin-left: auto;
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-4); align-items: center;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--ink); color: var(--on-dark-muted);
  box-shadow: var(--sh-3);
  transform: translateY(150%);
  transition: transform 0.5s var(--ease);
}
.cookie-bar.is-open { transform: none; }
.cookie-bar p { font-size: var(--fs-sm); line-height: 1.55; }
.cookie-bar strong { color: var(--white); }
.cookie-bar a { color: var(--copper-light); }
.cookie-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── Comparsa allo scroll (solo con JS attivo) ────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > :nth-child(2) { transition-delay: 70ms; }
.js .reveal-stagger.is-in > :nth-child(3) { transition-delay: 140ms; }
.js .reveal-stagger.is-in > :nth-child(4) { transition-delay: 210ms; }
.js .reveal-stagger.is-in > :nth-child(5) { transition-delay: 280ms; }
.js .reveal-stagger.is-in > :nth-child(6) { transition-delay: 350ms; }
.js .reveal-stagger.is-in > :nth-child(n+7) { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1180px) {
  .topbar__hide-md { display: none; }
}
@media (max-width: 1100px) {
  .nav__links, .nav__cta { display: none; }
  .nav-burger { display: inline-flex; }
  .topbar { display: none; }
}
@media (max-width: 900px) {
  /* Piu' respiro verticale al nav mobile, come nello staging */
  .nav__inner { padding-top: 26px; padding-bottom: 26px; }
}
@media (max-width: 1080px) {
  .proof-grid, .about5__grid, .svc5__grid, .contact-grid, .pagehead__grid, .split, .split--wide, .story, .faq-layout, .cta-panel { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .hero5__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero5__fact:nth-child(3) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
  .hero5__fact:nth-child(4) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
  .svc5__media { display: none; }
  .about5__media { position: relative; top: 0; aspect-ratio: 16 / 11; }
  .sedi5__grid { grid-template-columns: 1fr; }
  .sede5, .sede5 + .sede5 { padding: 28px 0; box-shadow: none; border-bottom: 1px solid var(--line-dark); }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sites-grid, .map-grid, .related-grid, .feat-grid--3 { grid-template-columns: 1fr; }
  .contact-aside, .faq-aside, .service-intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-panel__actions { justify-content: flex-start; }
  .steps {
    grid-template-columns: none;
    display: flex; overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 18px;
    scroll-padding: 0 var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .step { flex: 0 0 min(78%, 320px); scroll-snap-align: start; }
  .step:not(:last-child)::after { display: none; }
  .steps::-webkit-scrollbar { height: 4px; }
  .steps::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 999px; }
}
@media (max-width: 760px) {
  .hero5::before { background: linear-gradient(180deg, rgba(14, 18, 16, 0.62) 0%, rgba(14, 18, 16, 0.8) 45%, rgba(14, 18, 16, 0.94) 100%); }
  .hero5__media img { object-position: 70% 50%; }
  .feat-grid, .form-grid { grid-template-columns: 1fr; }
  .svc5__item { grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: 22px 0; }
  .svc5__go { display: none; }
  .mat-tabs { display: flex; width: 100%; }
  .mat-tab { flex: 1; padding: 10px 8px; }
  .mat5__foot { flex-direction: column-reverse; align-items: flex-start; }
  .svc5__item:hover, .svc5__item.is-active { padding-left: 0; }
  .svc5__item.is-active .svc5__title { color: var(--ink); }
  .svc5__item.is-active .svc5__icon { background: var(--brand-tint); color: var(--brand); }
  .doc { grid-template-columns: auto minmax(0, 1fr); }
  .doc__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
  .doc__side .status { white-space: normal; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .banner { aspect-ratio: 4 / 3; }
  .funding-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .funding-logos li, .funding-logos li + li { padding: 0 12px; border-left: 0; }
  .funding-logos li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.18); }
  .funding-logos img { height: 48px; max-width: 100%; object-fit: contain; }
  .cookie-bar { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; }
}
@media (max-width: 560px) {
  .mat { padding: 24px 16px 18px; gap: 6px; }
  .mat__name { font-size: 1.05rem; }
  .mat__desc { font-size: 0.82rem; }
  .hero5__fact { padding: 16px; gap: 10px; }
  .hero5__fact strong { font-size: 1.1rem; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero5__actions .btn, .pagehead__actions .btn { flex: 1 1 100%; }
  .wa-float { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

/* ╭──────────────────────────────────────────────────────────────╮
   │ WordPress                                                    │
   │ Aggiunte del tema rispetto al sito statico v5.1: stati del   │
   │ modulo gestito dal plugin ecotoni-core, barra di             │
   │ amministrazione, testo per lettori di schermo, contenuto     │
   │ dell'editor dentro .legal.                                   │
   ╰──────────────────────────────────────────────────────────────╯ */

/* ── Modulo contatti: errori restituiti dal server ────────── */
/* Il plugin aggiunge .is-invalid al .field e scrive il messaggio nel suo
   .field__error: lo stesso aspetto dell'errore nativo (:user-invalid). */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 52, 31, 0.1); }
.field.is-invalid .field__error { display: block; }
.field select:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(163, 52, 31, 0.1); }
.field select:user-invalid ~ .field__error,
.field textarea:user-invalid ~ .field__error { display: block; }
.check.is-invalid { color: var(--danger); }
.check.is-invalid input { outline: 2px solid var(--danger); outline-offset: 2px; }
.check.is-invalid .field__error,
.field.is-invalid .check .field__error { display: block; }

/* Nota generale: verde per l'esito positivo (stile statico), rossa per gli errori */
.form-note--error { background: #f7e4df; color: var(--danger); }
.form-note--error .ic { color: var(--danger); }
.form-note:empty { display: none; }
.form-note:focus { outline: none; }
.form-note:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Pulsante durante l'invio */
.form-card[aria-busy="true"] button[type="submit"],
.form-card button[aria-busy="true"],
.form-card button[disabled] { opacity: 0.6; cursor: progress; }

/* Riga per chi ha JavaScript disattivato */
.form-card noscript p,
.form-noscript { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--muted); }

/* Riga mostrata da scripts.js se lo script del modulo non parte entro 5
   secondi dal caricamento. Nasce con l'attributo hidden (la regola [hidden]
   in alto la tiene nascosta); quando compare e' un avviso, quindi rossa. */
.ecc-js-hint { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--danger); }

/* Trappola antispam: fuori schermo ma presente nel DOM. Non display:none,
   che alcuni bot riconoscono e saltano; non type="hidden", che i bot
   ignorano. Una persona non la vede e non ci arriva con il tasto Tab. */
.ecc-hp {
  position: absolute !important;
  left: -10000px !important; top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* Widget Cloudflare Turnstile, quando configurato */
.form-card .cf-turnstile { margin-top: var(--sp-5); min-height: 65px; }

/* Riquadro di ripiego quando il plugin non e' attivo (nessun modulo) */
.form-card--fallback .contact-list { margin-top: var(--sp-5); }

/* ── Barra di amministrazione (solo utenti collegati) ─────── */
/* La nav e' sticky a top:0: senza questo finirebbe sotto la barra. */
.admin-bar .nav { top: 32px; }
.admin-bar .drawer { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .drawer { top: 46px; }
}
/* Sotto i 600px WordPress smette di tenere fissa la barra (position:absolute):
   scorre via con la pagina, quindi la nav torna ad agganciarsi al bordo. */
@media screen and (max-width: 600px) {
  .admin-bar .nav { top: 0; }
}

/* ── Testo solo per lettori di schermo (classe standard di WordPress) ── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  z-index: calc(var(--z-drawer) + 1);
  top: var(--sp-4); left: var(--sp-4);
  width: auto; height: auto;
  padding: var(--sp-3) var(--sp-4);
  clip: auto; clip-path: none;
  background: var(--ink); color: var(--white);
  border-radius: var(--r-sm);
}

/* ── Contenuto dell'editor dentro .legal ──────────────────── */
/* Testi legali e pagine generiche sono modificabili dalla bacheca: qui le
   regole minime perche' quello che produce l'editor resti leggibile. */
.legal > :first-child { margin-top: 0; }
.legal h4 { margin-top: var(--sp-5); font-size: 1rem; }
.legal ol { margin: var(--sp-3) 0; padding-left: 1.3rem; }
.legal blockquote { margin: var(--sp-5) 0; padding-left: var(--sp-4); border-left: 3px solid var(--brand); color: var(--muted); }
.legal img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.legal figure { margin: var(--sp-5) 0; }
.legal figcaption, .legal .wp-caption-text { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
.legal hr { margin: var(--sp-6) 0; border: 0; border-top: 1px solid var(--line); }
.legal .table-wrap, .legal .wp-block-table { overflow-x: auto; }
.legal .alignleft { float: left; margin: 0.4rem var(--sp-5) var(--sp-4) 0; }
.legal .alignright { float: right; margin: 0.4rem 0 var(--sp-4) var(--sp-5); }
.legal .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.legal .alignwide, .legal .alignfull { max-width: 100%; }
.legal::after { content: ""; display: table; clear: both; }
@media (max-width: 560px) {
  .legal .alignleft, .legal .alignright { float: none; margin: var(--sp-4) 0; }
}
