/* Edilhouse, anteprima statica. Sistema grafico unico per tutte le pagine. */

/* ---------- Token ---------- */
:root {
  --white: #fffdf9;
  --cream: #f6f1e9;
  --sand: #ebe2d3;
  --sand-deep: #ddd1bd;
  --ink: #1f201e;
  --ink-2: #2b2c29;
  --ink-3: #161715;
  --text: #33342f;
  --muted: #64655f;
  --line: #e2d8c8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #b4623f;
  --accent-dark: #974e30;
  --accent-soft: #f2e2d6;

  --font: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;

  /* Scala tipografica centralizzata */
  --fs-h1-home: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);   /* 32 → 52 */
  --fs-h1: clamp(1.875rem, 1.35rem + 1.7vw, 2.875rem);  /* 30 → 46 */
  --fs-h2: clamp(1.5625rem, 1.25rem + 1vw, 2.25rem);     /* 25 → 36 */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);  /* 18 → 21 */
  --fs-lead: clamp(1.0313rem, 1rem + 0.2vw, 1.125rem);   /* 16.5 → 18 */
  --fs-body: 1rem;                                       /* 16 */
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(31, 32, 30, 0.05), 0 10px 30px rgba(31, 32, 30, 0.07);
  --shadow-lift: 0 2px 4px rgba(31, 32, 30, 0.06), 0 18px 40px rgba(31, 32, 30, 0.12);
  --wrap: 1200px;
  --gutter: 20px;
  --sec: clamp(52px, 6.5vw, 88px);
  --header: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
strong, b { font-weight: 600; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.12;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.03em; }
.home-hero h1 { font-size: var(--fs-h1-home); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.25; margin-bottom: 0.45em; }
h4 { font-size: 1rem; letter-spacing: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.narrow { max-width: 760px; }

/* ---------- Sezioni e alternanza ---------- */
.sec { padding-block: var(--sec); }
.sec-tight { padding-block: calc(var(--sec) * 0.7); }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-dark { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .eyebrow { color: #e3a284; }
.bg-dark .lead { color: rgba(255, 255, 255, 0.82); }
.bg-dark .muted { color: rgba(255, 255, 255, 0.62); }
.bg-dark a:hover { color: #f0b89e; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.sec-head > div { max-width: 680px; }
.sec-head h2 { margin-bottom: 0.35em; }
.sec-head p:not(.eyebrow) { margin: 0; }
.sec-head .link-arrow { flex-shrink: 0; }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(31, 32, 30, 0.28); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); color: var(--ink); }
.bg-dark .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.bg-dark .btn-line:hover { border-color: #fff; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow:hover::after { transform: translateX(4px); }
.bg-dark .link-arrow { color: #f0b89e; }

/* ---------- Header ---------- */
.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-200%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}
.skip:focus { transform: none; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 28px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; padding-left: 12px; border-left: 1px solid var(--line); }
.brand strong { font-family: var(--display); font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.brand small { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand:hover { color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  position: relative;
  padding: 8px 11px;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px; bottom: 3px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-extra { display: none; }
.header-cta { min-height: 44px; padding: 0 18px; }
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font: 600 0.875rem var(--font);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle i { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle i::before, .nav-toggle i::after, .nav-toggle i span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle i::before { top: 0; }
.nav-toggle i span { top: 5px; }
.nav-toggle i::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5.25px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] i span { opacity: 0; }

/* ---------- Hero ---------- */
.home-hero { background: var(--cream); padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { max-width: 52ch; }
.hero-visual { position: relative; padding-bottom: 36px; padding-left: 36px; }
.hero-visual .main { width: min(100%, 560px); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-left: auto; }
.hero-visual .inset {
  position: absolute;
  left: 0; bottom: 0;
  width: 38%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lift);
}
.hero-visual .tag {
  position: absolute;
  right: 16px; top: 16px;
  background: rgba(31, 32, 30, 0.86);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 24px;
}
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts span { font-size: var(--fs-small); color: var(--muted); }
.hero-facts strong { font-family: var(--display); font-size: 1.0625rem; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.hero-facts a { text-decoration: none; }
.hero-facts a:hover strong { color: var(--accent); }

.page-hero { background: var(--cream); padding-block: clamp(28px, 4vw, 56px) clamp(40px, 5vw, 64px); }
.page-hero .hero-grid { grid-template-columns: 1.05fr 1fr; }
.page-hero .hero-visual .main { aspect-ratio: 1; max-width: 560px; }
.page-hero.compact .wrap > .lead { max-width: 62ch; }
.crumbs { font-size: 0.8125rem; color: var(--muted); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { margin-inline: 6px; opacity: .6; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding: 0; list-style: none; }
.chips li, .chips a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Split editoriale ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.wide-text { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.split-media.tall img { aspect-ratio: 4 / 5; }
.badge {
  position: absolute;
  left: 18px; bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.25;
}
.badge strong { font-family: var(--display); color: var(--ink); font-size: 1rem; }
.badge span { font-size: 0.8125rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 26px; border-block: 1px solid var(--line); }
.facts div { padding: 18px 18px 18px 0; }
.facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--display); font-size: 1.0625rem; color: var(--ink); margin-bottom: 4px; letter-spacing: -0.01em; }
.facts span { display: block; font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.bg-dark .facts, .bg-dark .facts div + div { border-color: var(--line-dark); }

/* ---------- Problemi (card con icona) ---------- */
.problems-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.problems-layout .intro { position: sticky; top: calc(var(--header) + 24px); }
.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.issue-grid.four { grid-template-columns: repeat(4, 1fr); }
.issue {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.issue:hover { border-color: var(--sand-deep); box-shadow: var(--shadow); }
a.issue { text-decoration: none; color: inherit; }
a.issue:hover { transform: translateY(-2px); color: inherit; }
.issue .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.issue .ico svg { width: 22px; height: 22px; }
.issue h3 { margin-bottom: 8px; }
.issue p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 14px; }
.issue .link-arrow { margin-top: auto; font-size: 0.875rem; }
.issue.alert .ico { background: #e9e4dc; color: var(--ink); }
.bg-cream .issue, .bg-sand .issue { background: var(--white); }

/* ---------- Card servizi ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.service:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: inherit; }
.service figure { margin: 0; position: relative; overflow: hidden; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.service:hover img { transform: scale(1.04); }
.service .num {
  position: absolute; left: 16px; top: 16px;
  font: 600 0.75rem var(--font); letter-spacing: .12em;
  background: var(--white); color: var(--ink);
  padding: 6px 10px; border-radius: 999px;
}
.service-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-body p { font-size: 0.9688rem; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 4px 0 20px; display: grid; gap: 7px; }
.ticks li { position: relative; padding-left: 24px; font-size: 0.9375rem; color: var(--text); line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em;
  width: 11px; height: 6px;
  border-left: 1.75px solid var(--accent); border-bottom: 1.75px solid var(--accent);
  transform: rotate(-45deg);
}
.bg-dark .ticks li { color: rgba(255, 255, 255, 0.86); }
.bg-dark .ticks li::before { border-color: #e3a284; }
.service .link-arrow { margin-top: auto; }

/* ---------- Banda scura con foto ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.feature-photo { position: relative; min-height: 520px; }
.feature-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-photo .tag {
  position: absolute; left: 24px; bottom: 24px;
  background: rgba(31, 32, 30, 0.82); color: #fff;
  font-size: .8125rem; padding: 7px 12px; border-radius: 999px;
}
.feature-copy { padding: clamp(44px, 6vw, 84px) clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.feature-copy h2 { color: #fff; }
.feature-copy .eyebrow { color: #e3a284; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.benefits div { display: flex; flex-direction: column; gap: 10px; }
.benefits svg { width: 26px; height: 26px; color: #e3a284; }
.benefits strong { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.benefits span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); line-height: 1.5; }

/* ---------- Materiali ---------- */
.materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.material {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none; color: inherit;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.material:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); color: inherit; }
.material img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); }
.material-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.material-body p { color: var(--muted); font-size: 0.9375rem; }
.material .use { font-size: 0.8125rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; margin-bottom: 14px; }
.material .use b { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .6875rem; margin-right: 6px; }

/* Schede materiali (pagina) */
.mat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mat-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.mat-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mat-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.mat-card .body p { font-size: 0.9688rem; }
.mat-card .link-arrow { margin-top: auto; }
.mat-row { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.mat-row + .mat-row { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.mat-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.mat-row.reverse > :first-child { order: 2; }
.mat-label { font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.source-note { font-size: 0.8125rem; color: var(--muted); margin-top: 14px; }

/* ---------- Galleria / mosaico ---------- */
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; height: clamp(420px, 42vw, 560px); }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.mosaic figure:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption, .work figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 8px; align-items: center;
  color: #fff; font-size: 0.8125rem; font-weight: 500;
  pointer-events: none;
}
.mosaic figcaption span, .work figcaption span, .duo figcaption span { background: rgba(31, 32, 30, 0.78); padding: 6px 11px; border-radius: 999px; backdrop-filter: blur(4px); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo figure { margin: 0; position: relative; }
.duo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); max-height: 420px; }
.duo figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; color: #fff; font-size: 0.86rem; }

.works { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 230px); gap: 14px; }
.work { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--sand); }
.work.big { grid-column: span 2; grid-row: span 2; }
.work.wide { grid-column: span 2; }
.work button {
  all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in;
}
.work button:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover img { transform: scale(1.04); }
.work[hidden] { display: none; }
.works.filtered { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 22vw, 300px); }
.works.filtered .work.big, .works.filtered .work.wide { grid-column: auto; grid-row: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button {
  min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font: 500 0.9063rem var(--font); color: var(--ink); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button:hover { border-color: var(--ink); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.strip figure { margin: 0; }
.strip button { all: unset; display: block; cursor: zoom-in; border-radius: var(--radius-lg); overflow: hidden; width: 100%; }
.strip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.strip button:hover img { transform: scale(1.04); }
.strip figcaption { font-size: 0.8438rem; color: var(--muted); margin-top: 8px; }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox::backdrop { background: rgba(18, 18, 17, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 20px 24px; }
.lightbox img { max-width: min(92vw, 1200px); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255, 255, 255, .85); font-size: .9375rem; text-align: center; }
.lb-btn {
  position: fixed; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(31, 32, 30, .6); color: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 1.25rem; line-height: 1;
}
.lb-btn:hover { background: rgba(255, 255, 255, .15); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Percorso (timeline) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); opacity: .55; }
.timeline li { position: relative; padding-top: 66px; }
.timeline li::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 0; left: 0;
  width: 45px; height: 45px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font: 600 0.875rem var(--display); letter-spacing: .02em;
  box-shadow: 0 0 0 6px var(--sand);
}
.bg-cream .timeline li::before { box-shadow: 0 0 0 6px var(--cream); }
.bg-white .timeline li::before { box-shadow: 0 0 0 6px var(--white); }
.timeline li:last-child::before { background: var(--accent); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { font-size: 0.9375rem; color: var(--muted); margin: 0; }
.timeline .when { display: block; font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* Procedimento con foto */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.process li { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.process figure { margin: 0; position: relative; }
.process img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.process figure::after {
  counter-increment: step; content: "0" counter(step);
  position: absolute; left: 14px; bottom: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font: 600 .875rem var(--display);
  box-shadow: 0 0 0 5px var(--white);
}
.process .body { padding: 34px 22px 24px; }
.process h3 { margin-bottom: 8px; }
.process p { font-size: 0.9375rem; color: var(--muted); margin: 0; }

/* ---------- Infografica intercapedine ---------- */
.diagram { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8438rem; color: var(--muted); }
.diagram-legend span { display: inline-flex; align-items: center; gap: 8px; }
.diagram-legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* ---------- Confronto ---------- */
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; font-size: 0.9375rem; }
.compare-table caption { caption-side: bottom; text-align: left; padding-top: 14px; font-size: 0.8125rem; color: var(--muted); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--ink); color: #fff; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.compare-table thead th:first-child { background: var(--ink-2); color: rgba(255,255,255,.7); font-family: var(--font); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.compare-table tbody th { font-weight: 600; color: var(--ink); width: 22%; background: var(--cream); font-size: .9063rem; }
.compare-table .hl { background: #fbf4ee; }
.compare-table thead .hl { background: var(--accent); }
.compare-table a { color: var(--accent); font-weight: 600; }

/* ---------- Zone ---------- */
.zones2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.zone-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 30px; display: grid; grid-template-columns: 1fr auto; gap: 18px 24px; align-items: end;
}
.zone-panel h3 { margin: 0 0 6px; }
.zone-panel p { color: var(--muted); font-size: 0.9375rem; margin: 0; }
.zone-panel .cities { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.zone-panel .cities li { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.0625rem; padding: 8px 14px; background: var(--cream); border-radius: var(--radius); }
.zone-panel .phone { font-family: var(--display); font-size: 1.375rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.zone-panel .phone:hover { color: var(--accent); }
.zone-panel.head { grid-template-columns: 1fr; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--sand-deep); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 18px 22px;
  font-family: var(--display); font-weight: 600; font-size: 1.0313rem; color: var(--ink); letter-spacing: -0.01em; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4623f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s ease, background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq summary:hover { color: var(--accent); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text); font-size: 0.9688rem; max-width: 68ch; }
.help-box { margin-top: 26px; background: var(--ink); color: rgba(255,255,255,.8); border-radius: var(--radius-lg); padding: 24px 26px; }
.help-box strong { color: #fff; font-family: var(--display); font-size: 1.0625rem; display: block; margin-bottom: 4px; }
.help-box p { font-size: .9375rem; margin-bottom: 14px; }
.help-box .tel { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-dark); color: #fff; text-decoration: none; font-size: .9375rem; }
.help-box .tel b { font-family: var(--display); font-weight: 600; }
.help-box .tel span { color: rgba(255,255,255,.65); }
.help-box .tel:hover b { color: #f0b89e; }

/* ---------- CTA finale ---------- */
.cta-final { background: var(--ink); color: rgba(255,255,255,.8); padding-block: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.cta-final::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(227, 162, 132, .18); box-shadow: 0 0 0 60px rgba(227,162,132,.04), 0 0 0 120px rgba(227,162,132,.03);
  pointer-events: none;
}
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.cta-final h2 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); }
.cta-final .eyebrow { color: #e3a284; }
.cta-final .lead { color: rgba(255,255,255,.78); }
.cta-actions { display: grid; gap: 10px; }
.cta-tel {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  text-decoration: none; color: #fff; transition: background .2s ease, border-color .2s ease;
}
.cta-tel:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); color: #fff; }
.cta-tel span { font-size: .875rem; color: rgba(255,255,255,.62); }
.cta-tel b { font-family: var(--display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }
.cta-actions .btn { width: 100%; min-height: 54px; }

/* ---------- Liste editoriali ---------- */
.rows { border-top: 1px solid var(--line); }
.rows a, .rows > div {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.rows .n { font: 600 .875rem var(--display); color: var(--accent); }
.rows h3 { margin: 0 0 4px; }
.rows p { margin: 0; color: var(--muted); font-size: .9688rem; }
.rows a::after { content: "→"; font-size: 1.25rem; color: var(--accent); transition: transform .2s ease; }
.rows a:hover::after { transform: translateX(5px); }
.rows a:hover h3 { color: var(--accent); }

.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.work-col .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.work-col .ico svg { width: 22px; height: 22px; }
.work-col .ticks { margin-bottom: 0; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.tile svg { width: 24px; height: 24px; color: var(--accent); margin-bottom: 12px; }
.tile strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.0313rem; margin-bottom: 4px; letter-spacing: -.01em; }
.tile span { font-size: .9063rem; color: var(--muted); line-height: 1.55; display: block; }
.bg-dark .tile { background: var(--ink-2); border-color: var(--line-dark); }
.bg-dark .tile strong { color: #fff; }
.bg-dark .tile span { color: rgba(255,255,255,.66); }
.bg-dark .tile svg { color: #e3a284; }

.note-box { margin-top: 22px; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.55); border-radius: 0 var(--radius) var(--radius) 0; font-size: .9375rem; }
.bg-dark .note-box { background: rgba(255,255,255,.05); }

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul li, .prose ol li { margin-bottom: .4rem; }
.legal { padding-block: clamp(40px, 5vw, 64px) var(--sec); }
.legal .prose { max-width: 760px; }
.legal h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.legal code { background: var(--cream); padding: 2px 6px; border-radius: 4px; font-size: .875em; }

/* ---------- Contatti ---------- */
.contact-hero .hero-grid { align-items: start; }
.channels { display: grid; gap: 10px; }
.channel {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.channel:hover { border-color: var(--sand-deep); box-shadow: var(--shadow); transform: translateY(-1px); color: inherit; }
.channel .ico { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.channel.wa .ico { background: var(--accent); }
.channel .ico svg { width: 20px; height: 20px; }
.channel span { display: block; font-size: .8438rem; color: var(--muted); }
.channel b { display: block; font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--ink); letter-spacing: -0.01em; word-break: break-word; }
.channel::after { content: "→"; color: var(--accent); font-size: 1.125rem; transition: transform .2s ease; }
.channel:hover::after { transform: translateX(4px); }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.steps-mini { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; counter-reset: s; }
.steps-mini li { counter-increment: s; position: relative; padding: 0 0 22px 52px; }
.steps-mini li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font: 600 .875rem var(--display); background: var(--white);
}
.steps-mini li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.steps-mini li:last-child::after { display: none; }
.steps-mini strong { display: block; color: var(--ink); font-family: var(--display); font-size: 1rem; }
.steps-mini span { font-size: .9375rem; color: var(--muted); }
.addr { margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9375rem; }
.addr strong { color: var(--ink); }

/* ---------- Modulo ---------- */
.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow);
}
.form h2 { font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem); margin-bottom: 8px; }
.form-intro { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }
.form-how {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--cream); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 24px;
  font-size: .8438rem; line-height: 1.5; color: var(--text);
}
.form-how svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid #d6cbb9; border-radius: var(--radius); background: #fff;
  font: 400 1rem var(--font); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f201e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a92; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 98, 63, .16); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { font-size: .8125rem; color: #b3261e; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: .875rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.check.invalid span { color: #b3261e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-row { margin-top: 22px; }
.form .btn-row .btn { flex: 1 1 200px; }
.form-error { background: #fbeceb; color: #8c1d18; border-radius: var(--radius); padding: 12px 14px; font-size: .9063rem; margin-bottom: 18px; }
.form-note { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); background: #eef3ea; color: #2e4a25; font-size: .9063rem; line-height: 1.5; }
.form-note.show { display: block; }
.form-foot { margin-top: 16px; font-size: .8125rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-3); color: rgba(255,255,255,.68); padding-block: 64px 28px; font-size: .9375rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.foot-brand img { width: 44px; height: 44px; border-radius: 8px; background: #fff; padding: 3px; object-fit: contain; }
.foot-brand strong { color: #fff; font-family: var(--display); font-size: 1.125rem; font-weight: 700; display: block; line-height: 1.1; }
.foot-brand span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.foot-title { color: #fff; font-family: var(--display); font-weight: 600; font-size: .9375rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: #f0b89e; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-tel { display: block; margin-bottom: 14px; }
.foot-tel span { display: block; font-size: .8125rem; color: rgba(255,255,255,.55); }
.foot-tel a { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: #fff; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; }
.social a:hover { border-color: #f0b89e; }
.social svg { width: 16px; height: 16px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: .8125rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- WhatsApp fluttuante ---------- */
.float-wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 0;
  height: 56px; padding: 0 6px 0 6px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.18);
  transition: gap .3s ease, padding .3s ease, background .2s ease, transform .3s ease, opacity .3s ease;
}
.float-wa:hover { color: #fff; background: #000; }
.float-wa-icon { width: 44px; height: 44px; border-radius: 50%; background: #25d366; display: grid; place-items: center; flex-shrink: 0; }
.float-wa-icon svg { width: 24px; height: 24px; color: #fff; }
.float-wa-label {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font-size: .9063rem; font-weight: 600; letter-spacing: .005em;
  transition: max-width .35s ease, padding .35s ease;
}
@media (min-width: 900px) {
  .float-wa .float-wa-label { max-width: 200px; padding: 0 16px 0 12px; }
  .float-wa.compact .float-wa-label { max-width: 0; padding: 0; }
  .float-wa.compact:hover .float-wa-label, .float-wa.compact:focus-visible .float-wa-label { max-width: 200px; padding: 0 16px 0 12px; }
}
body.cookie-open .float-wa { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed; inset: auto 0 0 0; z-index: 80;
  display: none;
}
.cookie.is-open { display: block; }
.cookie-panel {
  background: var(--white); color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(31, 32, 30, .12);
  max-height: min(78vh, 640px); overflow: auto;
}
.cookie-panel > div { width: min(1120px, calc(100% - 48px)); margin-inline: auto; padding: 22px 0 24px; }
.cookie h2 { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cookie p { margin: 10px 0 0; max-width: 72ch; font-size: .9375rem; line-height: 1.55; }
.cookie a { color: var(--accent); }
.cookie .btn-row { margin-top: 16px; gap: 8px; }
.cookie .btn { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.cookie-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 32px;
  align-items: end;
}
.cookie-main .btn-row { margin-top: 0; flex-wrap: nowrap; }
.cookie [hidden] { display: none !important; }
.cookie-panel { padding-bottom: env(safe-area-inset-bottom); }
.cookie-cats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cookie-cats li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand, #f6f3ee); }
.cookie-cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cookie-cat-head strong { flex: 1 1 auto; color: var(--ink); font-size: .9375rem; }
.cookie-badge { font-size: .75rem; font-weight: 600; color: var(--muted, #5c5a56); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; }
.cookie-cats input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); margin: 0; }
.cookie-cats input:disabled { cursor: not-allowed; }
.cookie-cats input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cookie-cats p { margin-top: 6px; font-size: .875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 8px 8px; font-size: .875rem; }
  .site-nav a::after { left: 8px; right: 8px; }
  .header-bar { gap: 18px; }
}

@media (max-width: 1040px) {
  :root { --header: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-nav {
    position: fixed; inset: var(--header) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    padding: 12px var(--gutter) 32px;
    overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav a { font-family: var(--display); font-size: 1.375rem; font-weight: 600; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .nav-extra { display: grid; gap: 10px; margin-top: 24px; }
  .nav-extra .btn { width: 100%; }
  .nav-extra .btn.btn-line { font-family: var(--font); font-size: .9375rem; font-weight: 600; padding: 0 22px; border: 1px solid rgba(31,32,30,.28); border-radius: var(--radius); }

  .services, .materials { grid-template-columns: 1fr 1fr; }
  .services > :last-child, .materials > :last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .services > :last-child figure, .services > :last-child figure img { height: 100%; }
  .materials > :last-child img { height: 100%; aspect-ratio: auto; }
  .issue-grid.four { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .cols3 { grid-template-columns: 1fr 1fr; }
  .cols3 > :last-child { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 14px; }
  .benefits div { flex-direction: row; align-items: flex-start; gap: 14px; }
  .benefits div > span:not(:first-child) { display: block; }
  .problems-layout { grid-template-columns: 1fr; }
  .problems-layout .intro { position: static; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-grid, .page-hero .hero-grid, .split, .split.wide-text, .faq-layout, .contact-grid, .cta-grid, .mat-row, .feature { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .mat-row.reverse > :first-child { order: 0; }
  .feature-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .feature-copy { max-width: none; }
  .zones2, .mat-pair { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .mosaic figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .mosaic figure img { aspect-ratio: 4 / 3; height: auto; }
  .mosaic figure:first-child img { aspect-ratio: 16 / 10; }
  .works, .works.filtered { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(150px, 34vw, 260px); }
  .work.big { grid-column: 1 / -1; grid-row: span 2; }
  .work.wide { grid-column: 1 / -1; }
  .works.filtered .work:first-child:not([hidden]) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header: 64px; }
  body { font-size: 1rem; }
  .brand img { width: 40px; height: 40px; }
  .brand strong { font-size: 1.0625rem; }
  .brand small { font-size: .625rem; letter-spacing: .08em; }
  .brand span { padding-left: 10px; }
  .nav-toggle { padding: 0 12px; }

  .home-hero, .page-hero { padding-top: 26px; }
  .hero-copy .btn-row .btn, .page-hero .btn-row .btn { flex: 1 1 auto; }
  .hero-visual { padding: 0 0 26px 26px; margin-top: 4px; }
  .hero-visual .main { aspect-ratio: 1; width: min(100%, 560px); }
  .duo { grid-template-columns: 1fr; }
  .hero-visual .inset { width: 34%; border-width: 4px; }
  .hero-visual .tag { right: 10px; top: 10px; font-size: .75rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 0; padding-top: 0; margin-top: 28px; }
  .hero-facts div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
  .hero-facts strong { font-size: 1rem; text-align: right; }

  .facts { grid-template-columns: 1fr; border-bottom: 0; }
  .facts div, .facts div + div { padding: 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .issue-grid, .issue-grid.four, .services, .materials, .process, .cols3, .tiles { grid-template-columns: 1fr; }
  .services > :last-child, .materials > :last-child { display: flex; grid-column: auto; }
  .services > :last-child figure img { height: auto; }
  .materials > :last-child img { aspect-ratio: 16 / 10; height: auto; }
  .cols3 > :last-child { grid-column: auto; }
  .issue { padding: 20px; }
  .issue .ico { margin-bottom: 14px; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { padding: 0 0 26px 66px; min-height: 45px; }
  .timeline li::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 6px; width: 1px; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 10px); opacity: .5; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li:last-child::after { display: none; }
  .process li { display: grid; grid-template-columns: 120px 1fr; }
  .process img { height: 100%; aspect-ratio: auto; min-height: 140px; }
  .process figure::after { left: auto; right: -18px; bottom: auto; top: 12px; width: 36px; height: 36px; font-size: .75rem; box-shadow: 0 0 0 4px var(--white); }
  .process .body { padding: 18px 18px 18px 30px; }
  .rows a, .rows > div { grid-template-columns: 36px 1fr 20px; gap: 14px; padding: 20px 0; }
  .zone-panel { grid-template-columns: 1fr; padding: 22px; align-items: start; }
  .zone-panel .phone { font-size: 1.25rem; }
  .strip { gap: 10px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form .btn-row .btn { flex-basis: 100%; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table td, .compare-table tbody th { display: block; width: 100%; }
  .compare-table { border: 0; background: transparent; overflow: visible; }
  .compare-table thead { display: none; }
  .compare-table tr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 12px; overflow: hidden; }
  .compare-table tbody th { background: var(--ink); color: #fff; font-family: var(--display); font-size: 1rem; padding: 12px 16px; border: 0; }
  .compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .compare-table td::before { content: attr(data-label); display: block; font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
  .compare-table td.hl { background: #fbf4ee; }
  .compare-table caption { display: block; padding: 4px 0 0; }
  .cta-tel b { font-size: 1.0625rem; }

  .float-wa { right: 16px; bottom: 18px; height: 54px; width: 54px; padding: 0; justify-content: center; background: var(--ink); }
  .float-wa-icon { width: 54px; height: 54px; background: transparent; }
  .float-wa-icon svg { width: 26px; height: 26px; }
  .float-wa-label { display: none; }
  .cookie-panel > div { width: min(1120px, calc(100% - 32px)); padding-block: 18px 20px; }
  .cookie-main { grid-template-columns: 1fr; align-items: start; }
  .cookie-main .btn-row { margin-top: 4px; flex-wrap: wrap; }
  .cookie .btn-row { flex-direction: column; }
  .cookie .btn { width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 58px); }
  .lb-next { right: calc(50% - 58px); }
  .lightbox figure { padding: 64px 12px 84px; }
}

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

/* ---------- Aggiunte ---------- */
.diagram { margin-top: clamp(32px, 4vw, 48px); }
.diagram-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); max-width: 980px; margin-inline: auto; }
.rows .n svg { width: 24px; height: 24px; color: var(--accent); }
@media (max-width: 640px) {
  .diagram-pair { grid-template-columns: 1fr; gap: 28px; }
  .diagram-legend .source-note { margin-left: 0 !important; }
}
@media (max-width: 860px) {
  .works.filtered .work.first-vis { grid-column: 1 / -1; }
}
.feature .lead { color: rgba(255, 255, 255, 0.8); }
.feature .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.feature .btn-line:hover { border-color: #fff; color: #fff; }
.cta-final .btn-line { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.timeline::before { right: calc((100% - 84px) / 4 - 22px); }
.split.wide-text { align-items: start; }
@media (max-width: 640px) { .split-media.tall img { aspect-ratio: 4 / 3; } }
button, input, select, textarea { font-family: inherit; }
@media (max-width: 1040px) {
  /* backdrop-filter crea un contenitore per i figli fixed: sul menu mobile va tolto */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
}
@media (max-width: 1040px) {
  .site-nav .nav-extra .btn { font-family: var(--font); font-size: 0.9375rem; font-weight: 600; padding: 0 22px; border-radius: var(--radius); border-bottom: 0; }
  .site-nav .nav-extra .btn-accent { color: #fff; }
  .site-nav .nav-extra .btn-line { color: var(--ink); border: 1px solid rgba(31,32,30,.28); }
}
body.nav-open .float-wa, body.form-visible .float-wa { opacity: 0; pointer-events: none; transform: translateY(12px); }
@media (max-width: 860px) {
  .hero-visual { max-width: 600px; }
  .split-media img, .split-media.tall img { aspect-ratio: 16 / 10; }
}
