/* ============================================================
   Pavimenti Industriali — foglio di stile condiviso
   Struttura:
   1. Font locali          5. Bottoni e link
   2. Variabili e reset    6. Componenti di pagina
   3. Layout base          7. Form preventivo
   4. Navigazione          8. Footer
                           9. Responsive
   ============================================================ */

/* ---------- 1. Font locali (subset latin) ---------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-semicondensed-500.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-semicondensed-600.woff2") format("woff2");
}
@font-face {
  font-family: 'Barlow Semi Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-semicondensed-700.woff2") format("woff2");
}

/* ---------- 2. Variabili e reset ---------- */
:root {
  --dark: #20262B;          /* testo principale / nav / bottoni scuri */
  --dark-2: #313941;        /* sezioni scure */
  --dark-3: #2B3238;        /* placeholder foto scuri */
  --dark-footer: #1A2024;
  --bg: #F3F4F6;            /* fondo pagina / sezioni grigie */
  --border: #E2E5E8;
  --border-light: #ECEEF0;
  --bronze: #A67C45;        /* accento su fondo chiaro */
  --bronze-light: #C49A63;  /* accento su fondo scuro */
  --text-2: #3D444A;
  --text-3: #4F565C;
  --text-4: #5B6268;
  --muted: #828A90;
  --muted-2: #A6ADB3;
  --font-base: 'Barlow', system-ui, sans-serif;
  --font-display: 'Barlow Semi Condensed', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font-base);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
::selection { background: var(--bronze); color: #fff; }

/* Animazione reveal allo scorrimento (attiva solo con JS) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
/* "Riduci movimento" attivo nel sistema: niente comparse animate né scorrimento morbido
   (il video della home viene fermato da main.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 3. Layout base ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 80px 0; }
.section-white { background: #fff; border-bottom: 1px solid var(--border); }
.section-grey  { background: var(--bg); border-bottom: 1px solid var(--border); }
.section-dark  { background: var(--dark-2); color: #fff; }

/* Tipografia ricorrente */
.kicker {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 16px;
}
.section-dark .kicker,
.page-hero .kicker { color: var(--bronze-light); }

.h-xl, .h-page, .h-lg, .h-md, .h-sm {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.h-xl   { font-size: clamp(40px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.005em; }
.h-page { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.005em; }
.h-lg   { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.08; }
.h-md   { font-size: clamp(26px, 3.1vw, 38px); line-height: 1.1; }
.h-sm   { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.12; }

/* ---------- 4. Navigazione ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.07); }
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

/* Logo testuale — le "II" centrali sono l'elemento distintivo */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--dark);
  display: inline-flex;
  align-items: baseline;
}
.logo .logo-ii {
  display: inline-block;
  color: var(--bronze);
  font-size: 1.38em;
  font-weight: 700;
  line-height: .9;
  margin: 0 1px;
  letter-spacing: -.01em;
}
.logo-footer { color: #fff; }
.logo-footer .logo-ii { color: var(--bronze-light); }
.logo-footer .logo-srl {
  margin-left: .45em; font-size: .62em; font-weight: 600;
  letter-spacing: .14em; color: rgba(255,255,255,.62);
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-2);
}
.nav-links a.active { font-weight: 600; color: var(--bronze); }
.nav-links a.lang-switch {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid #D3D7DA;
  padding: 6px 10px;
}
.nav-links a.lang-switch:hover { color: var(--dark); border-color: var(--dark); }

/* Pulsante "Chiama" nella barra: solo su telefono/tablet, sempre a portata di pollice */
.nav-call {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--bronze);
  color: #fff;
  flex-shrink: 0;
}
.nav-call svg { width: 19px; height: 19px; display: block; }
.nav-call:active { background: var(--bronze-light); }
.nav-call:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  display: block;
}
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 32px 22px;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 13px 4px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ---------- 5. Bottoni e link ---------- */
.btn {
  display: inline-block;
  padding: 15px 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-dark  { background: var(--dark); color: #fff; }
.btn-white { background: #fff; color: var(--dark); }
.btn-outline { border: 1.5px solid var(--dark); color: var(--dark); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }

.link-more {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--dark);
  border-bottom: 1.5px solid var(--bronze);
  padding-bottom: 3px;
}

/* ---------- 6. Componenti di pagina ---------- */

/* Hero home (video drone) */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--dark-2);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 20px);
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,22,26,.86) 0%, rgba(18,22,26,.12) 56%, rgba(18,22,26,.46) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 70px;
}
.hero-note {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.22);
  padding: 7px 13px;
  margin: 0 0 22px;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F2CE8A;
  text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 16px rgba(0,0,0,.55);
  margin: 0 0 22px;
}
.hero .h-xl { color: #fff; max-width: 900px; }
h1.hero-eyebrow { font-family: var(--font-base); line-height: 1.4; }
.hero .h-xl { font-size: clamp(30px, 4.3vw, 50px); }
@media (min-width: 1180px) { .hero .h-xl { white-space: nowrap; max-width: none; } }
.hero-sub {
  font-size: 17px;
  line-height: 1.62;
  color: rgba(255,255,255,.62);
  margin: 24px 0 0;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* "Modalità cinema": se chi guarda resta fermo sul video, testo e velatura sfumano
   via; al primo movimento (mouse, tocco, scroll, tastiera) tornano. */
.hero-content, .hero-scrim { transition: opacity .9s ease, transform .9s ease; }
.hero.is-cinema .hero-content { opacity: 0; transform: translateY(10px); pointer-events: none; }
.hero.is-cinema .hero-scrim { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  .hero.is-cinema .hero-content { transform: none; }
}

/* Pulsante "Guarda il video" a schermo intero: solo su telefono */
.hero-full {
  position: absolute;
  right: 62px;
  bottom: 16px;
  z-index: 4;
  height: 38px;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 0 14px 0 12px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(18,22,26,.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
}
.hero-full svg { width: 16px; height: 16px; display: block; }
.hero-full:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .hero-full { display: inline-flex; }
}
@media (min-width: 641px) and (max-width: 767px) {
  .hero-full { right: 72px; bottom: 22px; height: 42px; } /* accanto al pulsante audio più grande */
}
/* Video a schermo intero: intero, visibile e con i comandi */
.hero video:fullscreen { object-fit: contain; opacity: 1; pointer-events: auto; background: #000; }
.hero video:-webkit-full-screen { object-fit: contain; opacity: 1; pointer-events: auto; background: #000; }

/* Toggle audio del video hero */
.hero-mute {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(18,22,26,.42);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.hero-mute:hover { background: rgba(18,22,26,.72); border-color: rgba(255,255,255,.6); }
.hero-mute:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-mute svg { width: 20px; height: 20px; display: block; }
.hero-mute .ic-muted,
.hero-mute .ic-unmuted { display: none; }
.hero-mute.is-muted .ic-muted { display: block; }
.hero-mute:not(.is-muted) .ic-unmuted { display: block; }
@media (max-width: 640px) {
  .hero-mute { right: 16px; bottom: 16px; width: 38px; height: 38px; }
  .hero-mute svg { width: 18px; height: 18px; }
}

/* Hero interno delle pagine */
.page-hero { background: var(--dark-2); color: #fff; }
.page-hero .container { padding-top: 74px; padding-bottom: 70px; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,.58);
  margin: 24px 0 0;
  max-width: 560px;
}

/* Striscia certificazioni (home) */
.cert-strip { background: #fff; border-bottom: 1px solid var(--border); }
.cert-strip .container {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #6C737A;
}
.cert-strip .cert-label {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* Griglie ricorrenti */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col.align-end { align-items: end; }
.two-col.align-center { align-items: center; }
.two-col.align-start { align-items: start; }
.split-16 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

/* Pilastri (home, tre colonne con divisori) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.pillar { padding: 32px; border-right: 1px solid var(--border); }
.pillar:first-child { padding-left: 0; padding-bottom: 8px; }
.pillar:last-child { border-right: none; padding-right: 0; padding-bottom: 8px; }
.pillar-tick { width: 32px; height: 2px; background: var(--bronze); margin-bottom: 20px; }
.pillar h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.pillar p { font-size: 13.5px; line-height: 1.68; color: var(--text-4); margin: 0; }

/* Card soluzione (home) */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.sol-card { border: 1px solid var(--border); background: #fff; display: block; }
.sol-card-body { padding: 24px; }
.sol-card-cat {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 11px;
}
.sol-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.sol-card p { font-size: 13px; line-height: 1.62; color: var(--text-4); margin: 0 0 18px; }
.sol-card .more { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--dark); }

/* Soluzioni secondarie in riga (home) */
.sol-sec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.sol-sec-item {
  padding: 26px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.sol-sec-item .num { font-size: 11px; color: #B3BABF; }
.sol-sec-item h4 { font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.sol-sec-item p { font-size: 12.5px; line-height: 1.55; color: var(--text-4); margin: 0; }

/* Griglia settori (fondo scuro) */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255,255,255,.1);
  border-left: 1px solid rgba(255,255,255,.1);
}
.sector-grid > div {
  padding: 22px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sector-grid h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.sector-grid p { font-size: 12px; color: rgba(255,255,255,.46); margin: 0; }

/* Griglia "perché sceglierci" / certificazioni */
.why-grid, .cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.why-grid > div, .cert-grid > div {
  padding: 30px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cert-grid > div { padding: 28px 26px; }
.why-grid .num { font-size: 11px; color: var(--bronze-light); }
.why-grid h3 { font-size: 16px; font-weight: 700; margin: 14px 0 9px; }
.why-grid p { font-size: 13px; line-height: 1.66; color: var(--text-4); margin: 0; }
.cert-grid .cert-name { font-size: 13px; font-weight: 500; color: var(--dark); margin: 0 0 8px; }
.cert-grid p { font-size: 12.5px; line-height: 1.6; color: var(--text-4); margin: 0; }
.cert-grid .cert-dark {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cert-grid .cert-dark .cert-name { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.55; margin: 0 0 4px; }
.cert-grid .cert-dark p { font-size: 12px; color: rgba(255,255,255,.55); }

/* Card progetto */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-grid.gap-22 { gap: 22px; }
.proj-card { display: block; background: #fff; border: 1px solid var(--border); cursor: pointer; }
.proj-card.bare { background: none; border: none; cursor: default; }
.proj-card-body { padding: 20px; }
.proj-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; line-height: 1.25; }
.proj-card.bare h3 { font-size: 15px; margin: 16px 0 4px; }
.proj-card .meta { font-size: 11px; letter-spacing: .03em; color: var(--muted); margin: 0; }

/* Placeholder foto / video / mappa */
.ph {
  position: relative;
  background: #D3D7DA;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.028) 0 2px, transparent 2px 15px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.ph-43 { aspect-ratio: 4 / 3; }
.ph-fixed { height: 188px; }
.ph .ph-label {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-dark {
  background: var(--dark-3);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 17px);
  padding: 18px;
}
.ph-dark .ph-label {
  font-size: 10.5px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.32);
  border: 1px solid rgba(255,255,255,.14);
  padding: 5px 11px;
}
.ph .cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(28,27,25,.78);
  padding: 4px 9px;
}
/* Foto reale al posto del segnaposto: stesso riquadro, immagine a tutto campo */
.ph-img { padding: 0; background: var(--dark-3); overflow: hidden; }
.ph-img img, .lightbox-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.ph-img .cat-tag { z-index: 1; }
.proj-card:not(.bare) .ph-img img { transition: transform .5s ease; }
.proj-card:not(.bare):hover .ph-img img { transform: scale(1.03); }
.sol-card .ph-img img { transition: transform .5s ease; }
.sol-card:hover .ph-img img { transform: scale(1.03); }
.ph-map {
  height: 300px;
  background: #E7EAEC;
  background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.025) 0 2px, transparent 2px 16px);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.ph-map .ph-label {
  font-size: 11px;
  letter-spacing: .12em;
  border: 1px solid #C2C8CD;
  padding: 7px 14px;
  background: var(--bg);
}
.map-embed {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--border);
}

/* Numeri azienda */
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num-grid > div { padding: 44px 32px; border-right: 1px solid rgba(255,255,255,.1); }
.num-grid > div:last-child { border-right: none; }
.num-grid .num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.num-grid .num .accent { color: var(--bronze-light); }
.num-grid .num .unit { font-size: .5em; font-weight: 600; }
.num-grid p { font-size: 12.5px; color: rgba(255,255,255,.5); margin: 10px 0 0; }
/* varianti pagina Azienda IT: numeri centrati (3) + norme 2x2 */
.num-grid.num-3 > div { text-align: center; }
@media (min-width: 861px) {
  .num-grid.num-3 { grid-template-columns: repeat(3, 1fr); }
  .cert-grid.cert-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Metodo in 5 fasi (azienda) */
.method-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.method-row .step {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #C2C8CD;
}
.method-row h3 { font-size: 18px; font-weight: 700; margin: 0; }
.method-row p { font-size: 14px; line-height: 1.7; color: var(--text-4); margin: 0; }

/* Righe soluzione (pagina soluzioni) */
.sol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sol-row + .sol-row { margin-top: 72px; }
.spec-list { border-top: 1px solid var(--border); display: flex; flex-direction: column; }
.spec-list > div {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.spec-list > div:last-child { border-bottom: none; }
.spec-list .k { min-width: 150px; font-weight: 600; }
.spec-list .v { color: var(--text-4); }

/* Card servizi secondari (pagina soluzioni) */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sec-card { border: 1px solid var(--border); padding: 30px 28px; }
.sec-card .num { font-size: 11px; color: var(--bronze-light); }
.sec-card h3 { font-size: 18px; font-weight: 700; margin: 14px 0 10px; }
.sec-card p { font-size: 13.5px; line-height: 1.7; color: var(--text-4); margin: 0 0 16px; }
.sec-card .tags { font-size: 11px; color: var(--muted); margin: 0; }

/* Filtri progetti */
.proj-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 26px;
}
.fbtn {
  font-family: var(--font-base);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid #D3D7DA;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.fbtn.active {
  border-color: var(--dark);
  background: var(--dark);
  color: #fff;
}

/* Lightbox progetti */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(14,13,11,.86); }
.lightbox-panel {
  position: relative;
  z-index: 1;
  background: #fff;
  max-width: 880px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--dark);
  line-height: 1;
}
.lightbox-media {
  position: relative;
  background: var(--dark-3);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 17px);
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.lightbox-media .ph-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.34);
  border: 1px solid rgba(255,255,255,.14);
  padding: 5px 10px;
}
.lightbox-media.has-img { padding: 0; }
.lightbox-media.has-img .ph-label { display: none; }
.lightbox-detail { padding: 36px 34px; }
.lightbox-detail .cat {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 12px;
}
.lightbox-detail h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 8px;
}
.lightbox-detail .meta { font-size: 11.5px; letter-spacing: .03em; color: var(--muted); margin: 0 0 20px; }
.lightbox-detail .desc { font-size: 14px; line-height: 1.74; color: var(--text-3); margin: 0 0 22px; }
.lightbox-specs {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.lightbox-specs > div { display: flex; gap: 14px; font-size: 12.5px; }
.lightbox-specs .k { min-width: 120px; font-weight: 600; color: var(--dark); flex-shrink: 0; }
.lightbox-specs .v { color: var(--text-4); }
.lightbox-detail .btn { margin-top: 24px; padding: 13px 24px; font-size: 11.5px; }

/* Split contatti (imprese / privati) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.split-grid > div {
  padding: 48px 44px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.split-grid .cat {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 14px;
}
.split-grid h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.split-grid p:last-child { font-size: 14px; line-height: 1.72; color: var(--text-3); margin: 0; }

/* Blocco info contatti */
.info-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 32px; margin-top: 36px; }
.info-list .label {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.info-list a { font-weight: 600; color: var(--dark); }
.info-list .big { font-size: 18px; }
.info-list .mid { font-size: 16px; word-break: break-all; }
.info-list p { margin: 0; }
.info-list .addr { font-size: 15px; font-weight: 500; color: var(--dark); line-height: 1.5; }
.info-list .note { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* Ancora del form sotto la nav sticky */
#preventivo { scroll-margin-top: 90px; }

/* ---------- 7. Form preventivo ---------- */
.quote-form { border: 1px solid var(--border); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; }
.form-row .form-field:first-child { border-right: 1px solid var(--border); }
.form-field { display: block; padding: 16px 18px; border-bottom: 1px solid var(--border); transition: background .15s ease, box-shadow .15s ease; }
/* Campo attivo: barra bronzo a sinistra + sfondo chiaro (il contorno standard è tolto sotto) */
.form-field:focus-within { background: #FAF6F0; box-shadow: inset 3px 0 0 var(--bronze); }
.form-field:focus-within > span { color: var(--bronze); }
.form-field > span {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-base);
  font-size: 15px;
  color: var(--dark);
}
.form-field select { cursor: pointer; }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-foot {
  padding: 20px 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot .privacy { font-size: 11.5px; color: var(--muted); max-width: 300px; line-height: 1.5; }
.form-foot .btn { border: none; padding: 17px 46px; font-size: 13px; font-family: var(--font-base); }
.form-foot .btn[disabled] { opacity: .6; cursor: wait; }
.form-error {
  flex-basis: 100%; margin: 0; padding: 12px 14px;
  background: #FBEDEA; border-left: 3px solid #B5462F; color: #7A2A1B;
  font-size: 13px; line-height: 1.6; text-align: left;
}
.form-error a { color: inherit; font-weight: 600; }
/* campo trappola per i bot: invisibile alle persone */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 54px 44px;
  text-align: center;
}
.form-success.visible { display: block; }
.form-success .check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success .check span { color: var(--bronze-light); font-size: 24px; line-height: 1; }
.form-success h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.form-success p { font-size: 14px; line-height: 1.7; color: var(--text-3); max-width: 360px; margin: 0 auto; }

/* ---------- 8. Footer (compatto) ---------- */
.site-footer { background: var(--dark-footer); color: rgba(255,255,255,.6); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding: 44px 0 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,.4);
  margin: 14px 0 0;
  max-width: 300px;
}
.footer-title {
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin: 0 0 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.footer-links a { color: rgba(255,255,255,.55); }
.footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-contact a { color: rgba(255,255,255,.55); }
.footer-contact .btn {
  margin-top: 12px;
  align-self: flex-start;
  padding: 12px 22px;
  font-size: 11px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
  flex-wrap: wrap;
  font-size: 11px;
  color: rgba(255,255,255,.28);
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Privacy / pagina legale ---------- */
.legal { padding-top: 24px; padding-bottom: 90px; }
.legal .container { max-width: 820px; }
.legal .updated { font-size: 12.5px; color: var(--text-4); margin: 0 0 26px; }
.legal h2 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--dark); margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 6px; }
.legal p, .legal li { font-size: 14.5px; line-height: 1.75; color: var(--text-3); margin: 0 0 13px; }
.legal ul { margin: 0 0 13px; padding-left: 20px; }
.legal a { color: var(--bronze); }
.legal .note { background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--bronze); padding: 14px 18px; font-size: 13.5px; color: var(--text-2); margin: 0 0 13px; }

/* consenso privacy nel form */
.form-consent { display: flex; align-items: flex-start; gap: 11px; padding: 16px 18px; margin: 0; font-size: 13px; line-height: 1.65; color: var(--text-3); cursor: pointer; }
.form-consent input { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--dark); }
.form-consent a { color: var(--bronze); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  max-width: 440px; width: calc(100% - 40px);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--dark); color: #fff;
  border-top: 3px solid var(--bronze-light);
  border-radius: 10px; padding: 22px 24px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.38);
  font-size: 13px; line-height: 1.6;
  transform: translateY(16px); opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .28s ease, transform .28s ease, visibility 0s linear .28s;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.cookie-banner h4 {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  letter-spacing: .02em; margin: 0 0 8px; color: #fff;
}
.cookie-banner p { margin: 0 0 16px; color: rgba(255,255,255,.74); }
.cookie-banner a { color: var(--bronze-light); }
.ck-close {
  display: flex; align-items: center; gap: 6px; margin: -6px -8px 6px auto;
  background: none; border: none; padding: 4px 8px; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: 11.5px; font-family: inherit;
}
.ck-close span { font-size: 18px; line-height: 1; }
.ck-close:hover { color: #fff; }
.ck-prefs { border-top: 1px solid rgba(255,255,255,.12); margin: 0 0 16px; }
.ck-cat { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.ck-cat p { margin: 4px 0 0; font-size: 12px; color: rgba(255,255,255,.6); }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
label.ck-cat-head { cursor: pointer; }
.ck-always { font-size: 11px; font-weight: 600; color: var(--bronze-light); text-transform: uppercase; letter-spacing: .06em; }
.ck-switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.ck-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ck-switch span {
  position: absolute; inset: 0; border-radius: 22px; background: rgba(255,255,255,.22);
  transition: background .2s ease; pointer-events: none;
}
.ck-switch span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .2s ease;
}
.ck-switch input:checked + span { background: var(--bronze); }
.ck-switch input:checked + span::after { transform: translateX(16px); }
.ck-switch input:focus-visible + span { outline: 2px solid var(--bronze-light); outline-offset: 2px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions button {
  flex: 1 1 0; min-width: 0; padding: 11px 12px; border-radius: 6px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; font-family: inherit;
}
/* Accetta e Rifiuta hanno lo stesso peso visivo, come richiesto dal Garante */
.ck-accept, .ck-reject { background: var(--bronze); color: #fff; }
.ck-accept:hover, .ck-reject:hover { background: var(--bronze-light); }
.ck-custom { background: transparent; color: #fff; border-color: rgba(255,255,255,.3) !important; }
.ck-custom:hover { border-color: #fff !important; }
.cookie-banner.prefs-open .ck-custom { background: #fff; color: var(--dark); }
.cookie-actions button:focus-visible, .ck-close:focus-visible { outline: 2px solid var(--bronze-light); outline-offset: 2px; }
.cookie-reopen {
  position: fixed; left: 20px; bottom: 20px; z-index: 999;
  background: var(--dark); color: #fff; border: none;
  border-radius: 40px; padding: 9px 15px; font-size: 12px; font-weight: 600;
  cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  display: none; align-items: center; gap: 6px; font-family: inherit;
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-reopen.show { display: inline-flex; }
.cookie-reopen.ck-hidden { opacity: 0; transform: translateY(10px); pointer-events: none; }
.cookie-reopen:hover { background: var(--dark-2); }
@media (max-width: 600px) {
  .cookie-banner {
    left: 0; bottom: 0; width: 100%; max-width: none;
    border-radius: 12px 12px 0 0; padding: 18px 16px 16px;
    max-height: 85vh;
  }
  .cookie-actions .ck-custom { flex-basis: 100%; order: 3; }
  .cookie-reopen { left: 16px; bottom: 16px; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 920px) {
  .sol-row { grid-template-columns: 1fr; gap: 32px; }
  .sec-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-call { display: inline-flex; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .split-16 { grid-template-columns: 1fr; gap: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child {
    padding: 32px 0 8px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .pillar:last-child { border-bottom: none; }
  .sol-grid { grid-template-columns: 1fr; }
  .sol-sec { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: 1fr; }
  .why-grid, .cert-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .num-grid > div { border-bottom: 1px solid rgba(255,255,255,.1); }
  .method-row { grid-template-columns: 40px 1fr; }
  .method-row p { grid-column: 2; }
  .split-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; gap: 48px; }
  .info-list { margin-top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-row .form-field:first-child { border-right: none; }
  .lightbox-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .num-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
