/* tokens.css e il font Open Sans sono richiamati dall'HTML di ogni pagina */

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 32px; }

/* The "spine" — a vertical tricolore micro-bar, recurring brand element */
.spine {
  position: relative;
  padding-left: 56px;
}
.spine::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--vf-green) 0 33.33%,
    #ffffff 33.33% 66.66%,
    var(--vf-red) 66.66% 100%
  );
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vf-blue);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.eyebrow .num {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--vf-blue);
}
.eyebrow-light .num { color: var(--vf-white); }
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  display: block;
  opacity: 0.5;
}

.display {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: clamp(48px, 7.2vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--vf-blue);
  margin: 0;
}
.display-light { color: var(--vf-white); }
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--vf-red);
}
.display-light em { color: var(--vf-white); opacity: 0.6; }

.h1 {
  font-weight: 800;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--vf-blue);
  margin: 0;
}
.h1-light { color: var(--vf-white); }

.h2 {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--vf-blue);
  margin: 0;
}

.h3 {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: var(--vf-blue);
  margin: 0;
}

.lead {
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
  margin: 0;
}
.lead-light { color: rgba(255,255,255,0.85); }

.body { font-size: 16px; line-height: 1.7; color: var(--fg-1); margin: 0; }
.body-light { color: rgba(255,255,255,0.78); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 0;
  background: var(--vf-blue);
  color: var(--vf-white);
  border-radius: 0;
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn:hover { background: var(--vf-blue-dark); }
.btn .arrow {
  width: 18px; height: 1px; background: currentColor; position: relative;
  transition: width var(--t-base);
}
.btn .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 28px; }

.btn-outline {
  background: transparent;
  color: var(--vf-blue);
  box-shadow: inset 0 0 0 1px var(--vf-blue);
}
.btn-outline:hover { background: var(--vf-blue); color: var(--vf-white); }

.btn-light {
  background: transparent;
  color: var(--vf-white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.btn-light:hover { background: var(--vf-white); color: var(--vf-blue); box-shadow: inset 0 0 0 1px var(--vf-white); }

.btn-ghost {
  background: transparent; color: var(--vf-blue);
  padding: 12px 0;
}
.btn-ghost:hover { background: transparent; color: var(--vf-blue-dark); }
.btn-ghost .arrow { background: var(--vf-blue); }
.btn-ghost .arrow::before {}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--t-base), box-shadow var(--t-base), padding var(--t-base);
  padding: 22px 0;
}
/* Static pages: sticky instead of fixed */
.site-header--static {
  position: sticky;
  left: auto; right: auto;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--vf-n-300);
  padding: 14px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo-link { display: flex; align-items: center; gap: 12px; }
.logo-link img { height: 38px; width: auto; transition: filter var(--t-base); }
@media (max-width: 1180px) {
  .nav { gap: 22px; }
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--vf-blue);
  position: relative;
  padding: 6px 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  transition: color var(--t-fast);
}
.site-header:not(.scrolled) .nav-link { color: var(--vf-white); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: currentColor;
  transition: right var(--t-base);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.header-cta-viewer {
  padding: 14px 20px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  white-space: nowrap;
}
.site-header:not(.scrolled) .header-cta-viewer {
  color: var(--vf-white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.site-header:not(.scrolled) .header-cta-viewer:hover {
  background: var(--vf-white);
  color: var(--vf-blue);
  box-shadow: inset 0 0 0 1px var(--vf-white);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--vf-white);
  overflow: hidden;
  background: var(--vf-blue-dark);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/imagery/bg-officina.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.7) brightness(0.55);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,30,72,0.55) 0%, rgba(0,30,72,0.4) 30%, rgba(0,30,72,0.85) 100%),
    linear-gradient(90deg, rgba(0,68,147,0.5) 0%, rgba(0,68,147,0) 50%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 180px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 64px;
}
.hero-display {
  font-weight: 800;
  font-size: clamp(56px, 9vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--vf-white);
  margin: 24px 0 0;
}
.hero-display .stamp {
  display: flex;
  align-items: center;
}
.hero-display .stamp-thin {
  font-weight: 200;
  font-style: italic;
  font-size: 0.5em;
  letter-spacing: -0.01em;
  display: block;
  margin-top: 20px;
  color: rgba(255,255,255,0.78);
}
.hero-display .tri {
  display: inline-block;
  width: 0.18em; height: 0.18em;
  margin: 0 0.18em 0 0.18em;
  flex-shrink: 0;
}
.hero-display .tri--g { background: #009246; }
.hero-display .tri--w { background: #fff; }
.hero-display .tri--r { background: var(--vf-red); }

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  text-align: right;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.hero-meta .ribbon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-meta .ribbon .flag {
  display: inline-block;
  width: 24px; height: 6px;
  background: var(--flag-stripe);
}

.hero-bar {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 28px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
}
.hero-bar .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--vf-white);
}
.hero-bar .item .num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-bar .item .lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-scroll {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::after {
  content: "";
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; }
  50%      { transform: scaleY(1); transform-origin: top; }
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.section-pad { padding: 120px 0; }
.section-pad-sm { padding: 80px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.section-head .left { display: flex; flex-direction: column; gap: 16px; }
.section-head .right { display: flex; flex-direction: column; gap: 24px; max-width: 60ch; }

/* ============================================================
   AZIENDA / INTRO
   ============================================================ */
.section-azienda {
  background: var(--vf-white);
}
.azienda-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
.azienda-copy { display: flex; flex-direction: column; gap: 32px; }
.azienda-pull {
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.4;
  font-weight: 300;
  color: var(--vf-blue);
  letter-spacing: -0.005em;
}
.azienda-pull strong { font-weight: 700; }
.azienda-image {
  position: sticky;
  top: 120px;
  aspect-ratio: 4 / 5;
  background: var(--vf-blue);
  overflow: hidden;
}
.azienda-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.azienda-image::after {
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 60px; height: 8px;
  background: var(--flag-stripe);
}

.azienda-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-1);
  margin-top: 16px;
}
.azienda-list .row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-1);
}
.azienda-list .row:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--border-1); padding-left: 0; }
.azienda-list .row:nth-child(even) { padding-left: 24px; }
.azienda-list .row .k {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); min-width: 80px;
}
.azienda-list .row .v { font-size: 15px; color: var(--vf-n-700); font-weight: 600; }

/* ============================================================
   SERVIZI
   ============================================================ */
.section-servizi {
  background: var(--vf-n-200);
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
}
.servizio-card {
  background: var(--vf-white);
  padding: 40px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  cursor: pointer;
  transition: background var(--t-base);
  min-height: 320px;
  overflow: hidden;
}
.servizio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: 0;
}
.servizio-card[data-img="1"]::before { background-image: url('assets/imagery/showcase-2.jpg'); }
.servizio-card[data-img="2"]::before { background-image: url('assets/imagery/bg-cnc.jpg'); }
.servizio-card[data-img="3"]::before { background-image: url('assets/imagery/showcase-3.jpg'); }
.servizio-card[data-img="4"]::before { background-image: url('assets/imagery/showcase-6.jpg'); }
.servizio-card[data-img="5"]::before { background-image: url('assets/gallery/Produzione/Foto%20(7).jpg'); }
.servizio-card[data-img="6"]::before { background-image: url('assets/imagery/showcase-4.jpg'); }
.servizio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,48,112,0.85) 0%, rgba(0,68,147,0.95) 100%);
  opacity: 0;
  transition: opacity var(--t-base);
  z-index: 1;
}
.servizio-card:hover::before, .servizio-card:hover::after { opacity: 1; }
.servizio-card > * { position: relative; z-index: 2; transition: color var(--t-base); }

.servizio-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.servizio-card:hover .servizio-num { color: rgba(255,255,255,0.7); }
.servizio-title { font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--vf-blue); letter-spacing: -0.01em; }
.servizio-card:hover .servizio-title { color: var(--vf-white); }
.servizio-desc { font-size: 14px; line-height: 1.65; color: var(--fg-2); flex: 1; }
.servizio-card:hover .servizio-desc { color: rgba(255,255,255,0.85); }
.servizio-link {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vf-blue);
  display: inline-flex; align-items: center; gap: 12px;
}
.servizio-card:hover .servizio-link { color: var(--vf-white); }
.servizio-link .arr { width: 20px; height: 1px; background: currentColor; position: relative; transition: width var(--t-base); }
.servizio-link .arr::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.servizio-card:hover .servizio-link .arr { width: 36px; }

/* ============================================================
   TECNOLOGIE / NUMBERS
   ============================================================ */
.section-tecnologie {
  background: var(--vf-blue);
  color: var(--vf-white);
  position: relative;
  overflow: hidden;
}
.section-tecnologie::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/imagery/bg-cnc.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  mix-blend-mode: screen;
  filter: saturate(0);
}
.tecnologie-content { position: relative; z-index: 1; }
.tecnologie-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.tecnologie-stats .stat {
  padding: 40px 16px 0;
  border-right: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.tecnologie-stats .stat:last-child { border-right: 0; }
.tecnologie-stats .stat .num {
  font-size: clamp(60px, 6vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--vf-white);
}
.tecnologie-stats .stat .num sup { font-size: 0.4em; vertical-align: top; opacity: 0.7; font-weight: 600; }
.tecnologie-stats .stat .lbl {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255,255,255,0.8);
  margin-top: 12px;
}

.macchinari-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 96px;
}
.macchinari-block { display: flex; flex-direction: column; gap: 20px; }
.macchinari-block h3 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--vf-white); margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}
.macchinari-block ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.macchinari-block li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dotted rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.92);
  font-size: 15px;
}
.macchinari-block li .qty {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--vf-white);
  font-size: 13px;
  letter-spacing: 0.06em;
}

/* ============================================================
   GALLERIA
   ============================================================ */
.section-galleria { background: var(--vf-white); }
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}
.galleria-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--vf-blue);
}
.galleria-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: saturate(0.85);
}
.galleria-item:hover img { transform: scale(1.05); filter: saturate(1.1); }
.galleria-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,68,147,0.6) 0%, rgba(0,68,147,0) 50%);
  opacity: 0;
  transition: opacity var(--t-base);
}
.galleria-item:hover::after { opacity: 1; }
.galleria-cap {
  position: absolute;
  left: 20px; bottom: 20px;
  z-index: 2;
  color: var(--vf-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.galleria-item:hover .galleria-cap { opacity: 1; transform: translateY(0); }
.galleria-cap .pin {
  display: inline-block;
  width: 16px; height: 1px; background: var(--vf-white);
  margin-right: 12px; vertical-align: middle;
}

/* spans */
.gi-1  { grid-column: span 5; grid-row: span 2; }
.gi-2  { grid-column: span 4; grid-row: span 1; }
.gi-3  { grid-column: span 3; grid-row: span 1; }
.gi-4  { grid-column: span 4; grid-row: span 1; }
.gi-5  { grid-column: span 3; grid-row: span 2; }
.gi-6  { grid-column: span 4; grid-row: span 1; }
.gi-7  { grid-column: span 5; grid-row: span 1; }

/* ============================================================
   SETTORI
   ============================================================ */
.section-settori { background: var(--vf-n-200); }
.settori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
}
.settore {
  background: var(--vf-white);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background var(--t-base), color var(--t-base);
}
.settore:hover { background: var(--vf-blue); color: var(--vf-white); }
.settore .num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--fg-3);
  transition: color var(--t-base);
}
.settore:hover .num { color: rgba(255,255,255,0.7); }
.settore h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--vf-blue);
  margin: 0;
  transition: color var(--t-base);
}
.settore:hover h3 { color: var(--vf-white); }
.settore p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
  margin: 0;
  transition: color var(--t-base);
}
.settore:hover p { color: rgba(255,255,255,0.85); }

/* ============================================================
   CLIENTI
   ============================================================ */
.section-clienti { background: var(--vf-white); padding: 80px 0; border-top: 1px solid var(--border-1); }
.clienti-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 0;
  margin-top: 48px;
}
.clienti-row .cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  border-right: 1px solid var(--border-1);
  height: 170px;
}
.clienti-row .cell:last-child { border-right: 0; }
.clienti-row img {
  max-height: 130px;
  max-width: 200px;
  width: auto;
  filter: grayscale(1) brightness(0.6);
  opacity: 0.7;
  transition: filter var(--t-base), opacity var(--t-base);
}
.clienti-row .cell:hover img { filter: grayscale(0) brightness(1); opacity: 1; }

/* ============================================================
   CERTIFICAZIONI
   ============================================================ */
.section-certificazioni {
  background: var(--vf-n-200);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.cert-card {
  background: var(--vf-white);
  border: 1px solid var(--border-1);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.cert-card:hover { box-shadow: var(--shadow-md); border-color: var(--vf-blue); }
a.cert-card { text-decoration: none; color: inherit; }
.cert-card .cert-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vf-blue);
}
.cert-card .cert-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--vf-green);
  border-radius: 50%;
}
.cert-card h4 { font-size: 17px; font-weight: 800; color: var(--vf-blue); margin: 0; line-height: 1.3; }
.cert-card p { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin: 0; }
.cert-card .cert-year {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   CTA / CONTATTI
   ============================================================ */
.section-cta {
  background: var(--vf-blue);
  color: var(--vf-white);
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/imagery/contact.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  mix-blend-mode: screen;
  filter: saturate(0);
}
.cta-inner { position: relative; z-index: 1; padding: 120px 0; }
.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.cta-display {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--vf-white);
  margin: 24px 0 0;
}
.cta-display em {
  font-style: italic; font-weight: 200; color: rgba(255,255,255,0.6);
}

.cta-side {
  display: flex; flex-direction: column; gap: 32px;
  font-size: 14px; color: rgba(255,255,255,0.85);
}
.cta-side .info-row {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}
.cta-side .info-row .lbl {
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.cta-side .info-row .val { font-size: 17px; font-weight: 600; color: var(--vf-white); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0a1626;
  color: rgba(255,255,255,0.7);
  padding: 96px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}
.footer-brand { display: flex; flex-direction: column; gap: 24px; }
.footer-brand img.logo { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 36ch; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--vf-white); margin: 0 0 20px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--vf-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom .legal { font-size: 11px; line-height: 1.6; max-width: 70ch; }
.footer-bottom .stripe {
  display: inline-block; width: 36px; height: 8px; background: var(--flag-stripe); margin-right: 12px; vertical-align: middle;
}

/* ============================================================
   MULTI-STEP FORM MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 38, 0.75);
  backdrop-filter: blur(6px);
  z-index: 400; /* sopra il banner dei cookie (300): su telefono copriva i pulsanti del modulo */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--vf-white);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform var(--t-base);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--vf-blue);
  transition: background var(--t-fast);
}
.modal-close:hover { background: var(--vf-n-200); }

.modal-header {
  padding: 48px 56px 32px;
  border-bottom: 1px solid var(--border-1);
}
.modal-header .stepper {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.modal-header .step-pip {
  flex: 1; height: 3px; background: var(--vf-n-300);
  position: relative;
}
.modal-header .step-pip.done { background: var(--vf-blue); }
.modal-header .step-pip.active { background: var(--vf-blue); }
.modal-header h2 {
  font-size: 28px; font-weight: 800; color: var(--vf-blue); margin: 0; letter-spacing: -0.015em;
}
.modal-header p { font-size: 14px; color: var(--fg-2); margin: 8px 0 0; }

.modal-body { padding: 36px 56px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vf-blue);
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border-1);
  background: var(--bg-2);
  color: var(--vf-n-800);
  border-radius: 0;
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--vf-blue); background: var(--vf-white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.choice {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.choice:hover { border-color: var(--vf-blue); }
.choice.selected { border-color: var(--vf-blue); background: var(--vf-blue-50); }
.choice .ck {
  width: 16px; height: 16px; border: 1.5px solid var(--vf-n-400); margin-top: 3px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.choice.selected .ck { background: var(--vf-blue); border-color: var(--vf-blue); }
.choice.selected .ck::after {
  content: ""; width: 8px; height: 4px;
  border-left: 2px solid var(--vf-white); border-bottom: 2px solid var(--vf-white);
  transform: rotate(-45deg) translate(1px, -1px);
}
.choice .ttl { font-size: 14px; font-weight: 700; color: var(--vf-blue); }
.choice .sub { font-size: 12px; color: var(--fg-2); display: block; margin-top: 2px; line-height: 1.4; }

.modal-foot {
  padding: 24px 56px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-1);
  background: var(--bg-2);
}
.modal-foot .step-no {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.modal-success {
  padding: 80px 56px;
  text-align: center;
}
.modal-success .check {
  width: 80px; height: 80px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--vf-blue-50);
  display: flex; align-items: center; justify-content: center;
}
.modal-success .check::after {
  content: ""; width: 26px; height: 14px;
  border-left: 3px solid var(--vf-blue); border-bottom: 3px solid var(--vf-blue);
  transform: rotate(-45deg) translateY(-3px);
}
.modal-success h2 { font-size: 32px; color: var(--vf-blue); margin: 0; font-weight: 800; }
.modal-success p { font-size: 15px; color: var(--fg-2); margin: 12px 0 0; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 38, 0.95);
  z-index: 400; /* sopra il banner dei cookie (300) */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox .lb-meta {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lightbox .lb-meta .count { color: rgba(255,255,255,0.5); font-variant-numeric: tabular-nums; }
.lightbox .lb-close {
  position: absolute; top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--vf-white);
  font-size: 20px;
  cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox .lb-close:hover { background: rgba(255,255,255,0.1); }
.lightbox .lb-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--vf-white);
  font-size: 24px;
  cursor: pointer;
  transition: background var(--t-fast);
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.1); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.shown {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HAMBURGER & MOBILE MENU
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--vf-blue);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
.site-header:not(.scrolled) .hamburger span { background: #fff; }
.hamburger span.hb-open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger span.hb-open:nth-child(2) { opacity: 0; }
.hamburger span.hb-open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.mobile-menu-nav {
  background: #fff;
  padding: 24px 0 32px;
  display: flex;
  flex-direction: column;
  margin-top: 70px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.mobile-menu-link {
  display: block;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  text-decoration: none;
  padding: 16px 28px;
  font-size: 17px;
  font-weight: 600;
  color: var(--vf-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-link:hover,
.mobile-menu-link.active { background: var(--vf-blue); color: #fff; }
.mobile-menu-cta {
  margin: 24px 28px 0;
  align-self: flex-start;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 32px; }
  .section-pad { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .azienda-grid { grid-template-columns: 1fr; gap: 48px; }
  .azienda-image { position: static; aspect-ratio: 16/10; }
  .servizi-grid, .settori-grid { grid-template-columns: repeat(2, 1fr); }
  .tecnologie-stats { grid-template-columns: repeat(2, 1fr); }
  .tecnologie-stats .stat { border-right: 0; }
  .tecnologie-stats .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.2); }
  .macchinari-list { grid-template-columns: 1fr; gap: 48px; }
  .clienti-row { grid-template-columns: repeat(3, 1fr); }
  .clienti-row .cell:nth-child(3n) { border-right: 0; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .galleria-grid { grid-template-columns: repeat(6, 1fr); }
  .gi-1 { grid-column: span 6; grid-row: span 1; }
  .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7 { grid-column: span 3; grid-row: span 1; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .header-cta-desktop { display: none; }
  .header-cta-viewer { display: none; }
  .azienda-list { grid-template-columns: 1fr; }
  .azienda-list .row:nth-child(odd) { border-right: 0; padding-right: 0; }
  .azienda-list .row:nth-child(even) { padding-left: 0; }
  .hero-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .section-pad { padding: 56px 0; }
  .header-inner { gap: 16px; }
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 12px 0; }
  .hero-bar { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head { margin-bottom: 40px; }
  .cta-grid { gap: 32px; }
  .footer-grid { gap: 36px; }
  /* Clienti: 2 colonne su tablet piccolo */
  .clienti-row { grid-template-columns: repeat(2, 1fr); }
  .clienti-row .cell:nth-child(3n) { border-right: 1px solid var(--border-1); }
  .clienti-row .cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 16px; }
  .section-pad { padding: 48px 0; }
  .servizi-grid, .settori-grid, .cert-grid { grid-template-columns: 1fr; }
  .clienti-row { grid-template-columns: repeat(2, 1fr); }
  .clienti-row .cell:nth-child(2n) { border-right: 0; }
  .galleria-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gi-1, .gi-2, .gi-3, .gi-4, .gi-5, .gi-6, .gi-7 { grid-column: span 1; grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meta { display: none; }
  .hero-scroll { display: none; }
  .hero-inner { padding-top: 110px; }
  .hero-display { font-size: clamp(40px, 10.5vw, 56px); }
  .field-row { grid-template-columns: 1fr; }
  .modal-header, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .modal-success { padding: 48px 20px; }
  .sd-panel-head { grid-template-columns: 1fr; }
  .sd-panel-img { display: none; }
  .sd-features { grid-template-columns: 1fr; }
  /* Header: spazio ridotto su schermi molto piccoli */
  .header-inner { gap: 12px; }
  /* Btn più compatto nell'header */
  .header-actions .btn { padding: 11px 16px; font-size: 10px; }
  /* Hero */
  .hero-inner { padding-bottom: 48px; }
  /* Tecnologie */
  .macchinari-list { grid-template-columns: 1fr; }
  /* ServiziDettaglio */
  .sd-tabs { gap: 0; overflow-x: auto; }
  .sd-tab { padding: 12px 16px; font-size: 11px; white-space: nowrap; }
  .sd-features { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVIZI DETTAGLIO
   ============================================================ */
.section-servizi-dettaglio {
  background: var(--vf-white);
  border-top: 1px solid var(--border-1);
}

.sd-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-1);
  margin-bottom: 72px;
}
.sd-tab {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: transparent;
  border: 0;
  padding: 18px 36px;
  cursor: pointer;
  position: relative;
  transition: color var(--t-fast);
}
.sd-tab::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -1px;
  height: 2px;
  background: var(--vf-blue);
  transition: right var(--t-base);
}
.sd-tab:hover { color: var(--vf-blue); }
.sd-tab:hover::after, .sd-tab.active::after { right: 0; }
.sd-tab.active { color: var(--vf-blue); }

.sd-panel-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}
.sd-panel-text { display: flex; flex-direction: column; }
.sd-panel-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--vf-blue-50);
}
.sd-panel-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }

.sd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
  margin-top: 8px;
}
.sd-feat {
  background: var(--vf-n-200);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sd-feat-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-blue);
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-1);
}
.sd-feat ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.sd-feat li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-1);
}
.sd-feat li .check {
  flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--vf-blue);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.sd-feat li .check::after {
  content: "";
  width: 8px; height: 4px;
  border-left: 1.5px solid var(--vf-white);
  border-bottom: 1.5px solid var(--vf-white);
  transform: rotate(-45deg) translate(1px, -1px);
}

/* macchinari: 3 equal columns */
.macchinari-list { grid-template-columns: repeat(3, 1fr); }

/* ============================================================
   FOOTER SOCIAL
   ============================================================ */
.footer-social {
  display: flex;
  gap: 16px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.footer-social a:hover { border-color: var(--vf-white); color: var(--vf-white); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: #0a1626;
  border-top: 2px solid var(--vf-blue);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
}
.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text strong {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--vf-white); display: block; margin-bottom: 4px;
}
.cookie-text p {
  font-size: 13px; color: rgba(255,255,255,0.65); margin: 0; line-height: 1.5;
}
.cookie-text a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   LEGAL PAGES (privacy-policy.html, cookie-policy.html)
   ============================================================ */
.legal-page {
  max-width: 820px;
  margin: 120px auto 80px;
  padding: 0 32px;
}
.legal-page h1 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; color: var(--vf-blue); letter-spacing: -0.02em; margin: 0 0 8px; }
.legal-page .subtitle { font-size: 14px; color: var(--fg-3); margin: 0 0 56px; letter-spacing: 0.06em; }
.legal-page h2 { font-size: 18px; font-weight: 700; color: var(--vf-blue); margin: 48px 0 12px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.75; color: var(--fg-1); }
.legal-page ul, .legal-page ol { padding-left: 20px; margin: 12px 0 24px; }
.legal-page a { color: var(--vf-blue); }
.legal-page table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0 24px; }
/* Sul telefono le tabelle dei cookie (4 colonne) scorrono da sole invece di
   allargare tutta la pagina */
@media (max-width: 640px) {
  .legal-page table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.legal-page th { background: var(--vf-blue); color: var(--vf-white); padding: 10px 14px; text-align: left; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.legal-page td { padding: 10px 14px; border-bottom: 1px solid var(--border-1); vertical-align: top; }
.legal-page tr:nth-child(even) td { background: var(--vf-n-200); }

/* Legal page header */
.legal-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-1);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.legal-header img { height: 34px; }
.legal-header a { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--vf-blue); display: flex; align-items: center; gap: 8px; }
.legal-header a::before { content: "←"; }

/* SD panel responsive */
@media (max-width: 1024px) {
  .sd-tabs { gap: 0; overflow-x: auto; }
  .sd-tab { padding: 14px 24px; white-space: nowrap; }
  .sd-features { grid-template-columns: 1fr; }
  .sd-panel-head { grid-template-columns: 1fr; }
  .sd-panel-img { display: none; }
  .macchinari-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cookie-inner { gap: 16px; padding: 20px 16px; }
  /* I due pulsanti affiancati a tutta larghezza: senza questo "Accetta tutti"
     usciva dal bordo destro sui telefoni da 375px */
  .cookie-actions { width: 100%; gap: 8px; flex-wrap: nowrap; }
  .cookie-actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; gap: 10px; padding: 12px 10px !important; letter-spacing: 0.1em; }
  .sd-tab { padding: 12px 16px; font-size: 11px; }
  .macchinari-list { grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICE DETAIL PAGES  (servizio-*.html)
   ============================================================ */
.svc-hero {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.svc-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,30,70,0.82) 0%, rgba(0,20,50,0.35) 60%, transparent 100%);
}
.svc-hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 56px 64px;
}
.svc-hero-inner .vf-eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
  display: block;
}
.svc-hero-inner h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--vf-white);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.1;
}
.svc-hero-inner p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin: 0;
  font-weight: 300;
  max-width: 600px;
}

.svc-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}
.svc-section {
  padding: 80px 0;
}
.svc-section--alt {
  background: var(--vf-n-200);
}
.svc-section--dark {
  background: var(--vf-n-800);
}

.svc-intro {
  max-width: 760px;
}
.svc-intro-lead {
  font-size: 20px;
  font-weight: 300;
  color: var(--fg-2);
  line-height: 1.6;
  margin: 0 0 28px;
}
.svc-intro-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-1);
  margin: 0;
}

.svc-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vf-blue);
  margin: 0 0 16px;
}
.svc-section-heading {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg-heading);
  margin: 0 0 40px;
  line-height: 1.1;
}

/* Feature cards grid */
.svc-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-1);
  border: 1px solid var(--border-1);
}
.svc-feat-card {
  background: var(--bg-1);
  padding: 40px 36px;
}
.svc-feat-icon {
  width: 44px; height: 44px;
  background: var(--vf-blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.svc-feat-icon svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 1.5; }
.svc-feat-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-heading);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.svc-feat-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg-2);
  margin: 0;
}

/* Spec list */
.svc-specs {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}
.svc-specs li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-1);
}
.svc-specs li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--vf-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline points='2,6 5,9 10,3' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Image grid */
.svc-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.svc-img-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.svc-img-grid img:hover { opacity: 0.88; }
.svc-img-grid .svc-img-wide {
  grid-column: span 2;
}
.svc-img-grid .svc-img-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.svc-img-grid .svc-img-tall img {
  height: 100%;
  aspect-ratio: auto;
}

/* CTA bar */
.svc-cta-bar {
  background: var(--vf-blue);
  padding: 80px 0;
  text-align: center;
}
.svc-cta-bar h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--vf-white);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.svc-cta-bar p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 40px;
  font-weight: 300;
}
.svc-cta-bar .btn-white {
  display: inline-block;
  padding: 16px 48px;
  background: var(--vf-white);
  color: var(--vf-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.svc-cta-bar .btn-white:hover {
  background: var(--vf-n-200);
}

/* Service page mini footer */
.svc-footer {
  background: var(--vf-n-800);
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.svc-footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.svc-footer-links {
  display: flex;
  gap: 24px;
}
.svc-footer-links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--t-fast);
}
.svc-footer-links a:hover { color: var(--vf-white); }

/* Responsive service pages */
@media (max-width: 1024px) {
  .svc-hero-inner { padding: 48px 40px; }
  .svc-container { padding: 0 40px; }
  .svc-feat-grid { grid-template-columns: 1fr 1fr; }
  .svc-img-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-footer { padding: 28px 40px; }
}
@media (max-width: 768px) {
  .svc-hero { height: 320px; }
  .svc-hero-inner { padding: 40px 24px; }
  .svc-container { padding: 0 24px; }
  .svc-section { padding: 56px 0; }
  .svc-feat-grid { grid-template-columns: 1fr; }
  .svc-img-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-img-wide { grid-column: span 1; }
  .svc-cta-bar { padding: 56px 24px; }
  .svc-footer { padding: 24px 24px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .svc-img-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   GALLERY PAGE  (galleria.html)
   ============================================================ */
.gallery-page-hero {
  background: linear-gradient(135deg, var(--vf-blue) 0%, var(--vf-blue-dark) 100%);
  padding: 120px 64px 64px;
}
.gallery-page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: var(--vf-white);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.gallery-page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin: 0;
  font-weight: 300;
}

.gallery-filters {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-1);
  padding: 0 64px;
  display: flex;
  gap: 0;
  overflow-x: auto;
}
.gallery-filter-btn {
  padding: 20px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
  margin-bottom: -1px;
}
.gallery-filter-btn:hover { color: var(--vf-blue); }
.gallery-filter-btn.active {
  color: var(--vf-blue);
  border-bottom-color: var(--vf-blue);
}

.gallery-main {
  padding: 48px 64px 80px;
  max-width: 1600px;
  margin: 0 auto;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
  background: var(--vf-n-300);
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity var(--t-fast);
}
.gallery-item:hover img {
  transform: scale(1.04);
  opacity: 0.92;
}
.gallery-item.hidden { display: none; }

/* Gallery lightbox (shared with SPA via JS) */
.glb-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.94);
  display: flex; align-items: center; justify-content: center;
}
.glb-overlay.hidden { display: none; }
.glb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}
.glb-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 32px; cursor: pointer; line-height: 1;
  transition: color var(--t-fast);
}
.glb-close:hover { color: var(--vf-white); }
.glb-prev, .glb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; font-size: 20px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast);
}
.glb-prev:hover, .glb-next:hover { background: rgba(255,255,255,0.2); }
.glb-prev { left: 20px; }
.glb-next { right: 20px; }
.glb-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-weight: 700; letter-spacing: 0.10em;
}

@media (max-width: 1024px) {
  .gallery-page-hero { padding: 100px 40px 48px; }
  .gallery-filters { padding: 0 40px; }
  .gallery-main { padding: 40px 40px 60px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-page-hero { padding: 100px 24px 40px; }
  .gallery-filters { padding: 0 24px; }
  .gallery-filter-btn { padding: 16px 20px; }
  .gallery-main { padding: 32px 24px 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 2px; }
}

/* Gallery disclaimer */
.gallery-disclaimer {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 64px 56px;
}
.gallery-disclaimer-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f4f6f9;
  border-left: 3px solid var(--vf-blue);
  border-radius: 4px;
  padding: 18px 22px;
}
.gallery-disclaimer-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--vf-blue);
}
.gallery-disclaimer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(0,0,0,0.55);
}
.gallery-disclaimer strong {
  color: rgba(0,0,0,0.7);
  font-weight: 600;
}
/* Inline disclaimer used inside SPA gallery section */
.gallery-disclaimer--inline {
  margin: 32px 0 0;
  padding: 0;
}
.gallery-disclaimer--inline .gallery-disclaimer-inner {
  text-align: left;
}
@media (max-width: 1024px) {
  .gallery-disclaimer { padding: 0 40px 48px; }
}
@media (max-width: 768px) {
  .gallery-disclaimer { padding: 0 24px 40px; }
}
@media (max-width: 480px) {
  .gallery-disclaimer { padding: 0 16px 32px; }
  .gallery-disclaimer-inner { gap: 10px; padding: 14px 16px; }
  .gallery-disclaimer p { font-size: 12px; }
}

/* ============================================================
   3D VIEWER — sezione teaser in home + vetrina nel modulo preventivo
   ============================================================ */
.section-viewer {
  background: var(--vf-white);
  border-top: 1px solid var(--border-1);
}

.viewer-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px 64px;
  align-items: start;
}
.viewer-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.viewer-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 62ch;
}
.viewer-head-right .body { margin: 0; }

/* Il "gratis" e' il messaggio principale della sezione: va visto subito. */
.viewer-free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--vf-green);
  color: var(--vf-white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 10px 20px;
  margin-top: 4px;
}
.viewer-free::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--vf-white);
  border-radius: 50%;
}

.viewer-quote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  background: var(--vf-blue-50);
  border-left: 3px solid var(--vf-blue);
  font-size: 14px;
  line-height: 1.6;
  color: var(--vf-blue);
  font-weight: 600;
}
.viewer-quote svg { flex: none; margin-top: 2px; }

.viewer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.viewer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px;
  background: var(--vf-white);
  border: 1px solid var(--border-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.viewer-card:hover { box-shadow: var(--shadow-md); border-color: var(--vf-blue); }
.viewer-card.is-request { border-style: dashed; background: var(--vf-n-200); }
.viewer-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vf-blue);
}
.viewer-card-tag::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--vf-green);
  border-radius: 50%;
}
.viewer-card.is-request .viewer-card-tag::before { background: var(--vf-n-400); }
.viewer-card h4 {
  font-size: 17px; font-weight: 800; color: var(--vf-blue);
  margin: 0; line-height: 1.3;
}
.viewer-card p {
  font-size: 13px; color: var(--fg-2); line-height: 1.55; margin: 0;
}
.viewer-card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.viewer-card-cta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--vf-blue);
}
.viewer-card:hover .viewer-card-cta { text-decoration: underline; }
.viewer-card-state {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3);
}

/* --- Vetrina del viewer dentro il modulo preventivo --- */
.quote-viewer-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 56px 20px;
  padding: 16px 20px;
  background: var(--vf-blue-50);
  border: 1px solid var(--vf-blue-100);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-base), background var(--t-base);
}
.quote-viewer-hint:hover { border-color: var(--vf-blue); background: var(--vf-blue-100); }
.quote-viewer-hint .qvh-icon {
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--vf-blue);
  color: var(--vf-white);
}
.quote-viewer-hint .qvh-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quote-viewer-hint .qvh-text strong {
  font-size: 13px; font-weight: 800; color: var(--vf-blue); line-height: 1.3;
}
.quote-viewer-hint .qvh-text span {
  font-size: 12px; color: var(--fg-2); line-height: 1.5;
}
.quote-viewer-hint .qvh-cta {
  flex: none;
  margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--vf-blue);
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .viewer-head { grid-template-columns: 1fr; gap: 28px; }
  .viewer-grid { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .quote-viewer-hint { margin: 0 40px 20px; }
}
@media (max-width: 768px) {
  .quote-viewer-hint { flex-wrap: wrap; gap: 12px; margin: 0 32px 20px; }
  .quote-viewer-hint .qvh-cta { margin-left: 56px; }
}
@media (max-width: 640px) {
  .viewer-grid { grid-template-columns: 1fr; gap: 16px; }
  .viewer-free { font-size: 12px; padding: 9px 16px; }
}
@media (max-width: 480px) {
  .quote-viewer-hint { margin: 0 24px 16px; padding: 14px 16px; gap: 10px; }
  .quote-viewer-hint .qvh-icon { display: none; }
  .quote-viewer-hint .qvh-cta { margin-left: 0; }
}

/* Con l'ottava voce ("3D Viewer") il menu si stringe: le etichette non devono
   spezzarsi su due righe, e gli spazi si riducono prima di arrivare al menu
   mobile (1024px). */
.nav-link { white-space: nowrap; }
a.nav-link { text-decoration: none; }
@media (max-width: 1280px) { .nav { gap: 20px; } }
@media (max-width: 1100px) { .nav { gap: 14px; } .nav-link { font-size: 12px; } }
