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

body {
  background: #121212;
  color: #fff;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* ---------------------
   SEZIONE BOTTONI
---------------------- */
.buttons-section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* ---------------------
   CONTENITORE PULSANTE + TESTO
---------------------- */
.btn-wrapper {
  position: relative;
  display: inline-block;
}
/* L'immagine nascosta che apparirà al passaggio del mouse */
/* Immagine che appare sopra il pulsante */
.btn-wrapper::after {
  content: "";
  position: absolute;
  bottom: 120%; /* sopra il pulsante */
  left: 50%;
  transform: translateX(-50%);
  width: 400px; /* più grande */
  height: 300px;
  background: url("../img/gallery/gallery-1.jpg") no-repeat center/cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* Mostra l'immagine al passaggio del mouse */
.btn-wrapper:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px); /* leggera animazione verso l’alto */
}

/* ---------------------
   BOTTONE DISTRIBUTORE
---------------------- */
.btn-distributore {
  background-color: #D4AF37;
  border: none;
  width: 80px;   
  height: 80px;  
  border-radius: 50%;
  cursor: pointer;
  animation: pulse 1.5s infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ---------------------
   ICONA NERA LAMPEGGIANTE
---------------------- */
.btn-distributore .bi {
  font-size: 1.6rem;
  color: #000;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.45));
  transition: transform 0.2s ease, filter 0.2s ease;
  animation: blinkIcon 1.5s infinite;
}

/* ---------------------
   TESTO SOTTO AL PULSANTE
---------------------- */
.btn-label {
  margin-top: 8px;
  font-size: 0.9rem !important; /* 👈 dimensione ingrandita */
  color: white !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------------------
   HOVER
---------------------- */
.btn-distributore:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-distributore:hover .bi {
  transform: scale(1.18);
  filter: drop-shadow(0 3px 2px rgba(0,0,0,0.6));
}
/* Correzione allineamento hero su schermi grandi */
.hero .container {
  margin: 0 auto;
  text-align: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 1200px;
}

/* Centra anche la riga interna */
.hero .row {
  justify-content: center;
}

/* Evita shift laterali su schermi molto grandi */
@media (min-width: 1400px) {
  .hero .container {
    max-width: 1300px;
  }
}

/* Allinea i bottoni e le scritte */
.hero .buttons-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}



/* ---------------------
   ANIMAZIONE PULSE
---------------------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #D4AF37; }
  70% { box-shadow: 0 0 0 12px rgba(212,175,55,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,175,55,0); }
}

/* ---------------------
   ANIMAZIONE ICONA
---------------------- */
@keyframes blinkIcon {
  0% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.45));
  }
  70% {
    transform: scale(1.08);
    opacity: 0.8;
    filter: drop-shadow(0 3px 3px rgba(212,175,55,0.6));
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.45));
  }
}

/* ---------------------
   MOBILE
---------------------- */
@media screen and (max-width: 600px) {
  .btn-distributore {
    width: 65px;
    height: 65px;
  }
  .btn-distributore .bi {
    font-size: 1.4rem;
  }
  .btn-label {
    font-size: 0.7rem !important;
  }
}
/* --- Galleria immagini uniforme --- */
.gallery .gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.distributore-icon {
  margin-top: 22px;
  padding: 14px 26px;
  background: #ffcc00;
  color: #000;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.6);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  animation: softGlow 1.8s infinite ease-in-out;
}

.distributore-icon i {
  font-size: 1.4rem;
}

.distributore-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(255, 204, 0, 0.9);
}

@keyframes softGlow {
  0%   { box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
  50%  { box-shadow: 0 0 18px rgba(255, 204, 0, 0.9); }
  100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.5); }
}

