/* =====================================================================
   Magvalves — sito statico · design moderno, stesso brand
   palette: nero #000 · navy #131D3B · giallo #FEED01 · testo #2C2C2C
   ===================================================================== */
:root {
  --black: #000000;
  --navy: #131D3B;
  --ink: #2C2C2C;
  --yellow: #FEED01;
  --yellow-soft: #FFF663;
  --paper: #FFFFFF;
  --grey: #F4F4F4;
  --line: #E6E6E4;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 29, 59, .10);
  --shadow-lg: 0 18px 50px rgba(19, 29, 59, .16);
  --header-h: 88px;
  --ff: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7, U+02C9, U+02D0-02D1, U+02DD, U+1E00-1EFF;
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/roboto-condensed-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--black); }
h1, h2, h3, h4 { color: var(--black); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 860px; }
/* pagine interne generiche: contenitore più largo, come l'originale (~1244px di testo) */
main.wide .sec > .wrap, main.wide .crumb-bar .wrap { max-width: 1292px; }
/* come l'originale: sotto 1024px le griglie si impilano a colonna singola
   (!important serve a battere le colonne inline scritte dal renderer sulle griglie adattive) */
@media (max-width: 1024px) {
  .grid.g2, .grid.g3 { grid-template-columns: 1fr !important; }
}
/* loghi produttori rappresentati, sotto il breadcrumb delle pagine prodotto */
.maker-strip { padding: 26px 0; background: #fff; border-bottom: 1px solid var(--line); }
.maker-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 56px; }
.maker-logos img { height: 56px; width: auto; }
@media (max-width: 620px) { .maker-logos { gap: 26px; } .maker-logos img { height: 34px; } }
.ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -0.12em; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--yellow);
  color: #000; padding: 10px 18px; font-weight: 700; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }
.hp { position: absolute; left: -9999px; }

/* ---------- topbar (come il sito originale: #2C2C2C, testi gialli, bandierine a destra) ---------- */
.topbar { background: #2C2C2C; color: #fff; font-size: 14px; }
.tb-in { display: flex; align-items: center; gap: 26px; min-height: 64px; max-width: none; padding: 0 44px; }
.topbar a { color: var(--yellow); display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15px; text-transform: uppercase; }
.topbar a:hover { color: #fff; }
.tb-ico { width: 20px; height: 20px; }
.tb-lang { margin-left: auto; display: flex; gap: 15px; align-items: center; }
.tb-lang span, .tb-lang a { display: inline-flex; align-items: center; }
.tb-lang a { opacity: .55; transition: opacity .15s; }
.tb-lang a:hover { opacity: 1; }
/* bandierina della lingua corrente: sempre a piena opacita' */
.tb-lang a.cur { opacity: 1; }
.flag {
  width: 24px; height: 16px; display: inline-block; border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); vertical-align: -2px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--yellow);
  transition: transform .3s ease;
}
.site-header.bar-hidden { transform: translateY(-100%); }
.hd-in { display: flex; align-items: center; gap: 30px; min-height: var(--header-h); max-width: none; padding: 0 44px; }
.brand img { width: 200px; }
.main-nav { margin-left: auto; align-self: stretch; display: flex; align-items: stretch; }
.nav { display: flex; align-items: stretch; gap: 4px; margin-left: auto; }
.nav > li { position: relative; }
/* voci menu come il sito originale: compatte, peso 600, underline gialla */
.nav > li { display: flex; align-items: stretch; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px; position: relative;
  padding: 0 16px; font-weight: 600; font-size: 16px; color: #2C2C2C;
  text-transform: uppercase;
  transition: color .18s, font-weight .18s;
}
.nav > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--black); transform: scaleX(0); transform-origin: left center; transition: transform .2s ease;
}
.nav > li > a:hover, .nav > li.active > a, .nav > li.has-sub.active > a {
  color: var(--black); font-weight: 700;
}
.nav > li > a:hover::after, .nav > li.active > a::after, .nav > li.has-sub.active > a::after { transform: scaleX(1); }
.nav .drop { width: 13px; height: 13px; transition: transform .2s; }
.nav > li.has-sub:hover .drop { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s ease;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: block; padding: 12px 20px; font-size: 15.5px; font-weight: 600; color: var(--ink);
  transition: background .18s, color .18s;
}
.sub a:hover, .sub a.active { background: var(--yellow); color: var(--black); font-weight: 700; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px;
  padding: 6px 4px; position: relative; z-index: 1100;
}
.nav-toggle-bar { width: 26px; height: 3.5px; background: var(--black); transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* pannello aperto: la X va in alto a destra dello schermo, sopra il pannello */
.nav-toggle[aria-expanded="true"] { position: fixed; top: 16px; right: 20px; margin: 0; }

/* ---------- hero home ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)), var(--hero-img) center/cover no-repeat, var(--navy);
  /* desktop: occupa solo lo spazio sopra la banda brand (170px barre + 188px banda), così la striscia loghi è visibile appena si entra */
  min-height: max(430px, calc(100vh - 340px)); display: flex; align-items: center;
  padding: 72px 0;
}
.hero-in { max-width: 1040px; }
.br-d { display: none; }
@media (min-width: 901px) { .br-d { display: inline; } }
.hero h1 {
  color: #fff; font-size: clamp(34px, 5.5vw, 80px); font-weight: 700;
  letter-spacing: normal; line-height: 1.05; margin: 10px 0 6px;
  text-wrap: balance;
}
.hero .kicker {
  color: #fff; font-weight: 400; text-transform: none;
  letter-spacing: 3.6px; font-size: clamp(16px, 1.6vw, 18px); margin: 0 0 8px;
}
.hero-h2 { display: block; font-size: clamp(20px, 3vw, 34px); font-weight: 700; color: #fff; margin-top: 6px; }
.hero-note { color: rgba(255,255,255,.85); margin-left: 14px; }

/* ---------- hero pagine interne (foto di sfondo come il sito vecchio) ---------- */
.page-hero {
  background:
    linear-gradient(rgba(10, 15, 34, .42), rgba(10, 15, 34, .58)),
    url("/assets/img/2024-06-magvalves2.webp") center center / cover no-repeat fixed,
    var(--navy);
  color: #fff; padding: 108px 0 96px; position: relative;
}
@media (max-width: 900px) {
  .page-hero { padding: 72px 0 64px; background-attachment: scroll; }
}
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); font-weight: 900; margin: 4px 0 0; letter-spacing: -.01em; text-align: center; }
.page-hero .wrap { text-align: center; }
.page-hero .kicker {
  color: var(--yellow); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 14px; margin: 0;
}
.crumbs { font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs a:hover { color: var(--yellow); }
.crumbs .sep { margin: 0 6px; opacity: .5; }
/* barra gialla breadcrumb a tutta larghezza, sotto la foto hero (come l'altro sito) */
.crumb-bar { background: var(--yellow); padding: 13px 0; font-size: 15px; font-weight: 500; color: var(--black); text-align: left; }
.crumb-bar .wrap { padding-top: 0; padding-bottom: 0; }
.crumb-bar a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.crumb-bar a:hover { text-decoration-thickness: 2px; }
.crumb-bar .sep { margin: 0 12px; font-weight: 700; }

/* ---------- bottoni (come il vecchio sito: gialli, angoli 4px, hover nero) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--yellow); color: var(--ink) !important;
  font-family: "Roboto Condensed", "Roboto", Arial, sans-serif;
  font-size: 18px; font-weight: 500; letter-spacing: .02em;
  padding: 16px 32px; border-radius: 4px; border: 0;
  transition: background .2s, color .2s;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--black); color: var(--yellow-soft) !important; }
.btn-lg { padding: 20px 40px; }
.btn-dark, .btn-ink, .btn-ghost { background: var(--yellow); color: var(--ink) !important; border: 0; }
.btn-dark:hover, .btn-ink:hover, .btn-ghost:hover { background: var(--black); color: var(--yellow-soft) !important; }
.cta-row { margin: 22px 0 0; }

/* ---------- sezioni ---------- */
.sec { padding: 72px 0; }
.sec .sec, .block, .row, .grid { margin: 0; }
.bg-yellow { background: var(--yellow); }
.over {
  color: var(--ink); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: 14px; margin: 0 0 6px;
}
.over::after { content: ""; display: inline-block; width: 34px; height: 3px; background: var(--yellow); margin-left: 12px; vertical-align: middle; border-radius: 2px; }
.over-dark { color: var(--navy); }
.over-dark::after { background: var(--black); }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.center { text-align: center; }
.center.over::after { display: none; }
.lead { font-size: 18.5px; color: #4a4a48; }
.prose { font-size: 17px; }
.prose a { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; font-weight: 500; }
.prose ul { list-style: none; margin: 0 0 1em; }
.prose ul > li { position: relative; padding-left: 20px; margin-bottom: 8px; text-align: justify; }
.prose ul > li::before { content: ""; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; background: var(--black); border-radius: 50%; }
.prose li strong { color: var(--black); }

/* specifiche tecniche: righe di testo semplice come nell'originale */
p.spec { display: block; padding: 0; margin: 0 0 16px; background: none; border: 0; text-align: left; }
p.spec b { color: var(--black); font-weight: 700; }
p.spec span b { display: inline; }

/* poster UE (FESR) dopo le certificazioni: impaginato, non PDF incastonato */
.poster-sec { background: #fff; }
.poster-grid { display: grid; grid-template-columns: 380px 1fr; gap: 54px; align-items: center; }
.poster-fig { display: block; box-shadow: 0 10px 34px rgba(0,0,0,.18); border-radius: 3px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.poster-fig:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.24); }
.poster-fig img { width: 100%; height: auto; display: block; }
.poster-body .over { color: var(--navy); font-weight: 500; }
.poster-title { font-size: clamp(30px, 3.4vw, 46px); margin: 6px 0 4px; }
.poster-sub { text-transform: uppercase; letter-spacing: 3px; font-size: 15px; font-weight: 600; color: var(--black); margin: 0 0 14px; }
.poster-lead { font-size: 18px; color: var(--ink); }
.poster-desc { text-align: justify; color: var(--ink); margin-bottom: 26px; }
@media (max-width: 900px) { .poster-grid { grid-template-columns: 1fr; gap: 30px; } .poster-fig { max-width: 340px; margin: 0 auto; } }

/* griglie */
.grid { display: grid; gap: 34px; margin: 26px 0; }
.grid.g2 { grid-template-columns: .7fr 1fr; }
.grid.g2:has(.col-card) { grid-template-columns: repeat(2, 1fr); }
.grid .fig { text-align: center; }
.grid .fig img { max-width: min(380px, 100%); margin-inline: auto; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.row { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0; align-items: stretch; }
.row > * { flex: 1 1 280px; }

/* striscia loghi: scorrimento guidato da JS (main.js) — segue il mouse, drift automatico fuori */
.brand-strip { padding: 30px 0; border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.brand-marquee { position: relative; }
.brand-track { display: flex; width: max-content; will-change: transform; }
.brand-set { display: flex; align-items: center; gap: 64px; padding-right: 64px; }
.brand-set a, .brand-set span { display: inline-flex; align-items: center; padding: 6px; }
.brand-marquee { display: flex; align-items: center; gap: 64px; }
.brand-marquee > a { display: inline-flex; align-items: center; padding: 6px; }
.brand-strip img { height: var(--bh, 56px); width: var(--bw, auto); max-width: none; opacity: .92; transition: transform .35s ease, opacity .2s; }
.brand-strip a:hover img, .brand-strip span:hover img { transform: scale(1.22); opacity: 1; }
@media (max-width: 620px) { .brand-strip img { height: calc(var(--bh, 56px) * .8); width: calc(var(--bw, 70px) * .8); } .brand-set { gap: 40px; padding-right: 40px; } .brand-marquee { gap: 40px; } }

/* about — why magvalves: card bianca numerata su fondo nero (come mockup) */
.about-dark { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.why-box { padding: 4px 0 0; }
.why-box h2 { color: #000; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: .01em; margin: 0 0 22px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { display: flex; gap: 18px; align-items: flex-start; position: relative; padding-bottom: 20px; }
.why-list li:last-child { padding-bottom: 0; }
.why-num {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: var(--yellow); color: #000; border: 2px solid #000;
  font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.why-list li:not(:last-child)::before {
  content: ""; position: absolute; left: 16px; top: 36px; bottom: -2px;
  border-left: 2px dashed var(--yellow);
}
.why-list h3 { color: #000; text-transform: uppercase; font-size: 14px; font-weight: 700; letter-spacing: .03em; margin: 4px 0 5px; line-height: 1.3; }
.why-list p { color: #3A3A3A; font-size: 13px; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .why-box { padding: 26px 22px 18px; } }

/* carousel (una foto per volta con frecce, come il vecchio sito) */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track figure { flex: 0 0 100%; scroll-snap-align: center; margin: 0; aspect-ratio: 4/2.7; }
.car-track img { width: 100%; height: 100%; object-fit: cover; }
/* frecce carosello minimal: solo chevron neri, niente riquadro (come l'originale) */
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 0; cursor: pointer;
  background: transparent; color: var(--black); display: flex;
  align-items: center; justify-content: center; opacity: .55;
  transition: opacity .15s;
}
.car-btn:hover { opacity: 1; }
.car-btn.prev { left: 4px; } .car-btn.next { right: 4px; }
.car-btn .ico { width: 26px; height: 26px; }

/* checklist */
.checklist { margin: 18px 0 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 17px; }
.checklist .ico { color: var(--navy); background: var(--yellow); border-radius: 50%; padding: 3px; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 3px; }

/* feat cards (nero, come originale: tutto centrato) */
.feats { background: var(--black); }
.feats .feat p { color: #fff; }
.feats .feat h3 { color: var(--yellow); }
.feats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px; }
.feat {
  background: transparent; border: 0; text-align: center;
  border-radius: var(--radius); padding: 10px 6px; transition: transform .2s;
}
.feat:hover { transform: translateY(-4px); }
.feat h3 { text-transform: none; font-size: 25px; letter-spacing: .01em; margin: 20px 0 15px; font-weight: 600; color: var(--yellow); }
.feat p { color: #fff; font-size: 16px; line-height: 24px; margin: 0; }
.feat-ico {
  width: 50px; height: 50px;
  color: var(--yellow);
}
.feat-ico path { transform-origin: center; }

/* ---------- animazioni (fadeInUp + grow come il sito originale) ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  transition: opacity 1.25s cubic-bezier(.22, .61, .36, 1), transform 1.25s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }

/* card servizi (su bianco: quadrato nero con icona bianca, come online) */
.feats-grid.svc { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; margin: 30px 0; }
.feats-grid.svc .feat { text-align: left; }
.svc .feat-ico { background: var(--black); color: #fff; }
.svc .feat h3 { color: var(--black); }
.svc .feat p { color: var(--ink); }

/* widget US Iubenda ("Informativa sulla raccolta") non pertinente: nascosto */
.iub__us-widget, .iub__us-widget__wrapper { display: none !important; }
/* legal footer Iubenda ("Privacy Policy Cookie Policy by iubenda"): visibile,
   ma in flusso normale SOTTO il footer del sito (non fixed sopra il contenuto) */
#iub-legal-footer { position: static !important; inset: auto !important; margin: 0 !important; width: 100% !important; }

/* griglia prodotti: sfondo bianco (le card restano bianche con bordo sottile) */
.products {
  background: #fff;
}
.products .over { color: var(--black); font-weight: 400; font-size: 16px; letter-spacing: 3.2px; text-align: center; margin-bottom: 12px; }
.products .over::after { display: none; }
.products h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; }
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.prod-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.prod-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-card figure { margin: 0; background: linear-gradient(160deg, #FBFBFA, #F1F1EF); aspect-ratio: 1; display: flex; align-items: center; overflow: hidden; }
.prod-card img { width: 82%; margin: 0 auto; object-fit: contain; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.prod-card:hover img { transform: scale(1.07); }
.prod-card h3 {
  text-align: center; font-size: 20px; letter-spacing: .02em; margin: 0;
  padding: 16px 12px; border-top: 1px solid var(--line); color: var(--black);
  font-weight: 600;
}
.prod-card:hover h3 { background: var(--yellow); color: var(--black); }

/* banda aspettative (foto + velo scuro, box giallo — come originale) */
.band { padding: 64px 0; }
.exp-band {
  background: var(--band-img) center/cover no-repeat, var(--navy);
  color: #fff; padding: 36px 0;
}
.exp-title { color: #fff; font-size: clamp(28px, 3.5vw, 50px); font-weight: 700; margin: 0 0 40px; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.exp-box {
  background: var(--yellow); color: var(--black); border-radius: 2px;
  padding: 46px 50px; box-shadow: var(--shadow-lg);
}
.exp-box .prose p { color: var(--black); font-size: 18px; line-height: 27px; text-align: justify; margin-bottom: 14px; }
.exp-box .prose p:last-child { margin-bottom: 0; }
.exp-side { padding-left: 40px; }
.exp-side .exp-title { margin-left: 25px; }
.exp-side .cta-row { margin: 0; }

/* statistiche (foto + velo bianco, numeri neri — come originale) */
.stats-sec {
  background: linear-gradient(rgba(255,255,255,.8), rgba(255,255,255,.8)), var(--stats-img) center/cover no-repeat, #fff;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.stat { text-align: center; padding: 26px 16px; }
.stat-n {
  display: block; font-size: clamp(56px, 7vw, 100px); font-weight: 500;
  color: var(--black); line-height: 1; letter-spacing: -.01em;
}
.stat-l { margin: 12px 0 0; font-size: 20px; color: var(--navy); font-weight: 400; }

/* certificazioni (foto + velo scuro, titolo giallo centrato — come originale) */
.cert-sec {
  background: linear-gradient(rgba(44,44,44,.8), rgba(44,44,44,.8)), var(--cert-img) center/cover no-repeat, #2C2C2C;
  color: #fff;
}
.cert-sec .cert-title { text-align: center; color: var(--yellow); font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; }
/* medaglietta centrata sopra il titolo, come l'originale */
.cert-medal { text-align: center; margin: 0 0 20px; line-height: 1; }
.cert-medal svg.ico { width: 50px; height: 50px; fill: var(--yellow); color: var(--yellow); vertical-align: baseline; }
.cert-sec .cert-lead { color: #fff; font-size: 18px; margin: 15px 0 36px; }
.accs details.acc { margin-bottom: 12px; }
.acc {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; overflow: hidden;
}
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 16px 20px; font-weight: 500; color: var(--yellow);
  text-transform: uppercase; font-size: 19px; letter-spacing: .02em;
}
.acc summary::-webkit-details-marker { display: none; }
.acc .drop { width: 13px; height: 13px; color: var(--yellow); transition: transform .2s; }
.acc[open] .drop { transform: rotate(180deg); }
.acc .prose { padding: 0 20px 16px; margin: 0; color: #fff; }
.acc[open] { border-color: rgba(255,255,255,.35); }
/* accordion home certificazioni: titolo grande con indicatore a sinistra, come l'originale */
.cert-sec .acc summary { justify-content: flex-start; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: 0; }
.cert-sec .acc .drop { order: -1; width: 20px; height: 20px; }

/* pdf embed */
.pdf-embed { margin-top: 26px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.pdf-embed iframe { width: 100%; height: 720px; border: 0; display: block; }

/* figure generiche */
.fig { margin: 0 0 18px; }
.fig img { border-radius: 0; }
.grid .fig img, .col .fig img { box-shadow: none; }
.prose p { text-align: justify; }

/* form contatti: larghezza standard come l'originale (~1140px), non il contenitore wide */
.contact-form .btn { width: 100%; }

/* pagina servizi/customizzazioni (come originale: sezione grigia, card 3+2 centrate) */
.sv-sec { background: var(--grey); }
.sv-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; margin-bottom: 46px; }
.sv-text .kicker { text-align: center; letter-spacing: 3px; color: var(--black); font-weight: 500; font-size: 15px; margin: 0 0 16px; }
.sv-text h2 { text-align: center; font-size: clamp(30px, 3.2vw, 46px); margin: 0 0 26px; }
.sv-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 42px; }
.svc-card { background: #fff; box-shadow: 0 2px 16px rgba(0,0,0,.1); padding: 36px 32px; width: 362px; text-align: center; }
.svc-ico { width: 56px; height: 56px; color: var(--yellow); margin: 0 auto 18px; }
.svc-card h3 { text-transform: uppercase; font-size: 26px; margin: 0 0 14px; color: var(--black); }
.svc-card p { color: var(--ink); margin: 0; }
/* colonna-scheda variante (FORGIATA / FUSA / …): card bianca come l'originale */
.col-card { background: #fff; border: 1px solid #e2e2e2; box-shadow: 0 2px 16px rgba(0,0,0,.08); padding: 36px 40px; }
.col-card h2 { text-align: center; font-size: clamp(26px, 2.8vw, 40px); text-transform: uppercase; }
.col-card .prose p { text-align: left; }
.col-card .fig { text-align: center; }
/* immagine intro delle pagine prodotto nuove: presentata in card bianca con ombra
   (le intro delle pagine prodotto esistenti restano senza riquadro: la cornice resta solo sulle card variante) */
.fig-frame { background: #fff; border: 1px solid #e2e2e2; box-shadow: 0 2px 16px rgba(0,0,0,.08); border-radius: 2px; padding: 30px 26px; }
.fig-frame img { margin: 0 auto; }
/* variante singola: card centrata ~640px come nell'originale */
.grid > .col-card:only-child { max-width: 640px; width: 100%; margin: 0 auto; }
/* se la griglia contiene UNA sola card, colonna unica a tutta larghezza (la card si centra sopra) */
.grid.g2:has(> .col-card:only-child) { grid-template-columns: minmax(0, 1fr); }

/* contact band */
.contact-band { background: #fff; }
.band-head { max-width: none; text-align: center; margin-bottom: 44px; }
.band-head .h4 { text-transform: uppercase; letter-spacing: 3px; font-size: clamp(19px, 2vw, 24px); }
.band-head p { text-transform: uppercase; letter-spacing: 3px; font-size: 17px; margin: 10px 0 0; font-weight: 500; }
/* come l'originale: due colonne uguali, blocco cap at 1140px sempre centrato */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; max-width: 1140px; margin: 0 auto; }
.form-card { background: var(--grey); border-radius: 0; box-shadow: none; padding: 38px 50px; }
.contact-form .ff { margin-bottom: 12px; }
.contact-form label { display: block; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; color: var(--black); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; padding: 10px 13px; border: 1px solid #d9d9d9; border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { height: 118px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(254, 237, 1, .55); background: #fff;
}
.ff-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ff-check input { margin-top: 4px; accent-color: var(--navy); width: 17px; height: 17px; }
.ff-check label { font-weight: 400; margin: 0; text-transform: none; font-size: 14.5px; letter-spacing: 0; }
.form-note.ok { color: #177245; font-weight: 600; }
.form-note.err { color: #B3261E; font-weight: 600; }
.contact-info { background: var(--yellow); padding: 44px 50px; margin: 0; }
.contact-info li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 22px; color: var(--black); }
.contact-info .ico { width: 22px; height: 22px; color: var(--black); background: none; padding: 0; border-radius: 0; flex: 0 0 22px; margin-top: 2px; }
.contact-info a, .contact-info span a { color: var(--black); }
.contact-info a.addr-link, .ft-list a.addr-link { color: inherit; text-decoration: none; }
.ft-list a.addr-link:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
/* nel riquadro giallo l'hover resta nero (il giallo sparirebbe sullo sfondo) */
.contact-info a.addr-link:hover, .contact-info span a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* badge certificazioni: card bianche con ombra, come il sito online */
.cert-quality { padding-bottom: 20px; }
.cert-quality h2 { max-width: 900px; margin-left: auto; margin-right: auto; }
.cert-p { max-width: 860px; margin: 26px auto 0; text-align: justify; color: var(--ink); }
.cert-list { padding-top: 26px; }
.cert-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0; padding: 0; list-style: none; }
.cert-badge {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; color: var(--black); border-radius: var(--radius);
  padding: 46px 20px; box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
  transition: transform .2s, box-shadow .2s;
}
.cert-badge:hover { transform: translateY(-4px); box-shadow: 0 8px 22px 0 rgba(0, 0, 0, .45); }
.cert-badge h2 { margin: 0; font-size: 25px; font-weight: 500; color: var(--black); letter-spacing: .02em; }

/* referenze */
.ref-title { font-size: clamp(24px, 3.2vw, 36px); }
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.ref-grid li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--yellow);
  border-radius: 10px; padding: 15px 18px; font-weight: 500; color: var(--navy); font-size: 16px;
  transition: box-shadow .18s, transform .18s;
}
.ref-grid li:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 30px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-date { color: var(--navy); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.post-date::after { content: ""; display: block; width: 30px; height: 3px; background: var(--yellow); margin-top: 8px; border-radius: 2px; }
.post-card h2 { font-size: 21px; margin: 12px 0 8px; }
.post-card h2 a { color: var(--black); }
.post-card h2 a:hover { color: var(--navy); }
.post-ex { color: #555553; font-size: 15.5px; }
.more { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.more .bt { width: 12px; height: 12px; }

/* legal */
.legal h3 { margin-top: 1.6em; font-size: 20px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery img:hover { transform: scale(1.05); }

/* ---------- footer (grigio scuro #2C2C2C, titoli gialli — come originale) */
.site-footer { background: #2C2C2C; color: rgba(255,255,255,.92); margin-top: 0; font-family: "Roboto Condensed", "Roboto", Arial, sans-serif; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 44px; padding: 64px 24px 40px; }
.ft-brand img { width: 210px; margin-bottom: 18px; }
.ft-brand p { max-width: 380px; font-size: 16px; color: #fff; }
.site-footer h2 { color: var(--yellow); font-size: 24px; font-weight: 400; text-transform: none; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer h2::after { content: none; }
.ft-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 10px; font-size: 16px; }
.ft-list .ico { width: 16px; height: 16px; color: var(--yellow); margin-top: 5px; flex: 0 0 16px; }
.site-footer a { color: #fff; transition: color .18s, font-weight .18s; }
.site-footer a:hover { color: var(--yellow); font-weight: 700; }
.ft-links li { margin-bottom: 10px; font-size: 16px; }
.ft-legal {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  padding: 26px 24px 34px;
  font-size: 16px; color: #F4F4F4;
}
.ft-legal p { margin: 0; padding-top: 20px; border-top: 1px solid #333; text-align: center; }

/* aloni gialli animati nel footer: si muovono piano e pulsano */
.site-footer { position: relative; overflow: hidden; }
.site-footer::before,
.site-footer::after,
.ft-grid::before {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.site-footer::before {
  width: 560px; height: 560px; left: -180px; top: -230px;
  background: radial-gradient(circle, rgba(254, 237, 1, .13) 0%, rgba(254, 237, 1, .05) 45%, transparent 70%);
  animation: ftGlowA 19s ease-in-out infinite alternate;
}
.site-footer::after {
  width: 680px; height: 680px; right: -220px; bottom: -260px;
  background: radial-gradient(circle, rgba(254, 237, 1, .10) 0%, rgba(254, 237, 1, .04) 45%, transparent 70%);
  animation: ftGlowB 24s ease-in-out infinite alternate;
}
.ft-grid { position: relative; z-index: 1; }
.ft-grid::before {
  width: 420px; height: 420px; left: 44%; top: 48%;
  background: radial-gradient(circle, rgba(254, 237, 1, .08) 0%, rgba(254, 237, 1, .03) 45%, transparent 70%);
  animation: ftGlowC 29s ease-in-out infinite alternate;
}
.ft-legal { position: relative; z-index: 1; }
@keyframes ftGlowA {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(130px, 70px) scale(1.28); }
  to   { transform: translate(50px, 130px) scale(.92); }
}
@keyframes ftGlowB {
  from { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-150px, -80px) scale(1.22); }
  to   { transform: translate(-70px, -150px) scale(.95); }
}
@keyframes ftGlowC {
  from { transform: translate(-60px, -40px) scale(.9); }
  50%  { transform: translate(80px, 50px) scale(1.3); }
  to   { transform: translate(40px, 90px) scale(1); }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav > li > a { padding: 12px 10px; font-size: 15.5px; }
  .feats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  /* menu mobile: pannello a tutto schermo che entra da destra, aloni gialli, voci a scaglioni */
  .nav {
    position: fixed; inset: 0; z-index: 1050;
    background: #fff; display: flex; flex-direction: column; align-items: flex-start;
    padding: 140px 32px 40px; margin: 0; gap: .3rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .5s ease, visibility .5s;
    overflow-y: auto;
  }
  .nav::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(600px 300px at 12% 18%, rgba(254, 237, 1, .45), transparent 65%),
      radial-gradient(500px 260px at 88% 85%, rgba(254, 237, 1, .3), transparent 60%);
  }
  .site-header.open .nav { transform: none; visibility: visible; }
  .site-header { z-index: 1100; }
  .nav > li { width: 100%; display: block; position: relative; z-index: 1; opacity: 0; transform: translateX(44px); transition: opacity .55s ease, transform .6s ease; }
  .site-header.open .nav > li { opacity: 1; transform: none; }
  .site-header.open .nav > li:nth-child(1) { transition-delay: .12s; }
  .site-header.open .nav > li:nth-child(2) { transition-delay: .18s; }
  .site-header.open .nav > li:nth-child(3) { transition-delay: .24s; }
  .site-header.open .nav > li:nth-child(4) { transition-delay: .3s; }
  .site-header.open .nav > li:nth-child(5) { transition-delay: .36s; }
  .site-header.open .nav > li:nth-child(6) { transition-delay: .42s; }
  .nav > li > a { display: flex; width: 100%; padding: .8rem 0; font-size: 1.12rem; font-weight: 600; color: var(--ink); border-radius: 0; }
  .nav > li > a::after { display: none; }
  .nav > li.active > a { box-shadow: none; color: var(--black); }
  .nav > li.has-sub > a { justify-content: space-between; }
  .nav > li.has-sub .drop { width: 16px; height: 16px; margin: 0; transition: transform .2s; }
  .nav > li.open .drop { transform: rotate(180deg); }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: none; padding: 0 0 6px 18px; min-width: 0; display: none;
  }
  .nav li.open .sub { display: block; }
  .sub a { padding: .55rem 0; font-size: 1rem; font-weight: 500; }
  .nav-toggle { display: flex; }
  .about-grid, .cert-grid, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  /* mobile banda aspettative, come l'originale: titolo centrato, poi riquadro giallo, poi bottone centrato */
  .exp-band .exp-side { display: contents; }
  .exp-band .exp-title { order: -2; text-align: center; margin: 0 0 22px; }
  .exp-band .exp-box { order: -1; }
  .exp-band .cta-row { order: 0; text-align: center; margin: 22px 0 0; }
  .sv-intro { grid-template-columns: 1fr; }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-badges { grid-template-columns: repeat(2, 1fr); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .pdf-embed iframe { height: 480px; }
  .hero { padding: 70px 0; min-height: 0; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .sec { padding: 52px 0; }
  .tb-in { gap: 14px; padding: 0 18px; min-height: 52px; }
  .topbar .tb-tel { display: none; }
  .brand img { width: 168px; }
  .feats-grid, .prod-grid, .stats, .posts, .ref-grid, .cert-badges, .gallery { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; gap: 30px; }
  .ft-legal { grid-template-columns: 1fr; gap: 18px; }
  .pdf-embed iframe { height: 380px; }
  .hero-note { display: block; margin: 12px 0 0; }
  .brand-row { justify-content: center; }
  .brand-row img { height: 52px; }
  p.spec { flex-direction: column; gap: 4px; }
  .form-card { padding: 24px 18px; }
  .car-btn { width: 32px; height: 32px; } .car-btn .ico { width: 20px; height: 20px; }
}
/* desktop bassi (es. 1280x720): l'hero resta di taglia normale, si riduce la striscia brand */
@media (min-width: 901px) and (max-height: 840px) {
  .brand-strip { padding: 6px 0; }
  .brand-strip img { height: calc(var(--bh, 56px) * .55); width: calc(var(--bw, 90px) * .55); }
  .hero h1 { font-size: clamp(30px, 5vw, 62px); }
}
