/* =====================================================================
   CAMERE — corpo della pagina (06/10/2026)
   Manifesto · le tre camere in una scena fissata che scorre in orizzontale
   (fx.js hscroll, solo desktop) · nastro con i nomi · chiusura.
   ===================================================================== */

/* ---------- manifesto ---------- */
.cm-quote { padding-block: clamp(6rem, 14vw, 11rem) clamp(4rem, 8vw, 6rem); }

/* ---------- le tre camere ---------- */
.cmh { --top: clamp(6.5rem, 13vh, 8.5rem); --bottom: clamp(2rem, 6vh, 4rem);
  position: relative; height: 100vh; background: var(--warm); }
.cmh__track { display: flex; align-items: stretch; gap: clamp(3rem, 6vw, 7rem); height: 100%;
  padding: var(--top) max(1.5rem, (100vw - var(--wrap)) / 2) var(--bottom); }

/* apertura: il testo introduttivo e l'invito a scorrere */
.cmh__open { flex: none; width: min(34rem, 32vw); display: flex; flex-direction: column; justify-content: center; }
.cmh__open-text { font: 300 clamp(1.25rem, 1.7vw, 1.6rem)/1.5 var(--font-display); color: var(--ink); }
.cmh__open-more { margin-top: 1.5rem; font-size: 1.04rem; line-height: 1.7; color: var(--grey); }
.cmh__hint { margin-top: 2.5rem; font-size: 3.2rem; line-height: 1; color: var(--sand); }
@media (prefers-reduced-motion: no-preference) {
  .cmh__hint i { display: inline-block; animation: cmhNudge 2.2s var(--ease) infinite; }
  @keyframes cmhNudge { 0%, 100% { transform: none; } 50% { transform: translateX(14px); } }
}

/* una camera: panoramica grande · scheda · dettagli a lato */
.cmh__room { flex: none; display: flex; align-items: stretch; gap: clamp(1.5rem, 2.6vw, 3rem); }
.cmh__big { position: relative; flex: none; width: min(46vw, 64rem); margin: 0; overflow: hidden; background: var(--teal); }
.cmh__big img, .cmh__tall img, .cmh__wide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmh__big img { width: 116%; left: -8%; max-width: none; }

.cmh__info { flex: none; width: min(30rem, 30vw); display: flex; flex-direction: column; justify-content: center; }
.cmh__num { display: flex; align-items: baseline; gap: .7rem; font: 200 clamp(2.2rem, 3.4vw, 3.2rem)/1 var(--font-display); color: var(--teal); }
.cmh__num span { font-size: .85rem; letter-spacing: .2em; color: var(--sand); }
.cmh__num span::before { content: "/ "; }
.cmh__name { margin-top: clamp(.6rem, 1.4vh, 1rem); font: 200 clamp(2.4rem, 4.2vw, 4rem)/.98 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.cmh__meta { display: flex; align-items: flex-end; gap: clamp(1.25rem, 2vw, 2rem); margin-top: clamp(1rem, 2.4vh, 1.6rem);
  padding-bottom: clamp(.9rem, 2vh, 1.3rem); border-bottom: 1px solid var(--line); }
.cmh__mq { font: 200 clamp(2.6rem, 4.6vw, 4.4rem)/.9 var(--font-display); letter-spacing: -.04em; color: var(--teal-deep); white-space: nowrap; }
.cmh__pers { display: flex; flex-direction: column; gap: .35rem; padding-bottom: .2rem;
  font: 500 .72rem/1.2 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--taupe); }
.cmh__icons { display: flex; align-items: center; gap: .1rem; font-size: 1.7rem; color: var(--teal); }
.cmh__icons b { font: 200 1.2rem/1 var(--font-display); margin-inline: .15rem; color: var(--sand); }
.cmh__desc { margin-top: clamp(.8rem, 2vh, 1.3rem); font-size: clamp(.92rem, 1vw, 1rem); line-height: 1.65; color: var(--grey); }
.cmh__desc + .cmh__desc { margin-top: .6rem; }
.cmh__feat { margin-top: clamp(.9rem, 2.2vh, 1.5rem); }
.cmh__feat-t { font: 500 .7rem/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: .7rem; }
.cmh__feat ul { columns: 2; column-gap: 1.5rem; }
.cmh__feat li { position: relative; break-inside: avoid; padding-left: .95rem; font-size: clamp(.78rem, .82vw, .86rem); line-height: 1.55; color: var(--grey); }
.cmh__feat li::before { content: ""; position: absolute; left: 0; top: .66em; width: .38rem; height: 1px; background: var(--teal); }
.cmh__info .btn { align-self: flex-start; margin-top: clamp(1rem, 2.6vh, 1.8rem); }

.cmh__side { flex: none; width: min(22vw, 26rem); display: flex; flex-direction: column; gap: clamp(1rem, 1.6vw, 1.5rem); }
.cmh__tall, .cmh__wide { position: relative; margin: 0; overflow: hidden; background: var(--teal); }
.cmh__tall { flex: 1.7; }
.cmh__wide { flex: 1; }
.cmh__tall img { width: 120%; left: -10%; max-width: none; }
.cmh__room:nth-of-type(even) .cmh__side { flex-direction: column-reverse; }

@media (hover: hover) {
  .cmh__wide img { transition: transform 1.2s var(--ease); }
  .cmh__wide:hover img { transform: scale(1.06); }
}

/* senza fx.js (o con «riduci movimento»): la fila di camere scorre a mano */
html:not(.fx-on) .cmh { overflow-x: auto; overflow-y: hidden; }

/* ---------- nastro ---------- */
.cm-marq { background: var(--teal-deep); border-block: 0; }
.cm-marq span { color: var(--white); }

/* ---------- chiusura ---------- */
.cm-close { background: var(--warm); padding-block: clamp(5rem, 11vw, 9rem); }
.cm-close__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; }
.cm-close__text { max-width: 20ch; font: 200 clamp(2.2rem, 4.6vw, 4.4rem)/1.08 var(--font-display); letter-spacing: -.025em; color: var(--ink); }
.cm-close__text b { font-weight: 400; color: var(--teal-deep); }

/* ---------- telefono e tablet: le camere si impilano ---------- */
@media (max-width: 900px) {
  .cmh { height: auto; overflow: visible; }
  html:not(.fx-on) .cmh { overflow: visible; }
  .cmh__track { flex-direction: column; width: auto !important; overflow: visible !important; scroll-snap-type: none !important;
    height: auto; gap: 0; padding: 0 0 clamp(3rem, 8vw, 4rem); transform: none !important; }
  .cmh__open { width: auto; padding: 0 1.5rem 3rem; }
  .cmh__hint { display: none; }
  .cmh__room { flex-direction: column; gap: 0; padding-bottom: 3.5rem; }
  .cmh__room + .cmh__room { border-top: 1px solid var(--line); padding-top: 0; }
  .cmh__big { width: 100%; height: 72vw; }
  .cmh__big img, .cmh__tall img { width: 100%; left: 0; }
  .cmh__info { width: auto; padding: 2rem 1.5rem 0; }
  .cmh__side { width: auto; flex-direction: row !important; height: 46vw; padding: 2rem 1.5rem 0; }
  .cmh__tall { flex: 1; } .cmh__wide { flex: 1.4; }
  .cm-close__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .cmh__feat ul { columns: 1; }
}
