/* SnapBiz Landing Page Enhanced Styles
   Professional and Accessible Design with WCAG AA Compliance
   Versioned from inline styles with enhanced backgrounds and dynamic hero section
*/

/* ============================================================================
   WCAG AA COMPLIANT COLOR SYSTEM FOR ENHANCED ACCESSIBILITY
   ============================================================================ */
:root {
  /* Primary Brand Colors - Professional and Accessible */
  --bs-primary: #0f4c75;        /* Deep professional blue (WCAG AA: 7.02:1 on white) */
  --bs-primary-rgb: 15, 76, 117;
  --bs-primary-dark: #0a3859;   /* Darker shade for hover states */
  --bs-primary-light: #1564a0;  /* Lighter shade for accents */
  --bs-primary-soft: rgba(15, 76, 117, 0.08); /* Subtle background */
  
  /* Secondary Colors - High Contrast Grays */
  --bs-secondary: #475569;      /* Professional gray (WCAG AA: 4.59:1) */
  --bs-secondary-light: #64748b;
  --bs-secondary-dark: #334155;
  
  /* Semantic Colors - All WCAG AA Compliant */
  --bs-success: #0f5132;        /* Deep green (WCAG AA: 6.24:1 on white) */
  --bs-success-light: #198754;
  --bs-info: #055160;           /* Deep teal (WCAG AA: 5.98:1 on white) */
  --bs-info-light: #0dcaf0;
  --bs-warning: #b45309;        /* Deep amber (WCAG AA: 4.52:1 on white) */
  --bs-warning-light: #ffc107;
  --bs-danger: #991b1b;         /* Deep red (WCAG AA: 6.48:1 on white) */
  --bs-danger-light: #dc3545;
  
  /* Extended Palette */
  --purple: #6d28d9;            /* Deep purple for accents */
  --purple-light: #8b5cf6;
  
  /* Carefully Balanced Gray Scale for Optimal Readability */
  --bs-gray-50: #f8fafc;
  --bs-gray-100: #f1f5f9;
  --bs-gray-200: #e2e8f0;
  --bs-gray-300: #cbd5e1;
  --bs-gray-400: #94a3b8;
  --bs-gray-500: #64748b;
  --bs-gray-600: #475569;       /* WCAG AA compliant for body text */
  --bs-gray-700: #334155;       /* WCAG AA compliant for headings */
  --bs-gray-800: #1e293b;
  --bs-gray-900: #0f172a;       /* Maximum contrast for primary text */
  
  /* Focus and Interactive States */
  --focus-ring-color: rgba(15, 76, 117, 0.5);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
  
  /* Text Color Hierarchy */
  --text-primary: var(--bs-gray-900);    /* Maximum contrast */
  --text-secondary: var(--bs-gray-700);  /* High contrast for subtitles */
  --text-muted: var(--bs-gray-600);      /* Medium contrast for supporting text */
  --text-light: var(--bs-gray-500);      /* Light text for minimal emphasis */
  
  /* Background System */
  --bg-primary: var(--bs-gray-50);
  --bg-secondary: white;
  --bg-accent: var(--bs-gray-100);
  --bg-subtle: rgba(var(--bs-primary-rgb), 0.03);
}

/* ============================================================================
   ENHANCED ACCESSIBILITY COLORS APPLICATION
   ============================================================================ */
.bg-primary-soft {
  background-color: var(--bs-primary-soft) !important;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
  color: var(--bs-primary) !important;
}

.bg-purple {
  background-color: var(--purple) !important;
  color: white !important;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-success {
  color: var(--bs-success) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* ============================================================================
   NAVBAR TRANSPARENT OVERLAY FOR LANDING PAGE CON LOGO DINAMICO
   ============================================================================ */
.landing-page .navbar {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: 1020; /* Below modal backdrop */
}

.landing-page .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Logo con transizione fluida - ANTI-SFARFALLIO SOLO PER LOGO */
.landing-page .navbar #navbar-logo {
  transition: all 0.4s ease;
  opacity: 1;
}

/* Classe per bloccare le transizioni SOLO del logo durante lo scroll */
.landing-page .navbar #navbar-logo.scrolling {
  transition: none !important;
}

/* Miglioramento navbar brand - MANTIENE DINAMISMO */
.landing-page .navbar-brand {
  transition: all 0.4s ease;
}

/* Stati navbar non scrolled (trasparente con logo light) */
.landing-page .navbar:not(.scrolled) {
  background: rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-page .navbar:not(.scrolled) .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.landing-page .navbar:not(.scrolled) .navbar-nav .nav-link:hover {
  color: white !important;
}

.landing-page .navbar:not(.scrolled) .btn {
  text-shadow: none;
}

/* Stati navbar scrolled (bianca con logo dark) */
.landing-page .navbar.scrolled .navbar-nav .nav-link {
  color: var(--bs-gray-700) !important;
  text-shadow: none;
}

.landing-page .navbar.scrolled .navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
}

/* Stili per navbar scrolled (sfondo bianco) */
.navbar.scrolled .btn-outline-primary {
  border: 2px solid var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  background: transparent !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar.scrolled .btn-outline-primary:hover {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(15, 76, 117, 0.3);
}

/* ============================================================================
   HERO SECTION WITH OPTIMIZED GRADIENT - NO WHITE GRADIENTS
   ============================================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 50%, var(--purple) 100%) !important;
  color: white !important;
  position: relative;
  overflow: hidden;
  /* Animazione del gradiente */
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  /* I valori height, padding, display vengono definiti nelle media query */
}

/* Container base - i padding vengono sovrascritti nelle media query */
.hero-section .container {
  position: relative;
  z-index: 2;
  /* OVERRIDE BOOTSTRAP: Rimuove la limitazione di larghezza del container */
  max-width: none !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Responsive container padding */
@media (min-width: 576px) {
  .hero-section .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

@media (min-width: 768px) {
  .hero-section .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 1200px) {
  .hero-section .container {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
}

/* RIMUOVE QUALSIASI GRADIENTE VERSO IL BIANCO INDESIDERATO */
.hero-section::before,
.hero-section::after,
.landing-page .hero-section::before,
.landing-page .hero-section::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}

/* Override per assicurarsi che non ci siano gradienti bianchi */
.hero-section,
.landing-page .hero-section {
  background-image: linear-gradient(135deg, #0f4c75 0%, #0a3859 50%, #6d28d9 100%) !important;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatingElement1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(20px, -20px) rotate(90deg); }
  50% { transform: translate(0, -40px) rotate(180deg); }
  75% { transform: translate(-20px, -20px) rotate(270deg); }
}

/* Typography migliorata con contrasti e ombre - TESTI BIANCHI SENZA ANIMAZIONI PROBLEMATICHE */
.hero-section h1,
.landing-page .hero-section h1,
.hero-section .display-4 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 10px rgba(0, 0, 0, 0.6) !important;
  letter-spacing: -0.02em;
  /* Rimossa animazione fadeInUp che causava problemi di layout */
}

.hero-section .lead,
.landing-page .hero-section .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: #ffffff !important;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6), 0 1px 5px rgba(0, 0, 0, 0.8) !important;
  /* Rimossa animazione fadeInUp che causava problemi di layout */
}

/* Badge con glassmorphism - VERSIONE MIGLIORATA CON MAGGIORE CONTRASTO */
.hero-section .badge,
.landing-page .hero-section .badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)) !important;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  /* Rimossa animazione fadeInUp che causava problemi di layout */
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-section .badge:hover,
.landing-page .hero-section .badge:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25)) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Features list migliorata - RIMOSSA SEZIONE VUOTA */

.hero-features {
  padding-right: 20px;
}

.hero-features .d-flex {
  margin-bottom: 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border-radius: 8px;
  border: 1px solid transparent;
}

.hero-features .d-flex:hover {
  transform: translateX(15px);
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.hero-features .fas {
  color: #34d399 !important;
  font-size: 1.2rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.hero-features span {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  font-weight: 500;
  color: white !important;
}

/* CTA Buttons dinamici - RIMOSSA SEZIONE VUOTA */

.hero-cta .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.02em;
}

.hero-cta .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.hero-cta .btn:hover::before {
  left: 100%;
}

.hero-cta .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  color: white;
}

.hero-cta .btn-outline-dark {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.hero-cta .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-3px);
  color: white;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15), 0 4px 15px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.hero-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #60a5fa !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: block;
  line-height: 1;
}

.hero-stats small {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
}

/* ============================================================================
   IMMAGINE DASHBOARD DINAMICA E 3D
   ============================================================================ */

.hero-image {
  position: relative;
  /* Rimossa animazione fadeInRight che causava problemi di layout */
  perspective: 1000px;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 15px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotateY(-5deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: floatingImage 6s ease-in-out infinite;
}

@keyframes floatingImage {
  0%, 100% { 
    transform: rotateY(-5deg) rotateX(5deg) translateY(0px);
  }
  50% { 
    transform: rotateY(-3deg) rotateX(3deg) translateY(-15px);
  }
}

.hero-image:hover img {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 
    0 35px 80px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Cornice glassmorphism per l'immagine */
.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Effetto riflesso sull'immagine */
.hero-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 30%, 
    transparent 70%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-image:hover::after {
  opacity: 1;
}

/* ============================================================================
   ANIMAZIONI DI ENTRATA
   ============================================================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================   HERO SECTION RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   ============================================================================ */

/* ============================================================================
   BASE STYLES - MOBILE FIRST (320px+)
   ============================================================================ */

/* Reset della hero section per mobile */
.hero-section {
  height: auto;
  min-height: 100vh;
  padding: 60px 0 40px 0 !important;
  display: flex;
  align-items: center;
}

.hero-section .container {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

.hero-section .row {
  align-items: center;
}

/* Typography mobile */
.hero-section h1,
.hero-section .display-4 {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-section .lead {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
}

.hero-section .badge {
  display: block;
  margin: 0 auto 1.5rem auto;
  width: fit-content;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero content mobile */
.hero-content {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-features {
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-features .d-flex {
  margin-bottom: 0.8rem;
  padding: 0.5rem;
}

.hero-features .fas {
  font-size: 1rem;
}

/* CTA buttons mobile */
.hero-cta {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-cta .btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
}

.hero-cta .me-3 {
  margin-right: 0 !important;
}

/* Hero image mobile */
.hero-image {
  text-align: center;
  margin-top: 1.5rem;
}

.hero-image img {
  max-width: 90%;
  transform: none !important;
  animation: none !important;
}

/* Hero stats mobile */

.hero-stats .stat-number {
  font-size: 1.5rem;
}

.hero-stats small {
  font-size: 0.8rem;
}

/* ============================================================================
   SMALL MOBILE (480px+)
   ============================================================================ */
@media (min-width: 480px) {
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
  }
  
  .hero-section .badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .hero-cta .btn {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.8rem;
  }
}

/* ============================================================================
   TABLET PORTRAIT (576px+)
   ============================================================================ */
@media (min-width: 576px) {
  .hero-section {
    padding: 80px 0 50px 0 !important;
  }
  
  .hero-section .container {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-section .lead {
    font-size: 1.15rem;
    margin-bottom: 1.8rem;
  }
  
  .hero-section .badge {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }
  
  .hero-features {
    margin-bottom: 2rem;
  }
  
  .hero-cta {
    margin-bottom: 2rem;
  }
  
  .hero-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }
  
  .hero-image img {
    max-width: 85%;
  }
  
  .hero-stats .stat-number {
    font-size: 2rem;
  }
}

/* ============================================================================
   TABLET LANDSCAPE (768px+) - CON RIDIMENSIONAMENTO PROPORZIONALE
   ============================================================================ */
@media (min-width: 768px) {
  .hero-section {
    padding: 60px 0 40px 0 !important;
    height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .hero-section .container {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  
  .hero-section .row {
    align-items: center;
  }
  
  /* Hero content con altezza controllata per includere tutto */
  .hero-content {
    text-align: left;
    margin-bottom: 0;
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* Typography ridimensionata */
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }
  
  .hero-section .lead {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  
  .hero-section .badge {
    margin: 0 0 1rem 0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Features compatte */
  .hero-features {
    text-align: left;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  
  .hero-features .d-flex {
    margin-bottom: 0.5rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .hero-features .fas {
    font-size: 0.9rem;
  }
  
  /* CTA compatti */
  .hero-cta {
    text-align: left;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }
  
  .hero-cta .btn {
    display: inline-block;
    width: auto;
    margin: 0 0.8rem 0.3rem 0;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .hero-cta .me-3 {
    margin-right: 0.8rem !important;
  }
  
  /* Stats compatte ma visibili */
  .hero-stats {
    margin-top: 0.5rem;
    flex-shrink: 0;
  }
  
  .hero-stats .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-stats small {
    font-size: 0.75rem;
  }
  
  /* Immagine ottimizzata */
  .hero-image {
    margin-top: 0;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 85%;
    max-height: 70vh;
    object-fit: contain;
  }
}

/* ============================================================================
   SMALL LAPTOP TRANSITION (970px+) - CON LAYOUT OTTIMIZZATO
   ============================================================================ */
@media (min-width: 970px) {
  .hero-section {
    height: 100vh;
    padding: 40px 0 !important;
  }
  
  .hero-section .container {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  .hero-section .row {
    align-items: center;
  }
  
  .hero-content {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(0.9);
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2.2rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }
  
  .hero-section .badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .hero-features {
    margin-bottom: 1.2rem;
  }
  
  .hero-features .d-flex {
    margin-bottom: 0.6rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-cta {
    margin-bottom: 1.2rem;
  }
  
  .hero-cta .btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    margin-right: 1rem;
  }
  
  .hero-stats {
    margin-top: 0.8rem;
  }
  
  .hero-stats .stat-number {
    font-size: 1.6rem;
  }
  
  .hero-image {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 85%;
    max-height: 75vh;
    object-fit: contain;
  }
}

/* ============================================================================
   LAPTOP SMALL (992px+) - RISCRITTA COMPLETAMENTE
   ============================================================================ */
@media (min-width: 992px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 40px 0 !important;
    display: flex;
    align-items: center;
  }
  
  .hero-section .container {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .hero-section .row {
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .hero-section .col-lg-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
    overflow-wrap: break-word;
  }
  
  .hero-section .lead {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-section .badge {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
    margin-bottom: 1rem !important;
  }
  
  .hero-features {
    margin-bottom: 1.5rem !important;
  }
  
  .hero-features .d-flex {
    margin-bottom: 0.8rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  .hero-cta .btn {
    padding: 0.8rem 1.5rem !important;
    font-size: 1rem !important;
    margin-right: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .hero-stats .stat-number {
    font-size: 1.8rem !important;
  }
  
  .hero-image img {
    max-width: 85% !important;
    animation: none !important;
  }
}

/* ============================================================================
   LAPTOP LARGE (1200px+) - RISCRITTA COMPLETAMENTE
   ============================================================================ */
@media (min-width: 1200px) {
  .hero-section .container {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  .hero-section .col-lg-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2.5rem !important;
    line-height: 1.25 !important;
    margin-bottom: 1.2rem !important;
  }
  
  .hero-section .lead {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.8rem !important;
  }
  
  .hero-section .badge {
    padding: 0.6rem 1.2rem !important;
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-features {
    margin-bottom: 2rem !important;
  }
  
  .hero-cta .btn {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
  }
  
  .hero-stats .stat-number {
    font-size: 2rem !important;
  }
  
  .hero-image img {
    max-width: 88% !important;
    animation: heroFloat 6s ease-in-out infinite;
  }
}

/* ============================================================================
   DESKTOP STANDARD (1400px+) - RISCRITTA COMPLETAMENTE
   ============================================================================ */
@media (min-width: 1400px) {
  .hero-section {
    height: 100vh;
    min-height: 700px;
  }
  
  .hero-section .container {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-section .lead {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-section .badge {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-features {
    margin-bottom: 2.5rem !important;
  }
  
  .hero-image img {
    max-width: 90% !important;
  }
}

/* ============================================================================
   LARGE DESKTOP (1920px+) - RISCRITTA COMPLETAMENTE  
   ============================================================================ */
@media (min-width: 1920px) {
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 3.5rem !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-section .lead {
    font-size: 1.4rem !important;
    margin-bottom: 2.5rem !important;
  }
  
  .hero-image img {
    max-width: 85% !important;
  }
}

/* ============================================================================
   ACCESSIBILITY & PERFORMANCE OPTIMIZATIONS
   ============================================================================ */

/* Disabilita animazioni per utenti che preferiscono ridotta motion */
@media (prefers-reduced-motion: reduce) {
  .hero-section {
    animation: none !important;
  }
  
  .hero-image img {
    animation: none !important;
  }
  
  .hero-features .fas {
    animation: none !important;
  }
  
  .hero-cta .btn::before {
    display: none !important;
  }
}

/* Ottimizzazioni per dispositivi touch */
@media (hover: none) {
  .hero-features .d-flex:hover {
    transform: none;
    background: transparent !important;
  }
  
  .hero-image:hover img {
    transform: none !important;
  }
}

/* Fix per schermi con altezza limitata */
@media (max-height: 600px) and (min-width: 992px) {
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 60px 0 40px 0 !important;
  }
  
  .hero-section .container {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }
  
  .hero-section h1,
  .hero-section .display-4 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-section .lead {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================================
   PRINT STYLES FOR ACCESSIBILITY
   ============================================================================ */
@media print {
  .hero-section {
    background: white !important;
    color: black !important;
  }
  
  .btn {
    border: 2px solid black !important;
    background: white !important;
    color: black !important;
  }
  
  .navbar,
  .loading-overlay,
  .spinner {
    display: none !important;
  }
}

/* ============================================================================
   HIGH CONTRAST MODE SUPPORT
   ============================================================================ */
@media (prefers-contrast: high) {
  :root {
    --bs-primary: #0000FF;
    --bs-secondary: #000000;
    --text-primary: #000000;
    --text-secondary: #000000;
    --text-muted: #333333;
  }
  
  .btn {
    border-width: 3px !important;
  }
  
  .feature-card,
  .testimonial-card,
  .pricing-card {
    border-width: 3px !important;
    border-color: #000000 !important;
  }
}

/* ============================================================================
   ENHANCED SECTION SPACING
   ============================================================================ */
section {
  position: relative;
}

section .container {
  position: relative;
  z-index: 2;
}

/* ============================================================================
   LANDING PAGE BODY AND LAYOUT FIXES
   ============================================================================ */

/* Reset per il body della landing page */
body.landing-page {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
  background: white;
  overflow-x: hidden;
}

/* Rimuovi il container di base_generic che interferisce */
body.landing-page .container.index-page {
  display: none !important;
}

/* ============================================================================
   NAVBAR FIXES
   ============================================================================ */

/* Fix per il logo della navbar - dimensione corretta */
.navbar-brand img {
  height: 40px !important;
  width: auto !important;
  max-width: 200px !important;
}

/* Navbar con sfondo trasparente iniziale */
.navbar.fixed-top {
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1) !important;
  padding: 0.5rem 0;
}

/* Miglioramento della navbar per la hero */
.navbar.scrolled .navbar-brand img {
  transition: all 0.3s ease;
}

.navbar:not(.scrolled) {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .navbar-brand {
  color: white !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar:not(.scrolled) .btn-outline-primary {
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  color: white !important;
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar:not(.scrolled) .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: white !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.navbar:not(.scrolled) .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: white;
}

/* Aggiunti stili per btn-outline-secondary uniformati con btn-primary ma in versione outline */
.navbar:not(.scrolled) .btn-outline-secondary {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: white;
}

.navbar:not(.scrolled) .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ============================================================================
   SEZIONI CON SFONDI ALTERNATI
   ============================================================================ */

/* Features Section - Sfondo chiaro */
section[id="features"] {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%) !important;
  padding: 80px 0;
}

/* About/Demo Section - Sfondo bianco */
section.bg-white {
  background: white !important;
  padding: 80px 0;
  position: relative;
}

section.bg-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 20%, rgba(var(--bs-primary-rgb), 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Testimonials Section - Sfondo chiaro */
section[id="testimonials"] {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%) !important;
  padding: 80px 0;
}

/* Pricing Section - Sfondo bianco */
section[id="pricing"] {
  background: white !important;
  padding: 80px 0;
}

/* CTA Section - Gradiente colorato */
section.bg-primary.text-white {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 50%, var(--purple) 100%) !important;
  padding: 80px 0;
  position: relative;
}

section.bg-primary.text-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

/* Footer - Sfondo scuro */
footer.bg-dark {
  background: linear-gradient(135deg, var(--bs-gray-900) 0%, #020617 100%) !important;
  color: var(--bs-gray-300);
  border-top: 1px solid var(--bs-gray-800);
  padding: 60px 0 30px 0;
}

/* ============================================================================
   FOOTER SECTION STYLES
   ============================================================================ */
.landing-page .footer-section {
  background: var(--bs-gray-800) !important;
  color: white !important;
  padding: 80px 0 !important;
}

.landing-page .footer-section .text-light {
  color: white !important;
}

.landing-page .footer-section .text-muted {
  color: var(--bs-gray-400) !important;
}

.landing-page .footer-section a {
  color: var(--bs-gray-300) !important;
  transition: color 0.3s ease;
}

.landing-page .footer-section a:hover {
  color: white !important;
}

.landing-page .footer-section hr {
  border-color: var(--bs-gray-600) !important;
}

.landing-page .footer-section .social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.landing-page .footer-section .social-links a:hover {
  background: var(--bs-primary);
  transform: translateY(-2px);
}

/* ============================================================================
   COMING SOON LINKS STYLING
   ============================================================================ */

/* Link coming soon nel footer */
.coming-soon {
  color: var(--bs-gray-500) !important;
  cursor: not-allowed !important;
  text-decoration: none !important;
  position: relative;
}

.coming-soon:hover {
  color: var(--bs-gray-500) !important;
  text-decoration: none !important;
}

.coming-soon::after {
  content: '🚧';
  margin-left: 0.5rem;
  font-size: 0.8em;
}

/* Tooltip per coming soon */
.coming-soon[data-bs-toggle="tooltip"] {
  border-bottom: 1px dotted var(--bs-gray-400);
}

/* Social links che rimangono attivi */
.social-links a:not(.coming-soon) {
  transition: all 0.3s ease;
}

.social-links a:not(.coming-soon):hover {
  color: var(--bs-primary) !important;
  transform: translateY(-2px);
}

/* ============================================================================
   OVERRIDE PER CLASSI BOOTSTRAP CHE POTREBBERO INTERFERIRE
   ============================================================================ */

/* Forza i colori corretti per le sezioni */
.landing-page .bg-light {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-accent) 100%) !important;
}

.landing-page .bg-white {
  background: white !important;
}

.landing-page .bg-primary {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
  color: white !important;
}

.landing-page .bg-dark {
  background: linear-gradient(135deg, var(--bs-gray-900) 0%, #020617 100%) !important;
  color: var(--bs-gray-300) !important;
}

/* ============================================================================
   PADDING E SPAZIATURA CORRETTI
   ============================================================================ */

/* Assicura che tutte le sezioni abbiano padding adeguati */
.landing-page section {
  position: relative;
  width: 100%;
}

.landing-page section .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============================================================================
   RESPONSIVE FIXES
   ============================================================================ */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    min-height: 100vh;
  }
  
  .landing-page section {
    padding: 60px 0 !important;
  }
  
  .navbar-brand img {
    height: 35px !important;
  }
}

/* ============================================================================
   ANIMAZIONI PER PARTICELLE E ELEMENTI DECORATIVI
   ============================================================================ */

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(90deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-40px) translateX(-10px) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-20px) translateX(-20px) rotate(270deg);
    opacity: 0.6;
  }
}

/* ============================================================================
   FIX PER ELIMINARE SPAZI BIANCHI E CONFLITTI
   ============================================================================ */

/* Reset completo per la landing page */
.landing-page {
  margin: 0 !important;
  padding: 0 !important;
}

.landing-page html,
.landing-page body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow-x: hidden;
}

/* Reset specifico per il main content */
.landing-page main,
.landing-page #main-content {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

/* Reset per il body specifico della landing */
body.landing-page {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* ============================================================================
   RESET COMPLETO PER RIMUOVERE SPAZI INDESIDERATI
   ============================================================================ */

/* Reset completo per la landing page */
.landing-page {
  margin: 0 !important;
  padding: 0 !important;
}

.landing-page html,
.landing-page body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow-x: hidden;
}

/* Reset specifico per il main content */
.landing-page main,
.landing-page #main-content {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

/* Reset per il body specifico della landing */
body.landing-page {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* ============================================================================
   FIX PER ELIMINARE SPAZI BIANCHI E CONFLITTI
   ============================================================================ */

/* Reset completo per la landing page */
.landing-page {
  margin: 0 !important;
  padding: 0 !important;
}

.landing-page html,
.landing-page body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow-x: hidden;
}

/* Reset specifico per il main content */
.landing-page main,
.landing-page #main-content {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

/* Reset per il body specifico della landing */
body.landing-page {
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
}

/* ============================================================================
   SECTION LAYOUT - RIPRISTINO SPAZIATURE E SFONDI PER SEZIONI NON-HERO
   ============================================================================ */

/* Reset generale solo per la landing page */
.landing-page {
  margin: 0 !important;
  padding: 0 !important;
}

/* Hero section - nessun padding/margin per coprire tutto lo schermo */
.landing-page .hero-section {
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  position: relative;
}

/* Ripristina le spaziature per TUTTE le altre sezioni */
.landing-page .features-section,
.landing-page .testimonials-section,
.landing-page .pricing-section,
.landing-page .cta-section {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
  margin: 0 !important;
}

/* Ripristina i colori di sfondo Bootstrap */
.landing-page .bg-light {
  background-color: #f8f9fa !important;
}

.landing-page .bg-white {
  background-color: #ffffff !important;
}

.landing-page .bg-primary {
  background-color: var(--bs-primary) !important;
}

/* Ripristina il padding per i container interni delle sezioni non-hero */
.landing-page .features-section .container,
.landing-page .testimonials-section .container,
.landing-page .pricing-section .container,
.landing-page .cta-section .container {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

/* Fix specifico per eliminare lo spazio in alto */
.landing-page .hero-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

@media (min-width: 970px) {
  .landing-page .hero-section {
    margin-top: -30px !important;
  }
}

/* Assicura che la navbar rimanga sopra */
.landing-page .navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1020 !important; /* Ensure navbar stays below modal backdrop */
  margin: 0 !important;
}

/* ============================================================================
   RIPRISTINO STYLING PER SEZIONI NON-HERO
   ============================================================================ */

/* Feature cards styling */
.landing-page .feature-card {
  background-color: white !important;
  border: 1px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  height: 100% !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.landing-page .feature-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Testimonial cards styling */
.landing-page .testimonial-card {
  background-color: white !important;
  border-radius: 12px !important;
  padding: 2rem !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
  height: 100% !important;
}

/* Pricing cards styling */
.landing-page .pricing-card {
  background-color: white !important;
  border: 2px solid #e9ecef !important;
  border-radius: 12px !important;
  padding: 2.5rem 2rem !important;
  height: 100% !important;
  transition: all 0.3s ease !important;
}

.landing-page .pricing-card:hover {
  border-color: var(--bs-primary) !important;
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 30px rgba(15, 76, 117, 0.2) !important;
}

/* CTA section styling */
.landing-page .cta-section {
  color: white !important;
}

.landing-page .cta-section h2,
.landing-page .cta-section p {
  color: white !important;
}

/* Text colors per le varie sezioni */
.landing-page .features-section .text-muted,
.landing-page .testimonials-section .text-muted,
.landing-page .pricing-section .text-muted {
  color: #6c757d !important;
}

.landing-page .features-section h2,
.landing-page .testimonials-section h2,
.landing-page .pricing-section h2 {
  color: #212529 !important;
}

/* ============================================================================
   CTA SECTION E PRICING CARDS - RIPRISTINO SFONDI
   ============================================================================ */

/* CTA Section con stesso gradiente della hero - MASSIMA SPECIFICITÀ */
.landing-page .cta-section,
.landing-page section.cta-section,
.landing-page .cta-section.bg-primary,
body.landing-page .cta-section.bg-primary {
  background: linear-gradient(135deg, #0f4c75 0%, #0a3859 50%, #6d28d9 100%) !important;
  background-size: 400% 400% !important;
  animation: gradientShift 15s ease infinite !important;
  color: white !important;
  position: relative !important;
  overflow: hidden !important;
}

.landing-page .cta-section *,
.landing-page .cta-section h2,
.landing-page .cta-section p,
.landing-page .cta-section.bg-primary *,
.landing-page .cta-section.bg-primary h2,
.landing-page .cta-section.bg-primary p {
  color: white !important;
}

/* Bottoni CTA con styling migliorato */
.landing-page .cta-section .btn-light {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--bs-primary) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 600;
}

.landing-page .cta-section .btn-light:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: var(--bs-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.landing-page .cta-section .btn-outline-light {
  background-color: transparent !important;
  color: white !important;
  border: 2px solid rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-weight: 600;
}

.landing-page .cta-section .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: white !important;
  border-color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Icone nei bottoni CTA - colori compatibili */
.landing-page .cta-section .btn-light .fas {
  color: var(--bs-primary) !important;
}

.landing-page .cta-section .btn-outline-light .fas {
  color: white !important;
}

/* Pricing Cards */
.landing-page .pricing-card.bg-light {
  background-color: var(--bs-gray-100) !important;
  border: 1px solid var(--bs-gray-200) !important;
}

.landing-page .pricing-card.bg-primary {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.landing-page .pricing-card.bg-primary * {
  color: white !important;
}

.landing-page .pricing-card.bg-primary .btn {
  background-color: white !important;
  color: var(--bs-primary) !important;
  border: none !important;
}

.landing-page .pricing-card.bg-primary .btn:hover {
  background-color: var(--bs-gray-100) !important;
  color: var(--bs-primary) !important;
}

.landing-page .pricing-card .badge.bg-warning {
  background-color: #ffc107 !important;
  color: var(--bs-dark) !important;
}

/* Icone check verdi nelle pricing cards */
.landing-page .pricing-card .fas.fa-check.text-success {
  color: var(--bs-success) !important;
}

/* Bottoni nelle pricing cards */
.landing-page .pricing-card .btn-outline-primary {
  border: 2px solid var(--bs-primary) !important;
  color: var(--bs-primary) !important;
  background-color: transparent !important;
}

.landing-page .pricing-card .btn-outline-primary:hover {
  background-color: var(--bs-primary) !important;
  color: white !important;
  border-color: var(--bs-primary) !important;
}

/* Badge "Most Popular" */
.landing-page .pricing-card .badge.bg-warning.text-dark {
  background-color: #ffc107 !important;
  color: #212529 !important;
  font-weight: 600 !important;
}

/* Trust badges nella CTA */
.landing-page .cta-section .opacity-75 {
  opacity: 0.75 !important;
}

/* Effetti decorativi per la CTA section come la hero */
.landing-page .cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.landing-page .cta-section .container {
  position: relative;
  z-index: 2;
}

/* Trust badges nella CTA con styling migliorato */
.landing-page .cta-section .opacity-75 {
  opacity: 0.85 !important;
  transition: opacity 0.3s ease;
}

.landing-page .cta-section .trust-badges .col-md-3:hover .opacity-75 {
  opacity: 1 !important;
}

/* ============================================================================
   SEZIONI CENTRALI - SFONDI ARMONIOSI
   ============================================================================ */

/* Features Section - sfondo neutro leggero */
.landing-page .features-section.bg-light {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border-top: 1px solid rgba(15, 76, 117, 0.1);
  border-bottom: 1px solid rgba(15, 76, 117, 0.1);
}

/* Testimonials Section - sfondo neutro caldo */
.landing-page .testimonials-section.bg-light {
  background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%) !important;
  border-top: 1px solid rgba(15, 76, 117, 0.08);
  border-bottom: 1px solid rgba(15, 76, 117, 0.08);
}

/* Pricing Section - sfondo bianco */
.landing-page .pricing-section.bg-white {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%) !important;
  border-top: 1px solid rgba(15, 76, 117, 0.06);
  border-bottom: 1px solid rgba(15, 76, 117, 0.06);
}

/* Aggiunge una leggera ombra interna per profondità */
.landing-page .features-section.bg-light,
.landing-page .testimonials-section.bg-light,
.landing-page .pricing-section.bg-white {
  box-shadow: inset 0 1px 3px rgba(15, 76, 117, 0.05);
}

/* ============================================================================
   FINE DELLE STILIZZAZIONI SPECIFICHE PER LA LANDING PAGE
   ============================================================================ */

/* ============================================================================
   FIX ICONE FEATURE CARDS
   ============================================================================ */

/* Assicura che tutte le icone delle feature cards siano visibili */
.landing-page .feature-card .feature-icon i {
  display: inline-block !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
}

.landing-page .feature-card .feature-icon .bg-purple {
  background-color: var(--purple) !important;
  color: white !important;
}

/* Fix specifico per assicurarsi che bg-purple funzioni */
.landing-page .bg-purple,
.bg-purple {
  background-color: #6d28d9 !important;
  color: white !important;
}

.landing-page .feature-card .feature-icon .bg-primary {
  background-color: var(--bs-primary) !important;
  color: white !important;
}

.landing-page .feature-card .feature-icon .bg-success {
  background-color: var(--bs-success) !important;
  color: white !important;
}

.landing-page .feature-card .feature-icon .bg-info {
  background-color: var(--bs-info) !important;
  color: white !important;
}

.landing-page .feature-card .feature-icon .bg-danger {
  background-color: var(--bs-danger) !important;
  color: white !important;
}

/* ============================================================================
   BETA PROGRAM E PRICING MIGLIORATO
   ============================================================================ */

/* Badge beta e warning */
.landing-page .badge.bg-info {
  background-color: var(--bs-info) !important;
  color: white !important;
}

.landing-page .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

/* ============================================================================
   MODALI BETA INFO E NEWSLETTER
   ============================================================================ */

/* Modal personalizzate */
.modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
  border-bottom: none;
  padding: 1.5rem;
}

.modal-title {
  color: var(--bg-primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
}

/* Beta info modal */
#beta-info-modal .modal-header {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--purple) 100%);
}

/* Newsletter modal */
#newsletter-modal .modal-header {
  background: linear-gradient(135deg, #0f4c75 0%, #6d28d9 100%);
}

/* Form styling nelle modali */
.modal .form-control {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.modal .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(15, 76, 117, 0.25);
}

.modal .form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

/* Animazioni per le modali */
.modal.fade .modal-dialog {
  transform: translateY(-50px);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

/* Effetti pricing cards */
.pricing-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================================
   Z-INDEX HIERARCHY FIX FOR LANDING PAGE MODALS
   Rule: modals > modal-backdrop > navbar
   ============================================================================ */

/* Navbar - Lowest layer */
.landing-page .navbar,
.landing-page .navbar.scrolled {
  z-index: 1020 !important;
}

/* Modal backdrop - Middle layer */
.modal-backdrop {
  z-index: 1040 !important;
}

/* Modals - Highest layer */
.modal {
  z-index: 1050 !important;
}

.modal.show {
  z-index: 1050 !important;
}

.modal-dialog {
  z-index: 1051 !important;
}

.modal-content {
  z-index: 1052 !important;
}

/* Ensure proper stacking in all breakpoints */
@media (max-width: 991px) {
  .landing-page .navbar {
    z-index: 1020 !important;
  }
  
  .modal-backdrop {
    z-index: 1040 !important;
  }
  
  .modal {
    z-index: 1050 !important;
  }
}

/* Override any conflicting z-index rules from other CSS files */
.navbar-expand-lg .navbar {
  z-index: 1020 !important;
}

body.landing-page .navbar {
  z-index: 1020 !important;
}
