/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
  /* Palette scura con accenti verdi */
  --bg-color: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --text-color: #e8e8e8;
  --text-secondary: #b3b3b3;
  --accent-color: #aec535; /* Nuovo colore verde */
  --accent-hover: #c1d95b; /* Versione più chiara per hover */
  --light-gray: #2a2a2a;
  --dark-gray: #151515;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  
  /* Transitions & Animations */
  --transition-fast: 0.15s ease-out;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 0; /* Initially hidden */
  transition: opacity 0.5s ease-in-out; /* Transition for fade-in */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--white), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite alternate;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--accent-color);
}

p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.95); /* Semi-transparent background */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  transition: padding var(--transition-fast); /* Added for smoother padding change */
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
  transition: all var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  text-shadow: 0 0 20px var(--accent-color);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm); /* Default gap for desktop */
}

.nav-links {
  list-style: none;
  display: flex; /* THIS IS FOR DESKTOP - will be overridden on mobile */
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: 8px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.nav-links a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 175, 80, 0.1);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 8px;
  z-index: -1;
}

.nav-links a:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.nav-links a:hover::before {
  width: 80%;
}

.nav-links a:hover::after {
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none; /* HIDDEN ON DESKTOP - will be overridden on mobile */
  flex-direction: column;
  gap: 4px; /* Adjust gap between spans if needed */
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  transition: transform var(--transition);
  z-index: 1001; /* Ensure it's above other header elements */
}

.hamburger:hover {
  transform: scale(1.1);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center; /* Ensures rotation is centered */
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

nav { /* The <nav> element itself */
  position: relative; /* For positioning the absolute .nav-links dropdown */
}


/* Responsive Navigation for tablet and mobile */
@media (max-width: 1023px) { /* Breakpoint for tablet and smaller */
  .nav-links {
    display: none; 
    flex-direction: column; 
    position: absolute;
    top: calc(100% + 10px); 
    /* Adjusted right positioning: 
       Shift 10px to the left from the right edge of the nav (hamburger) 
       to give more space for shadow/border on the menu's right.
    */
    right: 10px; 
    background: var(--bg-secondary); 
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35); /* Slightly increased shadow for visibility */
    padding: var(--space-sm);
    min-width: 220px; 
    z-index: 1005; /* Ensure dropdown is above header and hamburger */
    border: 1px solid var(--light-gray);
    box-sizing: border-box; /* Explicitly ensure padding is included */
  }

  /* When nav has .active class (toggled by JS), show the links */
  nav.active .nav-links {
    display: flex; 
  }

  .nav-links a { /* Styles for links within the dropdown */
    width: 100%;
    text-align: left;
    padding: var(--space-sm); 
    border-bottom: 1px solid var(--dark-gray); 
  }

  .nav-links li:last-child a {
    border-bottom: none; 
  }

  .nav-links a:hover {
    background-color: rgba(76, 175, 80, 0.1); 
  }
  
  .nav-links a:hover::before { 
    width: 4px; 
    height: 70%; 
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    bottom: auto; 
  }
  .nav-links a:hover::after {
    opacity: 0; 
  }

  .hamburger {
    display: flex; 
  }
}

/* Specific adjustments for smaller mobile screens (max-width: 767px) */
/* This section already has a more robust full-width approach, which is good. */
@media (max-width: 767px) { 
  header {
    padding: var(--space-sm) var(--space-sm); /* Reduce header padding on small mobiles */
  }

  .header-right {
    gap: var(--space-xs); /* Reduce gap between language switcher and nav */
  }
  
  /* Language switcher styles for mobile (order, smaller flags) are already in your CSS */

  .nav-links { /* Adjust dropdown for very small screens */
    min-width: auto;
    width: calc(100vw - (var(--space-sm) * 2)); 
    box-sizing: border-box;
    top: calc(100% + 5px); 
    z-index: 1005; /* Consistent high z-index */
  }

  /* General layout adjustments for mobile */
  .container {
    padding: 0 var(--space-sm); 
  }

  h1 { font-size: clamp(2rem, 7vw, 2.8rem); } /* Slightly adjust H1 for mobile */
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); } /* Slightly adjust H2 for mobile */

  /* Stack multi-column layouts */
  .two-column,
  .about-grid,
  .contact,
  .services-grid, /* Ensure services grid stacks */
  .intro-stats {  /* Ensure intro stats stack */
    grid-template-columns: 1fr; 
    gap: var(--space-md); /* Consistent gap for stacked items */
  }
  
  .about-image {
    margin-bottom: var(--space-md); 
  }

  /* Adjust section padding for mobile */
  .intro,
  .services-preview,
  .about-preview,
  .gallery-preview,
  .contact-cta,
  .services-header,
  .gallery-header,
  .contact-header,
  .map-section,
  footer,
  .services,
  .contact,
  .page-content-section { /* Add a generic class if you have other sections */
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
    /* Left/right padding will be handled by .container or specific section needs */
  }

  /* Fix the About/Features section on mobile */
  .feature-item {
    padding: var(--space-xs) var(--space-sm);
    margin-right: var(--space-xs);
    width: calc(100% - var(--space-sm));
    box-sizing: border-box;
    gap: var(--space-xs);
  }

  .feature-icon {
    font-size: 1.5rem; /* Smaller icon on mobile */
    flex: 0 0 auto;
  }

  .feature-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    width: 100%;
    word-wrap: break-word;
  }

  .feature-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* Ensure About section has proper padding */
  .about-preview {
    padding: var(--space-lg) var(--space-sm);
  }

  .about-features {
    margin: var(--space-md) 0;
  }

  /* Fix for overlapping elements */
  .image-overlay {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }

  .overlay-text {
    font-size: 1rem;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/WhatsApp Image 2025-06-19 at 22.02.29.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Rimuovi completamente gli stili del video */
.bg-video {
  display: none !important;
}

/* Overlay scuro per migliorare la leggibilità del testo */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.5) 0%, 
    rgba(0, 0, 0, 0.3) 50%, 
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-overlay {
  position: relative;
  text-align: center;
  z-index: 2;
  max-width: 1000px;
  padding: var(--space-md);
  animation: heroFadeIn 1.5s ease-out;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

/* Hero title and subtitle styles */
.hero-overlay h1 {
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-overlay p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-color);
  margin: 0 0 var(--space-lg) 0;
  font-weight: 300;
  opacity: 0;
  animation: slideUp 1s ease-out 0.5s forwards;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Sezione citazione con effetti speciali */
.hero-quote {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: var(--space-lg);
  border: 2px solid rgba(76, 175, 80, 0.3);
  opacity: 0;
  animation: fadeInScale 1.5s ease-out 1.2s forwards;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.15), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

.hero-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  line-height: 1.7;
  color: var(--text-color);
  font-style: italic;
  text-align: center;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.hero-quote-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  font-family: var(--font-display);
  opacity: 0.4;
  line-height: 1;
}

.hero-quote-text::after {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  bottom: -2.5rem;
  right: -1.5rem;
  font-family: var(--font-display);
  opacity: 0.4;
  line-height: 1;
}

.hero-quote-author {
  text-align: right;
  color: var(--accent-color);
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: 1px;
}

.hero-quote-author::before {
  content: '— ';
  color: var(--text-secondary);
  font-size: 1.1em;
}

/* Scroll down button */
.scroll-down {
  color: var(--accent-color);
  font-size: 2rem;
  text-decoration: none;
  padding: var(--space-sm);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-md) auto 0;
  transition: all var(--transition);
  opacity: 0;
  animation: fadeInBounce 1s ease-out 2.5s forwards, bounce 2s infinite 3s;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.scroll-down:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(174, 197, 53, 0.4); /* Aggiornato con il nuovo colore */
}

/* Animazioni migliorate */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
  .hero {
    height: 100vh;
    background-attachment: scroll; /* Migliori performance su mobile */
  }
  
  .hero-overlay {
    max-width: 100%;
    padding: var(--space-sm);
    gap: var(--space-sm);
  }
  
  .hero-overlay p {
    margin-bottom: var(--space-md);
  }
  
  .hero-quote {
    padding: var(--space-md) var(--space-sm);
    border-radius: 16px;
    border-width: 1px;
  }
  
  .hero-quote-text {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    line-height: 1.6;
    text-align: center;
    margin-bottom: var(--space-sm);
  }
  
  .hero-quote-text::before {
    font-size: 2.5rem;
    top: -1rem;
    left: -0.8rem;
  }
  
  .hero-quote-text::after {
    font-size: 2.5rem;
    bottom: -1.5rem;
    right: -0.8rem;
  }
  
  .hero-quote-author {
    text-align: center;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-top: var(--space-xs);
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: var(--space-xs);
  }
  
  .hero-overlay > p {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  }
  
  .scroll-down {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    margin-top: var(--space-sm);
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-quote {
    padding: var(--space-lg) var(--space-md);
    border-radius: 18px;
  }
  
  .hero-quote-text {
    font-size: clamp(1.1rem, 2.8vw, 1.25rem);
  }
  
  .hero-quote-author {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
  }
}

/* Page Headers */
.services-header,
.gallery-header,
.contact-header {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.services-header h1,
.gallery-header h1,
.contact-header h1 {
  margin-bottom: var(--space-sm);
}

.services-header p,
.gallery-header p,
.contact-header p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Section Titles */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.section-tag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Intro Section Enhanced */
.intro {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.intro-text {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-item {
  background: var(--light-gray);
  padding: var(--space-lg) var(--space-md);
  border-radius: 16px;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 30px rgba(174, 197, 53, 0.2); /* Aggiornato con il nuovo colore */
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--accent-color);
  font-family: var(--font-display);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: var(--space-xs);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
}

/* Services Preview */
.services-preview {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.service-card {
  background: var(--light-gray);
  padding: var(--space-md); /* Reduced from var(--space-lg) */
  border-radius: 20px;
  transition: all var(--transition-slow);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  transition: left var(--transition-slow);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 25px 50px rgba(174, 197, 53, 0.2); /* Aggiornato con il nuovo colore */
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.2);
}

.service-card h3 {
  color: var(--white);
  margin-bottom: var(--space-sm);
  font-size: 1.5rem;
}

.service-card p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: var(--space-md);
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* About Preview */
.about-preview {
  padding: var(--space-xl) 0;
  background: var(--bg-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: var(--space-md);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.about-features {
  margin: var(--space-lg) 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  border-radius: 12px;
  transition: all var(--transition);
}

.feature-item:hover {
  background: var(--light-gray);
  transform: translateX(10px);
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  color: var(--accent-color);
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

.about-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--space-lg) var(--space-md) var(--space-md);
  color: var(--white);
}

.overlay-text {
  font-size: 1.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Gallery Preview */
.gallery-preview {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
}

.gallery-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  transition: all var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(174, 197, 53, 0.3); /* Aggiornato con il nuovo colore */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(76, 175, 80, 0.8), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Contact CTA */
.contact-cta {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--white);
}

.contact-cta h2 {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--white);
  color: var(--accent-color);
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
}

.whatsapp-icon-small {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--white);
  border-color: var(--accent-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(174, 197, 53, 0.4); /* Aggiornato con il nuovo colore */
}

.btn-outline {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-outline:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
}

.cta-section {
  margin-top: var(--space-xl);
}

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

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

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

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Fade-in animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all var(--transition-slow);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all var(--transition-slow);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Content Sections */
.intro {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
}

/* Two-column layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md);
  align-items: center;
}

/* Media query for mobile view */
@media (max-width: 767px) {
  .two-column {
    grid-template-columns: 1fr; /* Cambia a una singola colonna su mobile */
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-sm);
  }
  
  /* Reordina gli elementi in modo che l'immagine appaia per prima */
  .about .about-image {
    order: 1; /* L'immagine va per prima */
    margin-bottom: var(--space-md);
  }
  
  .about .about-text {
    order: 2; /* Il testo va dopo l'immagine */
  }
  
  /* Assicura che l'immagine si adatti correttamente */
  .about-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  /* Ottimizza il layout del testo */
  .about-text h2 {
    font-size: 1.8rem;
    margin-top: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-secondary);
}

.service-item {
  background: var(--light-gray);
  padding: var(--space-md); /* Reduced from var(--space-lg) */
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  transition: left var(--transition-slow);
}

.service-item:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(174, 197, 53, 0.2); /* Aggiornato con il nuovo colore */
}

.service-item:hover::before {
  left: 100%;
}

.icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-sm);
  display: block;
  transition: all var(--transition);
}

.service-item:hover .icon {
  transform: scale(1.1) rotateY(15deg);
}

.service-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-header .service-icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  display: block;
}

.service-header h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: var(--space-xs);
  color: var(--white);
}

.service-header h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--accent-color);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.service-header p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Gallery Grid for Services */
.gallery-grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.gallery-grid-services img,
.gallery-grid-services video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  transition: all var(--transition-slow);
  cursor: pointer;
}

.gallery-grid-services img:hover,
.gallery-grid-services video:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 20px 40px rgba(174, 197, 53, 0.3); /* Aggiornato con il nuovo colore */
}

/* Service Features */
.service-features {
  background: var(--light-gray);
  border-radius: 16px;
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.service-features ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.service-features li {
  display: flex;
  align-items: center;
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all var(--transition);
  position: relative;
  padding-left: var(--space-lg);
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: var(--space-sm);
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-features li:hover {
  transform: translateX(5px);
  background: var(--dark-gray);
  color: var(--white);
}

/* Sub Services */
.sub-service {
  background: var(--light-gray);
  border-radius: 16px;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  border-left: 4px solid var(--accent-color);
}

.sub-service h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1.8rem;
}

.sub-service p {
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.sub-service-features {
  list-style: none;
  padding: 0;
}

.sub-service-features li {
  padding: var(--space-xs) 0;
  position: relative;
  padding-left: var(--space-md);
  color: var(--text-secondary);
}

.sub-service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Forage Production Process */
.forage-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.process-step {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: var(--space-md);
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
  transition: left var(--transition-slow);
}

.process-step:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(174, 197, 53, 0.2); /* Aggiornato con il nuovo colore */
}

.process-step:hover::before {
  left: 100%;
}

.process-step h4 {
  color: var(--accent-color);
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.process-step p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Video Items in Gallery */
.video-item {
  background: var(--dark-gray);
  border-radius: 12px;
  overflow: hidden;
}

.video-item::-webkit-media-controls-panel {
  background-color: rgba(10, 10, 10, 0.8);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .service-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .service-header {
    margin-bottom: var(--space-lg);
  }
  
  .service-header .service-icon {
    font-size: 3rem;
  }
  
  .gallery-grid-services {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .gallery-grid-services img,
  .gallery-grid-services video {
    height: 200px;
  }
  
  .service-features ul {
    grid-template-columns: 1fr;
  }
  
  .forage-process {
    grid-template-columns: 1fr;
  }
  
  .sub-service {
    padding: var(--space-md);
    margin: var(--space-md) 0;
  }
}

/* Correzione per la sezione About Preview in homepage su mobile */
@media (max-width: 767px) {
  /* Altri stili mobile esistenti... */
  
  /* Stile specifico per la sezione "About Preview" nella home */
  .about-preview .about-grid {
    grid-template-columns: 1fr; /* Cambia in una singola colonna su mobile */
    gap: var(--space-md);
  }
  
  /* Riordina gli elementi - immagine sopra, testo sotto */
  .about-preview .about-content {
    order: 2; /* Il contenuto testuale va dopo l'immagine */
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-top: var(--space-sm);
  }
  
  .about-preview .about-image {
    order: 1; /* L'immagine va per prima */
    width: 100%;
    margin-bottom: 0;
  }
  
  /* Assicura che l'immagine si adatti correttamente */
  .about-preview .about-image img {
    width: 100%;
    height: auto;
    max-height: none; /* Rimuove eventuali limitazioni all'altezza */
    object-fit: cover;
  }
  
  /* Ottimizza la leggibilità del testo */
  .about-preview .feature-item {
    background: rgba(26, 26, 26, 0.8); /* Sfondo più scuro per le feature */
    padding: var(--space-sm);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    margin-bottom: var(--space-sm);
  }
  
  /* Assicura che il pulsante CTA sia centrato su mobile */
  .about-preview .btn {
    margin-top: var(--space-md);
    display: inline-block;
  }
}

/* Contact Page Specific Styles */
.contact-info {
  padding: var(--space-md);
}

.contact-item {
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--light-gray);
  border-radius: 8px;
  transition: all var(--transition);
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(174, 197, 53, 0.1); /* Aggiornato con il nuovo colore */
}

.contact-item h3 {
  margin-bottom: var(--space-xs);
  color: var(--accent-color);
  font-size: 1.1rem;
}

.contact-item p {
  margin: 0;
  line-height: 1.6;
}

.contact-form {
  padding: var(--space-md);
}

.map-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-secondary);
}

.map {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

/* Footer */
footer {
  background: var(--dark-gray);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--light-gray);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social {
  margin-bottom: var(--space-sm);
}

.social a {
  display: inline-block;
  margin: 0 var(--space-xs);
  padding: var(--space-xs);
  color: var(--text-secondary);
  text-decoration: none;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 1;
  transition: all var(--transition);
}

.social a:hover {
  color: var(--white);
  border-color: var(--accent-color);
  background: var(--accent-color);
  transform: translateY(-3px) scale(1.1);
}

/* WhatsApp Contact Section */
.contact-whatsapp {
  padding: var(--space-md);
  text-align: center;
}

.contact-whatsapp h2 {
  margin-bottom: var(--space-sm);
}

.contact-whatsapp p {
  margin-bottom: var(--space-lg);
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: var(--white);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--transition);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.whatsapp-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.6s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #128c7e, #25d366);
}

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

.whatsapp-btn:active {
  transform: translateY(-1px) scale(1.02);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.whatsapp-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.whatsapp-text strong {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.whatsapp-text small {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 400;
}

.contact-benefits {
  background: var(--light-gray);
  border-radius: 12px;
  padding: var(--space-md);
  margin-top: var(--space-lg);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.contact-benefits h3 {
  color: var(--accent-color);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.contact-benefits ul {
  list-style: none;
  padding: 0;
}

.contact-benefits li {
  padding: var(--space-xs) 0;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition);
}

.contact-benefits li:hover {
  color: var(--white);
  transform: translateX(5px);
}

/* Language Switcher Styles */
.language-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-right: var(--space-sm);
}

.language-flag {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
}

.language-flag:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(174, 197, 53, 0.3); /* Aggiornato con il nuovo colore */
}

.language-flag.active {
  opacity: 1;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(174, 197, 53, 0.2); /* Aggiornato con il nuovo colore */
}

/* Flag backgrounds using CSS gradients (SVG-like) */
.language-flag[data-lang="it"] {
  background: linear-gradient(90deg, #009246 33.33%, #ffffff 33.33% 66.66%, #ce2b37 66.66%);
}

.language-flag[data-lang="en"] {
  background-color: #012169; /* Blue background */
  background-image:
    /* White St. Andrew's Cross (diagonal) */
    linear-gradient(to top right, transparent 48.5%, white 48.5%, white 51.5%, transparent 51.5%),
    linear-gradient(to top left, transparent 48.5%, white 48.5%, white 51.5%, transparent 51.5%),
    /* Red St. Patrick's Cross (diagonal, thinner, offset) */
    linear-gradient(to top right, transparent 47%, #C8102E 47%, #C8102E 48.5%, white 48.5%, white 51.5%, #C8102E 51.5%, #C8102E 53%, transparent 53%),
    linear-gradient(to top left, transparent 47%, #C8102E 47%, #C8102E 48.5%, white 48.5%, white 51.5%, #C8102E 51.5%, #C8102E 53%, transparent 53%),
    /* White St. George's Cross (horizontal and vertical) */
    linear-gradient(transparent 40%, white 40%, white 60%, transparent 60%),
    linear-gradient(to right, transparent 33.33%, white 33.33%, white 66.67%, transparent 66.67%),
    /* Red St. George's Cross (horizontal and vertical, thinner) */
    linear-gradient(transparent 44%, #C8102E 44%, #C8102E 56%, transparent 56%),
    linear-gradient(to right, transparent 38.89%, #C8102E 38.89%, #C8102E 61.11%, transparent 61.11%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Responsive language switcher */
@media (max-width: 767px) {
  .language-switcher {
    order: -1;
    margin-right: auto;
    margin-left: 0;
  }
  
  .language-flag {
    width: 28px;
    height: 20px;
  }
}

/* Header layout adjustment for language switcher */
/* The original complex grid for header at 767px is removed in favor of the flex adjustments above */
/* If you wish to restore the grid, ensure HTML structure matches grid item expectations */
/* header {
  display: flex; // This is now handled above for 767px
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  position: relative; // This is from the base header style, not specific to this media query
} */

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* The problematic grid layout for header at 767px is intentionally simplified.
   The original CSS was:
@media (max-width: 767px) {
  header {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: var(--space-sm);
  }
  .logo { order: 2; justify-self: center; }
  .language-switcher { order: 1; margin: 0; }
  .hamburger { order: 4; }
  nav { order: 3; grid-column: 1 / -1; }
}
   This is commented out or removed because it doesn't align well with the current HTML structure
   where .language-switcher, .nav, and .hamburger are not all direct children of `header`.
*/

/* Contact Page Mobile Improvements */
@media (max-width: 767px) {
  /* Existing mobile styles... */
  
  /* Force contact page sections to stack vertically */
  .contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-sm);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .contact-info,
  .contact-whatsapp {
    width: 100%;
    padding: var(--space-sm);
    box-sizing: border-box;
  }
  
  /* Ensure WhatsApp section appears below contact info */
  .contact-info {
    order: 1;
  }
  
  .contact-whatsapp {
    order: 2;
    margin-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
    padding-top: var(--space-lg);
  }
  
  /* Fix WhatsApp button to fit mobile screen */
  .whatsapp-btn {
    width: 100%;
    max-width: 100%;
    padding: var(--space-sm);
    justify-content: center;
    flex-wrap: nowrap;
    box-sizing: border-box;
  }
  
  .whatsapp-text {
    text-align: left;
  }
  
  /* Ensure map fits within viewport */
  .map-section {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .map iframe {
    max-width: 100%;
    border-radius: 8px;
  }
  
  /* Fix animation classes that might interfere with layout */
  .slide-left,
  .slide-right {
    transform: none;
    opacity: 1;
  }
  
  /* Contact item adjustments */
  .contact-item {
    margin-bottom: var(--space-sm);
    padding: var(--space-sm);
  }
  
  /* Benefits section fits mobile */
  .contact-benefits {
    max-width: 100%;
    margin-top: var(--space-md);
  }
}

/* Sezione Partners */
.partners-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

.partners-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 700;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: calc(200% + 40px);
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.partner-item:hover .partner-logo {
    transform: scale(1.05);
}

/* Desktop - Griglia statica */
@media (min-width: 769px) {
    .partners-track {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 30px;
        width: 100%;
        animation: none;
    }
    
    .partner-item:nth-child(n+7) {
        display: none;
    }
}

/* Mobile - Griglia fissa 2 colonne invece del carousel */
@media (max-width: 768px) {
    .partners-section {
        padding: 40px 20px;
    }
    
    .partners-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .partners-track {
        /* Cambiato da animation a griglia statica */
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
        animation: none;
    }
    
    .partner-item {
        min-width: auto;
        width: 100%;
    }
    
    .partner-logo {
        width: 100px;
        height: 70px;
    }
    
    /* Mostra solo i primi 6 partner su mobile (3 righe x 2 colonne) */
    .partner-item:nth-child(n+7) {
        display: none;
    }
}