/* ===================================
   Homepage Modern Enhancement CSS
   Effetti moderni e accattivanti
====================================== */

/* Variabili personalizzate */
:root {
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-dark: linear-gradient(135deg, #232526 0%, #414345 100%);
  --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px rgba(41, 70, 243, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-fast: all 0.3s ease;
}

/* General Enhancements */
.ls-2px { letter-spacing: 2px; }
.ls-3px { letter-spacing: 3px; }
.lh-30 { line-height: 30px; }
.lh-32 { line-height: 32px; }
.lh-36 { line-height: 36px; }
.lh-65 { line-height: 65px; }
.lh-90 { line-height: 90px; }
.fs-100 { font-size: 100px; }
.p-8 { padding: 5rem; }

@media (max-width: 1199px) {
  .fs-100 { font-size: 80px; }
  .lh-90 { line-height: 80px; }
}

@media (max-width: 991px) {
  .lg-p-6 { padding: 3rem !important; }
  .fs-100 { font-size: 65px; }
  .lh-90 { line-height: 70px; }
}

@media (max-width: 767px) {
  .md-p-5 { padding: 2rem !important; }
  .fs-100 { font-size: 50px; }
  .lh-90 { line-height: 55px; }
}

/* Object Fit */
.object-fit-cover {
  object-fit: cover;
}

/* Hero Banner Enhancements */
.hero-modern .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}

.hero-modern .swiper-slide .container {
  position: relative;
  z-index: 2;
}

/* Animated Text Glow */
.text-glow {
  text-shadow: 0 0 20px rgba(255,255,255,0.5),
               0 0 40px rgba(255,255,255,0.3),
               0 0 60px rgba(255,255,255,0.2);
}

/* Modern Button Styles */
.btn-modern {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--base-color) 0%, #5a6ff0 100%);
  border: none;
  padding: 16px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(41, 70, 243, 0.4);
}

.btn-modern::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;
}

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

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(41, 70, 243, 0.5);
}

/* Glass Morphism Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

/* Feature Box Enhancement */
.feature-box-modern {
  padding: 40px 30px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.feature-box-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-box-modern:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-box-modern:hover::before {
  transform: scaleX(1);
}

.feature-box-modern .feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-smooth);
}

.feature-box-modern:hover .feature-icon {
  background: var(--gradient-primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-box-modern:hover .feature-icon img {
  filter: brightness(0) invert(1);
}

/* Shop Card Modern */
.shop-card-modern {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  position: relative;
}

.shop-card-modern:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.shop-card-modern .shop-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.shop-card-modern .shop-image img {
  transition: transform 0.6s ease;
}

.shop-card-modern:hover .shop-image img {
  transform: scale(1.1);
}

.shop-card-modern .shop-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.shop-card-modern:hover .shop-overlay {
  opacity: 1;
}

.shop-card-modern .shop-footer {
  padding: 20px;
  background: white;
}

.shop-card-modern .shop-footer a {
  font-weight: 600;
  transition: color 0.3s ease;
}

.shop-card-modern:hover .shop-footer a {
  color: var(--base-color) !important;
}

/* Product Card with Floating Effect */
.product-card-floating {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.product-card-floating::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(41, 70, 243, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.product-card-floating:hover::after {
  width: 300%;
  height: 300%;
}

.product-card-floating:hover {
  transform: translateY(-20px);
  box-shadow: 0 30px 80px rgba(41, 70, 243, 0.2);
}

.product-card-floating .card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  background: var(--gradient-gold);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 30px;
  z-index: 2;
}

/* Stats Section Modern */
.stats-modern {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.stats-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(41, 70, 243, 0.1) 0%, transparent 50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card {
  text-align: center;
  padding: 50px 30px;
  position: relative;
  z-index: 1;
}

.stat-card .stat-number {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a8a8a8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-card .stat-label {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--base-color);
}

/* Brand Carousel Enhancement */
.brand-item {
  padding: 30px 40px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition-fast);
}

.brand-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Section Divider Modern */
.section-divider {
  position: relative;
  padding: 100px 0;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--base-color), transparent);
}

/* Animated Background Shapes */
.bg-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(41, 70, 243, 0.1) 0%, transparent 70%);
  top: 10%;
  left: -100px;
  animation-delay: 0s;
}

.bg-shapes .shape-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  bottom: 20%;
  right: -50px;
  animation-delay: -5s;
}

.bg-shapes .shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 175, 25, 0.1) 0%, transparent 70%);
  top: 50%;
  left: 30%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-10px, 20px) scale(0.95); }
  75% { transform: translate(30px, 10px) scale(1.02); }
}

/* Section Title Modern */
.section-title-modern {
  position: relative;
  display: inline-block;
}

.section-title-modern::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Company Section Modern */
.company-section-modern {
  position: relative;
  overflow: hidden;
}

.company-section-modern .company-image {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.company-section-modern .company-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.company-section-modern .company-image img {
  border-radius: 30px;
  transition: transform 0.6s ease;
}

.company-section-modern:hover .company-image img {
  transform: scale(1.05);
}

/* About Text Box */
.about-text-box {
  position: relative;
  padding-left: 30px;
}

.about-text-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Marquee Enhancement */
.marquee-modern {
  padding: 40px 0;
  background: linear-gradient(90deg, white 0%, #f8f9fa 50%, white 100%);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-indicator .mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .mouse::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0%, 100% { top: 10px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/* Product Specs Icons Modern */
.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.95);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition-fast);
}

.spec-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.spec-badge img {
  width: 24px !important;
  height: 24px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .stat-card .stat-number {
    font-size: 48px;
  }
  
  .feature-box-modern {
    margin-bottom: 30px;
  }
  
  .section-title-modern::after {
    width: 60px;
  }
}

@media (max-width: 767px) {
  .stat-card .stat-number {
    font-size: 40px;
  }
  
  .stat-card .stat-label {
    font-size: 14px;
    letter-spacing: 1px;
  }
}

/* Product Carousel Cards Enhancement */
.shop-modern .shop-box {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}

.shop-modern .shop-box:hover {
  transform: translateY(-12px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.shop-modern .shop-image {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
}

.shop-modern .shop-image  img {
  transition: transform 0.5s ease;
}

.shop-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-modern .shop-box:hover .shop-image img {
  transform: scale(1.08);
}

.shop-modern .shop-buttons-wrap {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 60px 15px 15px;
}

.shop-modern .shop-footer {
  padding: 20px 15px;
  background: white;
}

.shop-modern .shop-footer a {
  font-weight: 600;
  transition: color 0.3s ease;
}

.shop-modern .shop-box:hover .shop-footer a {
  color: var(--base-color) !important;
}

/* Featured Product Card Enhancement */
.swiper-slide.grid-item.bg-light {
  background: transparent !important;
}

.swiper-slide.grid-item .shop-box {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
}

/* Product Spec Badges in Cards */
.shop-buttons-wrap .spec-badge-small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  backdrop-filter: blur(10px);
}

.shop-buttons-wrap .spec-badge-small img {
  width: 20px !important;
  height: 20px;
}

/* Animated Gradient Text */
.gradient-text-animated {
  background: linear-gradient(90deg, #fff, #a8d8ea, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Hover Lift Effect */
.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-10px);
}

/* Parallax Text Background */
.parallax-text {
  position: absolute;
  font-size: 200px;
  font-weight: 900;
  color: rgba(0,0,0,0.02);
  white-space: nowrap;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

/* Card Hover Glow */
.card-glow:hover {
  box-shadow: 0 0 30px rgba(41, 70, 243, 0.3),
              0 20px 60px rgba(0,0,0,0.1);
}

/* Navigation Dots Modern */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.5);
  opacity: 1;
  transition: var(--transition-fast);
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.3);
}

/* Arrow Navigation Modern */
.nav-arrow-modern {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  cursor: pointer;
}

.nav-arrow-modern:hover {
  background: white;
  color: var(--base-color);
  transform: scale(1.1);
}

/* Section Background Patterns */
.pattern-dots {
  background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-lines {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(0,0,0,0.02) 0px,
    rgba(0,0,0,0.02) 1px,
    transparent 1px,
    transparent 80px
  );
}

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: float 15s ease-in-out infinite;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Hero Text Animation Enhancement */
.hero-modern [data-fancy-text] {
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

/* Button White Style */
.btn-white {
  background: white;
  color: var(--base-color);
  border: none;
  transition: var(--transition-smooth);
}

.btn-white:hover {
  background: #f8f9fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Image Hover Effects */
.company-image:hover img {
  filter: brightness(1.05);
}

/* Badge Style for New/Featured Products */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 5;
}

.product-badge.new {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
}

.product-badge.featured {
  background: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
  color: white;
}

/* Loading Skeleton Animation */
@keyframes skeleton-loading {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeleton-loading 1.5s infinite;
}

/* Focus States for Accessibility */
.btn:focus,
a:focus {
  outline: 2px solid var(--base-color);
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .hero-modern,
  .stats-modern,
  .bg-shapes {
    display: none;
  }
}