:root {
  --bs-primary: #f6b008;
  --bs-primary-rgb: 246, 176, 8;
  --bs-warning: #f6b008;
  --bs-warning-rgb: 246, 176, 8;
  --bs-info: #0047FF;
  --bs-info-rgb: 0, 71, 255;
  --bs-purple: #7800FF;
  --bs-purple-rgb: 120, 0, 255;
  --gradient-hero: linear-gradient(135deg, #0047FF 0%, #7800FF 100%);
  --gradient-cta: linear-gradient(135deg, #f6b008 0%, #f6b008 100%);
  --gradient-premium: linear-gradient(135deg, #f6b008 0%, #ffbe00 100%);
  --gradient-tech: linear-gradient(135deg, #0047FF 0%, #7800FF 100%);
  --shadow-cta: 0 4px 15px rgba(246, 176, 8, 0.3);
  --shadow-cta-hover: 0 6px 20px rgba(246, 176, 8, 0.4);
  --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.10);
}
html, body {background: #fff;}
body {font-family: 'Inter', 'Segoe UI', Arial, sans-serif;}
.text-white-75 { color: rgba(255,255,255,.75)!important;}
.display-5, .display-4 {line-height: 1.1;}
.lead {font-weight: 500; line-height: 1.6;}
.btn-primary {
  background: #f6b008;
  border: none;
  font-weight: 700;
  padding: 0.875rem 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow-cta);
  transition: all 0.2s;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffbe00;
  color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}
.btn-outline-primary {
  border: 2px solid #f6b008;
  color: #f6b008;
  font-weight: 600;
  background: #fff;
  transition: all 0.2s;
}
.btn-outline-primary:hover {
  background: #f6b008;
  color: #000;
  box-shadow: 0 4px 16px rgba(246,176,8,0.15);
}
/* Info-bar */
.info-bar {
  background: var(--bs-warning);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1100;
  width: 100%;
}
/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;left: 0;right: 0;bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 70%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
/* Carousel */
#productCarousel {
  width: 100%; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #222;
  /* Rimosso max-width e aspect-ratio per massima visibilità */
}
.carousel-inner {
  border-radius: 18px;
  height: 100%;
}
.carousel-item {
  height: 100%;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

/* Bundle Carousel */
#bundleCarousel {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #222;
  aspect-ratio: 1/1; /* Mantiene proporzioni quadrate */
}
#bundleCarousel .carousel-inner {
  border-radius: 18px;
  height: 100%;
}
#bundleCarousel .carousel-item {
  height: 100%;
}
#bundleCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.carousel-indicators [data-bs-target] {
  background-color: var(--bs-primary);
  width: 12px; height: 12px; border-radius: 50%; margin: 0 5px;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(246,176,8,0.9); border-radius: 50%;
  width: 2rem; height: 2rem;
}
/* Badge */
.badge-discount {
  background: linear-gradient(135deg, #FF6B00, #E55A00);
  color: #fff; font-size: 1em; padding: 0.5rem 1.4rem;
  border-radius: 25px; font-weight: 700;
  box-shadow: 0 2px 12px rgba(255,107,0,0.18);
}
/* Stock counter */
.stock-counter {
  background: #fff;
  color: #ff6b00;
  font-weight: bold;
  font-size: 1.15em;
  border-radius: 12px;
  padding: 0.25em 1em;
  margin-left: 1em;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(255,107,0,0.13);
  animation: pulse 1.2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1);}
  50% { transform: scale(1.08);}
  100% { transform: scale(1);}
}

/* Bundle button animation */
.btn-bundle-special {
  background: var(--gradient-premium);
  border: none;
  color: #000;
  font-weight: 700;
  animation: bundlePulse 2s ease-in-out infinite;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-cta);
}

.btn-bundle-special:hover {
  background: linear-gradient(135deg, #ffbe00 0%, #f6b008 100%);
  color: #000;
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-cta-hover);
}

@keyframes bundlePulse {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-cta);
  }
  50% {
    transform: scale(1.03);
    box-shadow: var(--shadow-cta-hover);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-cta);
  }
}
/* Colore switcher pills */
.color-pill {
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: #222;
  font-weight: 600;
  font-size: 0.9em;
  margin-right: 0.7em;
  margin-bottom: 0.5em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  user-select: none;
}
.color-pill.selected, .color-pill:hover {
  border-color: var(--bs-primary);
  background: #fff3b0;
  color: #000;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(246,176,8,0.2);
}

/* Quick Color Suggestions */
.quick-suggestions {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.quick-color-link {
  transition: all 0.2s ease;
  border-radius: 4px;
  padding: 2px 4px;
}

.quick-color-link:hover {
  text-decoration: underline !important;
  opacity: 1;
  background-color: rgba(255, 193, 7, 0.1);
}

/* Style Selector Section */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.style-card {
  border-radius: 15px;
  overflow: hidden;
}

/* Premium Card Styles - Enhanced 3D Effects */
.card-premium {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,255,255,0.1);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  position: relative;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 100%);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.card-premium:hover {
  transform:
    translateY(-12px)
    rotateX(5deg)
    rotateY(-2deg)
    scale(1.03);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.2),
    0 0 40px rgba(246, 176, 8, 0.1),
    0 0 0 1px rgba(246, 176, 8, 0.2);
}

.card-premium:hover::before {
  opacity: 1;
}

/* 3D Product Image Orbit Effect */
.card-product-img {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
  position: relative;
  z-index: 2;
}

.card-premium:hover .card-product-img {
  transform:
    rotateY(15deg)
    rotateX(-5deg)
    scale(1.1)
    translateZ(20px);
  filter: brightness(1.1) contrast(1.05);
}

/* Enhanced Header 3D Effect */
.card-header-premium {
  transform-style: preserve-3d;
  transition: all 0.6s ease;
  position: relative;
  z-index: 3;
}

.card-premium:hover .card-header-premium {
  transform: translateZ(30px) rotateX(-2deg);
}

/* 3D Body Content Effect */
.card-body {
  transform-style: preserve-3d;
  transition: all 0.6s ease;
  position: relative;
  z-index: 3;
}

.card-premium:hover .card-body {
  transform: translateZ(25px);
}

/* Price Showcase 3D Effect */
.price-showcase {
  transform-style: preserve-3d;
  transition: all 0.6s ease;
  position: relative;
  z-index: 3;
}

.card-premium:hover .price-showcase {
  transform: translateZ(35px) scale(1.02);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Discount Badge 3D Effect */
.discount-badge {
  transform-style: preserve-3d;
  transition: all 0.6s ease;
  z-index: 4;
}

.card-premium:hover .discount-badge {
  transform: translateZ(50px) rotateY(10deg) scale(1.1);
}

/* Subtle continuous animation for engagement */
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(0.5deg);
  }
}

.card-premium:nth-child(odd) {
  animation: gentle-float 6s ease-in-out infinite;
  animation-delay: 0s;
}

.card-premium:nth-child(even) {
  animation: gentle-float 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Enhanced mobile experience */
@media (max-width: 768px) {
  .card-premium:hover {
    transform: translateY(-8px) scale(1.02);
  }

  .card-premium:hover .card-product-img {
    transform: scale(1.05);
  }

  .card-premium:nth-child(odd),
  .card-premium:nth-child(even) {
    animation: none; /* Disable continuous animation on mobile for performance */
  }
}

/* Premium Header Styles */
.card-header-premium {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  border-radius: 20px 20px 0 0;
}

.trifold-gradient {
  background: linear-gradient(135deg, #f6b008 0%, #e55a00 100%);
}

.classic-gradient {
  background: var(--gradient-tech);
}

.wallet-gradient {
  background: var(--gradient-premium);
}

.card-gradient {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.premium-icon {
  font-size: 1.5em;
  margin-right: 0.5rem;
}

.premium-badge {
  font-size: 0.8em;
  background: rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-weight: bold;
}

.badge-product {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75em;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-weight: 600;
  z-index: 5;
}

/* Dimensioni Showcase */
.dimensions-showcase {
  background: rgba(255,255,255,0.8);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.dimension-item {
  margin-bottom: 1.5rem;
}

.dimension-item:last-child {
  margin-bottom: 0;
}

.dimension-bar {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.dimension-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  animation: dimension-shine 2s ease-in-out infinite;
}

@keyframes dimension-shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Hover effects for dimension bars */
.dimension-item:hover .dimension-bar {
  transform: scaleY(1.2);
  filter: brightness(1.1);
}

.dimension-item:hover .dimension-bar.bg-primary {
  box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
}

.dimension-item:hover .dimension-bar.bg-success {
  box-shadow: 0 0 20px rgba(25, 135, 84, 0.4);
}

.dimension-item:hover .dimension-bar.bg-warning {
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
}

/* Mobile optimizations for dimensions */
@media (max-width: 768px) {
  .dimensions-showcase {
    padding: 1.5rem;
  }

  .dimension-item {
    margin-bottom: 1rem;
  }

  .dimension-bar {
    height: 6px;
  }
}

/* CTA Color Carousel Styles - ESPANSO */
#ctaColorCarousel {
  /* Rimossa limitazione fissa, ora responsive */
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cta-carousel-slide {
  padding: 3.5rem 3rem 4rem 3rem; /* Più padding verticale per spazio bianco */
  text-align: center;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
  min-height: 500px; /* Aumentato per ospitare spaziatura */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta-carousel-slide:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* Semplificato come carousel hero - nessuna limitazione max-height */
#ctaColorCarousel .carousel-item img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta-carousel-btn {
  background: linear-gradient(135deg, #f6b008 0%, #ffbe00 100%);
  border: 2px solid rgba(255,193,7,0.3);
  color: #000;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(246,176,8,0.3);
  position: relative;
  overflow: hidden;
  padding: 1rem 2rem;
  min-width: 200px;
}

.cta-carousel-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.cta-carousel-btn:hover::before {
  left: 100%;
}

.cta-carousel-btn:hover {
  background: linear-gradient(135deg, #ffbe00 0%, #f6b008 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(246,176,8,0.4);
  color: #000;
}

/* Carousel indicators styling */
#ctaColorCarousel .carousel-indicators {
  bottom: -40px;
}

#ctaColorCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,193,7,0.3);
  margin: 0 4px;
  transition: all 0.3s ease;
}

#ctaColorCarousel .carousel-indicators button.active {
  background-color: #f6b008;
  border-color: #f6b008;
  transform: scale(1.2);
}

/* Carousel controls styling */
#ctaColorCarousel .carousel-control-prev,
#ctaColorCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,193,7,0.3);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

#ctaColorCarousel .carousel-control-prev:hover,
#ctaColorCarousel .carousel-control-next:hover {
  background: rgba(255,193,7,0.8);
  border-color: #f6b008;
  transform: translateY(-50%) scale(1.1);
}

#ctaColorCarousel .carousel-control-prev-icon,
#ctaColorCarousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
  background-color: #000;
}

/* Responsive CTA Carousel - ESPANSIONE GRADUALE */

/* Desktop Extra Large (1400px+) */
@media (min-width: 1400px) {
  #ctaColorCarousel {
    max-width: 800px;
  }

  .cta-carousel-btn {
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
    min-width: 220px;
  }
}

/* Desktop Large (1200px+) */
@media (min-width: 1200px) {
  #ctaColorCarousel {
    max-width: 750px;
  }
}

/* Desktop Standard (992px+) */
@media (min-width: 992px) {
  #ctaColorCarousel {
    max-width: 700px;
  }

  .cta-carousel-btn {
    font-size: 1.15rem;
    min-width: 210px;
  }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  #ctaColorCarousel {
    max-width: 650px;
  }

  .cta-carousel-slide {
    padding: 2rem 2.5rem;
  }
}

/* Mobile Large (576px+) */
@media (min-width: 576px) {
  #ctaColorCarousel {
    max-width: 85vw;
  }

  .cta-carousel-slide {
    padding: 1.75rem;
  }
}

/* Mobile Small (max 575px) */
@media (max-width: 575px) {
  #ctaColorCarousel {
    max-width: 90vw;
  }

  .cta-carousel-slide {
    padding: 1.5rem;
    min-height: 350px;
  }

  .cta-carousel-slide img {
    max-height: 250px;
    margin-bottom: 1.25rem;
  }

  .cta-carousel-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    min-width: 180px;
  }

  #ctaColorCarousel .carousel-control-prev,
  #ctaColorCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }

  #ctaColorCarousel .carousel-control-prev-icon,
  #ctaColorCarousel .carousel-control-next-icon {
    width: 14px;
    height: 14px;
  }
}

/* Rating Mini */
.rating-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

/* Product Preview */
.product-preview {
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.card-premium:hover .product-preview {
  transform: scale(1.05);
}

.card-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Price Showcase */
.price-showcase {
  background: var(--gradient-premium);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  margin: 1rem;
  color: #000;
  box-shadow: var(--shadow-cta);
}

.price-main {
  margin-bottom: 0.5rem;
}

.price-main .price-current {
  font-size: 1.6em;
  font-weight: bold;
  display: block;
  margin-bottom: 0.25rem;
}

.price-main .price-old {
  text-decoration: line-through;
  opacity: 0.8;
  font-size: 1em;
  display: block;
}

.price-saving {
  font-size: 0.9em;
  font-weight: bold;
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Discount Badge */
.discount-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 10;
}

.discount-badge .badge {
  font-size: 1.1em;
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header-premium {
    padding: 1rem;
  }

  .product-preview {
    height: 140px;
    margin: 0.75rem;
  }

  .price-showcase {
    margin: 0.75rem;
    padding: 0.75rem;
  }

  .premium-icon {
    font-size: 1.2em;
  }
}
.color-dot {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  margin-right: 0.6em;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.09);
}
.color-dot.nero {background: #222;}
.color-dot.bianco {background: #fafaff; border-color: #eee;}
.color-dot.rosa {background: #e080a0;}
.color-dot.arancione {background: #ff8c00;}
.color-dot.oro {background: #ffd700;}
.color-dot.blu {background: #0066cc;}
/* Hero-CTA animation */
.cta-hero {box-shadow: 0 3px 24px rgba(246,176,8,0.12);}
.cta-hero:hover {box-shadow: 0 6px 32px rgba(246,176,8,0.23);}
/* Responsive tweaks */
@media (max-width: 991px) {
  .hero-section {padding-top: 30px;}
  .display-4 {font-size: 2.4rem;}
  .display-5 {font-size: 2rem;}
}
@media (max-width: 767px) {
  .hero-section {min-height: 85vh;}
  .display-4, .display-5 {font-size: 1.45rem;}
  .lead {font-size: 1.13em;}
  .hero-content {text-align: center;}

  /* Mobile carousel optimization - massima visibilità */
  #productCarousel {
    width: 100%;
    /* Rimosso aspect-ratio per adattamento naturale */
  }

  #bundleCarousel {
    max-width: none;
    width: 95vw;
    aspect-ratio: 1/1;
  }

  /* Prevent layout shifts on mobile */
  .carousel-item {
    min-height: 350px;
  }

  /* Stabilize stock counter on mobile */
  .stock-counter {
    font-size: 1em;
    margin-left: 0.5em;
    margin-top: 0.5em;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  /* Prevent badge overflow on mobile */
  .badge-discount {
    font-size: 0.9em;
    padding: 0.4rem 1rem;
    word-break: break-word;
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  #bundleCarousel {
    max-width: 280px;
  }

  .carousel-item {
    min-height: 280px;
  }

  .color-pill {
    padding: 0.8rem 1.2rem;
    font-size: 0.85em;
  }
}

/* 🎨 HERO ANIMATIONS - SUPER EFFETTO FICHISSIMO ENHANCED */

/* Enhanced Breathing Glow Effect for CTA Button */
@keyframes breathing-glow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.5), 0 0 50px rgba(255, 193, 7, 0.2);
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  25% {
    box-shadow: 0 0 35px rgba(255, 193, 7, 0.7), 0 0 70px rgba(255, 193, 7, 0.3);
    transform: scale(1.03) rotate(0.5deg);
    filter: brightness(1.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 193, 7, 0.9), 0 0 80px rgba(255, 193, 7, 0.4);
    transform: scale(1.02) rotate(0deg);
    filter: brightness(1.15);
  }
  75% {
    box-shadow: 0 0 35px rgba(255, 193, 7, 0.7), 0 0 70px rgba(255, 193, 7, 0.3);
    transform: scale(1.03) rotate(-0.5deg);
    filter: brightness(1.1);
  }
}

.cta-hero {
  animation: breathing-glow 3.5s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.cta-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 4.5s ease-in-out infinite;
  border-radius: inherit;
}

.cta-hero::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
  animation: border-glow 3.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: -100%; }
}

@keyframes border-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* Enhanced Sequential Wave Cascade for Color Links */
@keyframes wave-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
    filter: brightness(1) hue-rotate(0deg);
  }
  20% {
    transform: translateY(-4px) rotate(1deg);
    text-shadow: 0 0 20px rgba(255, 193, 7, 1), 0 0 30px rgba(255, 193, 7, 0.5);
    filter: brightness(1.2) hue-rotate(5deg);
  }
  40% {
    transform: translateY(-2px) rotate(0deg);
    text-shadow: 0 0 15px rgba(255, 193, 7, 0.8);
    filter: brightness(1.1) hue-rotate(0deg);
  }
  60% {
    transform: translateY(-6px) rotate(-1deg);
    text-shadow: 0 0 25px rgba(255, 193, 7, 1.2), 0 0 40px rgba(255, 193, 7, 0.6);
    filter: brightness(1.3) hue-rotate(-5deg);
  }
  80% {
    transform: translateY(-2px) rotate(0deg);
    text-shadow: 0 0 18px rgba(255, 193, 7, 0.9);
    filter: brightness(1.15) hue-rotate(0deg);
  }
}

.quick-color-link {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: wave-float 5s ease-in-out infinite;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.quick-color-link:nth-child(1) { animation-delay: 0s; }
.quick-color-link:nth-child(2) { animation-delay: 0.4s; }
.quick-color-link:nth-child(3) { animation-delay: 0.8s; }

/* Add sparkle effect to color links */
.quick-color-link::before {
  content: '✨';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.6em;
  opacity: 0;
  animation: sparkle 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  15%, 25% { opacity: 1; transform: scale(1) rotate(180deg); }
  35% { opacity: 0; transform: scale(0.8) rotate(360deg); }
}

.quick-color-link:nth-child(1)::before { animation-delay: 0s; }
.quick-color-link:nth-child(2)::before { animation-delay: 0.4s; }
.quick-color-link:nth-child(3)::before { animation-delay: 0.8s; }

/* Enhanced hover effects with magnetic attraction */
.cta-hero:hover {
  animation-duration: 1.8s;
  transform: scale(1.08) rotate(1deg);
  border-color: rgba(255, 193, 7, 0.8);
  box-shadow: 0 0 50px rgba(255, 193, 7, 1), 0 0 100px rgba(255, 193, 7, 0.5);
}

.quick-color-link:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.1) rotate(2deg);
  text-shadow: 0 0 30px rgba(255, 193, 7, 1.5), 0 0 50px rgba(255, 193, 7, 0.8);
  filter: brightness(1.4) hue-rotate(10deg);
}

/* Add floating particles effect */
.quick-suggestions::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(255, 193, 7, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float-particles 8s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes float-particles {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(90deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
  75% { transform: translateY(-5px) rotate(270deg); }
}

/* 🎯 CTA INTERMEDIA - MAGNETIC CURSOR EFFECTS */

/* Magnetic attraction for CTA buttons */
.cta-final {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(6px);
}

.cta-final:hover::before {
  opacity: 0.6;
}

/* Advanced magnetic cursor tracking */
.cta-final {
  overflow: visible;
}

.cta-final:hover {
  transform: scale(1.05) translateZ(10px);
  box-shadow:
    0 15px 35px rgba(246, 176, 8, 0.4),
    0 0 60px rgba(246, 176, 8, 0.6),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Magnetic field effect */
@keyframes magnetic-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(246, 176, 8, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(246, 176, 8, 0.6);
  }
}

.cta-final:nth-child(odd) {
  animation: magnetic-pulse 3s ease-in-out infinite;
  animation-delay: 0s;
}

.cta-final:nth-child(even) {
  animation: magnetic-pulse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Enhanced ripple effect on click */
.cta-final:active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .cta-hero,
  .quick-color-link,
  .quick-suggestions::after,
  .cta-final {
    animation: none;
  }

  .cta-hero::before,
  .cta-hero::after,
  .quick-color-link::before,
  .cta-final::before {
    display: none;
  }
}

/* 🎬 FASE BETA - STORYTELLING & ENGAGEMENT EFFECTS */

/* Parallax Scrolling for Lifestyle Sections */
.split-section {
  position: relative;
  overflow: hidden;
}

.split-section .img-fluid {
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

/* Lifestyle Section 1 - Parallax Background */
.split-section:nth-of-type(1) {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

.split-section:nth-of-type(1) .img-fluid {
  transform: translateZ(0) scale(1);
  transition: transform 1.2s ease-out;
}

/* Lifestyle Section 2 - Enhanced Reveal */
.split-section.bg-light .img-fluid {
  transform: translateX(-20px) scale(0.95);
  opacity: 0.9;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll-triggered Reveal Animations */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.split-section .col-lg-6:first-child .img-fluid {
  animation: slideInFromLeft 1.2s ease-out forwards;
  opacity: 0;
  animation-fill-mode: both;
}

.split-section .col-lg-6:last-child h2,
.split-section .col-lg-6:last-child p,
.split-section .col-lg-6:last-child .row {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
  animation-fill-mode: both;
}

.split-section .col-lg-6:last-child h2 {
  animation-delay: 0.3s;
}

.split-section .col-lg-6:last-child p {
  animation-delay: 0.6s;
}

.split-section .col-lg-6:last-child .row {
  animation-delay: 0.9s;
}

/* Enhanced Lifestyle Icons Animation */
.split-section .d-flex {
  transition: all 0.4s ease;
}

.split-section .d-flex:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Testimonianze Section - Enhanced Carousel with Depth */
#testiCarousel {
  perspective: 1200px;
}

.testimonial-card {
  transform-style: preserve-3d;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.carousel-item.active .testimonial-card {
  transform: rotateY(0deg) translateZ(50px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.carousel-item:not(.active) .testimonial-card {
  transform: rotateY(15deg) translateZ(-50px) scale(0.95);
  opacity: 0.7;
}

/* Innovazioni Section - SVG Morphing Effects */
.feature-icon {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.feature-icon:hover {
  transform: rotateY(180deg) scale(1.1);
  filter: drop-shadow(0 10px 20px rgba(246, 176, 8, 0.3));
}

/* Staggered card reveals for Innovazioni */
.py-5.bg-light[id="innovazioni"] .card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-fill-mode: both;
}

.py-5.bg-light[id="innovazioni"] .card:nth-child(1) { animation-delay: 0.1s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(2) { animation-delay: 0.3s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(3) { animation-delay: 0.5s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(4) { animation-delay: 0.7s; }

/* Enhanced CTA button in Innovazioni */
.cta-features {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.cta-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.cta-features:hover::before {
  left: 100%;
}

.cta-features:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(246, 176, 8, 0.3);
}

/* 🎯 SCROLL-TRIGGERED ANIMATIONS - FASE GAMMA */

/* Base animation states */
.split-section,
.py-5.bg-light[id="innovazioni"] .card,
.py-5.bg-white .card,
.split-section.bg-light[id="pagamenti"] .bg-white,
section[id="faq"] .accordion-item,
.py-5.bg-dark .testimonial-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animate-in state when visible */
.split-section.animate-in,
.py-5.bg-light[id="innovazioni"] .card.animate-in,
.py-5.bg-white .card.animate-in,
.split-section.bg-light[id="pagamenti"] .bg-white.animate-in,
section[id="faq"] .accordion-item.animate-in,
.py-5.bg-dark .testimonial-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for multiple elements */
.py-5.bg-light[id="innovazioni"] .card:nth-child(1).animate-in { transition-delay: 0.1s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(2).animate-in { transition-delay: 0.2s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(3).animate-in { transition-delay: 0.3s; }
.py-5.bg-light[id="innovazioni"] .card:nth-child(4).animate-in { transition-delay: 0.4s; }

.py-5.bg-white .card:nth-child(1).animate-in { transition-delay: 0.1s; }
.py-5.bg-white .card:nth-child(2).animate-in { transition-delay: 0.2s; }
.py-5.bg-white .card:nth-child(3).animate-in { transition-delay: 0.3s; }

.split-section.bg-light[id="pagamenti"] .bg-white:nth-child(1).animate-in { transition-delay: 0.1s; }
.split-section.bg-light[id="pagamenti"] .bg-white:nth-child(2).animate-in { transition-delay: 0.2s; }
.split-section.bg-light[id="pagamenti"] .bg-white:nth-child(3).animate-in { transition-delay: 0.3s; }

section[id="faq"] .accordion-item:nth-child(1).animate-in { transition-delay: 0.1s; }
section[id="faq"] .accordion-item:nth-child(2).animate-in { transition-delay: 0.2s; }
section[id="faq"] .accordion-item:nth-child(3).animate-in { transition-delay: 0.3s; }
section[id="faq"] .accordion-item:nth-child(4).animate-in { transition-delay: 0.4s; }
section[id="faq"] .accordion-item:nth-child(5).animate-in { transition-delay: 0.5s; }
section[id="faq"] .accordion-item:nth-child(6).animate-in { transition-delay: 0.6s; }
section[id="faq"] .accordion-item:nth-child(7).animate-in { transition-delay: 0.7s; }
section[id="faq"] .accordion-item:nth-child(8).animate-in { transition-delay: 0.8s; }

.py-5.bg-dark .testimonial-card:nth-child(1).animate-in { transition-delay: 0.1s; }
.py-5.bg-dark .testimonial-card:nth-child(2).animate-in { transition-delay: 0.2s; }
.py-5.bg-dark .testimonial-card:nth-child(3).animate-in { transition-delay: 0.3s; }

/* Enhanced performance with GPU acceleration */
.animate-in {
  will-change: transform, opacity;
}

/* Performance: Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .split-section,
  .py-5.bg-light[id="innovazioni"] .card,
  .py-5.bg-white .card,
  .split-section.bg-light[id="pagamenti"] .bg-white,
  section[id="faq"] .accordion-item,
  .py-5.bg-dark .testimonial-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .cta-hero {
    animation-duration: 4s;
  }

  .quick-color-link {
    animation-duration: 6s;
  }

  .quick-color-link::before {
    display: none; /* Hide sparkles on mobile for performance */
  }

  /* Reduce parallax on mobile for performance */
  .split-section {
    background-attachment: scroll;
  }

  /* Simplify animations on mobile */
  .split-section .col-lg-6:first-child .img-fluid,
  .split-section .col-lg-6:last-child h2,
  .split-section .col-lg-6:last-child p,
  .split-section .col-lg-6:last-child .row {
    animation: none;
    opacity: 1;
  }

  /* Disable 3D carousel effects on mobile */
  .testimonial-card {
    transform: none !important;
  }

  .py-5.bg-light[id="innovazioni"] .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Faster animations on mobile for better UX */
  .split-section.animate-in,
  .py-5.bg-light[id="innovazioni"] .card.animate-in,
  .py-5.bg-white .card.animate-in,
  .split-section.bg-light[id="pagamenti"] .bg-white.animate-in,
  section[id="faq"] .accordion-item.animate-in,
  .py-5.bg-dark .testimonial-card.animate-in {
    transition-duration: 0.5s;
  }

  /* Reduce stagger delays on mobile */
  .py-5.bg-light[id="innovazioni"] .card:nth-child(n).animate-in { transition-delay: 0.05s; }
  .py-5.bg-white .card:nth-child(n).animate-in { transition-delay: 0.05s; }
  .split-section.bg-light[id="pagamenti"] .bg-white:nth-child(n).animate-in { transition-delay: 0.05s; }
  section[id="faq"] .accordion-item:nth-child(n).animate-in { transition-delay: 0.03s; }
  .py-5.bg-dark .testimonial-card:nth-child(n).animate-in { transition-delay: 0.05s; }
}

/* Mobile larger text for specific elements */
@media (max-width: 767px) {
  .mobile-larger-text {
    font-size: 1.875rem !important;
  }
}
