/* ==========================================================================
   Ghiaccio Express — style.css
   Mobile first. Direzione: luminosa, glaciale, fotografica, molto ariosa.
   ========================================================================== */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght.woff2") format("woff2");
  font-weight: 200 800;
  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+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Token ---------- */
:root {
  --white: #ffffff;
  --ice-50: #f5fafe;
  --ice-100: #ddeffc;
  --ice-300: #8fc8ee;
  --sky: #e4eef9;
  --navy: #0b2468;
  --text: #3d4b6e;
  --muted: #52648a;
  --brand: #0787d8;
  --brand-ink: #066bb3;
  --wa: #25d366;       /* verde WhatsApp, solo per l'icona */
  --wa-ink: #128c4a;
  --hairline: rgba(11, 36, 104, 0.12);
  --hairline-strong: rgba(11, 36, 104, 0.22);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* scala tipografica fluida */
  --fs-display: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  --fs-sector: clamp(1.875rem, 0.9rem + 4.4vw, 4.5rem);
  --fs-statement: clamp(1.5rem, 1.05rem + 2vw, 2.75rem);
  --fs-product: clamp(1.625rem, 1.3rem + 1.4vw, 2.5rem);
  --fs-h1: clamp(1.625rem, 1.4rem + 0.85vw, 2.125rem);
  --fs-phone: clamp(2.625rem, 1rem + 7.2vw, 8rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-body: clamp(1rem, 0.96rem + 0.12vw, 1.0625rem);
  --fs-label: 0.75rem;

  /* layout */
  --gutter: clamp(20px, 3.4vw + 4px, 48px);
  --rail-space: 0px;
  --index-right: clamp(18px, 2.4vw, 40px); /* distanza dell'indice verticale dal bordo destro */
  --side: max(var(--gutter), var(--rail-space));
  --max: 1344px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section-y: clamp(4.5rem, 2.5rem + 5.5vw, 8rem);

  /* header */
  --header-pt: clamp(10px, 2.2vw, 32px);
  --logo-h: 64px;
  --logo-h-stuck: 44px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 400px) { :root { --logo-h: 70px; } }
@media (min-width: 768px) { :root { --logo-h: 92px; } }
@media (min-width: 1024px) { :root { --logo-h: 108px; --logo-h-stuck: 52px; /* solo marcatori: 24px di area attiva + margine */ --rail-space: calc(var(--index-right) + 24px + 24px); } }
@media (min-width: 1280px) { :root { --logo-h: 124px; /* etichetta 6rem + spazio 12px + marcatore 7px + margine */ --rail-space: calc(var(--index-right) + 6rem + 19px + 28px); } }
@media (min-width: 1440px) { :root { --logo-h: 140px; } }
/* su tablet touch l'indice laterale viene rimosso: i marcatori sarebbero troppo piccoli da toccare */
@media (pointer: coarse) { :root { --rail-space: 0px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
address { font-style: normal; }

h1, h2, h3 { color: var(--navy); text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
  border-radius: 999px; transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.br-md { display: none; }
@media (min-width: 768px) { .br-md { display: inline; } }

.container {
  width: min(100% - 2 * var(--side), var(--max));
  margin-inline: auto;
}

/* ---------- Tipografia di sezione ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-label); font-weight: 600; line-height: 1.2;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.kicker__num { color: var(--brand-ink); }
.kicker__line { width: 28px; height: 1px; background: var(--brand); flex: none; }

.display {
  font-size: var(--fs-display); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em;
}
.h2 {
  font-size: var(--fs-h2); font-weight: 600; line-height: 1.06; letter-spacing: -0.028em;
}
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text); max-width: 38ch; }

.section { padding-block: var(--section-y); }
.section--ice { background: var(--ice-50); }

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600; line-height: 1; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--brand-ink); }
.btn--line { background: rgba(255, 255, 255, 0.85); color: var(--navy); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--line:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1rem; }
.btn--wa { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.btn--wa:hover { background: #f3fbf6; box-shadow: inset 0 0 0 1px var(--wa-ink); }
.btn__wa-icon { width: 20px; height: 20px; fill: var(--wa); flex: none; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 0.875rem; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--navy); font-size: 0.9375rem; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 7px; text-decoration-color: var(--hairline-strong);
  transition: text-decoration-color 0.25s var(--ease);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.link-arrow:hover { text-decoration-color: var(--navy); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 12px;
  padding: var(--header-pt) var(--gutter) 0;
}
.brand { display: block; flex: none; border-radius: 4px; }
.brand__logo { height: var(--logo-h); width: auto; transition: height 0.35s var(--ease); }

.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: clamp(28px, 3.2vw, 56px); }
.primary-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 24px; height: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-wa {
  display: none; margin-left: auto; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hairline-strong); transition: background-color 0.25s, box-shadow 0.25s;
}
.header-wa svg { width: 19px; height: 19px; fill: var(--wa); }
.header-wa:hover { background: #f3fbf6; box-shadow: inset 0 0 0 1px var(--wa-ink); }
.header-call {
  display: none; margin-left: 8px; align-items: center; gap: 12px;
  min-width: 44px; min-height: 44px; color: var(--navy); text-decoration: none;
}
.header-call__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hairline-strong); transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.header-call__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.header-call:hover .header-call__icon { background: var(--navy); color: #fff; box-shadow: none; }
.header-call__text { display: none; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.header-call__label {
  margin-right: 6px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}

.menu-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -10px;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
.site-header.is-stuck .menu-toggle { margin-left: 4px; }
@media (min-width: 768px) { .menu-toggle { margin-left: 4px; } }
.menu-toggle__bars { position: relative; width: 26px; height: 14px; }
.menu-toggle__bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--navy); border-radius: 1px;
  transition: transform 0.35s var(--ease), opacity 0.2s, top 0.35s var(--ease);
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 6.25px; }
.menu-toggle__bars span:nth-child(3) { top: 12.5px; }
.menu-open .menu-toggle__bars span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
.menu-open .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__bars span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }
.no-js .menu-toggle { display: none; }

/* stato compatto dopo la hero */
.site-header.is-stuck {
  position: fixed; padding-block: 8px; --logo-h: var(--logo-h-stuck);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 var(--hairline);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-stuck {
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
  }
}
.site-header.is-stuck .header-call { display: inline-flex; }
.site-header.is-stuck .header-wa { display: grid; }
.menu-open .site-header { position: fixed; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

@media (prefers-reduced-motion: no-preference) {
  .site-header.is-stuck { animation: header-in 0.45s var(--ease) both; }
}
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }

@media (min-width: 768px) {
  .header-call { display: inline-flex; }
  .header-wa { display: grid; }
}
@media (min-width: 1024px) {
  .primary-nav { display: block; margin-left: clamp(40px, 7vw, 150px); }
  .primary-nav__home { display: none; }
  .header-call__text { display: inline; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) {
  .primary-nav__home { display: list-item; }
}

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--logo-h) + 2 * var(--header-pt) + 4vh) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--white); overflow-y: auto;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.menu-open .menu { opacity: 1; }
.menu__list li { border-bottom: 1px solid var(--hairline); }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 16px;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15;
  color: var(--navy); text-decoration: none;
}
.menu__list a[aria-current="true"] { color: var(--brand-ink); }
.menu__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; color: var(--brand-ink); }
.menu__foot { display: grid; gap: 18px; justify-items: start; }
.menu__foot .cta-pair { width: 100%; }
.menu__meta { font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.menu__meta a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .menu__list li, .menu__foot { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
  .menu__list li:nth-child(2) { transition-delay: 50ms; }
  .menu__list li:nth-child(3) { transition-delay: 100ms; }
  .menu__list li:nth-child(4) { transition-delay: 150ms; }
  .menu__list li:nth-child(5) { transition-delay: 200ms; }
  .menu__foot { transition-delay: 260ms; }
  .menu-open .menu__list li, .menu-open .menu__foot { opacity: 1; transform: none; }
}

/* ==========================================================================
   INDICE VERTICALE DELLE SEZIONI (≥ 1024px)
   ========================================================================== */
.section-index { display: none; }
@media (min-width: 1024px) {
  .section-index {
    display: block; position: fixed; z-index: 60;
    right: var(--index-right); top: 50%; transform: translateY(-50%);
  }
  .section-index ol { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 26px; }
  .section-index__track {
    position: absolute; right: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--hairline-strong);
  }
  .section-index__progress {
    position: absolute; inset: 0; background: var(--brand);
    transform-origin: top; transform: scaleY(var(--p, 0));
  }
  .section-index a {
    position: relative; display: flex; align-items: flex-start; justify-content: flex-end; gap: 12px;
    min-width: 24px; min-height: 24px;
    font-size: 0.6875rem; font-weight: 600; line-height: 1.35; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; text-align: right;
    transition: color 0.3s var(--ease);
  }
  .section-index__label { max-width: 6rem; }
  .section-index__marker {
    position: relative; flex: none; width: 7px; height: 7px; margin-top: 4px;
    background: var(--white); box-shadow: inset 0 0 0 1px #8fa3c0;
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .section-index a:hover { color: var(--navy); }
  .section-index a[aria-current="true"] { color: var(--navy); }
  .section-index a[aria-current="true"] .section-index__marker { background: var(--brand); box-shadow: none; transform: scale(1.15); }

  /* 1024–1279: solo marcatori, etichetta al passaggio del mouse o al focus */
  .section-index__label {
    position: absolute; right: 22px; top: -3px; width: max-content; max-width: 12rem;
    padding: 3px 8px; background: rgba(255, 255, 255, 0.94);
    opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease);
  }
  .section-index a:hover .section-index__label,
  .section-index a:focus-visible .section-index__label { opacity: 1; }
}
@media (min-width: 1024px) and (pointer: coarse) {
  .section-index { display: none; }
}
@media (min-width: 1280px) {
  .section-index__label {
    position: static; width: auto; max-width: 6rem; padding: 0; background: none; opacity: 1;
  }
}

/* ==========================================================================
   HERO
   Base (mobile / verticale): foto adattata in larghezza, centrata sul furgone,
   bordo superiore sfumato nel cielo e bordo inferiore nel bianco della pagina.
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  /* la foto è più larga dello schermo per scelta di crop: la hero la ritaglia */
  overflow: hidden; overflow: clip; /* hidden: fallback per Safari < 16 */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 42%, #fff 84%),
    linear-gradient(100deg, #a6cdf2 0%, #d2e6f9 45%, #f3f8fd 100%);
}
.hero__media {
  position: relative; z-index: 0;
  flex: 1 0 auto; display: flex; align-items: center;
  padding-top: calc(var(--logo-h) + var(--header-pt) + 8px);
}
.hero__media picture { width: 100%; }
.hero__img {
  width: 118%; max-width: none; margin-left: -9.7%; /* centro del furgone al 50,6% dell'immagine */
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
}
@media (min-width: 600px) {
  .hero__img { width: 104%; margin-left: -2.6%; }
}
.hero__veil { display: none; }
.hero__mist {
  position: absolute; z-index: 1; left: -20%; right: -20%; bottom: 20%; height: 32%;
  pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(50% 50% at 30% 60%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(45% 50% at 74% 45%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%);
}
.hero__sentinel { position: absolute; top: 55%; left: 0; width: 1px; height: 1px; pointer-events: none; }

.hero__content {
  position: relative; z-index: 2;
  display: grid; gap: 28px;
  margin-top: -9vw;
  /* spazio riservato all'indicatore di scroll (linea su touch, mouse con puntatore fine) */
  padding: 0 var(--gutter) 112px;
}
@media (hover: hover) and (pointer: fine) {
  .hero__content { padding-bottom: 124px; }
}
.eyebrow {
  display: block; margin-bottom: 14px;
  font-size: 0.6875rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); /* navy: sul velo sopra la strada il blu non avrebbe contrasto sufficiente */
}
.hero__claim {
  display: block; max-width: 17em;
  font-size: var(--fs-h1); font-weight: 600; line-height: 1.12; letter-spacing: -0.022em; color: var(--navy);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 599px) {
  /* smartphone: CTA a tutta larghezza, target ampi */
  .hero__actions { display: grid; justify-items: start; }
  .hero .cta-pair, .menu .cta-pair { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .hero .cta-pair .btn, .menu .cta-pair .btn { min-height: 54px; }
}

.hero__rail { display: none; }

/* indicatore di scroll */
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(14px, 3vh, 40px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  min-width: 44px; padding: 4px; color: var(--navy); text-decoration: none;
}
.scroll-cue__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); padding-left: 0.3em; }
.scroll-cue__mouse {
  display: none; position: relative; width: 22px; height: 36px; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(11, 36, 104, 0.45);
}
.scroll-cue__mouse span { position: absolute; left: 50%; top: 8px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--navy); }
.scroll-cue__line { position: relative; width: 1px; height: 34px; background: var(--hairline-strong); overflow: hidden; }
.scroll-cue__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .scroll-cue__mouse { display: block; }
  .scroll-cue__line { display: none; }
}
@media (max-aspect-ratio: 6/5) and (max-height: 700px) {
  .scroll-cue { display: none; }
  .hero__content { padding-bottom: 44px; }
}

/* ---------- Hero: formati orizzontali (tablet orizzontale, laptop, desktop) ---------- */
@media (min-aspect-ratio: 6/5) {
  .hero {
    display: grid; grid-template-rows: 1fr auto;
    min-height: max(100vh, 34rem);
    min-height: max(100svh, 34rem);
    background: var(--sky);
  }
  .hero__media { position: absolute; inset: 0; display: block; padding: 0; }
  .hero__media picture { height: 100%; }
  .hero__img {
    width: 100%; height: 100%; margin: 0;
    object-fit: cover; object-position: 50% 70%; /* cielo tagliato in alto, furgone sopra la fascia testi */
    -webkit-mask-image: none; mask-image: none;
  }
  .hero__veil {
    display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 66%, rgba(255, 255, 255, 0.55) 79%, rgba(255, 255, 255, 0.9) 89%, #fff 100%);
  }
  .hero__mist { bottom: 0; height: 42%; }
  .hero__content {
    grid-row: 2; margin-top: 0;
    padding: 0 var(--gutter) clamp(24px, 5vh, 48px);
  }
  .scroll-cue { bottom: clamp(20px, 5vh, 48px); }
}
/* schermi orizzontali bassi (1366×768, 1280×720…) */
@media (min-aspect-ratio: 6/5) and (max-height: 760px) {
  .hero__img { object-position: 50% 76%; }
}
@media (min-aspect-ratio: 6/5) and (max-height: 600px) {
  .scroll-cue { display: none; }
}
/* smartphone in orizzontale: logo ridotto, H1 e CTA affiancati per non coprire la scritta */
@media (min-aspect-ratio: 6/5) and (max-height: 500px) {
  :root { --logo-h: 56px; }
  .hero__content { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: end; }
  .hero__actions { flex-direction: column; align-items: flex-end; gap: 6px; }
  .eyebrow { margin-bottom: 8px; }
}

/* fascia bassa desktop: H1 a sinistra, CTA a destra, scroll al centro.
   A destra la fascia si ferma prima della colonna dell'indice fisso, così le CTA
   non passano sotto le voci dell'indice durante lo scroll. */
@media (min-aspect-ratio: 6/5) and (min-width: 1024px) {
  .hero__content { padding-right: var(--side); }
  .hero__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 160px; align-items: end; }
  .hero__actions { flex-direction: column; align-items: flex-end; gap: 12px; justify-self: end; }
  .hero__actions .cta-pair { justify-content: flex-end; }
}

/* colonna laterale sinistra: solo desktop orizzontale */
@media (min-aspect-ratio: 6/5) and (min-width: 1280px) {
  .hero__rail {
    position: absolute; z-index: 3; left: calc(var(--gutter) - 10px); top: max(24vh, 200px);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
  }
  .rail-link {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    color: var(--navy); transition: color 0.25s, background-color 0.25s;
  }
  .rail-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .rail-link:hover { color: var(--brand-ink); background: rgba(255, 255, 255, 0.6); }
  .rail-link--wa svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
  .rail-link--wa:hover { color: var(--wa-ink); }
  .rail-link--social svg { width: 18px; height: 18px; }
  .hero__rail-line { width: 1px; height: 44px; margin: 10px 0 12px; background: var(--hairline-strong); }
  .hero__rail-text {
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--navy);
  }
  /* schermi bassi: restano solo le icone, così la colonna non raggiunge il titolo */
  @media (max-height: 860px) {
    .hero__rail-line, .hero__rail-text { display: none; }
  }
}

/* ultrawide: foto a tutta altezza, lati sfumati nel cielo */
@media (min-aspect-ratio: 2/1) and (min-width: 1280px) {
  .hero { background: linear-gradient(100deg, #a6cdf2 0%, #d2e6f9 45%, #f3f8fd 100%); }
  .hero__img {
    position: absolute; inset: 0; margin: auto; width: auto; height: 100%; object-fit: cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
}

/* ---------- Hero: movimento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: hero-in 1.8s var(--ease) both; }
  .site-header:not(.is-stuck), .hero__rail, .hero__content, .scroll-cue, .section-index {
    animation: ui-in 0.9s var(--ease) both;
  }
  .site-header:not(.is-stuck) { animation-delay: 0.25s; }
  .hero__content { animation-delay: 0.55s; }
  .hero__rail, .section-index { animation-delay: 0.8s; }
  .scroll-cue { animation-name: cue-in; animation-delay: 1s; }
  .hero__mist { animation: mist-drift 36s ease-in-out infinite alternate; }
  .scroll-cue__mouse span { animation: cue-dot 2.4s var(--ease) infinite; }
  .scroll-cue__line::after { animation: cue-line 2.4s var(--ease) infinite; }
}
@keyframes hero-in { from { transform: scale(1.05); opacity: 0.4; } to { transform: none; opacity: 1; } }
@keyframes ui-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes cue-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mist-drift { from { transform: translate3d(-3%, 0, 0); } to { transform: translate3d(3%, 0, 0); } }
@keyframes cue-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes cue-line { from { transform: translateY(-12px); } to { transform: translateY(34px); } }

/* ==========================================================================
   2. AZIENDA
   ========================================================================== */
/* sezione più compatta: meno aria sotto, Prodotti più vicino */
.about {
  position: relative; overflow: hidden; overflow: clip;
  padding-block: clamp(4.5rem, 2.5rem + 6vw, 8.5rem) clamp(3rem, 1.5rem + 3.5vw, 5.5rem);
}
.about__grid { position: relative; z-index: 1; display: grid; }
.about .kicker { margin-bottom: 28px; }
.about .lead { margin-top: 28px; }
.about__note { margin-top: 18px; font-weight: 600; color: var(--navy); }

/* ghiaccio fotografico sullo sfondo: ritagliato, sfumato, a bassa opacità */
.about__ice { display: none; }
@media (min-width: 768px) {
  .about__ice {
    display: block; position: absolute; z-index: 0; pointer-events: none;
    top: clamp(24px, 4vw, 72px); right: max(0px, calc(var(--side) - 4vw));
    width: clamp(260px, 32vw, 460px);
    opacity: 0.22; mix-blend-mode: multiply;
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  }
  .about__ice img { width: 100%; height: auto; }
}

/* quattro punti: layout editoriale aperto, nessun box */
.trust { display: grid; gap: 0 var(--col-gap); margin-top: clamp(48px, 5vw, 80px); }
.trust__item {
  position: relative;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px;
  grid-template-areas: "icon num" "icon title" "icon text";
  align-content: start;
  padding: 20px 0 22px; border-top: 1px solid var(--hairline);
}
/* tratto blu sulla linea superiore: la linea diventa parte della composizione */
.trust__item::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 1px; background: var(--brand);
  transform-origin: left; transition: transform 0.9s var(--ease) 0.2s;
}
.trust__num { grid-area: num; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; line-height: 1.4; color: var(--brand-ink); }
.trust__icon {
  grid-area: icon; width: 30px; height: 30px; margin-top: 2px;
  fill: none; stroke: var(--brand); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.trust__title {
  grid-area: title; margin-top: 6px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em;
}
.trust__text { grid-area: text; margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }

@media (min-width: 600px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "num icon" "title title" "text text";
    padding: 22px 0 28px;
  }
  .trust__icon { width: 32px; height: 32px; margin-top: 0; }
  .trust__title { margin-top: 18px; }
  .trust__text { max-width: 30ch; }
}
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .about .kicker { grid-column: 1 / span 3; align-self: start; margin-top: 1.2em; }
  .about__main { grid-column: 4 / -1; }
  .trust { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .trust__item::before { transform: scaleX(0); }
  .js .trust__item.is-visible::before { transform: scaleX(1); }
}

/* ==========================================================================
   3. PRODOTTI
   ========================================================================== */
.section-head { display: grid; gap: 24px; margin-bottom: clamp(56px, 8vw, 120px); }
.section-head__intro { font-size: var(--fs-lead); line-height: 1.6; max-width: 36ch; }
@media (min-width: 1024px) {
  .section-head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; }
  .section-head .kicker { grid-column: 1 / -1; }
  .section-head__title { grid-column: 1 / span 7; }
  .section-head__intro { grid-column: 9 / -1; align-self: end; }
}

.products { padding-top: clamp(3rem, 1.5rem + 3.5vw, 5.5rem); }
.products__stage { display: none; }
.products__list { display: grid; gap: clamp(64px, 10vw, 112px); }
.product__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(160deg, #eef6fd 0%, var(--ice-100) 60%, #cfe6f8 100%);
}
.product__media picture, .product__media img { width: 100%; height: 100%; }
.product__media img { object-fit: cover; }
.product__body { margin-top: 24px; }
.product__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; color: var(--brand-ink); }
.product__name { margin-top: 8px; font-size: var(--fs-product); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; }
.product__text { margin-top: 12px; max-width: 34ch; color: var(--text); }
/* unità di vendita: discreta, stesso linguaggio delle etichette del sito */
.product__unit { margin-top: 10px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); }


/* tablet e desktop senza palco: righe editoriali alternate */
@media (min-width: 600px) {
  .product { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .product__media { grid-column: 1 / span 7; grid-row: 1; }
  .product__body { grid-column: 9 / -1; grid-row: 1; margin-top: 0; }
  .product:nth-child(even) .product__media { grid-column: 6 / -1; }
  .product:nth-child(even) .product__body { grid-column: 1 / span 4; }
}

/* desktop con JS: palco fotografico fisso a sinistra, indice dei prodotti a destra */
@media (min-width: 1024px) {
  .products.is-staged .products__layout {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap);
  }
  .products.is-staged .products__stage {
    display: block; grid-column: 1 / span 6; grid-row: 1; align-self: start;
    position: sticky; top: max(96px, 13vh); top: max(96px, 13svh);
  }
  .products__frame {
    position: relative; width: min(100%, 60vh, 500px); width: min(100%, 60svh, 500px); aspect-ratio: 4 / 5; overflow: hidden; /* 500px = larghezza delle foto sorgente */
    background: linear-gradient(160deg, #eef6fd 0%, var(--ice-100) 60%, #cfe6f8 100%);
  }
  .products__slide { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; transition: opacity 0.7s var(--ease); }
  .products__slide > * { transform: scale(1.03); transition: transform 1.2s var(--ease); }
  .products__slide.is-active { opacity: 1; }
  .products__slide.is-active > * { transform: none; }
  .products__count {
    margin-top: 18px; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .products__count span { color: var(--navy); }

  .products.is-staged .products__list { grid-column: 8 / -1; grid-row: 1; gap: 0; }
  .products.is-staged .product {
    display: flex; align-items: center; min-height: 46vh; min-height: 46svh; padding-block: 40px;
    border-top: 1px solid var(--hairline);
  }
  .products.is-staged .product:last-child { border-bottom: 1px solid var(--hairline); }
  .products.is-staged .product .product__media { display: none; }
  .products.is-staged .product__body { margin: 0; transition: opacity 0.5s var(--ease); }
  .products.is-staged .product:not(.is-active) .product__body { opacity: 0.38; }
}

/* ==========================================================================
   4. CONSEGNA
   ========================================================================== */
.delivery__head { display: grid; gap: 28px; }
.delivery__title-2 { display: block; color: var(--brand-ink); }
.delivery__aside { display: grid; gap: 20px; justify-items: start; max-width: 40ch; }
.delivery__aside .btn { margin-top: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.tag svg { width: 16px; height: 16px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sectors__title {
  margin-top: clamp(72px, 10vw, 144px); margin-bottom: 8px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.sector {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding-block: clamp(16px, 2.4vw, 34px);
}
.sector::before, .sector:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--hairline-strong);
  transform-origin: left; transition: transform 1.1s var(--ease);
}
.sector::before { top: 0; }
.sector:last-child::after { bottom: 0; }
.sector__word { font-size: var(--fs-sector); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; color: var(--navy); }
.sector__num { flex: none; font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; color: var(--brand-ink); }

@media (min-width: 1024px) {
  .delivery__head { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 28px; }
  .delivery__head .kicker { grid-column: 1 / -1; }
  .delivery__title { grid-column: 1 / span 7; }
  .delivery__aside { grid-column: 9 / -1; align-self: end; }
}

/* servizi aggiuntivi: noleggio pozzetti, box in polistirolo */
.addon {
  display: grid; gap: 28px;
  margin-top: clamp(56px, 7vw, 104px); padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--hairline-strong);
}
.addon__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.addon__label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand-ink); }
.addon__list { display: grid; gap: 32px var(--col-gap); }
.addon__item {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; row-gap: 10px; align-items: start;
}
.addon__icon {
  grid-row: 1 / span 2; width: 34px; height: 34px;
  fill: none; stroke: var(--brand); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round;
}
.addon__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
.addon__item p { max-width: 44ch; }
@media (min-width: 768px) {
  .addon__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .addon { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .addon__head { grid-column: 1 / span 3; flex-direction: column; align-items: flex-start; }
  .addon__list { grid-column: 4 / -1; }
}

/* ==========================================================================
   5. CTA FINALE
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; overflow: clip; text-align: center;
  padding-block: clamp(5.5rem, 3rem + 7vw, 10rem);
  background: var(--white);
}
/* alone freddo dietro al numero: nessun bordo netto con le sezioni vicine */
.cta::after {
  content: ""; position: absolute; left: 50%; top: 52%; width: max(140%, 900px); height: 90%;
  transform: translate(-50%, -50%); pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(221, 239, 252, 0.95), rgba(221, 239, 252, 0.45) 55%, rgba(245, 250, 254, 0) 100%);
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta__kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-ink);
}
.cta__kicker::before, .cta__kicker::after { content: ""; width: 28px; height: 1px; background: var(--brand); }
.cta__title { margin-top: 28px; max-width: 20ch; font-size: var(--fs-statement); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
.cta__text { margin-top: 14px; color: var(--muted); }
.cta__phone {
  position: relative; display: inline-block; margin-top: clamp(40px, 6vw, 72px); padding-bottom: 0.12em;
  font-size: var(--fs-phone); font-weight: 600; line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
  font-variant-numeric: tabular-nums; color: var(--navy); text-decoration: none;
}
.cta__phone::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline-strong);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.cta__phone:hover { color: var(--brand-ink); }
.cta__phone:hover::after { background: var(--brand); transform: scaleY(2); }
.cta__actions { justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 599px) {
  .cta__actions { display: grid; width: min(100%, 22rem); }
}

/* ==========================================================================
   6. CONTATTI
   ========================================================================== */
.contact__grid { display: grid; gap: 56px; }
.contact__info .kicker { margin-bottom: 28px; }
.contact__sub { margin-top: 14px; font-size: var(--fs-lead); color: var(--muted); }
.contact__list { margin-top: 44px; margin-bottom: 20px; }
.contact__row { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--hairline); }
.contact__row:last-child { border-bottom: 1px solid var(--hairline); }
.contact__row dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact__row dd { color: var(--navy); font-weight: 500; line-height: 1.6; }
.contact__phone {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact__phone:hover { color: var(--brand-ink); }
.contact__mail, .footer__mail, .menu__meta a { overflow-wrap: anywhere; }
.contact__mail {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 5px;
}
/* social: icone piccole, nessun riquadro, hover discreto */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.social__link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--navy); font-weight: 600; text-decoration: none; transition: color 0.25s var(--ease);
}
.social__link svg { width: 20px; height: 20px; flex: none; }
.social__link:hover { color: var(--brand-ink); }
.social--icons { gap: 4px; margin-top: 10px; margin-left: -12px; }
.social--icons .social__link { justify-content: center; min-width: 44px; }
.contact__mail:hover { color: var(--brand-ink); text-decoration-color: currentColor; }

.map {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background-color: var(--ice-50);
  background-image:
    linear-gradient(32deg, transparent 49.2%, rgba(255, 255, 255, 0.95) 49.4%, rgba(255, 255, 255, 0.95) 50.6%, transparent 50.8%),
    linear-gradient(-58deg, transparent 49.5%, rgba(255, 255, 255, 0.9) 49.7%, rgba(255, 255, 255, 0.9) 50.3%, transparent 50.5%),
    linear-gradient(rgba(11, 36, 104, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 36, 104, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  padding: 24px; text-align: center;
}
.map__pin {
  width: 14px; height: 14px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 8px rgba(7, 135, 216, 0.16), 0 0 0 22px rgba(7, 135, 216, 0.07);
  margin-bottom: 10px;
}
.map__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); }
.map__note { max-width: 30ch; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map__placeholder { display: none; }

@media (min-width: 600px) and (max-width: 1023px) {
  .map { aspect-ratio: 16 / 9; }
}
@media (min-width: 400px) {
  .contact__row { grid-template-columns: 7.5rem minmax(0, 1fr); gap: 16px; }
}
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center; }
  .contact__info { grid-column: 1 / span 5; }
  .map { grid-column: 7 / -1; aspect-ratio: 5 / 4; }
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  padding-block: clamp(56px, 7vw, 96px) 28px;
  background: var(--ice-50); border-top: 1px solid var(--hairline);
  font-size: 0.9375rem; color: var(--muted);
}
.footer__grid { display: grid; gap: 36px; }
.footer__brand img { width: 92px; height: auto; }
.footer__brand p { margin-top: 12px; font-size: 0.875rem; }
.footer__label { margin-bottom: 12px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.footer__col a { color: var(--navy); text-decoration: none; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col p a, .footer__company a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.footer__company { line-height: 1.7; }
.footer__company strong { color: var(--navy); font-weight: 600; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: 0.8125rem;
}
.footer__legal a { color: var(--muted); text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--navy); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.7fr) minmax(0, 1fr); }
  .footer__nav { display: grid; gap: 0; }
}
@media (min-width: 768px) and (pointer: fine) {
  .footer__nav a { min-height: 32px; }
}

/* ==========================================================================
   REVEAL (solo con JS e movimento consentito)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translate3d(0, 20px, 0);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js [data-reveal-media] { opacity: 0; transition: opacity 1s var(--ease); }
  .js [data-reveal-media] > * { transform: scale(1.03); transition: transform 1.4s var(--ease); }
  .js [data-reveal-media].is-visible { opacity: 1; }
  .js [data-reveal-media].is-visible > * { transform: none; }

  .js .sector::before, .js .sector:last-child::after { transform: scaleX(0); }
  .js .sector.is-visible::before, .js .sector.is-visible:last-child::after { transform: scaleX(1); }
}
.nowrap { white-space: nowrap; }

/* ==========================================================================
   ATMOSFERA — fondi diffusi ghiaccio/nebbia
   Solo gradienti CSS (nessuna immagine, nessun filtro blur): leggeri anche su mobile.
   Alternanza: Prodotti · Consegna · CTA con atmosfera; Contatti resta pulito.
   ========================================================================== */
:root {
  --mist: 221, 239, 252;     /* #DDEFFC */
  --mist-deep: 143, 200, 238; /* #8FC8EE */
  --mist-a: 0.16;            /* intensità del tono più profondo */
}
@media (max-width: 767px) {
  :root { --mist-a: 0.1; }
}

/* Prodotti: velatura verticale appena percettibile + alone in alto a destra, sopra l'intro */
.products {
  background:
    radial-gradient(ellipse min(900px, 95vw) 520px at 88% 0%, rgba(var(--mist), 0.6), rgba(var(--mist), 0) 70%),
    linear-gradient(180deg, #fff 0%, #f8fbfe 30%, #f8fbfe 78%, #fff 100%);
}
/* desktop: alone freddo che accompagna la foto del prodotto mentre si scorre */
@media (min-width: 1024px) {
  .products.is-staged .products__stage { isolation: isolate; }
  .products.is-staged .products__stage::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: -22%; top: -14%; width: 144%; height: 128%;
    background: radial-gradient(closest-side, rgba(var(--mist-deep), 0.26), rgba(var(--mist), 0.55) 55%, rgba(var(--mist), 0) 100%);
  }
}
/* tablet e mobile: leggero alone dietro ogni foto */
@media (max-width: 1023px) {
  .product { position: relative; isolation: isolate; }
  .product::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: 0; right: 0; top: -6%; height: 80%; /* dentro il contenitore: nessuno sbordo orizzontale */
    background: radial-gradient(closest-side, rgba(var(--mist-deep), var(--mist-a)), rgba(var(--mist), 0.4) 60%, rgba(var(--mist), 0) 100%);
  }
}

/* Consegna: fascia atmosferica che sfuma nel bianco sopra e sotto (niente bordi netti) */
.delivery {
  background:
    radial-gradient(ellipse 62% 440px at 10% 16%, rgba(var(--mist-deep), var(--mist-a)), rgba(var(--mist-deep), 0) 70%),
    radial-gradient(ellipse 58% 560px at 94% 70%, rgba(var(--mist), 0.95), rgba(var(--mist), 0) 70%),
    linear-gradient(180deg, #fff 0%, #f3f9fe 12%, #eef6fd 50%, #f3f9fe 88%, #fff 100%);
}
.sectors__title { color: var(--text); } /* contrasto pieno sul fondo azzurrino */

/* CTA finale: più profondità dietro al numero, bordi sempre sfumati nel bianco */
.cta {
  background:
    radial-gradient(ellipse 75% 62% at 50% 60%, rgba(var(--mist-deep), var(--mist-a)), rgba(var(--mist-deep), 0) 72%),
    linear-gradient(180deg, #fff 0%, #f6fbfe 28%, #eff7fd 58%, #f6fbfe 86%, #fff 100%);
}
.cta::after {
  background: radial-gradient(closest-side, rgba(208, 231, 250, 0.9), rgba(var(--mist), 0.5) 55%, rgba(245, 250, 254, 0) 100%);
}
.cta__text { color: var(--text); } /* contrasto pieno sull'alone */

/* ==========================================================================
   CTA FLOTTANTE MOBILE — solo sotto i 768px
   Pulsante circolare (cornetta) che apre WhatsApp e Chiama ora.
   ========================================================================== */
.fab { display: none; }
@media (max-width: 767px) {
  .fab {
    position: fixed; z-index: 80; /* sotto header (100) e menu (90) */
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    pointer-events: none; /* solo i pulsanti ricevono i tap */
  }
  .no-js .fab, .menu-open .fab { display: none; }

  .fab__toggle {
    pointer-events: auto;
    position: relative; display: grid; place-items: center;
    width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: var(--ice-50); color: var(--navy);
    box-shadow: inset 0 0 0 1.5px var(--navy), 0 8px 22px rgba(11, 36, 104, 0.16);
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
  }
  .fab__toggle:active { transform: scale(0.96); }
  .fab.is-open .fab__toggle { background: var(--navy); color: #fff; }
  .fab__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .fab__toggle .fab__icon { position: absolute; transition: opacity 0.2s var(--ease), transform 0.25s var(--ease); }
  .fab__icon--close { opacity: 0; transform: rotate(-45deg); }
  .fab.is-open .fab__icon--open { opacity: 0; transform: rotate(45deg); }
  .fab.is-open .fab__icon--close { opacity: 1; transform: none; }

  /* azioni: nascoste e non focalizzabili finché il menu è chiuso */
  .fab__actions {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    visibility: hidden;
    transition: visibility 0s linear 0.25s;
  }
  .fab.is-open .fab__actions { visibility: visible; transition-delay: 0s; }
  .fab__action {
    pointer-events: auto;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 50px; padding: 0 20px 0 16px; border-radius: 999px;
    font-size: 0.9375rem; font-weight: 600; line-height: 1.15; text-decoration: none; white-space: nowrap;
    box-shadow: 0 6px 18px rgba(11, 36, 104, 0.14);
    opacity: 0; transform: translateY(8px) scale(0.98);
    transition: opacity 0.22s var(--ease), transform 0.25s var(--ease);
  }
  .fab.is-open .fab__action { opacity: 1; transform: none; }
  .fab.is-open .fab__action--wa { transition-delay: 0.05s; } /* la più lontana entra per ultima */
  .fab__action--wa { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px var(--hairline-strong), 0 6px 18px rgba(11, 36, 104, 0.12); }
  .fab__wa-icon { width: 20px; height: 20px; fill: var(--wa); flex: none; }
  .fab__action--call { background: var(--navy); color: #fff; }
  .fab__action--call small { display: block; font-size: 0.75rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; }

  /* spazio in fondo alla pagina: il pulsante non copre gli ultimi contenuti */
  .site-footer { padding-bottom: calc(28px + 72px + env(safe-area-inset-bottom)); }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .fab__action, .fab__toggle, .fab__toggle .fab__icon { transition: none; transform: none; }
}

/* ##########################################################################
   RIFINITURA  —  blocco reversibile
   Attivo solo con la classe "rifinitura" su <html> (index.html, riga 2).
   Per tornare alla versione precedente: togliere la classe oppure cancellare
   tutto questo blocco fino a "FINE RIFINITURA". Nient'altro è stato modificato.
   ########################################################################## */

/* ---------- R1. Gradienti più morbidi (nebbia diffusa, niente bordi ovali) ----------
   Ogni alone sfuma con più passaggi intermedi (0 → 40% → 70% → 100%)
   invece di un unico stop: così non si vede mai il contorno dell'ellisse. */
.rifinitura .products {
  background:
    radial-gradient(ellipse min(1100px, 110vw) 360px at 90% 380px,
      rgba(var(--mist), 0.5) 0%, rgba(var(--mist), 0.28) 40%, rgba(var(--mist), 0.1) 70%, rgba(var(--mist), 0) 100%),
    linear-gradient(180deg, #fff 0%, #f9fcfe 30%, #f9fcfe 80%, #fff 100%);
}
@media (min-width: 1024px) {
  .rifinitura .products.is-staged .products__stage::before {
    left: -30%; top: -22%; width: 160%; height: 144%;
    background: radial-gradient(closest-side,
      rgba(var(--mist-deep), 0.18) 0%, rgba(var(--mist), 0.45) 40%, rgba(var(--mist), 0.18) 70%, rgba(var(--mist), 0) 100%);
  }
}
@media (max-width: 1023px) {
  .rifinitura .product::before {
    background: radial-gradient(closest-side,
      rgba(var(--mist-deep), calc(var(--mist-a) * 0.8)) 0%, rgba(var(--mist), 0.32) 45%, rgba(var(--mist), 0.1) 75%, rgba(var(--mist), 0) 100%);
  }
}
.rifinitura .delivery {
  background:
    radial-gradient(ellipse 90% 30% at 6% 32%,
      rgba(var(--mist-deep), 0.11) 0%, rgba(var(--mist-deep), 0.055) 40%, rgba(var(--mist-deep), 0.018) 70%, rgba(var(--mist-deep), 0) 100%),
    radial-gradient(ellipse 95% 36% at 96% 62%,
      rgba(var(--mist), 0.75) 0%, rgba(var(--mist), 0.42) 40%, rgba(var(--mist), 0.14) 70%, rgba(var(--mist), 0) 100%),
    linear-gradient(180deg, #fff 0%, #f7fbfe 14%, #f2f8fd 50%, #f7fbfe 86%, #fff 100%);
}
.rifinitura .cta {
  background:
    radial-gradient(ellipse 95% 44% at 50% 52%,
      rgba(var(--mist-deep), 0.1) 0%, rgba(var(--mist-deep), 0.05) 40%, rgba(var(--mist-deep), 0.015) 72%, rgba(var(--mist-deep), 0) 100%),
    linear-gradient(180deg, #fff 0%, #f8fbfe 22%, #f2f8fd 55%, #f8fbfe 84%, #fff 100%);
}
.rifinitura .cta::after {
  top: 54%; width: max(170%, 1100px); height: 88%;
  background: radial-gradient(closest-side,
    rgba(208, 231, 250, 0.7) 0%, rgba(var(--mist), 0.45) 38%, rgba(var(--mist), 0.16) 68%, rgba(245, 250, 254, 0) 100%);
}

/* ---------- R2. Immagini prodotto più morbide ----------
   Angoli appena arrotondati e bordo inferiore che sfuma nel fondo:
   la foto non viene deformata né ritagliata diversamente (object-fit: cover invariato). */
.rifinitura .product__media,
.rifinitura .products__frame {
  border-radius: 6px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.45) 93%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.45) 93%, rgba(0, 0, 0, 0) 100%);
}

.rifinitura .products__slide { border-radius: 0; -webkit-mask-image: none; mask-image: none; } /* copie nel palco: sfuma già la cornice */

/* ---------- R3. Spaziature verticali più compatte ---------- */
.rifinitura .products { padding-bottom: clamp(3rem, 1.75rem + 3.5vw, 6rem); }
.rifinitura .delivery {
  padding-top: clamp(3.5rem, 2rem + 4vw, 6.5rem);
  padding-bottom: clamp(3rem, 1.75rem + 3.5vw, 5.5rem);
}
.rifinitura .cta { padding-top: clamp(3.5rem, 2rem + 4.5vw, 7rem); padding-bottom: clamp(4.5rem, 2.5rem + 5vw, 8.5rem); }
.rifinitura .section-head { margin-bottom: clamp(40px, 6vw, 96px); }
.rifinitura .products__list { gap: clamp(48px, 7vw, 88px); }
.rifinitura .product__body { margin-top: 18px; }
.rifinitura .sectors__title { margin-top: clamp(56px, 7vw, 112px); }
.rifinitura .addon { margin-top: clamp(44px, 5vw, 80px); }
@media (min-width: 600px) {
  .rifinitura .product__body { margin-top: 0; } /* righe affiancate su tablet: nessuno spazio sopra al testo */
}
@media (min-width: 1024px) {
  .rifinitura .products.is-staged .products__list { gap: 0; } /* desktop: il ritmo è dato dall'altezza delle righe */
  .rifinitura .products.is-staged .product:last-child { min-height: 34vh; min-height: 34svh; padding-bottom: 24px; } /* meno vuoto sotto l'ultimo prodotto */
}
/* ##################### FINE RIFINITURA ##################### */

/* ##########################################################################
   CORREZIONE MENU MOBILE E ANCORE — 29/09/2026 (blocco reversibile)
   Causa del bug: il banner cookie di iubenda (z-index 99999998, contenitore
   alto fino all'80% dello schermo) si sovrapponeva al menu mobile e riceveva
   i tocchi destinati alle voci. Per annullare: cancellare questo blocco.
   ########################################################################## */

/* 1. Menu aperto = livello più alto della pagina (sopra anche al banner cookie).
      Alla chiusura torna al suo livello normale e il banner è di nuovo in primo piano. */
html.menu-open .menu { z-index: 2147483000; }
html.menu-open .site-header { z-index: 2147483001; } /* la X di chiusura resta sopra al menu */

/* 2. Durante la dissolvenza di chiusura il menu non intercetta più i tocchi */
.menu { pointer-events: none; }
html.menu-open .menu { pointer-events: auto; }

/* 3. Ancore: la distanza dall'header fisso è data alle sezioni (scroll-margin-top)
      e non più al documento, così vale per menu, link interni e URL con #hash */
:root { --anchor-offset: 76px; } /* header compatto (max 69px) + respiro */
html { scroll-padding-top: 0; }
main > section[id] { scroll-margin-top: var(--anchor-offset); }
/* ##################### FINE CORREZIONE MENU ##################### */
