/* ==========================================================================
   MZ Serramenti — foglio di stile unico
   Palette: antracite (RAL 7016-like) + avorio caldo + accento rame per le CTA
   ========================================================================== */
:root {
  --ink: #111316;
  --graphite: #1b1f24;
  --steel: #2a3038;
  --text: #30353c;
  --muted: #646b73;
  --bg: #f6f4f0;
  --bg-alt: #ece8e1;
  --line: #dcd6cc;
  --white: #ffffff;
  --accent: #e08a2e;
  --accent-dark: #c4721c;
  --accent-soft: rgba(224, 138, 46, .14);
  --on-dark: #eceae6;
  --on-dark-muted: #a9aeb5;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(17, 19, 22, .06);
  --shadow-md: 0 14px 34px rgba(17, 19, 22, .10);
  --shadow-lg: 0 30px 70px rgba(17, 19, 22, .22);
  --radius: 6px;
  --radius-lg: 14px;
  --container: 1260px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--accent); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px 80px; align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head p { margin: 0; color: var(--muted); }
.section-dark .section-head p { color: var(--on-dark-muted); }
.accent-text { color: var(--accent); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #eb9a43; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(224, 138, 46, .35); }
.btn-outline { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--steel); transform: translateY(-2px); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-wa { background: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17864a; transform: translateY(-2px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent-dark); }
.link-arrow svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.section-dark .link-arrow { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--nav-h);
  transition: background .35s var(--ease), box-shadow .35s, height .35s var(--ease);
  color: var(--white);
}
.site-header.scrolled, .site-header.is-solid {
  background: rgba(17, 19, 22, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06); height: 68px;
}
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.brand-sub { font-family: var(--font-display); font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: .98rem; color: rgba(255, 255, 255, .82); border-radius: var(--radius); transition: color .2s; position: relative; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: var(--white); }
.nav-menu a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--accent); }
.nav-cta { margin-left: 10px; }
.nav-cta .btn { padding: 12px 20px; font-size: .95rem; color: var(--ink); }
.nav-cta .btn::after { display: none; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav-tel svg { width: 18px; height: 18px; color: var(--accent); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 10px;
  background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.8px; background: var(--white); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }

/* ---------- Hero home ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; background: var(--ink);
  padding: calc(var(--nav-h) + 60px) 0 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 22, .92) 0%, rgba(17, 19, 22, .68) 42%, rgba(17, 19, 22, .12) 100%),
    linear-gradient(0deg, rgba(17, 19, 22, .9) 0%, rgba(17, 19, 22, 0) 45%);
}
.hero-frame { position: absolute; inset: calc(var(--nav-h) + 20px) 28px 28px; border: 1px solid rgba(255, 255, 255, .14); pointer-events: none; }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; background: rgba(255, 255, 255, .14); }
.hero-frame::before { left: 62%; top: 0; bottom: 0; width: 1px; }
.hero-frame::after { left: 62%; right: 0; top: 46%; height: 1px; }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 820px; padding-bottom: 48px; }
.hero h1 { color: var(--white); margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: rgba(255, 255, 255, .78); margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-bar {
  position: relative; z-index: 2; margin-top: 30px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-bar div { padding: 26px 24px 30px 0; display: flex; gap: 14px; align-items: flex-start; }
.hero-bar div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero-bar svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.hero-bar strong { display: block; font-family: var(--font-display); color: var(--white); font-size: 1.02rem; font-weight: 600; }
.hero-bar span { font-size: .88rem; color: rgba(255, 255, 255, .6); line-height: 1.45; display: block; margin-top: 3px; }
.scroll-cue { position: absolute; right: 48px; bottom: 150px; z-index: 2; writing-mode: vertical-rl; font-family: var(--font-display); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------- Marquee materiali ---------- */
.marquee { background: var(--accent); color: var(--ink); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: -.01em; white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Intro / perché ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-media { position: relative; }
.intro-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.intro-media .tag {
  position: absolute; right: -28px; bottom: 44px; background: var(--ink); color: var(--white);
  padding: 24px 26px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 250px;
}
.intro-media .tag strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: 6px; }
.intro-media .tag span { font-size: .92rem; color: var(--on-dark-muted); }
.intro-media::before { content: ""; position: absolute; left: -22px; top: -22px; width: 42%; height: 42%; border-left: 2px solid var(--accent); border-top: 2px solid var(--accent); border-radius: var(--radius-lg) 0 0 0; }
.check-list { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--accent-dark); flex: none; margin-top: 3px; }
.check-list strong { color: var(--ink); }

/* ---------- Prodotti (card grandi) ---------- */
.products { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.product-card {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 420px;
  display: flex; align-items: flex-end; text-decoration: none; color: var(--white); background: var(--ink);
  grid-column: span 4; isolation: isolate;
}
.product-card.wide { grid-column: span 8; }
.product-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; z-index: -2; }
.product-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17, 19, 22, .94) 0%, rgba(17, 19, 22, .35) 52%, rgba(17, 19, 22, .08) 100%); transition: background .5s; }
.product-card:hover img { transform: scale(1.07); }
.product-body { padding: 32px; width: 100%; }
.product-num { font-family: var(--font-display); font-size: .8rem; letter-spacing: .2em; color: var(--accent); display: block; margin-bottom: 10px; }
.product-card h3 { color: var(--white); font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 8px; }
.product-card p { color: rgba(255, 255, 255, .72); font-size: .97rem; margin: 0; max-width: 46ch; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.product-card:hover p, .product-card:focus-visible p { max-height: 140px; opacity: 1; margin-top: 8px; }
.product-go { position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.product-go svg { width: 20px; height: 20px; }
.product-card:hover .product-go { background: var(--accent); border-color: var(--accent); color: var(--ink); transform: rotate(-45deg); }

/* ---------- Anatomia del serramento ---------- */
.anatomy { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.anatomy-figure { position: relative; background: var(--graphite); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 40px); border: 1px solid rgba(255, 255, 255, .06); }
.anatomy-figure svg { width: 100%; height: auto; display: block; }
.hotspot {
  position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(224, 138, 46, .6); animation: pulse 2.4s infinite;
}
.hotspot.is-active { background: var(--white); animation: none; box-shadow: 0 0 0 8px rgba(255, 255, 255, .15); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 138, 46, .55); } 70% { box-shadow: 0 0 0 16px rgba(224, 138, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 138, 46, 0); } }
.anatomy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.anatomy-item { border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); transition: background .3s, border-color .3s; }
.anatomy-item button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 16px; align-items: center; width: 100%; padding: 20px 22px; }
.anatomy-item button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }
.anatomy-item .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid rgba(255, 255, 255, .3); font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: .9rem; }
.anatomy-item h3 { margin: 0; font-size: 1.15rem; }
.anatomy-item p { margin: 0; padding: 0 22px 0 72px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .4s, padding .4s; }
.anatomy-item.is-active { background: rgba(255, 255, 255, .04); border-color: rgba(224, 138, 46, .5); }
.anatomy-item.is-active .n { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.anatomy-item.is-active p { max-height: 200px; opacity: 1; padding-bottom: 20px; }

/* ---------- Grafico Uw ---------- */
.perf { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.bars { display: grid; gap: 22px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.bar-row .label { font-weight: 600; color: var(--ink); font-size: .98rem; }
.bar-row .value { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.bar-row .value small { font-size: .7rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.bar { grid-column: 1 / -1; height: 14px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--steel); transition: width 1.6s var(--ease); }
.bar-row.good i { background: var(--accent); }
.bars.is-visible .bar i { width: var(--w); }
.bars-note { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.big-stat { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 8rem); line-height: .9; font-weight: 700; color: var(--ink); letter-spacing: -.05em; margin: 10px 0 18px; }
.big-stat span { color: var(--accent); }

/* ---------- Processo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255, 255, 255, .12); }
.step { padding: 38px 30px 10px 0; position: relative; }
.step + .step { padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .12); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(224, 138, 46, .8); display: block; line-height: 1; margin-bottom: 22px; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 1s var(--ease); }
.step + .step::after { left: 30px; }
.steps.is-visible .step::after { width: 60px; }
.step p { font-size: .97rem; margin: 0; }

/* ---------- Galleria ispirazioni ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 14px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; background: var(--line); }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(17, 19, 22, .78); color: #fff; font-size: .8rem; padding: 6px 12px; border-radius: 99px; backdrop-filter: blur(6px); }

/* ---------- Bonus / detrazioni ---------- */
.bonus { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--graphite); color: var(--on-dark-muted); display: grid; grid-template-columns: 1.2fr .8fr; }
.bonus-body { padding: clamp(36px, 5vw, 70px); }
.bonus h2 { color: var(--white); }
.bonus-media { position: relative; min-height: 320px; }
.bonus-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bonus-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 32px; }
.chip { border: 1px solid rgba(255, 255, 255, .2); color: var(--white); padding: 8px 16px; border-radius: 99px; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 50px 26px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.cta-band .bg { position: absolute; inset: 0; }
.cta-band .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cta-band .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 20%, rgba(17, 19, 22, .4)); }
.cta-inner { position: relative; padding: clamp(80px, 10vw, 130px) 0; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; color: var(--white); background: var(--ink); padding: calc(var(--nav-h) + 90px) 0 80px; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 19, 22, .95), rgba(17, 19, 22, .45)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.2vw, 4.4rem); max-width: 18ch; }
.page-hero .lead { color: rgba(255, 255, 255, .74); }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: rgba(255, 255, 255, .6); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.prod-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.prod-detail:last-child { border-bottom: 0; }
.prod-detail:nth-child(even) .prod-media { order: 2; }
.prod-media { position: relative; }
.prod-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.prod-media .num { position: absolute; top: -26px; left: 26px; font-family: var(--font-display); font-weight: 700; font-size: 5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); margin: 26px 0 30px; }
.spec div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { padding-right: 16px; }
.spec dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.prod-nav { position: sticky; top: 68px; z-index: 20; background: rgba(246, 244, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.prod-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.prod-nav ul::-webkit-scrollbar { display: none; }
.prod-nav a { display: block; padding: 16px 14px; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.prod-nav a:hover { color: var(--ink); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 32px; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-card .ico { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 22px; }
.value-card .ico svg { width: 28px; height: 28px; }
.value-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.section-dark .value-card { background: var(--graphite); border-color: rgba(255, 255, 255, .07); }
.section-dark .value-card p { color: var(--on-dark-muted); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: border-color .3s, transform .3s var(--ease); }
a.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card .ico { width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card small { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; font-weight: 600; }
.form-box { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow-md); border-top: 4px solid var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px var(--accent-soft); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--text); background: var(--bg); transition: all .2s; }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.privacy-check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.privacy-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-dark); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-actions .btn { flex: 1 1 220px; }
.form-status { min-height: 1.4em; font-size: .92rem; color: var(--accent-dark); margin: 8px 0 0; font-weight: 500; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.post-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .media img { transform: scale(1.05); }
.post-card .body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 10px; font-weight: 600; }
.post-card h3 { font-size: 1.35rem; }
.post-card p { color: var(--muted); font-size: .97rem; }
.post-card .link-arrow { margin-top: auto; align-self: flex-start; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article .answer { background: var(--white); border-left: 4px solid var(--accent); padding: 22px 26px; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; font-size: 1.08rem; color: var(--ink); }
.article figure { margin: 2em 0; }
.article figure img { border-radius: var(--radius-lg); }
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.article th, .article td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { font-family: var(--font-display); color: var(--ink); background: var(--bg-alt); }
.table-wrap { overflow-x: auto; }
.article-cta { margin-top: 3em; background: var(--ink); color: var(--on-dark-muted); padding: 36px; border-radius: var(--radius-lg); }
.article-cta h2 { color: var(--white); margin-top: 0; font-size: 1.7rem; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.8em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 90px 0 0; font-size: .96rem; position: relative; overflow: hidden; }
.footer-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(3.5rem, 13vw, 12rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .09); white-space: nowrap; margin: 0 0 60px; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--accent); }
.footer-brand p { margin: 18px 0 0; max-width: 34ch; }
.footer-brand .brand { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 100px 30px 28px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--accent); }

/* ---------- WhatsApp flottante ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .hero-bar div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-bar div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .product-card, .product-card.wide { grid-column: span 6; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(3)::after { left: 0; }
  .scroll-cue { display: none; }
  .nav-tel span { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-tel { display: none; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .55);
    border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--ink);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 100px 26px 40px;
    box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 14px 16px; font-size: 1.15rem; font-family: var(--font-display); }
  .nav-menu a[aria-current="page"]::after { left: 16px; right: auto; width: 30px; bottom: 8px; }
  .nav-cta { margin: 16px 0 0; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { position: relative; z-index: 95; }

  .section-head, .intro-grid, .anatomy, .perf, .contact-grid, .prod-detail, .cta-inner, .bonus { grid-template-columns: 1fr; }
  .prod-detail:nth-child(even) .prod-media { order: 0; }
  .intro-media .tag { right: 16px; }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .bonus-media { min-height: 240px; order: -1; }
  .hero-frame { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-bar { grid-template-columns: 1fr; }
  .hero-bar div, .hero-bar div + div { padding: 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .hero-cta .btn { width: 100%; }
  .product-card, .product-card.wide { grid-column: 1 / -1; min-height: 340px; }
  .product-card p { max-height: 140px; opacity: 1; margin-top: 8px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step, .step:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .step + .step::after { left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec div:nth-child(odd) { padding-right: 0; }
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .gallery figure.wide { grid-column: span 2; }
  .intro-media::before { display: none; }
  .intro-media .tag { position: relative; right: auto; bottom: auto; margin: -50px 16px 0; }
  .anatomy-item p { padding-left: 22px; }
  .page-hero { padding: calc(var(--nav-h) + 50px) 0 56px; }
  .brand-name { font-size: 1.25rem; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure.tall { grid-row: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-media img { transform: none; }
  .bars .bar i { width: var(--w); }
}
