:root {
  --wheat: #F9F4EA;
  --slate-night: #1A222D;
  --tomato: #C83226;
  --tomato-hover: #A6261C;
  --basil: #2E6F40;
  --gold: #F4C150;
  --white: #FFFFFF;
  --muted: #525D6B;
  --border: #E5DEC9;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--wheat);
  color: var(--slate-night);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  margin: 0;
  line-height: 1.12;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.trattoria-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(249, 244, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand-logo {
  height: 44px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate-night);
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-tomato-sm {
  text-decoration: none;
  background: var(--tomato);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Hero Day & Night */
.hero-daynight {
  padding: 44px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.seal-img {
  height: 22px;
  width: auto;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 22px;
  max-width: 56ch;
}

.shift-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.shift-btn {
  border: none;
  background: transparent;
  color: var(--slate-night);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.shift-btn.active {
  background: var(--slate-night);
  color: var(--gold);
}

.shift-status {
  font-size: 0.92rem;
  color: var(--basil);
  margin-bottom: 22px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-tomato {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--tomato);
  color: var(--white);
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
}

.btn-tomato:hover {
  background: var(--tomato-hover);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--white);
  color: var(--slate-night);
  border: 1.5px solid var(--slate-night);
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 10px;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--border);
}

/* Day Block */
.day-block {
  background: var(--white);
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.block-head {
  max-width: 680px;
  margin-bottom: 34px;
}

.badge-basil {
  display: inline-block;
  background: #DCFCE7;
  color: var(--basil);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.badge-wheat {
  display: inline-block;
  background: rgba(244, 193, 80, 0.16);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.block-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  margin-bottom: 10px;
}

.day-block .block-head p {
  margin: 0;
  color: var(--muted);
}

.dual-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.photo-box {
  margin: 0;
  background: var(--wheat);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.photo-box img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-box figcaption {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.94rem;
}

/* Night Block */
.night-block {
  background: var(--slate-night);
  color: var(--wheat);
  padding: 64px 0;
}

.night-block h2 {
  color: var(--white);
}

.night-block .block-head p {
  margin: 0;
  color: #CBD5E1;
}

.night-card {
  background: #242E3D;
  border-color: #334155;
  color: var(--wheat);
}

/* Reserve */
.reserve-section {
  padding: 64px 0;
}

.reserve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.loc-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.loc-panel > p {
  color: var(--muted);
  margin: 0 0 20px;
}

.loc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.loc-card p {
  margin: 0;
}

.divina-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.field {
  margin-bottom: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field label, .field-lbl {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--wheat);
  font-family: inherit;
  font-size: 1rem;
  color: var(--slate-night);
}

.field input:focus {
  outline: 2px solid var(--tomato);
  border-color: var(--tomato);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--wheat);
  color: var(--slate-night);
  border: 1px solid var(--border);
  padding: 8px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.chip.active {
  background: var(--tomato);
  color: var(--white);
  border-color: var(--tomato);
}

.btn-submit {
  width: 100%;
  border: none;
  background: var(--tomato);
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 10px;
  cursor: pointer;
}

.form-feedback {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.2em;
}

/* Footer */
.divina-footer {
  background: var(--slate-night);
  color: var(--wheat);
  padding: 26px 0;
  font-size: 0.86rem;
}

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.footer-flex p {
  margin: 0;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  .dual-photos,
  .reserve-grid,
  .field-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
  .footer-flex {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
