/* Sezione Hero (Video) */
.hero-slider {
  height: 100vh; /* Riduci l'altezza del video */
  position: relative;
  z-index: 0; /* Mantieni il video sullo sfondo */
}

.hero-slider video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.tickets-section {
  margin-top: -154px;
  padding: 10px 0;
  background-color: transparent;
   z-index: 5;
   color:#fff;
  
}
/* Contenitore dei biglietti che può scorrere orizzontalmente */
.tickets-container {
  display: flex; /* Usa il flexbox per le card */
  overflow-x: auto; /* Abilita lo scroll orizzontale */
   justify-content: center; /* Centra le card orizzontalmente */
  padding: 10px 0;
  gap: 20px;
  scroll-snap-type: x mandatory; /* Allinea le card per lo scroll */
   z-index: 5;
   
}
.ticket-card {
  position: relative; /* necessario per posizionare l'overlay sopra l'immagine */
  color: white;       /* testo bianco per contrasto */
   z-index: 5;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
   margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  color: #fff; /* o bianco se fondo scuro */
  margin-top: -10px !important;
  padding-top: -120px !important;
  position: relative;
  z-index: 2000;
}
.ticket-card h3,
.ticket-card p {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0,0,0,0.9); /* PIÙ FORTE */
}
/* Card al passaggio del mouse (hover) */
.ticket-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Pulsante con stile Juventus */
.btn-bigliettin {
  padding: 12px 25px;
  background-color: #000; /* Nero per il background */
  color: #fff; /* Testo bianco */
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  border: 2px solid #fff;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  z-index: 20;
   position: relative;
}
.ticket-card {
  position: relative;
  flex: 0 0 auto;
  width: 250px;
  height: 230px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(210, 223, 154, 0.6);
  color: #0a0909;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  background-color: rgba(0,0,0,0.2); /* leggera trasparenza */
}
.cardb {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  color: #000;
   z-index: 2;
}

/* Overlay chiaro (schiarisce la foto) */
.cardb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.65); /* ← schiarisce */
  z-index: 1;
}

.cardb > * {
  position: relative;
  z-index: 2;
  color: #111; /* Testo scuro */
}
.ticket-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55); /* sfondo scuro trasparente */
  border-radius: 10px;
  z-index: 1;
  backdrop-filter: brightness(1.4);
}
.btn-biglietti:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
}
.btn-bigliettin:hover {
  background-color: #fff;
  color: #000;
  transform: scale(1.05);
}
.btn-biglietti:focus {
  outline: none;
}

.btn-biglietti:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .tickets-container {
    flex-wrap: nowrap; /* le card rimangono su una riga */
    overflow-x: auto;  /* abilita lo scroll orizzontale */
    -webkit-overflow-scrolling: touch; /* scroll fluido su iOS */
    gap: 15px;
    padding: 10px;
    z-index: 5;
  }

  .ticket-card {
    width: 200px;   /* più piccole su mobile */
    height: 250px;
  }
}.tickets-container {
  scroll-snap-type: x mandatory;
}

.ticket-card {
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .tickets-container {
    flex-direction: column;
    align-items: center;
     margin-top: 10px;
  }

  .cardb {
    width: 90%;
    max-width: 350px;
      margin-top: 10px;
       }

  .tickets-section {
    margin-top: 10px;   /* distanza sotto al pulsante precedente */
  }
}
