/* =====================================================================
   Da Vinci Apartment Fiumicino – stile del sito
   Sobrio ed elegante: serif leggero per i titoli, molto spazio, foto con
   velo scuro, animazioni lente. Colori e font sono qui sotto, in :root.
   ===================================================================== */

/* ---------- Font (sul nostro server, licenza OFL) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-300.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/cormorant-garamond-300-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/cormorant-garamond-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/jost.woff2') format('woff2'); }

/* ---------- Colori, font, misure ---------- */
:root {
  color-scheme: light;

  --paper: #FBF9F6;        /* fondo delle pagine */
  --mist: #F2EEE8;         /* fondo alternato */
  --ink: #1A2E3A;          /* testo (colore del marchio) */
  --ink-soft: #4B5B65;     /* testo secondario */
  --teal: #1E4E5F;         /* colore del marchio */
  --teal-deep: #12313C;    /* sezioni scure, piè di pagina, veli sulle foto */
  --taupe: #9F8E80;        /* colore del marchio: filetti e dettagli */
  --taupe-text: #76675B;   /* taupe più scuro, leggibile per le etichette */
  --sand: #D9CFC6;         /* etichette su fondo scuro */
  --line: rgba(26, 46, 58, .14);
  --line-light: rgba(255, 255, 255, .22);
  --veil: 12, 33, 41;      /* colore del velo sulle foto (r, g, b) */

  --f-serif: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --f-sans: 'Jost', 'Futura', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1320px;
  --section: clamp(88px, 12vw, 168px);
  --header-h: 72px;
}
@media (min-width: 1024px) {
  :root { --header-h: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
main { display: block; }
main:focus { outline: none; }
body:not(.has-hero) main { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .4s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Struttura ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--teal-deep); color: #fff; }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.split { display: grid; gap: clamp(36px, 5vw, 56px); }
.split__head { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; }
}

/* ---------- Testi ---------- */
.label {
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--taupe-text);
}
.section--dark .label { color: var(--sand); }

.h1, .h2, .h3 {
  font-family: var(--f-serif);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h1 em, .h2 em, .h3 em { font-style: italic; }
.h1 { font-size: clamp(2.9rem, 1.9rem + 4.4vw, 6rem); }
.h2 { font-size: clamp(2.3rem, 1.75rem + 2.5vw, 4.1rem); }
.h3 { font-size: clamp(1.75rem, 1.45rem + 1.2vw, 2.4rem); font-weight: 400; line-height: 1.12; }

.lead {
  max-width: 36em;
  font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------- Pulsanti e link ---------- */
.btn {
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  --btn-fg-hover: var(--paper);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid var(--btn-fg);
  border-radius: 0;
  background: transparent;
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .7s var(--ease), border-color .7s var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); border-color: var(--btn-fill); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn svg { flex: none; }
.btn--solid {
  --btn-fill: var(--teal-deep);
  --btn-fg-hover: #fff;
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.btn--light { --btn-fg: #fff; --btn-fill: #fff; --btn-fg-hover: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 22px; font-size: .7rem; }

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-block: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}
.link-line::after {
  content: '';
  width: 40px;
  height: 1px;
  background: currentColor;
  transition: width .9s var(--ease);
}
.link-line:hover::after, .link-line:focus-visible::after { width: 76px; }

/* ---------- Logo ---------- */
.brand {
  --logo-h: 30px;
  position: relative;
  display: block;
  flex: none;
  width: calc(var(--logo-h) * 600 / 122);
  height: var(--logo-h);
}
.brand__logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity .9s var(--ease);
}
/* logo bianco sulle foto: ombra morbida e leggera, un po' più bassa del logo, così "apartment"
   si legge anche sulle foto chiare senza una macchia scura intorno */
.brand { isolation: isolate; }
.brand::before {
  content: "";
  position: absolute;
  inset: -60% -14% -120%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 46%, rgba(var(--veil), .34), rgba(var(--veil), .14) 48%, rgba(var(--veil), 0) 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
}
.has-hero .site-header:not(.is-scrolled) .brand::before { opacity: 1; }
.brand__logo--chiaro { opacity: 0; filter: drop-shadow(0 2px 4px rgba(var(--veil), .5)); }
.has-hero .site-header:not(.is-scrolled) .brand__logo--chiaro,
.menu-open .site-header .brand__logo--chiaro { opacity: 1; }
.has-hero .site-header:not(.is-scrolled) .brand__logo--scuro,
.menu-open .site-header .brand__logo--scuro { opacity: 0; }
@media (max-width: 379px) {
  .brand { --logo-h: 27px; }
}
@media (min-width: 480px) {
  .brand { --logo-h: 34px; }
}
@media (min-width: 768px) {
  .brand { --logo-h: 38px; }
}
@media (min-width: 1024px) {
  .brand { --logo-h: 46px; }
}

/* Simbolo (segnaposto con gli aerei) in filigrana: grande, quasi trasparente, si muove piano */
.filigrana {
  position: absolute;
  z-index: 0;
  height: auto;
  pointer-events: none;
  user-select: none;
  animation: deriva 32s ease-in-out infinite alternate;
}
/* benvenuto: in alto a destra sul telefono, a destra e a metà altezza dal tablet in su, sempre intero */
.filigrana--intro { width: min(380px, 74vw); right: 2vw; top: clamp(20px, 5vw, 48px); opacity: .07; }
@media (min-width: 768px) {
  .filigrana--intro { width: min(560px, 42vw); right: 4vw; top: 50%; translate: 0 -55%; }
}
.filigrana--dove { width: min(820px, 96vw); right: -14%; top: 6%; opacity: .05; animation-duration: 38s; }
.filigrana--menu { width: min(640px, 120vw); right: -22%; bottom: 4%; opacity: .06; }
.intro--filigrana, .where { position: relative; overflow: hidden; }
.intro--filigrana > .wrap, .where > .wrap, .menu__inner { position: relative; z-index: 1; }

/* ---------- Intestazione ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  background: rgba(251, 249, 246, .8);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: background-color .9s var(--ease), color .9s var(--ease), border-color .9s var(--ease);
}
.has-hero .site-header:not(.is-scrolled),
.menu-open .site-header {
  background: transparent;
  color: #fff;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 44px);
  height: var(--header-h);
}
.site-header .brand { margin-right: auto; }
.site-header .btn { --btn-fg: var(--ink); --btn-fill: var(--ink); --btn-fg-hover: var(--paper); }
.has-hero .site-header:not(.is-scrolled) .btn,
.menu-open .site-header .btn { --btn-fg: #fff; --btn-fill: #fff; --btn-fg-hover: var(--ink); }
.header-book { transition: color .7s var(--ease), border-color .9s var(--ease), opacity .6s var(--ease); }
.menu-open .header-book { opacity: 0; pointer-events: none; }
@media (max-width: 379px) {
  .header-book { padding: 0 14px; letter-spacing: .16em; }
}

/* Selettore della lingua: bandierina + codice accanto a Prenota (dai 480 px), tendina al clic */
.lang { position: relative; display: none; }
.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.bandiera { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(26, 46, 58, .12); }
.has-hero .site-header:not(.is-scrolled) .bandiera, .menu .bandiera { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.lang__chev { width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(225deg); margin-top: 3px; }
.lang__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 172px;
  padding: 8px 0;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(12, 33, 41, .35);
  z-index: 50;
}
.lang__list[hidden] { display: none; }
.lang__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
}
.lang__opt:hover, .lang__opt:focus-visible { color: var(--ink); background: var(--mist); }
.lang__opt[aria-current="true"] { color: var(--ink); font-weight: 500; }
.menu-open .lang { opacity: 0; pointer-events: none; }
@media (min-width: 480px) {
  .lang { display: block; }
}
/* nel menu a tutto schermo (telefono e tablet): bandierine in fila */
.lang-row { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; }
.lang-row a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: rgba(255, 255, 255, .85); }
.lang-row a:hover, .lang-row a[aria-current="true"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.nav { display: none; }
.nav__link {
  position: relative;
  padding-block: 10px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .8s var(--ease);
}
.nav__link:hover::after, .nav__link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 0 0 0 6px;
  border: 0;
  background: none;
  color: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn__label { display: none; }
.menu-btn__lines { position: relative; width: 28px; height: 9px; }
.menu-btn__lines::before, .menu-btn__lines::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform .7s var(--ease), top .7s var(--ease);
}
.menu-btn__lines::before { top: 0; }
.menu-btn__lines::after { top: 8px; }
.menu-open .menu-btn__lines::before { top: 4px; transform: rotate(35deg); }
.menu-open .menu-btn__lines::after { top: 4px; transform: rotate(-35deg); }
html:not(.js) .menu-btn { display: none; }
@media (min-width: 420px) {
  .menu-btn__label { display: inline; }
}
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: clamp(28px, 3vw, 48px); }
  .menu-btn { display: none; }
}

/* ---------- Menu a tutto schermo ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--teal-deep);
  color: #fff;
  visibility: hidden;
  /* si apre come un cerchio che parte dal pulsante Menu, in alto a destra */
  clip-path: circle(0 at calc(100% - var(--gutter) - 14px) calc(env(safe-area-inset-top, 0px) + var(--header-h) / 2));
  transition: clip-path 1.1s var(--ease-in-out), visibility 0s linear 1.1s;
}
.menu-open .menu {
  visibility: visible;
  clip-path: circle(160% at calc(100% - var(--gutter) - 14px) calc(env(safe-area-inset-top, 0px) + var(--header-h) / 2));
  transition: clip-path 1.1s var(--ease-in-out);
}
.menu-open { overflow: hidden; }
.menu__photo {
  display: none;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: min(34vw, 460px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  opacity: 0;
  transform: translateY(-50%) scale(1.06);
  transition: opacity 1.2s var(--ease) .5s, transform 1.8s var(--ease) .5s;
}
.menu-open .menu__photo { opacity: .85; transform: translateY(-50%); }
.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  min-height: 100%;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(24px, 6vh, 64px));
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}
.menu__list li { overflow: hidden; }
.menu__link {
  display: inline-flex;
  align-items: baseline;
  gap: .55em;
  padding-block: 2px;
  font-family: var(--f-serif);
  font-size: clamp(2.5rem, 1.7rem + 5vw, 4.6rem);
  font-weight: 300;
  line-height: 1.12;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease), opacity .6s var(--ease);
  transition-delay: calc(var(--i, 0) * .08s + .35s);
}
.menu__num { font-family: var(--f-sans); font-size: .62rem; font-weight: 500; letter-spacing: .3em; color: var(--sand); }
.menu-open .menu__link { transform: none; }
.menu__link[aria-current="page"] { font-style: italic; }
.menu__list:hover .menu__link:not(:hover) { opacity: .5; }
.menu__foot {
  display: grid;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-light);
  opacity: 0;
  transition: opacity 1.2s var(--ease) .1s;
}
.menu-open .menu__foot { opacity: 1; transition-delay: .5s; }
.menu .label { color: var(--sand); margin-bottom: 12px; }
.menu__rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.menu__rooms a, .menu__contacts a { text-decoration: none; color: rgba(255, 255, 255, .85); overflow-wrap: anywhere; }
.menu__rooms a:hover, .menu__contacts a:hover, .menu__rooms a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 700px) {
  .menu__foot { grid-template-columns: 2fr 1fr; }
}
@media (min-width: 900px) {
  .menu__photo { display: block; }
  .menu__inner { padding-right: calc(min(34vw, 460px) + 2 * var(--gutter)); }
  .menu__link { font-size: clamp(2.5rem, 1.2rem + 3.4vw, 4rem); } /* accanto alla foto c'è meno spazio */
}

/* ---------- Apertura della home ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
}
.hero__media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; } /* più alta dello schermo: scorre più piano (parallasse) */
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.8s var(--ease-in-out);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active, .hero__slide.is-leaving { animation: kenburns 16s linear both; }
.hero__veil, .page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--veil), .7) 0%, rgba(var(--veil), .36) 13%, rgba(var(--veil), 0) 30%),
    linear-gradient(0deg, rgba(var(--veil), .82) 0%, rgba(var(--veil), .34) 46%, rgba(var(--veil), .08) 100%);
}
.hero__content {
  display: grid;
  justify-items: start;
  gap: clamp(18px, 2.2vw, 28px);
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: calc(clamp(96px, 13vh, 144px) + env(safe-area-inset-bottom, 0px));
  will-change: transform, opacity;
}
.hero__kicker { color: var(--sand); }
.hero__title {
  font-family: var(--f-serif);
  font-size: clamp(3.5rem, 1.6rem + 7.4vw, 9.2rem);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.012em;
}
.hero__title em { display: block; font-style: italic; }
.hero__text {
  max-width: 30em;
  font-family: var(--f-serif);
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.7rem);
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 8px; }
.hero__counter {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  font-family: var(--f-serif);
  font-size: 1rem;
  letter-spacing: .2em;
  color: var(--sand);
  font-variant-numeric: tabular-nums lining-nums;
}
.hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 56px);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero__cue i {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(var(--sand), transparent);
  transform-origin: top;
  animation: drop 2.6s var(--ease-in-out) infinite;
}
/* Entrata (dopo il sipario): le righe salgono, le parole dello slogan si mettono a fuoco, poi i pulsanti */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > * { display: block; transform: translateY(112%); transition: transform 1.6s var(--ease); }
.hero__title .line:nth-child(2) > * { transition-delay: .12s; }
.hero__text .w { display: inline-block; }
.js .hero__text .w {
  opacity: 0;
  filter: blur(6px);
  transform: translateY(6px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(.7s + var(--i, 0) * .09s);
}
.js .hero__actions { opacity: 0; transform: translateY(18px); transition: opacity 1.3s var(--ease) 1.1s, transform 1.3s var(--ease) 1.1s; }
.js .hero__counter, .js .hero__cue { opacity: 0; transition: opacity 1.2s var(--ease) 1.6s; }
.hero.is-ready .line > *, .hero.is-ready .hero__text .w, .hero.is-ready .hero__actions { opacity: 1; transform: none; filter: none; }
.hero.is-ready .hero__counter, .hero.is-ready .hero__cue { opacity: 1; }
html:not(.js) .line > * { transform: none; }
/* rete di sicurezza: se main.js non parte, dopo 2,5 s l'apertura si vede comunque */
.js:not(.rv-ready) .hero .line > *, .js:not(.rv-ready) .hero__actions, .js:not(.rv-ready) .hero__counter, .js:not(.rv-ready) .hero__cue { animation: rv-fallback 0s 2.5s forwards; }
@media (min-width: 900px) {
  .hero__cue { display: flex; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 520px; }
  .hero__title { font-size: 3.4rem; }
  .hero__counter { display: none; }
}

/* ---------- Scritta che scorre (sotto l'apertura) ---------- */
.ticker {
  overflow: hidden;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--paper);
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 3vw, 52px);
  padding-right: clamp(28px, 3vw, 52px);
  will-change: transform;
}
.js .ticker__track.is-on { animation: marquee 56s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.5rem);
  color: var(--ink-soft);
}
.ticker__mark { width: 22px; height: auto; opacity: .55; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Apertura delle altre pagine con foto ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 76vh, 820px);
  min-height: clamp(440px, 76svh, 820px);
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
}
.page-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 7s var(--ease) both;
}
.page-hero__content {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(48px, 9vh, 104px);
}
.page-hero__content > * { animation: rise 1.8s var(--ease) both; }
.page-hero__content > :nth-child(1) { animation-delay: .3s; }
.page-hero__content > :nth-child(2) { animation-delay: .5s; }
.page-hero__content > :nth-child(3) { animation-delay: .75s; }
.page-hero .label { color: rgba(255, 255, 255, .82); }
.page-hero__sub { font-size: clamp(1rem, .96rem + .25vw, 1.15rem); font-weight: 300; color: rgba(255, 255, 255, .88); }
.page-hero__back { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.page-hero__back::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width .8s var(--ease);
}
.page-hero__back:hover::before { width: 48px; }

/* ---------- Apertura delle pagine senza foto ---------- */
.page-head { padding-top: clamp(56px, 10vw, 136px); padding-bottom: clamp(48px, 7vw, 96px); }
.page-head__inner { display: grid; justify-items: start; gap: clamp(20px, 2.4vw, 28px); }
.page-head__inner .h1 { max-width: 15em; }

/* ---------- Benvenuto / presentazione ---------- */
.intro__grid { display: grid; gap: 20px; } /* pagina Appartamento: etichetta a sinistra, testo a destra */
@media (min-width: 900px) {
  .intro__grid { grid-template-columns: minmax(150px, 3fr) minmax(0, 9fr); gap: 40px; }
  .intro__kicker { padding-top: .95em; }
}
/* home: etichetta piccola sopra la parola grande, tutto allineato a sinistra */
.intro__head { display: grid; justify-items: start; gap: clamp(6px, 1vw, 12px); }
.intro__body { display: grid; justify-items: start; gap: clamp(24px, 3vw, 36px); max-width: 860px; }
.intro__word { font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); }
/* la parola grande cambia da sola: Atterri. → Riposi. → Riparti. */
.flip { display: inline-grid; vertical-align: top; height: 1.2em; overflow: hidden; perspective: 900px; }
.flip__w {
  grid-area: 1 / 1;
  display: block;
  padding-bottom: .14em;
  transform-origin: 50% 100%;
  transform: translateY(100%) rotateX(-70deg);
  opacity: 0;
  transition: transform 1.2s var(--ease), opacity .9s var(--ease);
}
.flip__w.is-on { transform: none; opacity: 1; }
.flip__w.is-out { transform: translateY(-100%) rotateX(70deg); opacity: 0; }
html:not(.js) .flip { display: inline; height: auto; }
html:not(.js) .flip__w { display: inline; margin-right: .3em; opacity: 1; transform: none; }
.intro__lead {
  max-width: 26em;
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.3rem);
  font-weight: 300;
  line-height: 1.3;
  text-wrap: balance;
}
.intro__lead em { font-style: italic; }

/* ---------- Ambienti (home): elenco + foto che cambia ---------- */
.rooms__head { display: grid; gap: 20px 56px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.rooms__head-text { display: grid; gap: 16px; }
.rooms__intro { max-width: 34em; }
.rooms__inner { display: grid; gap: 24px; }
.rooms__stage { display: none; }
.rooms__item {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding-block: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
  transition: opacity 1s var(--ease);
}
.rooms__fig { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; background: var(--sand); }
.rooms__fig img { width: 100%; height: 100%; object-fit: cover; }
.rooms__n { font-family: var(--f-serif); font-size: .95rem; letter-spacing: .16em; font-variant-numeric: lining-nums; }
.rooms__name {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.9rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.01em;
}
.rooms__name a { text-decoration: none; transition: color .8s var(--ease); }
.rooms__name a:hover, .rooms__name a:focus-visible { color: var(--teal); font-style: italic; }
.rooms__txt { max-width: 36em; color: var(--ink-soft); }
.rooms__more { margin-top: 8px; }
.rooms__cap, .rooms__meta, .rooms__tip { display: none; }
@media (min-width: 900px) {
  .rooms__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rooms__intro { justify-self: end; }
}
@media (min-width: 1024px) {
  /* foto fissa a sinistra che cambia mentre a destra scorrono le stanze */
  .rooms__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(48px, 7vw, 128px); align-items: start; }
  .rooms__stage {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
    display: block;
    height: calc(100vh - var(--header-h) - 48px);
    height: calc(100svh - var(--header-h) - 48px);
    max-height: 860px;
    overflow: hidden;
    isolation: isolate;
    background: var(--teal-deep);
    color: #fff;
    text-decoration: none;
  }
  .rooms__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.07);
    transition: opacity 1.4s var(--ease-in-out), transform 2.6s var(--ease);
  }
  .rooms__img.is-active { opacity: 1; transform: none; }
  .rooms__stage::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--veil), .3), transparent 30%, transparent 65%, rgba(var(--veil), .5));
  }
  .rooms__cap {
    display: block;
    position: absolute;
    z-index: 2;
    left: 24px;
    top: 22px;
    font-size: .62rem;
    font-weight: 500;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--sand);
  }
  .rooms__meta {
    display: flex;
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
    align-items: center;
    gap: 22px;
    font-family: var(--f-serif);
    font-size: 1.05rem;
    letter-spacing: .12em;
    font-variant-numeric: tabular-nums lining-nums;
  }
  .rooms__count i { font-style: italic; opacity: .65; }
  .rooms__bar { position: relative; flex: 1; height: 1px; background: rgba(255, 255, 255, .28); }
  .rooms__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 16.7%); background: #fff; transition: width 1s var(--ease); }
  .rooms__tip {
    display: block;
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    padding: .55em 1.1em;
    border-radius: 999px;
    background: rgba(251, 249, 246, .9);
    color: var(--ink);
    font-family: var(--f-serif);
    font-style: italic;
    font-size: 1.05rem;
    white-space: nowrap;
    opacity: 0;
    transform: translate(var(--tx, -200px), var(--ty, -200px)) translate(16px, 18px);
    transition: opacity .5s var(--ease);
    pointer-events: none;
  }
  .rooms__stage:hover .rooms__tip { opacity: 1; }
  .rooms__fig { display: none; }
  .rooms__flow { padding-top: 6vh; }
  .rooms__item { min-height: 60vh; align-content: center; opacity: .28; }
  .rooms__item.is-active { opacity: 1; }
  .rooms__item:first-child { border-top: 0; }
}

/* ---------- Numeri (home): salgono quando si vedono ---------- */
.numbers__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.number {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 32px 0 32px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.number:nth-child(odd) { padding-left: 0; border-left: 0; }
.number__n {
  font-family: var(--f-serif);
  font-size: clamp(3.4rem, 2.4rem + 4.4vw, 6.6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--teal);
  font-variant-numeric: tabular-nums lining-nums;
}
.number__n small { margin-left: .12em; font-size: .38em; font-style: italic; letter-spacing: 0; color: var(--taupe-text); }
@media (min-width: 1024px) {
  .numbers__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .number, .number:nth-child(odd) { padding: 40px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .number:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- Dove siamo (sezione scura) ---------- */
.where__grid { display: grid; gap: clamp(48px, 7vw, 96px); }
.where__head { display: grid; gap: 16px; }
/* la rotta: una curva che si disegna, un aereo che la percorre; i testi sono HTML, così restano leggibili sul telefono */
.route { display: grid; gap: 8px; margin-block: clamp(40px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.route__time {
  justify-self: center;
  font-family: var(--f-serif);
  font-size: clamp(1.15rem, 1.05rem + .5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
}
.route__svg { display: block; width: 100%; height: auto; overflow: visible; }
.route__ghost { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.route__path { fill: none; stroke: var(--sand); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.route__dot { fill: var(--sand); }
.route__plane { fill: #fff; opacity: 0; transition: opacity .4s var(--ease); }
.js .route.is-in .route__path { animation: draw 2.6s .3s var(--ease-in-out) forwards; }
html:not(.js) .route__path { stroke-dashoffset: 0; }
.route__ends { display: flex; justify-content: space-between; gap: 24px; }
.route__end { display: grid; gap: 4px; justify-items: start; }
.route__end--b { justify-items: end; text-align: right; }
.route__code { font-family: var(--f-serif); font-size: clamp(2rem, 1.6rem + 2vw, 3.6rem); font-weight: 300; line-height: 1; }
.route__place {
  max-width: 14em;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sand);
}
.where__list { display: grid; border-top: 1px solid var(--line-light); }
.where__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line-light);
}
.where__row dt { font-family: var(--f-serif); font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); }
.where__row dd { font-size: .88rem; color: var(--sand); text-align: right; }
.where__maps { margin-top: 32px; }
/* "carta d'imbarco" con i dati utili */
.pass {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 460px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .04);
}
.pass__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-light); }
.pass__head img { width: 30px; height: auto; opacity: .9; }
.pass__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.pass__grid div { display: grid; gap: 4px; }
.pass__grid dt { font-size: .6rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--sand); opacity: .85; }
.pass__grid dd { font-family: var(--f-serif); font-size: 1.3rem; line-height: 1.15; font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.pass__foot { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-top: 18px; border-top: 1px solid var(--line-light); font-size: .82rem; color: var(--sand); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (min-width: 700px) {
  .where__list { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); }
}
@media (min-width: 1024px) {
  .where__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(64px, 8vw, 128px); align-items: center; }
  .pass { justify-self: end; width: 100%; }
}

/* ---------- Recensioni ---------- */
.reviews__inner { display: grid; justify-items: center; gap: clamp(24px, 3.5vw, 40px); text-align: center; }
.reviews__mark {
  height: .5em;
  font-family: var(--f-serif);
  font-size: clamp(5rem, 4rem + 4vw, 8rem);
  line-height: .55;
  color: var(--taupe);
  opacity: .55;
}
.reviews__stage { display: grid; width: 100%; max-width: 1000px; touch-action: pan-y; }
.quote {
  grid-area: 1 / 1;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease), transform 1.6s var(--ease), visibility 0s linear 1.6s;
}
.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 1.6s var(--ease) .4s, transform 1.8s var(--ease) .4s, visibility 0s;
}
.quote blockquote p {
  font-family: var(--f-serif);
  font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3.2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.22;
  text-wrap: balance;
}
.quote figcaption {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe-text);
}
/* la linea che segna il tempo prima della recensione successiva */
.reviews__bar { position: relative; width: min(100%, 320px); height: 1px; overflow: hidden; background: var(--line); }
.reviews__bar i { position: absolute; inset: 0; background: var(--teal); transform-origin: left; transform: scaleX(0); }
.js .reviews__bar.is-run i { animation: bar var(--bar-time, 8s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }
.reviews__dots { display: flex; gap: 4px; margin-top: -12px; }
.reviews__dot {
  position: relative;
  width: 40px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.reviews__dot::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: var(--line);
  transition: background-color .8s var(--ease), transform .8s var(--ease);
}
.reviews__dot.is-active::after { background: var(--ink); transform: scaleY(2); }
.reviews__scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .9rem; color: var(--ink-soft); }
.reviews__scores a { text-decoration: none; }
.reviews__scores a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reviews__scores strong { font-weight: 500; color: var(--ink); }
.reviews__sep { color: var(--taupe); }

/* ---------- Invito a prenotare (foto con velo) ---------- */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.cta-band {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 80vh, 820px);
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
}
.cta-band__img, .cta-band__torch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-band__img { z-index: -3; filter: brightness(.42) saturate(.8); }
/* la stessa foto, chiara, visibile solo in un cerchio che segue il mouse (sul telefono si muove da sola) */
.cta-band__torch {
  z-index: -2;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
  mask-image: radial-gradient(circle 260px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, .5) 45%, transparent 100%);
}
.js .cta-band__img, .js .cta-band__torch { transform: scale(1.14); transition: transform 3.6s var(--ease); }
.js .cta-band.is-in .cta-band__img, .js .cta-band.is-in .cta-band__torch { transform: none; }
.cta-band.is-auto .cta-band__torch { animation: torch 16s ease-in-out infinite alternate; }
.cta-band__veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 50% 55%, rgba(var(--veil), .1), rgba(var(--veil), .55)); }
.cta-band__inner { display: grid; justify-items: center; gap: 24px; padding-block: var(--section); }
.cta-band .h2 { max-width: 22ch; }
.cta-band .label { color: var(--sand); }
.cta-band__text { max-width: 36em; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 300; color: rgba(255, 255, 255, .88); }
.cta-band__action { margin-top: 12px; }
.magnet { display: inline-block; will-change: transform; transition: transform .35s ease-out; }
@keyframes torch { 0% { --mx: 28%; --my: 40%; } 50% { --mx: 70%; --my: 60%; } 100% { --mx: 40%; --my: 70%; } }

/* ---------- L'appartamento ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 104px);
  border-top: 1px solid var(--line);
}
.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 28px 0 28px 20px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.fact:nth-child(odd) { padding-left: 0; border-left: 0; }
.fact__n {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: lining-nums;
}
@media (min-width: 700px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .fact, .fact:nth-child(odd) { padding: 36px 28px; border-bottom: 0; border-left: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; border-left: 0; }
}

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 24px); }
.tile {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
  text-decoration: none;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2s var(--ease);
}
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(var(--veil), .8) 0%, rgba(var(--veil), .2) 50%, rgba(var(--veil), 0) 100%);
  transition: opacity 1.2s var(--ease);
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile__text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: clamp(14px, 2.4vw, 32px);
}
.tile__name { font-family: var(--f-serif); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2.3rem); font-weight: 400; line-height: 1.08; }
.tile__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .85;
}
.tile__more::after {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: width .9s var(--ease);
}
.tile:hover .tile__more::after { width: 56px; }
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { aspect-ratio: 4 / 5; }
}

.checklist { display: grid; column-gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); }
.checklist li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 1px;
  background: var(--taupe);
  transform: translateY(-.35em);
}
@media (min-width: 700px) {
  .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Pagina di un ambiente ---------- */
.room__grid { display: grid; gap: clamp(48px, 7vw, 112px); align-items: start; }
.room__text { display: grid; gap: clamp(40px, 5vw, 56px); }
.room__lead {
  font-family: var(--f-serif);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  font-weight: 400;
  line-height: 1.42;
  color: var(--ink);
}
.room__list { display: grid; gap: 16px; }
.room__figure { overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist); }
.room__figure img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .room__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .room__figure { aspect-ratio: 4 / 5; }
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: var(--section);
}
.pager__link {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-block: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.pager__link--successivo { justify-items: end; padding-left: 20px; border-left: 1px solid var(--line); text-align: right; }
.pager__link--precedente { padding-right: 20px; }
.pager__name {
  font-family: var(--f-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2.2rem);
  font-weight: 300;
  line-height: 1.1;
  transition: color .8s var(--ease);
}
.pager__link:hover .pager__name { color: var(--teal); font-style: italic; }
.pager__all { grid-column: 1 / -1; justify-self: center; margin-top: 32px; }

/* ---------- Contatti ---------- */
.contact { padding-bottom: var(--section); }
.contact__grid { display: grid; gap: clamp(64px, 8vw, 128px); }
.contact__info { display: grid; gap: 48px; align-content: start; }
.channels { border-top: 1px solid var(--line); }
.channel {
  display: grid;
  gap: 6px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.channel dd { font-family: var(--f-serif); font-size: clamp(1.3rem, 1.2rem + .4vw, 1.55rem); line-height: 1.3; font-variant-numeric: lining-nums; }
.channel a { text-decoration: none; }
.channel a:hover { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.channel__email { font-size: .88em; overflow-wrap: anywhere; }
.hours { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.hours__item { display: grid; gap: 4px; }
.hours dd { font-family: var(--f-serif); font-size: 1.5rem; font-variant-numeric: lining-nums; }
.contact__form { display: grid; gap: 28px; align-content: start; }
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

.notes { display: grid; gap: 18px; padding-bottom: clamp(56px, 7vw, 96px); }
.notes__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem);
}
.notes__list li { display: flex; align-items: center; gap: 14px; }
.notes__list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--taupe); }

.map {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(320px, 42vw, 520px);
  overflow: hidden;
  background: var(--teal-deep);
  color: #fff;
  text-align: center;
}
.map__mark { position: absolute; right: -4%; bottom: -12%; width: min(46%, 420px); height: auto; opacity: .07; pointer-events: none; }
.map__inner { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px var(--gutter); }
.map__inner .label { color: var(--sand); }
.map__addr { margin: 0; font-family: var(--f-serif); font-weight: 300; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.15; }
.map__nota { max-width: 46ch; margin: 0; font-size: .78rem; line-height: 1.5; color: rgba(255, 255, 255, .62); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.55) contrast(.95); }
.map-wrap__bar { padding-block: 16px 56px; }

/* ---------- Domande frequenti ---------- */
.faq__grid { display: grid; gap: 40px; }
.faq__head { display: grid; gap: 18px; align-content: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: flex-start; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
/* il numero è una paletta da tabellone: si gira quando la domanda si apre */
.faq__n {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  margin-top: .3em;
  border-radius: 3px;
  background: var(--teal-deep);
  color: var(--sand);
  font: 500 .68rem/1 var(--f-sans);
  letter-spacing: .14em;
  transform-style: preserve-3d;
  transition: transform .7s var(--ease), background-color .4s var(--ease), color .4s var(--ease);
}
.faq__n::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .22); }
.faq__t {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.8rem);
  line-height: 1.25;
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.faq__q:hover .faq__t { color: var(--teal); transform: translateX(6px); }
.faq__q:hover .faq__n { transform: rotateX(-18deg); }
.faq__item[open] .faq__n { transform: rotateX(360deg); background: var(--sand); color: var(--teal-deep); }
.faq__item[open] .faq__n::after { background: rgba(18, 49, 60, .25); }
.faq__a { max-width: 62ch; margin: 0; padding: 0 0 26px 60px; color: var(--ink-soft); line-height: 1.7; font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ---------- Prenota ---------- */
.book { display: grid; }
.book__media { position: relative; overflow: hidden; height: 42vh; height: 42svh; min-height: 260px; background: var(--mist); }
.book__img { width: 100%; height: 100%; object-fit: cover; }
.book__body {
  display: grid;
  gap: clamp(56px, 7vw, 80px);
  width: 100%;
  max-width: 720px;
  padding: clamp(48px, 7vw, 96px) var(--gutter) var(--section);
}
.book .quote-form__title { font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.9rem); font-weight: 300; }
.book__portals { display: grid; gap: 18px; }
.book__portals ul { border-top: 1px solid var(--line); }
.portal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.portal__name { font-family: var(--f-serif); font-size: 1.6rem; line-height: 1.2; transition: color .8s var(--ease); }
.portal__score { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe-text); }
.portal:hover .portal__name { color: var(--teal); font-style: italic; }
.book__note { font-size: .9rem; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .book__media {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    height: calc(100vh - var(--header-h));
    height: calc(100svh - var(--header-h));
    min-height: 560px;
  }
  .book__body { padding-inline: clamp(40px, 6vw, 96px); }
}

/* ---------- Modulo preventivo e moduli in generale ---------- */
.quote-form { display: grid; gap: 16px; }
.quote-form__note { max-width: 32em; color: var(--ink-soft); }
.quote-form .form { margin-top: 20px; }
.quote-form__portals { font-size: .9rem; color: var(--ink-soft); }
.quote-form__portals a { color: var(--ink); text-underline-offset: 4px; }

.form { display: grid; gap: 28px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 28px; }
.field { display: grid; gap: 4px; }
.field label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe-text);
}
.field input, .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(26, 46, 58, .22);
  border-bottom-color: rgba(26, 46, 58, .45);
  border-radius: 0;
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.05rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease), background-color .6s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(75, 91, 101, .55); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26, 46, 58, .4); }
.field textarea { min-height: 132px; resize: vertical; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A2E3A' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.field input::-webkit-date-and-time-value { text-align: left; }
.field input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 1px var(--teal);
}
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1 1 220px; white-space: nowrap; } /* se non ci stanno in una riga, vanno uno sotto l'altro */
.quote-form .form__actions { flex-direction: column; }
.quote-form .form__actions .btn { flex: none; }
.form__hint { font-size: .85rem; color: var(--ink-soft); }
/* esito di "Invia via email" */
.form__stato {
  padding: 12px 16px;
  border-left: 2px solid var(--taupe);
  background: var(--mist);
  font-size: .92rem;
  line-height: 1.5;
  color: var(--ink);
}
.form__stato[data-tipo="ok"] { border-left-color: var(--teal); }
.form__stato[data-tipo="errore"] { border-left-color: #A4483B; color: #7E2F24; }
.form__stato[hidden] { display: none; }
/* trappola per robot: le persone non la vedono */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pannello preventivo (si apre da "Prenota") ---------- */
.book-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  transition: visibility 0s linear 1s;
}
.book-panel.is-open { visibility: visible; transition: none; }
.book-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--veil), .55);
  opacity: 0;
  transition: opacity 1s var(--ease);
}
.book-panel.is-open .book-panel__backdrop { opacity: 1; }
.book-panel__sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(env(safe-area-inset-top, 0px) + 84px) clamp(24px, 5vw, 56px) calc(env(safe-area-inset-bottom, 0px) + 48px);
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  transform: translateX(6%);
  transition: transform 1.1s var(--ease), opacity 1s var(--ease);
}
.book-panel__sheet:focus { outline: none; }
.book-panel__simbolo { width: 64px; height: auto; margin-bottom: 20px; opacity: .85; }
.book-panel.is-open .book-panel__sheet { opacity: 1; transform: none; }
.book-panel__close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: clamp(12px, 3vw, 32px);
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.book-panel__close::before, .book-panel__close::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 1px;
  background: currentColor;
  transition: transform .8s var(--ease);
}
.book-panel__close::before { transform: rotate(45deg); }
.book-panel__close::after { transform: rotate(-45deg); }
.book-panel__close:hover::before { transform: rotate(135deg); }
.book-panel__close:hover::after { transform: rotate(45deg); }
.book-open { overflow: hidden; }

/* ---------- Pagine legali e 404 ---------- */
.legal .lead { max-width: 40em; }
.legal__box {
  max-width: 44em;
  margin-top: 16px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--mist);
  font-size: .95rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.legal__body { max-width: 44em; margin-top: clamp(40px, 5vw, 64px); }
.legal__section + .legal__section { margin-top: clamp(28px, 3.5vw, 40px); }
.legal__h {
  margin-bottom: 10px;
  font-family: var(--f-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe-text);
}
.legal__section p { color: var(--ink-soft); line-height: 1.8; overflow-wrap: anywhere; }
.legal__section p + p { margin-top: .8em; }
.legal__date { margin-top: clamp(32px, 4vw, 48px); font-size: .85rem; color: var(--taupe-text); }
.not-found { min-height: 70vh; display: grid; align-content: center; }
.not-found .btn { margin-top: 16px; }
.not-found__simbolo { width: 96px; height: auto; opacity: .8; margin-bottom: 8px; }

/* ---------- Piè di pagina ---------- */
.footer {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--teal-deep);
  color: rgba(255, 255, 255, .75);
  font-size: .95rem;
}
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer .label { color: var(--sand); margin-bottom: 14px; }
.footer__top {
  display: grid;
  justify-items: start;
  gap: 24px;
  padding-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--line-light);
}
.footer__logo { display: block; width: clamp(200px, 22vw, 280px); }
.footer__logo img { width: 100%; height: auto; }
.footer__descr { max-width: 30em; }
.footer__grid { display: grid; gap: 40px; padding-block: clamp(40px, 5vw, 64px); }
.footer__col ul { display: grid; gap: 6px; }
.footer__email { overflow-wrap: anywhere; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  padding-right: 64px; /* spazio per il pulsante WhatsApp */
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- Pulsante WhatsApp ---------- */
.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: #1DA851;
  box-shadow: 0 12px 32px -12px rgba(18, 49, 60, .5), 0 0 0 1px rgba(18, 49, 60, .06);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 1s var(--ease), transform 1s var(--ease), box-shadow .6s var(--ease);
}
.wa.is-visible, html:not(.js) .wa { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { box-shadow: 0 16px 36px -12px rgba(18, 49, 60, .6), 0 0 0 1px rgba(18, 49, 60, .08); }
.menu-open .wa, .book-open .wa { opacity: 0; pointer-events: none; }

/* ---------- Grana di pellicola su tutta la pagina ---------- */
.grana {
  position: fixed;
  inset: -100px;
  z-index: 70;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (hover: hover) and (pointer: fine) {
  .grana { animation: grana 1.2s steps(6) infinite; } /* sui telefoni resta ferma: consuma meno */
}
@keyframes grana {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 20px); }
  40% { transform: translate(20px, -40px); }
  60% { transform: translate(-40px, -10px); }
  80% { transform: translate(30px, 30px); }
  100% { transform: translate(0, 0); }
}

/* ---------- Sipario d'apertura (una volta per visita) ---------- */
.sipario {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.sipario__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--teal-deep); transition: transform 1.2s var(--ease-in-out); }
.sipario__panel--top { top: 0; }
.sipario__panel--bottom { bottom: 0; }
.sipario.is-open .sipario__panel--top { transform: translateY(-101%); }
.sipario.is-open .sipario__panel--bottom { transform: translateY(101%); }
.sipario__mark { position: relative; display: grid; place-items: center; width: 132px; height: 132px; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.sipario__mark img { width: 64px; height: auto; opacity: 0; animation: mark-in .9s .2s var(--ease) forwards; }
.sipario__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sipario__ring circle { fill: none; stroke: var(--sand); stroke-width: .6; stroke-dasharray: 377; stroke-dashoffset: 377; animation: ring 1s .1s var(--ease-in-out) forwards; }
.sipario__coords {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  text-align: center;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--sand);
  opacity: 0;
  animation: fade-in 1s .6s forwards;
}
.sipario.is-open .sipario__mark, .sipario.is-open .sipario__coords { opacity: 0; transform: scale(.9); }
.sipario.is-done, html:not(.js) .sipario { display: none; }
/* sul telefono il sipario non c'è: la foto d'apertura si vede appena arriva, senza aspettare main.js */
@media (max-width: 899px) { .sipario { display: none; } }
/* rete di sicurezza: se lo script non parte, il sipario sparisce da solo dopo 3 s */
.js:not(.rv-ready) .sipario { animation: sipario-via 0s 3s forwards; }
@keyframes sipario-via { to { visibility: hidden; } }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes mark-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes drop { 0% { transform: scaleY(0); opacity: 0; } 40% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1) translateY(60px); opacity: 0; } }

/* ---------- Comparsa lenta durante lo scroll ---------- */
.js [data-reveal]:not([data-reveal="none"]):not([data-reveal="img"]):not([data-reveal="up"]) {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.6s var(--ease), transform 1.8s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
.js [data-reveal="img"] {
  clip-path: inset(10% 10% 10% 10%);
  transition: clip-path 2.2s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
.js [data-reveal="img"] > * {
  transform: scale(1.16);
  transition: transform 2.8s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
/* "up": la foto si scopre dal basso (il ritaglio sta sull'immagine, così l'observer vede il contenitore) */
.js [data-reveal="up"] > * {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.12);
  transition: clip-path 1.8s var(--ease), transform 2.6s var(--ease);
  transition-delay: var(--rv-delay, 0s);
}
/* (stessi :not() della regola che nasconde: così questa, venendo dopo, vince) */
.js [data-reveal].is-in:not([data-reveal="none"]):not([data-reveal="img"]):not([data-reveal="up"]) { opacity: 1; transform: none; }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="img"].is-in > *, .js [data-reveal="up"].is-in > * { transform: none; clip-path: inset(0 0 0 0); }
/* rete di sicurezza: se main.js non si carica, dopo 2,5 s tutto compare comunque */
.js:not(.rv-ready) [data-reveal] { animation: rv-fallback 0s 2.5s forwards; }
.js:not(.rv-ready) [data-reveal="img"] > *, .js:not(.rv-ready) [data-reveal="up"] > * { animation: rv-fallback 0s 2.5s forwards; }

/* sul telefono, dove si scorre in fretta, le comparse durano circa la metà */
@media (max-width: 899px) {
  .js [data-reveal]:not([data-reveal="none"]):not([data-reveal="img"]):not([data-reveal="up"]) { transition-duration: .9s, 1s; }
  .js [data-reveal="img"] { transition-duration: 1.1s; }
  .js [data-reveal="img"] > * { transition-duration: 1.5s; }
  .js [data-reveal="up"] > * { transition-duration: .9s, 1.4s; }
}
@keyframes rv-fallback { to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes deriva { from { transform: translate3d(0, 0, 0) rotate(-3deg); } to { transform: translate3d(-4%, 5%, 0) rotate(3deg); } }

/* ---------- Chi preferisce meno movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .hero__slide.is-active, .hero__slide.is-leaving { animation: none; }
  .hero__cue, .sipario { display: none; }
  .grana, .ticker__track.is-on, .cta-band.is-auto .cta-band__torch { animation: none; }
  .hero .line > *, .hero__text .w, .hero__actions, .hero__counter { opacity: 1; transform: none; filter: none; }
  .flip__w.is-out { opacity: 0; }
}
