/* Font ospitati sul sito (Barlow e Barlow Condensed, licenza OFL in fonts/OFL.txt):
   nessuna richiesta a Google, quindi nessun IP dei visitatori passato a terzi. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }

/* ==========================================================================
   Centro Servizi Casa · Lucca
   Regole di conversione dalla guida ULTRA CONVERTER (GoodUI + Baymard):
   hero compatto, un solo CTA pieno per zona, niente caroselli né popup,
   catalogo completo in griglia statica, contrasto prima del colore.
   ========================================================================== */
:root {
  --red: #CC2A26;          /* rosso del volantino, scurito per il testo bianco (5,9:1) */
  --red-700: #A61F1C;
  --red-50: #FCECEA;
  --red-100: #F6D5D1;
  --ink: #17181A;
  --ink-2: #2E3034;
  --muted: #585B62;
  --line: #E2DBCF;
  --line-2: #CFC6B6;
  --paper: #FAF7F2;
  --paper-2: #F3EEE6;
  --grid: #EEE7DB;
  --yellow: #F5B82E;
  --ok: #2F7D4F;
  --night: #141517;
  --night-2: #1D1F22;
  --on-night: #F1ECE3;
  --on-night-muted: #B7B0A4;

  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --r: 8px;
  --r-lg: 10px;
  --header-h: 76px;
  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 1px 0 rgba(23,24,26,.04), 0 18px 40px -20px rgba(23,24,26,.35);
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Bottoni: pieni, 52px, mai ghost, mai a tutta larghezza ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--r);
  font: 700 16.5px/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgba(204,42,38,.75); }
.btn-primary:hover { background: var(--red-700); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--red-700); }
.btn-light:hover { background: #FFF1EF; transform: translateY(-1px); }
.btn-grey { background: #E8E2D7; color: var(--ink); }
.btn-grey:hover { background: #DDD5C8; }
.num { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* sfocatura su uno strato a parte: sull'header renderebbe il menu mobile (fixed) relativo all'header */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250,247,242,.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 50px; height: 36px; }
.brand-text { display: grid; line-height: 1; }
.brand-text b { font: italic 800 23px/.95 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.brand-text span { font: italic 800 15px/1.15 var(--f-display); text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px;
  transition: background-color .2s, color .2s;
}
.nav a .ico { width: 19px; height: 19px; color: var(--red); }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current="location"] { color: var(--red-700); background: var(--red-50); }
.nav a[aria-current="location"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--red); }
.nav-call { display: none; }
.header-cta { min-height: 46px; padding: 0 20px; font-size: 16px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 14px; border-radius: var(--r); border: 0;
  background: #E8E2D7; color: var(--ink); font: 700 15.5px/1 var(--f-body); cursor: pointer;
}
.menu-toggle .ico { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
.menu-open .menu-toggle .i-menu { display: none; }

/* ---------- Hero: compatto, si vede che c'è altro sotto ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 56px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.live {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
}
.live-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #2F9E5B; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2F9E5B; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }
h1 {
  margin: 20px 0 18px;
  font: italic 800 clamp(50px, 6.6vw, 106px)/.9 var(--f-display);
  text-transform: uppercase; letter-spacing: -.005em;
}
h1 .line { display: block; overflow: hidden; padding: 0 .12em .03em 0; margin-right: -.12em; }
h1 .line > span { display: inline-block; }
h1 .hl { color: var(--red); }
h1 .h1-kicker { display: block; margin-bottom: 14px; font: 700 clamp(16px, 1.3vw, 19px)/1.3 var(--f-body); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--red-700); }
.lead { margin: 0 0 26px; max-width: 33em; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); }
.cta-zone { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero .btn-primary { min-height: 56px; padding: 0 28px; font-size: 17.5px; }
.reassure { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.reassure li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.reassure .ico { width: 20px; height: 20px; color: var(--ok); stroke-width: 2.3; margin-top: 1px; }

.hero-art { position: relative; justify-self: end; width: 100%; max-width: 640px; }
.house { width: 100%; height: auto; overflow: visible; }
.art-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.art-note i { width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-100); flex: none; }

/* pin dei mestieri nell'illustrazione: un punto = un link */
.pin { cursor: pointer; outline: none; }
.pin-pulse { fill: var(--red); opacity: .4; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease) infinite; animation-delay: calc(var(--i) * .29s); }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(2.3); opacity: 0; } }
.pin-dot { fill: var(--red); stroke: #fff; stroke-width: 3; transform-box: fill-box; transform-origin: center; transition: transform .2s var(--ease); }
.pin-plus { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.pin-tip { opacity: 0; transition: opacity .18s; pointer-events: none; }
.pin-tip rect { fill: var(--ink); }
.pin-tip text { font: 700 15px var(--f-display); letter-spacing: .05em; fill: #fff; }
.pin:hover .pin-tip, .pin:focus-visible .pin-tip { opacity: 1; }
.pin:hover .pin-dot, .pin:focus-visible .pin-dot { transform: scale(1.18); }
.pin:focus-visible .pin-dot { stroke: var(--ink); }

.badge24 {
  position: absolute; left: -2%; bottom: 13%; width: 124px; height: 124px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; text-decoration: none;
  transition: transform .25s var(--ease);
}
.badge24:hover { transform: scale(1.05) rotate(-3deg); }
.badge24 svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge24 svg.ring text { font: 800 11.5px var(--f-display); letter-spacing: .08em; fill: var(--ink); }
.badge24 .core { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; }
.badge24 .core .ico { width: 26px; height: 26px; stroke-width: 2.1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* fatti: solo numeri veri e utili */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 3.5vw, 44px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.55); }
.fact { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact b { font: italic 800 clamp(40px, 4vw, 58px)/.9 var(--f-display); color: var(--red); flex: none; }
.fact span { font-weight: 600; font-size: 16px; line-height: 1.3; }
.fact a { font-weight: 700; white-space: nowrap; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section-alt { background: var(--paper-2); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 800 14.5px/1 var(--f-display); letter-spacing: .2em; text-transform: uppercase; color: var(--red-700); }
.kicker::before { content: ""; width: 30px; height: 2px; background: var(--red); }
h2 { margin: 14px 0 16px; font: italic 800 clamp(38px, 4.6vw, 70px)/.94 var(--f-display); text-transform: uppercase; letter-spacing: -.005em; }
h2 em { font-style: inherit; color: var(--red); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: end; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; font-size: 18px; color: var(--ink-2); max-width: 36em; }

/* ---------- Servizi: catalogo completo, griglia statica 4 colonne ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; padding: 22px 22px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.svc:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: var(--shadow); }
.svc:target { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-100), var(--shadow); }
.svc-n { position: absolute; top: 18px; right: 20px; font: italic 800 18px/1 var(--f-display); color: var(--line-2); }
.svc-ico { width: 54px; height: 54px; border-radius: var(--r-lg); display: grid; place-items: center; margin-bottom: 16px; background: var(--red-50); color: var(--red); transition: background-color .25s, color .25s; }
.svc-ico .ico { width: 28px; height: 28px; stroke-width: 1.8; }
.svc:hover .svc-ico { background: var(--red); color: #fff; }
.svc h3 { margin: 0 0 8px; font: italic 800 27px/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.svc p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.svc ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.svc li { display: flex; align-items: center; gap: 8px; }
.svc li .ico { width: 16px; height: 16px; color: var(--ok); stroke-width: 2.4; }
.svc-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; color: var(--red-700); }
.svc-go .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.svc:hover .svc-go .ico { transform: translateX(4px); }
.svc-urgent { background: var(--night); border-color: var(--night); color: var(--on-night); background-image: radial-gradient(120% 90% at 100% 0%, rgba(204,42,38,.45), transparent 60%); }
.svc-urgent:hover { border-color: var(--red); }
.svc-urgent .svc-ico { background: var(--red); color: #fff; }
.svc-urgent p { color: var(--on-night-muted); }
.svc-urgent .big { font: italic 800 38px/1 var(--f-display); color: #fff; margin: 4px 0 18px; }
.svc-urgent .fake-btn { margin-top: auto; align-self: flex-start; min-height: 48px; }

/* ---------- Tre situazioni con CTA ripetuta ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; min-height: 380px; padding: clamp(24px, 2.6vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.case-n { font: italic 800 72px/.8 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.case h3 { margin: 18px 0 12px; font: italic 800 clamp(30px, 2.6vw, 38px)/.95 var(--f-display); text-transform: uppercase; }
.case p { margin: 0 0 16px; color: var(--ink-2); }
.case .tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.case .tags li { padding: 5px 11px; border-radius: 6px; background: var(--paper-2); font-size: 14.5px; font-weight: 600; }
.case .btn { margin-top: auto; align-self: flex-start; }
.case-urgent { background: var(--red); border-color: var(--red); color: #fff; background-image: radial-gradient(90% 70% at 100% 0%, rgba(255,255,255,.18), transparent 60%); }
.case-urgent .case-n { -webkit-text-stroke-color: rgba(255,255,255,.55); }
.case-urgent p { color: #fff; }
.case-urgent .tags li { background: rgba(0,0,0,.18); }

/* ---------- Ristrutturazioni + prima/dopo ---------- */
.reno { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.reno .intro { margin: 0; font-size: 18px; color: var(--ink-2); }
.spec { margin: 24px 0 30px; border-top: 1px solid var(--line-2); }
.spec div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.spec dt { font: italic 800 19px/1.25 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.spec dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.ba { position: relative; aspect-ratio: 640 / 420; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #ddd; --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.45), 0 0 0 4px #fff; }
.ba-knob .ico { width: 26px; height: 26px; stroke-width: 2.2; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.ba-tag { position: absolute; top: 14px; padding: 7px 13px; border-radius: 999px; font: 800 14px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; pointer-events: none; }
.ba-tag.before { left: 14px; background: var(--ink); color: #fff; }
.ba-tag.after { right: 14px; background: #fff; color: var(--ink); }
.ba-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.ba-note .ico { width: 18px; height: 18px; color: var(--red); }
.tag rect { fill: var(--ink); }
.tag circle { fill: var(--red); }
.tag text { font: 700 15px var(--f-display); letter-spacing: .06em; fill: #fff; }

/* ---------- 40 anni ---------- */
.about { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding-bottom: 0; }
.about :focus-visible { outline-color: var(--on-night); }
.about .kicker { color: #FF8A80; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.big40 { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.big40 b { font: italic 800 clamp(170px, 24vw, 380px)/.76 var(--f-display); color: var(--red); letter-spacing: -.03em; }
.big40 small { padding-bottom: .5em; font: italic 800 clamp(24px, 2.4vw, 36px)/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--on-night); }
.about h2 { color: #fff; }
.about p { margin: 0 0 16px; color: var(--on-night-muted); font-size: 18px; max-width: 38em; }
.about .btn { margin-top: 12px; }
.skyline { display: block; width: 100%; height: auto; margin-top: clamp(40px, 6vw, 88px); }
.skyline .s { fill: var(--night); stroke: var(--on-night); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.skyline .l { fill: none; stroke: var(--on-night); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.skyline .roof { fill: var(--red); stroke: var(--on-night); stroke-width: 2.2; stroke-linejoin: round; }
.skyline .tex { opacity: .9; }
.js .skyline .s, .js .skyline .l { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.8s var(--ease); }
.js .skyline .roof, .js .skyline .tex { opacity: 0; transition: opacity .9s 1.5s; }
.js .skyline.in .s, .js .skyline.in .l { stroke-dashoffset: 0; }
.js .skyline.in .roof { opacity: 1; }
.js .skyline.in .tex { opacity: .9; }

/* ---------- Come lavoriamo: timeline in 3 passi da "Oggi" ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding-top: 84px; }
.step::before { content: ""; position: absolute; top: 28px; left: 0; right: -24px; height: 3px; background: var(--line-2); border-radius: 2px; }
.step::after { content: ""; position: absolute; top: 28px; left: 0; right: -24px; height: 3px; background: var(--red); border-radius: 2px; transform-origin: left; }
.step:last-child::before, .step:last-child::after { right: 0; }
.js .steps .step::after { transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * .35s); }
.js .steps.in .step::after { transform: scaleX(1); }
.step-dot { position: absolute; top: 0; left: 0; z-index: 1; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--red); color: var(--red); }
.step:first-child .step-dot { background: var(--red); color: #fff; }
.step-dot .ico { width: 26px; height: 26px; }
.step-when { font: 800 15px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: var(--red-700); }
.step h3 { margin: 10px 0 10px; font: italic 800 32px/1 var(--f-display); text-transform: uppercase; }
.step p { margin: 0; color: var(--ink-2); max-width: 30em; }

/* ---------- Domande ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside p { margin: 0 0 22px; font-size: 18px; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; list-style: none; cursor: pointer; font: 700 19px/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-700); }
.faq .plus { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line-2); color: var(--red); transition: transform .3s var(--ease), background-color .2s; }
.faq .plus .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: var(--ink-2); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 20px; align-items: stretch; }
.form-card { padding: clamp(22px, 3vw, 38px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.form-card h3, .contact-card h3 { margin: 0 0 6px; font: italic 800 34px/1 var(--f-display); text-transform: uppercase; }
.form-card .sub { margin: 0 0 24px; color: var(--muted); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, fieldset legend { font-weight: 600; font-size: 15.5px; }
.req { color: var(--red); font-weight: 700; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--red-100); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.err { display: none; font-size: 14.5px; color: var(--red-700); font-weight: 600; }
.field input[aria-invalid="true"] ~ .err { display: block; }
fieldset { margin: 0 0 18px; padding: 0; border: 0; }
fieldset legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot small { color: var(--muted); font-size: 14.5px; max-width: 30em; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: #E8F3EC; color: #1C5434; font-weight: 500; }
.form-status.show { display: block; }

.contact-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 38px); background: var(--night); color: var(--on-night); border-radius: var(--r-lg); }
.contact-card a { color: #fff; }
.contact-card :focus-visible { outline-color: var(--on-night); }
.contact-card h3 { color: #fff; }
.big-phone { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font: italic 800 clamp(38px, 4vw, 56px)/1 var(--f-display); }
.big-phone:hover span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.big-phone i { width: 54px; height: 54px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; }
.big-phone i .ico { width: 26px; height: 26px; color: #fff; stroke-width: 2.1; }
.contact-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-lines li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-night-muted); }
.contact-lines .ico { color: #FF8A80; margin-top: 3px; }
.contact-lines strong { color: #fff; font-weight: 600; }
.map { border-radius: var(--r); overflow: hidden; background: #EFE8DC; }
.map svg { width: 100%; height: auto; }
.map text { font-family: var(--f-body); }
.maplink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.maplink .ico { width: 18px; height: 18px; }

/* ---------- Footer scuro, a sezioni ---------- */
.site-footer { background: #0F1012; color: #CFC9BE; padding: clamp(48px, 6vw, 72px) 0 28px; font-size: 16px; }
.site-footer :focus-visible { outline-color: #fff; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand .brand { color: #fff; margin-bottom: 16px; }
.foot-brand p { margin: 0 0 18px; color: #B7B0A4; max-width: 30em; }
.fgroup summary { list-style: none; }
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup h4 { margin: 0 0 14px; font: italic 800 19px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.fgroup li, .contact-lines li { overflow-wrap: anywhere; min-width: 0; }
.site-footer a { color: #ECE7DE; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #2A2C30; font-size: 14.5px; color: #A29C92; }
.placeholder { color: #E8B04B; }

/* ---------- Barra chiamata su mobile ---------- */
.callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  align-items: center; justify-content: space-between; gap: 12px; padding: 9px 9px 9px 16px;
  background: rgba(20,21,23,.95); color: #fff; border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.55);
  transform: translateY(150%); transition: transform .35s var(--ease);
}
.callbar.show { transform: none; }
.callbar span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.callbar .btn { min-height: 48px; padding: 0 20px; }

/* ---------- Animazioni di ingresso (solo con JS, contenuti visibili senza) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js h1 .line > span { transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(.08s + var(--i) * .11s); }
@keyframes rise { to { transform: none; } }
.js .hero-art .house { opacity: 0; transform: translateY(18px); animation: fadeUp 1s .25s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.js .pin { opacity: 0; animation: fadeIn .45s var(--ease) forwards; animation-delay: calc(1s + var(--i) * .09s); }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav a { padding: 0 10px; font-size: 15px; }
  .header-cta .long { display: none; }
}
@media (max-width: 1120px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; width: 100%; bottom: 0; z-index: 49; margin: 0;
    padding: 20px var(--gutter) 32px; overflow-y: auto; background: var(--paper);
    opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none;
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .nav-call { display: grid; gap: 10px; padding: 18px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
  .nav .nav-call .btn { justify-self: start; height: auto; padding: 0 22px; border: 0; background: var(--red); color: #fff; font-size: 17px; }
  .nav .nav-call .btn .ico { color: #fff; }
  .nav-call small { color: var(--muted); font-size: 14.5px; }
  .nav ul { flex-direction: column; gap: 8px; }
  .nav a { height: 58px; padding: 0 18px; font-size: 19px; background: #fff; border: 1px solid var(--line); }
  .nav a .ico { width: 22px; height: 22px; }
  .nav a[aria-current="location"]::after { display: none; }
  .header-cta { margin-left: auto; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-open { overflow: hidden; }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 560px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head, .reno, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 16px; }
  .cases { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .faq-aside { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 36px 84px; min-height: 120px; }
  .step::before, .step::after { top: 58px; bottom: 0; left: 28px; right: auto; width: 3px; height: auto; }
  .js .steps .step::after { transform: scaleY(0); transform-origin: top; }
  .js .steps.in .step::after { transform: scaleY(1); }
  .step:last-child::before, .step:last-child::after { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .callbar { display: flex; }
  body { padding-bottom: 84px; }
}
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .svc { display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .svc > * { grid-column: 2; }
  .svc .svc-ico { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .svc-n { display: none; }
  .svc-urgent { display: flex; }
  .svc-urgent .svc-ico { margin-bottom: 14px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .ba-tag { top: auto; bottom: 10px; padding: 6px 10px; font-size: 12.5px; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .foot-grid { grid-template-columns: 1fr; gap: 0; }
  .foot-brand { margin-bottom: 18px; }
  .fgroup { border-top: 1px solid #2A2C30; }
  .fgroup summary { display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; }
  .fgroup summary::after { content: "+"; font: 700 24px/1 var(--f-body); color: #fff; }
  .fgroup[open] summary::after { content: "–"; }
  .fgroup h4 { margin: 0; }
  .fgroup ul { padding-bottom: 18px; }
  .brand-text b { font-size: 20px; }
  .brand-text span { font-size: 13px; }
  .brand-mark { width: 42px; height: 30px; }
  .badge24 { width: 96px; height: 96px; left: 0; top: 0; bottom: auto; }
  .badge24 .core { width: 46px; height: 46px; }
}
@media (max-width: 480px) {
  .header-cta { padding: 0 14px; }
  .header-cta .short { display: none; }
  .menu-toggle .label { display: none; }
  .site-header .wrap { gap: 10px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  .hero .btn-primary { padding: 0 22px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero-art .house, .js .pin { opacity: 1; transform: none; }
  .js h1 .line > span { transform: none; }
  .js .skyline .s, .js .skyline .l { stroke-dashoffset: 0; }
  .js .skyline .roof, .js .skyline .tex { opacity: 1; }
  .js .steps .step::after { transform: none; }
}

/* ==========================================================================
   Pagine servizio (idraulico-lucca, elettricista-lucca, fabbro-lucca…)
   ========================================================================== */
.crumbs { padding-top: 18px; font-size: 14.5px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.hero-sub { padding-top: clamp(16px, 2.5vw, 32px); }
.hero-sub h1 { font-size: clamp(46px, 5.6vw, 94px); }

/* "Mentre ci chiami": consigli pratici, utili anche ai motori di risposta */
.tips { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--night); color: var(--on-night); box-shadow: var(--shadow); background-image: radial-gradient(120% 90% at 100% 0%, rgba(204,42,38,.42), transparent 60%); }
.tips-kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--f-display); letter-spacing: .18em; text-transform: uppercase; color: #FF8A80; }
.tips-kicker .ico { width: 20px; height: 20px; }
.tips ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 20px; }
.tips li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.tips li > b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font: italic 800 22px/1 var(--f-display); }
.tips h2 { margin: 2px 0 4px; font: italic 800 24px/1.05 var(--f-display); text-transform: uppercase; color: #fff; }
.tips p { margin: 0; font-size: 16px; color: var(--on-night-muted); }

/* "In breve": risposta diretta in apertura (GEO) */
.brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--r-lg); }
.brief h2 { margin: 6px 0 0; font-size: clamp(30px, 3vw, 44px); }
.brief p { margin: 0 0 14px; font-size: 18px; color: var(--ink-2); }
.brief dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 16px; }
.brief dt { font-weight: 700; }
.brief dd { margin: 0; color: var(--ink-2); }

.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.job { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.job .svc-ico { width: 48px; height: 48px; margin-bottom: 14px; }
.job .svc-ico .ico { width: 24px; height: 24px; }
.job h3 { margin: 0 0 8px; font: italic 800 26px/1 var(--f-display); text-transform: uppercase; }
.job p { margin: 0; font-size: 16px; color: var(--muted); }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.why b { display: block; font: italic 800 clamp(44px, 4.4vw, 64px)/.9 var(--f-display); color: var(--red); }
.why h3 { margin: 12px 0 8px; font: italic 800 28px/1 var(--f-display); text-transform: uppercase; }
.why p { margin: 0; color: var(--ink-2); }

.related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; font: italic 800 22px/1.05 var(--f-display); text-transform: uppercase; transition: transform .25s var(--ease), border-color .25s; }
.rel:hover { transform: translateY(-2px); border-color: var(--red); }
.rel .svc-ico { width: 44px; height: 44px; margin: 0; flex: none; }
.rel .svc-ico .ico { width: 22px; height: 22px; }
.rel > .ico { margin-left: auto; color: var(--red); }

.cta-band { padding: clamp(48px, 6vw, 84px) 0; background: var(--red); color: #fff; background-image: radial-gradient(70% 120% at 100% 0%, rgba(255,255,255,.16), transparent 60%); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; color: #fff; }
.cta-band p { margin: 8px 0 0; font-size: 18px; color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

@media (max-width: 1240px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .brief { grid-template-columns: 1fr; }
  .jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: 1fr; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .jobs, .related { grid-template-columns: 1fr; }
  .brief dl { grid-template-columns: 1fr; gap: 2px; }
  .brief dd { margin-bottom: 8px; }
}

/* ---------- Pagine legali ---------- */
.legal .wrap { max-width: 860px; }
.legal h1 { margin: 14px 0 8px; font-size: clamp(44px, 5vw, 72px); }
.legal-date { margin: 0 0 28px; color: var(--muted); font-size: 15.5px; }
.legal-brief { margin: 0 0 36px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--r-lg); }
.legal-brief p { margin: 0; font-size: 18px; }
.legal h2 { margin: 40px 0 12px; font-size: clamp(28px, 2.6vw, 38px); }
.legal h3 { margin: 22px 0 6px; font: 700 19px/1.35 var(--f-body); }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
