/* ==========================================================================
   Fossati Serramenti — Landing brand (privati, rivenditori, professionisti)
   Design system condiviso con la landing B2B partner (info.fossatiserramenti.it)
   Indice: 1 Font · 2 Token · 3 Base · 4 Layout · 5 Tipografia · 6 Bottoni
           7 Header/Menu · 8 Media · 9 Sezioni · 10 Form · 11 Footer
           12 Cookie banner · 13 Thank you · 14 Animazioni / Motion
   ========================================================================== */

/* 1. FONT (Archivo variabile self-hosted: nessuna chiamata a terze parti) */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. TOKEN */
:root {
  --c-white: #FFFFFF;
  --c-mist: #F1F3F7;
  --c-graphite: #434345;
  --c-iron: #1C1F21;
  --c-blue: #009DD4;
  --c-blue-deep: #00729C;
  --c-blue-light: #44BAE3;
  --c-muted: #5E6166;
  --c-line: #D5D8DE;
  --c-field: #8A8F97;
  --c-error: #B42318;
  --c-on-dark: #C3C8CF;

  --ff: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --fs-xl: clamp(2.75rem, 0.9rem + 6.4vw, 7.5rem);
  --fs-l: clamp(2.25rem, 1rem + 4.2vw, 5.25rem);
  --fs-lead: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  --fs-body: clamp(1rem, 0.96rem + 0.15vw, 1.0625rem);
  --fs-label: 0.75rem;
  --fs-num: clamp(3.5rem, 2rem + 5vw, 7.5rem);

  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section-y: clamp(5rem, 3rem + 7vw, 10rem);
  --header-h: 116px;   /* logo 80px */
  --header-h-c: 88px;  /* logo 64px */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --tri: polygon(0 0, 100% 0, 0 100%);
}

/* 3. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h-c) + 8px); }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.7;
  color: var(--c-graphite);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ul, address { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue-deep); }
p + p { margin-top: 1.1em; }
strong { font-weight: 700; }
button { font-family: inherit; }
[hidden] { display: none !important; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  padding: .75rem 1.25rem; background: var(--c-iron); color: #fff;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* 4. LAYOUT */
.container { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--c-mist); }
.section--iron { background: var(--c-iron); color: var(--c-on-dark); }

/* 5. TIPOGRAFIA */
.display-xl, .display-l {
  font-weight: 600;
  color: var(--c-iron);
  text-wrap: balance;
}
.display-xl { font-size: var(--fs-xl); font-stretch: 66%; line-height: .92; letter-spacing: -.015em; }
.display-l { font-size: var(--fs-l); font-stretch: 70%; font-weight: 560; line-height: .98; letter-spacing: -.01em; }
.lead {
  font-size: var(--fs-lead); font-weight: 520; line-height: 1.3;
  color: var(--c-iron); letter-spacing: -.005em; text-wrap: balance;
}
.lead--light { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-label); font-stretch: 125%; font-weight: 640;
  letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--c-iron);
}
.eyebrow::before {
  content: ""; flex: none; width: .8rem; height: .8rem;
  background: var(--c-blue); clip-path: var(--tri);
}
.text-strong { font-weight: 620; color: var(--c-iron); }

/* 6. BOTTONI (spigoli vivi; firma: triangolo azzurro d'angolo in hover) */
.btn {
  --btn-bg: transparent; --btn-fg: var(--c-iron); --btn-bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; max-width: 100%;
  padding: .9rem 1.5rem;
  font-family: inherit; font-size: .9375rem; font-weight: 600; font-stretch: 100%;
  line-height: 1.25; letter-spacing: .005em; text-align: left; text-decoration: none;
  color: var(--btn-fg); background-color: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: 0; cursor: pointer;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; top: 0; left: 0; z-index: 1;
  width: 16px; height: 16px; background: var(--c-blue);
  clip-path: var(--tri);
  transform: scale(0); transform-origin: 0 0; transition: transform .4s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scale(1); }
.btn__icon {
  flex: none; width: 1.125rem; height: 1.125rem;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  transition: transform .4s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--primary { --btn-bg: var(--c-blue-deep); --btn-fg: #fff; --btn-bd: var(--c-blue-deep); }
.btn--primary:hover { --btn-bg: var(--c-iron); --btn-bd: var(--c-iron); }
.btn--line { --btn-bd: var(--c-iron); }
.btn--line:hover { --btn-bg: var(--c-iron); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-iron); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--c-blue-deep); --btn-fg: #fff; --btn-bd: var(--c-blue-deep); }
.btn--dark { --btn-bg: var(--c-iron); --btn-fg: #fff; --btn-bd: var(--c-iron); }
.btn--dark:hover { --btn-bg: var(--c-blue-deep); --btn-bd: var(--c-blue-deep); }
.btn--sm { min-height: 2.75rem; padding: .6rem 1.1rem; font-size: .8125rem; }
/* CTA principale della hero: più alta, più larga e con testo più leggibile */
.btn--lg { min-height: 3.5rem; padding: 1rem 2rem; gap: 1.25rem; font-size: 1.0625rem; letter-spacing: 0; }
.btn--lg::before { width: 18px; height: 18px; }
.btn--lg .btn__icon { width: 1.25rem; height: 1.25rem; }

/* 7. HEADER / MENU */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background-color: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(12px); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .35s ease;
}
.site-header.is-compact { border-bottom-color: var(--c-line); }
/* sopra la foto della hero: header trasparente con logo bianco */
.header__logo-light { display: none; }
.site-header.is-over-hero:not(.menu-open) {
  background-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent;
}
.site-header.is-over-hero:not(.menu-open) .header__logo-dark { display: none; }
.site-header.is-over-hero:not(.menu-open) .header__logo-light { display: block; }
.site-header.is-over-hero:not(.menu-open) .nav__toggle { color: #fff; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h); transition: height .4s var(--ease);
}
.is-compact .header__inner { height: var(--header-h-c); }
.header__logo { display: block; flex: none; }
.header__logo img { width: auto; height: 80px; transition: height .4s var(--ease); }
.is-compact .header__logo img { height: 64px; }
@media (max-width: 599px) {
  :root { --header-h: 96px; --header-h-c: 76px; }
  .header__logo img { height: 72px; }
  .is-compact .header__logo img { height: 58px; }
}

.nav__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -12px; padding: 0;
  background: none; border: 0; color: var(--c-iron); cursor: pointer;
}
.nav__toggle-bars { position: relative; display: block; width: 26px; height: 10px; }
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
  background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav__toggle-bars::before { top: 0; }
.nav__toggle-bars::after { top: 8px; }
.nav.is-open .nav__toggle-bars::before { top: 4px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-bars::after { top: 4px; transform: rotate(-45deg); }

.nav__panel {
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h-c)); height: calc(100dvh - var(--header-h-c));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1rem var(--gutter) 2rem; overflow-y: auto;
  background: #fff; border-top: 1px solid var(--c-line);
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
}
.nav.is-open .nav__panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav__link {
  display: block; padding: .55rem 0;
  font-size: clamp(1.875rem, 7.5vw, 3rem); font-stretch: 68%; font-weight: 560; line-height: 1.1;
  color: var(--c-iron); text-decoration: none; border-bottom: 1px solid var(--c-line);
}
.nav__link[aria-current="true"] { color: var(--c-blue-deep); }
.nav__cta { margin-top: 2rem; justify-content: center; }
body.menu-open { overflow: hidden; }

@media (min-width: 1180px) {
  .nav__toggle { display: none; }
  .nav__panel {
    position: static; height: auto; overflow: visible;
    flex-direction: row; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem);
    padding: 0; background: none; border: 0;
    visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav__list { display: flex; gap: clamp(1rem, 1.5vw, 1.75rem); }
  .nav__link {
    position: relative; padding: 1.05rem 0; border: 0; white-space: nowrap;
    font-size: .72rem; font-stretch: 112%; font-weight: 620; line-height: 1;
    letter-spacing: .1em; text-transform: uppercase; color: var(--c-graphite);
    transition: color .3s ease;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 2px;
    background: var(--c-blue); transform: scaleX(0); transform-origin: left;
    transition: transform .45s var(--ease);
  }
  .nav__link:hover, .nav__link[aria-current="true"] { color: var(--c-iron); }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-header.is-over-hero .nav__link { color: rgba(255, 255, 255, .86); }
  .site-header.is-over-hero .nav__link:hover { color: #fff; }
  .nav__cta { margin: 0; white-space: nowrap; }
}

/* 8. MEDIA (immagini a spigoli vivi con reveal a triangolo + parallax) */
.media { position: relative; overflow: hidden; margin: 0; background: var(--c-mist); }
.media__inner { position: absolute; inset: 0; display: block; }
.media[data-parallax] .media__inner { inset: -14% 0; }
.media img, .media picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--video { aspect-ratio: 16 / 9; }
.section--iron .media { background: #2A2E31; }

/* 9. SEZIONI */

/* --- Hero: foto a schermo intero, testi raccolti in basso su una velatura Ferro --- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--header-h) + 3rem) 0 clamp(2rem, 4vw, 3.5rem);
  background: var(--c-iron); color: #fff;
}
.hero__wipe { position: absolute; inset: 0; z-index: 0; background: var(--c-blue); clip-path: polygon(0% 0%, 0% 0%, 0% 0%); }
.hero__bg { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform-origin: 55% 45%; }
@media (max-aspect-ratio: 1/1) { .hero__img { object-position: 22% 50%; } }
.hero__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 31, 33, .55) 0%, rgba(28, 31, 33, 0) 22%),
    linear-gradient(0deg, rgba(28, 31, 33, .95) 0%, rgba(28, 31, 33, .86) 26%, rgba(28, 31, 33, .55) 52%, rgba(28, 31, 33, .08) 80%);
}
.hero__content { position: relative; z-index: 3; }
.hero__title { max-width: 13em; font-size: clamp(3rem, .9rem + 6.6vw, 8.5rem); color: #fff; }
.hero__meta {
  margin-top: clamp(1.75rem, 3.5vw, 3rem); padding-top: clamp(1.25rem, 2.2vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, .26); row-gap: 1.75rem; align-items: end;
}
.hero__sub { font-size: clamp(1.0625rem, .95rem + .45vw, 1.375rem); font-weight: 600; line-height: 1.35; color: #fff; }
.hero__lead { max-width: 54ch; margin-top: .9rem; color: rgba(255, 255, 255, .84); }
/* CTA subito sotto il blocco di testo, allineata a sinistra (continuità messaggio → azione) */
.hero__cta .btn { width: 100%; }
@media (min-width: 600px) {
  .hero__cta { justify-self: start; }
  .hero__cta .btn { width: auto; }
}
@media (min-width: 900px) { .hero__info { grid-column: 1 / 9; } }
.hero__scroll { display: none; }
@media (min-width: 900px) {
  .hero__scroll {
    display: block; position: absolute; z-index: 3; right: calc(var(--gutter) / 2); top: 50%;
    width: 1px; height: 72px; overflow: hidden; background: rgba(255, 255, 255, .25);
  }
  .hero__scroll span { position: absolute; left: 0; top: 0; width: 1px; height: 24px; background: #fff; animation: scrollcue 2.4s var(--ease) infinite; }
}
@keyframes scrollcue { from { transform: translateY(-24px); } to { transform: translateY(72px); } }

/* --- Trittico dei tre materiali (sezione Fossati) --- */
.triptych { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.triptych__item:first-child { grid-column: 1 / -1; }
.triptych__item .media { aspect-ratio: 4 / 5; }
.triptych__item:first-child .media { aspect-ratio: 4 / 3; }
.triptych__item:first-child img { object-position: 50% 60%; }
@media (min-width: 900px) {
  .triptych { grid-template-columns: 1.55fr 1fr 1fr; align-items: end; }
  .triptych__item:first-child { grid-column: auto; }
  .triptych__item .media, .triptych__item:first-child .media { aspect-ratio: auto; height: clamp(22rem, 46vw, 46rem); }
  .triptych__item:nth-child(2) .media { height: clamp(18rem, 36vw, 36rem); }
  .triptych__item:nth-child(3) .media { height: clamp(20rem, 41vw, 41rem); }
}

/* --- Intestazioni e piedi di sezione --- */
.section-head { row-gap: 1.75rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-head__aside > * + * { margin-top: 1.25rem; }
.section-head__aside .lead + p { margin-top: 1.5rem; }
@media (min-width: 900px) {
  .section-head__title { grid-column: 1 / 8; }
  .section-head__aside { grid-column: 9 / 13; align-self: end; }
}
.section-cta { margin-top: clamp(3rem, 6vw, 5rem); }
.section-foot {
  row-gap: 2rem; align-items: center;
  margin-top: clamp(3.5rem, 6vw, 6rem); padding-top: 2rem; border-top: 1px solid var(--c-iron);
}
.section-foot__text {
  max-width: 34ch; font-size: clamp(1.375rem, 1rem + 1.3vw, 2.25rem); font-stretch: 80%; font-weight: 600;
  line-height: 1.15; letter-spacing: -.005em; color: var(--c-iron); text-wrap: balance;
}
@media (min-width: 900px) {
  .section-foot__text { grid-column: 1 / 9; }
  .section-foot__cta { grid-column: 9 / 13; justify-self: end; }
}

/* --- Fossati: una scelta che dura nel tempo --- */
.domande { row-gap: 2rem; margin-top: clamp(3.5rem, 7vw, 7rem); }
.domande__intro { max-width: 22ch; }
.domanda {
  display: flex; align-items: baseline; gap: 1rem;
  padding: clamp(1.1rem, 2vw, 1.6rem) 0; border-top: 1px solid var(--c-line);
  font-size: clamp(1.375rem, 1rem + 1.5vw, 2.5rem); font-stretch: 72%; font-weight: 560;
  line-height: 1.12; letter-spacing: -.005em; color: var(--c-iron);
}
.domanda:last-child { border-bottom: 1px solid var(--c-line); }
.domanda::before {
  content: ""; flex: none; width: .42em; height: .42em; transform: translateY(-.05em);
  background: var(--c-blue); clip-path: var(--tri);
}
@media (min-width: 900px) {
  .domande__intro { grid-column: 1 / 5; }
  .domande__list { grid-column: 6 / 13; }
}

/* --- Le nostre soluzioni: righe per materiale --- */
.soluzioni__claim {
  max-width: 26em; margin-bottom: clamp(3rem, 6vw, 5.5rem);
  font-size: clamp(1.5rem, 1rem + 1.9vw, 2.875rem); font-stretch: 72%; font-weight: 560;
  line-height: 1.08; letter-spacing: -.005em; color: var(--c-iron); text-wrap: balance;
}
.solution { row-gap: 1.75rem; padding-block: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--c-iron); }
.solution:last-child { border-bottom: 1px solid var(--c-iron); }
.solution__name {
  font-size: clamp(2.5rem, 1rem + 3.8vw, 4.75rem); font-stretch: 66%; font-weight: 600;
  line-height: .95; letter-spacing: -.015em; color: var(--c-iron); text-wrap: balance;
}
.solution__tag {
  display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem;
  font-size: var(--fs-label); font-stretch: 125%; font-weight: 640;
  letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; color: var(--c-iron);
}
.solution__tag::before { content: ""; flex: none; width: .8rem; height: .8rem; background: var(--c-blue); clip-path: var(--tri); }
.solution__media { aspect-ratio: 4 / 3; background: #111; }
.solution__media img { transition: transform 1.2s var(--ease); }
.solution:hover .solution__media img { transform: scale(1.04); }
.solution__q { font-size: 1.125rem; font-weight: 620; line-height: 1.45; color: var(--c-iron); }
.solution__body p { max-width: 48ch; }
.solution__lines { margin-top: 1.75rem !important; padding-top: 1rem; border-top: 1px solid var(--c-line); font-weight: 620; color: var(--c-iron); }
.solution__lines em {
  display: block; margin-bottom: .2rem; font-style: normal;
  font-size: var(--fs-label); font-stretch: 125%; font-weight: 640; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-muted);
}
@media (min-width: 900px) {
  .solution { align-items: start; }
  .solution__head { grid-column: 1 / 5; }
  .solution__media { grid-column: 5 / 9; aspect-ratio: 1 / 1; }
  .solution__body { grid-column: 9 / 13; }
  .solution:nth-child(even) .solution__media { grid-column: 9 / 13; grid-row: 1; }
  .solution:nth-child(even) .solution__body { grid-column: 5 / 9; grid-row: 1; }
}

/* --- Qualità e produzione (blocco Ferro) --- */
/* Modulo = 3 colonne della griglia: la verticale a col. 10 lega testo, foto laterale, 4° numero e CTA */
.qualita__head { row-gap: 1.75rem; align-items: end; }
.qualita__title { color: #fff; }
.qualita__intro { max-width: 34ch; font-size: 1.125rem; font-weight: 500; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.qualita__intro strong { color: #fff; }
.qualita__gallery { margin-top: clamp(3rem, 6vw, 5.5rem); align-items: stretch; }
.qualita__media { height: clamp(15rem, 40vw, 36rem); }
.qualita__media--main { grid-column: 1 / 9; }
.qualita__media--main img { object-position: 50% 45%; }
.qualita__media--side { grid-column: 9 / 13; }
@media (min-width: 700px) {
  .qualita__media--main { grid-column: 1 / 10; }
  .qualita__media--side { grid-column: 10 / 13; }
}
@media (min-width: 1100px) {
  .qualita__title { grid-column: 1 / 10; }
  .qualita__intro { grid-column: 10 / 13; padding-bottom: .35rem; }
}
.stats { display: grid; grid-template-columns: 1fr; gap: 3rem var(--gap); margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.stat { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .4); }
/* etichetta sopra il numero (l'ordine del testo nel DOM resta quello del copy) */
.stat__head { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .9rem; margin-bottom: 1.1rem; font-weight: inherit; }
.stat__head--pre { flex-direction: column; }
.stat__num {
  display: block; font-size: var(--fs-num); font-stretch: 62%; font-weight: 520;
  line-height: .9; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block; font-size: var(--fs-label); font-stretch: 125%; font-weight: 640;
  letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; color: #fff;
}
.stat p { max-width: 30ch; color: rgba(255, 255, 255, .82); }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qualita__foot {
  row-gap: 1.75rem; align-items: center;
  margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .2);
}
.qualita__foot-text { font-size: var(--fs-lead); font-weight: 520; line-height: 1.3; color: #fff; text-wrap: balance; }
@media (min-width: 1100px) {
  .qualita__foot-text { grid-column: 1 / 10; }
  .qualita__foot-cta { grid-column: 10 / 13; }
}

/* --- Garanzia e tracciabilità: due metà, bordi superiore e inferiore allineati --- */
.garanzia__grid { row-gap: 3rem; }
.garanzia__content { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4rem); }
.garanzia__title { max-width: 11em; }
.garanzia__text { padding-top: 1.75rem; border-top: 1px solid var(--c-iron); }
.garanzia__text p { max-width: 50ch; }
.garanzia__text .lead { max-width: 30ch; margin-bottom: 1.5rem; }
.garanzia__text .lead strong { color: var(--c-blue-deep); }
.garanzia__cta { margin-top: 2.25rem; }
.garanzia__media { aspect-ratio: 4 / 3; }
.garanzia__media img { object-position: 50% 40%; }
@media (min-width: 900px) {
  .garanzia__grid { align-items: stretch; }
  .garanzia__content { grid-column: 1 / 6; justify-content: space-between; }
  .garanzia__media { grid-column: 7 / 13; aspect-ratio: auto; min-height: clamp(30rem, 44vw, 42rem); }
}

/* --- Scopri come lavoriamo: video unico --- */
@media (min-width: 900px) { .lavoro .section-head__title { grid-column: 1 / 9; } }
.video__trigger {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.video__trigger:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -3px; }
.video__trigger img { transition: transform .9s var(--ease); }
.video__trigger:hover img { transform: scale(1.03); }
.video__trigger::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(28, 31, 33, .45) 0%, rgba(28, 31, 33, 0) 45%);
}
.video__play {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  width: clamp(64px, 8vw, 120px); height: clamp(64px, 8vw, 120px);
  background: #fff; transition: background-color .35s var(--ease);
}
.video__play::after {
  content: ""; position: absolute; inset: 34% 30% 34% 40%;
  background: var(--c-iron); clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: background-color .35s var(--ease);
}
.video__trigger:hover .video__play, .video__trigger:focus-visible .video__play { background: var(--c-blue-deep); }
.video__trigger:hover .video__play::after, .video__trigger:focus-visible .video__play::after { background: #fff; }
.video__player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* --- Testate: nastro tipografico continuo --- */
.press { margin-top: clamp(4.5rem, 9vw, 8rem); }
.press__title { font-size: 1.0625rem; font-weight: 620; line-height: 1.4; color: var(--c-iron); }
.marquee {
  display: flex; overflow: hidden; margin-top: 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid var(--c-line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__list {
  flex: none; display: flex; align-items: center;
  gap: clamp(3.5rem, 7vw, 7rem); padding-right: clamp(3.5rem, 7vw, 7rem);
  animation: marquee 36s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }
/* loghi monocromatici; Abitare e Mediaset come scritta tipografica */
.press__logo { width: auto; height: calc(var(--h, 2rem) * 1.1); max-width: none; filter: brightness(0); opacity: .8; }
.press__logo--color { filter: grayscale(1) contrast(1.15); opacity: .9; }
.press__wordmark { font-size: 1.85rem; font-weight: 800; line-height: 1; white-space: nowrap; color: #000; opacity: .8; }
.press__wordmark--abitare { font-stretch: 100%; letter-spacing: -.035em; text-transform: lowercase; }
.press__wordmark--mediaset { font-size: 1.6rem; font-stretch: 112%; letter-spacing: .01em; }
@media (min-width: 900px) { .press__logo { height: calc(var(--h, 2rem) * 1.3); } }

/* --- Showcase fotografico (scroll-snap nativo + parallax interno) --- */
.showcase-band { padding-block: var(--section-y); }
.showcase { --edge: var(--gutter); }
.showcase__track {
  display: flex; gap: var(--gap);
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.showcase__track::-webkit-scrollbar { display: none; }
.showcase__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.showcase__track:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 4px; }
.showcase__slide { flex: 0 0 auto; width: 86vw; margin: 0; scroll-snap-align: start; }
.showcase__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-mist); }
.showcase__media img {
  position: absolute; top: 0; left: -6%; width: 112%; max-width: none; height: 100%;
  object-fit: cover; pointer-events: none; -webkit-user-drag: none;
}
.showcase__bar { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); margin-top: 1.75rem; }
.showcase__count {
  flex: none; font-size: var(--fs-label); font-stretch: 125%; font-weight: 640;
  letter-spacing: .14em; color: var(--c-iron); font-variant-numeric: tabular-nums;
}
.showcase__total { color: var(--c-muted); }
.showcase__progress { position: relative; flex: 1; height: 1px; background: var(--c-line); }
.showcase__progress span { position: absolute; inset: -1px 0; background: var(--c-iron); transform: scaleX(.1); transform-origin: left; transition: transform .3s ease-out; }
.showcase__nav { display: flex; gap: .5rem; }
.showcase__btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; padding: 0; color: var(--c-iron); background: transparent;
  border: 1px solid var(--c-iron); border-radius: 0; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .3s ease;
}
.showcase__btn::before {
  content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; background: var(--c-blue);
  clip-path: var(--tri); transform: scale(0); transform-origin: 0 0; transition: transform .4s var(--ease);
}
.showcase__btn:hover { background: var(--c-iron); color: #fff; }
.showcase__btn:hover::before { transform: scale(1); }
.showcase__btn svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.showcase__btn[aria-disabled="true"] { opacity: .3; pointer-events: none; }
@media (min-width: 900px) { .showcase__slide { width: 66vw; } }

/* --- Contattaci --- */
.contatti__grid { row-gap: 3rem; }
.contatti__intro p { max-width: 40ch; margin-top: 1.75rem; }
@media (min-width: 1024px) {
  .contatti__intro { grid-column: 1 / 6; align-self: start; }
  .form-embed { grid-column: 7 / 13; }
}

/* 10. FORM (Zoho Forms incorporato: lo stile interno del form si imposta nel tema di Zoho) */
.form-embed { min-width: 0; }
.form-embed iframe { display: block; max-width: 100%; }
.form__phone { margin-top: 1.5rem; font-size: .9375rem; color: var(--c-iron); }
.form__phone a { display: inline-block; padding-block: .6rem; font-weight: 640; color: var(--c-blue-deep); text-underline-offset: 3px; }

/* 11. FOOTER */
.site-footer {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  font-size: .9375rem; line-height: 1.6;
  background: var(--c-iron); color: var(--c-on-dark);
}
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; }
.footer__brand img { width: auto; height: 88px; }
.footer__legal { margin-top: 1.5rem; }
.footer__brand .footer__cert { width: 64px; height: 64px; margin-top: 1.5rem; }
.footer__title {
  margin-bottom: .9rem; font-size: var(--fs-label); font-stretch: 125%; font-weight: 640;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.site-footer address { font-style: normal; }
.site-footer a, .footer__cookie {
  color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color .25s ease, text-decoration-color .25s ease;
}
.site-footer a:hover, .footer__cookie:hover { color: var(--c-blue-light); text-decoration-color: var(--c-blue-light); }
.footer__col a, .footer__legal-links a, .footer__cookie { display: inline-flex; align-items: center; min-height: 44px; }
.footer__phone { margin-top: .5rem !important; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14); font-size: .8125rem;
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer__cookie { padding: 0; background: none; border: 0; font: inherit; cursor: pointer; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); } }

/* 12. COOKIE BANNER */
.cc {
  position: fixed; z-index: 90; left: .75rem; right: .75rem; bottom: .75rem;
  max-width: 38rem; max-height: calc(100dvh - 1.5rem); overflow-y: auto;
  padding: 1.5rem; font-size: .875rem; line-height: 1.6; color: var(--c-graphite);
  background: #fff; border: 1px solid var(--c-iron);
}
.cc::before {
  content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px;
  background: var(--c-blue); clip-path: var(--tri);
}
.cc__title { margin-bottom: .5rem; font-size: 1.125rem; font-weight: 620; line-height: 1.3; color: var(--c-iron); }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.cc__actions .btn { flex: 1 1 8rem; justify-content: center; }
.cc__link {
  min-height: 44px; padding: 0 .25rem; background: none; border: 0;
  font: inherit; font-weight: 620; color: var(--c-iron);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.cc__prefs { margin-top: 1.5rem; border-top: 1px solid var(--c-line); }
.cc__cat { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--c-line); }
.cc__cat-title { font-weight: 620; color: var(--c-iron); }
.cc__cat-desc { grid-column: 1 / 2; font-size: .8125rem; color: var(--c-muted); }
.cc__switch { grid-row: 1 / span 2; grid-column: 2; display: flex; }
.cc__switch input {
  position: relative; width: 46px; height: 26px; margin: 0;
  background: #fff; border: 1px solid var(--c-graphite); border-radius: 0;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.cc__switch input::before {
  content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px;
  background: var(--c-graphite); transition: transform .25s var(--ease), background-color .25s ease;
}
.cc__switch input:checked { background: var(--c-blue-deep); border-color: var(--c-blue-deep); }
.cc__switch input:checked::before { transform: translateX(20px); background: #fff; }
.cc__switch input:disabled { opacity: .55; cursor: not-allowed; }
.cc__save { width: 100%; margin-top: 1.25rem; justify-content: center; }
@media (min-width: 700px) { .cc { left: var(--gutter); right: auto; bottom: 1.5rem; padding: 2rem; } }

/* 13. THANK YOU */
.thanks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.thanks .site-header { position: static; }
.thanks__main { flex: 1; display: flex; align-items: center; padding-block: clamp(4rem, 10vw, 9rem); }
.thanks__title { max-width: 14em; margin-top: 1.75rem; }
.thanks__text { max-width: 46ch; margin-top: 2rem; font-size: var(--fs-lead); font-weight: 500; line-height: 1.35; color: var(--c-iron); }
.thanks__contact { margin-top: 1.25rem; }
.thanks__cta { margin-top: 2.75rem; }
.thanks [data-enter] { animation: enter 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }

/* 14. ANIMAZIONI / MOTION
   Gli stati iniziali nascosti valgono solo con .js-anim (JS attivo, motion consentito). */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .12em; margin: -.1em 0 -.12em; }
.w-i { display: inline-block; }
.js-anim [data-reveal], .js-anim [data-split] { opacity: 0; }
.js-anim [data-media], .js-anim .hero__bg, .js-anim .showcase__media { clip-path: polygon(0% 0%, 0% 0%, 0% 0%); }
.js-anim [data-hero-title], .js-anim [data-hero-item], .js-anim .hero__shade, .js-anim .hero__scroll, .js-anim .site-header { opacity: 0; }

@media (prefers-reduced-motion: no-preference) { html:not(.has-smoother) { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 1.5rem; width: 100%; padding-right: 0; animation: none; }
  .marquee__list[aria-hidden="true"] { display: none; }
}
