/* =========================================================
   TEMPLATE COSTRUZIONI — style.css
   Palette: nero · bianco · blu (accento --accent)
   Display: Archivo Expanded · Body: IBM Plex Sans · Mono: IBM Plex Mono
   ========================================================= */

:root {
  /* Colore — nero · bianco · blu (marchio #06109F) */
  --bg: #ffffff;          /* bianco */
  --bg-2: #f1f3f8;        /* grigio chiarissimo (sezioni alternate) */
  --ink: #0a0d16;         /* nero testo */
  --ink-soft: #4a5162;    /* grigio testo */
  --steel: #878da0;       /* grigio muto */
  --asphalt: #080a12;     /* nero sezioni/hero */
  --asphalt-2: #10131e;
  --accent: #06109f;      /* blu del marchio */
  --accent-2: #3b50f0;    /* blu brillante (accenti su fondo nero) */
  --line: rgba(10, 13, 22, 0.12);
  --line-strong: rgba(10, 13, 22, 0.22);
  --line-light: rgba(255, 255, 255, 0.14);

  /* Type */
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Layout */
  --wrap: 1240px;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.02em; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  transform: translateY(-150%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  z-index: 150;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  width: 0%;
  background: var(--accent);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 74px;
}

/* ---------- Logo testuale (wordmark ricolorabile) ---------- */
.brand-mark {
  width: 30px; height: 30px;
  flex: none;
  color: inherit;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: #fff; /* logo bianco sull'hero scuro */
  transition: color 0.35s var(--ease);
}
.site-header.scrolled .brand { color: var(--accent); } /* logo blu su header chiaro */
.brand-desc {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  padding-left: 0.85rem;
  border-left: 1px solid currentColor;
  opacity: 0.7;
}
@media (max-width: 700px) { .brand-desc { display: none; } }

.nav {
  display: flex;
  gap: 1.9rem;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn-accent {
  color: #fff;
  background-image: linear-gradient(110deg, var(--accent) 0 45%, var(--ink) 55% 100%);
  background-size: 230% 100%;
  background-position: 0% 0;
  transition: background-position 0.5s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.btn-accent:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 80%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.header-cta { padding: 0.7rem 1.3rem; }

/* ---------- Nav toggle (mobile) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin-inline: auto;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--asphalt);
  color: #fff;
  padding: 100px var(--pad) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav-logo { font-size: 1.6rem; letter-spacing: 0.04em; margin-bottom: 2rem; color: #fff; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  transition: color 0.2s, padding-left 0.3s var(--ease);
}
.mobile-nav nav a .mono {
  font-size: 0.8rem;
  color: var(--accent-2);
}
.mobile-nav nav a:hover { color: var(--accent); padding-left: 0.5rem; }
.mobile-nav-foot { color: var(--steel); font-size: 0.78rem; line-height: 1.8; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--asphalt);
  color: #f5f7fb;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 74px;
  overflow: hidden;
}
/* Sfondo video immersivo a tutto campo */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #080a12; }
.hero-video, .hero-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-fallback { z-index: 0; }
.hero-video {
  z-index: 1;
  transform: scale(1.08);
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,18,0.95) 0%, rgba(8,10,18,0.82) 38%, rgba(8,10,18,0.45) 72%, rgba(8,10,18,0.25) 100%),
    linear-gradient(0deg, rgba(8,10,18,0.9) 0%, rgba(8,10,18,0) 32%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: clamp(60px, 8vw, 110px) clamp(60px, 8vw, 110px);
  mask-image: radial-gradient(ellipse 90% 80% at 25% 45%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 25% 45%, #000 30%, transparent 90%);
  opacity: 0.35;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-block: clamp(3rem, 8vh, 6rem);
  width: 100%;
  flex: 1;
}
.hero-copy { max-width: 62ch; }
.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.8rem;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel);
  margin-bottom: 1.8rem;
}
.eyebrow-since {
  color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent);
  padding: 0.28rem 0.6rem;
  border-radius: 100px;
  animation: pill-pulse 3.2s ease-in-out infinite;
}
@keyframes pill-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 45%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-2) 0%, transparent); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-2);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero-title .line-in {
  display: block;
  transform: translateY(110%);
}

.hero-lead {
  max-width: 40ch;
  color: #aab2c4;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.2rem);
  margin-bottom: 2.2rem;
}
.hero-lead strong { color: #fff; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn-ghost { color: #fff; border-color: var(--line-light); }
.hero .btn-ghost:hover { border-color: #fff; }

.hero-coord {
  font-size: 0.68rem;
  color: #aab2c4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: #aab2c4;
  transition: color 0.2s;
}
.scroll-cue:hover { color: #fff; }
.scroll-cue svg { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  background: var(--accent);
  color: #fff;
  overflow: hidden;
  padding: 0.75rem 0;
  border-block: 1px solid rgba(0,0,0,0.15);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.marquee .dot { opacity: 0.55; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS — generici
   ========================================================= */
.section { padding-block: clamp(4.5rem, 11vh, 9rem); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 60rem; }
.section-index {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.section-index::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 0.7rem;
}
.section-index.light { color: var(--accent-2); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
.section-sub {
  margin-top: 1.3rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.15rem);
  max-width: 46ch;
}

/* =========================================================
   AZIENDA
   ========================================================= */
.azienda { border-top: 1px solid var(--line); }
.azienda-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.azienda-lead p { margin-bottom: 1.2rem; color: var(--ink-soft); font-size: 1.08rem; }
.azienda-lead p:first-child { color: var(--ink); }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats li {
  background: var(--bg);
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-inf { color: var(--accent); }
.stat-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* =========================================================
   SETTORI — registro opere
   ========================================================= */
.settori { background: var(--bg-2); border-top: 1px solid var(--line); }
.opere-list { border-top: 1px solid var(--line-strong); }
.opera {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.1rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.4s var(--ease), background 0.4s;
}
.opera::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.opera:hover { padding-left: 1.5rem; background: color-mix(in srgb, var(--bg) 60%, transparent); }
.opera:hover::before { transform: scaleY(1); }
.opera-code { font-size: 0.85rem; color: var(--steel); letter-spacing: 0.08em; }
.opera:hover .opera-code { color: var(--accent); }
.opera-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 0.35rem;
}
.opera-body p { color: var(--ink-soft); max-width: 60ch; font-size: 0.98rem; }
.opera-arrow {
  font-size: 1.6rem;
  color: var(--steel);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s, color 0.3s;
}
.opera:hover .opera-arrow { transform: translateX(0); opacity: 1; color: var(--accent); }

/* =========================================================
   CANTIERI — galleria foto reali
   ========================================================= */
.cantieri { border-top: 1px solid var(--line); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: clamp(1rem, 2vw, 1.5rem);
}
.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--asphalt);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
  filter: saturate(0.92);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }

/* Placeholder foto (template — sostituisci con una tua immagine) */
.media-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  background-color: var(--asphalt-2);
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 10px, transparent 10px 20px);
  transition: color 0.35s var(--ease);
}
.gallery-item:hover .media-ph,
.spec-visual:hover .media-ph { color: var(--accent-2); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(0deg, rgba(8,10,18,0.92) 0%, rgba(8,10,18,0) 100%);
  transform: translateY(0);
  transition: transform 0.45s var(--ease);
}
.gallery-item figcaption .mono { color: var(--accent-2); font-size: 0.75rem; }
.gallery-item figcaption::after {
  content: "→";
  margin-left: auto;
  color: var(--accent-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery-item:hover figcaption { transform: translateY(-6px); }
.gallery-item:hover figcaption::after { opacity: 1; transform: translateX(0); }
/* Bordo accento che appare sull'immagine in hover */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid var(--accent-2);
  pointer-events: none;
  transition: border-width 0.35s var(--ease);
}
.gallery-item:hover::after { border-width: 3px; }

/* =========================================================
   SPECIALIZZAZIONE — dark
   ========================================================= */
.specializzazione {
  background: var(--asphalt);
  color: #f5f7fb;
}
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.spec-copy .section-title { margin-top: 0.4rem; }
.spec-copy > p {
  margin-top: 1.5rem;
  color: #aab2c4;
  font-size: 1.1rem;
  max-width: 44ch;
}
.spec-copy strong { color: #fff; font-weight: 600; }
.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.spec-tags li {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line-light);
  border-radius: 100px;
  color: #c2c9d8;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.spec-tags li:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.spec-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-light);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.spec-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.spec-visual:hover img { transform: scale(1.05); }
.spec-visual figcaption {
  position: absolute;
  left: 0; bottom: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: color-mix(in srgb, var(--asphalt) 70%, transparent);
  backdrop-filter: blur(6px);
  border-top-right-radius: var(--radius);
}

/* =========================================================
   CERTIFICAZIONI
   ========================================================= */
.certificazioni { border-top: 1px solid var(--line); }
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.5rem);
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.cert-badges li { flex: 1 1 140px; }
.cert-badge-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(56px, 8vw, 78px);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  background: var(--bg);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.cert-badge-ph:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cert {
  background: var(--bg);
  padding: 1.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.cert:hover { background: var(--asphalt); color: #fff; }
.cert-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.45rem 0.55rem;
  min-width: 58px;
  text-align: center;
  flex: none;
  transition: border-color 0.3s;
}
.cert:hover .cert-tag { border-color: var(--accent-2); color: var(--accent-2); }
.cert span:last-child { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.cert em { font-style: normal; font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); }
.cert:hover em { color: #98a1b5; }

/* =========================================================
   CLIENTI
   ========================================================= */
.clienti { background: var(--asphalt); color: #f5f7fb; }
.client-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--line-light);
}
.client-list li {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 1.8rem 1rem 1.8rem 0;
  border-bottom: 1px solid var(--line-light);
  color: #8c8e94;
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.client-list li:hover { color: #fff; padding-left: 0.6rem; }

/* =========================================================
   CONTATTI
   ========================================================= */
.contatti { border-top: 1px solid var(--line); }
.contatti-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 1.2rem 0 3rem;
}
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.contact-card {
  background: var(--bg);
  padding: 2rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 190px;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.contact-card:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }
.contact-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft); }
.contact-card:hover .contact-label { color: rgba(255,255,255,0.8); }
.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-top: auto;
}
.contact-hint { font-size: 0.72rem; color: var(--accent); }
.contact-card:hover .contact-hint { color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--asphalt);
  color: #c2c9d8;
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  overflow: hidden;
}
.footer-logo {
  color: #fff;
  margin-bottom: 2.5rem;
}
.footer-logo .brand-word {
  display: block;
  font-size: clamp(2.4rem, 12vw, 8rem);
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-light);
  text-stroke: 1px var(--line-light);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-light);
}
.footer-brand strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: block;
  margin-bottom: 0.7rem;
}
.footer-brand p { font-size: 0.78rem; line-height: 1.9; color: var(--steel); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; align-content: start; }
.footer-nav a { font-size: 0.85rem; color: #c2c9d8; transition: color 0.2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.05em;
}

/* =========================================================
   MOTION — reveal & load
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
/* Varianti direzionali del reveal (dichiarate PRIMA di .in
   così lo stato finale .in azzera sempre il transform/filter) */
.reveal.rv-left { transform: translateX(-46px); }
.reveal.rv-right { transform: translateX(46px); }
.reveal.rv-zoom { transform: scale(0.93); }
.reveal.rv-blur { filter: blur(9px); }

.reveal.in { opacity: 1; transform: none; filter: none; }

/* Linea del titoletto che si "disegna" quando entra in vista */
.section-index::before { width: 0; transition: width 0.7s var(--ease) 0.15s; }
.section-index.drawn::before { width: 26px; }

/* Hero load sequence — attivato via .ready sul body */
.line-in { transition: transform 1s var(--ease); transition-delay: var(--line-delay, 0ms); }
body.ready .hero-title .line:nth-child(1) .line-in { --line-delay: 120ms; }
body.ready .hero-title .line:nth-child(2) .line-in { --line-delay: 240ms; }
body.ready .hero-title .line:nth-child(3) .line-in { --line-delay: 360ms; }
body.ready .hero-title .line-in { transform: translateY(0); }

/* SVG draw-in */
.draw {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
}
body.ready .draw {
  animation: draw 2.4s var(--ease) forwards;
  animation-delay: 0.5s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .azienda-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-visual { order: -1; }
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .cert-badges { justify-content: center; gap: 1.5rem 2rem; }
}

@media (max-width: 620px) {
  .header-inner { height: 64px; }
  .opera { grid-template-columns: 60px 1fr; gap: 0.8rem 1rem; }
  .opera-arrow { display: none; }
  .opera:hover { padding-left: 0.9rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-title .line-in { transform: none; }
  .draw { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
  .eyebrow-since { animation: none; }
  .section-index::before { width: 26px; }
  .gallery-item figcaption::after { opacity: 1; transform: none; }
}
