/* ============================================
   MAGNANI ASSEMBLAGGI — STYLE (TEMA CHIARO)
   Brand: Gold #C9A227 / Cream / Black accent
   ============================================ */

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #FFFFFF;
  color: #1A1A1A;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ─── DESIGN TOKENS ─── */
:root {
  /* Brand */
  --gold: #C9A227;
  --gold-light: #E8B800;
  --gold-soft: #D4B547;
  --gold-pale: #F5E9C0;
  --gold-mist: #FAF3DC;
  /* Neutri scuri (solo accent / testi) */
  --black: #0F0F0F;
  --dark: #1C1C1C;
  --mid: #2D2D2D;
  --gray: #6B6B6B;
  --gray-light: #AEAEAE;
  /* Sfondi: bianco dominante + tocchi caldi della palette */
  --cream: #FFFFFF;
  --cream-warm: #FAF7EC;
  --cream-deep: #F5EFD8;
  --bg-light: #FAFAFA;
  --bg-soft: #F8F4E6;
  --border: #ECE7D8;
  --border-soft: #F2EFE5;
  --white: #FFFFFF;
  /* Misure */
  --radius: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --shadow-sm: 0 2px 8px rgba(28, 28, 28, 0.04);
  --shadow-md: 0 8px 32px rgba(28, 28, 28, 0.06);
  --shadow-lg: 0 20px 60px rgba(28, 28, 28, 0.08);
  --container: 1200px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(42px, 5.5vw, 76px); font-weight: 900; letter-spacing: -0.5px; }
h2 { font-size: clamp(32px, 4vw, 48px); }
h3 { font-size: clamp(22px, 2.5vw, 28px); }
h4 { font-size: 20px; }
p { color: var(--gray); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
/* Hero eyebrow: niente linea iniziale, parte dal bordo */
.hero .eyebrow::before { display: none; }
.hero .eyebrow { gap: 0; }

/* ─── LAYOUT ─── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 100px 0; background: var(--white); }
.section-sm { padding: 60px 0; }
.section-light { background: var(--bg-light); }
.section-warm { background: var(--cream-warm); }
.section-white { background: var(--white); }
/* Variante "accent" — sfondo dorato caldo con dettagli oro */
.section-accent {
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
  position: relative;
}
.section-accent::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: 50%;
  top: 50%; right: -250px;
  transform: translateY(-50%);
  pointer-events: none;
}
.section-accent .container { position: relative; z-index: 1; }

.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 17px; margin-top: 16px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.3px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3); }
.btn-secondary { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-arrow::after { content: '→'; font-size: 16px; transition: transform 0.25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ─── NAVBAR ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250, 250, 246, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
  padding: 0 56px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  transition: height 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { height: 60px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); }
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { width: 42px; height: 42px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--black); letter-spacing: 2px; text-transform: uppercase; }
.nav-logo-sub { font-size: 9px; color: var(--gray); letter-spacing: 2.5px; text-transform: uppercase; margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-menu a { font-size: 13px; font-weight: 500; color: var(--gray); letter-spacing: 0.3px; transition: color 0.2s; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--black); }
.nav-menu a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--gold);
}
.nav-cta { background: var(--gold); color: var(--black); padding: 10px 22px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; transition: all 0.2s; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--black) !important; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: transparent; }
.burger span { width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO (navy + gold cinematico, coerente con brochure) ─── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background: #0F1830;
}
.hero .container {
  max-width: 100%;
  padding: 0 32px;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 1;
  /* Video più chiaro: desaturazione minima per coerenza navy */
  filter: saturate(0.85) contrast(1) brightness(1);
  animation: heroZoom 24s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes heroZoom {
  0%   { transform: scale(1.02); }
  100% { transform: scale(1.12); }
}
/* Overlay direzionale: forte sul testo (sx), aperto totalmente sul video (dx) */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg,
      rgba(10, 18, 36, 0.88) 0%,
      rgba(10, 18, 36, 0.7) 30%,
      rgba(10, 18, 36, 0.4) 55%,
      rgba(10, 18, 36, 0.15) 80%,
      rgba(10, 18, 36, 0) 100%),
    linear-gradient(180deg,
      rgba(10, 18, 36, 0.3) 0%,
      transparent 25%,
      transparent 75%,
      rgba(10, 18, 36, 0.4) 100%);
  z-index: 1;
}
/* (rimosso il velo dorato a destra: dava un alone biancastro al primo caricamento) */
.hero-arc {
  position: absolute; right: -200px; top: 50%;
  width: 700px; height: 700px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translateY(-50%) rotate(0deg);
  animation: arcRotate 60s linear infinite;
}
.hero-arc.inner {
  width: 500px; height: 500px;
  right: -100px;
  border-color: rgba(201, 162, 39, 0.4);
  animation: arcRotate 40s linear infinite reverse;
  border-style: dashed;
  border-dasharray: 8 12;
}
@keyframes arcRotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
/* Terzo arco minimal animato */
.hero-arc.dot {
  width: 320px; height: 320px;
  right: -40px;
  border: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.6) 0%, transparent 4%),
    radial-gradient(circle at 100% 50%, rgba(201, 162, 39, 0.6) 0%, transparent 4%),
    radial-gradient(circle at 50% 100%, rgba(201, 162, 39, 0.6) 0%, transparent 4%),
    radial-gradient(circle at 0% 50%, rgba(201, 162, 39, 0.6) 0%, transparent 4%);
  animation: arcRotate 25s linear infinite;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 4px 32px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.4); }
.hero h1 em { font-style: normal; color: var(--gold-light); text-shadow: 0 4px 28px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4); }
.hero-tagline { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4); }
.hero-desc { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
  line-height: 1.3;
}
.hero-desc { font-size: 18px; font-weight: 300; color: rgba(255, 255, 255, 0.85); line-height: 1.7; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* Social icons in hero */
.hero-social {
  display: flex; gap: 12px;
  margin-top: 36px;
  align-items: center;
  justify-content: center;
}
.hero-social-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-right: 8px;
  font-weight: 500;
}
.hero-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-social a:hover {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.15) saturate(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero-social a svg { width: 18px; height: 18px; fill: currentColor; position: relative; z-index: 1; }

/* Colori naturali brand */
.hero-social a[aria-label="Instagram"],
.footer-social a[aria-label="Instagram"] {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
}
.hero-social a[aria-label="Facebook"],
.footer-social a[aria-label="Facebook"] {
  background: #1877F2;
  color: var(--white);
}
.hero-social a[aria-label="LinkedIn"],
.footer-social a[aria-label="LinkedIn"] {
  background: #0A66C2;
  color: var(--white);
}
.hero-social a[aria-label="TikTok"],
.footer-social a[aria-label="TikTok"] {
  background: #000000;
  color: var(--white);
}

.hero-stats {
  position: relative; z-index: 2;
  margin-top: 80px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  max-width: 900px;
}
/* Default stats: leggibili su sfondo chiaro */
.stat-num { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 900; color: var(--black); line-height: 1; margin-bottom: 8px; }
.stat-num span { color: var(--gold); }
.stat-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); font-weight: 600; }

/* Override: stats DENTRO l'hero (sfondo scuro) */
.hero .hero-stats { border-top-color: rgba(255, 255, 255, 0.15); }
.hero .stat-num { color: var(--gold-light); }
.hero .stat-num span { color: var(--gold-light); }
.hero .stat-label { color: rgba(255, 255, 255, 0.6); font-weight: 500; }

/* Hero btn-secondary su sfondo scuro */
.hero .btn-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.hero .btn-secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ─── PAGE HEADER (bianco con tocchi caldi) ─── */
.page-header {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
  color: var(--black);
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.page-header::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  top: 50%; right: -250px;
  transform: translateY(-50%);
}
.page-header::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: 50%;
  top: 50%; right: -150px;
  transform: translateY(-50%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--black); font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; }
.page-header p { color: var(--mid); font-size: 18px; max-width: 640px; }
.breadcrumb { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.breadcrumb a { color: var(--gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 10px; color: var(--gray-light); }

/* ─── SERVICES ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--gold);
  transition: width 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px; font-weight: 900;
  color: var(--gold); opacity: 0.4;
  line-height: 1; margin-bottom: 20px;
}
.service-card h3 { font-size: 22px; margin-bottom: 12px; font-family: 'Inter', sans-serif; font-weight: 700; }
.service-card p { font-size: 14px; line-height: 1.7; }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 13px; font-weight: 600; color: var(--black);
  letter-spacing: 0.3px;
  transition: gap 0.2s;
}
.service-link::after { content: '→'; transition: transform 0.2s; }
.service-link:hover { color: var(--gold); }
.service-link:hover::after { transform: translateX(4px); }

/* ─── FEATURES ─── */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.features-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
}
.features-img img { width: 100%; height: 100%; object-fit: cover; }
.features-img::after {
  content: ''; position: absolute;
  bottom: -40px; right: -40px;
  width: 240px; height: 240px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
}
.feature-list { list-style: none; }
.feature-item {
  display: flex; gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold-mist);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  border: 1px solid var(--gold-pale);
}
.feature-content h4 { margin-bottom: 6px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; }
.feature-content p { font-size: 14px; line-height: 1.7; }

/* ─── PROCESS ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-step {
  position: relative;
  padding-top: 24px;
}
.process-step::before {
  content: '';
  position: absolute; top: 24px; left: 60px; right: -16px;
  height: 1px; background: rgba(201, 162, 39, 0.4);
}
.process-step:last-child::before { display: none; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  position: relative; z-index: 1;
  border: 4px solid var(--cream);
}
.section-light .step-num { border-color: var(--bg-light); }
.section-warm .step-num { border-color: var(--cream-warm); }
.process-step h4 { margin-bottom: 8px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; }
.process-step p { font-size: 13px; line-height: 1.6; }

/* ─── SECTORS (chiaro) ─── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.sector-tag {
  padding: 24px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px; font-weight: 500;
  color: var(--black);
  transition: all 0.25s var(--ease);
}
.sector-tag:hover {
  background: var(--gold-mist);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ─── CTA BANNER (chiaro) ─── */
.cta-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--black);
}
.cta-banner::before {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  top: 50%; left: -150px;
  transform: translateY(-50%);
}
.cta-banner::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 50%;
  top: 50%; right: -150px;
  transform: translateY(-50%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--black); margin-bottom: 16px; }
.cta-banner p { color: var(--gray); font-size: 17px; margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-promise {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

/* ─── CONTACT ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.contact-info-block { padding: 40px; background: var(--cream-warm); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.contact-info-block h3 { margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.contact-item-icon {
  flex-shrink: 0; width: 40px; height: 40px;
  background: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 18px;
  border: 1px solid var(--border);
}
.contact-item-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.contact-item-value { font-weight: 600; color: var(--black); font-size: 15px; }
.contact-item a:hover { color: var(--gold); }

.contact-form { padding: 40px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); font-weight: 600; margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit; font-size: 15px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--gray); line-height: 1.5; margin-bottom: 24px; }
.form-checkbox input { margin-top: 3px; accent-color: var(--gold); }
.form-checkbox a { color: var(--black); text-decoration: underline; }

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

/* ─── BRAND QUOTE (promessa) ─── */
.brand-quote {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--cream-warm);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark);
  position: relative;
}
.brand-quote .quote-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ─── ABOUT ─── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
}
.about-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { margin-bottom: 18px; font-size: 16px; line-height: 1.8; color: var(--gray); }
.about-text p:first-of-type { font-size: 18px; color: var(--dark); font-weight: 500; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.value-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s var(--ease);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-icon { font-size: 32px; margin-bottom: 16px; display: block; }
.value-card h4 { margin-bottom: 10px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; }
.value-card p { font-size: 14px; line-height: 1.7; }

/* ─── SERVICE DETAIL ─── */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg-light);
}
.service-detail-img img, .service-detail-img video { width: 100%; height: 100%; object-fit: cover; }
.service-detail-num {
  font-family: 'Playfair Display', serif;
  font-size: 14px; letter-spacing: 4px;
  color: var(--gold); font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.service-detail h2 { margin-bottom: 20px; }
.service-detail p { font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.service-detail ul { list-style: none; }
.service-detail li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px; color: var(--dark);
}
.service-detail li::before {
  content: '✓';
  position: absolute; left: 0;
  width: 20px; height: 20px;
  background: var(--gold);
  color: var(--black);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  top: 2px;
}

/* ─── FOOTER (bianco caldo) ─── */
.footer {
  background: var(--bg-light);
  color: var(--gray);
  padding: 80px 0 32px;
  border-top: 2px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand img { width: 56px; margin-bottom: 20px; }
.footer-brand .nav-logo-name { color: var(--black); font-size: 22px; margin-bottom: 4px; display: block; }
.footer-brand .nav-logo-sub { color: var(--gray); font-size: 11px; margin-bottom: 20px; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; color: var(--gray); }
.footer-col h4 {
  color: var(--black); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: 'Inter', sans-serif; font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: var(--gray); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--gray);
}
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.footer-social a:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }

/* ─── GALLERIA ─── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}
.gallery-filter {
  padding: 10px 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.gallery-filter:hover { border-color: var(--gold); color: var(--gold); }
.gallery-filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item.tall { aspect-ratio: 3 / 4; grid-row: span 1; }
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 24px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  color: var(--white);
  pointer-events: none;
}
.gallery-caption-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-caption-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.gallery-item .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--black);
  font-size: 18px;
  z-index: 2;
  opacity: 0.85;
  transition: all 0.2s var(--ease);
  pointer-events: none;
}
.gallery-item:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

/* Sector tag come link cliccabile */
a.sector-tag { text-decoration: none; cursor: pointer; }

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   INTRO PAGE — scroll-driven animation
   ═══════════════════════════════════════════ */
.intro-body {
  background: #FAFAFA;
  color: #1A1A1A;
  overflow-x: hidden;
}

/* Header minimale */
.intro-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px 40px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.intro-header > * { pointer-events: auto; }
.intro-logo {
  display: flex; align-items: center; gap: 14px;
  color: #1A1A1A;
}
.intro-logo img { width: 52px; height: 52px; }
.intro-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; letter-spacing: 3px;
}
.intro-skip {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.7);
  padding: 10px 18px; border-radius: 24px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s var(--ease);
}
.intro-skip:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Progress bar */
.intro-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 60;
}
.intro-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  width: calc(var(--scroll-progress, 0) * 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.6);
}

/* Stage: 600vh per dare tempo allo scroll */
.intro-stage {
  position: relative;
  height: 600vh;
}
.intro-sticky {
  position: sticky; top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(245, 240, 230, 0.6) 0%, #FAFAFA 60%),
    #FAFAFA;
  transition: background 0.8s var(--ease);
}
/* Sfondo si scalda leggermente durante assemblaggio e confezionamento */
[data-scene="2"].intro-sticky {
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.04) 0%, transparent 60%),
    #FAFAFA;
}
[data-scene="3"].intro-sticky {
  background:
    radial-gradient(ellipse at top right, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(201, 162, 39, 0.06) 0%, transparent 50%),
    #F8F6F0;
}
[data-scene="4"].intro-sticky {
  background:
    radial-gradient(ellipse at right, rgba(201, 162, 39, 0.1) 0%, transparent 50%),
    #FAFAFA;
}

/* Cerchi decorativi di sfondo */
.intro-bg-arc {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.25);
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.intro-bg-arc.arc-1 {
  width: 700px; height: 700px;
  right: -200px; top: 50%;
  transform: translateY(-50%) rotate(calc(var(--scroll-progress, 0) * 360deg));
}
.intro-bg-arc.arc-2 {
  width: 500px; height: 500px;
  right: -80px; top: 50%;
  border-style: dashed;
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-50%) rotate(calc(var(--scroll-progress, 0) * -360deg));
}
.intro-bg-arc.arc-3 {
  width: 280px; height: 280px;
  right: 60px; top: 50%;
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-50%) scale(calc(0.8 + var(--scroll-progress, 0) * 0.4));
}

/* Narrazione testuale (a sinistra) */
.intro-narration {
  position: relative;
  z-index: 10;
  padding: 0 80px 0 80px;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.intro-narration-step {
  position: absolute;
  top: 50%; left: 80px; right: 60px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.intro-narration-step.active {
  opacity: 1;
  pointer-events: auto;
}
.intro-narration-step:not(.active) {
  transform: translateY(calc(-50% + 20px));
}
.intro-narration-step .intro-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 24px;
  padding-left: 36px;
  position: relative;
}
.intro-narration-step .intro-eyebrow::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 24px; height: 1px;
  background: var(--gold);
}
.intro-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 96px; font-weight: 900;
  color: rgba(201, 162, 39, 0.15);
  line-height: 1;
  margin-bottom: -20px;
}
.intro-narration h1, .intro-narration h2 {
  font-family: 'Playfair Display', serif;
  color: #0F0F0F;
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.intro-narration h1 em, .intro-narration h2 em {
  font-style: normal;
  color: var(--gold);
  display: inline-block;
}
.intro-narration p {
  font-size: 17px;
  color: #6B6B6B;
  line-height: 1.7;
  max-width: 460px;
  font-weight: 400;
}
.intro-scroll-hint {
  margin-top: 32px;
  display: flex; align-items: center; gap: 16px;
  animation: scrollHintFloat 2s ease-in-out infinite;
}
.intro-scroll-hint span {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}
.intro-scroll-hint small {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
@keyframes scrollHintFloat {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}
.intro-final-cta {
  margin-top: 36px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.intro-final-cta .btn-secondary {
  color: #1A1A1A;
  border-color: rgba(0, 0, 0, 0.2);
}
.intro-final-cta .btn-secondary:hover {
  background: #1A1A1A;
  color: #FFFFFF;
  border-color: #1A1A1A;
}

/* Scena visiva (a destra) */
.intro-scene {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  color: #1A1A1A;
  overflow: hidden;
}

/* Product: 3 pezzi che si assemblano */
.intro-product {
  position: relative;
  width: 260px; height: 320px;
  display: flex; flex-direction: column; align-items: center;
}
.intro-part {
  position: absolute;
  width: 100px; height: 100px;
  left: 50%;
  transform-origin: center center;
  transition:
    transform 0.8s cubic-bezier(.25, .46, .45, .94),
    opacity 0.6s var(--ease),
    filter 0.6s var(--ease);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.12));
}

/* Stato di default: nascosti in alto, opacity 0 */
.intro-part {
  opacity: 0;
  transform: translate(-50%, -160%) rotate(-12deg);
}

/* SCENE STATES (data-scene su intro-sticky) */

/* Scene 0: introduzione — pezzi piccoli volanti */
[data-scene="0"] .intro-part.part-top {
  opacity: 0.5;
  transform: translate(calc(-50% - 70px), -90px) rotate(-12deg) scale(0.5);
}
[data-scene="0"] .intro-part.part-mid {
  opacity: 0.5;
  transform: translate(calc(-50% + 60px), -30px) rotate(15deg) scale(0.5);
}
[data-scene="0"] .intro-part.part-bottom {
  opacity: 0.5;
  transform: translate(calc(-50% - 20px), 70px) rotate(-6deg) scale(0.5);
}

/* Scene 1: componenti separati in fila verticale */
[data-scene="1"] .intro-part.part-top {
  opacity: 1;
  transform: translate(-50%, -140px) rotate(0deg) scale(0.85);
}
[data-scene="1"] .intro-part.part-mid {
  opacity: 1;
  transform: translate(-50%, -30px) rotate(0deg) scale(0.85);
}
[data-scene="1"] .intro-part.part-bottom {
  opacity: 1;
  transform: translate(-50%, 80px) rotate(0deg) scale(0.85);
}

/* Scene 2: assemblaggio — convergono e si incastrano */
[data-scene="2"] .intro-part.part-top {
  opacity: 1;
  transform: translate(-50%, -55px) rotate(0deg) scale(0.95);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  animation: assembleGlow 1.8s ease-in-out infinite alternate;
}
[data-scene="2"] .intro-part.part-mid {
  opacity: 1;
  transform: translate(-50%, 0) rotate(0deg) scale(0.95);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  animation: assembleGlow 1.8s ease-in-out 0.3s infinite alternate;
}
[data-scene="2"] .intro-part.part-bottom {
  opacity: 1;
  transform: translate(-50%, 55px) rotate(0deg) scale(0.95);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
  animation: assembleGlow 1.8s ease-in-out 0.6s infinite alternate;
}
@keyframes assembleGlow {
  0%   { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)); }
  100% { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)) drop-shadow(0 0 12px rgba(201, 162, 39, 0.3)); }
}

/* Scene 3: confezionamento — i pezzi spariscono dentro la scatola (vedi regole sotto) */

/* Scene 4 e 5: pezzi restano nascosti (sono dentro la scatola) */
[data-scene="4"] .intro-part,
[data-scene="5"] .intro-part { opacity: 0; }

/* Tags componenti (visibili solo in scena 1) */
.intro-tags {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 320px;
  pointer-events: none;
}
.intro-tag {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  opacity: 0;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
  transform: translateX(8px);
}
.intro-tag::before {
  content: '';
  width: 24px; height: 1px;
}
.intro-tag span {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
}
/* Tappo — oro chiaro */
.intro-tag.tag-top {
  top: 0;
  left: calc(50% + 75px);
}
.intro-tag.tag-top::before { background: #D4B13A; }
.intro-tag.tag-top span {
  color: #8B6914;
  background: rgba(212, 177, 58, 0.15);
  border: 1px solid rgba(212, 177, 58, 0.3);
}
/* Corpo — scuro */
.intro-tag.tag-mid {
  top: 50%; transform: translateY(-50%) translateX(8px);
  left: calc(50% + 75px);
}
.intro-tag.tag-mid::before { background: #555; }
.intro-tag.tag-mid span {
  color: #333;
  background: rgba(45, 45, 45, 0.08);
  border: 1px solid rgba(45, 45, 45, 0.2);
}
/* Base — bronzo */
.intro-tag.tag-bottom {
  bottom: 0;
  left: calc(50% + 75px);
}
.intro-tag.tag-bottom::before { background: #A88515; }
.intro-tag.tag-bottom span {
  color: #7A5F0E;
  background: rgba(168, 133, 21, 0.12);
  border: 1px solid rgba(168, 133, 21, 0.25);
}

[data-scene="1"] .intro-tag {
  opacity: 1;
  transform: translateX(0);
}
[data-scene="1"] .intro-tag.tag-mid {
  transform: translateY(-50%) translateX(0);
}

/* Scintille di assemblaggio (scena 2) */
.intro-sparks {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.intro-sparks span {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.4);
  opacity: 0;
  animation: sparkFly 1.6s ease-out infinite;
}
.intro-sparks span:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; --spark-x: 80px; --spark-y: -60px; }
.intro-sparks span:nth-child(2) { top: 50%; left: 50%; animation-delay: 0.2s; --spark-x: -70px; --spark-y: -70px; }
.intro-sparks span:nth-child(3) { top: 50%; left: 50%; animation-delay: 0.4s; --spark-x: 90px; --spark-y: 40px; }
.intro-sparks span:nth-child(4) { top: 50%; left: 50%; animation-delay: 0.6s; --spark-x: -90px; --spark-y: 30px; }
.intro-sparks span:nth-child(5) { top: 50%; left: 50%; animation-delay: 0.1s; --spark-x: 60px; --spark-y: 80px; }
.intro-sparks span:nth-child(6) { top: 50%; left: 50%; animation-delay: 0.5s; --spark-x: -60px; --spark-y: 80px; }
.intro-sparks span:nth-child(7) { top: 50%; left: 50%; animation-delay: 0.3s; --spark-x: 0px; --spark-y: -100px; }
.intro-sparks span:nth-child(8) { top: 50%; left: 50%; animation-delay: 0.7s; --spark-x: 0px; --spark-y: 100px; }

@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--spark-x), var(--spark-y)) scale(0); opacity: 0; }
}
[data-scene="2"] .intro-sparks { opacity: 1; }

/* Scatola di confezionamento */
.intro-box {
  position: absolute;
  top: 50%; left: 50%;
  width: 280px; height: 280px;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.7s cubic-bezier(.34, 1.4, .64, 1);
}
.intro-box .box-side {
  fill: #C9A227 !important;
  stroke: #A88515 !important;
  stroke-width: 1.5 !important;
}
.intro-box .box-side.box-top {
  fill: #E0C85A !important;
}
.intro-box .box-side.box-left {
  fill: #C9A227 !important;
}
.intro-box .box-side.box-right {
  fill: #D4B13A !important;
}
.intro-box .box-label {
  opacity: 0;
  transform: translateY(6px);
  transform-origin: center;
  transition: opacity 0.4s ease 0.7s, transform 0.4s ease 0.7s;
}
[data-scene="3"] .intro-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
/* Nastro trasportatore */
.intro-belt {
  position: absolute;
  bottom: 18%; left: 0; right: 0;
  height: 32px;
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.intro-belt-line {
  height: 1.5px;
  background: repeating-linear-gradient(90deg,
    rgba(201, 162, 39, 0.35) 0 14px,
    transparent 14px 28px);
  animation: beltMove 1.5s linear infinite;
}
.intro-belt-line:nth-child(2) { animation-duration: 1.8s; opacity: 0.5; }
.intro-belt-line:nth-child(3) { animation-duration: 2.1s; opacity: 0.3; }
@keyframes beltMove {
  from { background-position: 0 0; }
  to { background-position: 28px 0; }
}
[data-scene="3"] .intro-belt { opacity: 0.3; }
[data-scene="4"] .intro-belt { opacity: 0.8; }

/* Camion */
.intro-truck {
  position: absolute;
  bottom: 22%; left: -200px;
  width: 200px;
  color: var(--gold);
  opacity: 0;
  transition: transform 1.8s cubic-bezier(.25, .46, .45, .94), opacity 0.6s var(--ease);
}
[data-scene="4"] .intro-truck {
  opacity: 0.85;
  transform: translateX(calc(50vw + 200px));
}

/* Linee di velocità */
.intro-speed-lines {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
  width: 100%; height: 180px;
  display: flex; flex-direction: column; justify-content: space-around;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.intro-speed-lines span {
  display: block;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 162, 39, 0.5) 50%, transparent 100%);
  border-radius: 2px;
}
.intro-speed-lines span:nth-child(1) { width: 60%; margin-left: 20%; }
.intro-speed-lines span:nth-child(2) { width: 80%; margin-left: 10%; }
.intro-speed-lines span:nth-child(3) { width: 50%; margin-left: 30%; }
.intro-speed-lines span:nth-child(4) { width: 70%; margin-left: 15%; }
.intro-speed-lines span:nth-child(5) { width: 40%; margin-left: 40%; }
[data-scene="4"] .intro-speed-lines {
  opacity: 0.5;
  animation: speedPulse 1.2s ease-in-out infinite alternate;
}
@keyframes speedPulse {
  from { transform: translateY(-50%) translateX(-8px); }
  to { transform: translateY(-50%) translateX(8px); }
}

/* Scene labels — nascosti (la narrazione a sinistra spiega già ogni fase) */
.intro-scene-label { display: none; }

/* ─── Freccia di flusso (collega le fasi 1→2→3) ─── */
.intro-flow-arrow {
  position: absolute;
  top: 50%;
  left: calc(50% + 90px);
  width: 24px;
  height: 80px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.intro-flow-arrow svg {
  width: 100%;
  height: 100%;
}
[data-scene="1"] .intro-flow-arrow {
  opacity: 0.6;
  transform: translateY(-50%);
}
[data-scene="2"] .intro-flow-arrow {
  opacity: 0.8;
  transform: translateY(-50%);
  animation: arrowPulse 1.5s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ─── Scena 3: scatola si apre → pezzi entrano → scatola si chiude ─── */

/* Coperchio si alza e poi si richiude */
[data-scene="3"] .intro-box .box-side.box-top {
  animation: lidOpenClose 1.8s ease-in-out forwards;
}
@keyframes lidOpenClose {
  0%   { transform: translateY(0); }
  18%  { transform: translateY(-28px); }       /* coperchio aperto */
  60%  { transform: translateY(-28px); }       /* resta aperto mentre entrano i pezzi */
  82%  { transform: translateY(0); }           /* si richiude */
  100% { transform: translateY(0); }
}

/* Etichetta appare solo dopo che il coperchio si chiude */
[data-scene="3"] .intro-box .box-label {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: opacity 0.3s ease 1.5s, transform 0.3s ease 1.5s;
}

/* I pezzi entrano nella scatola (con ritardo per aspettare l'apertura) */
[data-scene="3"] .intro-part.part-top {
  opacity: 0;
  transform: translate(-50%, 20px) rotate(0deg) scale(0.2);
  transition-delay: 0.6s;
}
[data-scene="3"] .intro-part.part-mid {
  opacity: 0;
  transform: translate(-50%, 20px) rotate(0deg) scale(0.2);
  transition-delay: 0.8s;
}
[data-scene="3"] .intro-part.part-bottom {
  opacity: 0;
  transform: translate(-50%, 20px) rotate(0deg) scale(0.2);
  transition-delay: 1s;
}

/* Scatola scena 4: prodotto dentro, scatola scivola via e sparisce */
[data-scene="4"] .intro-box {
  opacity: 0;
  transform: translate(calc(-50% + 300px), calc(-50% + 60px)) scale(0.45);
  transition: transform 1.6s cubic-bezier(.25, .46, .45, .94), opacity 1.2s var(--ease) 0.3s;
}

@media (max-width: 900px) {
  .intro-flow-arrow { display: none; }
}

/* Footer minimal */
.intro-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 40;
  padding: 18px 40px;
  text-align: center;
  pointer-events: none;
}
.intro-footer small {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(0, 0, 0, 0.35);
}
.intro-footer a {
  color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.intro-footer a:hover { color: var(--gold); border-color: var(--gold); }

/* Auto-entrata al sito a fine scroll */
.intro-body {
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.intro-body.intro-near-end .intro-final-cta::after {
  content: 'Sto entrando nel sito...';
  display: block;
  margin-top: 18px;
  width: 100%;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  animation: introEnterPulse 1.6s ease-out forwards;
}
@keyframes introEnterPulse {
  from { opacity: 0; transform: translateY(8px); letter-spacing: 1px; }
  50%  { opacity: 1; }
  to   { opacity: 1; transform: translateY(0); letter-spacing: 4px; }
}
.intro-body.intro-leaving {
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}

/* Mobile */
@media (max-width: 900px) {
  .intro-header { padding: 16px 20px; }
  .intro-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 50% 50%;
  }
  .intro-narration { padding: 0 24px; height: 50vh; }
  .intro-narration-step { left: 24px; right: 24px; }
  .intro-narration h1, .intro-narration h2 { font-size: clamp(28px, 7vw, 42px); }
  .intro-narration p { font-size: 14px; }
  .intro-step-num { font-size: 60px; }
  .intro-scene { height: 50vh; transform: scale(0.7); }
  .intro-product { width: 220px; height: 280px; }
  .intro-part { width: 80px; height: 80px; }
  .intro-tags { display: none; }
  .intro-bg-arc.arc-1 { width: 400px; height: 400px; right: -150px; }
  .intro-bg-arc.arc-2 { width: 280px; height: 280px; }
  .intro-bg-arc.arc-3 { width: 160px; height: 160px; right: 20px; }
  .intro-footer { padding: 10px 20px; }
  .intro-scroll-hint span { width: 16px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-bg-arc, .intro-part, .intro-box .box-side, .intro-box .box-label,
  .intro-belt-line, .intro-speed-lines, .intro-truck, .intro-scroll-hint,
  .intro-sparks span, .intro-scene-label, .intro-flow-arrow { animation: none !important; transition: none !important; }
}

/* ─── LEGAL PAGES (Privacy / Cookie) ─── */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--mid);
  font-size: 16px;
  line-height: 1.8;
}
.legal-content h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
  letter-spacing: 0.3px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-content p { margin-bottom: 16px; color: var(--mid); }
.legal-content ul { margin: 0 0 20px 0; padding-left: 0; list-style: none; }
.legal-content li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--mid);
}
.legal-content li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--gold);
}
.legal-content a { color: var(--gold); border-bottom: 1px solid rgba(201, 162, 39, 0.3); transition: border-color 0.2s; }
.legal-content a:hover { border-bottom-color: var(--gold); }
.legal-content strong { color: var(--black); font-weight: 600; }
.legal-meta {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
  margin-bottom: 40px;
  padding: 10px 16px;
  background: var(--cream-warm);
  border-left: 3px solid var(--gold);
  display: inline-block;
}

.cookie-table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}
.cookie-table thead { background: var(--cream-warm); }
.cookie-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.cookie-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--mid);
  vertical-align: top;
}
.cookie-table tbody tr:last-child td { border-bottom: none; }
.cookie-table a { color: var(--gold); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 24px; right: 24px;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 20px 60px rgba(15, 24, 48, 0.18);
  z-index: 200;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--black);
  margin-bottom: 8px;
}
.cookie-banner-text { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 18px; }
.cookie-banner-text a { color: var(--gold); border-bottom: 1px solid rgba(201, 162, 39, 0.3); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { padding: 10px 18px; font-size: 13px; }
.cookie-btn-reject {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--border);
}
.cookie-btn-reject:hover { color: var(--black); border-color: var(--black); }

@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; padding: 18px 20px; bottom: 12px; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; }
}

/* ─── MAP PLACEHOLDER (pre-consenso cookie) ─── */
.map-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream-warm) 0%, var(--cream-deep) 100%);
  text-align: center;
  padding: 32px;
  gap: 14px;
}
.map-placeholder svg { width: 48px; height: 48px; color: var(--gold); }
.map-placeholder p { font-size: 14px; color: var(--mid); max-width: 380px; line-height: 1.6; margin: 0; }
.map-placeholder .btn { margin-top: 6px; }

/* ─── WHATSAPP FLOATING BUTTON ─── */
.whatsapp-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }
.whatsapp-fab::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: whatsappPulse 2s ease-in-out infinite;
}
@keyframes whatsappPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 0; }
}
@media (max-width: 600px) {
  .whatsapp-fab { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* Icone contatti (SVG) */
.contact-item-icon svg { width: 18px; height: 18px; color: var(--gold); }

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .hero { padding: 120px 0 60px; }
  .hero .container { padding: 0 32px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .features, .about-intro, .contact-grid, .service-detail { grid-template-columns: 1fr; gap: 48px; }
  .features-img, .about-intro-img { max-width: 480px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 70px 0; }
  .nav { padding: 0 24px; height: 64px; }
  .hero .container { padding: 0 24px; }
  .hero-content { max-width: 100%; }
  .nav-menu, .nav-cta { display: none; }
  .nav-menu.open {
    display: flex;
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 24px;
  }
  .nav-menu.open li { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-menu.open li:last-child { border-bottom: none; padding-top: 20px; }
  .nav-menu.open .nav-cta { display: inline-flex; }
  .burger { display: flex; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 60px; }
  .stat-num { font-size: 32px; }
  .page-header { padding: 140px 0 70px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-banner { padding: 48px 24px; }
  .contact-info-block, .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}
