/* Pier 307 — immersive landing */

:root {
  /* Palette from Pier 307 logo */
  --paper: #f2eee6;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --text-muted: rgba(17, 17, 17, 0.68);
  --text-soft: rgba(17, 17, 17, 0.52);
  --fog: #eae5db;
  --cream: #faf7f2;
  --cream-dim: rgba(17, 17, 17, 0.68);
  --rosso: #9a1c1f;
  --rosso-hot: #c4282d;
  --rosso-deep: #5c1012;
  --rosso-glow: rgba(154, 28, 31, 0.2);
  --verde: #1f7a3a;
  --italia-verde: #009246;
  --italia-rosso: #ce2b37;
  --star: #e8c547;
  --wood: #3a2418;
  --line: rgba(17, 17, 17, 0.12);
  --section-line: rgba(154, 28, 31, 0.38);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

html.lenis,
html.lenis body {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

html.lenis.lenis-stopped {
  overflow: clip;
}

/* Hide native scrollbar — macOS overlay bars ignore CSS styling */
html.has-custom-scrollbar,
html.has-custom-scrollbar body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.has-custom-scrollbar::-webkit-scrollbar,
html.has-custom-scrollbar body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Custom thin scroll rail */
.scroll-rail {
  position: fixed;
  top: 18%;
  right: 0.55rem;
  bottom: 18%;
  z-index: 60;
  width: 3px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.scroll-rail.is-visible,
.scroll-rail.is-dragging,
.scroll-rail:hover {
  opacity: 1;
  pointer-events: auto;
}

.scroll-rail__thumb {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  min-height: 48px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(154, 28, 31, 0.35) 0%,
    rgba(154, 28, 31, 0.7) 50%,
    rgba(154, 28, 31, 0.35) 100%
  );
  cursor: grab;
  touch-action: none;
  transition: width 0.2s ease, margin-left 0.2s ease, background 0.2s ease;
}

.scroll-rail:hover .scroll-rail__thumb,
.scroll-rail.is-dragging .scroll-rail__thumb {
  width: 5px;
  margin-left: -2.5px;
  background: var(--rosso);
}

.scroll-rail.is-dragging .scroll-rail__thumb {
  cursor: grabbing;
}

@media (max-width: 719px) {
  .scroll-rail {
    right: 0.3rem;
    top: 14%;
    bottom: 14%;
    width: 2px;
  }

  .scroll-rail__thumb {
    width: 2px;
    margin-left: -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-rail {
    transition: none;
  }
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Fixed WebGL canvas — hero stage */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none !important;
}

.vignette {
  display: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Intro chapter */
.chapter--intro {
  justify-content: center;
  padding-bottom: 5.5rem;
}

.chapter__inner--intro {
  width: 100%;
}

.intro-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.intro-layout__copy {
  min-width: 0;
  max-width: 28rem;
}

.intro-layout__art {
  margin: 0;
  justify-self: center;
  width: min(100%, 26rem);
  background: transparent;
}

.intro-layout__art img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  filter: drop-shadow(0 18px 40px rgba(154, 28, 31, 0.12));
}

@media (min-width: 900px) {
  .chapter--intro {
    justify-content: center;
    padding-bottom: 4.5rem;
    padding-right: 0;
  }

  .intro-layout {
    display: block;
    position: relative;
    width: 100%;
    min-height: min(70vh, 36rem);
  }

  .intro-layout__copy {
    position: relative;
    z-index: 2;
    max-width: min(30rem, 38vw);
  }

  .intro-layout__art {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: min(48vw, 46rem);
    margin: 0;
    padding: 0;
  }
}

/* Chapters */
main {
  position: relative;
  z-index: 5;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(242, 238, 230, 0.94), rgba(242, 238, 230, 0.58));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(242, 238, 230, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav.nav--light {
  background: linear-gradient(180deg, rgba(242, 238, 230, 0.94), rgba(242, 238, 230, 0.58));
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.nav.nav--light .nav__brand span {
  color: var(--ink);
}

.nav.nav--light .nav__links a {
  color: rgba(17, 17, 17, 0.62);
}

.nav.nav--light .nav__links a:hover {
  color: var(--ink);
}

.nav.nav--light .nav__toggle span {
  background: var(--ink);
}

.nav.nav--light.is-scrolled {
  background: rgba(242, 238, 230, 0.96);
  backdrop-filter: blur(12px);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__brand img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.nav__brand span {
  color: var(--ink);
}

.nav__links {
  display: none;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--rosso);
  color: var(--rosso-hot);
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__cta:hover {
  background: var(--rosso);
  color: var(--cream);
}

.nav__toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.28rem) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.28rem) rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 35;
  background: rgba(242, 238, 230, 0.98);
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
}

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

.nav-drawer .btn {
  margin-top: 1rem;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .nav__links,
  .nav__cta {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }
}

/* Chapters */
.chapter {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) clamp(1.5rem, 6vw, 5rem) 5rem;
  background: var(--paper);
  color: var(--ink);
}

.chapter + .chapter {
  background: var(--paper);
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--section-line);
}

.chapter__inner {
  max-width: 52rem;
  width: 100%;
}

.chapter__inner--narrow {
  max-width: 36rem;
}

.chapter__inner--wide {
  max-width: 76rem;
}

.chapter--intro .chapter__inner--intro {
  max-width: none;
}

.chapter__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 1.25rem;
}

.brand-mark {
  width: clamp(8.5rem, 26vw, 13rem);
  height: clamp(8.5rem, 26vw, 13rem);
  margin-bottom: 1.35rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 32px var(--rosso-glow));
}

.italia-stripe {
  display: flex;
  width: 4.5rem;
  height: 3px;
  margin: 0 0 1.1rem;
  overflow: hidden;
}

.italia-stripe span {
  flex: 1;
}

.italia-stripe span:nth-child(1) { background: var(--italia-verde); }
.italia-stripe span:nth-child(2) { background: #ececec; }
.italia-stripe span:nth-child(3) { background: var(--italia-rosso); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chapter__headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.chapter__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  max-width: 16ch;
  color: var(--ink);
}

.chapter--menu .chapter__title,
.chapter--visit .chapter__title {
  max-width: 18ch;
}

.chapter--menu .chapter__title {
  max-width: none;
}

.chapter__lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--cream-dim);
  max-width: 34ch;
  margin-bottom: 1.5rem;
}

.chapter__lead--compact {
  max-width: 42ch;
}

.chapter__body {
  font-size: 1.05rem;
  color: var(--cream-dim);
  margin-bottom: 1.15rem;
}

.chapter__note {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-style: italic;
  margin: 1.75rem 0 2rem;
}

/* Buttons / CTAs */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.cta-group--finale {
  margin-top: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--rosso);
  color: var(--cream);
  border-color: var(--rosso);
}

.btn--primary:hover {
  background: var(--rosso-hot);
  border-color: var(--rosso-hot);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(17, 17, 17, 0.28);
  background: rgba(17, 17, 17, 0.04);
}

.btn--lg {
  padding: 1.05rem 1.6rem;
}

.cta-band {
  margin-top: 3rem;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--line);
}

.cta-band p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.text-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rosso);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: var(--rosso);
}

/* Atmosphere chapter — wide layout + photo gallery */
.chapter--atmosphere {
  min-height: auto;
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
}

.chapter--atmosphere .chapter__title {
  max-width: none;
}

.atmosphere__header {
  display: grid;
  gap: 1.25rem 3rem;
  margin-bottom: 2.75rem;
}

.atmosphere__intro {
  min-width: 0;
}

.chapter__lead--atmosphere {
  max-width: none;
  margin-bottom: 0;
  align-self: end;
}

.atmosphere-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
  pointer-events: auto;
}

.atmosphere-showcase {
  display: grid;
  gap: 1.75rem;
  min-width: 0;
  overflow: hidden;
}

.atmosphere-showcase[aria-hidden="true"] {
  pointer-events: none;
}

.atmosphere-showcase[aria-hidden="false"] {
  pointer-events: auto;
}

.atmosphere-showcase__photos {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.atmosphere-showcase__photos .atmosphere-photo__media {
  aspect-ratio: 4 / 5;
}

.atmosphere-showcase__photos .atmosphere-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.68rem;
}

.atmosphere-photo {
  margin: 0;
  min-width: 0;
}

.atmosphere-photo__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #f7f3eb 0%, #ebe6dc 100%);
  border: 1px solid var(--line);
}

.atmosphere-photo--featured .atmosphere-photo__media {
  aspect-ratio: 16 / 10;
}

.atmosphere-photo--natural .atmosphere-photo__media {
  aspect-ratio: auto;
  height: auto;
  overflow: hidden;
}

.atmosphere-photo--natural .atmosphere-photo__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.atmosphere-photo--wide .atmosphere-photo__media {
  aspect-ratio: 21 / 9;
}

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

.atmosphere-photo__media--expandable {
  cursor: zoom-in;
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.atmosphere-photo__media--expandable:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
}

.atmosphere-photo__media--expandable::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background:
    rgba(255, 255, 255, 0.92)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%239a1c1f' stroke-width='1.5' stroke-linecap='round' d='M6 2h8v8M14 2 8 8M10 14H2V6'/%3E%3C/svg%3E")
    center / 0.9rem no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.atmosphere-photo__media--expandable:hover::after,
.atmosphere-photo__media--expandable:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.atmosphere-photo__media img:not([hidden]) ~ .atmosphere-photo__placeholder {
  display: none;
}

.atmosphere-photo__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  background:
    linear-gradient(135deg, rgba(154, 28, 31, 0.04) 0%, transparent 55%),
    linear-gradient(145deg, #f7f3eb 0%, #ebe6dc 100%);
}

.atmosphere-photo figcaption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosso);
}

.sense-list--atmosphere {
  margin: 0;
}

.atmosphere__cta {
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .atmosphere-gallery {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .atmosphere-showcase {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 2rem 2.5rem;
    align-items: center;
  }

  .atmosphere-showcase__photos {
    gap: 1rem;
  }

  .atmosphere-photo--featured {
    grid-column: auto;
  }

  .atmosphere-photo--featured .atmosphere-photo__media {
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .atmosphere-photo--wide {
    grid-column: auto;
  }

  .sense-list--atmosphere {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    justify-content: center;
    height: 100%;
  }

  .sense-list--atmosphere li {
    padding-left: 0;
    padding-top: 0.85rem;
    border-left: 0;
    border-top: 2px solid var(--verde);
  }
}

@media (min-width: 900px) {
  .atmosphere__header {
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    align-items: end;
    margin-bottom: 3rem;
  }
}

/* Sense list (atmosphere) */
.sense-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin: 1.75rem 0 0;
}

.sense-list li {
  display: grid;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 2px solid var(--verde);
}

.sense-list strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.sense-list span {
  color: var(--cream-dim);
  font-size: 0.98rem;
}

/* Menu chapter — wide layout + cards */
.menu-chapter__header {
  display: grid;
  gap: 1.25rem 3rem;
  margin-bottom: 2.5rem;
}

.menu-chapter__intro {
  min-width: 0;
}

.chapter__lead--menu {
  max-width: none;
  margin-bottom: 0;
  align-self: end;
}

.menu-rows {
  display: grid;
  gap: 3.5rem;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.menu-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  min-width: 0;
}

.menu-row__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  width: min(100%, 20rem);
  background: #ebe6dc;
  border: 1px solid var(--line);
  isolation: isolate;
}

.menu-row__inner {
  will-change: transform, opacity;
}

.menu-row__media .menu-row__inner {
  height: 100%;
  min-height: 100%;
}

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

.menu-row__body .menu-row__inner {
  display: grid;
  gap: 1rem;
}

.menu-row__body {
  padding: 0.5rem 0;
  min-width: 0;
}

.menu-row__body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--rosso-hot);
}

.menu-row__body p {
  color: var(--cream-dim);
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.65;
  max-width: 38ch;
}

@media (max-width: 767px) {
  .menu-row--reverse .menu-row__media {
    order: 2;
  }

  .menu-row--reverse .menu-row__body {
    order: 1;
  }
}

.cta-band--menu {
  margin-top: 3.5rem;
}

@media (min-width: 768px) {
  .chapter--menu .menu-rows {
    width: auto;
    margin-left: 0;
    padding-left: clamp(1.5rem, 6vw, 5rem);
    padding-right: clamp(1.5rem, 5vw, 3.5rem);
  }

  .menu-rows {
    gap: 4rem;
  }

  .menu-row {
    grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .menu-row--reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
  }

  .menu-row__media {
    aspect-ratio: 4 / 5;
    height: min(50vh, 22rem);
    width: auto;
    max-width: 100%;
    min-height: 0;
    justify-self: start;
  }

  .menu-row--reverse .menu-row__media {
    justify-self: end;
  }

  .menu-row--reverse .menu-row__media {
    order: 2;
  }

  .menu-row--reverse .menu-row__body {
    order: 1;
  }

  .menu-row__body {
    padding: 0.75rem 0;
    align-self: center;
  }

  .menu-row--reverse .menu-row__body {
    justify-self: start;
    text-align: left;
  }

  .menu-row:not(.menu-row--reverse) .menu-row__body {
    justify-self: start;
  }
}

@media (min-width: 900px) {
  .menu-chapter__header {
    grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    align-items: end;
    margin-bottom: 3rem;
  }
}

/* Visit */
.visit-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.visit-layout__info {
  min-width: 0;
}

.visit-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
}

.visit-photo {
  margin: 0;
  min-width: 0;
}

.visit-photo__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #ebe6dc;
  border: 1px solid var(--line);
}

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

.visit-map {
  max-width: min(100%, 34rem);
  justify-self: stretch;
}

.visit-map__frame {
  position: relative;
  background: #e4dfd4;
}

.visit-map__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.visit-map figcaption a {
  color: var(--rosso);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.visit-map figcaption a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.visit-photo figcaption {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rosso);
}

@media (min-width: 700px) {
  .visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 900px) {
  .visit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3.5rem);
    align-items: center;
  }

  .visit-layout__cta {
    grid-column: 1 / -1;
  }

  .visit-photo__media {
    aspect-ratio: 4 / 3;
    min-height: min(42vh, 22rem);
  }

  .visit-map {
    max-width: min(100%, 32rem);
    justify-self: end;
  }
}

.visit-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--rosso);
}

.visit-block p {
  color: var(--cream-dim);
  line-height: 1.7;
}

.hours {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}

.hours li span:last-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.scroll-hint__line {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--rosso), transparent);
  animation: pulse-line 2.4s var(--ease) infinite;
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.85);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 5;
  padding: 4rem clamp(1.25rem, 5vw, 4rem) 3rem;
  border-top: 1px solid var(--section-line);
  background: var(--paper);
  color: var(--ink);
}

.footer__inner {
  max-width: 52rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer__brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.footer__meta,
.footer__copy {
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.footer__copy {
  margin-top: 0.75rem;
  opacity: 0.7;
}

/* Photo lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  width: min(96vw, 72rem);
  max-width: none;
  max-height: none;
  height: fit-content;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.photo-lightbox::backdrop {
  background: rgba(12, 12, 12, 0.9);
  backdrop-filter: blur(6px);
}

.photo-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
}

.photo-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 72rem);
  max-height: min(82vh, 56rem);
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.photo-lightbox__caption {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}

.photo-lightbox__close,
.photo-lightbox__nav {
  position: fixed;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.photo-lightbox__close:hover,
.photo-lightbox__nav:hover,
.photo-lightbox__close:focus-visible,
.photo-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
}

.photo-lightbox__close {
  top: 1rem;
  right: 1rem;
}

.photo-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__nav:hover,
.photo-lightbox__nav:focus-visible {
  transform: translateY(-50%) scale(1.04);
}

.photo-lightbox__nav--prev {
  left: 1rem;
}

.photo-lightbox__nav--next {
  right: 1rem;
}

@media (max-width: 719px) {
  .photo-lightbox__nav {
    display: none;
  }
}

/* Reveal helpers (GSAP sets initial state) */
.chapter__eyebrow,
.brand-mark,
.italia-stripe,
.chapter__headline,
.brand-title,
.chapter__title,
.chapter__lead,
.chapter__body,
.chapter__note,
.sense-list li,
.atmosphere-photo,
.menu-row,
.menu-row__inner,
.cta-group,
.cta-band,
.cta-band > p,
.visit-block,
.visit-photo,
.scroll-hint,
.footer__brand,
.footer__meta,
.footer__copy {
  will-change: transform, opacity;
}

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

  .scroll-hint__line {
    animation: none;
  }

  .btn:hover {
    transform: none;
  }
}
