/* ============================================================
   DOMUS MARINA — Pagine dimora
   Caricato solo dalle pagine in /dimore/. Riusa tutti i token
   e i componenti della home: qui c'è solo ciò che è specifico.
   ============================================================ */

/* ============ HERO DELLA DIMORA ============ */
/* Più basso della home: qui il visitatore ha già scelto, non va sedotto
   da capo. Deve vedere la stanza e il prezzo, e decidere. */
.room-hero {
  position: relative;
  min-height: 76svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--sea-900);
}
.room-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.room-hero__img { width: 100%; height: 100%; object-fit: cover; }
.room-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(14, 59, 62, 0.9) 0%,
    rgba(14, 59, 62, 0.45) 40%,
    rgba(14, 59, 62, 0.12) 75%,
    rgba(14, 59, 62, 0.4) 100%);
}
.room-hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(3rem, 7vh, 5rem);
  padding-top: calc(var(--header-h) + var(--sp-7));
  color: var(--sand-50);
}
.room-hero__title { font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.room-hero__title .em { color: var(--terra-300); }
.room-hero__lede {
  max-width: 32rem;
  color: rgba(251, 249, 245, 0.85);
  font-weight: 300;
  font-size: var(--fs-lg);
}

/* Briciole di pane: da dove vieni e dove sei */
.crumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.62);
  flex-wrap: wrap;
}
.crumbs a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  transition: color var(--dur-fast) var(--ease-out);
}
.crumbs a:hover { color: var(--terra-300); }
.crumbs__sep { opacity: 0.45; }
.crumbs__current { color: var(--terra-300); }

/* Prezzo in evidenza nell'hero */
.room-hero__price {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vh, 5rem);
  z-index: 2;
  text-align: right;
  color: var(--sand-50);
  display: none;
}
@media (min-width: 62rem) { .room-hero__price { display: block; } }
.room-hero__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.room-hero__per {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.6);
  margin-top: var(--sp-2);
}

/* ============ BARRA DEI DATI ============ */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { display: flex; flex-direction: column; gap: var(--sp-2); }
.fact__k {
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.fact__v {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--sea-900);
  font-variant-numeric: tabular-nums;
}

/* ============ CORPO ============ */
.room-body__grid { display: grid; gap: var(--sp-7); }
@media (min-width: 62rem) {
  .room-body__grid { grid-template-columns: 1.1fr 1fr; gap: var(--sp-9); align-items: start; }
}
.room-body__text p + p { margin-top: var(--sp-5); }
.room-body__quote {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: var(--track-tight);
  margin-bottom: var(--sp-6);
  max-width: 20ch;
}
.room-body__quote .em { color: var(--accent); }

/* Elenco delle dotazioni */
.kit { list-style: none; padding: 0; display: grid; gap: 0; }
.kit__item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
  color: var(--fg-muted);
}
.kit__item:first-child { border-top: 1px solid var(--border); }
.kit__item svg { color: var(--accent); flex: none; }
.kit__item strong { color: var(--fg); font-weight: 500; }

/* ============ GALLERIA ============ */
.room-gallery {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 62rem) { .room-gallery { grid-template-columns: repeat(3, 1fr); } }
.room-shot {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  cursor: pointer;
  background: var(--sand-200);
}
/* La prima occupa tutta la riga su mobile: dà respiro all'apertura */
.room-shot:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
@media (min-width: 62rem) {
  .room-shot:first-child { grid-column: auto; aspect-ratio: 4 / 5; }
}
.room-shot__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-cinema) var(--ease-out);
}
.room-shot:hover .room-shot__img { transform: scale(1.07); }

/* ============ ALTRE DIMORE ============ */
.others {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 62rem) { .others { grid-template-columns: repeat(4, 1fr); } }

.other {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--sea-900);
}
.other__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-cinema) var(--ease-out);
}
.other:hover .other__img { transform: scale(1.08); }
.other::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14,59,62,0.9), rgba(14,59,62,0.1) 70%);
}
.other__body { padding: var(--sp-4); color: var(--sand-50); width: 100%; }
.other__name { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.other__meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--terra-300);
  font-variant-numeric: tabular-nums;
}
.other__link::after { content: ''; position: absolute; inset: 0; z-index: 2; }

/* ============ FASCIA FINALE ============ */
.cta-band { text-align: center; }
.cta-band__title { max-width: 16ch; margin-inline: auto; margin-bottom: var(--sp-5); }
.cta-band__title .em { color: var(--terra-300); }
.cta-band__lede {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: var(--sp-7);
  color: var(--fg-on-deep-muted);
}
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
}
