/* ===== Pikala & Antonio — Formentera ===== */

:root,
[data-theme='light'] {
  /* sand & sea palette */
  --color-bg: #f5f0e6;
  --color-surface: #faf6ee;
  --color-divider: #e2dac9;
  --color-border: #d3c9b2;

  --color-text: #212a33;
  --color-text-muted: #6d7276;
  --color-text-faint: #a9aca8;
  --color-text-inverse: #f7f3ea;

  /* Pikala navy */
  --pikala: #16394f;
  --pikala-soft: #e7ebe9;
  /* Antonio cobalt */
  --antonio: #1c4fc4;
  --antonio-soft: #e9edf8;
  /* shared warm accent (rocce della cala) */
  --terra: #c0662e;

  --color-primary: var(--pikala);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-md: 0 4px 12px oklch(0.25 0.02 80 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.25 0.02 80 / 0.16);

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --font-display: 'Boska', Georgia, serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;

  --content-default: 1080px;
  --content-wide: 1320px;
}

[data-theme='dark'] {
  --color-bg: #14181d;
  --color-surface: #1a1f25;
  --color-divider: #262c33;
  --color-border: #39414a;

  --color-text: #ddd8cc;
  --color-text-muted: #8d9296;
  --color-text-faint: #5c6165;
  --color-text-inverse: #171b20;

  --pikala: #7fa8bf;
  --pikala-soft: #1c2530;
  --antonio: #7d9ff0;
  --antonio-soft: #1b2233;
  --terra: #d98b52;

  --color-primary: var(--pikala);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  transition: background-color 300ms ease, color 300ms ease;
}

img, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; }

::selection { background: oklch(from var(--terra) l c h / 0.3); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.ital { font-style: italic; font-weight: 400; }

.kicker {
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* ===== topbar ===== */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) clamp(var(--space-4), 4vw, var(--space-10));
  color: #f7f3ea;
  transition: background 300ms ease, color 300ms ease, box-shadow 300ms ease;
}
.topbar.scrolled {
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(14px);
  color: var(--color-text);
  box-shadow: 0 1px 0 var(--color-divider);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name em { font-style: italic; font-weight: 300; }

.topbar-right { display: flex; align-items: center; gap: clamp(var(--space-3), 2vw, var(--space-6)); }
.zampe-logo { display: inline-flex; align-items: center; transition: opacity var(--transition-interactive); }
.zampe-logo:hover { opacity: 0.72; }
.zampe-img { height: 22px; width: auto; display: block; }

/* Logo color logic:
   - Over hero (topbar NOT scrolled): white logo (topbar text is white)
   - Scrolled: follow the active theme */
.zampe-img--light { display: none; }
.zampe-img--dark { display: block; }
.topbar.scrolled .zampe-img--dark { display: none; }
.topbar.scrolled .zampe-img--light { display: block; }
[data-theme='dark'] .topbar.scrolled .zampe-img--dark { display: block; }
[data-theme='dark'] .topbar.scrolled .zampe-img--light { display: none; }
.macro-nav { display: flex; gap: clamp(var(--space-2), 2vw, var(--space-6)); }
.macro-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: 999px;
  transition: background var(--transition-interactive);
}
.macro-link:hover { background: oklch(from currentColor l c h / 0.12); }
.macro-link.active { background: oklch(from currentColor l c h / 0.14); }
.macro-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-pikala { background: #7fb6c9; }
.dot-antonio { background: #6d93f5; }
.dot-all { background: #d9b26a; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  transition: background var(--transition-interactive);
}
.theme-toggle:hover { background: oklch(from currentColor l c h / 0.12); }

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media img { animation: heroDrift 22s ease-in-out infinite alternate; }
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to   { transform: scale(1.1) translateY(-1.5%); }
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, oklch(0.2 0.03 250 / 0.78) 0%, oklch(0.2 0.03 250 / 0.25) 45%, oklch(0.2 0.03 250 / 0.35) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: #f7f3ea;
  padding: clamp(var(--space-8), 7vw, var(--space-20)) clamp(var(--space-4), 5vw, var(--space-16));
  max-width: 1100px;
}
.hero .kicker { color: oklch(0.92 0.02 90 / 0.85); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-hero);
  margin-bottom: var(--space-5);
}
.hero-sub {
  max-width: 48ch;
  font-size: var(--text-base);
  font-weight: 300;
  color: oklch(0.95 0.01 90 / 0.9);
  margin-bottom: var(--space-5);
}
.hero-gear {
  display: inline-block;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: oklch(0.92 0.02 90 / 0.85);
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: 999px;
}
.hero-choice { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.venue-card {
  display: grid;
  gap: var(--space-1);
  min-width: 220px;
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  border: 1px solid oklch(1 0 0 / 0.35);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  background: oklch(0.25 0.03 250 / 0.35);
  transition: background var(--transition-interactive), border-color var(--transition-interactive), transform var(--transition-interactive);
}
.venue-card:hover { transform: translateY(-3px); border-color: oklch(1 0 0 / 0.7); background: oklch(0.25 0.03 250 / 0.55); }
.venue-label {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(0.9 0.02 90 / 0.75);
}
.venue-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.venue-arrow { font-size: var(--text-sm); opacity: 0.7; }

/* ===== intro ===== */
.intro {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-4), 5vw, var(--space-16));
  display: grid;
  place-items: center;
}
.intro-line {
  max-width: 34ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.35;
}

/* ===== chapters ===== */
.chapter { padding-bottom: clamp(var(--space-16), 8vw, var(--space-32)); }
.chapter-head {
  max-width: var(--content-default);
  margin: 0 auto;
  padding: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-4), 5vw, var(--space-16));
}
.chapter-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.chapter--pikala .chapter-title { color: var(--pikala); }
.chapter--antonio .chapter-title { color: var(--antonio); }
.chapter-sub { max-width: 58ch; color: var(--color-text-muted); }

.chapter--pikala { background: linear-gradient(to bottom, var(--color-bg), var(--pikala-soft) 18%, var(--pikala-soft) 88%, var(--color-bg)); }
.chapter--antonio { background: linear-gradient(to bottom, var(--color-bg), var(--antonio-soft) 18%, var(--antonio-soft) 88%, var(--color-bg)); }

/* full bleed figures */
.full-bleed { position: relative; }
.full-bleed img { width: 100%; height: clamp(340px, 72vh, 760px); object-fit: cover; }
.full-bleed figcaption {
  position: absolute;
  left: clamp(var(--space-4), 5vw, var(--space-16));
  bottom: var(--space-5);
  color: #f7f3ea;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 12px oklch(0 0 0 / 0.55);
}
.full-bleed--quote blockquote {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-xl);
  text-align: center;
  color: #f7f3ea;
  background: oklch(0.2 0.03 250 / 0.35);
  text-shadow: 0 2px 18px oklch(0 0 0 / 0.5);
}

/* codice foto P###/A### */
.ph-code {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #f7f3ea;
  background: oklch(0.15 0.02 250 / 0.55);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.ph-code--lg { font-size: 0.8rem; padding: 4px 11px; }

/* editorial grid */
.editorial-grid {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: clamp(var(--space-8), 5vw, var(--space-16)) clamp(var(--space-4), 4vw, var(--space-12));
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: clamp(var(--space-3), 2vw, var(--space-6));
}
.cell { grid-column: span 2; position: relative; overflow: hidden; border-radius: var(--radius-lg); cursor: zoom-in; }
.cell-wide { grid-column: span 4; }
.cell img {
  width: 100%; height: 100%;
  min-height: 260px;
  max-height: 520px;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cell:hover img { transform: scale(1.035); }
.cell figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-8) var(--space-4) var(--space-3);
  color: #f7f3ea;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  background: linear-gradient(to top, oklch(0.15 0.02 250 / 0.75), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}
.cell:hover figcaption, .cell:focus-visible figcaption { opacity: 1; transform: none; }

/* horizontal strip */
.strip {
  display: flex;
  gap: clamp(var(--space-3), 2vw, var(--space-5));
  overflow-x: auto;
  padding: var(--space-4) clamp(var(--space-4), 4vw, var(--space-12)) var(--space-8);
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.strip-item {
  flex: 0 0 auto;
  width: clamp(240px, 32vw, 420px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
}
.strip-item img {
  width: 100%; height: clamp(200px, 26vw, 320px);
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.strip-item:hover img { transform: scale(1.04); }

/* ===== interlude ===== */
.interlude { position: relative; isolation: isolate; overflow: hidden; }
.interlude-media img {
  width: 100%; height: clamp(380px, 80vh, 720px);
  object-fit: cover;
  object-position: center 65%;
}
.interlude-text {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  padding: var(--space-6);
  text-align: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  color: #f7f3ea;
  background: oklch(0.2 0.03 250 / 0.4);
  text-shadow: 0 2px 16px oklch(0 0 0 / 0.5);
}

/* ===== manifesto ===== */
.manifesto {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-4), 5vw, var(--space-16));
  background: var(--pikala);
  color: #f3ead9;
}
[data-theme='dark'] .manifesto { background: var(--pikala-soft); }
.manifesto-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.manifesto .kicker { color: oklch(0.9 0.02 90 / 0.7); }
.manifesto-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  font-style: italic;
  margin-bottom: var(--space-8);
}
.manifesto-body {
  font-size: var(--text-lg);
  font-weight: 300;
  line-height: 1.55;
  color: oklch(0.96 0.01 90 / 0.92);
}
.manifesto-body strong { font-weight: 600; color: #fff; }
[data-theme='dark'] .manifesto-body strong { color: var(--color-text); }
[data-theme='dark'] .manifesto-body { color: var(--color-text-muted); }
[data-theme='dark'] .manifesto-title { color: var(--pikala); }

/* ===== galleria completa (quadrati) ===== */
.gallery {
  padding: clamp(var(--space-16), 9vw, var(--space-32)) clamp(var(--space-4), 4vw, var(--space-12)) clamp(var(--space-12), 6vw, var(--space-20));
}
.gallery-head {
  max-width: var(--content-default);
  margin: 0 auto clamp(var(--space-8), 5vw, var(--space-12));
  text-align: center;
}
.gallery-group {
  max-width: 1600px;
  margin: clamp(var(--space-10), 5vw, var(--space-16)) auto var(--space-5);
}
.gallery-group-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
}
.gallery-group-title--pikala { color: var(--pikala); }
.gallery-group-title--antonio { color: var(--antonio); }
.gg-tag {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #f7f3ea;
  background: var(--pikala);
  border-radius: 50%;
}
.gg-tag--a { background: var(--antonio); }
.gallery-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.gallery-sub { max-width: 52ch; margin: 0 auto; color: var(--color-text-muted); }
.grid-square {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
  max-width: 1600px;
  margin: 0 auto;
}
.sq {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--color-surface);
}
.sq img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}
.sq::after {
  content: '';
  position: absolute; inset: 0;
  background: oklch(0.2 0.03 250 / 0);
  transition: background 300ms ease;
}
.sq:hover img { transform: scale(1.06); }
.sq:hover::after { background: oklch(0.2 0.03 250 / 0.12); }

/* ===== finale ===== */
.finale {
  padding: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-4), 5vw, var(--space-16));
  text-align: center;
}
.finale-gear {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.finale h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  margin-bottom: var(--space-8);
}
.finale-links { display: flex; justify-content: center; gap: var(--space-4); flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-inverse);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--pikala { background: var(--pikala); }
.btn--antonio { background: var(--antonio); }

/* ===== footer ===== */
.footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-10) clamp(var(--space-4), 5vw, var(--space-16));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}
.footer-left p { margin: 0; }
.footer-credit { color: var(--color-text-faint); margin-top: var(--space-1); }
.footer-logo { display: inline-flex; align-items: center; transition: opacity var(--transition-interactive); }
.footer-logo:hover { opacity: 0.72; }
.footer-logo .zampe-img { height: 30px; }
/* footer follows theme (no hero context) */
.footer .zampe-img--light { display: block; }
.footer .zampe-img--dark { display: none; }
[data-theme='dark'] .footer .zampe-img--light { display: none; }
[data-theme='dark'] .footer .zampe-img--dark { display: block; }

/* ===== reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: calc(var(--space-16) + var(--space-2)) var(--space-4) var(--space-6);
  background: oklch(0.13 0.02 250 / 0.94);
  color: #f7f3ea;
}
.lightbox[hidden] { display: none; }
.lb-stage {
  grid-column: 2;
  display: grid;
  place-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.lb-img {
  max-width: min(92vw, 1400px);
  max-height: 80vh;
  width: auto; height: auto;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.lb-stage .lb-caption {
  position: static;
}
.lb-topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) clamp(var(--space-4), 3vw, var(--space-8));
}
.lb-code {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #f7f3ea;
  background: oklch(1 0 0 / 0.12);
  padding: 5px 12px;
  border-radius: 999px;
}
.lb-actions { display: flex; align-items: center; gap: var(--space-3); }
.lb-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #f7f3ea;
  text-decoration: none;
  padding: var(--space-2) var(--space-4);
  border: 1px solid oklch(1 0 0 / 0.4);
  border-radius: 999px;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.lb-download:hover { background: oklch(1 0 0 / 0.15); border-color: oklch(1 0 0 / 0.8); }
.lb-close {
  font-size: 2rem; line-height: 1;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: #f7f3ea;
  transition: background var(--transition-interactive);
}
.lb-close:hover { background: oklch(1 0 0 / 0.12); }
.lb-prev, .lb-next {
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  transition: background var(--transition-interactive);
}
.lb-prev:hover, .lb-next:hover { background: oklch(1 0 0 / 0.12); }
.lb-caption {
  position: absolute; bottom: var(--space-4); left: 0; right: 0;
  text-align: center;
  font-size: var(--text-sm);
  color: oklch(0.9 0.01 90 / 0.85);
}

/* ===== responsive ===== */
@media (max-width: 860px) {
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .cell, .cell-wide { grid-column: span 2; }
  .cell img { max-height: 420px; }
  .grid-square { grid-template-columns: repeat(3, 1fr); }
  .brand-name { display: none; }
  .macro-nav { gap: var(--space-1); }
  .topbar .zampe-logo { display: none; }
  .footer-logo .zampe-img { height: 26px; }
  .hero-choice { width: 100%; }
  .venue-card { flex: 1; min-width: 150px; }
  .lb-prev, .lb-next { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: oklch(0.2 0.02 250 / 0.5); }
  .lb-prev { left: var(--space-3); }
  .lb-next { right: var(--space-3); }
  .lb-stage { grid-column: 1 / -1; }
  .lb-img { max-height: 76vh; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .editorial-grid { grid-template-columns: repeat(4, 1fr); }
  .cell { grid-column: span 2; }
  .cell-wide { grid-column: span 4; }
  .grid-square { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 480px) and (max-width: 860px) {
  .grid-square { grid-template-columns: repeat(4, 1fr); }
}

/* link Prenota nella topbar della gallery */
.zampe-logo { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: .5em 1.1em; border: 1px solid currentColor; border-radius: 2px; transition: opacity .3s; }
.zampe-logo:hover { opacity: .7; }

/* ===== testata gallery — solo mobile ===== */
@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand actions" "nav nav";
    align-items: center;
    gap: .5rem .8rem;
    padding: .55rem .9rem .1rem;
  }
  .topbar .brand { grid-area: brand; }
  .topbar .brand-name { font-size: 1.02rem; white-space: nowrap; }
  .topbar-right { grid-area: actions; display: flex; align-items: center; gap: .5rem; }
  .zampe-logo { font-size: .64rem; padding: .5em .85em; letter-spacing: .1em; }

  /* filtri: riga scorrevole a tutta larghezza */
  .macro-nav {
    grid-area: nav;
    display: flex; flex-wrap: nowrap; gap: .4rem;
    margin: 0 -.9rem; padding: .1rem .9rem .55rem;
    overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .macro-nav::-webkit-scrollbar { display: none; }
  .macro-link {
    flex: 0 0 auto; scroll-snap-align: start;
    display: inline-flex; align-items: center; gap: .4em;
    font-size: .68rem; letter-spacing: .1em; white-space: nowrap;
    padding: .55em 1em; border-radius: 999px;
    border: 1px solid currentColor; opacity: .72;
    transition: opacity .3s, background .3s, color .3s;
  }
  .macro-link.is-active, .macro-link:active { opacity: 1; }
  .macro-link.is-active { background: currentColor; }
  .macro-link.is-active .macro-dot { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
  .macro-dot { width: 7px; height: 7px; }
}

/* leggibilità della testata gallery su mobile */
@media (max-width: 900px) {
  .topbar { position: relative; }
  .topbar::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(to bottom, rgba(16,22,38,.82) 0%, rgba(16,22,38,.55) 62%, rgba(16,22,38,0) 100%);
    pointer-events: none;
  }
  .topbar .brand-name { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
  .topbar .macro-link { color: #fff; border-color: rgba(255,255,255,.55); }
  .topbar .macro-link.is-active { background: #fff; color: #1a2340; border-color: #fff; }
  .topbar .zampe-logo { color: #fff; border-color: rgba(255,255,255,.7); }
  .topbar .theme-toggle { color: #fff; }
}

/* testata gallery mobile: logo e Prenota di nuovo visibili */
@media (max-width: 900px) {
  .topbar .brand { min-height: 30px; align-items: center; }
  .topbar .brand-name { display: inline-block; font-size: .98rem; }
  .topbar .zampe-logo { display: inline-block; }
}

/* ===== i due locali ===== */
.venues {
  max-width: 1100px; margin: 0 auto; padding: clamp(3rem,7vw,5.5rem) 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem,4vw,3.5rem);
}
.venue { padding-top: 1.4rem; border-top: 1px solid currentColor; opacity: .92; }
.venue-tag { font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; opacity: .6; margin-bottom: .5rem; }
.venue h3 { font-size: 1.6rem; font-weight: 400; margin-bottom: 1rem; letter-spacing: .01em; }
.venue-addr { font-size: .95rem; line-height: 1.6; margin-bottom: .8rem; }
.venue-meta { font-size: .82rem; line-height: 1.7; opacity: .62; margin-bottom: 1.1rem; }
.venue-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.venue-links a {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity .3s;
}
.venue-links a:hover { opacity: .6; }
@media (max-width: 760px) {
  .venues { grid-template-columns: 1fr; gap: 2.2rem; padding-top: 2.5rem; }
  .venue h3 { font-size: 1.35rem; }
}

/* ================= testata gallery = header della landing ================= */
.gnav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem clamp(1rem, 3vw, 2.2rem);
  background: var(--bg, #fcf8f5); color: var(--fg, #1e2a45);
  border-bottom: 1px solid rgba(128,128,128,.16);
  transition: background .3s, border-color .3s;
}
.gnav-brand { display: flex; align-items: center; }
.gnav-mark { height: 22px; width: auto; }
.gnav-word {
  font-family: Georgia, 'Times New Roman', serif; font-size: 34px; font-weight: 600;
  letter-spacing: .16em; fill: currentColor;
}
.gnav-links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.7rem); }
.gnav-links a {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .78; transition: opacity .3s;
}
.gnav-links a:hover { opacity: 1; }
.gnav-actions { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1rem); }
.gnav-here {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .5; border-bottom: 1px solid currentColor; padding-bottom: 2px; cursor: default;
}
.gnav-book {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .62em 1.25em; border-radius: 2px;
  background: #304c89; color: #fcf8f5; transition: opacity .3s;
}
.gnav-book:hover { opacity: .85; }
.gnav-burger { display: none; flex-direction: column; gap: 5px; width: 30px; padding: 0; }
.gnav-burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: .3s; }
.gnav .lang { display: flex; gap: .1rem; }
.gnav .lang a, .gnav .lang .lang-on {
  font-size: .66rem; letter-spacing: .12em; padding: .4em .5em; border-radius: 2px; line-height: 1;
}
.gnav .lang a { opacity: .55; transition: opacity .3s; }
.gnav .lang a:hover { opacity: 1; }
.gnav .lang .lang-on { background: rgba(128,128,128,.16); }

/* barra filtri sotto la testata */
.filters {
  position: sticky; top: var(--gnav-h, 54px); z-index: 55;
  display: flex; align-items: center; gap: .9rem;
  padding: .55rem clamp(1rem, 3vw, 2.2rem);
  background: var(--bg, #fcf8f5); color: var(--fg, #1e2a45);
  border-bottom: 1px solid rgba(128,128,128,.12);
}
.filters-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; opacity: .45; }
.filters .macro-nav { display: flex; gap: .45rem; }
.filters .macro-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  padding: .5em 1em; border-radius: 999px;
  border: 1px solid rgba(128,128,128,.35); opacity: .8;
  transition: opacity .3s, background .3s, color .3s, border-color .3s;
}
.filters .macro-link:hover { opacity: 1; }
.filters .macro-link.is-active {
  opacity: 1; background: #304c89; color: #fcf8f5; border-color: #304c89;
}

@media (max-width: 900px) {
  .gnav { padding: .7rem 1rem; }
  .gnav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 300px);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg, #fcf8f5); padding: 5.5rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1);
    box-shadow: -10px 0 40px rgba(0,0,0,.18); z-index: 70;
  }
  .gnav-links.on { transform: none; }
  .gnav-links a { padding: 1rem 0; width: 100%; font-size: .82rem; border-bottom: 1px solid rgba(128,128,128,.14); }
  .gnav-burger { display: flex; }
  .gnav-here { display: none; }
  .gnav-mark { height: 19px; }
  .filters { gap: .6rem; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters-label { display: none; }
  .filters .macro-nav { flex-wrap: nowrap; }
  .filters .macro-link { flex: 0 0 auto; }
}

/* niente sottolineature nella testata gallery */
.gnav a, .gnav button, .filters a { text-decoration: none; }
.gnav-here { text-decoration: none; }
