/* Lanterne v5: riga sotto al nome, accesso rapido alla prenotazione
   e modulo di prenotazione dimostrativo. Caricato dopo demo.css. */

.restaurant .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.restaurant .hero-copy .hero-line {
  margin-top: 22px;
  color: rgba(247, 239, 227, .72);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-foot {
  position: absolute;
  right: max(22px, calc((100vw - 1180px) / 2));
  bottom: 30px;
  left: max(22px, calc((100vw - 1180px) / 2));
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: rgba(247, 239, 227, .66);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-foot a {
  padding-bottom: 5px;
  color: #f7efe3;
  border-bottom: 1px solid rgba(247, 239, 227, .5);
  transition: border-color .4s ease;
}

.hero-foot a:hover { border-color: #f7efe3; }

.restaurant-footer a { color: inherit; text-decoration: none; }

/* Modulo di prenotazione */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.6fr) minmax(0, .8fr);
  margin-top: clamp(76px, 10vw, 138px);
  border-top: 1px solid rgba(240, 231, 216, .2);
  color: #f0e7d8;
}

.booking-field {
  min-width: 0;
  margin: 0;
  padding: 24px 24px 30px;
  border: 0;
  border-right: 1px solid rgba(240, 231, 216, .16);
  border-bottom: 1px solid rgba(240, 231, 216, .16);
}

.booking-field:first-child { padding-left: 0; }
.booking-guests { border-right: 0; }

.booking legend,
.booking-note > span,
.booking-done > span {
  float: left;
  width: 100%;
  margin-bottom: 26px;
  padding: 0;
  color: rgba(240, 231, 216, .48);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.booking select {
  width: 100%;
  padding: 0 22px 6px 0;
  color: inherit;
  font: inherit;
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: -.02em;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f0e7d8' stroke-opacity='.6'/%3E%3C/svg%3E") no-repeat right 60%;
  border: 0;
  border-bottom: 1px solid rgba(240, 231, 216, .24);
  border-radius: 0;
  appearance: none;
  cursor: pointer;
}

.booking select option { color: #17120e; }

.booking-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  clear: both;
}

.booking-slots label { position: relative; cursor: pointer; }

.booking-slots input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.booking-slots span {
  display: block;
  padding-bottom: 5px;
  color: rgba(240, 231, 216, .5);
  font-size: clamp(19px, 1.8vw, 25px);
  letter-spacing: -.02em;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}

.booking-slots label:hover span { color: #f0e7d8; }
.booking-slots input:checked + span { color: #f0e7d8; border-color: #f0e7d8; }
.booking-slots input:focus-visible + span { outline: 1px dotted rgba(240, 231, 216, .6); outline-offset: 4px; }

.booking-slots .is-full { cursor: not-allowed; }
.booking-slots .is-full span { color: rgba(240, 231, 216, .24); text-decoration: line-through; text-decoration-thickness: 1px; }
.booking-slots .is-full:hover span { color: rgba(240, 231, 216, .24); }

.booking-stepper {
  display: flex;
  align-items: center;
  gap: 18px;
  clear: both;
}

.booking-stepper output {
  min-width: 1.4ch;
  font-size: clamp(19px, 1.8vw, 25px);
  text-align: center;
}

.booking-stepper button {
  width: 34px;
  height: 34px;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  background: none;
  border: 1px solid rgba(240, 231, 216, .28);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .3s ease, opacity .3s ease;
}

.booking-stepper button:hover { border-color: #f0e7d8; }
.booking-stepper button:disabled { opacity: .3; cursor: default; }

.booking-note {
  display: block;
  grid-column: 1 / 3;
  padding: 24px 24px 26px 0;
  border-right: 1px solid rgba(240, 231, 216, .16);
  border-bottom: 1px solid rgba(240, 231, 216, .16);
}

.booking-note input {
  width: 100%;
  padding: 0 0 6px;
  color: inherit;
  font: inherit;
  font-size: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(240, 231, 216, .24);
  border-radius: 0;
  outline: none;
}

.booking-note input::placeholder { color: rgba(240, 231, 216, .34); }
.booking-note input:focus { border-color: rgba(240, 231, 216, .7); }

.booking-submit {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 24px;
  color: #17120e;
  font: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  text-align: left;
  text-transform: uppercase;
  background: #e8ddcb;
  border: 0;
  border-bottom: 1px solid rgba(240, 231, 216, .16);
  cursor: pointer;
  transition: color .4s ease, background .4s ease;
}

.booking-submit span { font-size: 18px; transition: transform .35s ease; }
.booking-submit:hover { color: #f0e7d8; background: #31251d; }
.booking-submit:hover span { transform: translate(5px, -5px); }
.booking-submit.is-sending { pointer-events: none; opacity: .7; }

.booking-small {
  grid-column: 1 / -1;
  margin-top: 16px;
  color: rgba(240, 231, 216, .42);
  font-size: 12px;
}

.booking-done {
  max-width: 640px;
  margin-top: clamp(76px, 10vw, 138px);
  padding-top: 26px;
  border-top: 1px solid rgba(240, 231, 216, .2);
  outline: none;
  animation: bookingIn .9s cubic-bezier(.22, 1, .36, 1) both;
}

.booking[hidden],
.booking-done[hidden] { display: none; }

.booking-done > span { float: none; display: block; }

.booking-done strong {
  display: block;
  margin-bottom: 22px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.booking-done p { color: rgba(240, 231, 216, .66); font-size: 16px; line-height: 1.6; }

.booking-done button {
  margin-top: 30px;
  padding: 0 0 4px;
  color: #f0e7d8;
  font: inherit;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(240, 231, 216, .5);
  cursor: pointer;
}

.booking-done small {
  display: block;
  margin-top: 44px;
  color: rgba(240, 231, 216, .36);
  font-size: 11px;
}

@keyframes bookingIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .hero-foot { bottom: 22px; font-size: 9px; }
  .hero-foot span { max-width: 20ch; line-height: 1.5; }

  .booking { grid-template-columns: 1fr 1fr; }
  .booking-date { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
  .booking-time { grid-column: 1 / -1; padding-inline: 0; border-right: 0; }
  .booking-guests { grid-column: 1 / -1; padding-inline: 0; }
  .booking-note { grid-column: 1 / -1; padding-right: 0; border-right: 0; }
  .booking-submit { grid-column: 1 / -1; min-height: 86px; }
}

@media (prefers-reduced-motion: reduce) {
  .booking-done { animation: none; }
}

/* Ingresso dalla home: copertina già ferma (vedi enter.js). */
.from-home .restaurant.is-ready .visual-panel { animation: none; }
