/* =========================================================
   TE.MA.CO. — Serramenti metallici dal 1977
   ========================================================= */

/* ---------- Font locali (SIL Open Font License, vedi assets/fonts) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-600.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-700.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/manrope-800.woff2") format("woff2"); }

:root {
  --red: #e60000;
  --red-dark: #b80000;
  --red-soft: #fde8e8;
  --bg: #f3f3f2;
  --bg-alt: #e9e9e7;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3c3c3c;
  --muted: #6e6e6c;
  --line: #dcdcd9;
  --dark: #161616;

  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: clamp(72px, 10vw, 136px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.section--white { background: var(--surface); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

.text-red { color: var(--red); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--ghost-white { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-white:hover { background: #fff; color: var(--ink); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem;
  color: var(--ink);
}
.link-arrow svg { width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--red); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, height .3s var(--ease), background-color .35s, backdrop-filter .35s;
}
/* Allo scroll (o con il menu mobile aperto) il fondo diventa grigio e i testi neri */
.header.is-scrolled, .nav-open .header {
  background: rgba(243,243,242,.94);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-color: var(--line);
}
.header.is-scrolled { --header-h: 70px; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { height: 38px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .header__logo img { height: 32px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: #fff; transition: color .3s;
}
.is-scrolled .nav__link { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.is-scrolled .nav__link.is-active { color: var(--red); }
.nav__link svg { width: 14px; height: 14px; }

.nav__item { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 560px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.22);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown__group h4 {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 0 0 8px;
}
.dropdown__group a { display: block; padding: 4px 0; font-size: .95rem; color: var(--ink-2); transition: color .2s, transform .2s; }
.dropdown__group a:hover { color: var(--ink); transform: translateX(3px); }
.dropdown__all { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }

.header__cta { display: flex; align-items: center; gap: 10px; }
.header__cta .btn { min-height: 44px; padding: 0 18px; font-size: .86rem; }
.header__cta .btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.header__cta .btn--outline:hover { background: #fff; border-color: #fff; color: var(--ink); }
.is-scrolled .header__cta .btn--outline { border-color: var(--ink); color: var(--ink); }
.is-scrolled .header__cta .btn--outline:hover { background: var(--ink); color: #fff; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0; border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s, background .3s; }
.is-scrolled .burger span, .nav-open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--bg); padding: 24px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.mobile-nav > a, .mobile-nav details > summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  list-style: none; cursor: pointer;
}
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary svg { width: 20px; height: 20px; transition: transform .3s; }
.mobile-nav details[open] > summary svg { transform: rotate(180deg); }
.mobile-nav .sub { padding: 10px 0 18px; border-bottom: 1px solid var(--line); }
.mobile-nav .sub h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 14px 0 4px; }
.mobile-nav .sub a { display: block; padding: 6px 0; color: var(--ink-2); }
.mobile-nav .is-active { color: var(--red); }
.mobile-nav__cta { display: grid; gap: 12px; margin-top: 32px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: min(100svh, 920px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.22) 22%, rgba(10,10,10,.12) 40%, rgba(10,10,10,.82) 100%);
}
.hero__content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--red); }
.hero h1 { max-width: 13ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: #fff; position: relative; }
.hero h1 em::after { content: "."; color: var(--red); }
.hero__lead { max-width: 52ch; font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: rgba(255,255,255,.86); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-top: clamp(48px, 7vw, 88px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.22);
}
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  width: 36px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s;
}
.hero__dots button.is-active { background: var(--red); }
.hero__facts { display: flex; gap: clamp(24px, 5vw, 64px); }
.hero__facts div { font-size: .82rem; color: rgba(255,255,255,.72); line-height: 1.3; }
.hero__facts strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; letter-spacing: -0.02em; margin-bottom: 4px; }

/* ---------- Page hero (interne) ---------- */
.page-hero {
  position: relative; color: #fff; background: var(--dark);
  min-height: clamp(380px, 58vh, 560px); display: flex; align-items: flex-end; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,.3) 30%, rgba(10,10,10,.35) 50%, rgba(10,10,10,.8) 100%);
}
.page-hero__content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before { background: var(--red); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 18ch; margin: 0; }
.page-hero p { max-width: 56ch; color: rgba(255,255,255,.85); margin: 18px 0 0; font-size: 1.08rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: center; }
.split--top { align-items: start; }
.split__media { position: relative; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.split__media--tall img { aspect-ratio: 4 / 5; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__badge {
  position: absolute; left: -24px; bottom: 32px;
  background: var(--red); color: #fff; padding: 22px 26px; border-radius: var(--radius);
  font-family: var(--font-head); line-height: 1.2;
}
.split__badge strong { display: block; font-size: 2.4rem; letter-spacing: -0.03em; }
.split__badge span { font-size: .82rem; opacity: .9; }

.product-visual {
  position: relative; display: grid; place-items: center;
  background: var(--surface); border-radius: var(--radius);
  aspect-ratio: 4 / 5; overflow: hidden;
}
.product-visual::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--red-soft) 0%, rgba(253,232,232,0) 70%);
}
.product-visual img { position: absolute; inset: 0; margin: auto; height: 82%; width: 80%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.18)); }
.product-visual__tag {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 16px 8px 10px; font-size: .8rem; font-weight: 600; box-shadow: 0 10px 30px -14px rgba(0,0,0,.25);
}
.product-visual__tag i { width: 26px; height: 26px; border-radius: 50%; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.product-visual__tag i svg { width: 14px; height: 14px; }
.product-visual__tag--1 { top: 16%; left: 7%; }
.product-visual__tag--2 { top: 48%; right: 6%; }
.product-visual__tag--3 { bottom: 12%; left: 10%; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; }
.stat strong sup { font-size: .5em; color: var(--red); vertical-align: top; position: relative; top: .25em; }
.stat span { font-size: .92rem; color: var(--muted); }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { max-width: 46ch; margin: 0; color: var(--ink-2); }

/* ---------- Categorie ---------- */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.cat {
  position: relative; grid-column: span 2; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cat:nth-child(1), .cat:nth-child(2) { grid-column: span 3; }
.cat:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); }
.cat__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.05); }
.cat__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.cat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cat__num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.cat h3 { margin: 0 0 10px; }
.cat__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; }
.cat__links a {
  font-size: .82rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
}
.cat__links a:hover { border-color: var(--red); color: var(--red); }
.cat__links a.cat__go { border-color: transparent; padding-left: 0; padding-right: 0; display: inline-flex; gap: 6px; align-items: center; }

.icon-box {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none;
}
.icon-box svg { width: 26px; height: 26px; }
.icon-box--white { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Red band ---------- */
.band-red { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.band-red::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
}
.band-red::after {
  content: ""; position: absolute; right: 2%; top: -10%; width: 36%; aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.1); border-radius: 50%;
}
.band-red .container { position: relative; z-index: 1; }
.band-red .eyebrow { color: #fff; }
.band-red .lead { color: rgba(255,255,255,.88); }
.band-red__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.band-red__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.band-red__img img { width: 100%; height: 100%; object-fit: cover; }
.check-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.band-red .check-list svg { color: #fff; }
.check-list--red svg { color: var(--red); }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: var(--surface); padding: clamp(28px, 3vw, 40px); border-radius: var(--radius);
  border-top: 2px solid transparent; transition: border-color .3s;
}
.value:hover { border-top-color: var(--red); }
.value .icon-box { margin-bottom: 28px; }
.value p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.section--white .value { background: var(--bg); }

/* ---------- Precision ---------- */
.precision { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.precision__img { min-height: 420px; background-size: cover; background-position: center; }
.precision__body { padding: clamp(36px, 6vw, 80px); }

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  padding: clamp(40px, 6vw, 72px); background: var(--dark); color: #fff; border-radius: var(--radius);
  position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
.cta h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.cta p { margin: 0; color: rgba(255,255,255,.75); max-width: 52ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: t; }
.timeline__item { position: relative; padding-top: 36px; border-top: 2px solid var(--line); }
.timeline__item::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 5px var(--bg);
}
.timeline__year { font-family: var(--font-head); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; color: var(--red); line-height: 1; margin-bottom: 14px; }
.timeline__item p { color: var(--ink-2); margin: 0; }

/* ---------- Photo strip ---------- */
.photo-trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.photo-trio img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.photo-trio img:first-child { aspect-ratio: auto; }

/* ---------- Realizzazioni overview ---------- */
.group { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); }
.group:first-child { border-top: 0; padding-top: 0; }
.group__head .icon-box { margin-bottom: 22px; }
.group__head p { color: var(--muted); font-size: .96rem; }
.group__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.group__items--single { grid-template-columns: 1fr; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--dark); color: #fff; aspect-ratio: 4 / 3; }
.group__items--single .tile { aspect-ratio: 21 / 9; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .9s var(--ease), opacity .4s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.78) 100%); }
.tile:hover img { transform: scale(1.05); opacity: 1; }
.tile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 24px 26px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.tile__body h3 { margin: 0; color: #fff; }
.tile__body small { display: block; font-size: .78rem; color: rgba(255,255,255,.7); margin-bottom: 6px; letter-spacing: .04em; }
.tile__arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease); }
.tile__arrow svg { width: 18px; height: 18px; }
.tile:hover .tile__arrow { transform: rotate(-45deg); }

/* ---------- Dettaglio prodotto ---------- */
.detail { display: grid; grid-template-columns: 1fr 380px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.detail__text p { font-size: 1.06rem; color: var(--ink-2); }
.detail__text p:first-child { font-size: clamp(1.15rem, 1.6vw, 1.35rem); color: var(--ink); line-height: 1.55; }
.aside-card { background: var(--surface); border-radius: var(--radius); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card h4 { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 18px; }
.aside-card ul { display: grid; gap: 14px; margin-bottom: 28px; }
.aside-card li { display: flex; gap: 12px; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.aside-card li svg { width: 20px; height: 20px; color: var(--red); flex: none; margin-top: 1px; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: 10px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: var(--surface); border-radius: var(--radius); }
.feature .icon-box { width: 44px; height: 44px; }
.feature .icon-box svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* ---------- Gallery ---------- */
.gallery { columns: 3 300px; column-gap: 16px; }
.gallery a {
  position: relative; display: block; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden;
  break-inside: avoid; background: var(--bg-alt); cursor: zoom-in;
}
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.gallery a::after {
  content: ""; position: absolute; inset: 0; background: rgba(230,0,0,0); transition: background .4s;
}
.gallery a:hover img { transform: scale(1.04); }
.gallery a:hover::after { background: rgba(20,20,20,.18); }
.gallery__zoom {
  position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__zoom svg { width: 18px; height: 18px; }
.gallery a:hover .gallery__zoom { opacity: 1; transform: none; }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.gallery-head h2 { margin: 0; }
.gallery-head span { color: var(--muted); font-size: .92rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: min(92vw, 1600px); max-height: 84vh; object-fit: contain; border-radius: 2px; user-select: none; }
.lightbox__btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s;
}
.lightbox__btn:hover { background: var(--red); border-color: var(--red); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .86rem; letter-spacing: .1em; font-family: var(--font-head); }

/* ---------- Pager prodotto ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pager a {
  display: flex; align-items: center; gap: 18px; padding: 28px; background: var(--surface); border-radius: var(--radius);
  transition: background .3s, color .3s;
}
.pager a:hover { background: var(--ink); color: #fff; }
.pager a:hover small { color: rgba(255,255,255,.6); }
.pager small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.pager strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -0.02em; }
.pager svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.pager__next { justify-content: flex-end; text-align: right; }

/* ---------- Materiali ---------- */
.mat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mat {
  background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column;
}
.mat__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.mat__head h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.mat p { color: var(--ink-2); }
.mat ul { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.mat li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.mat li svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }

.finishes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.swatch { display: flex; flex-direction: column; gap: 10px; font-size: .84rem; color: var(--ink-2); }
.swatch i { display: block; aspect-ratio: 1; border-radius: var(--radius); border: 1px solid rgba(0,0,0,.06); }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: var(--surface); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.contact-card small { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.contact-card strong { font-family: var(--font-head); font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; line-height: 1.3; display: block; margin-top: 6px; word-break: break-word; }
.contact-card .link-arrow { margin-top: auto; }
.contact-card--red { background: var(--red); color: #fff; }
.contact-card--red small { color: rgba(255,255,255,.75); }
.contact-card--red .icon-box { background: rgba(255,255,255,.14); color: #fff; }
.contact-card--red .link-arrow, .contact-card--red .link-arrow svg { color: #fff; }


/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.72); padding-top: clamp(64px, 8vw, 104px); font-size: .95rem; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__claim { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin: 0 0 28px; max-width: 16ch; }
.footer__claim span { color: var(--red); }
.footer__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__logo img { height: 40px; width: auto; margin-bottom: 28px; }
.footer__info { display: grid; gap: 22px; }
.footer__row { display: flex; gap: 16px; align-items: flex-start; }
.footer__row .icon-box { width: 44px; height: 44px; background: rgba(255,255,255,.06); color: var(--red); }
.footer__row .icon-box svg { width: 20px; height: 20px; }
.footer__row small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 2px; font-weight: 700; }
.footer__row span, .footer__row a { color: #fff; }
.footer__mid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: clamp(40px, 5vw, 56px) 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__mid h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__mid li { padding: 4px 0; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 0 18px; font-size: .84rem; color: rgba(255,255,255,.45); }
.footer__privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 0 0 32px; max-width: 900px; font-size: .76rem; line-height: 1.55; color: rgba(255,255,255,.38); }
.footer__privacy svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: rgba(255,255,255,.45); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); 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; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity 1s ease; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__cta .btn--outline { display: none; }
  .burger { display: block; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat, .cat:nth-child(1), .cat:nth-child(2) { grid-column: span 1; }
  .cat:last-child { grid-column: 1 / -1; }
  .detail { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .group { grid-template-columns: 1fr; }
  .finishes { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .header__logo img { height: 30px; }
  .split, .band-red__grid, .precision, .cta, .footer__top { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .split__badge { left: 16px; bottom: 16px; padding: 16px 20px; }
  .split__badge strong { font-size: 1.8rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 24px; }
  .stat strong { font-size: 2rem; }
  .values, .timeline, .contact-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .precision__img { min-height: 280px; }
  .photo-trio { grid-template-columns: 1fr 1fr; }
  .photo-trio img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .features, .mat-grid { grid-template-columns: 1fr; }
  .footer__mid { grid-template-columns: 1fr 1fr; }
  .hero__bottom { flex-direction: column-reverse; align-items: stretch; gap: 24px; }
  .hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__facts div { font-size: .74rem; }
  .hero__facts strong { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  .header__cta .btn--red span { display: none; }
  .header__cta .btn--red { width: 44px; padding: 0; }
  .cats, .group__items { grid-template-columns: 1fr; }
  .cat:last-child { grid-column: auto; }
  .group__items--single .tile { aspect-ratio: 4 / 3; }
  .pager { grid-template-columns: 1fr; }
  .hero__actions .btn, .cta__actions .btn, .footer__buttons .btn { width: 100%; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .finishes { grid-template-columns: repeat(2, 1fr); }
  .product-visual__tag { font-size: .72rem; }
}
