/* ============================================================
   Casa Marenco — Pagina prenotazione
   Estende styles.css mantenendo la palette dark-cream
   ============================================================ */

/* la pagina non ha hero scroll-driven: bg pieno + scroll normale */
.page-prenota {
  background: var(--bg);
  min-height: 100vh;
}

.page-prenota .nav-cta-current {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.page-prenota .nav-cta-current::before {
  background: var(--bg);
  animation: none;
  box-shadow: none;
}

/* ============================================================
   INTRO
   ============================================================ */
.prenota-intro {
  padding: 10rem var(--gutter) 4rem;
  text-align: center;
  position: relative;
}

.prenota-intro::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(720px, 80%);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--rule-strong) 50%,
    transparent 100%
  );
}

.prenota-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}

.prenota-eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.prenota-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.prenota-title em {
  font-style: italic;
  color: var(--gold);
}

.prenota-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  color: var(--cream-soft);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.prenota-quickline {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem 2rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--bg-soft);
  margin-bottom: 4rem;
}

.prenota-quick {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
  transition: color 0.3s;
}

.prenota-quick-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-mute);
}

.prenota-quick-value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.01em;
}

.prenota-quick:hover .prenota-quick-value {
  color: var(--gold);
}

.prenota-quick-sep {
  width: 1px;
  height: 28px;
  background: var(--rule-strong);
}

/* ============================================================
   FORM section
   ============================================================ */
.prenota-form-section {
  padding: 5rem 0 9rem;
}

.prenota-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* ============================================================
   FORM card
   ============================================================ */
.prenota-form {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 3.5vw, 3.5rem);
  position: relative;
}

/* gold corner accent */
.prenota-form::before,
.prenota-form::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.prenota-form::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.prenota-form::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.prenota-form-head {
  margin-bottom: 2.4rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.prenota-form-step {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.prenota-form-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--cream);
  font-style: italic;
}

.prenota-field-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.6rem 1.4rem;
  margin-bottom: 2rem;
}

.prenota-field {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.prenota-field-half  { grid-column: span 3; }
.prenota-field-third { grid-column: span 2; }

.prenota-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cream-mute);
  font-weight: 500;
}

.prenota-field input,
.prenota-field select,
.prenota-field textarea {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  transition: border-color 0.3s, color 0.3s;
  outline: none;
  width: 100%;
}

.prenota-field input::placeholder,
.prenota-field textarea::placeholder {
  color: var(--cream-mute);
  opacity: 0.7;
  font-style: italic;
}

.prenota-field input:focus,
.prenota-field select:focus,
.prenota-field textarea:focus,
.prenota-field input:hover,
.prenota-field select:hover,
.prenota-field textarea:hover {
  border-bottom-color: var(--gold);
}

.prenota-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%23c59c5f' stroke-width='1.4' d='M1 1l4 4 4-4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
  cursor: pointer;
}

.prenota-field select option {
  background: var(--bg-card);
  color: var(--cream);
}

.prenota-field input[type="date"] {
  font-family: var(--serif);
  color-scheme: dark;
  cursor: pointer;
}

.prenota-field textarea {
  resize: vertical;
  min-height: 7rem;
  font-style: italic;
}

/* ============================================================
   Preferenza sala — chips
   ============================================================ */
.prenota-pref {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

.prenota-pref legend {
  display: block;
  margin-bottom: 0.9rem;
}

.prenota-pref-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.prenota-chip {
  position: relative;
  cursor: pointer;
}

.prenota-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.prenota-chip span {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all 0.3s;
}

.prenota-chip:hover span {
  border-color: var(--gold);
  color: var(--cream);
}

.prenota-chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.prenota-chip input:focus-visible + span {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold);
}

/* ============================================================
   Consenso + submit
   ============================================================ */
.prenota-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--cream-soft);
  line-height: 1.5;
  margin-bottom: 2rem;
  cursor: pointer;
}

.prenota-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.25s, background 0.25s;
}

.prenota-consent input:hover { border-color: var(--gold); }

.prenota-consent input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.prenota-consent input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg);
}

.prenota-consent a {
  color: var(--gold);
  border-bottom: 1px solid currentColor;
}

.prenota-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 1.15rem 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.prenota-submit:hover {
  background: var(--cream);
  transform: translateX(4px);
}

.prenota-submit:hover .prenota-submit-arrow {
  transform: translateX(6px);
}

.prenota-submit-arrow {
  display: inline-block;
  transition: transform 0.3s;
}

.prenota-status {
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--celadon);
  min-height: 1.2em;
}

.prenota-status.is-error {
  color: #e8a48f;
}

/* ============================================================
   ASIDE
   ============================================================ */
.prenota-aside {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  position: sticky;
  top: 5rem;
}

.prenota-aside-photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.prenota-aside-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.prenota-aside-photo figcaption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cream);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.prenota-aside-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.prenota-aside-label {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.prenota-hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.prenota-hours li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--serif);
  color: var(--cream-soft);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.prenota-hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.prenota-hours li span {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-mute);
  min-width: 6.5rem;
}

.prenota-hours li strong {
  font-weight: 500;
  color: var(--cream);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  margin-left: auto;
}

.prenota-tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prenota-tips li {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--cream-soft);
  padding-left: 1.4rem;
  position: relative;
}

.prenota-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.prenota-tips strong {
  color: var(--cream);
  font-weight: 500;
}

.prenota-aside-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.2rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  transition: border-color 0.3s, background 0.3s;
}

.prenota-aside-cta:hover {
  border-color: var(--gold);
  background: var(--bg-card);
}

.prenota-aside-cta-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  grid-row: 1 / span 2;
  align-self: center;
  border-right: 1px solid var(--rule);
  padding-right: 1.2rem;
}

.prenota-aside-cta-value {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--cream);
}

.prenota-aside-cta-arrow {
  font-family: var(--sans);
  color: var(--gold);
  transition: transform 0.3s;
}

.prenota-aside-cta:hover .prenota-aside-cta-arrow {
  transform: translateX(4px);
}

/* ============================================================
   Reveal (compatibile con quello esistente in styles.css)
   Fallback se l'utente ha JS disattivato
   ============================================================ */
.page-prenota .reveal { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .prenota-grid {
    grid-template-columns: 1fr;
  }
  .prenota-aside {
    position: static;
    order: 2;
  }
  .prenota-form {
    order: 1;
  }
}

@media (max-width: 720px) {
  .prenota-intro {
    padding: 8rem var(--gutter) 3rem;
  }
  .prenota-form-section {
    padding: 3rem 0 6rem;
  }

  .prenota-quickline {
    flex-direction: column;
    align-items: stretch;
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    gap: 1rem;
  }
  .prenota-quick {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .prenota-quick-sep {
    width: 100%;
    height: 1px;
  }

  .prenota-field-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }
  .prenota-field-half,
  .prenota-field-third { grid-column: span 1; }

  .prenota-aside-photo img { height: 220px; }

  .prenota-aside-cta {
    grid-template-columns: 1fr auto;
  }
  .prenota-aside-cta-label {
    grid-row: 1;
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 0.7rem;
  }
}
