/* Contenitore principale */
.bitti-escursione-singola {
  font-family: inherit;
  color: #111;
  line-height: 1.6;
}

/* --- HERO FULL WIDTH ------------------------------------------------- */
.bitti-hero-slide {
  position: relative;
  width: 100%;
  /* usa tutta la larghezza visibile */
  left: 0;
  /* assicurati che parta da sinistra */
  right: 0;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
}


/* strip di immagini orizzontale */
.bitti-hero-images {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  max-width: 100vw;
  /* Limita la larghezza massima alla viewport */
  width: 100vw;
}

.bitti-hero-images::-webkit-scrollbar {
  display: none
}

.bitti-hero-images img {
  flex: 0 0 100%;
  width: 100%;
  height: 90vh;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: center;
}

/* titolo vetro‑blur centrato */
.bitti-hero-title {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 15px 30px;
  border-radius: 8px;
  text-align: center;
  width: 100%;
}

.bitti-hero-title h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: #333333;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

.bitti-hero-indicators {
  position: absolute;
  bottom: 20px;
  /* posiziona basso, sotto la barra titolo */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.bitti-hero-indicators .indicator {
  width: 30px;
  height: 3px;
  background-color: #00cfff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 2px;
}

.bitti-hero-indicators .indicator.active {
  opacity: 1;
}




/* ---------------------
   TAPPE + IMMAGINE
---------------------- */
.bitti-tappe-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* gap: 40px; */
  align-items: center;
  position: relative;
  /* height: 70vh; */
}

/* Parte con contenuto (testo) a sinistra */
.bitti-tappe-content {
  flex: 1 1 400px;
  padding: 40px;
  color: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(to right, rgba(11, 6, 52, 0.85), rgba(11, 6, 52, 0));
}

.bitti-tappe-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bitti-tappe-content ul li {
  font-size: 1.2rem;
  margin-bottom: 16px;
  padding-left: 22px;
  position: relative;
}

.bitti-tappe-content ul li strong {
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* pallini bianchi */
.bitti-tappe-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
}

.bitti-tappe-image {
  flex: 1 1 100%;
  position: relative;
  overflow: hidden;
  max-height: 700px;
}

.bitti-tappe-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 30, 60, 0.65), rgba(0, 30, 60, 0.2) 40%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* .bitti-tappe-image img {
    position: relative;
    z-index: 0;
  } */


.bitti-tappe-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* bottone PRENOTA sovrapposto */
.bitti-btn-prenota {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #00cfff;
  color: #fff;
  padding: 14px 32px;
  font-size: 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bitti-btn-prenota:hover {
  background-color: #009fc1;
}



/* ---------------------
   Descrizione
---------------------- */
.bitti-descrizione {
  max-width: 80%;
  margin: 0 auto 80px;
  padding: 20px;
  font-family: 'Oswald', sans-serif;
  /* Usa lo stesso font del titolo Hero */
}

.divAvvertenze {
  display: flex;
  justify-content: center;
}

.bitti-avvertenze-testo {
  background-color: #fff4d9;
  border-left: 5px solid #f9b400;
  padding: 15px 20px;
  margin: 30px 0;
  border-radius: 8px;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 90%;
}


.bitti-descrizione h2 {

  font-size: 2.4rem;
  font-weight: bold;
  color: #0b0634;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bitti-descrizione-testo p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #333;
}


/* ---------------------
   Mappa
---------------------- */
.bitti-mappa {
  margin-top: 40px;
  border-top: 1px solid #eee;
}

/* Responsive per dispositivi piccoli */
@media (max-width: 768px) {
  .bitti-tappe-section {
    flex-direction: column;
  }

  .bitti-tappe-content {
    position: static;
    padding: 20px;
    background: rgba(11, 6, 52, 0.85);
    width: 100%;
  }

  .bitti-btn-prenota {
    bottom: 20px;
  }

  /* titolo vetro‑blur centrato */
  .bitti-hero-title {
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    width: 100%;
  }

  .bitti-descrizione {
    max-width: 98vw;
    margin: 0 auto 40px;
    padding: 14px;
    font-family: 'Oswald', sans-serif;
  }

  .bitti-descrizione h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
  }

  .bitti-descrizione-testo p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    text-align: justify;
    color: #333;
  }
}

/* ---------------------
   Stripe Payment Fields
---------------------- */
/* ==========================================================
   SEZIONE PRENOTAZIONE
   - Default   → nascosta (display:none)
   - Aperta    → .book_section.open  ➜  layout a due colonne
   ========================================================== */
.book_section {
  display: none;
  /* resta nascosta finché non clicchi */
  margin: 50px auto;
  max-width: 1100px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .1);
  gap: 50px;
  /* gap usato in mobile (flex)        */
}

/* ——— Layout GRID quando aperta ——— */
.book_section.open {
  display: grid;
  grid-template-columns: 380px 1fr;
  /* 2 colonne */
  grid-template-areas:
    "cal   form"
    /* riga 1: calendario + form      */
    "info  form";
  /* riga 2: tabelle   + form       */
  column-gap: 50px;
  align-items: start;
  grid-auto-flow: row dens e;
  /* evita colonne extra */
}

/* --- Assegna le aree --- */
.book_section.open>#calendar {
  grid-area: cal;
}

.book_section.open>.bitti-info-wrapper {
  grid-area: info;
  /* SOTTO il calendario */
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.book_section.open>.bitti-form-prenota {
  grid-area: form;
  /* destra, su due righe */
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;

}

/* --- WRAPPER Stripe: sfondo chiaro e cornice pulita --- */
.stripe-wrapper {
  background-color: #f7f9fc;
  border: 1px solid #d4dee9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
}

/* --- Intestazione "Pagamento sicuro con Stripe" --- */
.stripe-secure {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
  font-weight: 600;
  color: #0b0634;
}

.stripe-secure img {
  height: 28px;
  width: auto;
}

/* --- Label per i campi Stripe --- */
#step-2-pagamento label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

/* --- Stripe Elements base --- */
#card-number,
#card-expiry,
#card-cvc {
  background-color: white;
  border: 1px solid #ccd6e0;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* --- Focus visivo (Stripe applica .StripeElement--focus dinamicamente) --- */
.StripeElement--focus {
  border-color: #00cfff !important;
  box-shadow: 0 0 0 2px rgba(0, 207, 255, 0.2);
}

/* --- Bottone finale --- */
#bitti-submit.bitti-submit {
  background-color: #00cfff;
  color: white;
  border: none;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
}

#bitti-submit.bitti-submit:hover {
  background-color: #009fc1;
}

/* Feedback errore o successo */
.form-feedback {
  display: none;
  margin-top: 15px;
  padding: 15px 20px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  line-height: 1.6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ERRORE */
.form-feedback.error {
  border-left: 6px solid #dc3545;
  background-color: #ffeaea;
  color: #721c24;
}

/* SUCCESSO */
.form-feedback.success {
  border-left: 6px solid #28a745;
  background-color: #e8f5e9;
  color: #155724;
}



/* ----------------------------------
     COLONNA SINISTRA
  ---------------------------------- */
#calendar {
  
  grid-column: 1;
  grid-row: 1;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
  overflow: hidden;
}

.bitti-info-wrapper {
  /* tariffe + disponibilità           */
  grid-column: 1;
  grid-row: 2;
  /* subito sotto il calendario        */
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

/* ----------------------------------
     COLONNA DESTRA  (Form)
  ---------------------------------- */
.bitti-form-prenota {
  grid-column: 2;
  grid-row: 1 / span 2;
  /* occupa entrambe le righe          */
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  /* piena larghezza della colonna     */
}

/* CAMPi INPUT del form (invariati) */
.bitti-form-prenota input[type="text"],
.bitti-form-prenota input[type="email"],
.bitti-form-prenota input[type="tel"],
.bitti-form-prenota input[type="number"],
.bitti-form-prenota input[type="date"] {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  background: #e1e6f4;
  font-size: 1rem;
  width: 100%;
}
.bitti-form-prenota label[for="bitti-upload-doc"], 
.bitti-form-prenota label.carta-doc-label {
  display: block;
  font-weight: 600;
  color: #0b0634;
  margin-bottom: 7px;
  margin-top: 20px;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.bitti-form-prenota input[type="file"] {
  background: #e1e6f4;
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 1rem;
  margin-bottom: 10px;
  width: 100%;
  /* Puoi aggiungere: */
  color: #444;
}

/* Quantità biglietti */
.bitti-qta-wrapper {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.bitti-qta-wrapper input {
  text-align: center;
}

/* Checkbox privacy */
.bitti-checkbox {
  margin-top: 15px;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

/* Prezzo totale + bottone conferma */
#prezzo-totale {
  font-size: 1.5rem;
  color: #0b0634;
  margin-top: 15px;
  text-align: right;
  font-weight: bold;
}

#bitti-conferma-dati {
  background: #f9b400;
  color: #0b0634;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color .3s;
}

#bitti-conferma-dati:hover {
  background: #db9a00;
}

/* ----------------------------------
     RESPONSIVE  (<768 px): colonna singola
  ---------------------------------- */
@media(max-width:768px) {
  .book_section.open {
    display: flex;
    /* ritorna flex‑column               */
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  .bitti-qta-wrapper {
    flex-direction: row;
    gap: 10px;
  }

  .bitti-avvertenze-testo {
    max-width: 100%;
  }

  .divCalendar{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}


.bitti-info-wrapper {
  display: none;
  /* nascosto inizialmente */
  flex-direction: column !important;
  /* forzato in verticale */
  gap: 20px;
  margin-top: 20px;
  width: 100% !important;
  max-width: 100% !important;
  clear: both !important;
}


.bitti-tariffe-tabella table,
.bitti-disponibilita-tabella table {
  width: 100%;
  border-collapse: collapse;
}

.bitti-tariffe-tabella th,
.bitti-tariffe-tabella td,
.bitti-disponibilita-tabella td {
  border: 1px solid #ddd;
  padding: 8px;
}

.bitti-tariffe-tabella th {
  background-color: #f0f0f0;
  text-align: left;
}

.bitti-tariffe-tabella td:last-child,
.bitti-disponibilita-tabella td:last-child {
  text-align: right;
  font-weight: bold;
}


.bitti-back {
  background-color: #e1e6f4;
  color: #0b0634;
  border: none;
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bitti-back:hover {
  background-color: #ccd6e0;
}