/* ═══════════════════════════════════════════════════
   STAY — mobile-first, narrative, no pure white
═══════════════════════════════════════════════════ */


/* ── UTILITIES ────────────────────────────────────── */

.s-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 16px rgba(0,0,0,0.95);
  margin-bottom: 16px;
}

.s-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  border-bottom: 1px solid rgba(243, 239, 232, 0.45);
  padding-bottom: 2px;
}

.s-section-head h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2rem, 7.5vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--cream);
}

/* ── HERO ─────────────────────────────────────────── */

.s-hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100svh;
  min-height: 580px;
  overflow: hidden;
  background: transparent;
}

.s-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.s-hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.93) 0%, rgba(0,0,0,0.65) 35%, rgba(0,0,0,0.25) 62%, transparent 82%),
    linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, transparent 28%);
}

.s-hero-copy {
  position: absolute;
  bottom: 250px;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 24px;
}

.s-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0 24px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s-hero-copy h1 {
  margin: 0 0 28px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(5rem, 20vw, 9rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--cream);
  text-shadow: 0 2px 36px rgba(0,0,0,0.85);
}

.s-hero-sub {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 5.5vw, 2rem);
  color: var(--cream);
  text-shadow: 0 1px 18px rgba(0,0,0,0.75);
}

.s-hero-desc {
  margin: 14px 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.18rem, 4.2vw, 1.38rem);
  color: var(--cream);
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0,0,0,0.65);
}

.s-hero-rule {
  width: min(480px, 100%);
  height: 1px;
  background: rgba(243, 239, 232, 0.20);
  margin-bottom: 18px;
}

.s-hero-guide {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 17px;
  width: min(480px, 100%);
  color: var(--cream);
}

.s-hero-guide img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.3));
}

.s-hero-guide p {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.18rem, 4vw, 1.42rem);
  color: var(--cream);
  text-shadow: 0 1px 12px rgba(0,0,0,0.7);
}

.s-hero-guide span {
  font-style: italic;
  color: var(--cream);
}

.s-hero-guide strong {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.80rem;
  letter-spacing: 0.16em;
  color: rgba(243,239,232,0.95);
  font-weight: 400;
  border-bottom: 1px solid rgba(243,239,232,0.55);
  padding-bottom: 2px;
}

.s-hero-guide em {
  font-style: normal;
  font-size: 1.6rem;
  color: var(--cream);
  line-height: 1;
}

.s-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: rgba(243,239,232,0.45);
  font-family: var(--font-body);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.s-scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(243,239,232,0.35);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.35; }
  50% { transform: scaleY(0.5); opacity: 0.75; }
}

/* ── GUIDE ANIMAL ─────────────────────────────────── */


/* ── THE HOUSE ────────────────────────────────────── */

.s-house {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  background: transparent;
}

.s-house-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.s-house-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--dark-brown);
}

.s-house-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s-house-text h2 {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.2rem, 8.5vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--cream);
}

.s-house-text p {
  margin: 0 0 28px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.22rem, 4.4vw, 1.42rem);
  line-height: 1.58;
  color: rgba(243, 239, 232, 0.95);
  max-width: 480px;
}

/* ── INSIDE THE HOUSE ─────────────────────────────── */

.s-inside {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  background: transparent;
}

.s-section-head {
  margin-bottom: 28px;
}

.s-section-head p {
  margin: 10px 0 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.18rem, 4vw, 1.35rem);
  color: rgba(243, 239, 232, 0.95);
  line-height: 1.45;
}

.s-section-head--center {
  text-align: center;
}

/* ── SPLIT GALLERY 1→3 ────────────────────────── */

.s-split-wrap {
  position: relative;
  height: 62vh;
  min-height: 360px;
  margin-top: 32px;
}

.s-split-single {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  max-width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.s-split-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s-split-three {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 18px;
  max-width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.s-split-item {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.s-split-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Mobile: carousel orizzontale */
@media (max-width: 767px) {
  .s-split-wrap {
    position: static;
    height: auto;
    min-height: auto;
    margin-top: 32px;
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    padding: 0 24px 8px;
    gap: 14px;
    scrollbar-width: none;
  }

  .s-split-wrap::-webkit-scrollbar { display: none; }

  .s-split-single {
    position: relative;
    inset: auto;
    flex: 0 0 78vw;
    min-width: 220px;
    aspect-ratio: 4 / 3;
    height: auto;
    max-width: none;
    margin-inline: 0;
    scroll-snap-align: start;
  }

  .s-split-three {
    display: contents;
  }

  .s-split-item {
    flex: 0 0 78vw;
    min-width: 220px;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
}

/* ── ROOMS & SUITES ───────────────────────────────── */

.s-rooms {
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
  background: transparent;
}

.s-rooms-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  padding: 0 24px 8px;
  gap: 10px;
  scrollbar-width: none;
  margin-bottom: 22px;
}

.s-rooms-track::-webkit-scrollbar { display: none; }

.s-rooms-card {
  flex: 0 0 78vw;
  min-width: 220px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--dark-brown);
  scroll-snap-align: start;
}

.s-rooms-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.s-rooms-link {
  margin-top: 6px;
}

/* ── ROOMS: circular carousel (mobile) ──────────── */
@media (max-width: 767px) {
  .s-rooms-overflow {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw); /* -16px: esce dal container fino al bordo viewport */
    margin-bottom: 22px;
  }
  .s-rooms-track--snap {
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin-bottom: 0;
  }
  .s-rooms-track--snap .s-rooms-card {
    flex: 0 0 72vw;
    min-width: 200px;
  }
}

/* ── A DIFFERENT WAY OF STAYING ───────────────────── */

.s-way {
  position: relative;
  z-index: 2;
  padding: 40px 0 88px;
  background: transparent;
  color: var(--cream);
}

.s-way-title {
  margin: 0 0 60px;
  font-family: var(--font-title);
  font-weight: 300;
  font-size: clamp(2.5rem, 10.5vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.s-way-list {
  border-top: 1px solid rgba(243, 239, 232, 0.16);
  margin-bottom: 64px;
}

.s-way-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(243, 239, 232, 0.16);
}

.s-way-item span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.80rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.88);
  margin-bottom: 10px;
}

.s-way-item p {
  margin: 0;
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.22rem, 5vw, 1.55rem);
  color: var(--cream);
  line-height: 1.45;
}

.s-way-cta-wrap {
  text-align: center;
}

.s-way-cta {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(243, 239, 232, 0.70);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  transition: border-color 0.24s, background 0.24s;
}

.s-way-cta:hover {
  border-color: rgba(243, 239, 232, 1);
  background: rgba(243, 239, 232, 0.06);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — mobile max 767px
═══════════════════════════════════════════════════ */

@media (max-width: 767px) {
  /* ── Hero ──────────────────────────────────────── */
  .s-hero-sub  { font-size: clamp(1.45rem, 5.5vw, 2rem); font-weight: 400; }
  .s-hero-desc { font-size: clamp(1.22rem, 4.5vw, 1.38rem); font-weight: 400; }
  .s-hero-guide p      { font-weight: 400; }
  .s-hero-guide strong { font-size: 0.86rem; }

  /* ── Titoli di sezione ─────────────────────────── */
  .s-house-text h2   { font-size: clamp(2.2rem, 8.5vw, 3.6rem); font-weight: 400; }
  .s-section-head h2 { font-size: clamp(2rem, 7.5vw, 3.2rem);   font-weight: 400; }
  .s-way-title       { font-size: clamp(2.2rem, 9vw, 4.8rem);   font-weight: 400; }

  /* ── Paragrafi ─────────────────────────────────── */
  .s-house-text p,
  .s-section-head p,
  .s-way-item p { font-weight: 400; }

  .s-way-item span { font-size: 0.82rem; letter-spacing: 0.30em; }
  .s-way-item p    { font-size: clamp(1.22rem, 5vw, 1.55rem); }

  /* ── Link "View all rooms" ─────────────────────── */
  .s-text-link { font-size: 0.90rem; letter-spacing: 0.16em; }

  /* ── CTA button ────────────────────────────────── */
  .s-way-cta { font-size: 0.86rem; }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — tablet 768px+
═══════════════════════════════════════════════════ */

@media (min-width: 768px) {

  /* Hero */
  .s-hero-copy {
    padding: 0 56px 80px;
    max-width: 820px;
  }

  /* Guide */
  .s-guide-row {
    gap: 24px;
  }

  .s-guide-row img {
    width: 52px;
    height: 52px;
  }

  /* The House — 2 column, no card border */
  .s-house {
    padding: 88px 0;
  }

  .s-house-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    min-height: 440px;
  }

  .s-house-media {
    flex: 0 0 52%;
    aspect-ratio: unset;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
  }

  .s-house-text {
    flex: 1;
    padding: 16px 0;
  }

  /* Gallery — 3-col grid on desktop, no horizontal scroll */
  .s-gallery-wrap {
    max-width: min(100% - 32px, 1120px);
    margin-inline: auto;
  }

  .s-gallery-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    scroll-snap-type: none;
    padding-inline: 0;
    cursor: auto;
    gap: 12px;
  }

  .s-gallery-slide {
    flex: none;
    width: auto;
    aspect-ratio: 3 / 2;
    scroll-snap-align: none;
  }

  /* Rooms — mosaic grid desktop */
  .s-rooms-track {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    min-height: 360px;
  }

  .s-rooms-card--main {
    grid-row: 1 / 3;
    aspect-ratio: unset;
    height: auto;
  }

  .s-rooms-card:not(.s-rooms-card--main) {
    aspect-ratio: unset;
    height: 100%;
  }

  /* A Different Way — ripristina padding desktop */
  .s-rooms { padding-bottom: 80px; }
  .s-way { padding-top: 80px; }

  /* A Different Way — horizontal layout */
  .s-way-title {
    margin-bottom: 72px;
  }

  .s-way-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
    border-left: 1px solid rgba(243, 239, 232, 0.16);
    margin-bottom: 72px;
  }

  .s-way-item {
    padding: 0 44px;
    border-bottom: none;
    border-right: 1px solid rgba(243, 239, 232, 0.16);
  }

  .s-way-item:first-child {
    padding-left: 32px;
  }

  .s-way-item:last-child {
    border-right: none;
    padding-right: 0;
  }

  .s-way-cta {
    width: auto;
    padding: 18px 64px;
  }
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — desktop 1100px+
═══════════════════════════════════════════════════ */

@media (min-width: 1100px) {

  .s-hero-copy {
    padding: 0 72px 96px;
  }

  .s-house {
    padding: 104px 0;
  }

  .s-house-inner {
    gap: 80px;
    min-height: 480px;
  }

  .s-house-media {
    flex: 0 0 54%;
    min-height: 460px;
  }

  .s-rooms-track {
    min-height: 420px;
  }

  .s-section-head h2 {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
  }
}

/* Porta disegnata davanti alle 3 foto (2026-10-13): intera, centrata,
   niente ritaglio. Su telefono non c'e animazione: resta solo il carosello. */
.s-split-door { border-radius: 0; }
.s-split-door img { object-fit: contain; }

@media (max-width: 767px) {
  .s-split-door { display: none; }
}


/* MOBILE (2026-10-16): testo sopra, foto sotto */
@media (max-width: 767px) {
  .s-house-text { order: -1; }
}

/* MOBILE (2026-10-16): foto della scala con le corna inquadrata dall'alto,
   altrimenti il taglio 4:3 nascondeva le corna (vale anche per le copie del carousel) */
@media (max-width: 767px) {
  .s-split-item img[src="DSC00965.jpg"] { object-position: center top; }
}

/* TESTI SULLA FOTO (2026-10-26): Stay era rimasta fuori dalla regola del sito
   (testi crema, uno semitrasparente, senza ombra) e sulla foto chiara del salone
   non si leggevano. Come le altre pagine: bianco pieno + ombra stretta
   --txt-on-photo; paragrafi più spessi (500, il corsivo sottile spariva).
   Niente opacity qui: la usano le animazioni di entrata. */
html body :is(.s-house, .s-inside, .s-rooms, .s-way) :is(h2, p, a, .s-eyebrow, .s-way-item span) {
  color: #fff !important;
  text-shadow: var(--txt-on-photo) !important;
}
html body :is(.s-house, .s-inside, .s-rooms, .s-way) p,
html body :is(.s-text-link, .s-way-cta, .s-way-item span) {
  font-weight: 500 !important;
}
