/* ==========================================================================
   INPE Rivestimenti - homepage
   Palette, tipografia e tono derivati dal Brand Kit & Identity fornito.
   ========================================================================== */

/* Font ospitati sul dominio: nessuna chiamata a server terzi. */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette brand kit */
  --ink: #151515;
  --ink-soft: #2B2A27;
  --gold: #B57A2A;
  --gold-deep: #8F5F1E;   /* oro leggibile su fondo chiaro */
  --gold-light: #D8A75A;  /* oro leggibile su fondo scuro */
  --stone: #8B8780;
  --marble: #E8E1D6;
  --white: #F7F6F3;
  --pure: #FFFFFF;

  --text: var(--ink);
  --text-muted: #5C5952;
  --text-on-dark: #EFEDE8;
  --text-muted-dark: #C9C4BB;

  --line: rgba(21, 21, 21, 0.12);
  --line-strong: rgba(21, 21, 21, 0.22);
  --line-dark: rgba(247, 246, 243, 0.16);

  --shadow-sm: 0 1px 2px rgba(21, 21, 21, 0.06), 0 6px 16px -12px rgba(21, 21, 21, 0.4);
  --shadow-md: 0 18px 40px -28px rgba(21, 21, 21, 0.55);
  --shadow-lg: 0 34px 70px -40px rgba(21, 21, 21, 0.6);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8.5vw, 116px);

  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.72, 0.2, 1);
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 8.4vw, 4.05rem); }
h2 { font-size: clamp(1.75rem, 5.4vw, 2.85rem); }
h3 { font-size: clamp(1.12rem, 2.6vw, 1.32rem); letter-spacing: -0.01em; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
/* Sul marmo l'oro standard scende sotto il rapporto 4.5:1, quindi qui si scurisce. */
.section-surface { background: var(--marble); --gold-deep: #7E5319; }
.section-dark { background: var(--ink); color: var(--text-on-dark); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus-visible { top: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Dispositivo firma: colonna materiali del logo ---------- */
.swatch-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  flex: 0 0 auto;
}
.swatch-mark i {
  display: block;
  width: 3px;
  height: 100%;
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease);
}
.js .swatch-mark i { transform: scaleY(0.35); }
.swatch-mark i:nth-child(1) { background: var(--marble); box-shadow: inset 0 0 0 1px var(--line); }
.swatch-mark i:nth-child(2) { background: var(--stone); }
.swatch-mark i:nth-child(3) { background: var(--ink); }
.swatch-mark i:nth-child(4) { background: var(--gold); }
.swatch-mark-lg { height: 20px; gap: 3px; }
.swatch-mark-lg i { width: 4px; }

.js .is-visible .swatch-mark i,
.js body.is-ready .hero .swatch-mark i { transform: scaleY(1); }
.swatch-mark i:nth-child(2) { transition-delay: 0.06s; }
.swatch-mark i:nth-child(3) { transition-delay: 0.12s; }
.swatch-mark i:nth-child(4) { transition-delay: 0.18s; }

/* ---------- Tipografia di supporto ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow-light { color: var(--gold-light); }

.lede {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 56ch;
}
.section-dark .lede { color: var(--text-muted-dark); }

.body-text { margin-top: 16px; color: var(--text-muted); max-width: 56ch; }
.text-accent { color: var(--gold-deep); }
.section-dark .text-accent,
.cta-band .text-accent { color: var(--gold-light); }

.section-head { max-width: 44rem; margin-bottom: clamp(32px, 5vw, 56px); }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transform: translateX(-101%);
  transition: transform 0.45s var(--ease);
}
.btn-arrow {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn-primary { box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-primary:focus-visible { outline-color: var(--ink); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost::after { background: var(--ink); }
.btn-ghost:hover { color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost:hover::after { transform: translateX(0); }
.btn-ghost:active { transform: translateY(0) scale(0.985); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.88rem; }
.btn-lg { min-height: 58px; padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-deep);
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.link-arrow svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow-light { color: var(--gold-light); }

/* ---------- Header ---------- */
/* Fondo bianco pieno: il logo fornito ha gia' il suo fondo bianco,
   cosi' si integra nella barra invece di sembrare un riquadro applicato. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck {
  background: var(--pure);
  box-shadow: 0 10px 30px -24px rgba(21, 21, 21, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 10px;
}
.header-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  width: auto;
  height: 46px;
  transition: height 0.3s var(--ease);
}
.site-header.is-stuck .brand img { height: 40px; }

.nav-desktop { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.menu-toggle:hover { background: rgba(21, 21, 21, 0.05); border-color: var(--ink); }
.menu-toggle-bars { display: block; width: 20px; }
.menu-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), width 0.3s var(--ease);
}
.menu-toggle-bars span:first-child { width: 20px; margin-bottom: 6px; }
.menu-toggle-bars span:last-child { width: 13px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { width: 20px; transform: translateY(-4px) rotate(-45deg); }

/* ---------- Menu mobile ---------- */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.32s var(--ease), opacity 0.24s var(--ease), visibility 0.32s;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.mobile-menu-panel { padding: 12px var(--gutter) 26px; }
.mobile-menu-panel ul { margin-bottom: 18px; }
.mobile-menu-panel li + li { border-top: 1px solid var(--line); }
.mobile-menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.mobile-menu-panel li a:hover,
.mobile-menu-panel li a:active { color: var(--gold-deep); padding-left: 6px; }
body.menu-open { overflow: hidden; }

.mobile-menu-panel { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-subnav { margin: 0 0 14px; padding-left: 14px; border-left: 2px solid var(--line); }
.mobile-subnav li { border-top: 0; }
.mobile-subnav li a {
  min-height: 46px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--text-muted);
}
.mobile-nav-list > li > a { justify-content: flex-start; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(34px, 7vw, 66px);
  padding-bottom: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(232, 225, 214, 0.85) 0%, rgba(247, 246, 243, 0) 62%),
    var(--white);
}
.hero-grid { display: grid; gap: clamp(28px, 5vw, 44px); }
.hero-payoff {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.02rem, 3.6vw, 1.22rem);
  color: var(--gold-deep);
  letter-spacing: -0.01em;
}
.hero-lede {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 2.5vw, 1.14rem);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-actions .btn { flex: 1 1 auto; }

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.point-icon {
  width: 21px; height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-figure { margin: 0; }
.hero-figure-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.hero-figure-frame img {
  width: 100%;
  height: clamp(240px, 52vw, 340px);
  object-fit: cover;
  object-position: 50% 62%;
}
.frame-corner {
  position: absolute;
  right: 0; bottom: 0;
  width: 68px; height: 68px;
  background:
    linear-gradient(135deg, transparent 50%, var(--gold) 50%);
  opacity: 0.92;
  pointer-events: none;
}
.hero-figure-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Fascia valori */
.value-strip {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(38px, 6vw, 64px);
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.value-strip li {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 22px 22px 24px;
  border-top: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.value-strip li:first-child { border-top: 0; }
.value-strip li:hover { background: var(--marble); }
.value-icon {
  width: 26px; height: 26px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.value-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.value-text { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Chi siamo ---------- */
.intro-grid { display: grid; gap: clamp(34px, 5vw, 60px); }
.promise-list { display: grid; border-top: 1px solid var(--line); }
.promise-list li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 24px 0 26px 44px;
  border-bottom: 1px solid var(--line);
}
.promise-list .swatch-mark {
  position: absolute;
  left: 0; top: 30px;
  height: 16px;
}
.promise-list p { color: var(--text-muted); }

/* ---------- Servizi ---------- */
.service-grid { display: grid; gap: 16px; }
.service-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px 30px;
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
/* Barra materiali: stessa sequenza della colonna nel logo */
.service-swatch {
  position: absolute;
  top: 0; left: 0;
  width: 68px; height: 4px;
  background: linear-gradient(90deg,
    var(--marble) 0 25%,
    var(--stone) 25% 50%,
    var(--ink) 50% 75%,
    var(--gold) 75% 100%);
  transition: width 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.service-card:hover .service-swatch { width: 100%; }
.service-icon {
  width: 30px; height: 30px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease);
}
.service-card:hover .service-icon { stroke: var(--gold-deep); }
.service-card p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Processo ---------- */
.process-track { display: grid; gap: 4px; counter-reset: step; }
.process-step {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 26px 0 28px 62px;
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  position: absolute;
  left: 0; top: 24px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--gold-deep);
  background: var(--white);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover .process-num { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.process-step p { color: var(--text-muted); }

/* ---------- Finiture (sezione scura) ---------- */
.finiture-grid { display: grid; gap: clamp(30px, 5vw, 52px); }
/* Colonna materiali: stessa logica della pila di campioni nel logo */
.finish-swatches { display: grid; gap: 10px; }
.finish-swatches li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  align-items: center;
  gap: 16px;
}
.finish-tile {
  display: block;
  height: 58px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dark);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.finish-swatches li:hover .finish-tile { transform: translateX(6px); border-color: var(--gold); }
.finish-marble {
  background:
    linear-gradient(118deg, rgba(255,255,255,0.85) 0 22%, rgba(215,206,192,0.55) 22.4% 26%, rgba(255,255,255,0.7) 26.4% 58%, rgba(181,122,42,0.35) 58.3% 60%, rgba(246,243,236,0.9) 60.3% 100%),
    var(--marble);
}
.finish-stone {
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(21,21,21,0.16) 46% 47.5%, transparent 47.5%),
    radial-gradient(ellipse 60% 34% at 26% 24%, rgba(255,255,255,0.26), transparent 72%),
    radial-gradient(ellipse 52% 30% at 72% 74%, rgba(21,21,21,0.2), transparent 74%),
    var(--stone);
}
.finish-concrete {
  background:
    radial-gradient(circle, rgba(21,21,21,0.10) 0.7px, transparent 1px) 0 0 / 9px 9px,
    radial-gradient(circle, rgba(255,255,255,0.10) 0.7px, transparent 1px) 4px 5px / 9px 9px,
    linear-gradient(160deg, #A3A099, #75736D);
}
.finish-matte { background: linear-gradient(150deg, #2A2A28, #101010 70%); }
.finish-gold { background: linear-gradient(140deg, var(--gold-light) 0%, var(--gold) 46%, #7C5219 100%); }
.finish-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.finish-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted-dark);
}

/* ---------- Lavori (segnaposto dichiarato) ---------- */
.works-placeholder {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--pure);
}
.pending-chip {
  justify-self: start;
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(181, 122, 42, 0.09);
  color: var(--gold-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pending-chip-dark { color: var(--gold-light); background: rgba(216, 167, 90, 0.12); }

/* ---------- Banda CTA ---------- */
.cta-band {
  position: relative;
  padding-block: clamp(44px, 7vw, 78px);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.cta-inner { display: grid; gap: 26px; }
.cta-inner p { color: var(--text-muted-dark); margin-top: 14px; max-width: 48ch; }
.cta-inner .btn { justify-self: start; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: clamp(30px, 5vw, 52px); }
.contact-facts { display: grid; gap: 14px; margin-top: 28px; }
.contact-facts li { display: flex; gap: 12px; align-items: flex-start; }
.contact-facts span { display: grid; gap: 2px; font-size: 0.98rem; color: var(--text-muted); }
.contact-facts strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.contact-pending { margin-top: 26px; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 32px);
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-intro {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #86837C; }
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--stone); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--pure);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 122, 42, 0.18);
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 46px; }
.select-arrow {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  pointer-events: none;
  fill: none; stroke: var(--ink); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.field-hint { font-size: 0.85rem; color: var(--text-muted); }
.field-error { font-size: 0.85rem; font-weight: 600; color: #9B2C1B; }
.field.has-error input,
.field.has-error textarea { border-color: #9B2C1B; box-shadow: 0 0 0 3px rgba(155, 44, 27, 0.12); }

.form-status { font-size: 0.94rem; font-weight: 600; min-height: 0; }
.form-status.is-shown { min-height: 1.4em; }
.form-status.is-blocked { color: #8A4B10; }
.form-disclaimer {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding-top: clamp(44px, 6vw, 72px);
}
.footer-grid { display: grid; gap: 34px; }
.footer-logo-plate {
  display: inline-flex;
  padding: 14px 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.footer-logo-plate img { height: 52px; width: auto; }
.footer-brand p { color: var(--text-muted-dark); max-width: 40ch; font-size: 0.97rem; }
.footer-col h2 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 2px; }
.footer-col a,
.footer-contact li { color: var(--text-muted-dark); font-size: 0.97rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.footer-contact li { display: flex; align-items: center; min-height: 44px; }
.footer-col a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-col .pending-chip { margin-top: 16px; }
.footer-bottom {
  display: grid;
  gap: 8px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--text-muted-dark);
}

/* ---------- Barra CTA mobile ---------- */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 246, 243, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.35s var(--ease);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn { width: 100%; }

/* ---------- Animazioni (livello Medium) ---------- */
.js .hero-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.js body.is-ready .hero-anim { opacity: 1; transform: none; }
.hero-anim[data-anim-order="1"] { transition-delay: 0.05s; }
.hero-anim[data-anim-order="2"] { transition-delay: 0.14s; }
.hero-anim[data-anim-order="3"] { transition-delay: 0.24s; }
.hero-anim[data-anim-order="4"] { transition-delay: 0.32s; }
.hero-anim[data-anim-order="5"] { transition-delay: 0.42s; }
.hero-anim[data-anim-order="6"] { transition-delay: 0.5s; }

.js .hero-figure.hero-anim {
  transform: translateY(26px);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), clip-path 1s var(--ease);
}
.js body.is-ready .hero-figure.hero-anim { clip-path: inset(0 0 0 0); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Sottomenu servizi (desktop) ---------- */
.has-submenu { position: relative; }
.nav-caret {
  width: 14px; height: 14px;
  margin-left: 5px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.submenu { display: none; }

/* ---------- Pagine interne ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(30px, 5vw, 56px);
  padding-bottom: clamp(34px, 5vw, 62px);
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(232, 225, 214, 0.8) 0%, rgba(247, 246, 243, 0) 60%),
    var(--white);
}
.page-hero-inner { max-width: 52rem; }
.page-hero h1 { font-size: clamp(1.95rem, 6.4vw, 3.4rem); }
.page-hero .lede { margin-top: 20px; }
.page-hero .hero-actions { margin-top: 30px; }

.breadcrumb { margin-bottom: clamp(20px, 3vw, 30px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.breadcrumb li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-top: 1.5px solid var(--stone);
  border-right: 1.5px solid var(--stone);
  transform: rotate(45deg);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover { color: var(--gold-deep); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.section-jump { border-block: 1px solid var(--line); background: var(--pure); }
.section-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 14px;
}
.section-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.section-jump a:hover,
.section-jump a.is-current {
  color: var(--ink);
  border-color: var(--gold);
  background: rgba(181, 122, 42, 0.08);
}

/* ---------- Gruppi di servizi ---------- */
.group-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.group-index {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}
.service-list { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.service-item {
  display: grid;
  gap: 8px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}
.service-item p { color: var(--text-muted); max-width: 62ch; }
.service-item .link-arrow { margin-top: 8px; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  min-height: 40px;
  margin-top: 2px;
  padding-block: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-deep);
  transition: gap 0.25s var(--ease);
}
.card-link svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .card-link { gap: 12px; }

/* ---------- Blocchi pagina dettaglio ---------- */
.detail-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
.detail-split { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
.two-col-lists { display: grid; gap: clamp(30px, 4vw, 56px); align-items: start; }

.detail-figure { margin: 0; }
.detail-figure picture,
.detail-figure img { border-radius: var(--radius-lg); }
.detail-figure picture {
  display: block;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.detail-figure figcaption {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.section-dark .detail-figure figcaption { color: var(--text-muted-dark); }

.check-list { display: grid; gap: 12px; margin-top: 22px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 11px; height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

.spec-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid;
  gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.spec-list span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.note-card {
  padding: clamp(22px, 3vw, 30px);
  background: var(--pure);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
}
.note-card h3 { margin-bottom: 10px; }
.note-card p { color: var(--text-muted); }
.note-card p + p, .note-card .pending-chip { margin-top: 14px; }

.case-grid { display: grid; gap: 16px; }
.case-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px 22px 26px;
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.case-card p { color: var(--text-muted); font-size: 0.97rem; }

.related-grid { display: grid; gap: 12px; }
.related-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 20px;
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background-color 0.28s var(--ease);
}
.related-grid svg {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.28s var(--ease);
}
.related-grid a:hover { transform: translateY(-3px); border-color: var(--gold); }
.related-grid a:hover svg { transform: translateX(4px); }

/* ---------- Profili battiscopa ---------- */
.profile-list { display: grid; border-top: 1px solid var(--line); }
.profile-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.profile-name { font-family: var(--font-display); font-weight: 700; }
.profile-size {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-deep);
  letter-spacing: 0.02em;
}
.profile-list-compact { margin-top: 22px; }
.profile-note {
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 60ch;
}

.tone-guide { display: grid; gap: 16px; margin-top: clamp(34px, 4vw, 52px); }
.tone-guide li {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 22px 20px 24px;
  border-top: 3px solid var(--gold);
  background: var(--pure);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.tone-guide p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Progetti ---------- */
.section-head-split { display: grid; gap: 22px; max-width: none; }
.section-head-split .lede { max-width: 52ch; }

.project-feature { display: grid; gap: 16px; }
.project-shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-shot picture { display: block; height: 100%; }
.project-shot:hover img { transform: scale(1.04); }
.project-shot-tag {
  position: absolute;
  left: 14px; top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.82);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-shot-col { display: grid; gap: 16px; }

.project-head { display: grid; gap: 26px; margin-bottom: clamp(28px, 4vw, 44px); }
.project-meta { display: grid; gap: 2px; border-top: 1px solid var(--line); }
.project-meta li {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
}
.project-meta span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.project-gallery { display: grid; gap: 16px; }
.gallery-item { margin: 0; }
.gallery-item picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
/* Foto verticale: ritagliata sulla vasca, non sul cielo */
.gallery-item-tall img { object-position: 50% 62%; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.ba-grid { display: grid; gap: 20px; }
.ba-grid figure { margin: 0; }
.ba-grid picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.ba-grid figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ba-tag {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.ba-tag-done { background: var(--gold); border-color: var(--gold); }

.project-notes {
  margin-top: clamp(30px, 4vw, 48px);
  padding: clamp(22px, 3vw, 32px);
  background: var(--pure);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  max-width: 70ch;
}
.project-notes h3 { margin-bottom: 12px; }
.project-notes p { color: var(--text-muted); }

/* ---------- Materiali in home ---------- */
.materiali-grid { display: grid; gap: clamp(28px, 4vw, 52px); align-items: center; }
.materiali-shots { display: grid; gap: 16px; }
.materiali-shots figure { margin: 0; }
.materiali-shots picture {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.materiali-shots img { transition: transform 0.6s var(--ease); }
.materiali-shots figure:hover img { transform: scale(1.04); }
.materiali-shots figcaption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}

/* ---------- Passi contatto ---------- */
.contact-steps { display: grid; gap: 14px; margin-top: 22px; }
.contact-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-muted);
}
.contact-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--gold-deep);
  background: var(--pure);
}

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-strip li:nth-child(-n+2) { border-top: 0; }
  .value-strip li:nth-child(2n) { border-left: 1px solid var(--line); }
  .hero-actions .btn { flex: 0 1 auto; }
}

@media (min-width: 560px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .tone-guide { grid-template-columns: repeat(2, 1fr); }
  .materiali-shots { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .group-head { grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; }
  .project-head { grid-template-columns: 1.7fr 1fr; gap: 44px; align-items: start; }
  .two-col-lists { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
  .process-step:nth-child(2) { border-top: 1px solid var(--line); }
  .process-step:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .works-placeholder { grid-template-columns: 1.6fr auto; align-items: end; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-bottom { grid-template-columns: 1fr auto; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
  .cta-inner .btn { justify-self: end; }
  .hero-points { flex-direction: row; flex-wrap: wrap; gap: 12px 26px; }
}

@media (min-width: 960px) {
  :root { --header-h: 88px; }
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .mobile-cta { display: none; }
  .brand img { height: 58px; }
  .site-header.is-stuck .brand img { height: 48px; }

  .nav-desktop ul { display: flex; align-items: center; gap: 20px; }
  .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding-block: 6px;
    transition: color 0.25s var(--ease);
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.32s var(--ease);
  }
  .nav-link:hover { color: var(--gold-deep); }
  .nav-link:hover::after,
  .nav-link.is-current::after { transform: scaleX(1); }

  .hero { padding-top: clamp(48px, 5vw, 80px); }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
  }
  .hero-figure-frame img { height: clamp(420px, 46vw, 540px); }
  .value-strip { grid-template-columns: repeat(4, 1fr); }
  .value-strip li { padding: 26px 24px 28px; border-top: 0; border-left: 1px solid var(--line); }
  .value-strip li:first-child { border-left: 0; }

  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .finiture-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
  .finish-swatches li { grid-template-columns: minmax(0, 1fr) 124px; }
  .finish-tile { height: 66px; }
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .promise-list li { padding-left: 64px; }

  /* Sottomenu servizi */
  .submenu {
    display: block;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    min-width: 264px;
    padding: 10px;
    background: var(--pure);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
    transition: opacity 0.24s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
  }
  .submenu::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -14px;
    height: 14px;
  }
  .has-submenu:hover .submenu,
  .has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  /* Chiuso con Escape: resta chiuso finche' il focus non esce e rientra */
  .has-submenu.is-dismissed:focus-within .submenu {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -8px);
  }
  .has-submenu:hover .nav-caret,
  .has-submenu:focus-within .nav-caret { transform: rotate(180deg); }
  .submenu ul { display: grid; gap: 2px; }
  .submenu a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 4px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    color: var(--text-muted);
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), padding-left 0.25s var(--ease);
  }
  .submenu a:hover { background: var(--marble); color: var(--ink); padding-left: 18px; }
  .submenu-all { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }
  .submenu-all a { font-family: var(--font-display); font-weight: 700; color: var(--gold-deep); }

  .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 60px; }
  .detail-grid-text { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .detail-grid-reverse .detail-figure { order: 2; }
  .detail-split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 60px; }
  .case-grid { grid-template-columns: repeat(4, 1fr); }
  .tone-guide { grid-template-columns: repeat(4, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .section-head-split { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .materiali-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; }

  .project-feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .project-shot-main img { height: 100%; min-height: 460px; }

  .project-gallery { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .gallery-item-wide { grid-column: 1 / -1; }
  .gallery-item-wide picture { aspect-ratio: 16 / 9; }
}

/* Fascia in cui l'hero passa a due colonne ma la colonna testo e' ancora stretta:
   il titolo scenderebbe a quattro righe. */
@media (min-width: 960px) and (max-width: 1199px) {
  h1 { font-size: clamp(2.6rem, 5vw, 3.3rem); }
  .hero-figure-caption { font-size: 0.74rem; }
}

@media (min-width: 1200px) {
  .hero-grid { gap: 84px; }
  .nav-desktop ul { gap: 28px; }
  .nav-link { font-size: 0.94rem; }
}

/* ---------- Preferenze utente ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .hero-anim,
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero-figure.hero-anim { clip-path: none !important; }
  .swatch-mark i { transform: scaleY(1) !important; }
  .hero-figure-frame { transform: none !important; }
}

@media (hover: none) {
  .service-card:hover { transform: none; box-shadow: none; }
  .service-card:active { transform: scale(0.995); }
  .finish-swatches li:hover .finish-tile { transform: none; }
  .btn-primary:hover { transform: none; }
  .case-card:hover,
  .related-grid a:hover { transform: none; box-shadow: none; }
  .case-card:active,
  .related-grid a:active { transform: scale(0.995); }
  .project-shot:hover img,
  .gallery-item:hover img,
  .materiali-shots figure:hover img { transform: none; }
}
