/* ==========================================================================
   Room Via Florio — editorial stylesheet
   ------------------------------------------------------------------------
   Direction: editorial / Mediterranean / architectural / contemporary.
   Paper + warm ink, olive accent. Serif display type (Fraunces) against
   sans UI (Inter) and mono metadata/numerals (IBM Plex Mono).
   No frameworks, no build step, no external UI libraries.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #F1EEE7;
  --paper-soft: #E8E3D8;
  --ink: #171714;
  --ink-soft: #24231F;
  --muted: #605D54; /* darkened from the brief's #79766E for AA text contrast on --paper */
  --olive: #6F715D;
  --olive-dark: #565843;
  --white: #FFFFFF;
  --line: rgba(23, 23, 20, 0.13);
  --line-on-dark: rgba(241, 238, 231, 0.18);

  /* Brand identity — sampled from the official logo, used only for the
     wordmark and small footer ornaments (kept out of the rest of the UI
     so the established olive accent stays the working interface color). */
  --brand-navy: #1B2848;
  --brand-gold: #8F5C11;

  /* Type */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', 'Fraunces', Georgia, serif; /* wordmark only: classic, high-contrast, Mediterranean */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Fluid type scale */
  --fs-hero: clamp(3.1rem, 9.5vw, 9.5rem);
  --fs-display: clamp(2.6rem, 7.6vw, 7rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 3.4rem);
  --fs-h3: clamp(1.3rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.6vw, 1.3rem);
  --fs-body: 1.05rem;
  --fs-meta: 0.78rem;
  --fs-micro: 0.7rem;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 0.9rem;
  --space-3: 1.6rem;
  --space-4: 2.6rem;
  --space-5: 4.2rem;
  --space-6: 6.8rem;
  --space-7: 10rem;
  --space-8: 14rem;

  /* Layout */
  --container-max: 1240px;
  --side-pad: 1.4rem;
  --header-h: 76px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.4s;
  --dur-med: 0.9s;
  --dur-slow: 1.4s;
}

@media (min-width: 640px) {
  :root { --side-pad: 2.6rem; }
}
@media (min-width: 1024px) {
  :root { --side-pad: 4vw; --header-h: 92px; }
}
@media (min-width: 1440px) {
  :root { --side-pad: 5.5vw; }
}

/* -------------------------------------------------------------------------
   Reset
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* <picture> is only here to offer a WebP source before the JPEG <img>
   fallback — it must stay fully invisible to layout so every existing
   width/height/object-fit rule written for the inner <img> keeps working
   exactly as before. */
picture { display: contents; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--olive);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 400;
}
.skip-link:focus { left: var(--space-2); top: var(--space-2); }

section[id] { scroll-margin-top: var(--header-h); }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}
.alcamo-section a:focus-visible, .alcamo-section [tabindex]:focus-visible,
.whatsapp-strip a:focus-visible,
.site-footer a:focus-visible,
.viewer a:focus-visible, .viewer button:focus-visible {
  outline-color: var(--paper);
}

/* -------------------------------------------------------------------------
   Reduced motion — global kill switch
   ------------------------------------------------------------------------- */
@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;
    scroll-behavior: auto !important;
  }
  [data-reveal], [data-reveal-image], .mask-inner, .hero-media { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* -------------------------------------------------------------------------
   Scroll reveal engine (JS toggles .is-visible)
   ------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-soft);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-reveal-image] {
  overflow: hidden;
}
[data-reveal-image] img {
  transform: scale(1.12);
  transition: transform 1.3s var(--ease-soft);
}
[data-reveal-image]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1s var(--ease-soft);
  z-index: 2;
}
[data-reveal-image].is-visible::after { transform: scaleY(0); }
[data-reveal-image].is-visible img { transform: scale(1); }

.mask-line { display: block; overflow: hidden; }
.mask-inner {
  display: inline-block;
  transform: translateY(105%);
  transition: transform var(--dur-slow) var(--ease-soft);
}
.is-loaded .mask-inner { transform: translateY(0); }
.hero-title .mask-line:nth-child(1) .mask-inner { transition-delay: 0.15s; }
.hero-title .mask-line:nth-child(2) .mask-inner { transition-delay: 0.3s; }
.hero-lead .mask-inner { transition-delay: 0.5s; }

/* -------------------------------------------------------------------------
   Kickers / numbered labels
   ------------------------------------------------------------------------- */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-3);
}
.kicker-index { color: var(--olive); }
.kicker-on-dark { color: rgba(241,238,231,0.6); }
.kicker-on-dark .kicker-index { color: #B9BFA4; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding-bottom: 0.3em;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.32);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.text-link:hover::after { transform: scaleX(1); }
.text-link span:last-child { transition: transform 0.35s var(--ease); display: inline-block; }
.text-link:hover span:last-child { transform: translate(2px, -2px); }

/* -------------------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 300;
  background: transparent;
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(241, 238, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  width: 100%;
  padding: 0 var(--side-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.logo-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}
.logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--white);
  padding-bottom: 0.35em;
  transition: color 0.5s var(--ease);
}
/* A single hairline beneath the wordmark — the only nod to the logo's
   ornamental rule, kept to one thin line with no flourish at this size. */
.logo::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  transition: color 0.5s var(--ease);
  display: none;
}
.site-header.is-scrolled .logo,
.site-header.menu-open .logo { color: var(--brand-navy); }
.site-header.is-scrolled .logo-tag,
.site-header.menu-open .logo-tag { color: var(--brand-gold); }

@media (min-width: 640px) {
  .logo-tag { display: block; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav ul {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
}
.main-nav ul li { display: flex; align-items: baseline; gap: 0.45em; }
.nav-index {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.5s var(--ease);
}
.site-header.is-scrolled .nav-index { color: var(--olive); }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  padding: 0.4em 0;
  position: relative;
  transition: color 0.5s var(--ease);
}
.site-header.is-scrolled .nav-link { color: var(--ink); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  padding-bottom: 0.3em;
  position: relative;
  transition: color 0.5s var(--ease);
}
.site-header.is-scrolled .nav-cta { color: var(--ink); }
.nav-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-cta:hover::after { transform: scaleX(1); }
.nav-cta-arrow { transition: transform 0.35s var(--ease); display: inline-block; }
.nav-cta:hover .nav-cta-arrow { transform: translate(2px, -2px); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 301;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background-color 0.5s var(--ease);
}
.site-header.is-scrolled .hamburger span,
.site-header.menu-open .hamburger span { background: var(--ink); }
.site-header.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------
   Mobile nav overlay
   ------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .hamburger { display: flex; }

  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: var(--space-6) var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease);
  }
  .site-header.menu-open .main-nav { opacity: 1; visibility: visible; }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav ul li {
    border-bottom: 1px solid var(--line);
    padding: 1.15em 0;
    gap: 0.8em;
  }
  .nav-index { color: var(--olive); font-size: 0.78rem; }
  .nav-link {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    font-weight: 500;
    color: var(--ink);
  }
  .nav-link::after { display: none; }

  .nav-cta {
    margin-top: var(--space-4);
    align-self: flex-start;
    color: var(--ink);
    font-size: 1.05rem;
  }
}

.nav-mobile-contact {
  display: none;
}
@media (max-width: 899px) {
  .nav-mobile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-top: var(--space-5);
    padding-top: var(--space-3);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
  }
  .nav-mobile-contact a:hover { color: var(--olive); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.94) contrast(1.03);
  transform: scale(1.09);
  transition: transform 2.4s var(--ease-soft);
}
.is-loaded .hero-img { transform: scale(1); }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 10, 8, 0.58) 0%, rgba(12, 10, 8, 0.32) 32%, rgba(12, 10, 8, 0) 62%),
    linear-gradient(to bottom, rgba(15, 13, 10, 0.42) 0%, rgba(15, 13, 10, 0.05) 30%, rgba(15, 13, 10, 0.18) 56%, rgba(15, 13, 10, 0.8) 100%);
}

.hero-meta {
  position: absolute;
  top: calc(var(--header-h) + 1.4rem);
  right: var(--side-pad);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.05em;
  color: rgba(241,238,231,0.72);
  text-align: right;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 1s var(--ease-soft) 1s;
}
.is-loaded .hero-meta { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--side-pad) var(--space-6);
  color: var(--paper);
  text-align: left;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-hero);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-3);
}
.hero-title .mask-line { padding-bottom: 0.08em; }
.hero-lead {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 400;
  max-width: 34ch;
  opacity: 0.94;
}

.hero-scroll {
  position: absolute;
  left: var(--side-pad);
  bottom: var(--space-3);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1s var(--ease-soft) 1.3s, transform 0.4s var(--ease);
}
.is-loaded .hero-scroll { opacity: 0.85; }
.hero-scroll:hover { opacity: 1; transform: translateY(-2px); }
.hero-scroll-line {
  width: 1px;
  height: 26px;
  background: currentColor;
  opacity: 0.55;
}

@media (max-width: 640px) {
  .hero-content { padding-bottom: var(--space-5); }
  .hero-img { object-position: center 66%; }
  .hero-meta { top: calc(var(--header-h) + 0.6rem); font-size: 0.62rem; }
  .hero-scroll { display: none; }
}

/* -------------------------------------------------------------------------
   Sections — shared rhythm
   ------------------------------------------------------------------------- */
.section { padding: var(--space-6) 0; position: relative; }

/* -------------------------------------------------------------------------
   01 — La casa (intro + fact list)
   ------------------------------------------------------------------------- */
.stay-section { padding-top: var(--space-7); }

.stay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.stay-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.stay-text p {
  color: var(--muted);
  margin-bottom: var(--space-3);
  max-width: 48ch;
  font-size: var(--fs-body);
}
.stay-text p:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .stay-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-6);
    align-items: end;
  }
  .stay-text { padding-bottom: 0.3em; }
}

.fact-list {
  border-top: 1px solid var(--line);
}
.fact-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.fact-list li:hover { padding-left: 0.5em; }
.fact-index {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--olive);
  width: 1.6em;
  flex-shrink: 0;
}
.fact-value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  min-width: 11em;
}
.fact-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin-left: auto;
  text-align: right;
}

@media (min-width: 760px) {
  .fact-list { display: flex; flex-wrap: wrap; }
  .fact-list li { flex: 1 1 33.33%; flex-direction: column; align-items: flex-start; gap: 0.5em; border-bottom: 1px solid var(--line); }
  .fact-value { min-width: 0; }
  .fact-label { margin-left: 0; text-align: left; }
}

/* -------------------------------------------------------------------------
   02 — The space (draggable gallery)
   ------------------------------------------------------------------------- */
.space-section { padding-top: var(--space-6); padding-bottom: var(--space-5); }
.space-head { margin-bottom: var(--space-5); }
.space-head .section-title { max-width: 22ch; }

.drag-gallery {
  position: relative;
  height: 78vh;
  min-height: 420px;
  max-height: 820px;
}
.drag-gallery-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.drag-gallery-viewport::-webkit-scrollbar { display: none; }
.drag-gallery.js-drag .drag-gallery-viewport { overflow: hidden; }
.drag-gallery.is-dragging .drag-gallery-viewport { cursor: grabbing; }

.drag-gallery-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 16vw;
  padding-right: 16vw;
  will-change: transform;
}

.drag-slide {
  position: relative;
  flex: 0 0 auto;
  width: 66vw;
  max-width: 980px;
  height: 100%;
  margin-right: 3.4vw;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  transform: scale(var(--slide-scale, 1));
  opacity: var(--slide-opacity, 1);
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.drag-gallery.is-dragging .drag-slide,
.drag-gallery.is-settling .drag-slide { transition: none; }

.drag-slide-frame {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--paper-soft);
}
.drag-slide-frame img {
  position: absolute;
  inset: -6% -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transform: translateX(var(--parallax, 0px));
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.drag-slide img[src*="camera-divano-verde"] { object-position: center 40%; }
.drag-slide img[src*="camera-tv-armadio"] { object-position: center 38%; }
.drag-slide img[src*="cucina-tavolo"] { object-position: center 42%; }
.drag-slide img[src*="cucina-balcone"] { object-position: 66% center; }
.drag-slide img[src*="bagno-doccia"] { object-position: 60% 38%; }

.drag-slide-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
}
.slide-room {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}
.slide-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  text-align: right;
}

.drag-gallery-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
  padding: 0 var(--side-pad);
}
.drag-counter {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
  flex-shrink: 0;
}
.drag-progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
}
.drag-progress span {
  position: absolute;
  top: -1px; left: 0;
  height: 3px;
  width: 20%;
  background: var(--olive);
  transition: width 0.35s var(--ease), left 0.35s var(--ease);
}
.drag-hint {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.drag-hint-arrow { color: var(--olive); }

.drag-cursor {
  position: fixed;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 0.9em;
  border-radius: 999px;
  background: rgba(23,23,20,0.86);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.drag-cursor.is-active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.drag-cursor-arrow { color: #B9BFA4; }

@media (max-width: 899px), (pointer: coarse) {
  .drag-cursor { display: none; }
}

@media (max-width: 899px) {
  .drag-gallery { height: 66vh; min-height: 380px; }
  .drag-gallery-track { padding-left: 7vw; padding-right: 7vw; }
  .drag-slide { width: 86vw; margin-right: 4vw; }
  .slide-caption { font-size: 0.95rem; }
  .drag-gallery-bar { flex-wrap: wrap; }
}

/* -------------------------------------------------------------------------
   03 — Details (servizi)
   ------------------------------------------------------------------------- */
.details-section { background: var(--paper-soft); }
.details-title { max-width: 26ch; margin-bottom: var(--space-5); }

.details-list {
  border-top: 1px solid var(--line);
  column-count: 1;
}
.details-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding: 1.05em 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), color 0.4s var(--ease);
}
.details-list li:hover { padding-left: 0.6em; }
.details-list li:hover .details-index { color: var(--olive); }
.details-index {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: var(--muted);
  width: 2em;
  flex-shrink: 0;
  transition: color 0.4s var(--ease);
}
.details-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}

@media (min-width: 760px) {
  .details-list { column-count: 2; column-gap: var(--space-5); }
  .details-list li { break-inside: avoid; }
}

/* -------------------------------------------------------------------------
   04 — Alcamo (editorial visual essay: hero → architecture → details)
   ------------------------------------------------------------------------- */
.alcamo-section {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

/* Intro block: label / metadata / large headline / short copy — a single
   left-aligned column, sharing its edge with the images below it so the
   whole section reads as one aligned grid rather than floating pieces. */
.alcamo-intro { margin-bottom: var(--space-5); }
.alcamo-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(241, 238, 231, 0.45);
  margin-bottom: var(--space-3);
}
.alcamo-headline {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: var(--space-3);
}
.alcamo-copy {
  color: rgba(241, 238, 231, 0.7);
  max-width: 46ch;
  font-size: var(--fs-body);
}

/* The essay itself: hero, architecture pair and details all share the
   same container edges — one aligned grid, no independently floating
   vw-positioned pieces. */
.alcamo-essay { display: block; }

/* Shared photo treatment. */
.alcamo-hero, .alcamo-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(241, 238, 231, 0.05);
  cursor: zoom-in;
}
.alcamo-hero img, .alcamo-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.8s var(--ease);
}
.alcamo-hero:hover img, .alcamo-figure:hover img,
.alcamo-hero:focus-visible img, .alcamo-figure:focus-visible img {
  transform: scale(1.025);
}
.alcamo-hero figcaption, .alcamo-figure figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  color: rgba(241, 238, 231, 0.5);
}

/* Tier 1 — the one dominant hero image: full width of the shared column,
   a wide editorial letterbox crop, generous space below. */
.alcamo-hero {
  aspect-ratio: 4 / 5;
  margin-bottom: var(--space-5);
}
.alcamo-hero img { object-position: 62% 40%; }

/* Tier 2 — architecture pair: two related but differently-sized photos
   on one clear grid, not a scatter. Stacked full-width on mobile. */
.alcamo-architecture {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.alcamo-figure--arch-a { aspect-ratio: 3 / 4; }
.alcamo-figure--arch-a img { object-position: center 44%; }
.alcamo-figure--arch-b { aspect-ratio: 4 / 3; }
.alcamo-figure--arch-b img { object-position: 62% 48%; }

/* Tier 3 — details: smaller scale, minimal metadata tag above each
   photo, deliberately narrower than the full column so the remaining
   width reads as intentional void, not leftover space. */
.alcamo-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.alcamo-detail { display: flex; flex-direction: column; gap: var(--space-2); }
.alcamo-tier-tag {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(241, 238, 231, 0.45);
}
.alcamo-tier-index { color: #B9BFA4; }
.alcamo-figure--detail { aspect-ratio: 4 / 5; }
.alcamo-figure--detail img { object-position: center 22%; }
.alcamo-details .alcamo-figure--detail[data-viewer-index="4"] img { object-position: center 32%; }

.alcamo-close {
  color: rgba(241, 238, 231, 0.7);
  max-width: 46ch;
  font-size: var(--fs-body);
}

@media (min-width: 760px) {
  .alcamo-hero { aspect-ratio: 16 / 8; margin-bottom: var(--space-6); }
  .alcamo-architecture {
    grid-template-columns: 1.45fr 1fr;
    align-items: end;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
  }
  .alcamo-figure--arch-b { align-self: end; }
  .alcamo-details {
    grid-template-columns: repeat(2, minmax(0, 200px));
    gap: var(--space-5);
    max-width: 640px;
  }
}


/* -------------------------------------------------------------------------
   05 — Come arrivare (map)
   ------------------------------------------------------------------------- */
.reach-section { padding-top: var(--space-7); }
.reach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
.reach-address {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.15rem;
  margin: var(--space-2) 0 var(--space-3);
}
.reach-copy { color: var(--muted); max-width: 42ch; margin-bottom: var(--space-4); font-size: var(--fs-body); }
.reach-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.reach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.reach-photo figcaption {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--muted);
}

@media (min-width: 860px) {
  .reach-grid { grid-template-columns: 1fr 0.85fr; align-items: center; gap: var(--space-6); }
  .reach-photo { aspect-ratio: 3 / 4; }
}

.map-wrap { position: relative; }
.map-embed {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  filter: saturate(0.9) contrast(1.02);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 860px) {
  .map-embed { height: 440px; }
}

/* -------------------------------------------------------------------------
   06 — WhatsApp CTA: a thin, single-purpose strip. Just the link — no
   headline, no contact grid, no ornament. Those details live in the
   footer right below; this is only the "start the conversation" moment.
   ------------------------------------------------------------------------- */
.whatsapp-strip {
  background: var(--ink);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  text-align: center;
}
.cta-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--paper);
  padding-bottom: 0.15em;
  position: relative;
}
.cta-main::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: scaleX(1);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.cta-main:hover::after { transform: scaleX(0.94); opacity: 0.9; }
.cta-main-arrow { transition: transform 0.4s var(--ease); display: inline-block; color: #B9BFA4; }
.cta-main:hover .cta-main-arrow { transform: translate(4px, -4px); }

/* -------------------------------------------------------------------------
   Footer — a quiet, centred editorial ending, not a corporate footer.
   Hierarchy: wordmark (strongest) > location/contacts/links (discreet)
   > CIR/CIN + copyright (quiet, but legible). Two tiny gold ornaments
   echo the logo's own line-and-flourish rhythm without recreating it.
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(241, 238, 231, 0.7);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--line-on-dark);
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  letter-spacing: 0.05em;
  color: var(--paper);
}
.footer-location {
  font-size: 0.88rem;
  color: rgba(241, 238, 231, 0.62);
  max-width: 38ch;
  margin-top: calc(var(--space-3) * -1 + var(--space-1));
}
.footer-coords {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.03em;
  color: rgba(241, 238, 231, 0.4);
  margin-top: calc(var(--space-1) * -1 + 2px);
}

.footer-ornament {
  width: 100%;
  max-width: 190px;
  margin: var(--space-1) 0;
  color: var(--brand-gold);
  opacity: 0.75;
}
.footer-ornament svg {
  width: 100%;
  height: auto;
  overflow: visible;
  stroke: currentColor;
  fill: currentColor;
}
.footer-ornament svg path { fill: none; stroke-width: 1; stroke-linecap: round; }
.footer-ornament svg rect { stroke: none; }

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.88rem;
}
.footer-contacts a:hover { color: var(--paper); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--paper); }

.footer-legal {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: rgba(241, 238, 231, 0.52);
  font-feature-settings: "tnum" 1;
}
.footer-legal span { color: rgba(241, 238, 231, 0.68); font-weight: 600; }

/* Secondary mention only — same quiet tone as CIR/CIN just above, no
   Booking brand colour/logo/button. Prenota / WhatsApp stays the one
   primary call to action on the site. */
.footer-booking {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  margin-top: var(--space-2);
}
.footer-booking a {
  color: rgba(241, 238, 231, 0.52);
  text-decoration: underline;
  text-decoration-color: rgba(241, 238, 231, 0.25);
  text-underline-offset: 0.2em;
  transition: color 0.3s var(--ease);
}
.footer-booking a:hover { color: var(--paper); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(241, 238, 231, 0.4);
  margin: var(--space-2) 0 0;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .footer-contacts, .footer-nav { flex-direction: column; gap: var(--space-2); }
  .footer-legal { line-height: 1.8; }
}

/* -------------------------------------------------------------------------
   Fullscreen editorial viewer
   ------------------------------------------------------------------------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 500;
}
.viewer[hidden] { display: none; }
.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: #0D0C0A;
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}
.viewer.is-open .viewer-backdrop { opacity: 1; }

.viewer-stage {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 7vw 12vh;
}
.viewer-figure {
  max-width: 100%;
  max-height: 100%;
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  transition: opacity 0.5s var(--ease-soft), transform 0.55s var(--ease-soft);
}
.viewer.is-open .viewer-figure { opacity: 1; transform: scale(1) translateY(0); }
.viewer-figure img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.94) contrast(1.02);
}

.viewer-close {
  position: absolute;
  top: var(--space-3);
  right: var(--side-pad);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.15s;
}
.viewer.is-open .viewer-close { opacity: 0.85; }
.viewer-close:hover { opacity: 1; }
.viewer-close-x { font-size: 1.2rem; line-height: 1; }

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-size: 2rem;
  font-family: var(--font-serif);
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.2s, transform 0.35s var(--ease);
}
.viewer.is-open .viewer-nav { opacity: 0.6; }
.viewer-nav:hover { opacity: 1; }
.viewer-prev { left: 1vw; }
.viewer-prev:hover { transform: translate(-3px, -50%); }
.viewer-next { right: 1vw; }
.viewer-next:hover { transform: translate(3px, -50%); }

@media (max-width: 640px) {
  .viewer-nav { display: none; }
}

.viewer-meta {
  position: absolute;
  left: var(--side-pad);
  right: var(--side-pad);
  bottom: var(--space-3);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.2s;
}
.viewer.is-open .viewer-meta { opacity: 0.9; }
.viewer-count {
  font-family: var(--font-mono);
  font-size: var(--fs-meta);
  color: rgba(241,238,231,0.6);
  flex-shrink: 0;
}
.viewer-caption {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--paper);
}
