/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - NIKO TRASLOCHI (LUXURY EDITION)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Charcoal & White/Gold Accents */
  --color-primary: #1C1E22;          /* Dark Slate Navy / Antracite */
  --color-primary-rgb: 28, 30, 34;
  --color-secondary: #e3b404;        /* Warm Gold/Amber Accent */
  --color-secondary-hover: #b59002;
  --hero-shrink: 0;
  
  /* Sfondo scuro: grigio antracite con chiazze di luce grigio argento tipo studio fotografico */
  --color-bg: #0A0A0C;               /* Midnight Dark Base */
  --color-bg-gradient: radial-gradient(circle at 15% 15%, rgba(143, 150, 160, 0.25) 0%, transparent 40%), radial-gradient(circle at 85% 30%, rgba(191, 195, 199, 0.35) 0%, transparent 35%), radial-gradient(circle at 25% 60%, rgba(250, 249, 246, 0.22) 0%, transparent 30%), radial-gradient(circle at 80% 75%, rgba(143, 150, 160, 0.35) 0%, transparent 45%), radial-gradient(circle at 50% 45%, rgba(143, 150, 160, 0.2) 0%, transparent 40%), #0A0A0C;
  
  /* Le card bianche */
  --color-surface: #ffffff;
  
  /* Testo principale sullo sfondo scuro: Bianco Perla */
  --color-text-main: #FAF9F6;        
  --color-text-muted: rgba(250, 249, 246, 0.65); /* Grigio chiaro per testi mutati */
  --color-border: rgba(250, 249, 246, 0.08); /* Bordo chiaro trasparente su sfondo scuro */
  
  /* Luxury Glassmorphism */
  --color-glass-bg: rgba(20, 22, 26, 0.75);
  --color-glass-border: rgba(250, 249, 246, 0.1);
  
  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Dimensions & Spacing */
  --max-width: 1200px;
  --section-gap: 120px;
  --gutter: 24px;
  --radius-card: 24px;
  --radius-pill: 999px;
  
  /* Premium Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Deep Layered Shadows */
  --shadow-soft: 0 10px 40px rgba(28, 30, 34, 0.03);
  --shadow-medium: 0 20px 50px rgba(28, 30, 34, 0.06);
  --shadow-premium: 0 40px 80px rgba(28, 30, 34, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--color-text-main);
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E") repeat,
    var(--color-bg-gradient) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.65;
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(28, 30, 34, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* Custom Text Selection */
::selection {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   ACCESSIBILITY & KEYBOARD FOCUS
   ========================================================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}
:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 3px;
}

/* ==========================================================================
   CUSTOM CURSOR (PREMIUM INTERACTIVE TOUCH)
   ========================================================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--color-secondary);
  background-color: transparent;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 99999;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-secondary);
  transition: opacity 0.3s ease;
}
.custom-cursor.hovered {
  width: 54px;
  height: 54px;
  background-color: rgba(28, 30, 34, 0.95);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-medium);
}
.custom-cursor.hovered::after {
  opacity: 0;
}
.custom-cursor span {
  display: none;
  color: var(--color-secondary);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  pointer-events: none;
}
.custom-cursor.hovered span {
  display: block;
}
@media (max-width: 1024px) {
  .custom-cursor {
    display: none !important;
  }
}

/* ==========================================================================
   GLASSMORPHISM & AMBIENT GLOW
   ========================================================================== */
.glass-panel {
  background: var(--color-glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-glass-border);
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.35; }
  50% { transform: scale(1.15) translate(40px, -20px); opacity: 0.55; }
  100% { transform: scale(1) translate(0, 0); opacity: 0.35; }
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.45;
  background: radial-gradient(circle, rgba(227, 180, 4, 0.12) 0%, rgba(28, 30, 34, 0.03) 70%, transparent 100%);
  animation: pulseGlow 15s infinite ease-in-out;
}

/* ==========================================================================
   SCROLL REVEAL EFFECTS (8000€ SMOOTHNESS)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
  .reveal {
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals inside grids & containers */
.cards-grid .card-item:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .card-item:nth-child(2) { transition-delay: 0.15s; }
.cards-grid .card-item:nth-child(3) { transition-delay: 0.25s; }
.cards-grid .card-item:nth-child(4) { transition-delay: 0.35s; }
.cards-grid .card-item:nth-child(5) { transition-delay: 0.45s; }
.cards-grid .card-item:nth-child(6) { transition-delay: 0.55s; }

.bento-grid .bento-card:nth-child(1) { transition-delay: 0.05s; }
.bento-grid .bento-card:nth-child(2) { transition-delay: 0.15s; }
.bento-grid .bento-card:nth-child(3) { transition-delay: 0.25s; }
.bento-grid .bento-card:nth-child(4) { transition-delay: 0.35s; }

.features-grid-bar .feature-grid-item:nth-child(1),
.features-grid-bar-3col .feature-grid-item:nth-child(1) { transition-delay: 0.05s; }
.features-grid-bar .feature-grid-item:nth-child(2),
.features-grid-bar-3col .feature-grid-item:nth-child(2) { transition-delay: 0.15s; }
.features-grid-bar .feature-grid-item:nth-child(3),
.features-grid-bar-3col .feature-grid-item:nth-child(3) { transition-delay: 0.25s; }
.features-grid-bar .feature-grid-item:nth-child(4) { transition-delay: 0.35s; }

.faq-grid .faq-item:nth-child(1) { transition-delay: 0.05s; }
.faq-grid .faq-item:nth-child(2) { transition-delay: 0.12s; }
.faq-grid .faq-item:nth-child(3) { transition-delay: 0.19s; }
.faq-grid .faq-item:nth-child(4) { transition-delay: 0.26s; }
.faq-grid .faq-item:nth-child(5) { transition-delay: 0.33s; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.title-xl { font-size: clamp(2.8rem, 7vw, 4.8rem); letter-spacing: -0.03em; }
.title-lg { font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.02em; }
.title-md { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
.title-sm { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

.text-caps {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.text-caps::after {
  content: '';
  width: 50px;
  height: 1.5px;
  background-color: var(--color-secondary);
}

.text-lg { font-size: clamp(16px, 2.2vw, 19px); color: var(--color-text-muted); font-weight: 400; line-height: 1.7; }
.text-muted { color: var(--color-text-muted); }
p strong {
  font-weight: 700;
  color: inherit;
}
.italic-display { 
  font-style: italic; 
  font-family: var(--font-display); 
  font-weight: 300; 
}
h1 .italic-display,
h2 .italic-display,
h3 .italic-display,
h4 .italic-display,
h5 .italic-display,
h6 .italic-display,
.hero-title .italic-display {
  color: var(--color-secondary);
  text-shadow: 0 0 20px rgba(227, 180, 4, 0.25);
}

/* Luxury Drop Cap */
.drop-cap::first-letter {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: var(--color-secondary);
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 4px;
  text-shadow: 0 0 15px rgba(227, 180, 4, 0.15);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  gap: 12px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary {
  background-color: #1C1E22;
  color: #e3b404;
  border: 1.5px solid #e3b404;
  box-shadow: 0 5px 20px rgba(10, 10, 12, 0.3);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  z-index: 1;
}
.btn-primary::before {
  display: none !important;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(227, 180, 4, 0.35);
  background-color: #e3b404;
  color: #1C1E22;
  border-color: #e3b404;
}
.btn-primary:hover::after {
  left: 100%;
  transition: left 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}


.btn-secondary {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1.5px solid var(--color-secondary);
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #0A0A0C;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(227, 180, 4, 0.25);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-outline-white:hover {
  background-color: rgba(227, 180, 4, 0.08);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(227, 180, 4, 0.2);
}

/* ── VIEW TRANSITIONS (NATIVE CROSS-DOCUMENT MOTION) ─────────────────────── */
@view-transition {
  navigation: auto;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-wrap {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  z-index: 1000;
  border-radius: 999px;
  padding: 16px 0;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1.5px solid rgba(227, 180, 4, 0.3);
  box-shadow: 0 20px 50px rgba(28, 30, 34, 0.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), top var(--transition-smooth), padding var(--transition-smooth), background var(--transition-smooth), border var(--transition-smooth), box-shadow var(--transition-smooth);
}
header.nav-wrap,
header.nav-wrap.reveal,
header.nav-wrap.revealed {
  opacity: 1 !important;
  transform: translateX(-50%) !important;
}
.nav-wrap.header-hidden {
  transform: translate3d(-50%, -150%, 0) !important;
}
.scroll-progress {
  display: none !important; /* Removed scroll progress line */
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 36px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
  filter: drop-shadow(0px 0px 1.5px rgba(255, 255, 255, 0.9)) drop-shadow(0px 0px 2.5px rgba(255, 255, 255, 0.5));
}
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-main);
  opacity: 0.75;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active {
  opacity: 1;
  color: var(--color-secondary);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-text-main);
  transition: var(--transition-fast);
}
.nav-burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-burger.open span:nth-child(2) {
  opacity: 0;
}
.nav-burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Scrolled nav state */
.nav-wrap.scrolled {
  top: 14px;
  padding: 10px 0;
  width: calc(100% - 32px);
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1.5px solid rgba(227, 180, 4, 0.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(227, 180, 4, 0.08);
}
.nav-wrap.scrolled .nav-logo img {
  height: 34px;
}

@media (max-width: 991px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
}

@media (max-width: 767px) {
  .nav-wrap {
    top: 16px;
    width: calc(100% - 24px);
    padding: 12px 0;
  }
  .nav-wrap.scrolled {
    top: 8px;
    width: calc(100% - 16px);
  }
  .nav-container {
    padding: 0 20px;
  }
  .nav-logo img {
    height: 36px;
  }
  .nav-wrap.scrolled .nav-logo img {
    height: 30px;
  }
}

/* ==========================================================================
   MOBILE NAV DRAWER
   ========================================================================== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 10001; /* Higher than navbar 1000 so top navbar never covers logo or drawer header */
  background-color: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}
.drawer.open {
  opacity: 1;
  visibility: visible;
}
.drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background-color: #0A0A0C !important;
  border-left: 1.5px solid rgba(227, 180, 4, 0.4) !important;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
  overflow-y: auto;
}
.drawer.open .drawer-inner {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.drawer-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.drawer-close:hover {
  color: var(--color-secondary);
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-nav a {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff !important;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: color 0.2s ease;
}
.drawer-nav a:hover, .drawer-nav a.active {
  color: var(--color-secondary) !important;
}
.drawer-cta {
  margin-top: 24px;
  padding-top: 10px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 60px;
  box-sizing: border-box;
}
.hero-section.hero-home {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: 120px;
  padding-bottom: 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .hero-bg {
    background-image: url('../assets/images/heronikotraslochi_mobile.webp') !important;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.28) 0%, rgba(10, 10, 12, 0.58) 42%, rgba(10, 10, 12, 0.88) 85%, #0A0A0C 100%);
  z-index: 1;
}
.container-hero {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-content {
  color: #ffffff;
}
.hero-title {
  color: #ffffff;
  margin-bottom: 28px;
  text-shadow: 0 4px 30px rgba(28, 30, 34, 0.4);
}
.hero-subtitle {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 44px;
  max-width: 580px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-reviews-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--color-secondary) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(227, 180, 4, 0.2);
}
.hero-visual {
  position: relative;
}
.hero-card {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 4/3;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 2px solid rgba(227, 180, 4, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(227, 180, 4, 0.15);
  transform: rotate(-1.5deg);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.95);
}
.hero-visual:hover .hero-card {
  border-color: var(--color-secondary);
}
.hero-badge {
  position: absolute;
  bottom: -24px;
  left: -24px;
  padding: 24px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.hero-badge .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1;
}
.hero-badge .lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-main);
}

@media (max-width: 991px) {
  .container-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-visual {
    max-width: 440px;
    margin: 75px auto 0 auto;
  }
}

/* ==========================================================================
   BENTO GRID (LUXURY EDITORIAL)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.bento-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px;
  min-height: 340px;
  position: relative;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  z-index: 1;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(227, 180, 4, 0.08), transparent 45%), var(--color-surface);
  border: 1px solid var(--color-border);
}
.bento-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0;
  transform: scale(1.06);
  transition: var(--transition-smooth);
}
.bento-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 34, 0) 20%, rgba(28, 30, 34, 0.9) 100%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}
.bento-card-content {
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.bento-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background-color: rgba(227, 180, 4, 0.08);
  border: 1px solid rgba(227, 180, 4, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  margin-bottom: 28px;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(227, 180, 4, 0.05);
}
.bento-icon svg {
  width: 32px;
  height: 32px;
}
.bento-card h3 {
  margin-bottom: 14px;
  transition: var(--transition-smooth);
}
.bento-card p {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: var(--transition-smooth);
  max-width: 310px;
}
.bento-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(227, 180, 4, 0.2);
}
.bento-card:hover .bento-card-bg {
  opacity: 1;
  transform: scale(1);
}
.bento-card:hover .bento-card-overlay {
  opacity: 1;
}
.bento-card:hover h3, .bento-card:hover p {
  color: #ffffff;
}
.bento-card:hover .bento-icon {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  box-shadow: 0 0 25px rgba(227, 180, 4, 0.5);
}

.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

@media (max-width: 991px) {
  .bento-col-4, .bento-col-8, .bento-col-6, .bento-col-12 {
    grid-column: span 12;
  }
  .bento-card {
    min-height: 290px;
    padding: 36px;
  }
}

/* ==========================================================================
   EDITORIAL SECTION (LUXURY MAGAZINE STYLE)
   ========================================================================== */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.editorial-img-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  aspect-ratio: 4/3;
  border: 1px solid var(--color-border);
  perspective: 1000px; /* Abilita la prospettiva 3D */
}
.editorial-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.96) contrast(1.06) saturate(1.08);
  transition: var(--transition-smooth);
}
.editorial-img-frame:hover img {
  transform: scale(1.04);
  filter: brightness(1.03) contrast(1.08) saturate(1.12);
}
.editorial-img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 55%), radial-gradient(circle at 80% 80%, rgba(227, 180, 4, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  transition: opacity 0.5s ease;
}
.editorial-img-frame:hover::before {
  opacity: 1;
}
.editorial-img-frame::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--color-secondary);
  border-radius: calc(var(--radius-card) - 8px);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: var(--transition-smooth);
}
.editorial-img-frame:hover::after {
  inset: 20px;
  opacity: 1;
  box-shadow: inset 0 0 15px rgba(227, 180, 4, 0.15);
}

.truck-road-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.truck-road-layer img {
  height: auto;
  max-height: 380px;
  width: auto;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.22));
  will-change: transform;
}





@media (max-width: 991px) {
  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .editorial-grid.reverse .editorial-img-frame {
    grid-row: 1;
  }
  .truck-road-layer {
    align-items: flex-start;
    padding-top: 20px;
  }
  .truck-road-layer img {
    max-height: 190px;
    max-width: 85vw;
    opacity: 0.85;
  }
}

/* ==========================================================================
   CONTAINERS & SECTION HEADER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section-gap {
  padding: var(--section-gap) 0;
  position: relative;
}
.section-header {
  max-width: 620px;
  margin-bottom: 60px;
}
.section-header h2 {
  margin-top: 14px;
}

/* ==========================================================================
   CARDS GRID (LUXURY HOVER GLOW / SPOTLIGHT)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.card-item {
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(227, 180, 4, 0.05), transparent 45%), var(--color-surface);
  border-radius: var(--radius-card);
  padding: 44px 36px;
  border: 1px solid var(--color-border);
  border-left: 3.5px solid var(--color-secondary);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}
.card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(227, 180, 4, 0.25);
  border-color: rgba(227, 180, 4, 0.4);
}

/* ── TITLE ANIMATED GOLD UNDERLINE (TRUE MULTILINE CLONE UNDERLINE ON EVERY LINE) ── */
.title-animated-underline {
  display: inline;
  background-image: linear-gradient(90deg, #E0A500, #F5D061);
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  padding-bottom: 3px;
  line-height: 1.5;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

h3.title-sm {
  margin-bottom: 14px;
}

.title-animated-underline.revealed,
.title-animated-underline.is-in-view,
.card-item.revealed .title-animated-underline,
.bento-card.revealed .title-animated-underline,
.card-item:hover .title-animated-underline,
.bento-card:hover .title-animated-underline {
  background-size: 100% 3px;
}
.card-image-wrap {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--color-border);
}
.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.card-item:hover .card-image-wrap img {
  transform: scale(1.04);
}
.card-image-wrap.transparent-wrap {
  aspect-ratio: auto;
  height: 210px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(250, 249, 246, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.card-image-wrap.transparent-wrap img {
  max-width: 92%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.card-item:hover .card-image-wrap.transparent-wrap img {
  transform: scale(1.06) translateY(-4px);
  filter: drop-shadow(0 20px 30px rgba(227, 180, 4, 0.3));
}
.card-item {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.card-item h3 {
  margin-bottom: 12px;
  text-align: left;
}
.card-item p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-muted);
  text-align: left;
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 991px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   STATS BAR (CLEAN & METRIC)
   ========================================================================== */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 60px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-medium);
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(227, 180, 4, 0.08), transparent 45%), var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}
.stats-bar:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(227, 180, 4, 0.25);
}
.stat-item {
  text-align: center;
  flex: 1;
}
.stat-item .num {
  font-size: 54px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: var(--font-display);
  display: inline-block;
  will-change: transform, opacity;
}
.stat-item .lbl {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}
@media (max-width: 767px) {
  .stats-bar {
    flex-direction: column;
    padding: 44px 24px;
    gap: 32px;
  }
  .stat-item {
    border: none !important;
  }
}

/* Warehouse & Trust Features Grid Bar */
.features-grid-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 24px;
  padding: 48px 32px;
}

.features-grid-bar-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
  padding: 48px 32px;
}

.feature-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 20px;
  position: relative;
  transition: transform 0.4s ease;
  flex: 1;
}

.feature-grid-item h3 {
  color: var(--color-text-main) !important;
}

.feature-grid-item p {
  color: var(--color-text-muted) !important;
}

.feature-grid-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(250, 249, 246, 0.1);
}

.feature-grid-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(227, 180, 4, 0.08);
  border: 1.5px solid rgba(227, 180, 4, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.feature-grid-item:hover .feature-grid-icon-box {
  background: var(--color-secondary);
  color: #1C1E22;
  box-shadow: 0 0 20px rgba(227, 180, 4, 0.35);
  transform: scale(1.08);
}

@media (max-width: 991px) {
  .features-grid-bar,
  .features-grid-bar-3col {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
  .feature-grid-item:nth-child(2)::after {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .features-grid-bar,
  .features-grid-bar-3col {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 36px 20px !important;
  }
  .feature-grid-item::after {
    display: none !important;
  }
}

/* ==========================================================================
   CTA BANNER (IMMERSIBLE GRADIENT)
   ========================================================================== */
.cta-banner {
  border-radius: var(--radius-card);
  padding: 90px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(227, 180, 4, 0.15), transparent 45%), linear-gradient(135deg, #1C1E22 0%, #0E0F11 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.15;
  mix-blend-mode: overlay;
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.cta-banner-content h2 {
  color: #ffffff;
  margin-bottom: 18px;
}
.cta-banner-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

@media (max-width: 767px) {
  .cta-banner {
    padding: 44px 24px;
    text-align: center;
  }
}

/* ==========================================================================
   CONTACT DETAILS & MAP
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.contact-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.contact-icon-box {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background-color: #ffffff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(28, 30, 34, 0.06);
  box-shadow: 0 10px 25px rgba(28, 30, 34, 0.03), 0 2px 6px rgba(28, 30, 34, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-item:hover .contact-icon-box,
.card-item:hover .contact-icon-box {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(227, 180, 4, 0.15), 0 4px 12px rgba(227, 180, 4, 0.08) !important;
  border-color: rgba(227, 180, 4, 0.3) !important;
}
.contact-icon-box svg {
  width: 24px;
  height: 24px;
}
.contact-text label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-secondary);
  margin-bottom: 6px;
}
.contact-text p, .contact-text a {
  font-size: 16px;
  color: var(--color-text-main);
  font-weight: 600;
  line-height: 1.6;
}
.contact-text a:hover {
  color: var(--color-secondary);
}
.map-frame {
  height: 440px;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--color-border);
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ==========================================================================
   FORM INPUTS & PREMIUM STEP INDICATOR
   ========================================================================== */
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 60px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-medium);
}
.form-step {
  display: none;
}
.form-step.active {
  display: block;
}
.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group-full {
  grid-column: span 2;
}
.form-group label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-main);
}
.form-control {
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(28, 30, 34, 0.12);
  font-size: 14px;
  transition: var(--transition-fast);
  background-color: var(--color-bg);
  color: var(--color-text-main);
}
.form-control::placeholder {
  color: rgba(28, 30, 34, 0.4);
}
.form-control:focus {
  border-color: var(--color-secondary);
  background-color: #ffffff;
  box-shadow: 0 0 0 5px rgba(227, 180, 4, 0.15);
}
.form-radio-group {
  display: flex;
  gap: 30px;
  margin-top: 6px;
}
.form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-text-muted);
}
.form-radio input {
  accent-color: var(--color-secondary);
  width: 20px;
  height: 20px;
}
.form-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  position: relative;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}
.form-steps-indicator::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(28, 30, 34, 0.08);
  z-index: 0;
}
.form-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-bg);
  border: 2px solid rgba(28, 30, 34, 0.12);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  position: relative;
  z-index: 1;
  transition: var(--transition-fast);
}
.form-step-dot.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(28, 30, 34, 0.2);
}
.form-step-dot.completed {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(227, 180, 4, 0.2);
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
}

@media (max-width: 767px) {
  .form-group-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .form-card {
    padding: 28px 18px;
    border-radius: 20px;
  }
  .form-actions {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .form-actions .btn {
    width: 100% !important;
    padding: 14px 20px !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .form-actions div:empty {
    display: none;
  }
  .form-radio-group {
    display: flex;
    gap: 12px;
    width: 100%;
  }
  .form-radio {
    flex: 1;
    justify-content: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    box-sizing: border-box;
  }
  .file-upload-box {
    padding: 18px 12px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  view-transition-name: main-footer;
  position: relative;
  overflow: hidden;
  background-color: #0A0A0C;
  color: #ffffff;
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}
.footer .container {
  position: relative;
  z-index: 12;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 70px;
  margin-bottom: 70px;
  align-items: start;
}
.footer-logo {
  margin-bottom: 24px;
}
.footer-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-about p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 30px;
  max-width: 320px;
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 14px;
}
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.social-btn:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(227, 180, 4, 0.25);
  border-color: transparent;
}
.footer-links h4, .footer-contact h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links-list a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 600;
}
.footer-links-list a:hover {
  color: var(--color-secondary);
  padding-left: 6px;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-contact-item {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}
.footer-contact-item a:hover {
  color: var(--color-secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal-links {
  display: flex;
  gap: 24px;
}
.footer-legal-links a:hover {
  color: var(--color-secondary);
}

/* ==========================================================================
   PREMIUM INTERACTIONS
   ========================================================================== */

/* Split-Text Reveal */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin-right: 0.15em;
  margin-bottom: 0.1em;
}
.word-inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  will-change: transform, opacity;
}
.split-revealed .word-inner {
  transform: translateY(0);
  opacity: 1;
}

/* Localized Bento Cargo Simulator */
.bento-cargo-card {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr;
  gap: 35px;
  align-items: center;
}
.bento-cargo-card:hover h3 {
  color: var(--color-primary) !important;
}
.bento-cargo-card:hover p {
  color: var(--color-text-muted) !important;
}

.bento-cargo-visual {
  position: relative;
  width: 100%;
  height: 240px;
  min-height: 220px;
  max-height: 250px;
  background: rgba(15, 17, 20, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

#cargo-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cargo-hud {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(18, 20, 24, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(227, 180, 4, 0.2);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 5;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cargo-hud .hud-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.cargo-hud .hud-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-family: monospace;
  color: var(--color-secondary);
}

@media (max-width: 991px) {
  .bento-cargo-card {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
    padding: 32px 24px !important;
  }
  .bento-cargo-visual {
    width: 100%;
    max-width: 460px;
    height: 220px;
    min-height: 220px;
    max-height: 230px;
    margin: 0 auto;
  }
  .footer {
    padding: 60px 0 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ==========================================================================
   UNSEEN STUDIO KINETIC EXPERIENCE
   ========================================================================== */

/* ── Cinematic Hero Scroll Zoom ── */
.hero-bg-container {
  position: absolute;
  top: calc(var(--hero-shrink, 0) * 40px);
  bottom: calc(var(--hero-shrink, 0) * 40px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--hero-shrink, 0) * 10%);
  border-radius: calc(var(--hero-shrink, 0) * 24px);
  overflow: hidden;
  z-index: 0;
  border: 1px solid rgba(227, 180, 4, calc(var(--hero-shrink, 0) * 0.35));
  box-shadow: 0 calc(var(--hero-shrink, 0) * 20px) calc(var(--hero-shrink, 0) * 40px) rgba(0, 0, 0, 0.55),
              0 0 calc(var(--hero-shrink, 0) * 30px) rgba(227, 180, 4, calc(var(--hero-shrink, 0) * 0.18));
  will-change: width, top, bottom, border-radius;
}

.hero-bg-container .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-bg-container .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.28) 0%, rgba(10, 10, 12, 0.58) 42%, rgba(10, 10, 12, 0.88) 85%, #0A0A0C 100%);
  z-index: 1;
}

/* ── Giant Background Kinetic Text ── */
.kinetic-text-wrap {
  position: absolute;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.9;
}

.kinetic-text-scroll-adjust {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.kinetic-text-track {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 8.5vw;
  font-weight: 900;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 180, 4, 0.07);
  white-space: nowrap;
  animation: kineticMarquee 40s linear infinite;
  will-change: transform;
}

@keyframes kineticMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Ensure sections containing kinetic text hide overflow */
.section-gap {
  overflow: hidden;
}

/* ── Form Step Slide-and-Fade Transitions ── */
.form-step {
  display: none;
  opacity: 0;
  will-change: transform, opacity;
}

.form-step.active {
  display: block;
  opacity: 1;
}

/* Default slide from right on next step */
.form-card.slide-next .form-step.active {
  animation: formStepEnterRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Slide from left on prev step */
.form-card.slide-prev .form-step.active {
  animation: formStepEnterLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes formStepEnterRight {
  0% {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes formStepEnterLeft {
  0% {
    opacity: 0;
    transform: translate3d(-40px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ── Footer Parallax Reveal ── */
main {
  position: relative;
  z-index: 10;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E") repeat,
    var(--color-bg-gradient) fixed;
  box-shadow: 0 15px 35px rgba(28, 30, 34, 0.1);
}

.footer.footer-parallax-active {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: auto;
}

/* ==========================================================================
   5 LUXURY ANIMATION UPGRADES (PRELOADER, 3D TILT, DECRYPT, ARROWS, WIDGET)
   ========================================================================== */

/* 1. Animated SVG Arrow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.btn-arrow-svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  margin-left: 8px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  vertical-align: middle;
}
.btn-arrow-line {
  stroke-dasharray: 14;
  stroke-dashoffset: 14;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover .btn-arrow-svg {
  transform: translateX(6px);
}
.btn:hover .btn-arrow-line {
  stroke-dashoffset: 0;
}

/* 2. Cinematic Preloader */
#luxury-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}
#luxury-preloader.preloader-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
}
.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@keyframes draw-logo {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade-in-preloader-text {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 3. 3D Tilt & Specular Highlights */
.bento-card, .card-item, .stats-bar, .fleet-card {
  position: relative;
  transform-style: preserve-3d;
}
.bento-card::after, .card-item::after, .stats-bar::after, .fleet-card::after, .form-card::after, .comparison-table-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--reflection-x, 50%) var(--reflection-y, 50%), rgba(227, 180, 4, 0.15) 0%, transparent 60%); /* Warm gold specular reflection */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.bento-card:hover::after, .card-item:hover::after, .stats-bar:hover::after, .fleet-card:hover::after, .form-card:hover::after, .comparison-table-wrap:hover::after {
  opacity: 1;
}

/* 5. Floating Contacts Widget (Magnetic Radial/Vertical Quick-Actions) */
.quick-actions-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
}
.quick-actions-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-secondary) 0%, var(--color-secondary-hover) 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(227, 180, 4, 0.4);
  cursor: pointer;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.quick-actions-toggle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--color-secondary);
  opacity: 0.5;
  animation: widgetPulse 2s infinite;
  pointer-events: none;
}
.quick-actions-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(227, 180, 4, 0.6);
}
.quick-actions-toggle svg {
  width: 24px;
  height: 24px;
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.quick-actions-toggle .icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}
.quick-actions-widget.active .quick-actions-toggle .icon-chat {
  opacity: 0;
  transform: rotate(90deg);
}
.quick-actions-widget.active .quick-actions-toggle .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}
.quick-actions-menu {
  position: absolute;
  bottom: 75px;
  right: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.quick-actions-widget.active .quick-actions-menu {
  pointer-events: all;
  opacity: 1;
  transform: translateY(0);
}
.quick-action-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.9);
  border: 1.5px solid var(--color-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
  position: relative;
}
.quick-action-item:hover {
  transform: scale(1.1);
}
.quick-action-item[data-tooltip="Chiama Ora"]:hover {
  background-color: #007AFF;
  border-color: #007AFF;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4);
}
.quick-action-item[data-tooltip="WhatsApp"]:hover {
  background-color: #25D366;
  border-color: #25D366;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.quick-action-item[data-tooltip="Preventivo"]:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(227, 180, 4, 0.4);
}
.quick-action-item svg {
  width: 20px;
  height: 20px;
}
.quick-action-item::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
  border: 1px solid rgba(227, 180, 4, 0.2);
}
.quick-action-item:hover::after {
  opacity: 1;
  transform: translateX(0);
}

@keyframes widgetPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ── Mobile Adaptation for Quick Contacts Widget ── */
@media (max-width: 768px) {
  .quick-actions-widget {
    bottom: 20px;
    right: 20px;
  }
  .quick-actions-toggle {
    width: 50px;
    height: 50px;
  }
  .quick-actions-toggle svg {
    width: 20px;
    height: 20px;
  }
  .quick-action-item {
    width: 44px;
    height: 44px;
  }
  .quick-action-item svg {
    width: 18px;
    height: 18px;
  }
  .quick-actions-menu {
    bottom: 62px;
    right: 3px;
    gap: 10px;
  }
  .quick-action-item::after {
    display: none !important; /* Disable tooltip on mobile */
  }
}

/* ── Amber Dust Canvas Particle Background ── */
#amber-dust-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

/* ── MOBILE RESPONSIVE OPTIMIZATIONS & TOUCH CAROUSEL ── */
@media (max-width: 767px) {
  /* Hero framing for smartphone screens */
  .hero-bg {
    background-position: 68% center !important;
    transform: scale(1.02);
  }
  .hero-section.hero-home {
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 130px !important;
    padding-bottom: 70px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }
  .hero-section.hero-home .container-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
  }
  .hero-section.hero-home .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
  }
  .hero-section.hero-home .hero-title {
    font-size: clamp(1.9rem, 6.8vw, 2.4rem) !important;
    margin-bottom: 22px !important;
    line-height: 1.22 !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  }
  .hero-section.hero-home .hero-subtitle {
    font-size: 14.5px !important;
    margin-bottom: 30px !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.88) !important;
    max-width: 460px !important;
    padding: 0 12px !important;
  }
  .hero-section.hero-home .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 320px !important;
    gap: 12px !important;
    margin: 0 auto 24px auto !important;
  }
  /* Main primary CTA button: Richiedi Preventivo */
  .hero-section.hero-home .hero-cta-group .btn-primary {
    width: 100% !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 99px !important;
    box-shadow: 0 6px 20px rgba(227, 180, 4, 0.3) !important;
  }
  /* Secondary CTA button: Scopri i Servizi (smaller than primary) */
  .hero-section.hero-home .hero-cta-group .btn-outline-white {
    width: auto !important;
    padding: 8.5px 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 99px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: rgba(255, 255, 255, 0.85) !important;
  }
  /* Google Reviews badge: compact, clean & subtle */
  .hero-reviews-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    font-size: 11px !important;
    color: #ffffff !important;
    padding: 5px 14px !important;
    border-radius: 99px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    margin: 0 auto !important;
    width: fit-content !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18) !important;
    white-space: nowrap !important;
  }
  .hero-reviews-link span:first-child {
    font-size: 12px !important;
    color: var(--color-secondary) !important;
  }
  .hero-reviews-link strong {
    font-size: 11px !important;
  }
  .hero-reviews-link span:nth-child(3) {
    font-size: 10px !important;
    opacity: 0.85 !important;
  }
  .hero-reviews-link svg {
    width: 10px !important;
    height: 10px !important;
    opacity: 0.7 !important;
  }
  /* Secondary Photo Card positioned below fold (revealed on first scroll) */
  .hero-section.hero-home .hero-visual {
    position: relative !important;
    width: 100% !important;
    max-width: 295px !important;
    margin: 105px auto 50px auto !important;
    display: block !important;
    flex: none !important;
  }
  .hero-section.hero-home .hero-card {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
    max-width: 295px !important;
    margin: 0 auto !important;
    border-radius: 18px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
  }
  .hero-section.hero-home .hero-badge {
    position: absolute !important;
    bottom: -18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 10px 20px !important;
    gap: 10px !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
    width: max-content !important;
  }
  .hero-section.hero-home .hero-badge .num {
    font-size: 24px !important;
  }
  .hero-section.hero-home .hero-badge .lbl {
    font-size: 9.5px !important;
  }
  .hero-section:not(.hero-home) {
    min-height: 38vh !important;
    height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 30px !important;
  }

  /* Native Touch Horizontal Scroll Snap Carousel for Mobile */
  .mobile-carousel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 16px !important;
    padding-top: 10px !important;
    padding-bottom: 24px !important;
    margin-left: calc(-1 * var(--gutter, 20px)) !important;
    margin-right: calc(-1 * var(--gutter, 20px)) !important;
    padding-left: var(--gutter, 20px) !important;
    padding-right: var(--gutter, 20px) !important;
    scrollbar-width: none;
  }
  .mobile-carousel::-webkit-scrollbar {
    display: none;
  }
  .mobile-carousel > * {
    flex: 0 0 85% !important;
    max-width: 85% !important;
    scroll-snap-align: start !important;
  }
}

/* ==========================================================================
   LUXURY SVG ICONS MICRO-ANIMATIONS
   ========================================================================== */

.bento-icon svg, .contact-icon-box svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-secondary);
  stroke-width: 1.75px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.bento-card:hover .bento-icon svg,
.card-item:hover .bento-icon svg,
.contact-item:hover .contact-icon-box svg {
  stroke: var(--color-secondary-hover);
  filter: drop-shadow(0 0 8px rgba(227, 180, 4, 0.65));
}

/* 🚚 Truck / Mezzi Animation */
.icon-truck .truck-wheel {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .icon-truck .truck-wheel,
.card-item:hover .icon-truck .truck-wheel {
  transform: rotate(360deg);
}
.icon-truck .truck-body, .icon-truck .truck-cab {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .icon-truck .truck-body,
.bento-card:hover .icon-truck .truck-cab,
.card-item:hover .icon-truck .truck-body,
.card-item:hover .icon-truck .truck-cab {
  transform: translate(2px, -1px);
}

/* 📦 Box / Imballaggio Animation */
.icon-box .box-flap-1 {
  transform-box: fill-box;
  transform-origin: 30% 30%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.icon-box .box-flap-2 {
  transform-box: fill-box;
  transform-origin: 70% 30%;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bento-card:hover .icon-box .box-flap-1,
.card-item:hover .icon-box .box-flap-1 {
  transform: rotate(-30deg);
}
.bento-card:hover .icon-box .box-flap-2,
.card-item:hover .icon-box .box-flap-2 {
  transform: rotate(30deg);
}

/* 🏛️ Exhibit / Fiere Animation */
.icon-exhibit .exhibit-structure {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-card:hover .icon-exhibit .exhibit-structure,
.card-item:hover .icon-exhibit .exhibit-structure {
  transform: scale(1.05) translateY(-1px);
}
.icon-exhibit .exhibit-glow {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bento-card:hover .icon-exhibit .exhibit-glow,
.card-item:hover .icon-exhibit .exhibit-glow {
  opacity: 0.3;
}

/* 🧩 Cargo Fit Animation */
.icon-cargo .cargo-block-1 {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.icon-cargo .cargo-block-2 {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bento-card:hover .icon-cargo .cargo-block-1 {
  transform: translate(3px, 3px);
}
.bento-card:hover .icon-cargo .cargo-block-2 {
  transform: translate(-3px, -3px);
}

/* 🏠 House Animation */
.icon-house .house-door {
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 0.4s ease;
}
.card-item:hover .icon-house .house-door {
  transform: scaleY(0);
}
.icon-house .house-roof {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-item:hover .icon-house .house-roof {
  transform: translateY(-2px);
}

/* 💼 Briefcase Animation */
.icon-briefcase .briefcase-handle {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-item:hover .icon-briefcase .briefcase-handle {
  transform: translateY(-3px);
}

/* 🛡️ Shield Animation */
.icon-shield .shield-check {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-item:hover .icon-shield .shield-check {
  stroke-dashoffset: 0;
}

/* 🔧 Wrench Animation */
.icon-wrench .wrench-tool {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-item:hover .icon-wrench .wrench-tool {
  transform: rotate(25deg);
}

/* ⚡ Lightning Bolt Animation */
.icon-lightning .lightning-bolt {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-item:hover .icon-lightning .lightning-bolt {
  transform: scale(1.2);
}

/* 🏛️ Cabinet / Restoration Animation */
.icon-cabinet .cabinet-door-l {
  transform-box: fill-box;
  transform-origin: left;
  transition: transform 0.5s ease;
}
.icon-cabinet .cabinet-door-r {
  transform-box: fill-box;
  transform-origin: right;
  transition: transform 0.5s ease;
}
.card-item:hover .icon-cabinet .cabinet-door-l {
  transform: rotateY(-50deg);
}
.card-item:hover .icon-cabinet .cabinet-door-r {
  transform: rotateY(50deg);
}

/* 📍 Map Pin Animation */
.icon-map-pin .pin-body {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.contact-item:hover .icon-map-pin .pin-body {
  transform: translateY(-5px);
}

/* 📞 Phone Animation */
.icon-phone .phone-receiver {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.contact-item:hover .icon-phone .phone-receiver {
  animation: phoneJiggle 0.4s ease infinite;
}

/* ✉️ Mail Animation */
.icon-mail .mail-flap {
  transform-box: fill-box;
  transform-origin: top;
  transition: transform 0.4s ease;
}
.contact-item:hover .icon-mail .mail-flap {
  transform: scaleY(-1);
}

/* ⏰ Clock Animation */
.icon-clock .clock-hand {
  transform-box: fill-box;
  transform-origin: bottom center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-item:hover .icon-clock .clock-hand,
.card-item:hover .icon-clock .clock-hand {
  transform: rotate(360deg);
}

@keyframes phoneJiggle {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(12deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-12deg); }
  100% { transform: rotate(0deg); }
}

/* ── Bento & Contatti Static 3D Icons ── */
.bento-icon, .contact-icon-box {
  position: relative !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-icon:has(.static-3d-icon) {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}
.static-3d-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-icon-box .static-3d-icon {
  padding: 10px;
}

/* Hover effects for static 3D icons */
.card-item:hover .static-3d-icon,
.bento-card:hover .static-3d-icon,
.contact-item:hover .static-3d-icon {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 10px 22px rgba(227, 180, 4, 0.28));
}

/* ── 3D CLAY ICONS HOVER INTERACTION ── */
.clay-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.stat-item:hover .clay-hover, 
.glass-panel:hover .clay-hover,
.card-item:hover .clay-hover {
  transform: scale(1.08) translateY(-3px);
  filter: drop-shadow(0 8px 16px rgba(227, 180, 4, 0.25)) !important;
}

/* ==========================================================================
   ANIMATED CONNECTING TIMELINE (IL NOSTRO METODO)
   ========================================================================== */
.method-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 60px 40px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(227, 180, 4, 0.08), transparent 45%), var(--color-surface);
  box-shadow: var(--shadow-medium);
  transition: var(--transition-smooth);
  overflow: hidden;
}
.method-timeline:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(227, 180, 4, 0.25);
}

.timeline-progress-wrap {
  position: absolute;
  top: 90px; /* Centered relative to the 80px node (50px padding + 40px half node) */
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(28, 30, 34, 0.05);
  z-index: 1;
}
.timeline-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--color-secondary);
  box-shadow: 0 0 12px var(--color-secondary);
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-node {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-muted);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
  position: relative;
}

.timeline-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--color-primary);
  margin-bottom: 8px;
  transition: var(--transition-fast);
}
.timeline-content p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

/* Staggered entrance trigger on reveal */
.method-timeline.revealed .timeline-progress-bar {
  width: 100%;
}
.method-timeline.revealed .timeline-step {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.method-timeline.revealed .timeline-step:nth-of-type(1) { transition-delay: 0.1s; }
.method-timeline.revealed .timeline-step:nth-of-type(2) { transition-delay: 0.5s; }
.method-timeline.revealed .timeline-step:nth-of-type(3) { transition-delay: 0.9s; }
.method-timeline.revealed .timeline-step:nth-of-type(4) { transition-delay: 1.3s; }

/* Staggered Node Illuminations */
.method-timeline.revealed .timeline-step:nth-of-type(1) .timeline-node {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(227, 180, 4, 0.2);
  transition-delay: 0.3s;
}
.method-timeline.revealed .timeline-step:nth-of-type(2) .timeline-node {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(227, 180, 4, 0.2);
  transition-delay: 0.7s;
}
.method-timeline.revealed .timeline-step:nth-of-type(3) .timeline-node {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(227, 180, 4, 0.2);
  transition-delay: 1.1s;
}
.method-timeline.revealed .timeline-step:nth-of-type(4) .timeline-node {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  box-shadow: 0 0 20px rgba(227, 180, 4, 0.2);
  transition-delay: 1.5s;
}

/* Pulsing aura ring animation for active nodes */
@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 180, 4, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(227, 180, 4, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 180, 4, 0); }
}
.method-timeline.revealed .timeline-step:nth-of-type(1) .timeline-node { animation: nodePulse 2s infinite 0.3s; }
.method-timeline.revealed .timeline-step:nth-of-type(2) .timeline-node { animation: nodePulse 2s infinite 0.7s; }
.method-timeline.revealed .timeline-step:nth-of-type(3) .timeline-node { animation: nodePulse 2s infinite 1.1s; }
.method-timeline.revealed .timeline-step:nth-of-type(4) .timeline-node { animation: nodePulse 2s infinite 1.5s; }

/* Mobile Layout for Timeline */
@media (max-width: 767px) {
  .method-timeline {
    flex-direction: column;
    padding: 40px 24px;
    gap: 40px;
  }
  .timeline-progress-wrap {
    top: 60px;
    bottom: 60px;
    left: 54px; /* Centered relative to the 60px node (24px padding + 30px half node) */
    right: auto;
    width: 2px;
    height: calc(100% - 120px);
  }
  .timeline-progress-bar {
    width: 100%;
    height: 0%;
    transition: height 2s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .method-timeline.revealed .timeline-progress-bar {
    height: 100%;
  }
  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    gap: 20px;
  }
  .timeline-node {
    width: 60px;
    height: 60px;
    font-size: 22px;
    margin-bottom: 0;
  }
  .timeline-content p {
    margin: 0;
    max-width: 100%;
  }
}

/* ==========================================================================
   QUALITY METRICS BAR GRAPH (INDEX PAGE)
   ========================================================================== */
.quality-metrics-widget {
  margin-top: 35px;
  padding: 30px;
  border-radius: var(--radius-card);
  background: rgba(28, 30, 34, 0.02);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.quality-metrics-widget:hover {
  border-color: rgba(227, 180, 4, 0.15);
  box-shadow: var(--shadow-medium);
}
.quality-metric-item {
  margin-bottom: 24px;
}
.quality-metric-item:last-child {
  margin-bottom: 0;
}
.quality-metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.quality-metric-label {
  font-family: var(--font-body);
  color: #FFFFFF;
}
.quality-metric-value {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 15px;
}
.quality-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.quality-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--color-secondary);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(227, 180, 4, 0.4);
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll reveal animate trigger */
.revealed .quality-bar-fill {
  width: var(--target-width);
}

/* ==========================================================================
   ANIMATED COMPARISON TABLE (LA DIFFERENZA NIKO)
   ========================================================================== */
.comparison-table-wrap {
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-medium);
  padding: 40px;
  margin-top: 45px;
  transition: var(--transition-smooth);
}
.comparison-table-wrap:hover {
  box-shadow: var(--shadow-premium);
  border-color: rgba(227, 180, 4, 0.12);
}

.comparison-header-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 20px;
  align-items: center;
  padding: 0 16px 24px;
  border-bottom: 2px solid var(--color-border);
}
.comparison-header-cell {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}
.comparison-header-cell:first-child {
  text-align: left;
}
.comparison-header-cell.niko-title {
  color: var(--color-secondary);
  text-shadow: 0 0 10px rgba(227, 180, 4, 0.1);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 20px;
  align-items: center;
  padding: 28px 16px;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}
.comparison-row:last-child {
  border-bottom: none;
}

.comparison-cell-feature {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
}

.comparison-cell-niko {
  background: rgba(227, 180, 4, 0.03);
  border: 1px solid rgba(227, 180, 4, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(227, 180, 4, 0.01);
  position: relative;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.comparison-cell-standard {
  background: rgba(28, 30, 34, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Staggered gold highlight on reveal */
.comparison-table-wrap.revealed .comparison-cell-niko {
  background: rgba(227, 180, 4, 0.08);
  border-color: var(--color-secondary);
  box-shadow: 0 10px 30px rgba(227, 180, 4, 0.15);
  transform: scale(1.03);
}
.comparison-row:nth-child(1) .comparison-cell-niko { transition-delay: 0.1s; }
.comparison-row:nth-child(2) .comparison-cell-niko { transition-delay: 0.4s; }
.comparison-row:nth-child(3) .comparison-cell-niko { transition-delay: 0.7s; }
.comparison-row:nth-child(4) .comparison-cell-niko { transition-delay: 1.0s; }

/* Custom icon styling inside cell */
.comparison-text-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.6;
}
.comparison-text-wrap svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
}
.comparison-text-wrap.niko-text svg {
  color: var(--color-secondary);
}
.comparison-text-wrap.standard-text svg {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.comparison-text-wrap strong {
  display: block;
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 2px;
}
.comparison-text-wrap.standard-text strong {
  color: var(--color-text-muted);
}

/* Responsive design for tablets and phones */
@media (max-width: 991px) {
  .comparison-table-wrap {
    padding: 24px 16px;
  }
  .comparison-header-row {
    display: none; /* Hide header row, label cards inline */
  }
  .comparison-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 8px;
  }
  .comparison-cell-feature {
    text-align: center;
    font-size: 19px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
    margin-bottom: 8px;
  }
  .comparison-cell-niko {
    padding: 18px;
  }
  .comparison-table-wrap.revealed .comparison-cell-niko {
    transform: none; /* Disable scaling on small viewports to prevent overflow */
  }
  .comparison-cell-standard {
    padding: 18px;
  }
}

/* ==========================================================================
   DARK THEME & WHITE CARDS TYPOGRAPHY OVERRIDES
   ========================================================================== */

/* 1. Frosted Pearlescent White Glass Panels (Soft blend with background spots) */
.card-item, 
.bento-card, 
.stats-bar, 
.form-card,
.comparison-table-wrap {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid rgba(227, 180, 4, 0.5) !important; /* Gold border trim always fully active */
  box-shadow: 0 15px 45px rgba(10, 10, 12, 0.15) !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease !important;
  will-change: transform !important; /* GPU Hardware acceleration hint */
  backface-visibility: hidden !important; /* Avoid repaint flickering */
}

.card-item:hover, 
.bento-card:hover, 
.stats-bar:hover, 
.form-card:hover,
.comparison-table-wrap:hover {
  border-color: rgba(227, 180, 4, 0.5) !important;
  box-shadow: 0 20px 50px rgba(227, 180, 4, 0.08), 0 15px 45px rgba(10, 10, 12, 0.18) !important;
}

/* Static Quote Request Form - No 3D Tilt or Shift on Mouse Hover */
.form-card,
.form-card:hover {
  transform: none !important;
}

/* 2. Force dark typography inside white cards, panels & comparison tables */
.card-item, 
.bento-card, 
.stats-bar, 
.form-card, 
.comparison-table-wrap,
.comparison-table-wrap * {
  color: #1C1E22 !important;
}

.card-item h1, .card-item h2, .card-item h3, .card-item h4, .card-item h5, .card-item h6,
.bento-card h1, .bento-card h2, .bento-card h3, .bento-card h4, .bento-card h5, .bento-card h6,
.stats-bar h1, .stats-bar h2, .stats-bar h3, .stats-bar h4, .stats-bar h5, .stats-bar h6,
.form-card h1, .form-card h2, .form-card h3, .form-card h4, .form-card h5, .form-card h6 {
  color: #0A0A0C !important;
}

.card-item p, 
.bento-card p, 
.stats-bar p, 
.form-card p {
  color: #5A6270 !important;
}

.card-item .text-muted, 
.bento-card .text-muted, 
.stats-bar .text-muted, 
.form-card .text-muted {
  color: #5A6270 !important;
}

/* 3. Stats bar & comparison table specific cells */
.stat-item .num {
  color: #1C1E22 !important;
}
.stat-item .lbl {
  color: #5A6270 !important;
}

.comparison-table-wrap .comparison-cell-feature {
  color: #0A0A0C !important;
}
.comparison-table-wrap .comparison-cell-standard {
  background: rgba(28, 30, 34, 0.05) !important;
  color: #5A6270 !important;
}
.comparison-table-wrap .comparison-cell-niko {
  background: rgba(227, 180, 4, 0.08) !important;
  color: #1C1E22 !important;
}
.comparison-table-wrap .comparison-text-wrap.standard-text strong {
  color: #5A6270 !important;
}
.comparison-table-wrap .comparison-text-wrap.niko-text strong {
  color: #1C1E22 !important;
}

/* 4. Bento cards exceptions (on hover with background image) */
.bento-card:not(.bento-cargo-card):hover h3, 
.bento-card:not(.bento-cargo-card):hover p {
  color: #ffffff !important;
}

.bento-cargo-card:hover h3 {
  color: #0A0A0C !important;
}
.bento-cargo-card:hover p {
  color: #5A6270 !important;
}

/* 5. Form inputs overrides (on white card background) */
.form-card label {
  color: #1C1E22 !important;
}
.form-control {
  background-color: #FAF9F6 !important;
  border-color: rgba(28, 30, 34, 0.12) !important;
  color: #1C1E22 !important;
}
.form-control::placeholder {
  color: rgba(28, 30, 34, 0.45) !important;
}
.form-control:focus {
  border-color: var(--color-secondary) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 5px rgba(227, 180, 4, 0.15) !important;
}
.form-radio {
  color: #5A6270 !important;
}
.form-steps-indicator::before {
  background-color: rgba(28, 30, 34, 0.08) !important;
}
.form-step-dot {
  background-color: #FAF9F6 !important;
  border-color: rgba(28, 30, 34, 0.12) !important;
  color: #5A6270 !important;
}
.form-step-dot.active {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

/* 6. Button overrides inside white cards (prevents white-on-white text bugs) */
.card-item .btn-outline-white,
.bento-card .btn-outline-white,
.form-card .btn-outline-white,
.comparison-table-wrap .btn-outline-white {
  background-color: rgba(28, 30, 34, 0.05) !important;
  color: #1C1E22 !important;
  border: 1px solid rgba(28, 30, 34, 0.2) !important;
}
.card-item .btn-outline-white:hover,
.bento-card .btn-outline-white:hover,
.form-card .btn-outline-white:hover,
.comparison-table-wrap .btn-outline-white:hover {
  background-color: #1C1E22 !important;
  color: #ffffff !important;
  border-color: #1C1E22 !important;
}

.card-item .btn-secondary,
.bento-card .btn-secondary,
.form-card .btn-secondary,
.comparison-table-wrap .btn-secondary {
  background-color: rgba(28, 30, 34, 0.05) !important;
  color: #1C1E22 !important;
  border: 1.5px solid rgba(28, 30, 34, 0.15) !important;
}
.card-item .btn-secondary:hover,
.bento-card .btn-secondary:hover,
.form-card .btn-secondary:hover,
.comparison-table-wrap .btn-secondary:hover {
  background-color: #1C1E22 !important;
  color: #ffffff !important;
  border-color: #1C1E22 !important;
}

/* 7. Force inline links inside white cards to be dark */
.card-item a:not(.btn),
.bento-card a:not(.btn),
.form-card a:not(.btn),
.comparison-table-wrap a:not(.btn) {
  color: #1C1E22 !important;
}
.card-item a:not(.btn):hover,
.bento-card a:not(.btn):hover,
.form-card a:not(.btn):hover,
.comparison-table-wrap a:not(.btn):hover {
  color: var(--color-secondary) !important;
}

/* ==========================================================================
   CONSOLIDATION LAYOUT GRID & ULTRA-RESPONSIVE FIXES (UNDER 300PX)
   ========================================================================== */

/* Preventivo Page layout grid */
.preventivo-layout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 991px) {
  .preventivo-layout-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* Ensure map and info card look premium */
.preventivo-info-col .contact-info-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 40px;
}

/* Extreme mobile responsive scaling (Galaxy Fold & smaller under 350px) */
@media (max-width: 350px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .form-card {
    padding: 24px 12px !important;
  }
  .form-group-grid {
    gap: 16px !important;
  }
  .preventivo-info-col .contact-info-list {
    padding: 20px 12px !important;
  }
  .contact-item {
    gap: 10px !important;
  }
  .contact-icon-box {
    width: 36px !important;
    height: 36px !important;
  }
  .title-md {
    font-size: 20px !important;
  }
  .title-sm {
    font-size: 18px !important;
  }
  .text-lg {
    font-size: 14px !important;
  }
  /* Fix stats bar or bento cards scaling */
  .stats-bar, .cards-grid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  /* Table layout fixes under 300px */
  .comparison-table-wrap {
    font-size: 12px !important;
  }
  .comparison-header-cell, .comparison-cell-feature, .comparison-cell-niko, .comparison-cell-standard {
    padding: 10px 6px !important;
  }
}

/* ==========================================================================
   SERVICES TABS NAVIGATION SYSTEM
   ========================================================================== */

.tabs-nav-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 30px auto;
  max-width: 650px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tab-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 14px 28px;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tab-nav-btn svg {
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}

.tab-nav-btn:hover {
  color: var(--color-secondary);
  border-color: rgba(207, 148, 60, 0.2);
  background: rgba(207, 148, 60, 0.03);
}

.tab-nav-btn:hover svg {
  transform: translateY(-2px);
  color: var(--color-secondary);
}

/* Active tab button */
.tab-nav-btn.active {
  background: var(--color-secondary);
  color: #1C1E22;
  border-color: var(--color-secondary);
  box-shadow: 0 6px 20px rgba(207, 148, 60, 0.3);
}

.tab-nav-btn.active svg {
  color: #1C1E22;
}

/* Tab content panel system */
.tab-content-panel {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-top: none !important; /* Remove section division border for tabs */
  padding-top: 20px !important;
}

.tab-content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive navigation scroll for tabs (< 580px) */
@media (max-width: 580px) {
  .tabs-nav-container {
    border-radius: 16px;
    gap: 8px;
    padding: 6px;
    margin: 20px auto;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    /* Hide scrollbars but keep swipeable list */
    scrollbar-width: none; /* Firefox */
  }
  .tabs-nav-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
  }
  .tab-nav-btn {
    padding: 10px 18px;
    font-size: 13.5px;
    border-radius: 10px;
    flex-shrink: 0;
  }
}

/* Extreme mobile phone viewports (< 300px) */
@media (max-width: 300px) {
  .tabs-nav-container {
    gap: 6px;
    padding: 4px;
    border-radius: 8px;
  }
  .tab-nav-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
    border-radius: 6px;
  }
  .tab-nav-btn svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* ==========================================================================
   NAVBAR & DRAWER DROPDOWN SYSTEM
   ========================================================================== */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  stroke-width: 2.5px;
}

/* Rotate arrow chevron on open class */
.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(22, 23, 26, 0.96);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: opacity 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.3s ease;
  z-index: 1000;
}

/* Align links inside dropdown */
.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: left;
  border: none !important;
}

.dropdown-menu a:hover {
  background: rgba(207, 148, 60, 0.08);
  color: var(--color-secondary);
  padding-left: 26px;
}

/* Display dropdown on open class only */
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
}

/* Mobile dropdown configurations in drawer */
.drawer-dropdown {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.drawer-dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.drawer-submenu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 2px solid var(--color-secondary);
  margin-left: 6px;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), margin-top 0.3s ease, margin-bottom 0.3s ease;
}

.drawer-dropdown.open .drawer-submenu {
  max-height: 250px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.drawer-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--color-secondary);
}

.drawer-submenu a {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.drawer-submenu a:hover {
  color: var(--color-secondary) !important;
  padding-left: 4px;
}

/* ── FORM PREVENTIVO ENHANCEMENTS ── */
.services-checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.service-chip input[type="checkbox"] {
  accent-color: var(--color-secondary, #E3B404);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.service-chip:has(input:checked) {
  background: rgba(227, 180, 4, 0.12);
  border-color: rgba(227, 180, 4, 0.4);
  color: var(--color-text-main);
  font-weight: 600;
}

.file-upload-box {
  position: relative;
  border: 2px dashed rgba(227, 180, 4, 0.4);
  background: rgba(227, 180, 4, 0.03);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-box:hover, .file-upload-box.drag-over {
  border-color: var(--color-secondary, #E3B404);
  background: rgba(227, 180, 4, 0.08);
}

.file-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(227, 180, 4, 0.12);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px auto;
}

.file-list-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.file-item-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 10, 12, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-text-main);
}

/* ── MAPS CHOICE MODAL (GOOGLE vs APPLE MAPS) ── */
.maps-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.maps-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.maps-modal-card {
  background: rgba(28, 30, 34, 0.95);
  border: 1px solid rgba(227, 180, 4, 0.3);
  border-radius: 24px;
  padding: 36px 32px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 35px rgba(227, 180, 4, 0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #FAF9F6;
}

.maps-modal-overlay.active .maps-modal-card {
  transform: scale(1) translateY(0);
}

.maps-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: rgba(250, 249, 246, 0.6);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.maps-modal-close:hover {
  color: #FAF9F6;
}

.maps-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(227, 180, 4, 0.1);
  border: 1px solid rgba(227, 180, 4, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.maps-modal-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FAF9F6;
}

.maps-modal-card p {
  font-size: 13.5px;
  color: rgba(250, 249, 246, 0.7);
  margin-bottom: 24px;
  line-height: 1.5;
}

.maps-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.maps-choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.maps-choice-btn.google-btn {
  background: #4285F4;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.maps-choice-btn.google-btn:hover {
  background: #3367D6;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.maps-choice-btn.apple-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.maps-choice-btn.apple-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ── COOKIE CONSENT BANNER (GDPR & GARANTE PRIVACY) ── */
.cookie-banner-wrap {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 99998;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner-wrap.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-card {
  background: rgba(22, 24, 28, 0.96);
  border: 1px solid rgba(227, 180, 4, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(227, 180, 4, 0.1);
  color: #ffffff;
}
.cookie-banner-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-banner-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 18px;
}
.cookie-banner-desc a {
  color: var(--color-secondary);
  text-decoration: underline;
}
.cookie-banner-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner-btns .btn-accept {
  background: var(--color-secondary);
  color: #1C1E22;
  font-weight: 700;
  border: none;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cookie-banner-btns .btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 180, 4, 0.4);
}
.cookie-banner-btns .btn-necessary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cookie-banner-btns .btn-necessary:hover {
  background: rgba(255, 255, 255, 0.18);
}
@media (max-width: 575px) {
  .cookie-banner-wrap {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
  .cookie-banner-card {
    padding: 18px 20px;
  }
  .cookie-banner-btns {
    flex-direction: column;
  }
  .cookie-banner-btns button {
    width: 100%;
    text-align: center;
  }
}

/* ==========================================================================
   SEO FAQ ACCORDION STYLES (ZONE SERVITE & LANDING PAGES)
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(227, 180, 4, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.faq-item summary {
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-secondary);
}

.faq-item[open] summary .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.75;
  border-top: 1px solid rgba(250, 249, 246, 0.05);
  margin-top: 4px;
  padding-top: 16px;
}

.faq-answer strong {
  color: var(--color-text-main);
}








