/* ==========================================================================
   Reviere Studio — Design System
   Palette derived from the venue: tufo stone, golden hour, red neon.
   ========================================================================== */

:root {
  /* Colour ------------------------------------------------------------- */
  --ink:            #0B0B0C;
  --ink-2:          #131315;
  --ink-3:          #1C1C1F;
  --bone:           #F2EDE6;
  --bone-dim:       #CFC7BC;
  --muted:          #9A9288;
  --sand:           #C8BCAA;

  /* Brand red, campionato dal marchio a pennello (mediana #670001,
     corpo #500000–#800000, luci fino a #9F1A1C). E' un rosso da riempimento:
     su fondo nero i tratti sottili si userebbero troppo scuri, quindi gli
     accenti minuti passano a --sand e gli errori a --danger. */
  --red:            #7A0509;
  --red-hover:      #9A0F14;
  --red-line:       #C0292F;

  /* Rosso funzionale, distinto dal brand: solo errori e stati di pericolo. */
  --danger:         #E5484D;
  --line:           rgba(242, 237, 230, 0.14);
  --line-strong:    rgba(242, 237, 230, 0.28);

  /* Type ---------------------------------------------------------------- */
  --font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-script:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  /* Il display gira sull'asse di larghezza di Archivo: esteso e maiuscolo,
     come la testata del marchio. Il corpo resta a larghezza normale. */
  --wide: 125%;

  /* Spigoli vivi ovunque: nessun raggio. */
  --radius: 0;

  /* Spacing scale (density 4/10 — standard) ------------------------------ */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  24px;
  --space-lg:  40px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 136px;

  /* Layout --------------------------------------------------------------- */
  --wrap:      1320px;
  --wrap-text: 68ch;
  --gutter:    clamp(20px, 5vw, 64px);
  --nav-h:     72px;

  /* Motion --------------------------------------------------------------- */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast:  180ms;
  --dur:       320ms;
  --dur-slow:  700ms;

  /* Elevation ------------------------------------------------------------ */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.5);

  /* Z scale -------------------------------------------------------------- */
  --z-base: 1;
  --z-sticky: 40;
  --z-nav: 100;
  --z-overlay: 900;
  --z-modal: 1000;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--red-line);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--red); color: var(--bone); }

/* Typography --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  text-wrap: balance;
}

.display-lg {
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

/* La parola in corsivo dentro il titolo: e' la costruzione del marchio
   (blocco maiuscolo + firma corsiva) portata a scala di pagina. */
.script {
  font-family: var(--font-script);
  font-stretch: normal;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: -0.005em;
  font-size: 1.42em;
  line-height: 0.7;
  vertical-align: -0.06em;
  padding-left: 0.06em;
  margin-right: -0.04em;
  color: var(--sand);
}

.eyebrow {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--sand);
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: var(--wrap-text);
  font-weight: 350;
}

.prose p { max-width: var(--wrap-text); color: var(--bone-dim); }
.prose p + p { margin-top: 1.1em; }

.serif-quote {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.25;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--bone);
  text-wrap: balance;
}

.accent { color: var(--sand); }

/* Layout ------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 11vw, 136px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--ink-2); }

.rule { height: 1px; background: var(--line); border: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: var(--z-modal);
  background: var(--bone);
  color: var(--ink);
  padding: 12px 20px;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus { top: 16px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 15px 30px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  text-align: center;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--red);
  color: var(--bone);
  border-color: var(--red-line);
}
.btn--primary:hover { background: var(--red-hover); }

.btn--light { background: var(--bone); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--ghost { border-color: var(--line-strong); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); background: rgba(242, 237, 230, 0.07); }

.btn--wa { background: #25D366; color: #06301A; }
.btn--wa:hover { background: #35e277; }

.btn__icon { width: 18px; height: 18px; flex: none; }

/* Text link with animated rule */
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 8px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-underline:hover { border-color: var(--red-line); color: var(--sand); }
.link-underline svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-underline:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0.65), transparent);
}
.nav:has([aria-expanded='true']) {
  background: var(--ink);
  border-bottom-color: var(--line);
}

.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* Tre colonne: menu a sinistra, marchio al centro, azione a destra. */
.nav__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}
.nav__inner > nav { justify-self: start; }
.nav__logo { justify-self: center; }
.nav__cta  { justify-self: end; }
.nav__toggle { justify-self: end; }

@media (max-width: 899px) {
  .nav__inner { grid-template-columns: 1fr auto 1fr; }
  .nav__logo { grid-column: 2; }
  .nav__toggle { grid-column: 3; }
}

.nav__logo { display: flex; align-items: center; min-height: 44px; }
.nav__logo img { height: 26px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  list-style: none;
  padding: 0;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone-dim);
  position: relative;
  padding: 12px 0;
  display: inline-block;
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--red-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover { color: var(--bone); }
.nav__link:hover::after,
.nav__link[aria-current='page']::after { transform: scaleX(1); }
.nav__link[aria-current='page'] { color: var(--bone); }

.nav__cta { padding: 12px 24px; min-height: 44px; font-size: 0.72rem; }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  display: block;
  position: relative;
  width: 24px;
  height: 1.5px;
  background: var(--bone);
  transition: background var(--dur-fast) var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--bone);
  transition: transform var(--dur) var(--ease);
}
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav__toggle[aria-expanded='true'] span { background: transparent; }
.nav__toggle[aria-expanded='true'] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 10);
  background: var(--ink);
  padding: calc(var(--nav-h) + 32px) var(--gutter) calc(env(safe-area-inset-bottom) + 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  overflow-y: auto;
}
.nav__drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.nav__drawer ul { list-style: none; padding: 0; }
.nav__drawer li + li { border-top: 1px solid var(--line); }
.nav__drawer a {
  display: block;
  padding: 20px 0;
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.nav__drawer a[aria-current='page'] { color: var(--sand); }
.nav__drawer-foot { display: grid; gap: 12px; padding-top: 32px; }
.nav__drawer-foot a.btn {
  display: inline-flex;
  padding: 14px 28px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 899px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 900px) {
  .nav__drawer { display: none; }
}

/* ==========================================================================
   Hero carousel
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.hero__slides { position: absolute; inset: 0; z-index: -2; }

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease);
}
.hero__slide.is-active { opacity: 1; }

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transform: scale(1.04);
}
.hero__slide.is-active img {
  animation: heroZoom 9s linear forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.13); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11,11,12,0.96) 0%, rgba(11,11,12,0.84) 30%, rgba(11,11,12,0.66) 56%, rgba(11,11,12,0.34) 78%, rgba(11,11,12,0.7) 100%),
    linear-gradient(to right, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.1) 55%, transparent 100%);
}

/* Il titolo sta al centro, a tutta larghezza: la fotografia lo incornicia. */
.hero {
  align-items: center;
  text-align: center;
}

.hero__body {
  position: relative;
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
  padding: calc(var(--nav-h) + 24px) var(--gutter) clamp(132px, 17vh, 190px);
}

.hero__title {
  font-size: clamp(2.5rem, 7.7vw, 7.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  margin-block: 14px 26px;
}

.hero__sub {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  color: var(--bone-dim);
  max-width: 54ch;
  margin: 0 auto 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Carousel controls */
.hero__controls {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 52px);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  position: relative;
}
.hero__dot::after {
  content: '';
  width: 34px;
  height: 2px;
  background: rgba(242, 237, 230, 0.24);
  transition: background var(--dur) var(--ease), height var(--dur) var(--ease);
}
.hero__dot[aria-selected='true']::after { background: var(--bone); height: 3px; }
.hero__dot:hover::after { background: var(--bone-dim); }

.hero__nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hero__nav-btn:hover { border-color: var(--bone); background: rgba(242, 237, 230, 0.08); }
.hero__nav-btn svg { width: 16px; height: 16px; }

@media (max-width: 599px) {
  .hero__counter { display: none; }
}

.hero__counter {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}


/* Page hero (interior pages) ---------------------------------------------- */
.page-hero {
  position: relative;
  min-height: min(62svh, 560px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(11,11,12,0.96) 0%, rgba(11,11,12,0.82) 32%, rgba(11,11,12,0.5) 62%, rgba(11,11,12,0.62) 100%),
    linear-gradient(to right, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0.15) 60%, transparent 100%);
}
.page-hero__body {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0 var(--gutter) clamp(36px, 6vw, 72px);
}
.page-hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  margin-block: 14px 18px;
}

/* Testata di sezione: occhiello corsivo + titolo esteso a sinistra,
   collegamento in fondo alla riga a destra. E' il ritmo che si ripete
   in ogni sezione, cosi' la pagina si legge come un indice. */
.section-head {
  display: grid;
  gap: clamp(14px, 2.5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 60px);
  padding-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid var(--line);
}
.section-head__text { min-width: 0; }
.section-head h2 { margin-top: 10px; }
.section-head__aside { min-width: 0; }

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) clamp(260px, 30%, 380px);
    align-items: end;
  }
  .section-head__aside { text-align: right; padding-bottom: 6px; }
  .section-head__aside .lead { margin-left: auto; }
  .section-head__aside .link-underline { margin-left: auto; }
}

/* ==========================================================================
   Intro / editorial blocks
   ========================================================================== */
.intro-grid {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .intro-grid { grid-template-columns: 0.95fr 1.05fr; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(40px, 6vw, 72px);
}
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

.stat {
  background: var(--ink);
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2vw, 24px);
}
.section--alt .stat { background: var(--ink-2); }
.stat__num {
  font-family: var(--font-display);
  font-stretch: var(--wide);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

/* ==========================================================================
   Rooms (Spazi)
   ========================================================================== */
.room { border-top: 1px solid var(--line); padding-block: clamp(48px, 8vw, 104px); }

.room__grid {
  display: grid;
  gap: clamp(28px, 4vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .room__grid { grid-template-columns: 1.05fr 0.95fr; }
  .room--reverse .room__media { order: 2; }
}

.room__index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.room__title { margin-bottom: 18px; }

.room__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.room__media figure { margin: 0; overflow: hidden; background: var(--ink-3); }
.room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.room__media figure:hover img { transform: scale(1.05); }
.room__media .is-tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.room__media .is-wide { aspect-ratio: 4 / 3; }

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 28px;
  display: grid;
  gap: 2px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 0.96rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--sand); }

/* ==========================================================================
   Structure photo grid (bento)
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
@media (min-width: 760px)  { .bento { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(6, 1fr); } }

.bento figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  grid-column: span 2;
  aspect-ratio: 3 / 4;
}
.bento figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
}
.bento figure:hover img { transform: scale(1.06); }

.bento .span-wide { aspect-ratio: 16 / 9; }
@media (max-width: 759px) {
  .bento figure { grid-column: span 1; }
  .bento .span-wide,
  .bento .span-hero { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 760px) {
  .bento .span-wide { grid-column: span 4; aspect-ratio: 4 / 3; }
  .bento .span-hero { grid-column: span 4; aspect-ratio: 16 / 9; }
}
@media (min-width: 1100px) {
  .bento .span-wide { grid-column: span 4; aspect-ratio: 16 / 9; }
  .bento .span-hero { grid-column: span 6; aspect-ratio: 21 / 9; }
}

.bento figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(11,11,12,0.92), transparent);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ==========================================================================
   Events / occasions
   ========================================================================== */
.events {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px)  { .events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .events { grid-template-columns: repeat(3, 1fr); } }

.event-card {
  background: var(--ink);
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background var(--dur) var(--ease);
}
.section--alt .event-card { background: var(--ink-2); }
.event-card:hover { background: var(--ink-3); }
.event-card__icon { width: 26px; height: 26px; color: var(--sand); }
.event-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.005em; }
.event-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 44px);
}
.chip {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bone-dim);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--bone); color: var(--bone); }
.chip[aria-pressed='true'] { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.masonry { columns: 2; column-gap: clamp(10px, 1.4vw, 18px); }
@media (max-width: 399px)  { .masonry { columns: 1; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }
@media (min-width: 1280px) { .masonry { columns: 4; } }
@media (min-width: 1720px) { .masonry { columns: 5; } }

.masonry__item {
  break-inside: avoid;
  margin-bottom: clamp(10px, 1.4vw, 18px);
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
  cursor: pointer;
}
.masonry__item img {
  width: 100%;
  height: auto;
  transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease);
}
.masonry__item:hover img { transform: scale(1.04); opacity: 0.86; }
.masonry__item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
  pointer-events: none;
}
.masonry__item:hover::after { border-color: var(--line-strong); }
.masonry__item[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(6, 6, 7, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}
.lightbox__count {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lightbox__stage {
  display: grid;
  place-items: center;
  padding: 0 clamp(8px, 3vw, 40px);
  min-height: 0;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: var(--shadow-md);
}
.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px var(--gutter) calc(env(safe-area-inset-bottom) + 24px);
}
.lb-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lb-btn:hover { border-color: var(--bone); background: rgba(242,237,230,0.08); }
.lb-btn svg { width: 18px; height: 18px; }
.lb-btn--close { width: 48px; height: 48px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: clamp(36px, 5vw, 80px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 0.85fr; } }

.form { display: grid; gap: var(--space-md); }

.field { display: grid; gap: 8px; }
.field--half-group { display: grid; gap: var(--space-md); }
@media (min-width: 600px) { .field--half-group { grid-template-columns: 1fr 1fr; } }
.field--half-group > .field { align-content: start; }

.field label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.field .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--bone);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A9288' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--red-line);
  background: var(--ink-3);
  outline: 2px solid transparent;
  outline-offset: 0;
  box-shadow: 0 0 0 3px rgba(192, 41, 47, 0.3);
}
.field input::placeholder, .field textarea::placeholder { color: #6E675E; }

.field__hint { font-size: 0.84rem; color: var(--muted); }

.field__error {
  font-size: 0.86rem;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
}
.field__error:empty { display: none; }
.field__error svg { width: 15px; height: 15px; flex: none; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.form__summary {
  border: 1px solid var(--danger);
  background: rgba(229, 72, 77, 0.12);
  padding: 18px 20px;
}
.form__summary[hidden] { display: none; }
.form__summary h2 { font-size: 1rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.form__summary ul { margin: 0; padding-left: 18px; font-size: 0.92rem; }
.form__summary a { color: var(--danger); text-decoration: underline; }

.form__status {
  padding: 18px 20px;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
}
.form__status[hidden] { display: none; }
.form__status.is-ok { border-color: #2E7D4F; background: rgba(46, 125, 79, 0.14); }
.form__status.is-err { border-color: var(--danger); background: rgba(229, 72, 77, 0.12); }

.consent,
.field label.consent {
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.consent input {
  width: 22px;
  height: 22px;
  min-height: 0;
  flex: none;
  margin-top: 2px;
  accent-color: var(--red-line);
  padding: 0;
}

/* Contact info panel */
.contact-card {
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: clamp(24px, 3vw, 36px);
}
.contact-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.contact-list > li { border-top: 1px solid var(--line); padding-block: 18px; }
.contact-list > li:first-child { border-top: 0; padding-top: 0; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--sand); }
.contact-item__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item__value { font-size: 1.02rem; color: var(--bone); }
a.contact-item__value:hover { color: var(--sand); }

/* Map (click-to-load, so Google sets no cookies before consent) ------------ */
.map {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-3);
  aspect-ratio: 16 / 9;
}
@media (max-width: 599px) { .map { aspect-ratio: 4 / 5; } }

.map__still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.7) brightness(0.42);
}

.map__veil {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: var(--space-md);
  text-align: center;
  background: rgba(11, 11, 12, 0.55);
}

.map__note {
  font-size: 0.9rem;
  color: var(--bone-dim);
  max-width: 44ch;
  line-height: 1.5;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map.is-loaded .map__still,
.map.is-loaded .map__veil { display: none; }

/* ==========================================================================
   CTA band + footer
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(72px, 12vw, 160px);
  text-align: center;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 12, 0.74);
}
.cta-band .btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

.footer { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 80px) 32px; }
.footer__top {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer__logo img { height: 30px; width: auto; margin-bottom: 18px; }
.footer h3 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer a:hover { color: var(--sand); }
.footer__bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Floating WhatsApp ------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(env(safe-area-inset-bottom) + clamp(16px, 3vw, 28px));
  z-index: var(--z-sticky);
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: #25D366;
  color: #06301A;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 28px; height: 28px; }

/* Scroll reveal ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Reduced motion ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; transform: scale(1.04); }
}
