/* =====================================================
   FILE: booking.css — VERSIONE DEFINITIVA DESTO
   Pulito, coerente, stabile (desktop + mobile)
   ===================================================== */


/* ============================================================
   HERO PRENOTA
============================================================ */
.booking-hero {
  margin-top: 50px;
  width: 100%;
  height: 65vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-align: center;
  overflow: hidden;
}

.booking-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.booking-hero-tag {
  display: inline-block;
  background: rgba(235,219,208,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 16px;
  font-size: .8rem;
  letter-spacing: -0.033em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 12px;
  font-family: 'Cormorant', serif;
}

.booking-hero h1 {
  font-family: 'Chopard', serif;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  letter-spacing: -0.45rem;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.booking-hero-sub {
  max-width: 750px;
  margin: 14px auto 0;
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: .95;
  font-family: 'Cormorant', serif;
}

.booking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/7.png");
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(.55);
  transform: scale(1.12);
  opacity: .9;
  z-index: 1;
}


/* ============================================================
   SEZIONE FORM
============================================================ */
.booking-form-section {
  width: 100%;
  padding: 90px 0 80px;
  background: var(--secondary);
  display: flex;
  justify-content: center;
}

.booking-form-wrapper {
  width: 90vw;
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 45px;
  border: 1px solid rgba(235,219,208,0.28);
  background: rgba(114,35,39,0.35);
  backdrop-filter: blur(3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.booking-form {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--primary);
}


/* ============================================================
   FIELDSET
============================================================ */
.booking-form fieldset {
  border: 0;
  margin: 0 0 60px;
  padding: 0 0 35px;
  border-bottom: 1px solid rgba(235,219,208,0.28);
}

.booking-form fieldset:last-of-type {
  border-bottom: 0;
}

.booking-form legend {
  font-family: 'Chopard', serif;
  font-size: 2.2rem;
  letter-spacing: -0.2rem;
  margin-bottom: 35px;
  text-transform: uppercase;
  color: var(--primary);
}


/* ============================================================
   GRID
============================================================ */
.booking-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  margin-bottom: 28px;
}

.booking-grid-1 {
  margin-bottom: 28px;
}


/* ============================================================
   LABEL + INPUT
============================================================ */
.booking-field label {
  font-size: 1.05rem;
  font-family: 'Cormorant', serif;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--primary);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  height: 52px;
  border: 1px solid rgba(235,219,208,0.45);
  background: rgba(235,219,208,0.06);
  padding: 14px 16px;
  font-family: 'Cormorant', serif;
  font-size: 1.15rem;
  color: var(--primary);
  outline: none;
  transition: border-color .25s ease, background .25s ease;
  appearance: none;
}

.booking-field textarea {
  min-height: 120px;
  height: auto;
  resize: vertical;
}

.booking-field input:disabled,
.booking-field select:disabled,
.booking-field textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}


/* ============================================================
   SELECT
============================================================ */
.booking-field select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23EBDBD0' height='18' viewBox='0 0 24 24' width='18'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.booking-field select option[disabled],
.booking-field select option.disabled {
  color: rgba(235,219,208,0.45);
  font-style: italic;
}


/* ============================================================
   TELEFONO
============================================================ */
.phone-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
}

#prefisso {
  text-align: center;
}


/* ============================================================
   PRIVACY
============================================================ */
.booking-privacy {
  margin: 35px 0;
  font-size: 1.05rem;
  font-family: 'Cormorant', serif;
  color: var(--primary);
}

.checkbox-desto {
  position: relative;
  padding-left: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.checkbox-desto input {
  opacity: 0;
  position: absolute;
}

.checkbox-desto .checkmark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--primary);
}

.checkbox-desto input:checked + .checkmark {
  background: var(--primary);
}


/* ============================================================
   SUBMIT
============================================================ */
.booking-submit {
  text-align: right;
  margin-top: 10px;
}

.booking-submit button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--secondary);
  padding: 14px 44px;
  font-family: 'Cormorant', serif;
  font-size: 1.25rem;
  cursor: pointer;
  transition: .25s ease;
}

.booking-submit button:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}


/* ============================================================
   ERRORI / MSG
============================================================ */
.msg-box {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid rgba(235,219,208,0.45);
  background: rgba(235,219,208,0.22);
  color: var(--primary);
  font-size: 1.05rem;
}

.booking-field input.errore,
.booking-field select.errore,
.booking-field textarea.errore {
  border-color: #F6C6BD;
  background: rgba(246,198,189,0.12);
}


/* ============================================================
   MOBILE — < 768px
============================================================ */
@media (max-width: 768px) {

  .booking-hero {
    height: 55vh;
    margin-top: 30px;
  }

  .booking-hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
    letter-spacing: -0.42rem;
  }

  .booking-hero-sub {
    font-size: 1rem;
    padding: 0 18px;
  }

  .booking-form-wrapper {
    padding: 32px 22px;
  }

  .booking-form legend {
    font-size: 1.6rem;
    text-align: center;
  }

  .booking-grid-2 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .phone-row {
    grid-template-columns: 75px 1fr;
    gap: 14px;
  }

  .booking-submit {
    text-align: center;
    margin-top: 30px;
  }

  .booking-submit button {
    width: 100%;
    padding: 16px 0;
  }
}


/* ============================================================
   MOBILE ESTREMO — < 420px
============================================================ */
@media (max-width: 420px) {

  .booking-hero h1 {
    font-size: 2rem;
    letter-spacing: -0.38rem;
  }

  .phone-row {
    grid-template-columns: 68px 1fr;
  }
}

/* ============================================================
   MOBILE — LETTER SPACING TITOLI (HERO + FORM)
============================================================ */

@media (max-width: 768px) {

  /* HERO TITLE */
  .booking-hero h1 {
    letter-spacing: -0.27rem; /* leggermente più aperto rispetto al desktop */
  }

  /* FORM SECTION TITLES */
  .booking-form legend {
    letter-spacing: -0.08rem;
  }

}

/* ============================================================
   INPUT TEXT COLOR — FIX PREFISSO / TELEFONO
============================================================ */

.booking-field input,
.booking-field textarea,
.booking-field select {
  color: var(--primary); /* testo neutro come gli altri campi */
}

#prefisso,
input[type="tel"] {
  color: var(--primary);
}

/* ============================================================
   PLACEHOLDER — COLORE CORRETTO (iOS / Safari FIX)
============================================================ */

.booking-field input::placeholder,
.booking-field textarea::placeholder {
  color: rgba(235, 219, 208, 0.65);
  font-family: 'Cormorant', serif;
  font-weight: 400;
}

/* Safari / iOS */
.booking-field input::-webkit-input-placeholder,
.booking-field textarea::-webkit-input-placeholder {
  color: rgba(235, 219, 208, 0.65);
  -webkit-text-fill-color: rgba(235, 219, 208, 0.65);
  font-weight: 400;
}

/* Firefox */
.booking-field input::-moz-placeholder,
.booking-field textarea::-moz-placeholder {
  color: rgba(235, 219, 208, 0.65);
  font-weight: 400;
}