/* ==========================================================================
   Oasi San Paolo
   Palette: calce (limestone white), carrubo (valley green), vasca (pool),
   sanguinello (Lentini blood orange, used only for actions).
   ========================================================================== */

:root {
  --calce: #f5f7f3;
  --calce-2: #e8eee7;
  --carrubo: #173a30;
  --carrubo-2: #0f2a22;
  --vasca: #3bb7ac;
  --vasca-scura: #1f7f76;
  --sanguinello: #cf3b24;
  --sanguinello-hover: #b52f1a;
  --inchiostro: #15211c;
  --salvia: #5c6c64;
  --linea: #d3dbd2;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: clamp(1.6rem, 2.2vw, 2.1rem);
  --fs-title: clamp(2.8rem, 6.4vw, 6rem);
  --fs-statement: clamp(1.85rem, 3.5vw, 3.35rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(5.5rem, 11vw, 10rem);
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*,
*::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; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--calce);
  color: var(--inchiostro);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html.is-loading body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: var(--nav-h); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

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

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 2000;
  padding: .7rem 1rem;
  background: var(--calce);
  color: var(--inchiostro);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

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

/* ---------- Type ---------- */

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--fs-title);
  line-height: .98;
  letter-spacing: -0.02em;
}
.title--light { color: var(--calce); }

.statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-statement);
  line-height: 1.14;
  letter-spacing: -0.012em;
  max-width: 22ch;
  text-wrap: balance;
}

/* SplitText line masks */
.split-line { padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .975rem;
  letter-spacing: .005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--sanguinello); color: #fff; }
.btn--accent:hover { background: var(--sanguinello-hover); }
.btn--ghost { border-color: rgba(21, 33, 28, .3); color: var(--inchiostro); }
.btn--ghost:hover { background: rgba(21, 33, 28, .06); border-color: var(--inchiostro); }
.btn--dark { background: var(--carrubo); color: var(--calce); }
.btn--dark:hover { background: var(--carrubo-2); }
.btn--block { width: 100%; }

.link-btn {
  padding: .4rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-weight: 600;
  font-size: .975rem;
}
.link-btn:hover { color: var(--vasca-scura); }

/* ==========================================================================
   Splash
   ========================================================================== */

.splash { display: none; }

html.js .splash {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: var(--carrubo);
  color: var(--calce);
  /* failsafe if the script never runs */
  animation: splash-failsafe .6s 8s forwards;
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; } }

.splash__inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}
.splash__mark { color: rgba(245, 247, 243, .85); }
.splash__wave { stroke-dasharray: 60; stroke-dashoffset: 60; }
.splash__word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.splash__word .ch { display: inline-block; will-change: transform; }
.splash__place {
  font-size: var(--fs-small);
  letter-spacing: .04em;
  color: rgba(245, 247, 243, .62);
}
.splash__bar {
  width: 168px;
  height: 1px;
  margin-top: .75rem;
  background: rgba(245, 247, 243, .18);
  overflow: hidden;
}
.splash__bar span {
  display: block;
  height: 100%;
  background: var(--vasca);
  transform: scaleX(0);
  transform-origin: left;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  color: var(--inchiostro);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.nav.is-solid {
  background: rgba(245, 247, 243, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  color: var(--inchiostro);
  box-shadow: 0 1px 0 rgba(21, 33, 28, .08);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-weight: 500;
  font-size: .975rem;
  text-decoration: none;
  padding-block: .4rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: none;
}
.nav__toggle span {
  position: absolute;
  left: 13px; right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 28px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 23.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 23.5px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 850;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2.5rem;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  background: var(--carrubo);
  color: var(--calce);
}
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: .35rem; }
.menu nav a {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 10vw, 3.6rem);
  line-height: 1.1;
  text-decoration: none;
}
.menu__cta { align-self: flex-start; }
html.menu-open .nav { color: var(--calce); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #d9d4d0;
  color: var(--inchiostro);
}

.hero__scene {
  position: absolute;
  inset: 0 0 auto 0;
  /* image ratio 2400 / 1952 = 1.2295 */
  height: max(114svh, calc(100vw / 1.2295));
  will-change: transform;
}
.hero__zoom {
  position: absolute;
  inset: 0;
  transform-origin: 50% 40%;
}
.hero__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  user-select: none;
  -webkit-user-drag: none;
}
.hero__layer--fg { z-index: 3; pointer-events: none; }

/* The word hangs on the striped wall, its lower part tucked behind the headboard */
.hero__word {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: var(--word-top, 20%);
  display: flex;
  justify-content: center;
  pointer-events: none;
  will-change: transform, opacity;
}
.hero__word-inner {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: var(--word-size, 31vw);
  line-height: .8;
  letter-spacing: -0.035em;
  color: var(--carrubo);
  font-optical-sizing: auto;
  will-change: transform;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(245, 247, 243, .6) 0%, rgba(245, 247, 243, 0) 13%),
    radial-gradient(80% 60% at 0% 100%, rgba(245, 247, 243, .88) 0%, rgba(245, 247, 243, .5) 45%, rgba(245, 247, 243, 0) 75%),
    linear-gradient(to top, rgba(245, 247, 243, .55) 0%, rgba(245, 247, 243, 0) 28%);
}

.hero__content {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--gutter) clamp(2rem, 5vh, 3.5rem);
}
.hero__intro { max-width: 34rem; }
.hero__place {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.1;
  color: var(--carrubo);
}
.hero__lede {
  margin-top: .8rem;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.55;
  color: rgba(21, 33, 28, .8);
  max-width: 30rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.6rem;
}

.hero__score {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  padding-bottom: .3rem;
  color: var(--carrubo);
}
.hero__score-num {
  font-family: var(--serif);
  font-weight: 600;
  font-variation-settings: "opsz" 20;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
}
.hero__score-text {
  display: grid;
  font-size: var(--fs-small);
  line-height: 1.35;
  color: rgba(21, 33, 28, .75);
}
.hero__score-text strong { color: var(--inchiostro); font-size: 1rem; font-weight: 600; }

.hero__cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: clamp(2.5rem, 7vh, 4.5rem);
  background: rgba(21, 33, 28, .18);
  overflow: hidden;
}
.hero__cue span {
  position: absolute;
  inset: 0;
  background: var(--carrubo);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ==========================================================================
   Intro
   ========================================================================== */

.intro { padding-block: var(--section) calc(var(--section) * .8); }
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.intro__body {
  max-width: 36rem;
  margin-top: 1.6rem;
  color: var(--salvia);
  font-size: var(--fs-lead);
  line-height: 1.6;
}
.intro__body + .intro__body { margin-top: 1rem; }

.intro__media { position: relative; padding-bottom: 12%; }

.frame {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--calce-2);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--tall { aspect-ratio: 4 / 5; }
.frame--small {
  position: absolute;
  left: -22%;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  outline: 10px solid var(--calce);
}

[data-parallax] { will-change: transform; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}
.facts__item {
  padding-top: 1.2rem;
  border-top: 1px solid var(--linea);
}
.facts dt { font-size: var(--fs-small); color: var(--salvia); }
.facts dd {
  margin-top: .3rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
}

/* ==========================================================================
   Rooms
   ========================================================================== */

.rooms {
  padding-block: calc(var(--section) * .8) var(--section);
  background: var(--calce-2);
}
.rooms__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.rooms__sub { max-width: 30rem; color: var(--salvia); font-size: var(--fs-lead); }

.room {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.room + .room { margin-top: clamp(4.5rem, 9vw, 8rem); }
.room--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.room--flip .room__gallery { order: 2; }

.slider { position: relative; }
.slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 3px;
  overscroll-behavior-x: contain;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
  background: var(--linea);
}
.slider__ui {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.slider__btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(21, 33, 28, .2);
  border-radius: 50%;
  background: transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.slider__btn:hover { background: var(--carrubo); border-color: var(--carrubo); color: var(--calce); }
.slider__btn svg, .lightbox svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slider__count { font-variant-numeric: tabular-nums; font-size: var(--fs-small); color: var(--salvia); min-width: 3.5rem; text-align: center; }

.room__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.room__beds { margin-top: .9rem; font-weight: 600; }
.room__desc { margin-top: .9rem; color: var(--salvia); max-width: 30rem; }
.room__list {
  display: grid;
  gap: .55rem;
  margin: 1.8rem 0 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--linea);
}
.room__list li {
  position: relative;
  padding-left: 1.4rem;
}
.room__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  border: 1.5px solid var(--vasca-scura);
}

/* ==========================================================================
   Pool (pinned reveal)
   ========================================================================== */

.pool { position: relative; background: var(--calce-2); }
.pool__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}
.pool__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: clip-path;
}
.pool__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 72%;
  will-change: transform;
}
.pool__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 34, 27, .82) 0%, rgba(12, 34, 27, .25) 45%, rgba(12, 34, 27, 0) 70%);
  pointer-events: none;
}
.pool__content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title inset" "text inset";
  align-items: end;
  gap: 1.2rem 3rem;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  color: var(--calce);
}
.pool__content .title { grid-area: title; }
.pool__text {
  grid-area: text;
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: rgba(245, 247, 243, .88);
}
.pool__inset {
  grid-area: inset;
  width: clamp(200px, 24vw, 360px);
  aspect-ratio: 13 / 10;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
}
.pool__inset img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Amenities
   ========================================================================== */

.amenities { padding-block: var(--section); }
.amenities__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  gap: clamp(3rem, 7vw, 7rem);
}
.amenities__head { align-self: start; position: sticky; top: calc(var(--nav-h) + 3rem); }
.amenities__head p { margin-top: 1.5rem; max-width: 22rem; color: var(--salvia); }
.amenities__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 3rem;
}
.amenities__list li {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--linea);
}
.amenities__list svg {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  fill: none;
  stroke: var(--vasca-scura);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--vasca-scura);
}
.amenities__list h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.amenities__list p { margin-top: .2rem; font-size: .95rem; color: var(--salvia); }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  padding-block: calc(var(--section) * .6) var(--section);
  overflow: hidden;
}
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.gallery__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  padding-inline: var(--gutter);
  max-width: 1600px;
  margin-inline: auto;
}
.gallery__col {
  display: grid;
  gap: clamp(.75rem, 1.4vw, 1.25rem);
  align-content: start;
  will-change: transform;
}
.gallery__col:nth-child(2) { margin-top: 12vh; }
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--calce-2);
  aspect-ratio: 4 / 3;
}
.shot--tall { aspect-ratio: 3 / 4; }
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.shot:hover img { transform: scale(1.045); }

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews { padding-bottom: var(--section); background: var(--calce); }
.reviews__band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82vh;
  overflow: hidden;
  color: #fff;
}
.reviews__band img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.reviews__band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 34, .5);
}
.reviews__quote { position: relative; z-index: 1; }
.reviews__quote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  /* a smaller optical size keeps commas and hairlines visible at display sizes */
  font-variation-settings: "opsz" 20;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.reviews__quote footer { margin-top: 1.6rem; color: rgba(255, 255, 255, .8); }

.reviews__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: end;
  padding-top: var(--section);
}
.reviews__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(7rem, 15vw, 13rem);
  line-height: .8;
  letter-spacing: -0.04em;
  color: var(--carrubo);
  font-variant-numeric: lining-nums;
  font-variation-settings: "opsz" 28;
}
.reviews__label {
  margin-top: 2.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.1;
}
.reviews__note { margin-top: .4rem; color: var(--salvia); }

.bars { display: grid; gap: 1.15rem; }
.bars li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .45rem 1rem;
}
.bars span { font-weight: 500; }
.bars b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bars i {
  grid-column: 1 / -1;
  position: relative;
  height: 3px;
  background: var(--linea);
  border-radius: 3px;
  overflow: hidden;
}
.bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--carrubo);
  transform: scaleX(var(--v));
  transform-origin: left;
  transition: transform 1.4s var(--ease);
}
html.js .bars:not(.is-in) i::after { transform: scaleX(0); }
.bars li:nth-child(2) i::after { transition-delay: .08s; }
.bars li:nth-child(3) i::after { transition-delay: .16s; }
.bars li:nth-child(4) i::after { transition-delay: .24s; }
.bars li:nth-child(5) i::after { transition-delay: .32s; }
.bars li:nth-child(6) i::after { transition-delay: .4s; }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 7rem);
}
.quote {
  padding-top: 1.4rem;
  border-top: 1px solid var(--linea);
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  line-height: 1.45;
}
.quote figcaption { margin-top: 1rem; font-size: var(--fs-small); color: var(--salvia); }

/* ==========================================================================
   Location
   ========================================================================== */

.where { padding-block: var(--section); background: var(--calce-2); }
.where__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.where__address {
  margin-top: 2rem;
  font-style: normal;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  line-height: 1.3;
}
.where__lede { margin-top: 1.2rem; max-width: 32rem; color: var(--salvia); }
.distances { margin-top: 2.2rem; }
.distances li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid var(--linea);
}
.distances li:last-child { border-bottom: 1px solid var(--linea); }
.distances b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.where__actions { margin-top: 2.2rem; }
.where__map {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 3px;
  background: var(--linea);
}
.where__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(.75) contrast(1.04);
}

/* ==========================================================================
   Info
   ========================================================================== */

.info { padding-block: var(--section); }
.info__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.info__grid > div { padding-top: 1.2rem; border-top: 1px solid var(--linea); }
.info__grid dt { font-weight: 600; }
.info__grid dd { margin-top: .4rem; color: var(--salvia); font-size: .975rem; }

/* ==========================================================================
   Booking
   ========================================================================== */

.book {
  position: relative;
  padding-block: var(--section);
  background: var(--carrubo);
  color: var(--calce);
  overflow: hidden;
}
.book__bg {
  position: absolute;
  inset: 0;
  opacity: .22;
  mix-blend-mode: luminosity;
}
.book__bg img {
  width: 100%;
  height: 120%;
  margin-top: -10%;
  object-fit: cover;
}
.book__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}
.book__text > p {
  margin-top: 1.6rem;
  max-width: 30rem;
  font-size: var(--fs-lead);
  color: rgba(245, 247, 243, .85);
}
.book__contacts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.book__contacts[hidden] { display: none; }
.book__contacts .btn { border-color: rgba(245, 247, 243, .4); color: var(--calce); }
.book__contacts .btn:hover { background: rgba(245, 247, 243, .1); }

.book__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: 18px;
  background: var(--calce);
  color: var(--inchiostro);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.field { display: grid; gap: .4rem; }
.field label, .field__label { font-size: var(--fs-small); font-weight: 600; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 .9rem;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: #fff;
  color: var(--inchiostro);
  font: inherit;
  font-size: 1rem;
}
.field input:focus-visible { outline: 2px solid var(--vasca); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--sanguinello); }

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 .35rem;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: #fff;
}
.stepper button {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
}
.stepper button:hover:not(:disabled) { background: var(--calce-2); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { font-weight: 600; font-variant-numeric: tabular-nums; }

.book__error {
  grid-column: 1 / -1;
  min-height: 0;
  color: var(--sanguinello-hover);
  font-size: .925rem;
  font-weight: 500;
}
.book__error:empty { display: none; }
.book__form .btn--block { grid-column: 1 / -1; margin-top: .4rem; min-height: 54px; }
.book__fine { grid-column: 1 / -1; text-align: center; font-size: .85rem; color: var(--salvia); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding-block: 3.5rem calc(3.5rem + env(safe-area-inset-bottom));
  background: var(--carrubo-2);
  color: rgba(245, 247, 243, .72);
  font-size: .95rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer__brand { font-family: var(--serif); font-size: 1.6rem; color: var(--calce); margin-bottom: .4rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--calce); }
.footer__legal { text-align: right; display: grid; gap: .2rem; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Floating CTA (mobile)
   ========================================================================== */

.float-cta {
  position: fixed;
  z-index: 800;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: none;
  transform: translate(-50%, 160%);
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45);
  transition: transform .5s var(--ease), background-color .25s var(--ease);
}
.float-cta.is-visible { transform: translate(-50%, 0); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(10, 26, 21, .95);
  color: var(--calce);
}
.lightbox[hidden] { display: none; }
.lightbox__figure {
  display: grid;
  justify-items: center;
  gap: .9rem;
  min-width: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100svh - 8rem);
  object-fit: contain;
  border-radius: 2px;
}
.lightbox figcaption {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  width: min(100%, 60rem);
  font-size: var(--fs-small);
  color: rgba(245, 247, 243, .75);
}
.lightbox__count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox__nav, .lightbox__close {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid rgba(245, 247, 243, .25);
  border-radius: 50%;
  background: transparent;
  color: var(--calce);
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(245, 247, 243, .12); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; z-index: 1; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .nav__links { gap: 1.4rem; }
  .info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }
  .nav { gap: 1rem; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__brand { font-size: 1.15rem; }

  .hero__content { flex-direction: column; align-items: flex-start; gap: 1.6rem; }
  .hero__score { order: -1; }

  .intro__grid,
  .rooms__head,
  .room,
  .amenities__grid,
  .reviews__grid,
  .where__grid,
  .book__grid { grid-template-columns: minmax(0, 1fr); }

  .intro__media { width: min(100%, 520px); margin-left: auto; padding-bottom: 18%; }
  .frame--small { left: -8%; width: 46%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
  .room--flip .room__gallery { order: 0; }

  .pool__content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "text"; }
  .pool__inset { display: none; }

  .amenities__list { grid-template-columns: minmax(0, 1fr); }
  .gallery__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__col { display: contents; }
  .gallery__col:nth-child(2) { margin-top: 0; }
  .shot, .shot--tall { aspect-ratio: 1; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .where__map { aspect-ratio: 1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__legal { text-align: left; }
  .float-cta { display: inline-flex; }
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding: 4.5rem .75rem 1rem; }
  .lightbox__figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox__nav--prev { grid-row: 2; justify-self: end; }
  .lightbox__nav--next { grid-row: 2; justify-self: start; }
}

@media (max-width: 600px) {
  .nav__cta { display: none; }
  .hero__score { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .info__grid { grid-template-columns: minmax(0, 1fr); }
  .book__form { grid-template-columns: minmax(0, 1fr); }
  .gallery__head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__cue { display: none; }
}
