/* ================================
   STILI PRELOADER (SOLUZIONE DEFINITIVA)
   ================================ */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* evita shift orizzontale con scrollbar */
  height: 100vh; /* fallback */
  height: 100dvh; /* viewport dinamico */
  background-color: #fff;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  width: clamp(140px, 32vw, 240px); /* evita eccesso su schermi larghi e overflow su piccoli */
  max-width: 240px; /* limite massimo */
  min-width: 140px; /* limite minimo */
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-logo img {
  width: 100%;
  height: auto;
  display: block;
  animation: pulse-logo 1.5s infinite ease-in-out;
}

@keyframes pulse-logo {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ================================
   RESET E VARIABILI GLOBALI
   ================================ */
:root {
  --primary-color: #d90429;
  --primary-color-dark: #a1031e;
  --primary-color-gradient: linear-gradient(45deg, #d90429, #a1031e);
  --secondary-color: #2b2d42;
  --dark-color: #1a1a1a;
  --light-color: #f4f4f4;
  --text-color: #333;
  --font-family: "Poppins", sans-serif;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  --transition-speed: 0.3s;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  
  width: 100dvw !important;
  overflow-x: hidden;
}
body {
  font-family: var(--font-family);
  line-height: 1.7;
  color: var(--text-color);
  background-color: #fff;
  overflow-x: hidden;
  margin: 0;
}
.preloader-active {
  overflow: hidden;
}
body.cookie-lock {
  position: fixed;
  overflow: hidden;
  inset: 0; /* blocca scroll alla posizione attuale */
  width: 100%;
}
body.menu-lock {
  position: fixed;
  width: 100%;
  overflow: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
img { max-width:100%; height:auto; }

/* ================================
   COMPONENTI STILISTICI
   ================================ */
.section-title,
h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  text-align: center;
  margin-top: -10px;
  margin-bottom: 50px;
}
section {
  padding: 80px 0;
}
.bg-light {
  background-color: var(--light-color);
}
.bg-dark {
  background-color: var(--dark-color);
}
.bg-dark .section-title,
.bg-dark h2,
.bg-dark h3,
.bg-dark p {
  color: #fff;
}
.text-light {
  color: #fff;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.btn {
  display: inline-block;
  background: var(--primary-color-gradient);
  color: #fff !important;
  padding: 14px 35px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}
.btn:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 4, 41, 0.4);
}

/* ================================
   HEADER E NAVIGAZIONE
   ================================ */
header {
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all var(--transition-speed) ease;
}
header.scrolled { height: 70px; box-shadow: 0 5px 20px rgba(0,0,0,0.07); }
header .container { height: 80px; display:flex; justify-content:space-between; align-items:center; transition:height var(--transition-speed) ease; }
header.scrolled .container { height:70px; }
.logo img { height:50px; transition:height var(--transition-speed) ease; display:block; width:auto; }
header.scrolled .logo img { height:45px; }
header nav ul { list-style:none; display:flex; align-items:center; gap:30px; }
header nav ul li a { text-decoration:none; color:var(--secondary-color); font-weight:600; position:relative; padding-bottom:5px; }
header nav ul li a::after { content:""; position:absolute; bottom:0; left:0; width:0; height:2px; background-color:var(--primary-color); transition:width var(--transition-speed) ease; }
header nav ul li a:hover::after { width:100%; }
.header-left { display:flex; align-items:center; }
header nav ul li a.active, header nav ul li a:hover { color:var(--primary-color); }
header nav ul li a.active::after { width:100%; }
#hamburger-icon { display:none; }

.btn-header {
  padding: 10px 25px;
  font-size: 0.9rem;
}

header nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 100%;
  flex-wrap: wrap; /* evita forcing oltre viewport se spazio insufficiente */
}
header nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}
header nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-speed) ease;
}
header nav ul li a.active,
header nav ul li a:hover {
  color: var(--primary-color);
}
header nav ul li a.active::after,
header nav ul li a:hover::after {
  width: 100%;
}
#hamburger-icon {
  display: none;
}

/* ================================
   SEZIONI SPECIFICHE
   ================================ */
#home {
  position: relative;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 100dvh;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0;
}
.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
  background-color: #000;
}
.slider {
  display: flex;
  height: 100%;
}
.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
#home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: -1;
}
.hero-content {
  z-index: 1;
}
.hero-content h1 {
  font-size: 3.8rem;
  color: #fff;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
}
.hero-content p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 1rem auto 2rem auto;
}

.bg-image-section {
  background-attachment: scroll;
  background-position: center center !important;
}
.bg-image-section {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 100px 0;
  color: #fff;
  z-index: 1;
}
#chi-siamo {
  background-image: url("images/cucina-bg.jpg");
}
.bg-image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 45, 66, 0.85);
  z-index: -1;
}
.chi-siamo-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
}
.chi-siamo-content p {
  color: #ddd;
}
.chi-siamo-intro {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2.5rem !important;
}
.punti-chiave-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}
.punti-chiave-list li {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 25px;
}
.punti-chiave-list i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 5px;
}
.punti-chiave-list h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

/* ====================
   STILI SEZIONE MENU (NUOVI)
   ==================== */
#menu {
  background-color: var(--light-color);
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonne su desktop */
  gap: 30px;
}

a.servizio-card-link {
  text-decoration: none;
  color: inherit;
  display: block; /* Assicura che il link occupi tutto lo spazio */
}

.servizio-card {
  position: relative; /* Necessario per posizionare l'overlay */
  overflow: hidden; /* Nasconde le parti dell'immagine che escono */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: 350px; /* Altezza fissa per allineare le card */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  transition: transform var(--transition-speed) ease;
  color: #fff; /* Testo bianco per contrasto con l'immagine */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

.servizio-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* MODIFICATA: Ora usa un gradiente rosso semitrasparente */
  background: linear-gradient(
    to top,
    rgba(217, 4, 41, 0.8) 0%,
    rgba(217, 4, 41, 0.4) 100%
  ); /* Overlay rosso per brand identity */
  z-index: 1;
}

.card-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.4s ease-out;
}

.card-content {
  position: relative;
  z-index: 2;
}

.servizio-card i {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.servizio-card h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.servizio-card p {
  font-size: 0.95rem;
  color: #ddd;
  max-width: 80%;
  margin: 0 auto;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(217, 4, 41, 0.85); /* Overlay rosso primario */
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

a.servizio-card-link:hover .servizio-card {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

a.servizio-card-link:hover .card-bg-image {
  transform: scale(1.1); /* Effetto zoom sull'immagine */
}

a.servizio-card-link:hover .card-overlay {
  opacity: 1; /* Mostra l'overlay al passaggio del mouse */
}

#galleria {
  padding: 0;
  position: relative;
  height: 85vh;
  min-height: 450px;
  background-color: var(--dark-color);
}
.video-gallery-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.video-gallery-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
}
.video-overlay-content .section-subtitle {
  color: #ddd;
}
#open-gallery-popup-btn {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(217, 4, 41, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 4, 41, 0);
  }
}

.contatti-grid-mappa {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
  margin-top: 2rem;
}
.contatti-colonna-sinistra {
  display: flex;
  flex-direction: column;
}
.contatti-info p {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.contatti-info i {
  color: var(--primary-color);
  margin-right: 15px;
  width: 25px;
  font-size: 1.1rem;
  text-align: center;
}
.contatti-info a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition-speed);
  word-break: break-word;
  text-wrap: nowrap;
  overflow-wrap: anywhere;
}
.contatti-info a:hover {
  color: var(--primary-color);
}
.contatti-orari {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.orari-title {
  margin-bottom: 1rem;
}
.orari-list {
  list-style: none;
  padding: 0;
  color: white;
  
  width: 80%;
}
.orari-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ffffff;
  gap: 12px;
  flex-wrap: wrap; /* consente adattamento su view strette */
}
.contatti-social {
  margin-top: auto;
  padding-top: 2rem;
}
.social-icons {
  display: flex;
  gap: 25px;
  justify-content: center;
}
.social-icons a {
  color: #fff;
  font-size: 2.2rem;
  text-decoration: none;
  transition: all var(--transition-speed);
}
.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}
.map-container-colonna {
  min-height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
}
.map-container-colonna iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

footer {
  background-color: var(--dark-color);
  border-top: 1px solid #333;
  color: #888;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* ================================
   MODALI E POPUP
   ================================ */
.galleria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.galleria-item {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  cursor: pointer;
  position: relative;
}
.galleria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.galleria-item:hover img {
  transform: scale(1.1);
}
.galleria-item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #fff;
  font-size: 2rem;
  background-color: rgba(217, 4, 41, 0.7);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.galleria-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
}
.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 900px;
  animation: zoomIn 0.5s;
}
@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
}
.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.lightbox-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 40px;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.modal-content.large {
  max-width: 1100px;
}
.modal-close {
  color: #aaa;
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
  color: var(--primary-color);
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 2vh 12px; /* evita tagli su mobile */
  overflow: hidden;
}
.modal-overlay.visible { display: flex; }

.cookie-modal-content {
  background-color: #fff;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  width: min(560px, 92vw);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(12px) scale(.92);
  opacity: 0;
  animation: cookieZoomIn .55s cubic-bezier(.19,1,.22,1) forwards;
  max-height: 88dvh; /* gestisce altezza su mobile dinamico */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable both-edges;
  position: relative;
}
@keyframes cookieZoomIn { to { transform: translateY(0) scale(1); opacity:1; } }
@keyframes zoomAndFadeIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.cookie-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.cookie-modal-content h3 { color: var(--secondary-color); font-size: clamp(1.35rem,2.2vw,1.7rem); margin-bottom: 1rem; line-height:1.2; }
.cookie-modal-content p { color:#555; line-height:1.6; margin:0 auto 1.6rem; font-size: clamp(.9rem,1rem + .2vw,1.02rem); max-width: 52ch; }
.cookie-modal-actions { display:flex; justify-content:center; gap:14px; flex-wrap:wrap; }
.btn-secondary { display:inline-block; background:#e9ecef; color:var(--secondary-color); padding:13px 30px; border:1px solid #ced4da; border-radius:50px; text-decoration:none; font-size:.95rem; font-weight:600; cursor:pointer; transition:all var(--transition-speed) ease; }
.btn-secondary:hover { background-color:#dee2e6; border-color:#adb5bd; transform:translateY(-3px); }

/* scrollbar interna (solo modale cookie) */
.cookie-modal-content::-webkit-scrollbar { width:8px; }
.cookie-modal-content::-webkit-scrollbar-track { background:transparent; }
.cookie-modal-content::-webkit-scrollbar-thumb { background:#d0d0d0; border-radius:4px; }
.cookie-modal-content::-webkit-scrollbar-thumb:hover { background:#b5b5b5; }

@media (max-width: 560px) {
  .cookie-modal-content { border-radius:22px; padding:28px 20px 30px; max-height:92dvh; }
  .cookie-modal-actions .btn, .cookie-modal-actions .btn-secondary { flex:1 1 auto; min-width:140px; text-align:center; }
}

/* ================================
   PULSANTI FISSI E OVERLAY
   ================================ */
.progress-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}
.progress-btn.visible {
  opacity: 1;
  visibility: visible;
}
.progress-btn:hover {
  transform: translateY(-5px);
}
.progress-btn i {
  font-size: 1.2rem;
  color: var(--primary-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.progress-circle circle {
  fill: rgba(255, 255, 255, 0.8);
  stroke-width: 4;
  transition: stroke-dashoffset 0.1s linear;
}
.progress-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.1);
}
.progress-bar {
  fill: none;
  stroke: var(--primary-color);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

#hamburger-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1002;
}
#hamburger-icon div {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 3px;
}
#hamburger-icon.open .bar1 {
  transform: rotate(-45deg) translate(-6px, 6px);
}
#hamburger-icon.open .bar2 {
  opacity: 0;
}
#hamburger-icon.open .bar3 {
  transform: rotate(45deg) translate(-6px, -6px);
}

#menu-overlay {
    display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#menu-overlay.open {
    display: block;
}

/* ================================
   STILI PULSANTE WHATSAPP
   ================================ */
.btn i {
  margin-right: 10px;
  font-size: 1.2rem;
  vertical-align: middle;
}

#whatsapp-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1900;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

#whatsapp-fab:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  animation-play-state: paused;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 992px) {
  .servizi-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonne su tablet */
  }
}

@media (max-width: 768px) {
  #hamburger-icon {
    display: block;
  }

  header nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--dark-color);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  padding-top: 100px;
  transform: translateX(100%);
  transition: transform 0.4s ease, visibility 0s linear 0.4s;
  z-index: 1000;
  visibility: hidden;
  will-change: transform;
  }
  header nav.open {
  transform: translateX(0);
  visibility: visible;
  transition-delay: 0s;
  }
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
    gap: 0;
  }
  header nav ul li {
    width: 100%;
  }
  header nav ul li a {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    padding: 15px 10px;
  }
  header nav ul li a::after {
    display: none;
  }

  .btn-header {
    display: none;
  }

  /* Adatta la dimensione del logo su mobile */
  .logo img {
    height: 80px;
  }
  header.scrolled .logo img {
    height: 45px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }
  h2,
  .section-title {
    font-size: 2.2rem;
  }
  .contatti-grid-mappa,
  .numeri-grid {
    grid-template-columns: 1fr;
  }

  .contatti-colonna-sinistra {
    text-align: center;
  }

  .servizi-grid {
    grid-template-columns: 1fr; /* 1 colonna su mobile */
  }
  .servizio-card {
    height: 280px; /* Riduci l'altezza delle card su mobile */
  }

  #whatsapp-fab {
    width: 55px;
    height: 55px;
    font-size: 2rem;
    bottom: 15px;
    left: 15px;
  }

  .progress-btn {
    width: 55px;
    height: 55px;
    bottom: 15px;
    right: 15px;
  }
}
