/* ==========================================================================
   Il Bosco — ristorante inclusivo
   Static stylesheet. No build step: plain CSS, custom properties, grid.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & reset
   -------------------------------------------------------------------------- */

:root {
  --cream: #f3efe5;
  --paper: #fbfaf5;
  --sand: #e7ddc2;
  --sand-strong: #e8d8ad;
  --green: #174c35;
  --dark: #17221c;
  --gold: #d49b46;
  --gold-light: #f3c568;
  --line: rgba(23, 34, 28, 0.23);
  --line-light: rgba(255, 255, 255, 0.25);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --nav-height: 104px;
}

@media (prefers-contrast: more) {
  :root {
    --dark: #000;
    --green: #003e26;
    --paper: #fff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--paper);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

ol,
ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0.25em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: transparent;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 4px solid #f4bf55;
  outline-offset: 4px;
}

:where(h1, h2, h3) {
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: #000;
  background: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   2. Shared typography
   -------------------------------------------------------------------------- */

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.91;
}

h1 {
  max-width: 940px;
  font-size: clamp(3.4rem, 7.2vw, 7.4rem);
}

h1 em,
h2 em {
  color: var(--gold-light);
  font-weight: 400;
}

h2 {
  color: var(--green);
  font-size: clamp(3.8rem, 7vw, 7.8rem);
}

.eyebrow {
  margin: 0 0 1.3rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: var(--green);
}

.section-number {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link.light {
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  height: var(--nav-height);
  padding: 0 4vw;
  color: #fff;
  background: rgba(17, 35, 27, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  transition: height 0.28s, background 0.28s;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: max-content;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transition: width 0.28s, height 0.28s;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand b {
  font-family: var(--serif);
  font-size: 1.5rem;
  transition: font-size 0.28s;
}

.brand small {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 1.6rem;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a[aria-current="page"] {
  border-bottom: 2px solid var(--gold-light);
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 52px;
  padding: 0.65rem 1.45rem;
  color: var(--green);
  background: #f8f3e6;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: padding 0.28s, min-height 0.28s;
}

.site-header.is-compact {
  --nav-height: 68px;
  background: rgba(17, 35, 27, 0.98);
}

.site-header.is-compact .brand img {
  width: 46px;
  height: 46px;
}

.site-header.is-compact .brand b {
  font-size: 1.2rem;
}

.site-header.is-compact .brand small,
.nav-toggle {
  display: none;
}

.site-header.is-compact .book-button {
  min-height: 44px;
  padding: 0.4rem 1.15rem;
}

/* --------------------------------------------------------------------------
   4. Hero (home slider + inner pages)
   -------------------------------------------------------------------------- */

.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 17, 10, 0.78), rgba(4, 17, 10, 0.3) 58%, rgba(4, 17, 10, 0.05)),
    linear-gradient(transparent 45%, rgba(4, 17, 10, 0.35));
}

.hero-slider {
  min-height: max(850px, 100svh);
  padding-top: 175px;
  overflow: hidden;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1s;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1160px, 90vw);
  margin: 0 auto 7.5rem;
}

.hero :where(h1) {
  line-height: 1.04;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-top: 2rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

.slider-controls {
  position: absolute;
  right: 5vw;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slide-count {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

.slide-dots {
  display: flex;
  gap: 2px;
}

.slider-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
  color: inherit;
  border: 1px solid transparent;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.slide-dots button span {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
  border-radius: 50%;
}

.slide-dots button[aria-pressed="true"] span {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.slide-pause {
  padding: 0.5rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
}

.page-hero {
  height: 82svh;
  min-height: 760px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(1200px, 90vw);
  margin: 0 auto 8vh;
}

.page-hero-copy h1 {
  max-width: 1050px;
  line-height: 1.04;
}

.page-hero-copy > p:last-child {
  max-width: 680px;
  margin-top: 2rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   5. Home sections
   -------------------------------------------------------------------------- */

.home-gallery {
  display: grid;
  grid-template:
    "a b b" 340px
    "a c d" 340px / 1.15fr 1fr 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--green);
}

.home-gallery figure {
  min-width: 0;
  overflow: hidden;
}

.home-gallery figure:nth-child(1) { grid-area: a; }
.home-gallery figure:nth-child(2) { grid-area: b; }
.home-gallery figure:nth-child(3) { grid-area: c; }
.home-gallery figure:nth-child(4) { grid-area: d; }

.intro {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr);
  gap: 4vw;
  padding: 8rem 5vw;
}

.intro h2,
.story h2,
.capolavoro h2 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 1.02;
}

.intro-copy {
  padding-top: 2.3rem;
}

.section-photo {
  width: 100%;
  margin: 2.5rem 0 0;
}

.section-photo img {
  height: auto;
  aspect-ratio: 4 / 3;
}

.section-photo figcaption {
  margin-top: 0.7rem;
  font-size: 0.875rem;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: #fff;
  background: var(--green);
}

.numbers article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 3rem;
  border-right: 1px solid var(--line-light);
}

.numbers strong {
  color: var(--gold-light);
  font: 400 clamp(4rem, 7vw, 7rem) / 1 var(--serif);
}

.numbers p {
  max-width: 260px;
  font-weight: 700;
}

.home-chapters {
  padding: 4rem 5vw;
  background: var(--cream);
}

.home-chapters > a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 4vw;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
}

.home-chapters > a:last-child {
  border-bottom: 1px solid var(--line);
}

.home-chapters > a > span {
  grid-area: 1 / 1;
  align-self: start;
  font-size: 0.875rem;
  font-weight: 800;
}

.home-chapters > a > img {
  grid-area: 1 / 2;
  height: 440px;
}

.home-chapters > a > div {
  grid-area: 1 / 3;
}

.home-chapters > a:nth-child(even) {
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.15fr);
}

.home-chapters > a:nth-child(even) > div {
  grid-column: 2;
}

.home-chapters > a:nth-child(even) > img {
  grid-column: 3;
}

.home-chapters h3 {
  margin: 0.25rem 0;
  color: var(--green);
  font: 400 clamp(3rem, 5vw, 5.5rem) / 1.05 var(--serif);
}

.home-chapters h3::after {
  content: " ↗";
  display: inline-block;
  vertical-align: middle;
  opacity: 0.65;
  font-family: var(--sans);
  font-size: 0.42em;
  transition: transform 0.2s;
}

.home-chapters a:hover h3::after {
  transform: translate(5px, -5px);
}

.home-chapters p {
  max-width: 470px;
}

/* --------------------------------------------------------------------------
   6. Editorial blocks (progetto / location / menu)
   -------------------------------------------------------------------------- */

.story,
.capolavoro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7vw;
  padding: 8rem 7vw;
}

.capolavoro {
  color: #fff;
  background: var(--green);
}

.capolavoro h2 {
  color: #fff;
}

.capolavoro .lead {
  color: var(--gold-light);
}

.story-reverse > div:first-child {
  grid-area: 1 / 2;
}

.story-reverse > .rich-copy {
  grid-area: 1 / 1;
}

.story-reverse .section-photo img {
  aspect-ratio: 3 / 2;
}

.rich-copy {
  max-width: 680px;
  padding-top: 2rem;
}

.rich-copy p {
  margin: 0 0 1.6rem;
}

.photo-story {
  display: grid;
  grid-template-rows: 430px 430px;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
  padding: 10px;
  background: var(--green);
}

.photo-story figure {
  position: relative;
  overflow: hidden;
}

.photo-story .large {
  grid-row: 1 / 3;
}

.photo-story figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 0.875rem;
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 9rem 7vw;
  background: var(--cream);
}

.steps li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.steps h3,
.space-notes h3,
.contact-cards h3 {
  margin: 0;
  color: var(--green);
  font: 400 2rem / 1.1 var(--serif);
}

.steps p {
  margin: 0.5rem 0;
}

.quote-band {
  padding: 9rem 10vw;
  background: var(--sand-strong);
}

.quote-band p {
  max-width: 1100px;
  margin: 0;
  color: var(--green);
  font: 400 clamp(2.5rem, 5vw, 5.5rem) / 1.08 var(--serif);
}

.space-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--sand);
}

.space-notes article {
  padding: 4rem;
  border-right: 1px solid var(--line);
}

.space-notes span {
  display: block;
  margin-bottom: 4rem;
  font-size: 0.875rem;
  font-weight: 800;
}

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 8vw;
  padding: 9rem 7vw;
  background: var(--paper);
}

/* --------------------------------------------------------------------------
   7. Curated gallery + lightbox
   -------------------------------------------------------------------------- */

.gallery-intro {
  padding: 6rem 7vw 3rem;
}

.gallery-intro h2 {
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.08;
}

.gallery-intro p:last-child {
  max-width: 680px;
  margin-top: 1.8rem;
}

.curated-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: var(--paper);
}

.gallery-tile {
  position: relative;
  display: block;
  grid-column: span 4;
  min-width: 0;
  height: 360px;
  overflow: hidden;
  text-align: left;
  background: var(--green);
  border: 0;
  cursor: pointer;
}

.gallery-tile img {
  transition: transform 0.45s;
}

.gallery-tile:hover img {
  transform: scale(1.035);
}

.gallery-tile:focus-visible {
  outline-offset: -5px;
}

.count-8 .tile-1 { grid-column: span 8; height: 460px; }
.count-8 .tile-2 { grid-column: span 4; height: 460px; }
.count-8 .tile-6 { grid-column: span 6; height: 440px; }
.count-8 .tile-7,
.count-8 .tile-8 { grid-column: span 3; height: 440px; }

.count-6 .gallery-tile { grid-column: span 4; height: 420px; }
.count-6 .tile-1,
.count-6 .tile-4,
.count-6 .tile-5 { grid-column: span 8; }

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 4rem 1.5rem 1.3rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  font-size: 1rem;
  line-height: 1.4;
}

.gallery-caption > span {
  flex: none;
  font-size: 1.5rem;
}

.photo-dialog {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
}

.photo-dialog::backdrop {
  background: rgba(5, 13, 9, 0.96);
}

.lightbox {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 1rem;
  width: min(1360px, 94vw);
  height: 100%;
  margin: auto;
  padding: 1rem 0;
}

.lightbox > img {
  min-height: 0;
  object-fit: contain;
}

.lightbox-top,
.lightbox-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0.5rem 1rem;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  cursor: pointer;
}

.lightbox-bottom p {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   8. Menu page
   -------------------------------------------------------------------------- */

.menu-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}

.season-menu {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 7vw;
  padding: 9rem 7vw;
  color: #fff;
  background: var(--green);
}

.season-menu h2,
.chef-heading h2 {
  color: #fff;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 1.05;
}

.chef-heading h2 {
  color: var(--green);
}

.menu-date {
  margin-top: 2rem;
  color: var(--gold-light);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-list section {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.menu-list h3 {
  color: var(--gold-light);
  font: 400 1.8rem var(--serif);
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1rem 0;
}

.menu-item p {
  margin: 0;
}

.menu-item b,
.chef-dish > b {
  font-size: 1.2rem;
  white-space: nowrap;
}

.menu-item small {
  display: block;
  margin-top: 0.4rem;
  color: #e8dfc9;
  font-size: 0.875rem;
}

.allergen-note {
  display: block;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.875rem;
}

.chef-specials {
  padding: 8rem 7vw;
  background: var(--cream);
}

.chef-heading {
  margin-bottom: 4rem;
}

.chef-heading p:last-child {
  margin-top: 1.8rem;
}

.chef-dish {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 2fr) auto;
  align-items: baseline;
  gap: 3rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.chef-dish > .eyebrow {
  color: #76502b;
}

.chef-dish h3 {
  margin: 0;
  color: var(--green);
  font: 400 clamp(1.65rem, 2.5vw, 2.5rem) / 1.2 var(--serif);
}

.chef-dish p:not(.eyebrow) {
  margin: 0.7rem 0 0;
}

/* --------------------------------------------------------------------------
   9. Contact cards & booking form
   -------------------------------------------------------------------------- */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8rem 6vw;
  background: var(--cream);
}

.contact-cards article {
  padding: 2.5rem;
  border-left: 1px solid var(--line);
}

.contact-cards h3 {
  font-size: 2.4rem;
}

.contact-cards a {
  overflow-wrap: anywhere;
}

.booking {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  padding: 9rem 7vw;
  background: var(--paper);
}

.booking-intro h2 {
  font-size: clamp(3.8rem, 6vw, 7rem);
}

.booking-intro > p:not(.eyebrow, .section-number, .phone) {
  max-width: 440px;
}

.phone {
  margin-top: 4rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phone a {
  font-family: var(--serif);
  font-size: 2rem;
  text-transform: none;
}

.booking-form {
  padding-top: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

input,
textarea {
  min-height: 56px;
  padding: 0.8rem 0;
  color: var(--dark);
  border-bottom: 2px solid;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 1.5rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.consent input {
  flex: 0 0 25px;
  width: 25px;
  min-height: 25px;
  margin: 0;
}

.booking-form button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
}

.form-note {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */

footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 4vw;
  padding: 6rem 5vw 2rem;
  color: #fff;
  background: var(--dark);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-self: start;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.footer-brand b {
  font-family: var(--serif);
  font-size: 1.7rem;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */

@media (width <= 1120px) {
  .site-header {
    --nav-height: 88px;
    grid-template-columns: 1fr auto auto;
    gap: 0.9rem;
  }

  .site-header .brand img {
    width: 56px;
    height: 56px;
  }

  .site-header .brand small {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.6rem 0.8rem;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: 0.875rem;
    cursor: pointer;
  }

  .site-header nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    padding: 1.5rem 4vw;
    background: #11231b;
    border-top: 1px solid var(--line-light);
  }

  .site-header nav.is-open {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
  }

  .site-header nav a {
    padding: 0.3rem 0.7rem;
  }
}

@media (width <= 900px) {
  body {
    font-size: 17px;
  }

  .page-hero {
    min-height: 650px;
  }

  .home-gallery {
    grid-template:
      "a b" 320px
      "c d" 320px / 1fr 1fr;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 5rem 5vw;
  }

  .intro-copy {
    max-width: none;
    padding: 0;
  }

  .section-photo {
    max-width: 650px;
  }

  .numbers {
    grid-template-columns: 1fr 1fr;
  }

  .home-chapters > a,
  .home-chapters > a:nth-child(even) {
    grid-template-columns: 32px minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .home-chapters > a > img {
    height: 340px;
  }

  .home-chapters h3 {
    font-size: 3rem;
  }

  .story,
  .capolavoro,
  .steps,
  .season-menu,
  .visit {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 5rem 5vw;
  }

  .story-reverse > div:first-child,
  .story-reverse > .rich-copy {
    grid-area: auto;
  }

  .rich-copy {
    max-width: none;
    padding-top: 0;
  }

  .photo-story {
    grid-template-rows: 450px 340px;
    grid-template-columns: 1fr 1fr;
  }

  .photo-story .large {
    grid-area: auto / 1 / auto / -1;
  }

  .space-notes,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .space-notes article,
  .contact-cards article {
    padding: 3rem 1.4rem;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .curated-gallery {
    gap: 8px;
    padding: 8px;
  }

  .curated-gallery .gallery-tile {
    height: 330px;
  }

  .count-8 .tile-1 { grid-column: span 7; }
  .count-8 .tile-2 { grid-column: span 5; }
  .count-8 .tile-6,
  .count-8 .tile-7,
  .count-8 .tile-8 { grid-column: span 4; }

  .gallery-caption {
    padding: 3rem 1rem 1rem;
    font-size: 0.875rem;
  }

  .chef-specials {
    padding: 5rem 5vw;
  }

  .chef-dish {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1.5rem;
  }

  .chef-dish > .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
  }

  .booking {
    grid-template-columns: 1fr;
    padding: 6rem 1.4rem;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 600px) {
  .site-header {
    --nav-height: 82px;
    gap: 0.5rem;
  }

  .site-header.is-compact {
    --nav-height: 64px;
  }

  .site-header .brand {
    gap: 0.4rem;
  }

  .site-header .brand img {
    width: 42px;
    height: 48px;
  }

  .site-header.is-compact .brand img {
    width: 36px;
    height: 42px;
  }

  .site-header .brand b {
    font-size: 1.2rem;
  }

  .site-header .book-button,
  .site-header.is-compact .book-button {
    min-height: 44px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .nav-toggle {
    padding: 0.4rem 0.6rem;
  }

  .nav-toggle > span {
    display: none;
  }

  .site-header nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-slider {
    min-height: max(760px, 100svh);
    padding-top: 150px;
  }

  .hero-slider h1 {
    font-size: clamp(2.5rem, 10.5vw, 4rem);
    letter-spacing: -0.04em;
  }

  .hero-slider .hero-copy {
    margin-bottom: 8rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-slide img {
    object-position: 58% center;
  }

  .slider-controls {
    left: 5vw;
    right: auto;
    bottom: 1.75rem;
    gap: 0.65rem;
  }

  .page-hero {
    min-height: 620px;
  }

  .home-gallery {
    grid-template-rows: 220px 220px;
  }

  .home-gallery figure:nth-child(2) img {
    object-position: 48% center;
  }

  h2 {
    font-size: 3.6rem;
  }

  .intro h2,
  .story h2,
  .capolavoro h2 {
    font-size: clamp(2.6rem, 10vw, 3.6rem);
  }

  .numbers {
    grid-template-columns: 1fr;
  }

  .numbers article {
    min-height: 230px;
  }

  .home-chapters > a,
  .home-chapters > a:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding: 2.5rem 0;
  }

  .home-chapters > a > span,
  .home-chapters > a > img,
  .home-chapters > a > div,
  .home-chapters > a:nth-child(even) > div,
  .home-chapters > a:nth-child(even) > img {
    grid-area: auto / 1;
  }

  .home-chapters > a > img {
    height: 310px;
  }

  .photo-story {
    display: flex;
    flex-direction: column;
  }

  .photo-story figure {
    height: 360px;
  }

  .gallery-intro {
    padding: 4rem 5vw 2rem;
  }

  .gallery-intro h2 {
    font-size: 2.6rem;
  }

  .curated-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curated-gallery .gallery-tile {
    grid-column: span 1;
    height: 270px;
  }

  .count-8 .tile-1,
  .count-8 .tile-6,
  .count-6 .tile-1,
  .count-6 .tile-4 {
    grid-column: span 2;
    height: 300px;
  }

  .lightbox {
    gap: 0.6rem;
    width: 94vw;
  }

  .lightbox-bottom p {
    font-size: 0.875rem;
  }

  .form-row,
  footer {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    padding: 4rem 1rem;
  }

  .quote-band {
    padding: 5rem 5vw;
  }
}

@media (width <= 360px) {
  .site-header .brand span {
    display: none;
  }

  .site-header nav.is-open {
    grid-template-columns: 1fr;
  }

  .curated-gallery {
    display: block;
  }

  .curated-gallery .gallery-tile {
    width: 100%;
    height: 300px;
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
