:root {
  --primary-color: #ff8533; /* Arancione */
  --secondary-color: #000000; /* Nero */
  --accent-color: #333333; /* Grigio scuro */
  --orange-color: #ff8533; /* Arancione più chiaro */
  --red-color: #e63e00; /* Rosso */
  --text-color: #222222; /* Quasi nero per testo */
  --light-gray: #f7f7f7;
  --medium-gray: #ddd;
  --dark-gray: #666;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --radius: 4px;
  --container-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Logo di sfondo globale fisso SOLO per la homepage */
body.home-page {
  background-image: url("../images/logo.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 900px auto; /* Aumentato da 600px a 900px */
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color); /* Arancione */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Header */
header {
  background-color: var(--orange-color); /* Arancione */
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (min-width: 768px) {
  header {
    background-image: url("../images/banner.jpg");
    background-size: cover;
    background-position: center;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo img {
  height: 60px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-list {
  margin: 0;
  padding: 0;
}

.nav-list li {
  list-style: none;
}

.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--black); /* Nero per elementi attivi */
}

.nav-list a.active::after,
.nav-list a:hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--black); /* Sottolineatura nera per elementi attivi */
  bottom: 0;
  left: 0;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile Menu Hamburger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Logo Background */
.logo-bg {
  position: relative;
  background-image: url("../images/logo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-attachment: fixed; /* Keep the background image fixed when scrolling */
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0; /* Remove padding to let child sections control their own padding */
  margin: 0 auto; /* Reduce margin */
  width: 100%;
}

.logo-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.04);
  z-index: 0;
}

.logo-bg > * {
  position: relative;
  z-index: 1; /* Ensure all children are above the overlay */
}

/* Sezioni trasparenti per mostrare il logo di sfondo globale */
.logo-bg-wrapper {
  background: none; /* Rimosso background per mostrare il logo globale */
  position: relative;
  min-height: 100vh;
}

/* Accorcia il logo-bg-wrapper che contiene la sezione partners */
.logo-bg-wrapper:last-of-type {
  min-height: 50vh;
}

.logo-bg-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.6
  ); /* Ridotto da 0.75 a 0.60 per logo più scuro */
  z-index: 0;
}

.logo-bg-wrapper > section {
  position: relative;
  z-index: 10;
}

/* Hero section with dark overlay */
.logo-bg-wrapper .hero {
  position: relative;
  padding: 80px 0;
  text-align: center;
}

.logo-bg-wrapper .hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for the hero section */
  z-index: 0;
}

.logo-bg-wrapper .hero .container {
  position: relative;
  z-index: 1;
}

.logo-bg-wrapper .hero-content {
  color: #ffffff;
}

/* Features section with light overlay */
.logo-bg-wrapper .features {
  position: relative;
  padding: 5rem 0;
}

.logo-bg-wrapper .features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.85); /* Light overlay for features */
  z-index: 0;
}

.logo-bg-wrapper .features .container {
  position: relative;
  z-index: 1;
}

/* Applica overlay trasparente a tutte le sezioni dentro logo-bg-wrapper */
.logo-bg-wrapper .services-preview,
.logo-bg-wrapper .gallery,
.logo-bg-wrapper .oil-types,
.logo-bg-wrapper .partners,
logo-bg-wrapper .testimonials {
  position: relative;
  padding: 5rem 0;
  background-color: transparent !important;
}

.logo-bg-wrapper .services-preview::before,
.logo-bg-wrapper .gallery::before,
logo-bg-wrapper .oil-types::before,
.logo-bg-wrapper .partners::before,
logo-bg-wrapper .testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ) !important; /* Overlay più trasparente */
  z-index: 0;
}

.logo-bg-wrapper .services-preview .container,
.logo-bg-wrapper .gallery .container,
logo-bg-wrapper .oil-types .container,
.logo-bg-wrapper .partners .container,
logo-bg-wrapper .testimonials .container {
  position: relative;
  z-index: 1;
}

/* Rimuovi eventuali background dalle card e elementi interni */
.logo-bg-wrapper .service-card,
.logo-bg-wrapper .gallery-item,
.logo-bg-wrapper .oil-brand,
.logo-bg-wrapper .partner-card,
.logo-bg-wrapper .testimonial {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* Rimuovi background dalle sezioni per homepage - solo logo globale del body */
.home-page .logo-bg-wrapper {
  background-image: none !important;
  background: none !important;
}

/* Forza la trasparenza su tutta la pagina home - DISABILITATO */
.logo-bg-wrapper.disabled {
  background-image: url("../images/logo.jpg") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-attachment: fixed !important;
  position: relative !important;
  min-height: 100vh;
}

/* Assicurati che tutte le sezioni siano trasparenti */
.logo-bg-wrapper section {
  background-color: transparent !important;
}

/* Rimuovi background da elementi specifici che potrebbero bloccare la vista */
.logo-bg-wrapper .light-bg,
.logo-bg-wrapper .section-padding {
  background-color: transparent !important;
}

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

/* Remove hero-bg background */
.hero-bg {
  position: relative;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  width: 25vh; /* Fixed width for consistent button sizing */
}

/* Service icons styling */
.service-icon {
  width: 65px;
  height: 65px;
  object-fit: cover;
  margin-right: 1rem;
  border-radius: 6px;
}

.cta-button.primary {
  background-color: var(--red-color); /* Rosso */
  color: var(--white);
}

.cta-button.primary:hover {
  background-color: #c73500; /* Rosso più scuro */
}

.cta-button.secondary {
  background-color: var(--white);
  color: var(--red-color); /* Rosso */
  border: 2px solid var(--red-color);
}

.cta-button.secondary:hover {
  background-color: var(--red-color);
  color: var(--white);
}

/* Features Section */
.features {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
  background-color: var(--white); /* Adding white background */
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color); /* Arancione */
  margin-bottom: 1.5rem;
}

/* Add styling for feature GIFs */
.feature-gif {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* Services Preview */
.services-preview {
  background-color: var(--light-gray);
  padding: 5rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3,
.service-card p {
  padding: 0 1.5rem;
}

.service-card h3 {
  margin-top: 1.5rem;
}

.service-card p {
  padding-bottom: 1.5rem;
}

.text-center {
  text-align: center;
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
  background-color: #f9f9f9;
}

.testimonials-container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-height: 300px;
}

.google-reviews-link {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  transition: transform 0.3s ease;
  display: block;
}

.google-reviews-link:hover {
  transform: scale(1.1);
}

.google-logo-large {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  min-height: 250px;
}

.testimonials-track {
  position: relative;
  height: 100%;
  min-height: 250px;
}

.testimonial {
  text-align: center;
  color: var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 1;
  box-sizing: border-box;
  padding: 3rem 2rem;
  min-height: 250px;
}

/* Desktop: side by side layout */
@media (min-width: 769px) {
  .testimonials-track {
    display: flex;
    position: relative;
  }

  .testimonial {
    width: 50%;
    padding: 2rem 1.5rem;
    position: relative;
    left: auto;
    top: auto;
  }

  .testimonial:first-of-type {
    border-right: 1px solid #eee;
  }
}

.testimonial:first-child {
  opacity: 1;
  z-index: 2;
}

.stars {
  color: #ff8533;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  font-size: 1.1rem;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.testimonial cite {
  font-weight: 600;
  color: var(--primary-color);
  font-style: normal;
  text-align: center;
}

.testimonials-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #f8f8f8;
  gap: 2rem;
}

.testimonial-nav {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.testimonial-nav:hover {
  background-color: var(--accent-color);
  transform: scale(1.1);
}

.testimonial-nav:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.testimonials-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #ff8533;
  transform: scale(1.2);
}

.dot:hover {
  background-color: #ff8533;
  opacity: 0.8;
}

/* Animazione fade per le transizioni */
.testimonial.fade-in {
  animation: fadeInTestimonial 0.5s ease-in-out;
}

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

/* Footer */
footer {
  background-color: var(--secondary-color); /* Nero */
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color); /* Arancione */
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.footer-column address {
  font-style: normal;
}

.phone-number {
  color: var(--white);

  /* Prevent iOS detection and styling */
  -webkit-text-fill-color: var(--white) !important;
  text-decoration: none !important;
  -webkit-touch-callout: none; /* Disables iOS callout */
  pointer-events: none; /* Prevents iOS from making it clickable */

  /* Make it look like normal text */
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center; /* Centers items horizontally */
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a[aria-label="Instagram"] {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-links a[aria-label="WhatsApp"] {
  background-color: #25d366;
}

.social-links a[aria-label="Facebook"] {
  background-color: #1877f2;
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0.5rem 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.privacy-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

.privacy-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Gallery Page Styles */
.page-header {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 4rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.gallery-full {
  padding: 4rem 0;
}

.gallery-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.category-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.gallery-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.gallery-item-full {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.gallery-item-full:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

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

.gallery-overlay-full {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: var(--white);
  padding: 3rem 2rem 2rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item-full:hover .gallery-overlay-full {
  transform: translateY(0);
}

.gallery-overlay-full h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.gallery-overlay-full p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.4;
}

.cta-section {
  background-color: var(--light-gray);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Mobile Responsive for Gallery Page */
@media (max-width: 768px) {
  .page-header {
    padding: 4rem 0 3rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .gallery-categories {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 200px;
  }

  .gallery-grid-full {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-item-full {
    margin-bottom: 1rem;
  }

  .gallery-overlay-full {
    padding: 2rem 1.5rem 1.5rem;
  }

  /* CTA Container Mobile */
  .cta-container {
    padding: 2.5rem 1.5rem;
    margin: 2rem 1rem 0;
    min-height: 180px;
  }

  .cta-container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .cta-container .btn-special {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* Ottimizzazioni per la pagina contatti */
.page-header {
  background-color: var(--secondary-color); /* Nero */
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.contact-form {
  padding: 2rem;
  background-color: var(--light-gray);
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius);
  font-family: inherit;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color); /* Arancione */
  margin-right: 1rem;
  width: 2rem;
  text-align: center;
}

.contact-details {
  padding: 2rem;
}

/* Message styles for contact form */
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.success-message p,
.error-message p {
  margin: 0;
  font-weight: 600;
}

/* Stili aggiuntivi per le pagine in italiano */
.about-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.about-content h3 {
  margin-top: 2rem;
}

.about-content ul {
  margin-left: 1.5rem;
  margin-bottom: 2rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--light-gray);
  border-radius: var(--radius);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-item i {
  font-size: 2rem;
  color: var(--primary-color); /* Arancione */
  margin-right: 1.5rem;
  min-width: 2.5rem;
  text-align: center;
}

.service-item h3 {
  margin-bottom: 0.5rem;
}

.services-content {
  max-width: 900px;
  margin: 0 auto;
}

.cta-container {
  text-align: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  background-color: var(--secondary-color); /* Nero */
  color: var(--white);
  border-radius: var(--radius);
}

.cta-container p {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.cta-container .btn-special {
  display: inline-block;
  background-color: #dc3545 !important;
  color: white !important;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.cta-container .btn-special:hover {
  background-color: #c82333 !important;
}

.services-list {
  padding: 3rem 0;
}

/* Gallery List (stile mobile semplice) */
.gallery-list {
  padding: 3rem 0;
}

.gallery-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Stili per la pagina Chi Siamo migliorata */
.section-padding {
  padding: 3rem 0;
}

.light-bg {
  background-color: var(--light-gray);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-grid .about-text {
  padding-right: 1rem;
}

.about-grid .about-text p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

.about-grid.reversed {
  direction: rtl;
}

.about-grid.reversed .about-text {
  direction: ltr;
}

.about-grid.reversed .about-image {
  direction: ltr;
}

.about-grid .about-text h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.about-grid .about-text h2::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
}

.rounded-image {
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.rounded-image:hover {
  transform: scale(1.02);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  z-index: 10;
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 1.5rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.values-section {
  padding: 4rem 0;
  background-color: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border: 1px solid var(--light-gray);
}

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

.value-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-gif {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.value-card h3 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

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

/* Mobile responsive for Values Section */
@media (max-width: 768px) {
  .values-section {
    padding: 3rem 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 400px;
    margin: 2rem auto 0;
  }

  .value-card {
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
  }

  .value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
  }

  .value-icon {
    margin-bottom: 1.5rem;
  }

  .feature-gif {
    width: 100px;
    height: 100px;
    border: 3px solid var(--primary-color);
    padding: 10px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .value-card h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
  }

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

@media (max-width: 480px) {
  .values-section {
    padding: 2.5rem 0;
  }

  .values-grid {
    gap: 1.2rem;
    max-width: 350px;
  }

  .value-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .feature-gif {
    width: 90px;
    height: 90px;
    border-width: 2px;
    padding: 8px;
  }

  .value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .value-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-member {
  background-color: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
}

.member-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.member-info {
  padding: 1.5rem;
}

.member-title {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

.stat-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.stat-number.counting::after {
  content: "";
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stat-label {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.text-center {
  text-align: center;
}

.cta-box {
  background: var(--black);
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-box p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--white);
}

.cta-box .cta-button {
  background-color: #dc3545;
  color: white;
  border: none;
}

.cta-box .cta-button:hover {
  background-color: #c82333;
  color: white;
}

/* Gallery Section */
.gallery {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

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

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.gallery-overlay p {
  margin: 0;
  opacity: 0.9;
}

/* Oil Types Section */
.oil-types {
  padding: 4rem 0;
  background-color: var(--white);
}

.oil-brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.oil-brand {
  background-color: var(--light-gray);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.oil-brand-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--medium-gray);
}

.oil-brand-header img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 1.5rem;
  border-radius: var(--radius);
}

.oil-brand-header h3 {
  margin: 0;
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.oil-description p {
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.oil-description ul {
  list-style: none;
  padding: 0;
}

.oil-description li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-color);
}

.oil-description li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Partners Section */
.partners {
  padding: 4rem 0;
  background-color: var(--light-gray);
}

.partners-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.partner-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.partner-card a {
  display: flex;
  text-decoration: none;
  color: inherit;
  padding: 2rem;
  align-items: center;
  gap: 1.5rem;
}

.partner-logo {
  flex-shrink: 0;
  padding: 0;
  background-color: transparent;
  border-radius: var(--radius);
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.partner-info {
  flex: 1;
}

.partner-info h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.partner-info p {
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.partner-link {
  color: var(--secondary-color);
  font-weight: 600;
  transition: var(--transition);
}

.partner-card:hover .partner-link {
  color: var(--primary-color);
}

.partner-link i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* Section Subtitle */
.section-subtitle {
  text-align: center;
  color: var(--black);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

/* ===========================
   GALLERY STYLES - RESPONSIVE
   =========================== */

/* Versione Desktop della Galleria */
.gallery-desktop {
  display: block;
  padding: 3rem 0;
}

/* Versione Mobile della Galleria (nascosta su desktop) */
.gallery-mobile {
  display: none;
}

.gallery-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Filtri categoria */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.category-btn {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category-btn:hover,
.category-btn.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Griglia galleria desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.gallery-item-full {
  position: relative;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.gallery-item-full:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.gallery-item-full img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay-full {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item-full:hover .gallery-overlay-full {
  transform: translateY(0);
}

.gallery-overlay-full h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.gallery-overlay-full p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  width: 800px;
  height: 600px;
  max-width: 90vw;
  max-height: 85vh;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  animation: slideIn 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.lightbox-info {
  padding: 2rem;
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.lightbox-info h3 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.lightbox-info p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
}

/* Responsive Lightbox Styles */
@media screen and (max-width: 768px) {
  .lightbox-content {
    width: 90vw;
    height: 70vh;
    max-width: 500px;
    max-height: 600px;
  }

  .lightbox img {
    height: 60%;
  }

  .lightbox-info {
    padding: 1.5rem;
    height: 40%;
  }

  .lightbox-info h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .lightbox-content {
    width: 95vw;
    height: 65vh;
    max-width: 400px;
    max-height: 500px;
  }

  .lightbox img {
    height: 65%;
  }

  .lightbox-info {
    padding: 1rem;
    height: 35%;
  }

  .lightbox-info h3 {
    font-size: 1.2rem;
  }
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

.no-scroll {
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Aggiunta animazione per il lightbox mobile */
@keyframes slideInMobile {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Media Query per Mobile */
@media screen and (max-width: 768px) {
  .gallery-desktop {
    display: none;
  }

  .gallery-mobile {
    display: block;
    padding-top: 3rem; /* Più spazio sopra */
    background-color: white;
  }

  .gallery-mobile .section-title {
    margin-bottom: 2rem; /* Più spazio sotto il titolo */
  }

  /* Griglia 2x per mobile */
  .gallery-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-bottom: 3rem;
  }

  .gallery-item-mobile {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1; /* Mantiene le card quadrate */
  }

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

  .gallery-image-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .gallery-item-mobile:hover .gallery-image-mobile {
    transform: scale(1.05);
  }

  /* Lightbox mobile - immagine completa */
  .lightbox-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
    box-sizing: border-box;
  }

  .lightbox-content-mobile {
    position: relative;
    width: 90vw;
    height: 70vh;
    max-width: 500px;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: slideInMobile 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  }

  .lightbox-content-mobile img {
    width: 100%;
    height: 60%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }

  .lightbox-info-mobile {
    padding: 1.5rem;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
  }

  .lightbox-info_mobile h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
  }

  .lightbox-info_mobile p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
  }

  .lightbox-close-mobile {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .lightbox-close-mobile:hover {
    background: var(--primary-color);
    transform: scale(1.1);
  }

  /* Per schermi molto piccoli */
  @media (max-width: 480px) {
    .gallery-grid-mobile {
      gap: 0.75rem;
    }

    .lightbox-content-mobile {
      max-width: 95vw;
      margin: 0.5rem;
      max-height: 90vh;
    }

    .lightbox-content-mobile img {
      max-height: 50vh;
    }

    .lightbox-info-mobile {
      padding: 1rem;
    }

    .lightbox-info-mobile h3 {
      font-size: 1.1rem;
    }

    .lightbox-info_mobile p {
      font-size: 0.9rem;
    }
  }
}

/* New Contact Page Styles - Information Only */
.contact-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  text-align: left;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-right: 2rem;
  flex-shrink: 0;
}

.contact-card-content {
  flex: 1;
}

.contact-card h3 {
  color: var(--black);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.schedule p {
  margin-bottom: 1rem;
}

.schedule strong {
  color: var(--black);
}

.location-section {
  background-color: var(--light-gray);
}

.location-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.location-text h3 {
  color: var(--black);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.location-text h3:first-child {
  margin-top: 0;
}

.emergency-info {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.emergency-info h3 {
  color: var(--black);
  margin-bottom: 1rem;
}

.emergency-phone {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 1rem 0;
  transition: var(--transition);
}

.emergency-phone:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.emergency-note {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float a:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 1.8rem;
  color: white;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  }
}

/* Mobile responsive for WhatsApp button */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float a {
    width: 50px;
    height: 50px;
  }

  .whatsapp-float i {
    font-size: 1.5rem;
  }
}

/* Stats Grid Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }
}

/* Privacy Policy Styles */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.privacy-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privacy-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-gray);
}

.privacy-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.privacy-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.privacy-section strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.cookie-notice {
  background-color: #e8f5e8;
  border: 2px solid #4caf50;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1rem 0;
}

.cookie-notice p {
  margin-bottom: 0.5rem;
  color: #2e7d32;
}

.cookie-notice p:first-child {
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-info {
  background-color: var(--light-gray);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

/* Privacy Responsive */
@media (max-width: 768px) {
  .privacy-content {
    padding: 2rem 0;
  }

  .privacy-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .privacy-section h2 {
    font-size: 1.3rem;
  }

  .contact-info {
    padding: 1.25rem;
  }
}

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

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

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
}

.fade-up {
  transform: translateY(30px);
}

.fade-up.animate {
  transform: translateY(0);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-left.animate {
  transform: translateX(0);
}

.fade-right {
  transform: translateX(30px);
}

.fade-right.animate {
  transform: translateX(0);
}

.scale-in {
  transform: scale(0.8);
}

.scale-in.animate {
  transform: scale(1);
}

.slide-down {
  transform: translateY(-30px);
}

.slide-down.animate {
  transform: translateY(0);
}

/* Hero Section Animations */
.hero h1 {
  animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
  animation: fadeInUp 1s ease 0.4s both;
}

.hero .cta-button {
  animation: fadeInUp 1s ease 0.6s both;
}

/* Card Hover Animations */
.service-card,
.feature-card,
.value-card,
.partner-card,
.gallery-item,
.contact-card {
  transition: all 0.3s ease;
}

.service-card:hover,
.feature-card:hover,
.value-card:hover,
.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Button Hover Animations */
.cta-button,
.btn-special,
.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-button:hover,
.btn-special:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Navigation Animation */
.nav-list li {
  transition: transform 0.3s ease;
}

.nav-list li:hover {
  transform: translateY(-2px);
}

/* Image Hover Effects */
.rounded-image,
.gallery-image {
  transition: transform 0.3s ease;
}

.rounded-image:hover,
.gallery-image:hover {
  transform: scale(1.05);
}

/* Loading Animation for Images */
.loading-image {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.loading-image.loaded {
  opacity: 1;
}

/* Stagger Animation Delays */
.stagger-1 {
  animation-delay: 0.1s;
}
.stagger-2 {
  animation-delay: 0.2s;
}
.stagger-3 {
  animation-delay: 0.3s;
}
.stagger-4 {
  animation-delay: 0.4s;
}
.stagger-5 {
  animation-delay: 0.5s;
}
.stagger-6 {
  animation-delay: 0.6s;
}

/* Section Title Animations */
.section-title {
  position: relative;
}

.section-title::after {
  transition: width 0.8s ease;
}

.section-title.animate::after {
  width: 60px;
}

/* Performance optimizations for animations */
.animate-on-scroll,
.service-card,
.feature-card,
.value-card,
.partner-card,
.gallery-item,
.contact-card {
  will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .service-card,
  .feature-card,
  .value-card,
  .partner-card,
  .gallery-item,
  .contact-card {
    animation: none !important;
    transition: none !important;
  }

  .hero h1,
  .hero p,
  .hero .cta-button {
    animation: none !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .animate-on-scroll {
    transition-duration: 0.4s;
  }

  .service-card:hover,
  .feature-card:hover,
  .value-card:hover,
  .contact-card:hover {
    transform: none;
  }

  .gallery-item:hover {
    transform: none;
  }
}

/* Mobile responsive for Partners Section */
@media (max-width: 768px) {
  .partners {
    padding: 3rem 0;
  }

  .partners-grid {
    max-width: 100%;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .partner-card a {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    align-items: center;
  }

  .partner-logo {
    width: 140px;
    height: 140px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .partner-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .partner-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .partner-info p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 1rem 0;
  }

  .partner-link {
    margin-top: auto;
  }
}

/* Mobile responsive for Testimonials Section */
@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 0;
  }

  .google-reviews-link {
    top: 10px;
    right: 10px;
  }

  .google-logo-large {
    width: 35px;
    height: 35px;
  }

  .testimonials-container {
    min-height: 380px;
    margin: 0 1rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }

  .testimonials-slider {
    min-height: 300px;
    position: relative;
  }

  .testimonials-track {
    position: relative !important;
    min-height: 300px;
    display: block !important;
  }

  .testimonial {
    padding: 2.5rem 2rem;
    min-height: 300px;
    justify-content: space-between;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    position: absolute !important;
    border-right: none !important;
  }

  .testimonial blockquote {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    font-style: italic;
    color: var(--secondary-color);
  }

  .testimonial cite {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
  }

  .stars {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #ff8533;
  }

  .testimonials-controls {
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    border-top: 1px solid #e0e0e0;
  }

  .testimonials-nav {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }

  .testimonials-dots {
    gap: 0.7rem;
  }

  .dot {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-color: transparent;
  }

  .dot.active {
    background-color: #ff8533;
    border-color: #ff8533;
    transform: scale(1.3);
  }
}

@media (max-width: 480px) {
  .partners {
    padding: 2.5rem 0;
  }

  .partner-card a {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .partner-logo {
    width: 120px;
    height: 120px;
  }

  .partner-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .partner-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }
}

/* Mobile responsive for Testimonials Section - Small screens */
@media (max-width: 480px) {
  .testimonials {
    padding: 2.5rem 0;
  }

  .testimonials-container {
    margin: 0 0.5rem;
    min-height: 350px;
    border-radius: 12px;
  }

  .testimonials-slider {
    min-height: 270px;
  }

  .testimonial {
    padding: 2rem 1.5rem;
    min-height: 270px;
  }

  .testimonial blockquote {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
  }

  .testimonial cite {
    font-size: 0.88rem;
  }

  .stars {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .testimonials-controls {
    padding: 1.2rem;
  }

  .testimonials-nav {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

/* Mobile responsive for About Grid */
@media (max-width: 768px) {
  /* About Grid Mobile - foto sotto il testo */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-grid.reversed {
    direction: ltr;
  }

  .about-grid .about-text {
    padding-right: 0;
    order: 1;
  }

  .about-grid .about-image {
    order: 2;
  }

  .about-grid.reversed .about-text {
    order: 1;
  }

  .about-grid.reversed .about-image {
    order: 2;
  }
}

/* Work in Progress Page Styles */
.work-in-progress {
  text-align: center;
  padding: 4rem 0;
}

.wip-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--light-gray);
}

.wip-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ff8533 0%, #e63e00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wip-content h2 {
  color: var(--secondary-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.wip-description {
  font-size: 1.2rem;
  color: var(--dark-gray);
  line-height: 1.7;
  margin-bottom: 3rem;
}

.wip-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.wip-actions .cta-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wip-actions .cta-button.primary {
  background: linear-gradient(135deg, #e1306c 0%, #f56040 50%, #fcaf45 100%);
  color: white;
  border: none;
}

.wip-actions .cta-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.wip-actions .cta-button.secondary {
  background-color: #25d366;
  color: white;
  border: none;
}

.wip-actions .cta-button.secondary:hover {
  background-color: #20c55a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.wip-features {
  text-align: left;
  background: var(--light-gray);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.wip-features h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.features-list li {
  display: flex;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--medium-gray);
  font-size: 1.1rem;
  color: var(--text-color);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li i {
  color: var(--primary-color);
  width: 30px;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.wip-timeline {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--red-color) 100%
  );
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
}

.timeline-text {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.timeline-text i {
  font-size: 1.3rem;
}

/* Responsive per logo di sfondo globale SOLO per homepage */
@media (max-width: 768px) {
  body.home-page {
    background-size: 500px auto; /* Aumentato da 350px a 500px */
  }

  .logo-bg-wrapper {
    min-height: 80vh;
  }

  .logo-bg-wrapper::before {
    background-color: rgba(
      255,
      255,
      255,
      0.65
    ); /* Leggermente meno trasparente su mobile */
  }
}

@media (max-width: 480px) {
  body.home-page {
    background-size: 400px auto; /* Aumentato da 250px a 400px */
  }

  .logo-bg-wrapper {
    min-height: 70vh;
  }
}

/* Logo background globale solo sul body per tutte le pagine */

.footer-logo {
  text-align: center;
  margin: 1rem 0;
}

.footer-logo img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 8px;
}
