/* ENG-Custom — foglio di stile unico per tutte le pagine */

:root {
  --carbon: #0c0d0f;
  --graphite: #15171a;
  --graphite-2: #1c1f23;
  --bone: #e9e7e2;
  --steel: #8e9298;
  --steel-dim: #5d6167;
  --signal: #e2231a;
  --line: rgba(233, 231, 226, 0.12);
  --line-strong: rgba(233, 231, 226, 0.24);

  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --body: 'Saira', system-ui, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--carbon);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--steel); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--bone); color: var(--carbon); padding: 10px 16px;
}
.skip:focus { top: 12px; }

/* ---------- Tipografia ---------- */
.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-xl { font-size: clamp(52px, 8.6vw, 148px); }
.h-l  { font-size: clamp(44px, 7vw, 112px); }
.h-m  { font-size: clamp(36px, 4.6vw, 72px); }
.h-s  { font-size: clamp(28px, 2.6vw, 40px); line-height: 1; }
.lead {
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.3;
  font-weight: 300;
  max-width: 34ch;
  text-wrap: pretty;
}
.body-l { font-size: 18px; max-width: 54ch; color: #c4c5c3; text-wrap: pretty; }
.kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .02em;
  color: var(--steel);
}

/* ---------- Pulsanti e link ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 28px;
  background: var(--bone); color: var(--carbon);
  font-weight: 500; font-size: 15px; letter-spacing: .02em;
  position: relative; overflow: hidden; isolation: isolate;
  white-space: nowrap;
  transition: color .35s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleX(1); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--line-strong); }

.link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 15px;
  padding-bottom: 4px;
  background: linear-gradient(var(--signal), var(--signal)) left bottom / 0 1px no-repeat,
              linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.link:hover { background-size: 100% 1px, 100% 1px; }

/* ---------- Navigazione ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid {
  background: rgba(12, 13, 15, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo img { height: 42px; width: auto; }
@media (max-width: 560px) { .nav__logo img { height: 34px; } }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 400; }
.nav__links a { color: #b9bbbd; padding: 6px 0; position: relative; transition: color .3s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--bone); }
.nav__links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--signal);
}
.nav__tools { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: 13px; font-weight: 500; }
.lang button { padding: 6px 7px; color: var(--steel-dim); transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--bone); }
.nav__shop {
  font-size: 14px; font-weight: 500; padding: 9px 18px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .3s, color .3s;
}
.nav__shop:hover { background: var(--bone); color: var(--carbon); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bone);
  transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--carbon);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .mobile-menu { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-family: var(--display); font-weight: 600; font-size: clamp(44px, 13vw, 72px); line-height: 1.05;
  color: #b9bbbd; border-bottom: 1px solid var(--line); padding: 6px 0;
}
.mobile-menu nav a[aria-current="page"] { color: var(--bone); }
.mobile-menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-open { overflow: hidden; }

@media (max-width: 1040px) {
  .nav__links, .nav__tools { display: none; }
  .burger { display: block; }
}

/* ---------- Traccia di segnale (motivo grafico) ---------- */
.trace { display: block; width: 100%; height: 44px; overflow: visible; }
.trace path { fill: none; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.trace__base { stroke: var(--signal); stroke-width: 1.5; }
.trace__pulse { stroke: #ff6a5f; stroke-width: 2.5; opacity: 0; filter: drop-shadow(0 0 6px rgba(226, 35, 26, .9)); }

.trace--draw .trace__base {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: traceDraw 1.9s cubic-bezier(.6, .05, .25, 1) .5s forwards;
}
.trace--draw .trace__pulse {
  stroke-dasharray: .05 .95; stroke-dashoffset: 1;
  animation: tracePulse 3.8s linear 2.4s infinite;
}
@keyframes traceDraw { to { stroke-dashoffset: 0; } }
@keyframes tracePulse {
  0% { stroke-dashoffset: 1; opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: -.05; opacity: 0; }
}

/* ---------- Hero home ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
  background: #08090a url('../img/officina-VCT02927.jpg') center / cover no-repeat;
}
.hero__media { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hero__media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%); border: 0;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,13,15,.6) 0%, rgba(12,13,15,.1) 35%, rgba(12,13,15,.55) 70%, var(--carbon) 100%),
    linear-gradient(90deg, rgba(12,13,15,.55) 0%, transparent 60%);
}
.hero__inner { width: 100%; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(40px, 7vh, 80px); }
.hero__title { max-width: none; }
@media (min-width: 700px) { .hero__title .rise { white-space: nowrap; } }
.hero__trace { margin: clamp(22px, 3.5vh, 36px) 0 clamp(22px, 3.5vh, 34px); max-width: 980px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; }
.hero__row p { max-width: 46ch; color: #cfd0ce; font-size: 18px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* sequenza di caricamento: unico momento orchestrato */
.rise { display: block; overflow: hidden; padding-bottom: .04em; }
.rise > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.rise:nth-child(2) > span { animation-delay: .12s; }
.rise:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.fade-in { opacity: 0; animation: fadeIn 1s var(--ease) 1.4s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--tight { padding: clamp(56px, 8vw, 100px) 0; }
.rule { border-top: 1px solid var(--line); }

.statement { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: end; }
.statement__text .lead { max-width: 30ch; }
.statement__text .lead strong { font-weight: 400; color: #fff; }
.statement__links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 14px; color: #b9bbbd; padding: 8px 14px;
  box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 2px;
}
.figure { position: relative; overflow: hidden; background: var(--graphite); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  font-size: 13px; color: #e2e2df; display: flex; align-items: center; gap: 10px;
}
.figure figcaption::before { content: ''; width: 18px; height: 1px; background: var(--signal); }
.figure::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,13,15,.7)); pointer-events: none; }
.statement .figure { aspect-ratio: 4 / 5; }

/* elenco ambiti: titoli giganti con foto che segue il cursore */
.areas { border-bottom: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 38ch) 48px;
  align-items: center; gap: 24px 48px;
  padding: clamp(26px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.area__title { transition: color .4s var(--ease), transform .5s var(--ease); color: var(--bone); }
.area p { color: var(--steel); font-size: 16px; }
.area__go {
  width: 48px; height: 48px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line-strong); border-radius: 50%;
  transition: background .35s var(--ease), box-shadow .35s;
}
.area__go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.area__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .areas:hover .area__title { color: #4a4d52; }
  .areas .area:hover .area__title { color: var(--bone); transform: translateX(14px); }
  .area:hover .area__go { background: var(--signal); box-shadow: none; }
  .area:hover .area__go svg { transform: rotate(-45deg); }
}
.cursor-img {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: clamp(170px, 14vw, 240px); aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--graphite);
  opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85);
  transition: opacity .35s var(--ease), scale .35s var(--ease);
}
.cursor-img.is-on { opacity: 1; }
.cursor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.cursor-img img.is-active { opacity: 1; }

/* striscia veicoli */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-family: var(--display); font-weight: 600; font-size: clamp(48px, 7vw, 112px); line-height: 1;
  padding: 0 .35em; white-space: nowrap; display: flex; align-items: center; gap: .35em;
}
.marquee__item:nth-child(even) { color: transparent; -webkit-text-stroke: 1px #6b6f75; }
.marquee__item::after { content: ''; width: .12em; height: .12em; background: var(--signal); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* team */
.team-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.team-head p { max-width: 36ch; color: var(--steel); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.person p:empty { display: none; }
.person__pic {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--graphite);
}
.person__pic img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform .8s var(--ease);
}
.person:hover .person__pic img { filter: none; transform: scale(1.03); }
.person__initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: clamp(64px, 8vw, 120px); color: #2a2d31;
}
.person__pic::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.person:hover .person__pic::after { transform: scaleX(1); }
.person h3 { margin-top: 16px; font-weight: 500; font-size: 19px; line-height: 1.2; }
.person p { margin-top: 4px; font-size: 14.5px; color: var(--steel); }

/* call to action */
.cta { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px 64px; align-items: end; }
.cta__side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta__side p { color: var(--steel); max-width: 34ch; }

/* ---------- Footer ---------- */
.footer { background: #08090a; border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 90px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer__brand img { height: 48px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 32ch; color: var(--steel); font-size: 15px; }
.footer h2 { font-size: 13px; font-weight: 500; color: var(--steel-dim); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 15px; color: #b9bbbd; }
.footer ul a:hover { color: #fff; }
.footer address { font-style: normal; color: var(--steel); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.footer__bottom {
  margin-top: clamp(48px, 6vw, 80px); padding: 22px 0 34px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--steel-dim);
}
.footer__bottom a:hover { color: var(--bone); }
.footer__big {
  font-family: var(--display); font-weight: 700; line-height: .78; letter-spacing: -0.01em;
  font-size: clamp(64px, 17.5vw, 290px); color: #24272b;
  white-space: nowrap; overflow: hidden; margin-top: clamp(40px, 5vw, 70px); user-select: none;
}

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(60px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.page-hero--image { min-height: 78svh; display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--graphite) center / cover no-repeat; }
.page-hero--image::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,13,15,.55), rgba(12,13,15,.25) 40%, var(--carbon));
}
.page-hero .kicker { margin-bottom: 18px; display: block; }
.page-hero--image .kicker, .page-hero--image .body-l { color: #dcdcd9; }
.page-hero .trace { margin-top: clamp(22px, 3vw, 34px); max-width: 720px; }
.page-hero .body-l { margin-top: 26px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 100px); }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.split h2.kicker { font-size: 22px; color: var(--bone); }
.stack > * + * { margin-top: 22px; }

.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec__item { padding: 28px 24px 34px 0; border-bottom: 1px solid var(--line); }
.spec__item + .spec__item { padding-left: 24px; border-left: 1px solid var(--line); }
.spec__item:nth-child(4n + 1) { padding-left: 0; border-left: 0; }
@media (min-width: 961px) {
  .spec--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .spec--5 .spec__item:nth-child(4n + 1) { padding-left: 24px; border-left: 1px solid var(--line); }
  .spec--5 .spec__item:nth-child(5n + 1) { padding-left: 0; border-left: 0; }
}
.spec__item h3 { font-weight: 500; font-size: 19px; line-height: 1.25; }
.spec__item p { margin-top: 8px; color: var(--steel); font-size: 15px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; background: var(--graphite); }
.feature .figure { min-height: 460px; }
.feature .figure:has(.placeholder)::after { display: none; }
.feature__body { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.feature--flip .figure { order: 2; }

.vehicles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.vehicle { padding: 30px 24px 36px 0; }
.vehicle + .vehicle { padding-left: 24px; border-left: 1px solid var(--line); }
.vehicle h3 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 4.4vw, 68px); line-height: .95; }
.vehicle p { margin-top: 12px; color: var(--steel); font-size: 15px; max-width: 26ch; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.step { padding: 0 24px 0 0; position: relative; }
.step__n {
  display: flex; align-items: center; gap: 12px; margin-bottom: 26px;
  font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--signal);
}
.step__n::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.step:last-child .step__n::after { background: linear-gradient(90deg, var(--line-strong), transparent); }
.step h3 { font-weight: 500; font-size: 21px; }
.step p { margin-top: 8px; color: var(--steel); font-size: 15px; max-width: 30ch; }

.products { display: grid; gap: clamp(14px, 2vw, 24px); }
.product {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  background: var(--graphite); min-height: 420px;
}
.product:nth-child(even) .product__pic { order: 2; }
.product__pic { position: relative; overflow: hidden; background: #0f1012; }
.product__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product:hover .product__pic img { transform: scale(1.04); }
.product__body { padding: clamp(30px, 4.5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.product__body p { color: #b9bbbd; max-width: 44ch; }
.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(226,35,26,.08), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(233,231,226,.035) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(233,231,226,.035) 39px 40px);
}
.placeholder svg { width: min(60%, 320px); height: auto; opacity: .55; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.features > div { padding: 30px 28px 10px 0; }
.features > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.features h3 { font-weight: 500; font-size: 20px; }
.features p { margin-top: 8px; color: var(--steel); font-size: 15.5px; }

.services { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.service { background: var(--graphite); display: flex; flex-direction: column; }
.service__pic { position: relative; aspect-ratio: 8 / 5; overflow: hidden; background: #0f1012; }
.service__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.service:hover .service__pic img { transform: scale(1.04); }
.service__pic::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.service:hover .service__pic::after { transform: scaleX(1); }
.service__body { padding: clamp(22px, 2.4vw, 32px); }
.service h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 2.6vw, 40px); line-height: .98; }
.service p { margin-top: 12px; color: var(--steel); font-size: 16px; }

.banner { background: var(--graphite); padding: clamp(36px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }

/* lavori */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.filter {
  font-size: 15px; padding: 9px 16px; color: #b9bbbd;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background .3s, color .3s, box-shadow .3s;
}
.filter:hover { color: var(--bone); }
.filter[aria-pressed="true"] { background: var(--bone); color: var(--carbon); box-shadow: none; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 2vw, 28px); }
.works--teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.works__empty { grid-column: 1 / -1; color: var(--steel); }
.work { display: block; }
.work[hidden] { display: none; }
.work__pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--graphite); }
.work__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover .work__pic img { transform: scale(1.04); }
.work__pic::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--signal);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.work:hover .work__pic::after, .work:focus-visible .work__pic::after { transform: scaleX(1); }
.work__count {
  position: absolute; right: 12px; top: 12px; z-index: 1;
  font-size: 13px; font-weight: 500; padding: 3px 9px;
  background: rgba(12, 13, 15, .72); color: var(--bone);
}
.work__count::before { content: ''; display: inline-block; width: 9px; height: 7px; margin-right: 6px; border: 1px solid currentColor; vertical-align: 1px; }
.work__meta { margin-top: 16px; }
.work__type { font-size: 14px; color: var(--signal); font-weight: 500; }
.work__car { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 2.8vw, 44px); line-height: 1; margin-top: 4px; }
.works--teaser .work__car { font-size: clamp(26px, 2.2vw, 34px); }
.work__title { margin-top: 8px; color: var(--steel); font-size: 16px; max-width: 46ch; }

.work-dialog {
  width: min(1240px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  margin: auto; padding: 0; border: 0; color: var(--bone); background: var(--carbon);
  display: none; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.work-dialog[open] { display: grid; animation: dialogIn .4s var(--ease); }
.work-dialog::backdrop { background: rgba(5, 6, 7, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px); } }
.work-dialog__media { position: relative; background: #050607; min-height: 320px; }
.work-dialog__media img { width: 100%; height: 100%; max-height: calc(100svh - 32px); object-fit: contain; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.work-dialog__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(12, 13, 15, .7); transition: background .3s;
}
.work-dialog__nav:hover { background: var(--signal); }
.work-dialog__nav svg { width: 20px; height: 20px; }
.work-dialog__nav--prev { left: 12px; }
.work-dialog__nav--next { right: 12px; }
.work-dialog.is-single .work-dialog__nav { display: none; }
.work-dialog__count { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: #cfd0ce; }
.work-dialog__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.work-dialog__body .kicker { color: var(--signal); }
.work-dialog__body .btn { align-self: flex-start; margin-top: auto; }
.work-dialog__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.work-dialog__close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; z-index: 2; background: rgba(12, 13, 15, .7); }
.work-dialog__close span { position: absolute; left: 12px; right: 12px; top: 21px; height: 1.5px; background: var(--bone); }
.work-dialog__close span:first-child { transform: rotate(45deg); }
.work-dialog__close span:last-child { transform: rotate(-45deg); }
.dialog-open { overflow: hidden; }

/* contatti */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 110px); }
.contact dl { display: grid; gap: 28px; }
.contact dt { font-size: 14px; color: var(--steel-dim); margin-bottom: 4px; }
.contact dd { font-size: 19px; }
.contact dd a:hover { color: #fff; }
.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--steel); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--bone);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0; border-radius: 0; resize: vertical;
  transition: border-color .3s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); }
.field input::placeholder, .field textarea::placeholder { color: #55595f; }
.form__note { font-size: 14px; color: var(--steel-dim); }
.form__error { font-size: 14px; color: #ff8a82; min-height: 1.4em; }
.map { width: 100%; aspect-ratio: 21 / 8; min-height: 320px; background: var(--graphite); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

/* privacy */
.legal { max-width: 860px; }
.legal section { padding: 34px 0; border-top: 1px solid var(--line); }
.legal h2 { font-weight: 500; font-size: 22px; margin-bottom: 14px; }
.legal h3 { font-weight: 500; font-size: 17px; margin: 18px 0 6px; color: var(--bone); }
.legal p, .legal li { color: #b9bbbd; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 20px; display: grid; gap: 4px; }
.legal li::marker { color: var(--signal); }
.legal a { color: var(--bone); text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; }
.legal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .statement, .cta, .split, .split--even, .contact, .feature, .product { grid-template-columns: 1fr; }
  .feature--flip .figure, .product:nth-child(even) .product__pic { order: 0; }
  .feature .figure { min-height: 300px; }
  .product__pic { aspect-ratio: 16 / 10; }
  .statement .figure { aspect-ratio: 16 / 11; }
  .area { grid-template-columns: minmax(0, 1fr) 48px; }
  .area p { grid-column: 1 / -1; grid-row: 2; }
  .area__thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; overflow: hidden; background: var(--graphite); }
  .area__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec, .vehicles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .spec__item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .spec__item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .vehicle:nth-child(odd) { padding-left: 0; border-left: 0; }
  .vehicle:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { row-gap: 40px; }
  .features, .legal__grid { grid-template-columns: 1fr; }
  .features > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works--teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works--teaser .work:nth-child(3) { display: none; }
  .work-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .work-dialog__media { min-height: 0; aspect-ratio: 4 / 3; }
  .work-dialog__body { overflow: visible; }
}
@media (max-width: 640px) {
  .works, .works--teaser, .services { grid-template-columns: 1fr; }
  .works--teaser .work:nth-child(3) { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .team { grid-template-columns: 1fr 1fr; gap: 12px; }
  .person h3 { font-size: 16px; }
  .person p { font-size: 13px; }
  .spec, .vehicles, .steps { grid-template-columns: 1fr; }
  .spec__item, .spec__item:nth-child(even), .vehicle, .vehicle + .vehicle { padding-left: 0; border-left: 0; }
  .vehicle + .vehicle { border-top: 1px solid var(--line); }
  .form__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rise > span { transform: none; }
  .fade-in { opacity: 1; }
  .trace--draw .trace__base { stroke-dashoffset: 0; }
  .trace__pulse { display: none; }
  .marquee__track { animation: none; }
  .cursor-img { display: none; }
}

/* illustrazioni tecniche: niente velatura scura */
.figure--plain::after { display: none; }
.product__pic img[src$=".svg"], .figure img[src$=".svg"] { object-fit: contain; }

/* marche */
.brands { list-style: none; display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.brands li {
  font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 60px); line-height: 1;
  padding: 22px 28px 22px 0; margin-right: 28px; color: #6b6f75;
  display: flex; align-items: center; gap: 28px; transition: color .3s;
}
.brands li:hover { color: var(--bone); }
.brands li:not(:last-child)::after { content: ''; width: .14em; height: .14em; background: var(--signal); transform: rotate(45deg); margin-left: 0; }
.brands li { padding-right: 0; }

/* finché lavori.json è vuoto i link alla pagina Lavori restano nascosti */
.no-works .nav__links a[href="lavori.html"],
.no-works .mobile-menu a[href="lavori.html"],
.no-works .footer li:has(> a[href="lavori.html"]) { display: none; }
