/* =========================================================
   MODELLI 54 — Casa vacanze a Fontana di Trevi
   ========================================================= */

:root {
  --cream: #eae2d7;
  --paper: #e2d6c5;
  --sand: #ceb99c;
  --ink: #2b1c08;
  --ink-soft: #6b5a45;
  --senape: #e9bc67;
  --senape-deep: #b8862e;
  --terracotta: #a9502c;
  --line: rgba(43, 28, 8, 0.16);
  --white: #f7f2ea;

  /* Vageli è il font dei titoli del brand: se carichi assets/fonts/Vageli-Regular.woff2 (con licenza web)
     e togli il commento al blocco @font-face qui sotto, viene usato al posto di Cormorant Garamond. */
  --serif: "Vageli", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Roboto", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* @font-face { font-family: "Vageli"; src: url("../fonts/Vageli-Regular.woff2") format("woff2"); font-display: swap; } */

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--senape); color: var(--ink); }

/* ---------- Typography ---------- */
.display,
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
.upper { text-transform: uppercase; letter-spacing: 0.01em; }
.h-xxl { font-size: clamp(64px, 13vw, 220px); }
.h-xl  { font-size: clamp(46px, 7.4vw, 120px); }
.h-l   { font-size: clamp(38px, 5.2vw, 80px); }
.h-m   { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.05; }
.h-s   { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
em, .it { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid:hover { background: var(--senape); border-color: var(--senape); color: var(--ink); }
.btn--light { color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--gutter);
  color: var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), padding 0.5s var(--ease), transform 0.5s var(--ease);
}
.site-header.is-solid {
  background: rgba(244, 237, 225, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line);
}
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(20, 12, 4, 0.45), rgba(20, 12, 4, 0)); transition: opacity 0.5s var(--ease); }
.site-header.is-solid::before, .solid-header .site-header::before, .menu-open .site-header::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header nav { display: flex; gap: 40px; }
.site-header nav a,
.site-header .nav-right a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a[aria-current="page"]::after { right: 0; }
.logo { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.logo svg { height: 58px; width: auto; display: block; shape-rendering: geometricPrecision; transition: height 0.5s var(--ease); }
.site-header.is-solid .logo svg { height: 48px; }
.footer__brand .logo svg { height: 120px; color: var(--cream); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 32px; }
.nav-right .btn { padding: 15px 28px; font-size: 13px; }

.menu-toggle { display: none; width: 48px; height: 48px; position: relative; }
.menu-toggle span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  gap: 8px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
}
.mobile-menu a { font-family: var(--serif); font-size: clamp(40px, 11vw, 64px); text-transform: uppercase; line-height: 1.1; }
.mobile-menu .eyebrow { color: rgba(244, 237, 225, 0.6); margin-top: 32px; }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); }
.menu-open .site-header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav, .nav-right a:not(.btn), .nav-right .btn { display: none; }
  .logo { justify-content: flex-start; }
  .logo svg, .site-header.is-solid .logo svg { height: 40px; }
  .menu-toggle { display: block; }
}

/* ---------- Reveal helpers ---------- */
.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line-mask > span { display: block; }

/* =========================================================
   HOME
   ========================================================= */

/* --- 1. Arrival (pinned) --- */
.arrival {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}
.arrival__layer {
  position: absolute;
  inset: 0;
  will-change: transform, clip-path, opacity;
}
.arrival__layer img { width: 100%; height: 100%; object-fit: cover; }
.arrival__layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.45) 0%, rgba(20, 14, 10, 0.05) 35%, rgba(20, 14, 10, 0.1) 60%, rgba(20, 14, 10, 0.7) 100%);
}
.arrival__title {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.arrival__title .eyebrow { color: rgba(255, 250, 242, 0.85); margin-bottom: 18px; }
.arrival__title h1 { text-transform: uppercase; }
.arrival__title p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 30px); margin: 18px 0 0; max-width: 28ch; line-height: 1.25; }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.scroll-cue i { width: 1px; height: 48px; background: rgba(255, 250, 242, 0.35); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--white); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

.arrival__captions { position: absolute; z-index: 6; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 6vh, 64px); pointer-events: none; }
.arrival__cap { position: absolute; left: 0; bottom: 0; max-width: 560px; opacity: 0; }
.arrival__cap .num { font-size: 12px; letter-spacing: 0.24em; opacity: 0.8; display: block; margin-bottom: 12px; }
.arrival__cap h2 { font-size: clamp(36px, 5vw, 72px); text-transform: uppercase; }
.arrival__cap p { margin: 12px 0 0; font-size: 16px; max-width: 40ch; color: rgba(255, 250, 242, 0.88); }
.arrival__progress { position: absolute; z-index: 6; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.arrival__progress span { width: 2px; height: 28px; background: rgba(255, 250, 242, 0.25); position: relative; overflow: hidden; }
.arrival__progress span b { position: absolute; inset: 0; background: var(--white); transform: scaleY(0); transform-origin: top; }

/* --- 2. Manifesto --- */
.manifesto { position: relative; background: var(--cream); padding: clamp(100px, 16vw, 220px) 0; }
.manifesto__text { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 72px); line-height: 1.08; max-width: 18ch; margin: 28px 0 0; }
.manifesto__text .w { opacity: 0.14; transition: none; }
.manifesto__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.manifesto__aside { display: grid; gap: 22px; }
.manifesto__aside figure { margin: 0; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; }
.manifesto__aside figure img { width: 100%; height: 118%; object-fit: cover; }
@media (max-width: 900px) { .manifesto__grid { grid-template-columns: 1fr; } }

/* --- 4. Benefits path --- */
.benefits { position: relative; background: var(--cream); padding: clamp(110px, 14vw, 200px) 0 clamp(80px, 10vw, 160px); overflow: hidden; }
.benefits__head { text-align: center; margin-bottom: clamp(60px, 9vw, 130px); position: relative; z-index: 2; }
.benefits__head h2 { text-transform: uppercase; }
.benefits__head .lead { margin: 22px auto 0; }
.benefits__contours { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
.benefits__contours svg { width: 100%; height: 100%; }
.benefits__path { position: absolute; z-index: 1; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.benefits__path path { fill: none; stroke: var(--senape-deep); stroke-width: 2; stroke-linecap: round; }
.benefits__list { position: relative; z-index: 2; display: grid; gap: clamp(70px, 9vw, 140px); }
.benefit { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.benefit__media { grid-column: 2 / span 5; position: relative; }
.benefit__media figure { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 2px; }
.benefit__media img { width: 100%; height: 115%; object-fit: cover; }
.benefit__num {
  position: absolute; top: -16px; right: -16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600;
}
.benefit__body { grid-column: 8 / span 4; }
.benefit__body h3 { text-transform: uppercase; font-size: clamp(30px, 3.4vw, 50px); }
.benefit__body p { color: var(--ink-soft); margin: 18px 0 0; max-width: 38ch; }
.benefit__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.benefit__tags span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.benefit:nth-child(even) .benefit__media { grid-column: 7 / span 5; grid-row: 1; }
.benefit:nth-child(even) .benefit__body { grid-column: 2 / span 4; grid-row: 1; }
.benefit--wide .benefit__media figure { aspect-ratio: 3 / 2; }
@media (max-width: 900px) {
  .benefit, .benefit:nth-child(even) { grid-template-columns: 1fr; }
  .benefit .benefit__media, .benefit:nth-child(even) .benefit__media,
  .benefit .benefit__body, .benefit:nth-child(even) .benefit__body { grid-column: 1; grid-row: auto; }
  .benefit__media figure { aspect-ratio: 4 / 3.6; }
  .benefit__num { right: 12px; top: 12px; }
  .benefits__path { display: none; }
}

/* --- 6. Window view --- */
.window { position: relative; height: 140vh; overflow: hidden; background: var(--ink); color: var(--white); }
.window__img { position: absolute; inset: -10% 0; }
.window__img img { width: 100%; height: 100%; object-fit: cover; }
.window__shutters { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.window__shutters span {
  background:
    repeating-linear-gradient(180deg, #4a3526 0 14px, #3a291d 14px 16px, #5a4130 16px 22px);
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5);
}
.window__shutters span:first-child { transform-origin: left; border-right: 3px solid #2a1d14; }
.window__shutters span:last-child { transform-origin: right; border-left: 3px solid #2a1d14; }
.window__text { position: sticky; top: 0; height: 100vh; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0 var(--gutter); }
.window__text h2 { text-transform: uppercase; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.window__text p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); max-width: 30ch; margin: 18px 0 0; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }

/* --- 7. Numbers --- */
.numbers { background: var(--cream); padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.numbers__item { padding: 36px 24px 0 0; border-right: 1px solid var(--line); }
.numbers__item:last-child { border-right: 0; }
.numbers__item + .numbers__item { padding-left: 24px; }
.numbers__item .n { font-family: var(--serif); font-size: clamp(64px, 8vw, 128px); line-height: 0.9; display: block; }
.numbers__item .n sup { font-size: 0.38em; vertical-align: top; position: relative; top: 0.25em; margin-left: 4px; }
.numbers__item p { margin: 14px 0 0; color: var(--ink-soft); max-width: 22ch; }
@media (max-width: 900px) {
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .numbers__item { padding: 28px 16px 28px 0 !important; border-bottom: 1px solid var(--line); }
  .numbers__item:nth-child(2n) { border-right: 0; padding-left: 16px !important; }
}

/* --- 8. Stacked rooms --- */
.rooms { background: var(--cream); padding-bottom: clamp(80px, 10vw, 140px); }
.rooms__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; }
.rooms__head h2 { text-transform: uppercase; }
.room-card {
  position: sticky;
  top: 90px;
  height: calc(100vh - 120px);
  min-height: 460px;
  margin-bottom: 40px;
  border-radius: 4px;
  overflow: hidden;
  color: var(--white);
  transform-origin: center top;
}
.room-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,14,10,0.72) 0%, rgba(20,14,10,0.15) 55%, rgba(20,14,10,0) 100%); }
.room-card__body { position: absolute; z-index: 2; left: clamp(24px, 4vw, 64px); bottom: clamp(24px, 5vw, 64px); max-width: 440px; }
.room-card__body .eyebrow { color: rgba(255,250,242,0.75); }
.room-card__body h3 { text-transform: uppercase; font-size: clamp(40px, 5vw, 78px); margin: 12px 0 14px; }
.room-card__body p { margin: 0 0 24px; color: rgba(255,250,242,0.88); }

/* --- 9. CTA --- */
.cta { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden; background: var(--ink); }
.cta__bg { position: absolute; inset: -8% 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.cta__inner { position: relative; z-index: 2; padding: 140px var(--gutter); }
.cta h2 { text-transform: uppercase; }
.cta p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); margin: 18px auto 34px; max-width: 32ch; }
.cta .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   INNER PAGES
   ========================================================= */
.page-hero { position: relative; height: 92vh; height: 92svh; min-height: 560px; overflow: hidden; color: var(--white); background: var(--ink); }
.page-hero__img { position: absolute; inset: 0; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,0.45), rgba(20,14,10,0.1) 40%, rgba(20,14,10,0.7)); }
.page-hero__body { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(70px, 12vh, 130px); }
.page-hero__body .eyebrow { color: rgba(255,250,242,0.8); }
.page-hero__body h1 { text-transform: uppercase; margin-top: 14px; }
.page-hero__body p { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); max-width: 34ch; margin: 18px 0 0; }

.section { padding: clamp(90px, 11vw, 160px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .muted, .section--ink .lead { color: rgba(244,237,225,0.7); }
.section--ink .eyebrow { color: rgba(244,237,225,0.6); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* --- Interni: rooms --- */
.subnav { position: sticky; top: 72px; transition: top 0.5s var(--ease); z-index: 20; background: rgba(244,237,225,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { padding: 16px 0; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; color: var(--ink-soft); border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s; }
.subnav a.is-active { color: var(--ink); border-color: var(--senape); }

.room { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: start; padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.room:last-child { border-bottom: 0; }
.room__text { position: sticky; top: 150px; }
.room__text .idx { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--senape-deep); }
.room__text h2 { text-transform: uppercase; font-size: clamp(42px, 5vw, 78px); margin: 10px 0 20px; }
.room__text p { color: var(--ink-soft); max-width: 42ch; }
.room__feat { list-style: none; padding: 0; margin: 26px 0 0; border-top: 1px solid var(--line); }
.room__feat li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.room__feat li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--senape); flex: none; transform: translateY(-2px); }
.room__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.room__gallery figure { margin: 0; overflow: hidden; border-radius: 2px; cursor: zoom-in; position: relative; }
.room__gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room__gallery figure:hover img { transform: scale(1.04); }
.room__gallery .wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.room__gallery .tall { aspect-ratio: 2 / 3; }
.room__gallery .sq { aspect-ratio: 1; }
@media (max-width: 900px) {
  .room { grid-template-columns: 1fr; }
  .room__text { position: static; }
}

.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(244,237,225,0.18); margin-top: 56px; }
.amenity { padding: 28px 22px 28px 0; border-bottom: 1px solid rgba(244,237,225,0.18); display: flex; gap: 14px; align-items: flex-start; }
.amenity svg { width: 26px; height: 26px; flex: none; stroke: var(--senape); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.amenity strong { display: block; font-weight: 600; font-size: 15px; }
.amenity span { font-size: 13px; color: rgba(244,237,225,0.6); }
@media (max-width: 900px) { .amenities { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* --- Lightbox --- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18, 13, 9, 0.96); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lightbox button { position: absolute; color: var(--cream); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; padding: 16px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(244,237,225,0.6); font-size: 12px; letter-spacing: 0.2em; }

/* --- Intorno --- */

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.place { display: block; }
.place figure { margin: 0 0 16px; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; position: relative; }
.place img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.place:hover img { transform: scale(1.05); }
.place .mins { position: absolute; left: 12px; top: 12px; background: var(--cream); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; }
.place h3 { text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); }
.place p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .places { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .places { grid-template-columns: 1fr; } }

.list-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 60px); }
.list-col h3 { text-transform: uppercase; font-size: clamp(26px, 2.4vw, 34px); padding-bottom: 14px; border-bottom: 1px solid currentColor; }
.list-col ul { list-style: none; margin: 0; padding: 0; }
.list-col li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.section--ink .list-col li { border-color: rgba(244,237,225,0.16); }
.list-col li span:last-child { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.section--ink .list-col li span:last-child { color: var(--senape); }
@media (max-width: 900px) { .list-cols { grid-template-columns: 1fr; } }

.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tip { background: var(--cream); padding: 30px 26px 34px; border-radius: 2px; }
.tip .when { font-family: var(--serif); font-style: italic; color: var(--senape-deep); font-size: 22px; }
.tip h3 { text-transform: uppercase; font-size: 28px; margin: 10px 0 12px; }
.tip p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 1000px) { .tips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tips { grid-template-columns: 1fr; } }

/* --- Contatti --- */
.contact { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; }
.contact__media { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,0.4), rgba(20,14,10,0) 30%, rgba(20,14,10,0.55)); }
.contact__media .cap { position: absolute; z-index: 2; left: var(--gutter); bottom: 40px; color: var(--white); }
.contact__media .cap h2 { font-size: clamp(32px, 3.2vw, 48px); text-transform: uppercase; }
.contact__body { padding: clamp(120px, 14vh, 170px) var(--gutter) 90px; }
.contact__body h1 { text-transform: uppercase; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact__media { position: relative; height: 56vh; }
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; margin-top: 50px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23221a14' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center no-repeat; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--ink-soft); grid-column: 1 / -1; margin: 0; }
.form__ok { grid-column: 1 / -1; padding: 16px 20px; background: var(--paper); border-left: 3px solid var(--senape); display: none; }
.form__ok.is-on { display: block; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 70px; }
.info-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.info-card .eyebrow { display: block; margin-bottom: 10px; }
.info-card a, .info-card p { font-family: var(--serif); font-size: 22px; line-height: 1.25; margin: 0; }
.info-card a:hover { color: var(--terracotta); }
@media (max-width: 700px) { .info-cards { grid-template-columns: 1fr; } }

.faq { margin-top: 80px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 60ch; }

.arrive { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.arrive div { padding: 26px; background: var(--paper); border-radius: 2px; }
.arrive h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.arrive p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .arrive { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding: 90px 0 36px; position: relative; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; border-bottom: 1px solid rgba(244,237,225,0.15); }
.footer__brand .logo { justify-content: flex-start; }
.footer__brand p { color: rgba(244,237,225,0.65); max-width: 34ch; margin-top: 16px; }
.site-footer h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(244,237,225,0.5); margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--senape); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 12px; color: rgba(244,237,225,0.5); }
.footer__bottom details summary { cursor: pointer; }
.footer__bottom details p { max-width: 80ch; line-height: 1.7; }
.footer__clock { font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* No-animation fallback for the arrival sequence */
.reduced .arrival__layer:not([data-layer="1"]) { display: none; }
.window__img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,14,10,0.55) 0%, rgba(20,14,10,0.25) 60%, rgba(20,14,10,0.45) 100%); }

body.header-up .subnav { top: 0; }
.solid-header .site-header { background: rgba(244, 237, 225, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }

/* =========================================================
   ARRIVAL · the door scene (photo 0226 is 1800×1200)
   ========================================================= */
.door-scene {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 150vh);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
}
.door-scene__zoom { position: absolute; inset: 0; transform-origin: 46.74% 57.67%; will-change: transform; }
.door-scene__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doorway {
  position: absolute;
  left: 38.33%;
  top: 32.92%;
  width: 15.83%;
  height: 55%;
  perspective: 1400px;
  perspective-origin: 50% 50%;
}
.doorway__inside { position: absolute; inset: 0; overflow: hidden; background: #1a1006; }
.doorway__inside img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; transform: scale(1.15); }
.doorway__inside::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(233, 188, 103, 0.18), rgba(20, 12, 4, 0.55)); }
.door-leaf {
  position: absolute;
  inset: 0;
  background-image: url("../img/casa/0226.jpg");
  background-size: 631.7% 181.8%;
  background-position: 45.54% 73.15%;
  transform-origin: 0% 50%;
  backface-visibility: hidden;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  will-change: transform;
}
.door-leaf::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); }
.door-glow { position: absolute; inset: -20%; pointer-events: none; background: radial-gradient(ellipse at 50% 55%, rgba(233, 188, 103, 0.45), rgba(233, 188, 103, 0) 60%); opacity: 0; mix-blend-mode: screen; }
.arrival__layer--door::after { display: none; }

/* =========================================================
   MAP · walking routes in brand colours
   ========================================================= */
.routes { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--cream); color: var(--ink); }
.routes__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.routes__svg .m-bld { fill: var(--sand); }
.routes__svg .m-park { fill: #d6c99f; }
.routes__svg .m-water { fill: #c3bba9; }
.routes__svg .m-road { fill: none; stroke: var(--cream); stroke-linecap: round; stroke-linejoin: round; }
.routes__svg .m-route-halo { fill: none; stroke: var(--cream); stroke-linecap: round; stroke-linejoin: round; }
.routes__svg .m-route { fill: none; stroke: var(--senape-deep); stroke-linecap: round; stroke-linejoin: round; }
.routes__svg .m-route--trevi { stroke: var(--ink); }
.routes__svg .walker { fill: var(--ink); }
.routes__svg .walker-ring { fill: none; stroke: var(--ink); opacity: 0.35; }

.m-label { opacity: 0; }
.m-label .pin { fill: var(--ink); stroke: var(--cream); stroke-width: 3; }
.m-label .card { fill: var(--cream); stroke: rgba(43, 28, 8, 0.18); }
.m-label .name { font: 400 15px/1 var(--serif); fill: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; }
.m-label .mins { font: 500 10px/1 var(--sans); fill: var(--senape-deep); letter-spacing: 0.14em; text-transform: uppercase; }
.m-home .ring { fill: var(--senape); stroke: var(--ink); stroke-width: 1.5; }
.m-home .ring2 { fill: none; stroke: var(--senape); stroke-width: 1.5; opacity: 0.7; }
.m-home svg { color: var(--ink); }

.routes__vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, rgba(234, 226, 215, 0) 55%, rgba(234, 226, 215, 0.85) 100%); }
.routes__head { position: absolute; z-index: 3; left: var(--gutter); top: clamp(100px, 16vh, 150px); width: min(400px, 30vw); min-height: 280px; pointer-events: none; }
.routes__phase { position: absolute; left: 0; top: 0; width: 100%; }
.routes__phase--a { position: relative; }
.routes__phase h2 { text-transform: uppercase; font-size: clamp(38px, 4.6vw, 72px); }
.routes__phase p { color: var(--ink-soft); max-width: 36ch; margin: 14px 0 0; }
.routes__phase--b { opacity: 0; }
.routes__count { position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(30px, 7vh, 70px); text-align: right; pointer-events: none; }
.routes__count .big { display: block; font-family: var(--serif); font-size: clamp(110px, 16vw, 240px); line-height: 0.8; font-variant-numeric: tabular-nums; }
.routes__count .lbl { display: block; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 30px); }
.routes__list { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 22px 24px; background: rgba(234, 226, 215, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line); min-width: 260px; opacity: 0; }
.routes__list li { display: flex; justify-content: space-between; gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; opacity: 0.35; transition: opacity 0.4s; }
.routes__list li:last-child { border-bottom: 0; }
.routes__list li.on { opacity: 1; }
.routes__list li b { font-weight: 500; color: var(--senape-deep); white-space: nowrap; }
.routes__cta { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(30px, 7vh, 70px); opacity: 0; }
@media (max-width: 1099px) {
  .routes__list { display: none; }
  .routes__head { top: 84px; right: var(--gutter); width: auto; min-height: 0; }
  .routes__phase h2 { font-size: clamp(32px, 7vw, 52px); }
  .routes__phase p { display: none; }

}

/* =========================================================
   Targa / legal plate
   ========================================================= */
.plate { display: grid; grid-template-columns: repeat(6, auto); gap: 8px 28px; justify-content: start; padding: 26px 0; border-bottom: 1px solid rgba(234, 226, 215, 0.15); font-size: 12px; color: rgba(234, 226, 215, 0.7); }
.plate b { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(234, 226, 215, 0.45); margin-bottom: 4px; }
@media (max-width: 900px) { .plate { grid-template-columns: 1fr 1fr; } }
.contact-plate { margin-top: 70px; padding: 28px; border: 1px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.contact-plate .ttl { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.contact-plate .ttl svg { height: 44px; width: auto; }
.contact-plate div b { display: block; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; margin-bottom: 4px; }
.contact-plate div span { font-size: 14px; word-break: break-word; }
@media (max-width: 600px) { .contact-plate { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.arrival__logo { margin: 0; line-height: 0; color: var(--white); filter: drop-shadow(0 4px 30px rgba(20, 12, 4, 0.45)); }
.arrival__logo svg { height: clamp(190px, 34vh, 340px); width: auto; }
.arrival__layer[data-layer="1"]::after { background: linear-gradient(180deg, rgba(20,12,4,0.55) 0%, rgba(20,12,4,0.3) 40%, rgba(20,12,4,0.35) 65%, rgba(20,12,4,0.75) 100%); }

@media (max-width: 699px) { .m-label .name { font-size: 11px; } .m-label .mins { font-size: 10px; } }

/* ---------- WhatsApp floating button (home) ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 14px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(43, 28, 8, 0.28);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; flex: none; }
.wa-float span { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; max-width: 0; overflow: hidden; transition: max-width 0.5s var(--ease), margin 0.5s var(--ease); }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(43, 28, 8, 0.35); }
.wa-float:hover span { max-width: 220px; margin-right: 6px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: wa-pulse 2.6s var(--ease) infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* =========================================================
   Morph Gallery (port of morph-gallery.tsx)
   ========================================================= */
.morph { position: relative; width: 100%; height: 86vh; height: 86svh; min-height: 520px; overflow: hidden; background: var(--ink); color: var(--white); border-radius: 4px; outline: none; touch-action: pan-y; user-select: none; }
.morph:focus-visible { box-shadow: 0 0 0 2px var(--senape); }
.morph__canvas, .morph__fallback { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.morph__canvas { opacity: 0; transition: opacity 0.4s ease; }
.morph__canvas.is-ready { opacity: 1; }
.morph__fallback { object-fit: cover; max-width: none; transition: opacity 0.7s ease; }
.morph__shade { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: linear-gradient(90deg, rgba(20, 12, 4, 0.62) 0%, rgba(20, 12, 4, 0.12) 50%, rgba(20, 12, 4, 0) 70%), linear-gradient(180deg, rgba(20, 12, 4, 0) 55%, rgba(20, 12, 4, 0.7) 100%); }
.morph__caption { position: absolute; z-index: 6; left: clamp(24px, 4vw, 64px); top: 50%; max-width: 440px; transform: translateY(-40%); opacity: 0; pointer-events: none; transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.morph__caption.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; transition-delay: 0.35s; }
.morph__caption .eyebrow { color: rgba(247, 242, 234, 0.8); }
.morph__caption h3 { text-transform: uppercase; font-size: clamp(42px, 5.4vw, 86px); margin: 12px 0 14px; }
.morph__caption p { margin: 0 0 26px; color: rgba(247, 242, 234, 0.9); font-size: 17px; }
.morph__count { position: absolute; z-index: 6; top: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 40px); font-size: 13px; letter-spacing: 0.24em; color: rgba(247, 242, 234, 0.85); font-variant-numeric: tabular-nums; }
.morph__arrow { position: absolute; top: 50%; z-index: 10; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(247, 242, 234, 0.25); background: rgba(247, 242, 234, 0.1); color: var(--white); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background 0.3s; }
.morph__arrow:hover { background: rgba(233, 188, 103, 0.55); }
.morph__arrow:disabled { opacity: 0.25; pointer-events: none; }
.morph__arrow--prev { left: auto; right: calc(clamp(20px, 3vw, 40px) + 64px); top: auto; bottom: 34px; transform: none; }
.morph__arrow--next { right: clamp(20px, 3vw, 40px); top: auto; bottom: 34px; transform: none; }
.morph__thumbs { position: absolute; z-index: 10; left: clamp(24px, 4vw, 64px); bottom: 30px; display: flex; gap: 8px; max-width: calc(100% - 260px); margin: 0; padding: 0 0 8px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.morph__thumbs li { flex: none; }
.morph__thumbs button { display: block; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; opacity: 0.55; transition: opacity 0.3s, border-color 0.3s; }
.morph__thumbs button:hover { opacity: 0.85; }
.morph__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--senape); }
.morph__thumbs img { display: block; width: 88px; height: 56px; max-width: none; object-fit: cover; }
@media (max-width: 700px) {
  .morph { height: 78svh; }
  .morph__thumbs { display: none; }
  .morph__caption { top: auto; bottom: 110px; right: 24px; transform: none; }
  .morph__caption.is-on { transform: none; }
  .morph__arrow--prev { left: 24px; right: auto; }
  .morph__shade { background: linear-gradient(180deg, rgba(20, 12, 4, 0.15) 30%, rgba(20, 12, 4, 0.8) 100%); }
}
/* The staircase seen through the door, and then full screen while climbing */
.doorway__inside img { object-position: 50% 40%; transform: none; }
.routes__osm { position: absolute; z-index: 3; left: 50%; bottom: 8px; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.06em; color: rgba(43, 28, 8, 0.45); pointer-events: none; }

/* ---------- Soft fades between sections (eased stops, no visible seam) ---------- */
.edge { position: absolute; left: 0; width: 100%; z-index: 3; pointer-events: none; --edge-rgb: 234 226 215; }
.edge--fade { top: 1px; transform: translateY(-100%); height: clamp(220px, 34vh, 380px); background: linear-gradient(180deg, rgb(var(--edge-rgb) / 0) 0%, rgb(var(--edge-rgb) / 0.013) 8.1%, rgb(var(--edge-rgb) / 0.049) 15.5%, rgb(var(--edge-rgb) / 0.104) 22.5%, rgb(var(--edge-rgb) / 0.175) 29%, rgb(var(--edge-rgb) / 0.259) 35.3%, rgb(var(--edge-rgb) / 0.352) 41.2%, rgb(var(--edge-rgb) / 0.45) 47.1%, rgb(var(--edge-rgb) / 0.55) 52.9%, rgb(var(--edge-rgb) / 0.648) 58.8%, rgb(var(--edge-rgb) / 0.741) 64.7%, rgb(var(--edge-rgb) / 0.825) 71%, rgb(var(--edge-rgb) / 0.896) 77.5%, rgb(var(--edge-rgb) / 0.951) 84.5%, rgb(var(--edge-rgb) / 0.987) 91.9%, rgb(var(--edge-rgb) / 1) 100%); }
.edge--fade-out { bottom: -1px; height: clamp(160px, 26vh, 300px); background: linear-gradient(180deg, rgb(var(--edge-rgb) / 0) 0%, rgb(var(--edge-rgb) / 0.013) 8.1%, rgb(var(--edge-rgb) / 0.049) 15.5%, rgb(var(--edge-rgb) / 0.104) 22.5%, rgb(var(--edge-rgb) / 0.175) 29%, rgb(var(--edge-rgb) / 0.259) 35.3%, rgb(var(--edge-rgb) / 0.352) 41.2%, rgb(var(--edge-rgb) / 0.45) 47.1%, rgb(var(--edge-rgb) / 0.55) 52.9%, rgb(var(--edge-rgb) / 0.648) 58.8%, rgb(var(--edge-rgb) / 0.741) 64.7%, rgb(var(--edge-rgb) / 0.825) 71%, rgb(var(--edge-rgb) / 0.896) 77.5%, rgb(var(--edge-rgb) / 0.951) 84.5%, rgb(var(--edge-rgb) / 0.987) 91.9%, rgb(var(--edge-rgb) / 1) 100%); }
.edge--fade-in { top: -1px; height: clamp(180px, 30vh, 340px); background: linear-gradient(180deg, rgb(var(--edge-rgb) / 1) 0%, rgb(var(--edge-rgb) / 0.987) 8.099999999999994%, rgb(var(--edge-rgb) / 0.951) 15.5%, rgb(var(--edge-rgb) / 0.896) 22.5%, rgb(var(--edge-rgb) / 0.825) 29%, rgb(var(--edge-rgb) / 0.741) 35.3%, rgb(var(--edge-rgb) / 0.648) 41.2%, rgb(var(--edge-rgb) / 0.55) 47.1%, rgb(var(--edge-rgb) / 0.45) 52.9%, rgb(var(--edge-rgb) / 0.352) 58.8%, rgb(var(--edge-rgb) / 0.259) 64.7%, rgb(var(--edge-rgb) / 0.175) 71%, rgb(var(--edge-rgb) / 0.104) 77.5%, rgb(var(--edge-rgb) / 0.049) 84.5%, rgb(var(--edge-rgb) / 0.013) 91.9%, rgb(var(--edge-rgb) / 0) 100%); }
.numbers, .manifesto, #luoghi, .section--paper { z-index: 2; }

.page-hero__body { z-index: 4; bottom: clamp(150px, 22vh, 230px); }
.arrival__captions { bottom: clamp(150px, 26vh, 260px); }

/* ---------- Language switcher ---------- */
.langs { position: relative; font-size: 13px; font-weight: 500; letter-spacing: 0.12em; }
.langs__cur { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.langs__cur svg:not(.flag) { width: 10px; height: 6px; transition: transform 0.3s var(--ease); }
.langs__list { position: absolute; right: -10px; top: 100%; display: flex; flex-direction: column; min-width: 64px; padding: 6px 0; background: var(--cream); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(43, 28, 8, 0.15); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.langs:hover .langs__list, .langs:focus-within .langs__list { opacity: 1; visibility: visible; transform: none; }
.langs:hover .langs__cur svg:not(.flag), .langs:focus-within .langs__cur svg:not(.flag) { transform: rotate(180deg); }
.langs__list a { padding: 8px 16px; opacity: 0.7; }
.langs__list a:hover { opacity: 1; background: var(--paper); }
.langs__list a[aria-current="true"] { opacity: 1; font-weight: 600; }
.mobile-menu .langs__cur { display: none; }
.mobile-menu .langs__list { position: static; flex-direction: row; gap: 6px; padding: 0; margin-top: 28px; background: none; color: var(--cream); border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; font-size: 15px; }
.mobile-menu .langs__list a { padding: 8px 10px; }
.mobile-menu .langs__list a:hover { background: none; }
.mobile-menu .langs__list a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav, .nav-right > a:not(.btn), .nav-right > .btn, .nav-right .langs { display: none; }
  .logo { justify-content: flex-start; }
  .menu-toggle { display: block; }
}

/* =========================================================
   Partners
   ========================================================= */
.partner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.partner__brand { display: flex; flex-direction: column; gap: 22px; }
.partner__logo { width: min(100%, 420px); height: auto; }
.partner__intro h2 { text-transform: uppercase; margin-bottom: 24px; }
.partner__intro .lead { color: var(--ink); margin-bottom: 18px; }
@media (max-width: 900px) { .partner { grid-template-columns: 1fr; } }

.moments__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.moments { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 28px); }
.moment figure { margin: 0 0 16px; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; }
.moment img { width: 100%; height: 112%; object-fit: cover; }
.moment__n { font-family: var(--serif); font-style: italic; font-size: 20px; color: #7a1030; }
.moment h3 { text-transform: uppercase; font-size: clamp(28px, 2.6vw, 38px); margin: 4px 0 10px; }
.moment p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 900px) { .moments { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .moments { grid-template-columns: 1fr; } }

.partner__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.partner__gallery figure { margin: 0; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5; }
.partner__gallery .wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.partner__gallery img { width: 100%; height: 100%; object-fit: cover; }

.partner__info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; border-top: 1px solid rgba(234, 226, 215, 0.18); padding-top: 28px; }
.partner__info p { margin: 10px 0 0; font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.partner__info a:hover { color: var(--senape); }
@media (max-width: 900px) { .partner__info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .partner__info { grid-template-columns: 1fr; } }

/* Flags in the language switcher */
.flag { width: 20px; height: 14px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(43, 28, 8, 0.18); }
.langs__cur, .langs__list a { display: inline-flex; align-items: center; gap: 8px; }
.langs__cur svg:not(.flag) { margin-left: -2px; }
.langs__list { min-width: 92px; }
.mobile-menu .langs__list a { gap: 6px; }

/* ---------- Vikey booking engine ---------- */
.booking { margin-top: 44px; padding: clamp(22px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 4px; scroll-margin-top: 110px; }
.booking h2 { text-transform: uppercase; margin: 10px 0 8px; }
.booking .muted { margin: 0 0 22px; }
.booking .vikey-booking-engine-widget { min-height: 380px; }
.booking__alt { margin: 18px 0 0; font-size: 13px; }
.booking__alt a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
