.booking-section {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-safe-offset, 92px) + 24px);
  background: #151515;
  --contact-olive: #6e7f43;
  --contact-ivory: #f5f1e8;
  --contact-charcoal: #2e2e2e;
  --contact-gold: #b89a62;
}

.booking-section .section-inner {
  padding-bottom: clamp(20px, 3vh, 34px);
}

.booking-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../foto ristorante/foto per sfondo menu.png") center center / cover no-repeat;
  transform: scale(1.08);
  filter: blur(3px);
  opacity: 0.78;
  pointer-events: none;
}

.booking-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.booking-section .section-inner {
  position: relative;
  z-index: 1;
}

.booking-section .section-kicker {
  color: rgba(184, 154, 98, 0.94);
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

#booking-form {
  scroll-margin-top: calc(var(--header-safe-offset, 92px) + 10px);
}

.directions-section .section-kicker {
  color: rgba(58, 46, 34, 0.72);
  letter-spacing: 0.18em;
}

.booking-section h2 {
  text-align: center;
  color: #f5f1e8;
  letter-spacing: 0.03em;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  margin: 0 auto 24px;
}

.directions-section h2 {
  text-align: center;
  color: #4e5f32;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 34px;
}

.booking-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}

.booking-info {
  display: grid;
  gap: 24px;
}

.info-card {
  background: var(--contact-ivory);
  border: 1px solid rgba(110, 127, 67, 0.22);
  border-radius: 20px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  padding: 22px;
}

.info-card h3 {
  font-size: clamp(1.34rem, 2.1vw, 1.62rem);
  margin-bottom: 10px;
  color: var(--contact-olive);
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.info-card p {
  font-size: 0.96rem;
  margin-bottom: 12px;
  color: var(--contact-charcoal);
}

.info-card .btn {
  width: 100%;
  justify-content: center;
}

.booking-section .btn,
.directions-section .btn {
  min-height: 54px;
  border-radius: 14px;
  letter-spacing: 0.1em;
  padding-inline: 20px;
}

.booking-section .btn.btn-primary,
.directions-section .btn.btn-primary {
  color: #fff;
  background: var(--contact-olive);
  border: 1px solid var(--contact-olive);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.booking-section .btn.btn-primary:hover,
.directions-section .btn.btn-primary:hover {
  transform: translateY(-1px);
  background: #607037;
  border-color: #607037;
}

.booking-section .btn.btn-secondary,
.directions-section .btn.btn-secondary {
  color: var(--contact-charcoal);
  background: var(--contact-ivory);
  border: 1px solid var(--contact-olive);
}

.booking-section .btn.btn-secondary:hover,
.directions-section .btn.btn-secondary:hover {
  transform: translateY(-1px);
  background: #efe8db;
  border-color: #607037;
  color: #232323;
}

.info-note {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.8;
}

.social-card a {
  color: var(--contact-charcoal);
  border-bottom: 1px solid rgba(110, 127, 67, 0.25);
}

.social-direct-links {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
}

.social-card p + p {
  margin-top: 14px;
}

.social-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 12px;
  padding: 10px 0;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", "Poppins", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--contact-charcoal);
  border: none;
  border-bottom: 1px solid rgba(110, 127, 67, 0.22);
  transition: color var(--transition), border-color var(--transition);
}

.social-direct-btn span {
  overflow-wrap: anywhere;
}

.social-card .social-direct-btn {
  color: var(--contact-charcoal);
}

.social-direct-btn i {
  font-size: 1.15rem;
}

.social-direct-instagram {
  background: transparent;
}

.social-direct-facebook {
  background: transparent;
}

.social-direct-google {
  background: transparent;
}

.social-direct-instagram i {
  color: #d04677;
}

.social-direct-facebook i {
  color: #3d66b3;
}

.social-direct-google i {
  color: #c68a2f;
}

.social-direct-btn:hover {
  color: var(--contact-olive);
  border-color: rgba(110, 127, 67, 0.44);
}

.booking-form {
  margin: 0;
  padding: clamp(26px, 3.3vw, 34px);
  border-radius: 20px;
  border: 1px solid rgba(110, 127, 67, 0.24);
  background: var(--contact-ivory);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.booking-form label,
.info-card p {
  color: var(--contact-charcoal);
}

@media (max-width: 1080px) {
  .booking-form {
    transform: none;
  }
}

.booking-form h3 {
  font-size: clamp(1.36rem, 2.1vw, 1.72rem);
  margin-bottom: 16px;
  color: var(--contact-olive);
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.booking-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--contact-charcoal);
  font-weight: 500;
}

.booking-time-fieldset {
  grid-column: 1 / -1;
  border: 0;
  margin: 0;
  padding: 0;
}

.booking-time-fieldset legend {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--contact-charcoal);
  font-weight: 500;
}

.booking-time-trigger {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(110, 127, 67, 0.34);
  border-radius: 12px;
  padding: 11px 14px;
  background: #fffdf8;
  color: var(--contact-charcoal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.booking-time-trigger:hover {
  border-color: rgba(110, 127, 67, 0.6);
}

.booking-time-trigger:focus-visible {
  outline: none;
  border-color: rgba(110, 127, 67, 0.62);
  box-shadow: 0 0 0 3px rgba(110, 127, 67, 0.12);
}

.booking-time-trigger-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.booking-time-fieldset.is-open .booking-time-trigger-icon {
  transform: rotate(225deg) translateY(-1px);
}

.booking-time-panel {
  margin-top: 10px;
}

.booking-time-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.booking-time-pill {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.booking-time-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.booking-time-pill span {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(110, 127, 67, 0.32);
  background: #fffdf8;
  color: var(--contact-charcoal);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.booking-time-pill:hover span {
  transform: translateY(-1px);
  border-color: rgba(110, 127, 67, 0.56);
  box-shadow: 0 8px 16px rgba(58, 46, 34, 0.12);
}

.booking-time-pill input:checked + span {
  color: #fff;
  border-color: var(--contact-olive);
  background: linear-gradient(135deg, #7a8f48 0%, #5f7038 100%);
  box-shadow: 0 10px 18px rgba(94, 114, 56, 0.3);
}

.booking-time-pill input:disabled + span {
  opacity: 0.42;
  border-color: rgba(110, 127, 67, 0.2);
  background: rgba(240, 236, 228, 0.6);
  color: rgba(46, 46, 46, 0.52);
  box-shadow: none;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-time-pill input:focus-visible + span {
  outline: 2px solid rgba(110, 127, 67, 0.45);
  outline-offset: 2px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  border: 1px solid rgba(110, 127, 67, 0.3);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--contact-charcoal);
  background: #fffdf8;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: rgba(110, 127, 67, 0.62);
  box-shadow: 0 0 0 3px rgba(110, 127, 67, 0.12);
  transform: translateY(-1px);
}

.booking-notes {
  margin-top: 14px;
  margin-bottom: 8px;
}

.booking-notes textarea {
  min-height: 80px;
  resize: vertical;
}

.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.booking-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.booking-consent span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #444;
}

.booking-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.booking-actions .btn {
  min-height: 54px;
  border-radius: 14px;
  letter-spacing: 0.1em;
  min-width: 0;
  justify-content: center;
}

.booking-actions .btn.btn-primary {
  color: #fff;
  background: var(--contact-olive);
  border: 1px solid var(--contact-olive);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.booking-actions .btn.btn-primary:hover {
  transform: translateY(-1px);
  background: #607037;
  border-color: #607037;
}

.booking-actions .btn.btn-secondary {
  color: var(--contact-charcoal);
  background: var(--contact-ivory);
  border: 1px solid var(--contact-olive);
}

.booking-actions .btn.btn-secondary:hover {
  transform: translateY(-1px);
  background: #efe8db;
  border-color: #607037;
  color: #232323;
}

.booking-note {
  grid-column: 1 / -1;
  margin: 6px 0 0 0;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(46, 46, 46, 0.82);
}

@media (max-width: 1280px) {
  .booking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-time-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.booking-feedback {
  margin-top: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--contact-olive);
}

.directions-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(126, 167, 86, 0.3) 0%, rgba(126, 167, 86, 0) 36%),
    radial-gradient(circle at 10% 90%, rgba(233, 182, 128, 0.34) 0%, rgba(233, 182, 128, 0) 38%),
    #f5efe4;
  padding-top: clamp(56px, 6vh, 84px);
  padding-bottom: clamp(56px, 6vh, 84px);
}

.directions-section .section-inner {
  max-width: 980px;
}

.directions-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.72fr;
  gap: clamp(12px, 2vw, 20px);
}

.map-section,
.address-panel {
  background: linear-gradient(138deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 241, 232, 0.96) 100%);
  border: 1px solid rgba(110, 127, 67, 0.22);
  border-radius: 18px;
  box-shadow: 0 14px 24px rgba(58, 46, 34, 0.14);
  padding: clamp(16px, 2.2vw, 22px);
}

.map-section h3,
.address-panel h3 {
  color: #4e5f32;
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  margin-bottom: 12px;
}

.map-section p,
.address-panel p {
  font-size: 0.88rem;
  margin-bottom: 10px;
}

.map-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.map-actions .btn {
  flex: 1 1 220px;
  min-width: 0;
}

.map-actions .btn.btn-primary {
  color: #fff;
  background: #6e7f43;
  border: 1px solid #6e7f43;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.map-actions .btn.btn-primary:hover {
  background: #607037;
  border-color: #607037;
}

.map-embed-wrapper {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(85, 107, 47, 0.22);
  box-shadow: 0 10px 24px rgba(58, 46, 34, 0.14);
}

.map-embed-wrapper iframe {
  width: 100%;
  height: min(300px, 40vw);
  min-height: 210px;
  border: 0;
  display: block;
}

.address-panel ul {
  list-style: none;
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.address-panel li {
  font-size: 0.84rem;
  color: var(--text-elegant);
}

.address-panel a {
  color: #4e5f32;
  border-bottom: 1px solid rgba(110, 127, 67, 0.3);
}

.address-panel .btn {
  width: 100%;
  justify-content: center;
}

.address-panel .btn.btn-primary {
  color: #fff;
  background: #6e7f43;
  border: 1px solid #6e7f43;
}

.address-panel .btn.btn-primary:hover {
  color: #fff;
  background: #607037;
  border-color: #607037;
}

@media (max-width: 1080px) {
  .booking-layout,
  .directions-layout {
    grid-template-columns: 1fr;
  }

  .booking-section .section-inner,
  .directions-section .section-inner {
    width: min(980px, 92vw);
  }
}

@media (max-width: 900px) {
  .booking-form {
    order: 1;
    padding: clamp(22px, 4vw, 28px);
  }

  .booking-info {
    order: 2;
    gap: 18px;
  }

  .info-card,
  .map-section,
  .address-panel {
    padding: 18px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-time-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .booking-section {
    padding-top: calc(var(--header-safe-offset, 92px) + 16px);
  }

  .booking-section h2,
  .directions-section h2 {
    margin-bottom: 24px;
  }

  .booking-actions {
    grid-template-columns: 1fr;
  }

  .booking-time-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-actions {
    flex-direction: column;
  }

  .map-actions .btn {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .booking-section .section-inner,
  .directions-section .section-inner {
    width: min(100%, 94vw);
  }

  .booking-section {
    padding-top: calc(var(--header-safe-offset, 92px) + 10px);
  }

  .booking-section h2 {
    font-size: clamp(1.72rem, 8vw, 2.2rem);
    margin-bottom: 18px;
  }

  .directions-section h2 {
    font-size: clamp(1.72rem, 8vw, 2.16rem);
    margin-bottom: 20px;
  }

  .booking-form,
  .info-card,
  .map-section,
  .address-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .booking-section .btn,
  .directions-section .btn {
    min-height: 50px;
    padding-inline: 14px;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
  }

  .booking-form h3,
  .info-card h3,
  .map-section h3,
  .address-panel h3 {
    font-size: clamp(1.24rem, 6vw, 1.5rem);
  }

  .booking-form label {
    font-size: 0.84rem;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 0.9rem;
    padding: 11px 12px;
  }

  .map-embed-wrapper iframe {
    height: 250px;
    min-height: 0;
  }
}

@media (max-width: 380px) {
  .booking-section .section-inner,
  .directions-section .section-inner {
    width: min(100%, 96vw);
  }

  .booking-section h2,
  .directions-section h2 {
    font-size: clamp(1.5rem, 9vw, 1.9rem);
  }

  .booking-form,
  .info-card,
  .map-section,
  .address-panel {
    padding: 14px;
  }

  .booking-section .btn,
  .directions-section .btn {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .booking-note,
  .booking-consent span,
  .address-panel li,
  .map-section p,
  .address-panel p,
  .info-card p {
    font-size: 0.82rem;
  }
}
