/* =========================================================
   MAGNANI FILETTATURE — Steel Industrial UI
   Palette: Nero #0A0A0A + Steel dark + Grigi metallici
   Font: Space Grotesk (heading) + Inter (body)
   ========================================================= */

:root {
  /* ─── Palette brand (dal logo M+F) ─── */
  --red-600:    #DC2626;   /* rosso principale del logo */
  --red-700:    #B91C1C;
  --red-800:    #991B1B;
  --red-100:    #FEE2E2;
  --red-50:     #FEF2F2;
  --yellow-400: #FBBF24;   /* giallo del contorno logo */
  --yellow-500: #F59E0B;
  --yellow-600: #D97706;
  --yellow-100: #FEF3C7;
  --yellow-50:  #FFFBEB;

  /* Colori strutturali */
  --black:      #0A0A0A;
  --steel-950:  #020617;
  --steel-900:  #1F1F1F;
  --steel-800:  #2A2A2A;
  --steel-700:  #404040;
  --steel-600:  #525252;
  --steel-500:  #737373;
  --steel-400:  #A3A3A3;
  --steel-300:  #D4D4D4;
  --steel-200:  #E5E5E5;
  --steel-100:  #F5F5F5;
  --steel-50:   #FAFAFA;
  --white:      #FFFFFF;
  --accent:     #DC2626;   /* rosso brand */

  /* Font */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Container */
  --container: 1280px;
  --nav-h: 76px;
  --promo-h: 40px;
}

/* ─── RESET ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100vw; overflow-x: hidden; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--promo-h)); }
body {
  font-family: var(--font-body);
  color: var(--steel-800);
  background: var(--steel-50);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--nav-h) + var(--promo-h));
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--steel-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 700; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
em { font-style: italic; color: var(--red-600); font-weight: 400; }
p  { color: var(--steel-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--steel-400);
}
.eyebrow.center::before { display: none; }

/* ─── LAYOUT ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--white);
}
.section-light { background: var(--steel-50); }
.section-dark {
  background: var(--black);
  color: var(--steel-300);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--steel-400); }
.section-dark em { color: var(--steel-500); }

.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin: 0 auto 64px; text-align: center; }
.section-head p { font-size: 18px; margin-top: 20px; }

/* ─── TOP BAR (contatti + social) — scura con accenti gialli ─── */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--promo-h);
  background: var(--steel-900);
  color: var(--steel-300);
  font-size: 13px;
  z-index: 1001;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--yellow-400);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.top-bar-info {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.top-bar-info a, .top-bar-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel-300);
  font-family: var(--font-body);
  font-weight: 400;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.top-bar-info a:hover { color: var(--yellow-400); }
.top-bar-info svg { width: 14px; height: 14px; fill: currentColor; opacity: 0.75; }
.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--steel-800);
}
.top-bar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  color: var(--steel-400);
  transition: all 0.2s ease;
}
.top-bar-social a:hover { color: var(--steel-900); background: var(--yellow-400); }
.top-bar-social svg { width: 12px; height: 12px; fill: currentColor; }

@media (max-width: 900px) {
  .top-bar-info { gap: 14px; font-size: 11px; }
  .top-bar-info span:last-of-type { display: none; }
  .top-bar-social { display: none; }
}
@media (max-width: 600px) {
  .top-bar-info a:nth-child(2) { display: none; }
  .top-bar-info { gap: 10px; }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: var(--promo-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--steel-200);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: all 0.25s ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 4px 30px rgba(0,0,0,0.04); }

.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo svg { width: 40px; height: 40px; }
.nav-logo img { height: 62px; width: auto; display: block; }
.nav-logo-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 20px;
  color: var(--steel-900);
}
.nav-logo-sub {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 3px;
  font-size: 13px;
  color: var(--red-600);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .nav-logo img { height: 48px; }
  .nav-logo-text { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav-logo-name { font-size: 15px; }
  .nav-logo-sub { font-size: 10px; }
}

.nav-menu { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-menu a {
  font-size: 14px;
  color: var(--steel-600);
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}
.nav-menu a:hover { color: var(--steel-900); background: var(--steel-100); }
.nav-menu a.active { color: var(--steel-900); font-weight: 600; }
.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--steel-900);
}
.nav-cta {
  background: var(--red-600) !important;
  color: var(--white) !important;
  padding: 12px 22px !important;
  margin-left: 12px;
}
.nav-cta:hover { background: var(--red-700) !important; transform: translateY(-1px); }
.nav-cta.active::after { display: none; }

.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span { width: 24px; height: 2px; background: var(--steel-900); transition: 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary { background: var(--white); color: var(--steel-900); }
.btn-primary:hover { background: var(--steel-100); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }
.btn-dark { background: var(--red-600); color: var(--white); }
.btn-dark:hover { background: var(--red-700); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(220,38,38,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-outline-dark { background: transparent; color: var(--steel-900); border: 1.5px solid var(--steel-300); }
.btn-outline-dark:hover { border-color: var(--steel-900); background: var(--steel-50); }
.btn-arrow::after {
  content: '→';
  transition: transform 0.25s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ─── HERO (sfondo scuro + pannello bianco destra a caduta) ─── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h) - var(--promo-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  padding: 60px 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img, .hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,0.85) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.4) 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title-wrap { max-width: 720px; }

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--steel-300);
  font-weight: 600;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--steel-400);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero h1 em {
  color: var(--yellow-400);
  font-style: italic;
  font-weight: 300;
  display: block;
}
.hero-tagline {
  color: var(--steel-300);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 300;
  margin-top: 24px;
  max-width: 560px;
  line-height: 1.4;
}
.hero-tagline em {
  color: var(--white);
  font-style: normal;
  font-weight: 500;
}

/* ─── HERO PANEL (pannello bianco destra con testi a caduta) ─── */
.hero-panel {
  background: var(--white);
  color: var(--steel-900);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  position: relative;
}
.hero-panel-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-panel-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--steel-400);
}
.hero-panel h3 {
  font-size: clamp(22px, 2vw, 28px);
  color: var(--steel-900);
  margin-bottom: 18px;
  line-height: 1.25;
}
.hero-panel h3 em {
  color: var(--steel-500);
  font-style: italic;
  font-weight: 400;
}
.hero-panel p {
  font-size: 15px;
  color: var(--steel-600);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-panel-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-panel-cta .btn { padding: 14px 24px; font-size: 13px; }

/* Animazione ENTRATA A CADUTA (drop from top) sul pannello */
.hero-panel > * {
  opacity: 0;
  transform: translateY(-40px);
  animation: dropIn 0.85s cubic-bezier(.22,.61,.36,1) forwards;
}
.hero-panel > *:nth-child(1) { animation-delay: 0.5s; }
.hero-panel > *:nth-child(2) { animation-delay: 0.7s; }
.hero-panel > *:nth-child(3) { animation-delay: 0.9s; }
.hero-panel > *:nth-child(4) { animation-delay: 1.1s; }
@keyframes dropIn { to { opacity: 1; transform: translateY(0); } }

/* Il pannello stesso scorre in dall'alto */
.hero-panel {
  animation: panelSlideDown 0.9s cubic-bezier(.22,.61,.36,1) 0.2s both;
  transform: translateY(-30px);
  opacity: 0;
}
@keyframes panelSlideDown { to { transform: translateY(0); opacity: 1; } }

/* Il titolo grande a sinistra scorre in da sinistra */
.hero-title-wrap {
  animation: titleFadeIn 1s cubic-bezier(.22,.61,.36,1) 0.1s both;
  opacity: 0;
  transform: translateX(-40px);
}
@keyframes titleFadeIn { to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(44px, 10vw, 72px); }
  .hero-panel { padding: 36px 28px; }
}

/* ─── SERVICE CARD V2 (home) — leggibili con hover immagine ─── */
.service-card-v2 {
  position: relative;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.5s ease, transform 0.6s ease;
  z-index: 0;
}
.service-card-v2::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,20,20,0.30) 0%, rgba(15,15,15,0.85) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.service-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Stato normale — leggibile su bianco */
.service-card-v2 .service-num {
  color: var(--steel-400);
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 3px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.4s ease;
}
.service-card-v2 .service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--steel-200);
  transition: background 0.4s ease;
}
.service-card-v2 h3 {
  color: var(--steel-900);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 14px;
  transition: color 0.4s ease;
}
.service-card-v2 p {
  color: var(--steel-600);
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
  transition: color 0.4s ease;
}
.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red-600);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red-600);
  align-self: flex-start;
  transition: color 0.4s ease, border-color 0.4s ease, transform 0.25s ease;
}

/* HOVER: immagine sfondo + overlay scuro + testo bianco */
.service-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
  border-color: transparent;
}
.service-card-v2:hover .service-card-bg { opacity: 1; transform: scale(1); }
.service-card-v2:hover::after { opacity: 1; }
.service-card-v2:hover .service-num { color: rgba(255,255,255,0.9); }
.service-card-v2:hover .service-num::after { background: rgba(255,255,255,0.35); }
.service-card-v2:hover h3 { color: var(--white); }
.service-card-v2:hover p { color: rgba(255,255,255,0.9); }
.service-card-v2:hover .service-card-cta {
  color: var(--yellow-400);
  border-color: var(--yellow-400);
  transform: translateX(4px);
}

/* ─── SERVIZI BENTO (legacy — non usato) ─── */
.services-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
}

/* Card HERO grande a sinistra */
.service-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 560px;
  padding: 44px 40px 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.35);
  border: 3px solid var(--yellow-400);
}
.service-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 0;
}
.service-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,30,30,0.15) 0%, rgba(20,20,20,0.55) 55%, rgba(153,27,27,0.90) 100%);
  z-index: 1;
}
.service-hero:hover .service-hero-bg { transform: scale(1.06); }
.service-hero:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.service-hero-inner { position: relative; z-index: 2; }
.service-hero-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--yellow-400);
  font-weight: 600;
  margin-bottom: 20px;
}
.service-hero .service-num {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-bottom: 16px;
}
.service-hero .service-num::after { background: rgba(255,255,255,0.3); }
.service-hero h3 {
  color: var(--white);
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 700;
}
.service-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin-bottom: 24px;
  max-width: 420px;
}
.service-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--yellow-400);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--yellow-400);
  align-self: flex-start;
}

/* Griglia 2x2 delle mini card */
.services-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.service-mini {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.service-mini::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red-600);
  transition: width 0.3s ease;
}
.service-mini:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  border-color: var(--red-600);
}
.service-mini:hover::before { width: 100%; opacity: 0.05; }
.service-mini .service-num {
  color: var(--steel-400);
  margin-bottom: 12px;
  font-size: 12px;
}
.service-mini h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--steel-900);
  line-height: 1.1;
  margin-bottom: 10px;
  font-weight: 700;
}
.service-mini p {
  color: var(--steel-600);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.service-mini-arrow {
  color: var(--red-600);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-top: 16px;
  transition: transform 0.25s ease;
}
.service-mini:hover .service-mini-arrow { transform: translateX(6px); }

/* Variante SCURA per rompere l'alternanza */
.service-mini-dark {
  background: var(--steel-900);
  color: var(--white);
  border-color: var(--steel-900);
}
.service-mini-dark::before { background: var(--yellow-400); }
.service-mini-dark:hover { border-color: var(--yellow-400); }
.service-mini-dark .service-num { color: var(--steel-500); }
.service-mini-dark h4 { color: var(--white); }
.service-mini-dark p { color: var(--steel-300); }
.service-mini-dark .service-mini-arrow { color: var(--yellow-400); }

@media (max-width: 1024px) {
  .services-bento { grid-template-columns: 1fr; }
  .service-hero { min-height: 420px; }
}
@media (max-width: 600px) {
  .services-mini-grid { grid-template-columns: 1fr; }
}

/* ─── SERVIZI GRID (legacy — usato nelle altre pagine) ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--steel-100) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--red-600);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(220,38,38,0.12);
}
.service-card:hover::before { opacity: 1; }
.service-num {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-400);
  letter-spacing: 3px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--steel-200);
}
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 15px; color: var(--steel-600); }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-900);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.service-link::after { content: '→'; transition: transform 0.2s ease; }
.service-link:hover::after { transform: translateX(4px); }

/* ─── NUMBERS GRID ─── */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.number-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
}
.number-card::before {
  content: attr(data-index);
  position: absolute;
  top: 20px; right: 24px;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--steel-600);
  letter-spacing: 2px;
}
.number-card .num {
  font-family: var(--font-heading);
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.number-card .num-suffix { font-size: 0.4em; color: var(--steel-400); font-weight: 500; }
.number-card .label {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--steel-400);
  line-height: 1.5;
}

/* ─── SEZIONE BIANCA STILE AGB (3 blocchi compatti a caduta) ─── */
.section-hero-panel {
  background: var(--white);
  padding: 80px 0;
  overflow: hidden;
}
.section-hero-panel .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.hero-panel-line {
  padding: 32px 28px;
  background: var(--steel-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--red-600);
  transition: all 0.3s ease;
}
.hero-panel-line:hover {
  background: var(--white);
  box-shadow: 0 20px 40px -10px rgba(220,38,38,0.15);
  transform: translateY(-4px);
  border-left-color: var(--yellow-500);
}
.line-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-500);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero-panel-line h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  color: var(--steel-900);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.hero-panel-line h2 em {
  font-style: italic;
  color: var(--steel-500);
  font-weight: 400;
}

/* Animazione "drop-in" — cadono dall'alto con delay scaglionati */
.drop-in {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.drop-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-hero-panel .drop-in:nth-child(1) { transition-delay: 0.1s; }
.section-hero-panel .drop-in:nth-child(2) { transition-delay: 0.25s; }
.section-hero-panel .drop-in:nth-child(3) { transition-delay: 0.4s; }

@media (max-width: 768px) {
  .section-hero-panel .container { grid-template-columns: 1fr; gap: 20px; }
}

/* ─── ABOUT STRIP ─── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p { font-size: 17px; margin-bottom: 20px; }
.about-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--steel-100);
  position: relative;
}
.about-visual img, .about-visual video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.4) 100%);
  pointer-events: none;
}

/* ─── SECTORS (settori serviti) ─── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.sector-tile {
  padding: 32px 24px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}
.sector-tile:hover {
  border-color: var(--steel-900);
  transform: translateY(-3px);
}
.sector-tile .icon {
  width: 44px; height: 44px;
  background: var(--steel-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.sector-tile h4 {
  font-size: 16px;
  color: var(--steel-900);
  margin-bottom: 6px;
}
.sector-tile p { font-size: 13px; color: var(--steel-500); }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--steel-900);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--red-600);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 40%; height: 160%;
  background: radial-gradient(circle at 50% 50%, rgba(251,191,36,0.12) 0%, transparent 55%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner h2 em { color: var(--yellow-400); font-weight: 400; }
.cta-banner p { color: var(--steel-300); font-size: 17px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  color: var(--steel-400);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--steel-400);
  margin-top: 20px;
  line-height: 1.7;
  max-width: 320px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--steel-400);
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--steel-800);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--steel-500);
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--steel-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.footer-social a:hover {
  border-color: var(--white);
  background: var(--white);
  transform: translateY(-2px);
}
.footer-social a:hover svg { fill: var(--black); }
.footer-social svg { width: 16px; height: 16px; fill: var(--steel-400); transition: fill 0.25s ease; }

/* ─── PAGE HEADER (inner pages) — rosso bilanciato + foto diversa per pagina ─── */
.page-header {
  background: var(--steel-50);
  color: var(--steel-900);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--yellow-400);
}
.page-header .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.page-header-content { max-width: 600px; }
.page-header h1 { color: var(--steel-900); margin-bottom: 20px; font-size: clamp(38px, 5.5vw, 64px); }
.page-header h1 em { color: var(--red-600); font-weight: 400; font-style: italic; }
.page-header p { color: var(--steel-600); font-size: 17px; max-width: 560px; }

/* Card foto a destra */
.page-header-visual {
  aspect-ratio: 5/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.25);
  border: 3px solid var(--yellow-400);
}
.page-header-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-header-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35) 100%);
}

/* Alone giallo leggero */
.page-header::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 40%; height: 160%;
  background: radial-gradient(circle at 50% 50%, rgba(251,191,36,0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.breadcrumb {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--red-600); font-weight: 600; }
.breadcrumb a:hover { color: var(--red-700); }
.breadcrumb span { margin: 0 10px; color: var(--steel-400); }

@media (max-width: 900px) {
  .page-header .container { grid-template-columns: 1fr; gap: 40px; }
  .page-header-visual { aspect-ratio: 16/10; }
}

/* ─── CHI SIAMO + CONTATTI — page header senza immagine, testo centrato ─── */
body.page-chi-siamo .page-header .container,
body.page-contatti .page-header .container {
  grid-template-columns: 1fr;
  max-width: 900px;
  text-align: center;
}
body.page-chi-siamo .page-header-content,
body.page-contatti .page-header-content { max-width: none; }
body.page-chi-siamo .page-header p,
body.page-contatti .page-header p { margin: 0 auto; }
body.page-chi-siamo .breadcrumb,
body.page-contatti .breadcrumb { display: flex; justify-content: center; }

/* ─── SERVIZI PAGE — page header con rettangolo panoramico full-width ─── */
body.page-servizi .page-header {
  padding: 80px 0 0;
  min-height: auto;
  background: var(--white);
  border-bottom: 4px solid var(--yellow-400);
}
body.page-servizi .page-header::before { display: none; }
body.page-servizi .page-header .container {
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 40px;
  max-width: 900px;
  text-align: center;
  align-items: initial;
}
body.page-servizi .page-header-content { max-width: none; }
body.page-servizi .breadcrumb { justify-content: center; display: flex; }
body.page-servizi .page-header h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  margin-bottom: 20px;
}
body.page-servizi .page-header p { margin: 0 auto; }

/* Rettangolo panoramico full-width con la foto */
.page-header-banner {
  width: 100%;
  aspect-ratio: 24/7;
  max-height: 340px;
  overflow: hidden;
  position: relative;
  border-top: 3px solid var(--yellow-400);
  border-bottom: 3px solid var(--yellow-400);
}
.page-header-banner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 700px) {
  .page-header-banner { aspect-ratio: 16/9; }
}

/* ─── SERVIZI PAGE — detailed cards ─── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 100px;
  align-items: center;
}
.service-detail:nth-child(even) .service-detail-visual { order: -1; }
.service-detail-num {
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--steel-400);
  margin-bottom: 20px;
}
.service-detail h3 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 20px; }
.service-detail p { font-size: 17px; margin-bottom: 24px; }
.service-detail ul {
  list-style: none;
  padding: 0;
}
.service-detail ul li {
  padding: 12px 0;
  border-top: 1px solid var(--steel-200);
  font-size: 15px;
  color: var(--steel-700);
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-detail ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--steel-900);
  border-radius: 50%;
  flex-shrink: 0;
}
.service-detail ul li:last-child { border-bottom: 1px solid var(--steel-200); }
.service-detail-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--steel-100);
}
.service-detail-visual img, .service-detail-visual video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ─── CHI SIAMO story ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.story-text > * + * { margin-top: 20px; }
.story-text p { font-size: 17px; }
.story-text h3 { margin-top: 36px !important; }
.story-visual {
  position: sticky;
  top: 130px;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.story-visual img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 60px;
}
.value-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
}
.value-card .value-num {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--steel-400);
  letter-spacing: 3px;
  margin-bottom: 20px;
}
.value-card h4 {
  font-size: 20px;
  color: var(--steel-900);
  margin-bottom: 12px;
}
.value-card p { font-size: 15px; color: var(--steel-600); }

/* ─── GALLERIA (mosaico) ─── */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  grid-auto-rows: 240px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--steel-100);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.05); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .caption {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}
.gallery-item:hover .caption { opacity: 1; transform: translateY(0); }

/* mosaico specifiche desktop */
.gallery-item.span-6 { grid-column: span 6; }
.gallery-item.span-5 { grid-column: span 5; }
.gallery-item.span-4 { grid-column: span 4; }
.gallery-item.span-3 { grid-column: span 3; }
.gallery-item.span-7 { grid-column: span 7; }
.gallery-item.row-2 { grid-row: span 2; }

/* ─── CONTATTI ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info-block h3 { margin-bottom: 32px; font-size: 26px; }
.contact-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--steel-200);
}
.contact-item:last-child { border-bottom: 1px solid var(--steel-200); }
.contact-item-icon {
  width: 44px; height: 44px;
  background: var(--steel-100);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-label {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--steel-500);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 15px;
  color: var(--steel-900);
  font-weight: 500;
  line-height: 1.5;
}
.contact-item-value a { border-bottom: 1px solid transparent; transition: border 0.2s; }
.contact-item-value a:hover { border-color: var(--steel-900); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--steel-600);
  margin-bottom: 10px;
  font-weight: 600;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--steel-900);
  background: var(--steel-50);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--steel-900);
  background: var(--white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--steel-600);
  cursor: pointer;
  margin: 24px 0;
}
.form-checkbox input { margin-top: 3px; accent-color: var(--steel-900); }
.form-checkbox a { color: var(--steel-900); text-decoration: underline; }

.map-wrap {
  margin-top: 60px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--steel-200);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.form-success-banner {
  position: fixed;
  top: 100px; left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--steel-900);
  color: var(--white);
  padding: 16px 28px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 2000;
  transition: transform 0.4s ease;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.form-success-banner.visible { transform: translateX(-50%) translateY(0); }
.form-success-banner strong { color: var(--white); }

/* ─── WHATSAPP FLOAT ─── */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.25s ease;
}
.whatsapp-float:hover { transform: scale(1.08) rotate(-8deg); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ─── REVEAL animations (entry on scroll) ─── */
.fade-in {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.fade-left.visible { opacity: 1; transform: translateX(0); }

.fade-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.fade-right.visible { opacity: 1; transform: translateX(0); }

.zoom-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(.22,.61,.36,1), transform 0.9s cubic-bezier(.22,.61,.36,1);
}
.zoom-in.visible { opacity: 1; transform: scale(1); }

/* delays scaglionati automatici sulle griglie */
.services-grid .fade-in:nth-child(1) { transition-delay: 0.05s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.15s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.25s; }
.services-grid .fade-in:nth-child(4) { transition-delay: 0.35s; }
.services-grid .fade-in:nth-child(5) { transition-delay: 0.45s; }


/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-strip, .story-grid, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 40px; }
  .service-detail:nth-child(even) .service-detail-visual { order: 0; }
  .story-visual { position: static; aspect-ratio: 16/10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: left; }
  .gallery-item.span-6, .gallery-item.span-5, .gallery-item.span-4, .gallery-item.span-3, .gallery-item.span-7 { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: calc(var(--nav-h) + var(--promo-h));
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--steel-200);
    max-height: calc(100vh - var(--nav-h) - var(--promo-h));
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 14px 12px; border-radius: var(--radius-sm); }
  .nav-menu a.active::after { display: none; }
  .nav-cta { margin: 8px 0 0 !important; text-align: center; }
  .burger { display: flex; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-item.span-6, .gallery-item.span-5, .gallery-item.span-4, .gallery-item.span-3, .gallery-item.span-7 { grid-column: span 12; }
  .contact-form { padding: 32px 24px; }
  h1 br { display: none; }
}
