/* Amor Nouri · Carpenteria Metallica
   Nessuna risorsa esterna (font, mappe, script di terze parti): il sito non
   trasmette dati dei visitatori a terzi e non richiede banner cookie. */

@font-face {
  font-family: "Michroma";
  src: url("fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #0A0D12;
  --bg-2: #0F141B;
  --surface: #141A22;
  --surface-2: #1A212B;
  --line: #232C37;
  --line-2: #33404E;
  --text: #E8EDF2;
  --text-2: #C3CCD6;
  --muted: #93A0AE;
  --accent: #4DA3FF;          /* testo arancio su fondo scuro: ~6:1 */
  --accent-btn: #3B8EEA;      /* fondo bottone, testo quasi nero: 5.6:1 */
  --accent-btn-hover: #5AA8FF;
  --on-accent: #04101F;
  --steel: #4A5563;
  --radius: 6px;
  --font-head: "Michroma", "Bahnschrift", "DIN Alternate", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #8CC4FF; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--accent-btn); color: var(--on-accent); border-radius: var(--radius); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 104px 0; position: relative; }
.alt { background: var(--bg-2); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font: 600 14px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: currentColor; box-shadow: 0 0 10px rgb(77 163 255 / .6); }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; text-transform: uppercase; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 16px/1 var(--font-head); letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 0 0 0 rgb(77 163 255 / 0); }
.btn-primary:hover { background: var(--accent-btn-hover); color: var(--on-accent); box-shadow: 0 0 28px -4px rgb(77 163 255 / .7); }
.btn-outline { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgb(10 13 18 / .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgb(10 13 18 / .94); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 48px; height: 48px; flex-shrink: 0; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .5)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 700 21px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { font: 600 11px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: inline-block; padding: 10px 14px; text-decoration: none;
  font: 600 15px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--text-2);
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.header-cta { min-height: 44px; padding: 0 18px; font-size: 15px; }
.menu-toggle {
  display: none; width: 48px; height: 48px; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text);
}
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-menu { display: none; }

/* ---------- Hero con scena di saldatura ---------- */
.hero { overflow: hidden; padding: 72px 0 96px; background:
  radial-gradient(ellipse 60% 70% at 75% 55%, rgb(77 163 255 / .07), transparent 70%),
  var(--bg); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .028) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, #000 30%, transparent 80%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 30px rgb(77 163 255 / .35); }
.hero-lead { margin-top: 24px; font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); }

.weld-scene { position: relative; width: 100%; aspect-ratio: 600 / 480; }
.weld-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.weld-scene canvas { position: absolute; left: -15%; top: -15%; width: 130%; height: 130%; pointer-events: none; }
.weld-scene canvas.gl {
  left: 0; top: 0; width: 100%; height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 60%, transparent 98%);
  mask-image: radial-gradient(ellipse 70% 62% at 50% 45%, #000 60%, transparent 98%);
}
.weld-scene.is-3d > svg, .weld-scene.is-3d > canvas:not(.gl) { display: none; }
.years-badge {
  position: absolute; left: 2%; top: 4%; background: var(--surface); color: var(--text);
  border: 1px solid var(--line-2); border-left: 4px solid var(--accent);
  padding: 14px 20px; border-radius: var(--radius); box-shadow: 0 20px 40px -16px rgb(0 0 0 / .8);
  font-family: var(--font-head); text-transform: uppercase; line-height: 1;
}
.years-badge strong { display: block; font-size: 42px; font-weight: 700; color: var(--accent); }
.years-badge span { display: block; font-size: 12px; letter-spacing: .16em; margin-top: 6px; color: var(--text-2); }
.weld-status {
  position: absolute; right: 2%; top: 2%; display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.weld-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Cordone di saldatura tra le sezioni ---------- */
.seam { position: relative; height: 2px; background: var(--line); }
.seam::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--steel) 0%, #1F4E85 75%, var(--accent) 95%, #DDEEFF 100%);
}
.seam::after {
  content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; opacity: 0;
  background: #EAF4FF; box-shadow: 0 0 10px 3px #6FB6FF, 0 0 34px 12px rgb(77 163 255 / .45);
}

/* ---------- Lavorazioni ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.service::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(circle at 20% 0%, rgb(77 163 255 / .12), transparent 60%);
}
.service::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); transition: width .5s var(--ease);
}
.service:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(0 0 0 / .9); }
.service:hover::before { opacity: 1; }
.service:hover::after { width: 100%; }
.service-icon { width: 72px; height: 72px; color: var(--text-2); margin-bottom: 22px; }
.service-icon .hot { color: var(--accent); transition: filter .3s; }
.service:hover .service-icon .hot { filter: drop-shadow(0 0 5px rgb(77 163 255 / .9)); }
.service h3 { font-size: 24px; font-weight: 700; text-transform: uppercase; }
.service p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.service.custom { background: linear-gradient(160deg, #0F2238, #141A22 70%); border-color: #1F3A5C; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.service.custom a { color: var(--accent); font-weight: 600; }

/* ---------- Esperienza ---------- */
.experience-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.big-number { font: 700 clamp(120px, 17vw, 220px)/.85 var(--font-head); color: var(--accent); letter-spacing: -.02em; text-shadow: 0 0 60px rgb(77 163 255 / .35); font-variant-numeric: tabular-nums; }
.big-number small { font-size: .4em; vertical-align: top; margin-left: 4px; }
.big-label { font: 600 22px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .1em; margin-top: 16px; color: var(--text-2); }
.values { display: grid; gap: 28px; list-style: none; margin: 0; padding: 0; }
.values li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.value-icon { width: 52px; height: 52px; border: 1px solid var(--line-2); border-radius: var(--radius); display: grid; place-items: center; color: var(--accent); background: var(--surface); }
.value-icon svg { width: 26px; height: 26px; }
.values h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .04em; }
.values p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* braci che salgono */
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers i {
  position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%;
  background: #9CCBFF; box-shadow: 0 0 6px 1px rgb(90 170 255 / .8); opacity: 0;
}

/* ---------- Metodo ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 0 24px 0 0; counter-increment: step; }
.step::before {
  content: "0" counter(step); display: block; font: 700 48px/1 var(--font-head); color: var(--accent);
  padding-bottom: 18px; margin-bottom: 20px; border-bottom: 3px solid var(--line-2);
}
.step::after {
  content: ""; position: absolute; left: 0; top: 63px; height: 3px; width: 0;
  background: linear-gradient(90deg, #1F4E85, var(--accent)); box-shadow: 0 0 10px rgb(77 163 255 / .6);
}
.step h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .03em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-tip { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 16px; color: var(--text-2); }
.contact-tip strong { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; color: var(--text); }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start; padding: 24px; min-height: 120px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  text-decoration: none; color: var(--text);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
a.contact-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-3px); box-shadow: 0 0 0 1px var(--accent), 0 18px 40px -20px rgb(77 163 255 / .5); }
.contact-card .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius); background: var(--accent-btn); color: var(--on-accent); display: grid; place-items: center; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card .label { display: block; font: 600 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.contact-card .value { display: block; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; line-height: 1.4; }
.contact-card .hint { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.contact-card.wide { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { background: #06080B; color: var(--muted); padding: 64px 0 32px; font-size: 15px; border-top: 1px solid var(--line); }
.footer a { color: var(--text-2); }
.footer a:hover { color: var(--accent); }
.footer .brand, .footer .brand:hover { color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer h2 { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer address { font-style: normal; line-height: 1.8; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal-bar { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; }

/* ---------- Pagina legale ---------- */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 48px); text-transform: uppercase; }
.legal .updated { color: var(--muted); margin-top: 12px; font-size: 15px; }
.legal h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .03em; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 12px 0 0; }
.legal li + li { margin-top: 6px; }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-weight: 600; text-decoration: none; }

/* ---------- Animazioni (solo se l'utente non le ha disattivate) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; }
  .reveal.shown { animation: rise .8s var(--ease) var(--d, 0s) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; } }

  /* le icone si "disegnano" come una saldatura */
  .service-icon path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
  .service.shown .service-icon path { stroke-dashoffset: 0; }
  .service.shown .service-icon .hot { animation: hot-cool 2.4s calc(var(--d, 0s) + 1.1s) both; }
  @keyframes hot-cool { 0% { filter: drop-shadow(0 0 8px #9CCBFF) brightness(1.6); } 100% { filter: none; } }

  .seam.shown::before { animation: seam-grow 1.6s cubic-bezier(.5, 0, .5, 1) forwards, seam-cool 3s 1.6s forwards; }
  .seam.shown::after { animation: seam-spark 1.6s cubic-bezier(.5, 0, .5, 1) forwards; }
  @keyframes seam-grow { to { width: 100%; } }
  @keyframes seam-cool { to { filter: grayscale(1) brightness(.75); } }
  @keyframes seam-spark { 0% { left: 0; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

  .step::after { transition: width 1s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); }
  .step.shown::after { width: calc(100% - 24px); }

  .embers i { animation: ember var(--t, 7s) linear var(--w, 0s) infinite; }
  @keyframes ember {
    0% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: .9; }
    100% { transform: translate(var(--x, 20px), -520px); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seam::before { width: 100%; background: var(--line-2); }
  .weld-status::before { animation: none; }
}

/* ---------- Responsive: 1024 / 768 / 375 ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .contact-grid, .experience-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu { border-top: 1px solid var(--line); padding: 8px 0 16px; background: var(--bg); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 24px; color: var(--text); text-decoration: none; font: 600 17px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .08em; }
  .mobile-menu a:hover { background: var(--surface); color: var(--accent); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  section { padding: 76px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .services-grid, .contact-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step { padding: 0; }
  .step.shown::after { width: 100%; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; letter-spacing: .16em; }
  .years-badge { padding: 10px 14px; top: auto; bottom: 2%; }
  .years-badge strong { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Galleria lavori realizzati ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.shot.tall { grid-row: span 2; }
.shot button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.shot button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .5s var(--ease); filter: saturate(.9) brightness(.92); }
.shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgb(77 163 255 / 0); transition: box-shadow .4s var(--ease);
}
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; pointer-events: none;
  background: linear-gradient(to top, rgb(6 8 11 / .92), transparent);
  font: 600 15px/1.3 var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--text);
  transform: translateY(6px); transition: transform .4s var(--ease);
}
.shot figcaption::before { content: ""; display: block; width: 22px; height: 3px; margin-bottom: 8px; background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: width .4s var(--ease); }
.shot:hover img, .shot:focus-within img { transform: scale(1.06); filter: saturate(1.05) brightness(1); }
.shot:hover::after, .shot:focus-within::after { box-shadow: inset 0 0 0 2px var(--accent), inset 0 0 40px rgb(77 163 255 / .25); }
.shot:hover figcaption, .shot:focus-within figcaption { transform: none; }
.shot:hover figcaption::before { width: 48px; }

.lightbox {
  width: min(1200px, 94vw); max-height: 94vh; padding: 0; border: 1px solid var(--line-2); border-radius: 10px;
  background: #06080B; color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgb(4 6 9 / .88); backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; flex-direction: column; animation: lb-in .35s var(--ease); }
.lightbox img { display: block; width: 100%; max-height: calc(94vh - 64px); object-fit: contain; background: #000; }
.lb-caption { padding: 16px 20px; font: 600 16px/1.3 var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 50%; background: rgb(10 13 18 / .8); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: calc(50% - 56px); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
  .shot.wide-m { grid-column: span 2; }
}
@media (max-width: 600px) {
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .shot figcaption { font-size: 12px; padding: 30px 10px 10px; }
  .shot figcaption::before { width: 16px; margin-bottom: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
}

/* ---------- Sfondo video di saldatura nell'apertura ---------- */
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.6) contrast(1.08) blur(1px); transform: scale(1.03); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 13 18 / .97) 0%, rgb(10 13 18 / .88) 38%, rgb(10 13 18 / .5) 72%, rgb(10 13 18 / .62) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 22%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 14%);
}
.hero::before { z-index: 1; }
.hero-grid { z-index: 2; }
@media (max-width: 860px) {
  .hero-bg::after { background: linear-gradient(rgb(10 13 18 / .82), rgb(10 13 18 / .9)), linear-gradient(to top, var(--bg), transparent 30%); }
}

/* ---------- Apertura a tutto schermo (senza scena 3D) ---------- */
.hero { min-height: min(88vh, 820px); display: flex; align-items: center; }
.hero-grid { grid-template-columns: minmax(0, 720px); width: 100%; }
.footer .brand-icon { width: 88px; height: 88px; flex-shrink: 0; }
.footer .brand { gap: 16px; }

/* ---------- Michroma (titoli, menu, bottoni): carattere largo, ha un solo peso ---------- */
html { font-synthesis: none; }
h1, h2, h3, .kicker, .btn, .nav-links a, .brand-name, .brand-sub, .big-number, .big-label,
.step::before, .contact-card .label, .contact-tip strong, .footer h2, .shot figcaption,
.lb-caption, .mobile-menu a { font-weight: 400 !important; letter-spacing: .02em; }
.hero h1 { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.15; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.2; }
.legal h1 { font-size: clamp(24px, 3.4vw, 36px); }
.legal h2 { font-size: 18px; }
.kicker { font-size: 11.5px; letter-spacing: .14em; }
.nav-links a { font-size: 12.5px; letter-spacing: .06em; }
.btn { font-size: 13px; letter-spacing: .06em; }
.header-cta { font-size: 12.5px; }
.brand-name { font-size: 16px; letter-spacing: .04em; }
.brand-sub { font-size: 8.5px; letter-spacing: .16em; }
.service h3 { font-size: 17px; line-height: 1.3; }
.values h3, .step h3 { font-size: 15px; line-height: 1.35; }
.step::before { font-size: 36px; }
.big-number { font-size: clamp(90px, 12vw, 160px); letter-spacing: -.03em; }
.big-label { font-size: 16px; line-height: 1.4; }
.contact-card .label { font-size: 10.5px; }
.contact-tip strong { font-size: 13px; }
.footer h2 { font-size: 11.5px; }
.shot figcaption { font-size: 11.5px; line-height: 1.45; letter-spacing: .03em; }
.lb-caption { font-size: 13px; }
.mobile-menu a { font-size: 14px; }
@media (max-width: 600px) {
  .brand-name { font-size: 14px; }
  .brand-sub { font-size: 7.5px; }
  .shot figcaption { font-size: 9.5px; }
  .btn { font-size: 12px; }
}

/* intestazione con Michroma: niente a capo, menu compatto sotto i 1100px */
.brand-text, .brand-name, .brand-sub, .nav-links a, .btn { white-space: nowrap; }
.nav-links { gap: 0; }
.nav-links a { padding: 10px 11px; font-size: 11.5px; }
.nav-links a::after { left: 11px; right: 11px; }
@media (max-width: 1100px) {
  .nav-links, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu { border-top: 1px solid var(--line); padding: 8px 0 16px; background: var(--bg); }
  .mobile-menu.open { display: block; }
  .mobile-menu a { display: block; padding: 14px 24px; color: var(--text); text-decoration: none; font: 400 14px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
  .mobile-menu a:hover { background: var(--surface); color: var(--accent); }
}

/* classi al posto degli stili in linea (Content-Security-Policy senza 'unsafe-inline') */
.mt-s { margin-top: 10px; }
.mt-s2 { margin-top: 12px; }
.mt-l { margin-top: 28px; }
.mb-0 { margin-bottom: 0; }
.footer-blurb { margin-top: 18px; max-width: 340px; }
.header-cta.cta-keep { display: inline-flex !important; }
.legal-bar.flush { margin-top: 0; padding-top: 0; border-top: 0; }
