/* ============================================================
   FY Impresa di Pulizia SAGL — stylesheet (luxury redesign)
   GDPR-compliant: zero external requests. Self-hosted fonts.
   Square edges · full-viewport sections · glass header.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Libre Baskerville";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/LibreBaskerville.woff2") format("woff2-variations"),
       url("../fonts/LibreBaskerville.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  /* Navy del logo — superfici scure, testo */
  --ink-900: #15212D;
  --ink-800: #20303F;
  --ink-700: #2C3E50;
  --ink-600: #4A5B6E;
  --ink-500: #5E6E81;

  /* Carta chiara — superfici chiare */
  --bone:    #FAF9F6;
  --bone-2:  #F2F0EA;
  --bone-3:  #EAE8E0;
  --stone:   #D8D6CE;

  /* Arancio del logo */
  --accent-700: #9C3F0D;
  --accent-600: #B5490F;
  --accent-500: #D85A15;   /* primary */
  --accent-400: #E37A3E;
  --accent-300: #E8956A;

  /* Hairline neutra (ex gold) */
  --gold: rgba(32, 48, 63, .30);

  --white: #FFFFFF;
  --text:  #38485B;
  --text-muted: #5E6E81;

  --border:        rgba(32, 48, 63, .14);
  --border-strong: rgba(32, 48, 63, .30);
  --border-on-dark: rgba(255, 255, 255, .15);

  /* Square edges everywhere */
  --radius-sm: 0px;
  --radius:    0px;
  --radius-lg: 0px;
  --radius-xl: 0px;

  --shadow-sm: 0 1px 2px rgba(21, 33, 45, .05);
  --shadow:    0 24px 60px rgba(21, 33, 45, .14);
  --shadow-lg: 0 40px 90px rgba(21, 33, 45, .28);

  --container: 1280px;
  --pad-side: 32px;
  --header-h: 76px;

  --sans:  "Libre Baskerville", Georgia, "Times New Roman", Times, serif;

  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* clip horizontal overflow at the ROOT — on iOS Safari the body's clip does
     not reliably propagate to the viewport, which let sub-pixel overflow scroll
     sideways on mobile. 'clip' (not 'hidden') keeps the sticky process working. */
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: clip;
}

/* anchor-link offset under the fixed header is handled in JS */

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-800);
  line-height: 1.18;
  margin: 0;
}

/* Legacy markup helper — kept as a no-op so existing <span class="serif"> tags
   in titles inherit the surrounding text (no color change, no italic). */
.serif {
  font: inherit;
  color: inherit;
}

.h-display {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p { margin: 0 0 1em; color: var(--text-muted); }
p.lead { color: var(--text); font-size: 1.1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-side);
}

/* Full-viewport "frame" sections (each section is a hero)
   padding-top compensates for the fixed header so content centers in the
   visible area below it (the hero already has its own treatment) */
.section-full {
  /* exactly the height visible *below* the fixed header — so when a menu link
     jumps here (JS lands it at --header-h), the whole section sits in view with
     no content tucked under the bar and no dead space pushing it down */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: clamp(1.25rem, 3.25vh, 2.85rem);
  padding-bottom: clamp(1.25rem, 3.25vh, 2.85rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-500);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow-on-dark { color: var(--accent-300); }

/* ---------- Buttons (square) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.8rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .3s var(--ease-out), color .3s var(--ease-out),
              border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
  white-space: nowrap;
  text-align: center;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: var(--accent-500);
  color: var(--white);
  border: 1px solid var(--accent-500);
}
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .5);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--ink-800);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--ink-800); background: var(--ink-900); color: var(--white); }

.btn-lg { padding: 1.15rem 2.1rem; font-size: 0.95rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-800);
  position: relative;
  padding-bottom: 5px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(0); transform-origin: left; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============================================================
   HEADER — glass bar · centered logo on scroll · menu left
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--bone);
  box-shadow: inset 0 -1px 0 var(--border);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* Menu button — left */
.nav-toggle {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 44px;
  padding: 0 0.4rem;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color .35s var(--ease-out);
}
.site-header.is-scrolled .nav-toggle { color: var(--ink-800); }
.nav-toggle .bars {
  position: relative;
  width: 26px;
  height: 12px;
  flex-shrink: 0;
}
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease-out), opacity .25s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle .bars span:nth-child(3) { bottom: 0; }
.nav-toggle .bars span:nth-child(2) { width: 70%; }
.nav-toggle-label { display: inline; }

/* Brand — center, hidden over hero, fades in on scroll */
.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.site-header.is-scrolled .brand {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.brand img { height: 46px; width: auto; aspect-ratio: 800 / 406; object-fit: cover; object-position: center; }

/* CTA — right */
.nav-cta {
  grid-column: 3;
  justify-self: end;
  padding: 0.7rem 0.95rem;   /* more compact so it sits further from the centred logo */
  font-size: 0.72rem;
}
.site-header:not(.is-scrolled) .nav-cta {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .5);
}
.site-header:not(.is-scrolled) .nav-cta:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--white);
}

/* ---------- Full-screen overlay menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(21, 33, 45, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility .5s var(--ease-out);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay[data-open="true"] { opacity: 1; visibility: visible; }

.menu-overlay-top {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-side);
  flex-shrink: 0;
}
.menu-overlay-top img { height: 46px; width: auto; aspect-ratio: 800 / 406; object-fit: cover; object-position: center; filter: brightness(0) invert(1); }
.menu-close {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.menu-close .x { position: relative; width: 22px; height: 22px; }
.menu-close .x::before,
.menu-close .x::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 100%; height: 1.5px; background: currentColor;
}
.menu-close .x::before { transform: translateY(-50%) rotate(45deg); }
.menu-close .x::after  { transform: translateY(-50%) rotate(-45deg); }

.menu-overlay-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: safe center;
  gap: 3rem;
  padding: 2rem var(--pad-side) 4rem;
  max-width: var(--container);
  margin-inline: auto;
  width: 100%;
  overflow-y: auto;
}
.menu-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: var(--white);
  width: max-content;
  max-width: 100%;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition: color .3s var(--ease-out);
}
.menu-overlay[data-open="true"] .menu-nav a {
  animation: menuIn .7s var(--ease-soft) forwards;
  animation-delay: var(--mi, 0s);
}
@keyframes menuIn { to { opacity: 1; transform: translateY(0); } }
.menu-nav a:hover { color: var(--accent-400); }
.menu-nav a .idx {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent-400);
  vertical-align: super;
  margin-right: 0.6rem;
}

.menu-aside { color: rgba(255, 255, 255, .7); }
.menu-aside h4 {
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.menu-aside p { color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
.menu-aside a.menu-contact {
  display: block;
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.menu-aside a.menu-contact:hover { color: var(--accent-400); }

body.menu-open { overflow: hidden; }

/* ============================================================
   HERO — centered logo + two contact buttons
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  animation: kenburns 24s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.04); }
  to   { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(21, 33, 45, .45) 0%, rgba(21, 33, 45, .55) 55%, rgba(21, 33, 45, .82) 100%),
    linear-gradient(180deg, rgba(21, 33, 45, .55) 0%, rgba(21, 33, 45, .50) 45%, rgba(21, 33, 45, .80) 100%);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.55rem;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
}

.hero-logo {
  display: block;
  width: clamp(260px, 42vw, 460px);
  margin-inline: auto;
  opacity: 0;
  transform: translateY(26px) scale(.97);
  transition: opacity 1s var(--ease-soft) .25s, transform 1.1s var(--ease-soft) .25s;
}
.hero-logo img {
  display: block;
  width: 100%;
  aspect-ratio: 800 / 406;
  object-fit: cover;
  object-position: center;
  filter: brightness(0) invert(1);
}
body.ready .hero-logo { opacity: 1; transform: none; }

.hero-title {
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.6vw, 2.15rem);
  line-height: 1.45;
  letter-spacing: 0;
  margin: 0 auto;
  max-width: 26ch;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease-out) .45s, transform .9s var(--ease-out) .45s;
}
.hero-title .serif {
  color: inherit;
  font-size: inherit;
}
body.ready .hero-title { opacity: 1; transform: none; }

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.2rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease-out) .65s, transform .9s var(--ease-out) .65s;
}
body.ready .hero-cta { opacity: 1; transform: none; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head-light h2 { color: var(--white); }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  max-width: none;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-head-row h2 { max-width: 22ch; }

/* ============================================================
   ABOUT — full-bleed: photo fills left half, text fills right half
   ============================================================ */
.about {
  background: var(--bone);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  padding: 0;
}
.about-grid { display: contents; }
.about-media {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
}
.about-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 40%;
}
.about-badge {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: var(--ink-900);
  color: var(--white);
  padding: 1.3rem 1.6rem;
  border-left: 2px solid var(--accent-500);
  text-align: left;
  z-index: 1;
}
.about-badge strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 0.45rem;
  color: var(--white);
}
.about-badge span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
}
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* section already starts below the header; vh-based vertical padding keeps
     the whole block inside the viewport on shorter laptops */
  padding: clamp(0.85rem, 2.2vh, 2.75rem) clamp(2.5rem, 6vw, 5rem);
  max-width: 720px;
}
/* Titolo e testo più contenuti: lasciano respirare il blocco nel viewport */
.about-text h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.25;
  margin-bottom: clamp(1.4rem, 2.8vh, 2.1rem);
  max-width: 18ch;
}
.about-text p {
  font-size: 0.97rem;
  line-height: 1.85;
  max-width: 52ch;
  margin-bottom: clamp(1rem, 1.8vh, 1.4rem);
}
.about-text p.lead { font-size: 1.02rem; }
.about-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vh, 2.4rem);
}
/* Compact Google rating — social proof without a full reviews section */
.google-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  margin-top: clamp(1.4rem, 2.8vh, 2rem);
  color: var(--text);
}
.google-rating-logo { flex-shrink: 0; display: block; }
.google-rating-score {
  font-weight: 700;
  color: var(--ink-800);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.google-rating .review-stars { font-size: 0.9rem; }
.google-rating-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-600);
  transition: color .3s var(--ease-out);
}
.google-rating-go {
  width: 14px; height: 14px;
  color: var(--ink-500);
  transition: transform .3s var(--ease-out);
}
@media (hover: hover) {
  .google-rating:hover .google-rating-label { color: var(--accent-600); }
  .google-rating:hover .google-rating-go { transform: translateX(4px); }
}

/* ============================================================
   SERVICES — editorial grid (3 × 2 desktop, 1 column mobile)
   ============================================================ */
.services {
  /* override .section-full: auto height */
  min-height: 0;
  display: block;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 128px);
  background: var(--bone);
  border-top: 1px solid var(--border);
}
.services-head { margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.services-head .eyebrow { margin-bottom: 1rem; }
.services-head h2 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  line-height: 1.22;
  max-width: 24ch;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* Full-bleed photo cards with text over a dark veil */
.service-card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 5;
  color: var(--white);
  text-decoration: none;
  background: var(--ink-900);
}
.service-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.service-photo img,
.service-photo picture {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 1.1s var(--ease-out);
}
.service-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(21, 33, 45, .12) 0%, rgba(21, 33, 45, .05) 38%,
    rgba(21, 33, 45, .55) 72%, rgba(21, 33, 45, .90) 100%);
  transition: background .5s var(--ease-out);
}
.service-info {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 2vw, 2rem);
}
.service-index {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-300);
  margin-bottom: 0.7rem;
}
.service-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.55rem;
  text-shadow: 0 2px 20px rgba(21, 33, 45, .45);
}
.service-desc {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
  max-width: 34ch;
  margin-bottom: 1.1rem;
}
.service-go {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}
.service-go svg { width: 14px; height: 14px; transition: transform .35s var(--ease-out); }

@media (hover: hover) {
  .service-card:hover .service-photo img { transform: scale(1.06); }
  .service-card:hover .service-veil {
    background: linear-gradient(180deg,
      rgba(21, 33, 45, .06) 0%, rgba(21, 33, 45, .02) 38%,
      rgba(21, 33, 45, .48) 72%, rgba(21, 33, 45, .88) 100%);
  }
  .service-card:hover .service-go svg { transform: translateX(5px); }
}

/* Tablet: 3 → 2 columns before collapsing to one on mobile */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   REVIEWS — Google-styled (GDPR-safe: zero external requests)
   ============================================================ */
.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;
}
.reviews {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .8);
  position: relative;
}
/* faint warm glow + grain so the dark band reads as crafted, not flat */
.reviews::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, rgba(216, 90, 21, .14) 0%, transparent 55%);
}
.reviews > .container { position: relative; z-index: 1; }
.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.3rem;
  margin-bottom: 2.4rem;
}
.reviews-head .eyebrow { justify-content: center; margin-bottom: 0; }
.reviews-head-text h2 { max-width: 22ch; margin-inline: auto; color: var(--white); }
.reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: transparent;
  border: 0;
  padding: 0;
}
.g-logo { display: block; flex-shrink: 0; }
.reviews-rating-text { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; }
.reviews-score { display: inline-flex; align-items: center; gap: 0.6rem; }
.reviews-score strong {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
}
.reviews-meta { font-size: 0.76rem; color: rgba(255, 255, 255, .6); }
/* empty-star track is light on the dark rating header (cards stay dark track) */
.reviews-rating .review-stars { color: rgba(255, 255, 255, .26); }

/* Star rating (gold fill over grey track, width-driven for partials) */
.review-stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(21, 33, 45, .18);
  white-space: nowrap;
}
.review-stars::before { content: "★★★★★"; }
.review-stars .star-fill {
  position: absolute;
  top: 0; left: 0;
  width: var(--w, 100%);
  overflow: hidden;
  color: #F2A50C;
}

/* two opposite-scrolling strips of review cards */
.review-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* full-bleed: the strips run from window edge to window edge */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.review-row {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;            /* no-JS fallback: drag to scroll */
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.review-row::-webkit-scrollbar { display: none; }
.review-rows.is-live .review-row { overflow: hidden; }
/* JS fills each row past the viewport width, then duplicates once → seamless loop.
   Uniform per-card margin-right (not flex gap) so -50% lands exactly on the seam. */
.review-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: marquee-left var(--marquee-dur, 40s) linear infinite;
}
.review-row[data-dir="right"] .review-track { animation-name: marquee-right; }
.review-row[data-dir="left"]  .review-track { animation-name: marquee-left; }
.review-rows:not(.is-visible) .review-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .review-track { animation: none; }
}
.review-card {
  flex: 0 0 auto;
  width: 384px;
  max-width: 82vw;
  margin-right: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.1rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
/* Editorial testimonial order: rating, quote, then author footer at the bottom */
.review-card .review-stars {
  order: 0;
  font-size: 0.82rem;
  color: rgba(21, 33, 45, .14);
}
.review-text {
  order: 1;
  color: var(--ink-700);
  font-size: 1.02rem;
  line-height: 1.68;
  margin: 0;
}
.review-text::before {
  content: "\201C";
  display: block;
  font-size: 2.6rem;
  line-height: 0.5;
  color: var(--stone);
  margin-bottom: 0.55rem;
}
.review-card-top {
  order: 2;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.review-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--bone-2);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}
.review-meta { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; }
.review-author {
  font-weight: 700;
  color: var(--ink-800);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.review-date { font-size: 0.72rem; color: var(--text-muted); }
.g-mark { flex-shrink: 0; opacity: 0.9; }
.reviews-cta { margin-top: 2.75rem; text-align: center; }
/* outline button reads on the dark band */
.reviews .btn-outline { color: var(--white); border-color: var(--border-on-dark); }
.reviews .btn-outline:hover { background: var(--white); color: var(--ink-900); border-color: var(--white); }

/* ============================================================
   PROCESS — sticky staircase (kept, square cards)
   ============================================================ */
.process { background: var(--bone); position: relative; height: 480vh; }
/* soft accent atmosphere anchored to the big numeral in the lower-left */
.process::before {
  content: "";
  position: absolute;
  left: -8%; bottom: -6%;
  width: 60%; height: 70%;
  background: radial-gradient(closest-side, rgba(216, 90, 21, .10), rgba(216, 90, 21, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.process-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.process-sticky .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding-block: var(--header-h) 24px;
}
.process-head { text-align: center; width: 100%; max-width: 720px; }
.process-head .h-display { margin-bottom: 1rem; }
.process-progress {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
}
.process-progress-bar {
  display: block;
  height: 1px;
  width: 240px;
  background: var(--border-strong);
  position: relative;
  overflow: hidden;
}
.process-progress-bar > span {
  position: absolute;
  inset: 0;
  background: var(--accent-500);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .25s linear;
}
.process-progress-text {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-600);
  font-weight: 600;
}
.process-progress-text [data-process-current] {
  font-variant-numeric: tabular-nums;
  color: var(--accent-500);
  font-weight: 700;
}
.process-stage {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 350px;
  margin-inline: auto;
}
/* big editorial numeral of the current step, sitting in the lower-left void */
.process-numeral {
  position: absolute;
  left: -0.04em; bottom: -0.18em;
  z-index: 0;
  font-size: clamp(9rem, 19vw, 15rem);
  line-height: 0.8;
  font-weight: 600;
  color: rgba(216, 90, 21, .14);
  pointer-events: none;
  user-select: none;
}
@keyframes numFlip {
  from { opacity: 0; transform: translateY(0.12em); }
  to   { opacity: 1; transform: translateY(0); }
}
.process-card {
  position: absolute;
  top: 0; left: 0;
  width: 320px;
  max-width: 100%;
  background: var(--white);
  padding: 1.6rem 1.7rem 1.5rem;
  box-shadow: var(--shadow);
  border-radius: 14px;
  border-left: 3px solid transparent;
  transform: translate3d(var(--tx, 0), var(--ty, 460px), 0) rotate(var(--tr, -4deg));
  opacity: var(--op, 0);
  transition: box-shadow .4s ease, border-color .35s ease;
  will-change: transform, opacity;
}
.process-card:nth-of-type(1) { z-index: 2; }
.process-card:nth-of-type(2) { z-index: 3; }
.process-card:nth-of-type(3) { z-index: 4; }
.process-card:nth-of-type(4) { z-index: 5; }
/* the most-recently-landed card is highlighted as the current step */
.process-card.is-active {
  border-left-color: var(--accent-500);
  box-shadow: 0 26px 50px -22px rgba(176, 73, 15, .5);
}
.process-card.is-active .process-num { color: var(--accent-500); }
.process-card-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.9rem;
}
/* clean editorial step number — no box, right-aligned */
.process-num {
  display: inline-block;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.process-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.2; }
.process-card p { color: var(--text-muted); margin: 0; font-size: 0.93rem; line-height: 1.55; }
/* desktop only: every card the same size regardless of text length (mobile untouched) */
@media (min-width: 801px) {
  .process-card {
    min-height: 13rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ============================================================
   GALLERY — before/after comparison slider
   ============================================================ */
.gallery { background: var(--bone); }
/* keep the comparison image within the viewport so the whole gallery is
   visible the moment you jump to it (homepage only — lavori.html flows) */
.gallery .ba { max-height: calc(100svh - var(--header-h) - 11rem); }

.ba {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-800);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--p)) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--p)) 0 0);
  will-change: clip-path;
}

.ba-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.35rem 0.8rem;
  background: rgba(21, 33, 45, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 1rem; }
.ba-label-after  { right: 1rem; }

.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--p);
  width: 46px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}
.ba-handle-line {
  flex: 1;
  width: 2px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(21, 33, 45, .12);
}
.ba-handle-grip {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--ink-800);
  box-shadow: var(--shadow);
}
.ba-handle-grip svg { width: 20px; height: 20px; }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-handle-grip {
  outline: 2px solid var(--accent-500);
  outline-offset: 3px;
}

.ba-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 3rem 1.4rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(21, 33, 45, .72));
  color: rgba(255, 255, 255, .92);
  font-size: 0.92rem;
  text-align: center;
  pointer-events: none;
}
.ba-caption span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .68);
}

/* ============================================================
   FAQ
   ============================================================ */
/* banda chiara fra le due sezioni scure (recensioni e CTA) */
.faq {
  background: var(--bone-2);
  color: var(--text);
}
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.3fr; gap: 5rem; align-items: start; width: 100%; }
.faq-intro .eyebrow { margin-bottom: 1.4rem; }
.faq-intro h2 { margin-bottom: 1.25rem; max-width: 11ch; }
.faq-lead { color: var(--text-muted); margin-bottom: 2rem; max-width: 32ch; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details {
  background: transparent;
  border-bottom: 1px solid var(--border);
  transition: border-color .3s ease;
}
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: var(--ink-800);
  font-size: 1.05rem;
  transition: color .3s var(--ease-out);
}
.faq-list summary:hover { color: var(--accent-500); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-500);
  transition: transform .35s var(--ease-out);
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.faq-list details[open] .faq-icon::after { transform: translateX(-50%) rotate(90deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.faq-list details[open] .faq-body { max-height: 400px; }
.faq-body p {
  padding: 0 0.25rem 1.6rem;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  position: relative;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(21, 33, 45, .82) 0%, rgba(21, 33, 45, .8) 100%),
    linear-gradient(135deg, rgba(216, 90, 21, .2), transparent 60%);
}
.cta-inner { text-align: center; max-width: 900px; margin-inline: auto; }
.cta-title {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0.5rem 0 3rem;
}
.cta-title .serif { color: inherit; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  text-align: left;
  background: rgba(255, 255, 255, .14);
}
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.85rem;
  background: rgba(21, 33, 45, .35);
  color: var(--white);
  position: relative;
  transition: background .35s ease, transform .5s var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.cta-card:hover:not(.cta-card-static) { background: rgba(255, 255, 255, .1); }
.cta-card-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-300);
  font-weight: 600;
}
.cta-card-value { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.3; }
.cta-card svg {
  position: absolute;
  top: 1.75rem; right: 1.75rem;
  width: 18px; height: 18px;
  color: var(--accent-300);
  transition: transform .35s var(--ease-out);
}
.cta-card:hover svg { transform: translateX(4px); }
.cta-card-static { cursor: default; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, .75);
  padding-top: 96px;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3.5rem;
  padding-bottom: 64px;
}
.footer-brand-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.85rem;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.footer-brand-mark__main {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer-brand-mark__sub {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, .65);
}
.footer-brand-mark__sub em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 0.15em;
}
.footer-tagline { color: rgba(255, 255, 255, .65); max-width: 280px; font-size: 0.92rem; margin-bottom: 1.25rem; }
.footer-contact a { color: var(--white); display: inline-block; padding: 0.15rem 0; }
.footer-contact a:hover { color: var(--accent-300); }
.site-footer h4 {
  color: var(--white);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin-bottom: 1.35rem;
  font-weight: 600;
}
.site-footer ul { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer ul a:hover { color: var(--accent-300); }
.footer-bottom-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.65rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .7); }
.footer-bottom a:hover { color: var(--accent-300); }
.footer-bottom p { margin: 0; }

/* ============================================================
   DETAIL PAGES — servizi.html, lavori.html
   ============================================================ */
.legal-header {
  background: var(--bone);
  box-shadow: inset 0 -1px 0 var(--border);
}
.legal-header .nav-wrap.legal-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.legal-header .back-link-inline {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-800);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color .3s var(--ease-out);
}
.legal-header .back-link-inline:hover { color: var(--accent-500); }
.legal-header .back-link-inline svg { width: 14px; height: 14px; }
.legal-header .brand-static {
  justify-self: center;
  display: flex;
  align-items: center;
}
.legal-header .brand-static img {
  height: 46px;
  width: auto;
  aspect-ratio: 800 / 406;
  object-fit: cover;
  object-position: center;
}
.legal-header .nav-cta {
  justify-self: end;
  padding: 0.7rem 1.25rem;
  font-size: 0.72rem;
}

.detail-page { padding-top: var(--header-h); }

.detail-hero {
  background: var(--bone);
  padding: clamp(48px, 8vw, 96px) 0;
}
.detail-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 1.5rem;
}
.detail-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink-800);
  margin: 0 0 1.6rem;
  max-width: 20ch;
}
.detail-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
  margin: 0;
}

.detail-block {
  background: var(--bone);
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}
.detail-block-dark {
  background: var(--ink-900);
  color: var(--white);
  border-top-color: transparent;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.detail-grid-reverse .detail-media { order: 2; }
.detail-grid-reverse .detail-text { order: 1; }
.detail-media {
  position: relative;
  overflow: hidden;
}
.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.detail-step {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-500);
  margin-bottom: 1.25rem;
}
.detail-block-dark .detail-step { color: var(--accent-300); }
.detail-text h2 {
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.detail-block-dark .detail-text h2 { color: var(--white); }
.detail-text > p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 56ch;
}
.detail-block-dark .detail-text > p { color: rgba(255, 255, 255, .75); }
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.detail-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.55;
}
.detail-block-dark .detail-list li { color: rgba(255, 255, 255, .85); }
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 14px;
  height: 1px;
  background: var(--accent-500);
}
.detail-block-dark .detail-list li::before { background: var(--accent-300); }

/* ============================================================
   SERVIZI — immersive full-height sections (photo bg + overlay)
   ============================================================ */
.svc-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  padding: clamp(90px, 14vh, 150px) 0 clamp(56px, 9vh, 96px);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.svc-hero-bg { position: absolute; inset: 0; z-index: 0; }
.svc-hero-bg img,
.svc-hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--py, 0%), 0) scale(1.14);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero-bg img, .svc-hero-bg picture { transform: none; }
}
.svc-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 32, .90) 0%, rgba(15, 23, 32, .66) 44%, rgba(15, 23, 32, .38) 100%),
    linear-gradient(0deg, rgba(15, 23, 32, .55) 0%, rgba(15, 23, 32, 0) 45%);
}
.svc-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.svc-hero-num {
  display: block;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, .22);
  margin-bottom: 0.6rem;
}
.svc-hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 1.1rem;
}
.svc-hero-lead {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .86);
  max-width: 56ch;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}
.svc-hero-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.svc-hero-col h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-300);
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}
.svc-hero-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.svc-hero-col li {
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .84);
}
.svc-hero-cta { align-self: flex-start; }

.detail-cta {
  background: var(--bone-2);
  padding: clamp(64px, 9vw, 112px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.detail-cta h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  margin: 0 0 1rem;
  max-width: 22ch;
  margin-inline: auto;
}
.detail-cta p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 2.25rem;
}
.detail-cta-actions {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Lavori — before/after gallery list */
.lavori-list {
  background: var(--bone);
  padding: clamp(48px, 7vw, 80px) 0 clamp(64px, 9vw, 112px);
  border-top: 1px solid var(--border);
}
.lavori-list .container {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.lavori-list .ba {
  margin: 0;
  max-width: none;
  aspect-ratio: 16 / 10;
}
.lavori-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  margin: 0;
  padding: 3rem 1.5rem 1.15rem;
  background: linear-gradient(180deg, transparent, rgba(21, 33, 45, .82));
  color: rgba(255, 255, 255, .92);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  pointer-events: none;
}
.lavori-caption-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-300);
}
.lavori-caption-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, .92);
  line-height: 1.5;
  max-width: 60ch;
}


/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease-soft),
    transform .9s var(--ease-soft),
    clip-path 1.1s var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="rise"] { transform: translateY(48px); }
[data-reveal="fade"] { transform: translateY(20px); }
[data-reveal="clip-right"] { opacity: 1; clip-path: inset(0 100% 0 0); transform: none; }
[data-reveal="lines"] { transform: none; opacity: 1; }
[data-reveal="lines"] > * { display: inline-block; }
[data-reveal].is-in { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }

.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* generous horizontal padding (cancelled by the negative margin) so the
     overflow:hidden mask never clips the right-leaning edge of italic serif
     glyphs — e.g. "firma" / "lavoro." — on large desktop headings */
  padding: 0.18em 0.18em 0.28em;
  margin: -0.18em -0.18em -0.28em;
}
.split-word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-soft);
  transition-delay: var(--wd, 0ms);
}
[data-reveal="lines"].is-in .split-word > span { transform: translateY(0); }

/* reviews strips — opposite-direction marquee keyframes */
@keyframes marquee-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .about-text { padding-inline: clamp(2rem, 5vw, 3rem); }

  .process { height: 520vh; }
  .process-stage { height: 310px; max-width: 820px; }
  .process-card { width: 280px; padding: 1.4rem 1.4rem 1.25rem; }
  .process-card h3 { font-size: 1.2rem; }
  .process-card p { font-size: 0.86rem; }

  .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

  .menu-overlay-body { grid-template-columns: 1fr; align-content: safe center; gap: 2.5rem; }
}

@media (max-width: 800px) {
  :root { --pad-side: 20px; --header-h: 66px; }

  .nav-toggle-label { display: none; }

  /* long CTA labels (e.g. "Leggi le recensioni su Google") wrap instead of
     forcing the page wider than the phone and causing sideways scroll */
  .btn { white-space: normal; }

  /* Sections grow to their content on mobile — header offset handled per-section */
  .section-full { min-height: auto; padding-top: 0; padding-bottom: 0; }

  .hero { min-height: 100vh; min-height: 100svh; }
  .hero-logo { width: clamp(220px, 70vw, 340px); }
  .hero-inner { gap: 0.45rem; padding: calc(var(--header-h) + 18px) var(--pad-side) max(22px, env(safe-area-inset-bottom)); }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-video { object-position: center center; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(21, 33, 45, .76) 0%, rgba(21, 33, 45, .58) 42%, rgba(21, 33, 45, .74) 100%);
  }

  .about {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .about-media { min-height: 60vh; }
  .about-media img { height: 100%; aspect-ratio: auto; }
  .about-badge { bottom: 20px; left: 20px; padding: 1rem 1.25rem; }
  .about-badge strong { font-size: 1.7rem; }
  .about-text { padding: 60px var(--pad-side); max-width: none; }

  .services { padding: clamp(56px, 12vw, 72px) 0; }
  .services-head { margin-bottom: 1.75rem; }
  /* one full-width photo card per row on mobile */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card { aspect-ratio: 4 / 5; }
  .service-info { padding: 1.5rem 1.4rem 1.6rem; }
  .service-index { margin-bottom: 0.55rem; }
  .service-name { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .service-desc { display: block; font-size: 0.95rem; }

  .reviews { padding-block: 80px; }
  .review-rows { gap: 12px; }
  .review-card { width: 78vw; max-width: 300px; margin-right: 12px; padding: 1.5rem 1.4rem; }
  .reviews-rating { width: auto; }

  /* Mobile process — default: readable vertical list (no-JS / reduced-motion fallback) */
  .process { height: auto; }
  .process-sticky {
    position: static;
    height: auto;
    min-height: 0;
    padding-block: 70px;
    overflow: visible;
    z-index: auto;
  }
  .process-sticky .container { gap: 1.5rem; padding-block: 0; }
  .process-progress { display: none; }
  .process-numeral { display: none; }
  .process-stage {
    position: static;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .process-card {
    position: relative;
    top: auto; left: auto;
    width: auto;
    max-width: 100%;
    min-height: 0;
    border-left: 3px solid var(--accent-500);
    transform: none;
    opacity: 1;
    transition: none;
  }
  .process-card-top { margin-bottom: 0.8rem; }
  .process-card h3 { font-size: 1.25rem; }
  .process-card p { font-size: 0.9rem; }

  /* Mobile process — JS deck: full-screen cards stacked, flung up-right on scroll */
  .process.is-deck { height: 360vh; }
  .process.is-deck .process-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    padding-block: 0;
    z-index: 1;
  }
  .process.is-deck .process-sticky .container {
    gap: 1rem;
    padding-block: calc(var(--header-h) + 12px) 16px;
    height: 100%;
    justify-content: flex-start;
  }
  .process.is-deck .process-progress { display: inline-flex; }
  .process.is-deck .process-stage {
    position: relative;
    flex: 1 1 auto;
    display: block;
    width: 100%;
  }
  .process.is-deck .process-card {
    position: absolute;
    left: 50%; top: 50%;
    width: 86vw;
    max-width: 380px;
    height: 56svh;
    max-height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.8rem;
    border-left: none;
    border-radius: 20px;
    box-shadow: 0 30px 60px -26px rgba(21, 33, 45, .6);
    transform: translate(-50%, -50%);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: none;
    will-change: transform, opacity;
  }
  .process.is-deck .process-card-top { margin-bottom: 1.2rem; }
  .process.is-deck .process-card h3 { font-size: 1.6rem; }
  .process.is-deck .process-card p { font-size: 1rem; line-height: 1.6; }
  .process.is-deck .process-num { font-size: 1.1rem; }

  .gallery { padding-block: 80px; }
  .ba { aspect-ratio: 3 / 4; }
  .ba-label { font-size: 0.6rem; padding: 0.3rem 0.6rem; }
  .ba-handle-grip { width: 42px; height: 42px; }

  .faq { padding-block: 80px; }

  /* Detail pages (servizi.html, lavori.html) */
  .legal-header .back-link-inline span { display: none; }
  .legal-header .brand-static img { height: 38px; }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detail-grid-reverse .detail-media { order: 1; }
  .detail-grid-reverse .detail-text { order: 2; }
  .detail-media img { aspect-ratio: 4 / 3.2; }
  /* immersive service sections — single column of specs, tighter veil */
  .svc-hero { min-height: 0; padding: 96px 0 64px; }
  .svc-hero-inner { max-width: none; }
  .svc-hero-veil {
    background:
      linear-gradient(90deg, rgba(15, 23, 32, .86) 0%, rgba(15, 23, 32, .72) 100%),
      linear-gradient(0deg, rgba(15, 23, 32, .55) 0%, rgba(15, 23, 32, 0) 55%);
  }
  .svc-hero-cols { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-cta-actions { gap: 1.25rem; flex-direction: column; }
  .lavori-list .ba { aspect-ratio: 3 / 4; }
  .lavori-caption { padding: 2.25rem 1rem 1rem; }
  .lavori-caption-text { font-size: 0.88rem; }

  .cta-banner { padding-block: 80px; }
  .cta-grid { grid-template-columns: 1fr; }
  .cta-title { margin-bottom: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom-right { align-items: flex-start; }

  .section-head-row { flex-direction: column; align-items: flex-start; }
  .h-display { font-size: clamp(2rem, 8vw, 2.8rem); }

  .menu-nav a { font-size: clamp(2rem, 11vw, 3.2rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .split-word > span { transform: none !important; }
  .hero-logo, .hero-title, .hero-cta { opacity: 1 !important; transform: none !important; }
  .hero-video { animation: none !important; }
  .menu-nav a { opacity: 1 !important; transform: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .menu-overlay,
  .hero-cta, .cta-grid, .ba-handle { display: none; }
  body { background: var(--white); color: #000; overflow: visible; }
  .hero, .cta-banner, .site-footer { background: var(--white); color: #000; }
  .hero-overlay, .cta-overlay { display: none; }
}
