:root {
  --primary-color: #dbc0b7;
  --primary-dark: #c4a79d;
  --primary-light: #e8d6cf;
  --text-dark: #4a3f3a;
  --text-light: #8c7b75;
  --background-light: #faf7f6;
  --white: #ffffff;
  --black: #000000;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Selector */
.language-selector {
  position: relative;
  z-index: 100000;
}

.lang-toggle, .menu-toggle {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  border-radius: 50%;
  transition: var(--transition);
  padding: 0;
  position: relative;
  z-index: 100000;
}

.lang-toggle:hover, .menu-toggle:hover {
  background-color: var(--background-light);
  transform: translateY(-2px);
}

.lang-toggle .icon, .menu-toggle .icon {
  width: 24px;
  height: 24px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.5rem;
  display: none;
  min-width: 150px;
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.lang-dropdown.visible {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: fadeInDown 0.3s ease;
}

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

.lang-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: var(--background-light);
  transform: translateX(5px);
}

.lang-btn.active {
  background: var(--primary-color);
  color: var(--white);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: 1rem;
    background: var(--white);
    padding: 0.5rem;
    flex-direction: column;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    animation: slideInRight 0.3s ease;
  }

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

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 1rem;
    border-radius: 8px;
    transition: var(--transition);
  }

  .nav-links a:hover {
    background: var(--background-light);
    transform: translateX(5px);
  }

  .nav-links a::after {
    display: none;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  body.menu-open {
    overflow: hidden;
  }
}

/* Hero Section */
.hero {
  height: 56.25vw;
  max-height: 80vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  margin-top: 80px;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-logo {
  margin-bottom: 1.5rem;
  animation: float 6s ease-in-out infinite;
}

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

.hero-logo img {
  max-width: 200px;
  height: auto;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::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.7s ease;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

/* Stile per il pulsante di invio del form con successo */
.btn-primary.success {
  background-color: #2f855a; /* Verde per successo */
  box-shadow: 0 4px 12px rgba(47, 133, 90, 0.15);
}

/* Stile per il pulsante di invio del form con errore */
.btn-primary.error {
  background-color: #e53e3e; /* Rosso per errore */
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.15);
  color: white;
}

/* Stile per il contenitore del testo del pulsante */
.btn-primary .button-text {
  display: inline-block;
  transition: all 0.3s ease;
}

/* Stile per la spunta che appare nel pulsante */
.btn-primary .success-checkmark {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: scale(0);
}

.btn-primary.success .success-checkmark {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Sections */
section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-dark);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary-color);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease;
}

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

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

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    margin-bottom: 2rem;
  }
}

/* Services Section */
.services {
  background: var(--background-light);
  padding: 5rem 0;
  overflow-x: hidden;
  overflow-anchor: none;
}

/* Services Header - Sostituito con Services Selection */
.services-header {
  display: none; /* Nascondiamo il vecchio layout */
}

/* Services Selection - Nuovo layout */
.services-selection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 2rem auto;
  max-width: 500px;
  padding: 1rem 0;
  border-top: 1px solid var(--primary-light);
  border-bottom: 1px solid var(--primary-light);
  margin-bottom: 1rem;
}

.active-category-info {
  flex-shrink: 0;
  text-align: right;
  padding-right: 1rem;
}

.active-category-title {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
  position: relative;
  display: inline-block;
  font-weight: normal;
}

.active-category-title::after {
  display: none; /* Rimuovo la linea sotto il titolo */
}

/* Animazione per il cambio di categoria */
@keyframes categoryChange {
  0% { opacity: 1; }
  100% { opacity: 1; }
}

.active-category-title.category-changed {
  animation: none;
}

/* Slider Navigation - Standalone */
.slider-navigation.standalone {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  padding: 0;
  margin: 0;
}

.slider-dots {
  display: flex;
  gap: 0.75rem;
}

.slider-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--background-light);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.slider-dot::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background-color: var(--primary-color);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.slider-dot:hover::before {
  transform: scale(0.6);
}

.slider-dot.active::before {
  transform: scale(1);
}

/* Responsive layout for mobile devices */
@media (max-width: 768px) {
  .services-selection {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    margin: 1.5rem auto;
  }
  
  .active-category-info {
    text-align: center;
    padding-right: 0;
  }
  
  .active-category-title {
    font-size: 1.5rem;
  }
  
  .active-category-title::after {
    left: 50%;
    right: auto;
    width: 60px;
    transform: translateX(-50%);
  }
}

/* Original Services Section Styles */
.services-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  padding: 0 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

/* New Service Category Button Style */
.category-btn {
  background: var(--white);
  color: var(--text-dark);
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 140px;
  max-width: 180px;
  height: 48px;
  z-index: 1;
}

.category-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  z-index: -1;
}

.category-btn:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.category-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.category-btn.active {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

.category-btn.active::after {
  transform: scaleX(1);
  height: 100%;
  background: var(--primary-color);
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.service-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

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

.service-overlay svg {
  width: 16px;
  height: 16px;
}

.service-content {
  padding: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.service-card:hover .service-title {
  color: var(--primary-color);
}

.service-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--background-light);
}

.service-price {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.5rem;
}

.service-book-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.service-book-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.7s ease;
}

.service-book-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

.service-book-btn svg {
  width: 16px;
  height: 16px;
}

/* Price Lists */
.price-lists-container {
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  overflow: visible;
  position: relative;
  transition: min-height 0.3s ease;
}

.price-list-column {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.price-list-column.active {
  display: block;
  opacity: 1;
}

.price-lists-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

/* Stile uniforme per tutti i contenitori di listino prezzi */
.price-list {
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem 1.5rem;
  margin-bottom: 0;
  border-top: 4px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Regole di altezza per i container dei listini */
.price-list-column .price-list {
  height: auto;
  max-height: 550px;
  min-height: 350px; /* Riduciamo l'altezza minima */
  overflow-y: auto !important;
}

/* Altezze specifiche per manicure e pedicure */
.price-list-column[data-category="manicure"] .price-list,
.price-list-column[data-category="pedicure"] .price-list {
  min-height: 320px; /* Altezza ridotta specificatamente per manicure e pedicure */
  max-height: 450px;
}

/* Altezze per waxing che potrebbero avere più contenuto */
.price-list-column[data-category="waxing_women"] .price-list,
.price-list-column[data-category="waxing_men"] .price-list {
  min-height: 350px; 
  max-height: 550px;
}

/* Versione mobile con altezze più contenute */
@media (max-width: 768px) {
  .price-list-column .price-list {
    min-height: 320px;
    max-height: 480px;
  }
  
  .price-list-column[data-category="manicure"] .price-list,
  .price-list-column[data-category="pedicure"] .price-list {
    min-height: 280px;
    max-height: 400px;
  }
  
  .price-list-column[data-category="waxing_women"] .price-list,
  .price-list-column[data-category="waxing_men"] .price-list {
    min-height: 320px;
    max-height: 480px;
  }
}

/* Uniformiamo lo stile delle scrollbar per tutte le categorie */
.price-list::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;
}

.price-list::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Stile uniforme per tutti gli elementi di listino */
.price-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--background-light);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.price-list-item:last-child {
  border-bottom: none;
  padding-bottom: 1.5rem;
}

.price-list h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 600;
}

.price-list h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.price-list-service {
  color: var(--text-dark);
  font-weight: 500;
  transition: transform 0.3s ease;
}

.price-list-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

/* Rimuovo l'animazione ondulata */
.price-list-column.active .price-list-item {
  opacity: 1;
  animation: none;
}

/* Ottimizzazione visualizzazione mobile dei listini prezzi */
@media (max-width: 768px) {
  /* Sistemazione del padding per i listini prezzi su mobile */
  .price-list {
    padding: 1.5rem 1rem;
    height: auto;
    min-height: 400px;
    max-height: 500px;
}

  /* Manteniamo gli elementi dei listini su una sola riga senza andare a capo */
.price-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--background-light);
    flex-wrap: nowrap; /* Impediamo il wrapping */
    overflow: hidden; /* Nascondiamo eventuali overflow */
  }
  
  /* Nome del servizio */
  .price-list-service {
    flex: 1;
    padding-right: 0.5rem;
    white-space: normal; /* Permette di andare a capo al titolo */
    font-size: 0.95rem; /* Riduciamo leggermente il font */
  }
  
  /* Prezzo del servizio */
  .price-list-price {
    flex: 0 0 auto; /* Non permettiamo al prezzo di comprimersi */
    white-space: nowrap; /* Non permettiamo al prezzo di andare a capo */
    text-align: right;
    font-size: 1rem;
    font-weight: 600;
    padding-left: 0.5rem;
    min-width: 80px; /* Assegniamo una larghezza minima ai prezzi */
  }
  
  /* Riduzione grandezza del titolo del listino su mobile */
  .price-list h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

  /* Bottoni categorie più compatti su mobile */
  .category-btn {
    padding: 0.75rem 0.5rem;
    height: 42px;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Riduciamo lo spazio tra elementi del listino su mobile */
  .services-categories {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}
}

/* Stile specifico per dispositivi molto piccoli */
@media (max-width: 380px) {
  .price-list-service {
    font-size: 0.9rem;
}

.price-list-price {
    font-size: 0.95rem;
    min-width: 60px;
}

  .price-list {
    padding: 1.25rem 0.75rem;
}

  /* Categorie ancora più compatte */
  .category-btn {
    font-size: 0.85rem;
    padding: 0.6rem 0.4rem;
    min-height: 40px;
  }
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
  transition: opacity 0.3s ease;
}

.gallery-grid.updating {
  opacity: 0;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  background: var(--white);
}

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

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

/* Stile mobile galleria */
@media (max-width: 768px) {
  .gallery-grid {
    padding: 0;
    gap: 0;
  }

  .gallery-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100vw;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: var(--white);
  }

  .gallery-slider .gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .gallery-slider .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Indicatore iniziale di touch */
  .gallery-slider:before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 100px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12h22'/%3E%3Cpath d='M8 5l-7 7 7 7'/%3E%3Cpath d='M16 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: touchHint 3s ease infinite;
    opacity: 0.9;
  }

  @keyframes touchHint {
    0%, 100% {
      transform: translateX(-50%) scale(1);
      opacity: 0.9;
    }
    50% {
      transform: translateX(-50%) scale(1.1);
      opacity: 0.7;
    }
  }

  /* Swipe verso sinistra */
  .gallery-slider.swipe-left:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M12 5l-7 7 7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: swipeIndicator 0.5s ease;
    opacity: 0.9;
  }

  /* Swipe verso destra */
  .gallery-slider.swipe-right:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5l7 7-7 7'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: swipeIndicator 0.5s ease;
    opacity: 0.9;
  }

  @keyframes swipeIndicator {
    0% {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0.5;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.2);
      opacity: 0.9;
    }
    100% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.7;
    }
  }

  .gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0 1rem;
  }

  .gallery-nav-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
  }

  .gallery-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .gallery-nav-btn:not(:disabled):hover {
    background: var(--background-light);
  }

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

  .gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-light);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
  }

  .gallery-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Contact Section */
.contact {
  background: var(--background-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  padding: 0 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Stile uniforme per il form dei contatti */
.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  height: auto;
  min-height: 350px;
  overflow-y: visible;
}

/* Container per messaggi di stato */
#form-status-container {
  position: absolute;
  bottom: 0;
  right: 0;
  display: none; /* Non più visibile di default */
  margin-left: 1rem;
  margin-bottom: 0;
  align-items: center;
  height: 42px;
  padding: 0 1rem;
  border-radius: 8px;
}

.success-message,
.error-message {
  padding: 0;
  border-radius: 8px;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  animation: none;
  background: none;
  border: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.success-message {
  color: #2f855a;
}

.error-message {
  color: #c53030;
}

@media (max-width: 768px) {
  #form-status-container {
    position: relative;
    left: auto;
    right: auto;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0;
    height: auto;
    margin-left: 0;
    text-align: center;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
  z-index: 99999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.cookie-banner.active {
  transform: translateY(0);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.cookie-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem;
}

.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cookie-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.cookie-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  border-radius: 50%;
  transition: var(--transition);
}

.cookie-close:hover {
  background: var(--background-light);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.cookie-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookie-options {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cookie-option {
  background: var(--background-light);
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cookie-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cookie-option-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.cookie-checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.cookie-checkbox-label input[type="checkbox"]:checked {
  background: var(--primary-color);
}

.cookie-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.cookie-checkbox-label input[type="checkbox"]:disabled {
  background: var(--text-light);
  border-color: var(--text-light);
  cursor: not-allowed;
}

.cookie-checkbox-text {
  font-weight: 500;
  color: var( --text-dark);
}

.cookie-option-description {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn-accept-all {
  background: var(--primary-color);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.cookie-btn-accept-all::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.7s ease;
}

.cookie-btn-accept-all:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn-accept-all:hover::before {
  left: 100%;
}

.cookie-btn-accept-selected {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.cookie-btn-accept-selected:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.cookie-more-info {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cookie-more-info:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

/* Animazione pulse per cookie button */
@keyframes cookieButtonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(219, 192, 183, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(219, 192, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(219, 192, 183, 0);
  }
}

.cookie-settings-button.pulse {
  animation: cookieButtonPulse 2s infinite;
}

/* Correzione cookie-settings-button */
.cookie-settings-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Aumentato z-index per garantire visibilità */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Ombra più marcata per visibilità */
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}

.cookie-settings-button span {
  position: absolute;
  left: calc(100% + 10px);
  white-space: nowrap;
  background: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-settings-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  animation: none;
}

.cookie-settings-button:hover span {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.cookie-settings-button svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.cookie-settings-button.visible {
  display: flex !important;
}

/* Scroll Indicator */
.scroll-indicator-container {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  z-index: 999;
}

.scroll-indicator {
  height: 100%;
  width: 0;
  background: var(--primary-color);
  transition: width 0.1s ease-out;
}

/* Page Navigation Dots */
.page-navigation {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 990;
}

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

.page-nav-dot:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

.page-nav-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(219, 192, 183, 0.3);
}

.page-nav-dot .tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-nav-dot:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

.page-nav-dot .tooltip:after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
}

@media (max-width: 768px) {
  .page-navigation {
    display: none;
  }
}

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

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

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.3),
      rgba(255, 255, 255, 0)
  );
}

/* Footer Phone and Email Links */
.footer .phone-link,
.footer .email-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.footer .phone-link:hover,
.footer .email-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer .phone-link svg,
.footer .email-link svg {
  color: var(--white);
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-logo img {
    max-width: 120px;
  }
  
  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .services-categories {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
  }

  .category-btn {
    flex: 1 0 calc(50% - 0.8rem);
    min-width: 0;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.25rem;
    max-width: calc(50% - 0.8rem);
    height: auto;
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    word-break: keep-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 0; /* Manteniamo l'ordine originale */
    min-height: 250px;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .contact-form {
    min-height: 300px;
    padding: 1.5rem 1rem;
  }
  
  .form-group {
    padding: 0.5rem 0;
  }

  .cookie-content {
    padding: 1rem;
  }

  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-more-info {
    text-align: center;
    display: block;
    padding: 0.5rem 0;
  }

  .cookie-settings-button {
    bottom: 20px;
    left: 20px;
  }
  
  .cookie-settings-button span {
    display: none;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
}

/* Servizi Button Animation */
.category-btn.btn-clicked {
  animation: pulse-button 0.3s ease;
}

@keyframes pulse-button {
  0% {
    transform: translateY(-3px) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.05);
  }
  100% {
    transform: translateY(-3px) scale(1);
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 990;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(219, 192, 183, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(219, 192, 183, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(219, 192, 183, 0);
  }
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  animation: none;
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: var(--white);
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  position: relative;
  margin: 40px auto;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--background-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--background-light);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-body {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body.collapsed {
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.modal-body.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--white), transparent);
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--background-light);
  text-align: center;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 20px;
}

.read-more-btn:hover {
  color: var(--primary-dark);
  background: var(--background-light);
}

.read-more-btn svg {
  transition: transform 0.3s ease;
}

.read-more-btn:hover svg {
  transform: translateY(3px);
}

/* Legal Content Styling */
.legal-content {
  color: var(--text-dark);
  padding: 0.5rem 0; /* Aggiunge padding verticale per migliorare la leggibilità */
}

.legal-content section {
  margin-bottom: 0.4rem;
  padding-top: 0;
  padding-bottom: 0;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.25rem;
  margin-top: 0.6rem;
}

.legal-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 1px;
  background: var(--primary-color);
}

.legal-content h4 {
  font-size: 1.05rem;
  margin-top: 0.3rem;
  margin-bottom: 0.2rem;
}

.legal-content p {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

.legal-content ul {
  margin-top: 0.15rem;
  margin-bottom: 0.3rem;
  margin-left: 1.2rem;
}

.legal-content li {
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.legal-content section + section h3 {
  margin-top: 0.8rem;
}

/* Evidenzia campi con errore */
.input-error-highlight {
  border-color: #f56565 !important;
  box-shadow: 0 0 0 1px rgba(229, 62, 62, 0.3) !important;
}

/* Contact Info */
.contact-info {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 4px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  height: auto;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-item svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.info-item p {
  margin: 0;
}

.info-item a {
  color: var(--text-dark);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-item a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 0; /* Manteniamo l'ordine originale */
    min-height: 250px;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  
  .contact-form {
    min-height: 300px;
    padding: 1.5rem 1rem;
  }
  
  .form-group {
    padding: 0.5rem 0;
  }
}

/* Footer contatti */
.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section a {
  margin-bottom: 0.75rem;
}

.footer-section .address {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.footer-section .address svg {
  color: var(--white);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer .phone-link,
.footer .email-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: 0.75rem;
}

.footer .phone-link:hover,
.footer .email-link:hover {
  opacity: 1;
  transform: translateX(5px);
}

.footer .phone-link svg,
.footer .email-link svg {
  color: var(--white);
  width: 16px;
  height: 16px;
}

/* Cookie Settings Button - Fix visualizzazione */
.cookie-settings-button.visible {
  display: flex !important;
}

/* Form di contatto - miglioramenti interni */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: var(--white);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(219, 192, 183, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Stili validazione in tempo reale */
.form-group .validation-icon {
  position: absolute;
  right: 12px;
  top: 38px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-group textarea + .validation-icon {
  top: 38px;
}

.form-group .validation-icon.valid {
  opacity: 1;
  color: #48bb78;
}

.form-group .validation-icon.invalid {
  opacity: 1;
  color: #e53e3e;
}

.form-group .validation-tooltip {
  position: absolute;
  top: calc(100% - 5px);
  left: 0;
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.25rem;
}

.form-group input.valid-input,
.form-group textarea.valid-input {
  border-color: #48bb78;
  padding-right: 2.5rem;
}

.form-group input.invalid-input,
.form-group textarea.invalid-input {
  border-color: #e53e3e;
  padding-right: 2.5rem;
}