:root {
  --dark: #17100f;
  --dark-soft: #241916;
  --cream: #f2e5ce;
  --gold: #c7a474;
  --muted: #c7b7a4;
  --burgundy: #642c32;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--cream);
  font-family: "Montserrat", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  padding: 25px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar a,
.topbar span {
  color: #f3e8d6;
  font-size: 10px;
  letter-spacing: 2px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--gold);
}

/* FOTO PRINCIPALE */

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: 100px 24px 75px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("private-dining.png");
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  animation: photoReveal 2s ease-out both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12, 7, 5, 0.55) 0%,
    rgba(12, 7, 5, 0.22) 35%,
    rgba(12, 7, 5, 0.45) 75%,
    rgba(12, 7, 5, 0.82) 100%
  );
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 850px;
  text-align: center;
  animation: contentReveal 1.3s ease-out both;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 4vw, 47px);
  letter-spacing: 8px;
  font-weight: 400;
}

.brand-sub {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 5px;
}

.gold-line,
.small-line {
  width: 65px;
  height: 1px;
  background: var(--gold);
  margin: 30px auto;
}

.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 3px;
  line-height: 1.8;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(75px, 10vw, 145px);
  font-weight: 400;
  line-height: 0.95;
  margin: 20px 0;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.25);
}

.hero h1 em {
  font-weight: 400;
}

.hero-description {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(24px, 3vw, 35px);
  font-style: italic;
  margin: 20px auto 35px;
  max-width: 650px;
}

.main-button,
.outline-button,
.submit-button {
  border: 1px solid var(--gold);
  padding: 16px 29px;
  letter-spacing: 2px;
  font-size: 11px;
  transition: 0.3s ease;
}

.main-button {
  background: var(--cream);
  color: #482b24;
  border-radius: 40px;
}

.main-button:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* DESCRIZIONE */

.introduction {
  padding: 110px 24px 125px;
  max-width: 820px;
  margin: auto;
  text-align: center;
}

.introduction h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  margin: 22px 0;
}

.introduction h2 em,
.introduction h3 {
  color: var(--gold);
  font-weight: 400;
}

.introduction p:not(.eyebrow) {
  font-size: 14px;
  line-height: 2.2;
  color: var(--muted);
  margin: 22px auto;
}

.introduction h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(30px, 5vw, 44px);
  font-style: italic;
  margin-top: 65px;
}

.outline-button {
  margin-top: 25px;
  color: var(--cream);
  background: transparent;
  border-radius: 40px;
}

.outline-button:hover {
  background: var(--gold);
  color: var(--dark);
}

/* MODULO */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.83);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 92dvh;
  overflow-y: auto;
  background: #f6f0e6;
  color: #382923;
  border-radius: 12px;
  padding: 55px 48px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.close-button {
  position: absolute;
  right: 20px;
  top: 12px;
  border: 0;
  background: transparent;
  color: #604239;
  font-size: 36px;
  line-height: 1;
}

.modal-panel h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(45px, 7vw, 70px);
  font-weight: 400;
  margin: 10px 0;
}

.modal-panel h2 em {
  color: #875d48;
}

.form-intro {
  max-width: 510px;
  margin: 0 auto 35px;
  font-size: 13px;
  line-height: 1.9;
  color: #75665d;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

/* CAMPI ELEGANTI */

.field {
  text-align: left;
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 11px;
  letter-spacing: 0.8px;
  color: #69493c;
}

.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  min-height: 49px;
  border: 1px solid #cdb99e;
  border-radius: 8px;
  padding: 13px 15px;
  background: #fffdfa;
  color: #382923;
  font-size: 13px;
  outline: none;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a39588;
  opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: #a67b50;
  box-shadow: 0 0 0 3px rgba(166, 123, 80, 0.13);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.field select {
  cursor: pointer;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238b694e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}

.date-wrap {
  position: relative;
}

.date-wrap input {
  cursor: pointer;
  padding-right: 45px;
}

.calendar-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #92704f;
  font-size: 23px;
  pointer-events: none;
}

/* CALENDARIO ITALIANO */

.flatpickr-calendar.monastero-calendar {
  background: #fffaf2;
  border: 1px solid #cdb99e;
  border-radius: 12px;
  box-shadow: 0 15px 45px rgba(42, 24, 16, 0.2);
  font-family: "Montserrat", sans-serif;
  padding: 8px;
}

.monastero-calendar .flatpickr-months,
.monastero-calendar .flatpickr-weekdays {
  background: #fffaf2;
}

.monastero-calendar .flatpickr-current-month,
.monastero-calendar .flatpickr-weekday {
  color: #54392f;
}

.monastero-calendar .flatpickr-day {
  border-radius: 50%;
  color: #54392f;
}

.monastero-calendar .flatpickr-day.selected,
.monastero-calendar .flatpickr-day.selected:hover {
  background: #642c32;
  border-color: #642c32;
  color: #fff;
}

.monastero-calendar .flatpickr-day.today {
  border-color: #b79266;
}

.monastero-calendar .flatpickr-day:hover {
  background: #eadac5;
  border-color: #eadac5;
}

.monastero-calendar .flatpickr-day.flatpickr-disabled {
  color: #c8bfb5;
}

/* PRIVACY E INVIO */

.privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  font-size: 11px;
  line-height: 1.7;
  color: #665950;
  margin: 12px 0 25px;
}

.privacy input {
  margin-top: 3px;
  accent-color: var(--burgundy);
}

.submit-button {
  width: 100%;
  background: var(--burgundy);
  color: white;
  border-color: var(--burgundy);
  border-radius: 7px;
}

.submit-button:hover {
  background: #843d44;
}

.form-note {
  font-size: 10px;
  color: #82736b;
  margin-top: 15px;
  line-height: 1.6;
}

/* FOOTER */

footer {
  text-align: center;
  padding: 45px 20px;
  border-top: 1px solid rgba(199, 164, 116, 0.25);
}

footer p {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  letter-spacing: 5px;
  margin: 0 0 8px;
}

footer span,
footer small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}

footer small {
  margin-top: 28px;
  letter-spacing: 0;
}

/* ANIMAZIONI */

@keyframes photoReveal {
  from {
    opacity: 0.3;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* TELEFONO */

@media (max-width: 650px) {
  .topbar {
    padding: 20px 17px;
  }

  .topbar a,
  .topbar span {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .hero {
    min-height: 100svh;
    padding: 105px 20px 70px;
  }

  .hero-photo {
    background-position: 51% center;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(12, 7, 5, 0.62),
      rgba(12, 7, 5, 0.24) 35%,
      rgba(12, 7, 5, 0.6) 80%,
      rgba(12, 7, 5, 0.83)
    );
  }

  .brand {
    font-size: 29px;
    letter-spacing: 4px;
  }

  .brand-sub {
    font-size: 8px;
    letter-spacing: 3px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .hero h1 {
    font-size: clamp(68px, 17vw, 100px);
    line-height: 0.9;
  }

  .hero-description {
    font-size: 25px;
    line-height: 1.2;
  }

  .main-button {
    padding: 15px 20px;
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .introduction {
    padding: 80px 25px 90px;
  }

  .introduction p:not(.eyebrow) {
    font-size: 13px;
    line-height: 2;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal {
    padding: 8px;
  }

  .modal-panel {
    padding: 45px 22px 30px;
    max-height: 96dvh;
  }

  .modal-panel h2 {
    font-size: 48px;
  }

  .form-intro {
    font-size: 12px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
