@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("assets/fonts/caveat-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f4ead8;
  --paper-light: #fbf6ea;
  --ink: #2e261f;
  --ink-soft: #5b4c3e;
  --terracotta: #a9401d;
  --terracotta-dark: #7f2f18;
  --olive: #66713b;
  --olive-dark: #475127;
  --gold: #b8882f;
  --line: rgba(91, 76, 62, 0.26);
  --white: #fffdf7;
  --max: 1280px;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "Source Sans 3", Arial, sans-serif;
  --script: "Caveat", cursive;
  --duration-press: 120ms;
  --duration-ui: 240ms;
  --duration-reveal: 540ms;
  --duration-hero: 720ms;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --z-header: 40;
  --z-backdrop: 45;
  --z-menu: 50;
  --z-dialog: 80;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--paper);
  background-image: url("assets/da-maria/paper-texture.webp");
  background-repeat: repeat;
  background-size: 560px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 0;
  min-height: 92px;
  border-bottom: 1px solid transparent;
  background: rgba(251, 246, 234, 0.96);
  transition: min-height var(--duration-ui) var(--ease-out-quart), border-color var(--duration-ui) ease, box-shadow var(--duration-ui) ease;
}

.site-header.scrolled {
  min-height: 74px;
  border-color: var(--line);
  box-shadow: 0 5px 8px rgba(46, 38, 31, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  min-height: inherit;
  margin: 0 auto;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  font-style: italic;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

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

.brand img,
.brand span {
  transition: width var(--duration-ui) var(--ease-out-quart), height var(--duration-ui) var(--ease-out-quart), transform var(--duration-ui) var(--ease-out-quart);
}

.brand:hover span {
  transform: translateX(3px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 34px);
}

.nav-menu > a:not(.button) {
  position: relative;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-menu > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-ui) var(--ease-out-quart);
}

.nav-menu > a:hover::after,
.nav-menu > a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle,
.nav-backdrop {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform var(--duration-press) var(--ease-out-quart), background-color var(--duration-ui) ease, border-color var(--duration-ui) ease, color var(--duration-ui) ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--terracotta);
  color: var(--white);
}

.button-primary:hover {
  background: var(--terracotta-dark);
}

.button-outline {
  border-color: var(--terracotta);
  background: transparent;
  color: var(--terracotta-dark);
}

.button-outline:hover {
  background: rgba(169, 64, 29, 0.08);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, 0.98fr);
  min-height: calc(100svh - 92px);
  max-height: 920px;
  overflow: hidden;
  isolation: isolate;
}

.hero-paper {
  position: relative;
  z-index: auto;
  display: grid;
  align-content: space-between;
  min-width: 0;
  padding: clamp(42px, 6vw, 88px) clamp(34px, 6vw, 96px) clamp(52px, 7vw, 104px) max(34px, calc((100vw - var(--max)) / 2));
  background-color: rgba(244, 234, 216, 0.91);
  background-image: url("assets/da-maria/paper-texture.webp");
  background-size: 560px;
}

.recipe-note {
  max-width: 420px;
  margin-bottom: clamp(36px, 5vw, 72px);
  color: rgba(91, 76, 62, 0.64);
  font-family: var(--script);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.25;
  transform: rotate(-2deg);
}

.recipe-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: rgba(91, 76, 62, 0.77);
  font-size: 1.18em;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-copy {
  max-width: 720px;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(3.8rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.hero-copy > p {
  max-width: 48ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.hero-collage {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--terracotta-dark);
}

.postcard {
  --px: 0px;
  --py: 0px;
  position: absolute;
  z-index: 2;
  margin: 0;
  padding: clamp(7px, 0.8vw, 11px) clamp(7px, 0.8vw, 11px) clamp(24px, 2.4vw, 34px);
  background: var(--paper-light);
  box-shadow: 0 5px 8px rgba(46, 38, 31, 0.24);
  transform: translate3d(var(--px), var(--py), 0) rotate(var(--rotation));
  transform-origin: center;
  transition: transform var(--duration-ui) var(--ease-out-quint), box-shadow var(--duration-ui) ease;
  will-change: auto;
}

.postcard:hover {
  z-index: 10;
  box-shadow: 0 7px 8px rgba(46, 38, 31, 0.3);
}

.postcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.35) saturate(0.77) contrast(1.05);
}

.postcard figcaption {
  position: absolute;
  right: 8px;
  bottom: 3px;
  left: 8px;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: clamp(0.82rem, 1.1vw, 1rem);
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.postcard-viale {
  --rotation: 4deg;
  top: 4%;
  left: 8%;
  width: 48%;
  height: 38%;
}

.postcard-maria {
  --rotation: -3deg;
  top: 32%;
  left: 34%;
  width: 40%;
  height: 31%;
}

.postcard-vista {
  --rotation: 3deg;
  top: 57%;
  left: 4%;
  width: 55%;
  height: 27%;
}

.postcard-famiglia {
  --rotation: -5deg;
  top: 64%;
  right: 3%;
  width: 38%;
  height: 29%;
}

.postcard-oggi {
  --rotation: 4deg;
  top: 8%;
  right: -13%;
  width: 45%;
  height: 42%;
}

.section {
  padding: clamp(76px, 9vw, 132px) max(24px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  max-width: 900px;
  margin: 0 auto clamp(48px, 6vw, 78px);
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(2.65rem, 5vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.03;
}

.ornament {
  display: inline-block;
  color: var(--gold);
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: 0.2em;
}

.story {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  z-index: 0;
  top: clamp(68px, 8.1vw, 102px);
  right: 5%;
  left: 5%;
  height: 1px;
  background: var(--ink-soft);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 760ms var(--ease-out-expo);
}

.timeline.in-view::before {
  transform: scaleX(1);
}

.timeline li {
  position: relative;
  z-index: 1;
  padding: 0 clamp(7px, 1vw, 14px);
  text-align: center;
}

.timeline figure {
  width: clamp(108px, 13vw, 166px);
  aspect-ratio: 1;
  margin: 0 auto 1.35rem;
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--paper-light);
  box-shadow: 0 4px 8px rgba(46, 38, 31, 0.15);
}

.timeline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.23) saturate(0.82);
  transition: transform 420ms var(--ease-out-quint), filter 420ms ease;
}

.timeline li:hover img {
  transform: scale(1.025);
  filter: sepia(0.1) saturate(0.96);
}

.timeline span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--olive-dark);
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.timeline h3 {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.7vw, 1.75rem);
  font-weight: 400;
  line-height: 1.05;
}

.timeline p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(0.82rem, 1vw, 0.94rem);
  line-height: 1.45;
}

.principles {
  border-bottom: 1px solid var(--line);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1220px);
  margin: 0 auto;
  gap: clamp(18px, 3vw, 36px);
}

.principle {
  margin: 0;
}

.principle-image {
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow: 0 5px 8px rgba(46, 38, 31, 0.14);
}

.principle-image img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  transition: transform 460ms var(--ease-out-quint), filter 460ms ease;
}

.principle-tradition .principle-image img {
  object-position: 22% center;
}

.principle-genuine .principle-image img {
  object-position: 76% center;
}

.principle:hover img {
  transform: scale(1.025);
  filter: saturate(1.06);
}

.principle-copy {
  padding: 1.35rem clamp(8px, 1.4vw, 18px) 0;
  text-align: center;
}

.principle-copy p {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 1;
}

.principle-tradition .principle-copy p,
.principle-welcome .principle-copy p {
  color: var(--olive);
}

.principle-genuine .principle-copy p {
  color: var(--terracotta);
}

.principle-copy span {
  display: block;
  max-width: 42ch;
  margin: 0 auto;
  color: var(--ink-soft);
}

.gallery {
  padding-bottom: clamp(84px, 10vw, 150px);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.92fr 0.92fr;
  grid-template-rows: minmax(260px, 0.9fr) minmax(260px, 1fr);
  width: min(100%, var(--max));
  min-height: 680px;
  margin: 0 auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: var(--ink-soft);
  cursor: zoom-in;
}

.gallery-large {
  grid-row: 1 / span 2;
}

.gallery-wide {
  grid-column: 2 / span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease-out-quint), filter 420ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.02);
}

.gallery-item:active img {
  transform: scale(1.01);
}

.site-footer {
  position: relative;
  padding: clamp(52px, 7vw, 84px) 24px 34px;
  background: var(--terracotta);
  color: var(--white);
  text-align: center;
}

.footer-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-style: italic;
  line-height: 1;
  text-decoration: none;
  transition: transform var(--duration-ui) var(--ease-out-quart);
}

.footer-brand:hover {
  transform: translateY(-2px);
}

.site-footer p {
  margin-bottom: 1.4rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-bottom: 2rem;
}

.footer-links a {
  text-underline-offset: 5px;
}

.site-footer small {
  color: rgba(255, 253, 247, 0.78);
}

/* Secondary pages keep the same editorial language as the homepage. */
.subpage .site-header {
  position: sticky;
}

.page-main {
  min-height: 70vh;
  padding: clamp(68px, 9vw, 120px) 24px;
}

.page-hero,
.menu-list,
.legal-content {
  width: min(100%, 920px);
  margin: 0 auto;
}

.page-hero {
  padding-bottom: clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.legal-content h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.page-hero > p:last-child,
.legal-content p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.leaf-label {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: 1.45rem;
}

.menu-list {
  display: grid;
  gap: 28px;
  padding-right: 0;
  padding-left: 0;
}

.menu-list article {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  background: rgba(251, 246, 234, 0.58);
}

.menu-list h2 {
  margin-bottom: 1.6rem;
  color: var(--olive-dark);
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.menu-item h3 {
  margin-bottom: 0.3rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

.menu-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.menu-item > span {
  color: var(--terracotta-dark);
  font-weight: 700;
}

.simple-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 28px;
  padding-top: 32px;
}

.simple-footer p {
  margin: 0;
  font-family: var(--body);
  font-size: 0.95rem;
  font-style: normal;
}

.back-link {
  display: inline-block;
  margin-bottom: clamp(42px, 7vw, 76px);
  color: var(--terracotta-dark);
  font-weight: 700;
  text-underline-offset: 5px;
}

.lightbox {
  position: fixed;
  z-index: var(--z-dialog);
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(36, 29, 23, 0.96);
  color: var(--white);
  opacity: 0;
  transition: opacity 170ms ease;
}

.lightbox[open] {
  opacity: 1;
}

.lightbox.closing {
  opacity: 0;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox-frame {
  display: grid;
  grid-template-columns: minmax(86px, 0.16fr) minmax(0, 1fr) minmax(86px, 0.16fr);
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 16px;
  padding: 74px 24px 24px;
}

.lightbox figure {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-width: 0;
  height: 100%;
  margin: 0;
  place-items: center;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 110px);
  object-fit: contain;
}

.lightbox-close,
.lightbox-nav {
  min-height: 44px;
  border: 1px solid rgba(255, 253, 247, 0.54);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out-quart);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 253, 247, 0.12);
}

.lightbox-close:active,
.lightbox-nav:active {
  transform: scale(0.97);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 24px;
  padding: 0.55rem 0.9rem;
}

.lightbox-prev {
  grid-column: 1;
  grid-row: 1;
}

.lightbox-next {
  grid-column: 3;
  grid-row: 1;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr 0.86fr;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 7vw, 5.4rem);
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 8px;
  }

  .timeline::before {
    display: none;
  }
}

@media (min-width: 1081px) and (max-height: 950px) {
  .hero-paper {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .recipe-note {
    margin-bottom: 24px;
    font-size: 1.35rem;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 5vw, 5.15rem);
  }

  .hero-actions {
    margin-top: 1.4rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header,
  .site-header.scrolled {
    min-height: 76px;
  }

  .nav {
    width: min(calc(100% - 32px), var(--max));
  }

  .brand {
    font-size: 1.85rem;
  }

  .brand img,
  .site-header.scrolled .brand img {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    position: relative;
    z-index: calc(var(--z-menu) + 1);
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--ink-soft);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--duration-ui) ease, color var(--duration-ui) ease, transform var(--duration-press) var(--ease-out-quart);
  }

  .nav-toggle:active {
    transform: scale(0.97);
  }

  .nav-menu {
    position: fixed;
    z-index: var(--z-menu);
    inset: 0 0 0 auto;
    display: flex;
    width: min(86vw, 380px);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 96px 28px 40px;
    background-color: var(--paper-light);
    background-image: url("assets/da-maria/paper-texture.webp");
    background-size: 560px;
    box-shadow: -7px 0 8px rgba(46, 38, 31, 0.14);
    opacity: 0;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 280ms var(--ease-out-expo), opacity 210ms ease, visibility 0s linear 280ms;
  }

  .nav-menu.open {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .nav-menu > a:not(.button) {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 400;
  }

  .nav-menu > a:not(.button)::after {
    display: none;
  }

  .nav-menu .button {
    margin-top: 1.4rem;
  }

  .nav-backdrop {
    position: fixed;
    z-index: var(--z-backdrop);
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(46, 38, 31, 0.58);
    opacity: 0;
    transition: opacity var(--duration-ui) ease;
  }

  .nav-backdrop:not([hidden]) {
    opacity: 1;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .hero {
    display: block;
    min-height: 1080px;
    max-height: none;
  }

  .hero-paper {
    min-height: 760px;
    padding: 38px 24px 72px;
  }

  .recipe-note {
    max-width: 290px;
    margin-bottom: 1.8rem;
    font-size: 1.22rem;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(3.65rem, 12vw, 5.6rem);
  }

  .hero-copy > p {
    max-width: 42ch;
  }

  .hero-collage {
    position: absolute;
    z-index: 4;
    top: 44px;
    right: -80px;
    width: 54%;
    min-width: 400px;
    height: 660px;
    background: transparent;
    pointer-events: none;
  }

  .postcard {
    box-shadow: 0 4px 7px rgba(46, 38, 31, 0.23);
  }

  .postcard-viale {
    top: 0;
    left: 2%;
    width: 70%;
    height: 33%;
  }

  .postcard-maria {
    top: 28%;
    left: 13%;
    width: 58%;
    height: 31%;
  }

  .postcard-vista {
    top: 57%;
    left: -16%;
    width: 74%;
    height: 26%;
  }

  .postcard-famiglia {
    top: 74%;
    right: 2%;
    width: 58%;
    height: 25%;
  }

  .postcard-oggi {
    top: 50%;
    right: -8%;
    width: 57%;
    height: 27%;
  }

  .hero-copy {
    position: absolute;
    z-index: 6;
    right: 24px;
    bottom: 64px;
    left: 24px;
    max-width: 620px;
    padding-right: 20%;
  }

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

  .principles-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    gap: 22px;
  }

  .principle {
    display: grid;
    grid-template-columns: minmax(180px, 0.78fr) minmax(0, 1fr);
    align-items: center;
    border: 1px solid var(--line);
    background: rgba(251, 246, 234, 0.56);
  }

  .principle-image img {
    aspect-ratio: 1.18 / 1;
  }

  .principle-copy {
    padding: 22px;
    text-align: left;
  }

  .principle-copy span {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  body {
    background-size: 440px;
  }

  .brand img,
  .site-header.scrolled .brand img {
    width: 40px;
    height: 40px;
  }

  .brand {
    gap: 9px;
    font-size: 1.65rem;
  }

  .hero {
    min-height: 790px;
  }

  .hero-paper {
    min-height: 790px;
  }

  .hero-collage {
    top: 12px;
    right: -88px;
    width: 70%;
    min-width: 320px;
    height: 310px;
  }

  .recipe-note {
    max-width: 225px;
    font-size: 1.06rem;
  }

  .hero-copy {
    right: 20px;
    bottom: 38px;
    left: 20px;
    padding-right: 0;
  }

  .hero h1 {
    max-width: 335px;
    margin-bottom: 1rem;
    font-size: clamp(3.1rem, 13vw, 3.85rem);
    line-height: 0.98;
  }

  .hero-copy > p {
    max-width: 37ch;
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    max-width: 280px;
    gap: 10px;
    margin-top: 1.4rem;
  }

  .page-main {
    padding: 52px 20px 72px;
  }

  .page-hero h1,
  .legal-content h1 {
    font-size: clamp(2.8rem, 13vw, 4rem);
  }

  .menu-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: clamp(2.45rem, 11.5vw, 3.65rem);
  }

  .timeline {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 520px;
  }

  .timeline::before {
    display: block;
    top: 22px;
    right: auto;
    bottom: 30px;
    left: 60px;
    width: 1px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .timeline.in-view::before {
    transform: scaleY(1);
  }

  .timeline li {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 154px;
    padding: 8px 0;
    text-align: left;
  }

  .timeline figure {
    width: 112px;
    margin: 0;
  }

  .timeline h3 {
    margin-bottom: 0.35rem;
    font-size: 1.55rem;
  }

  .timeline p {
    font-size: 0.88rem;
  }

  .principle {
    grid-template-columns: minmax(118px, 0.76fr) minmax(0, 1.24fr);
  }

  .principle-image,
  .principle-image img {
    height: 100%;
  }

  .principle-copy {
    padding: 16px;
  }

  .principle-copy p {
    margin-bottom: 0.35rem;
    font-size: 1.8rem;
  }

  .principle-copy span {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 230px 170px;
    min-height: 0;
    gap: 8px;
  }

  .gallery-large {
    grid-row: auto;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .gallery-item:first-child {
    grid-column: 1 / -1;
  }

  .gallery-item:last-child {
    display: none;
  }

  .lightbox-frame {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    padding: 72px 16px 18px;
  }

  .lightbox figure {
    grid-column: 1 / -1;
    grid-row: 1;
    height: min(72vh, 660px);
  }

  .lightbox-prev {
    grid-column: 1;
    grid-row: 2;
  }

  .lightbox-next {
    grid-column: 2;
    grid-row: 2;
  }

  .lightbox-close {
    right: 16px;
  }
}

@media (hover: none), (pointer: coarse) {
  .postcard,
  .gallery-item img,
  .principle-image img {
    transition-duration: 0ms;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .postcard {
    --px: 0px !important;
    --py: 0px !important;
  }
}
