/* =========================================================
   ALMA, versão 2 da home: slider de ambientes em tela cheia
   (carrega depois de style.css; só vale para body.page-v2)
   ========================================================= */

/* ---------- Header claro sobre o slider ---------- */
.page-v2 .header__logo img { display: none; }
.page-v2 .header__logo .logo-light { display: block; }
.page-v2 .header.is-scrolled .header__logo .logo-light { display: none; }
.page-v2 .header.is-scrolled .header__logo .logo-dark { display: block; }
.page-v2 .header.menu-open .header__logo .logo-light { display: block; }
.page-v2 .header.menu-open .header__logo .logo-dark { display: none; }

.page-v2 .header:not(.is-scrolled) .nav a { color: rgba(255, 255, 255, .86); }
.page-v2 .header:not(.is-scrolled) .nav a:hover { color: #fff; }
.page-v2 .header:not(.is-scrolled) .nav a::after { background: var(--nude); }
.page-v2 .header:not(.is-scrolled) .header__contact-text small { color: rgba(255, 255, 255, .66); }
.page-v2 .header:not(.is-scrolled) .header__contact-text strong { color: #fff; }

/* ---------- Slider ---------- */
.hs {
  --card-w: clamp(150px, 13.5vw, 230px);
  --card-h: calc(var(--card-w) * 1.46);
  --gap: clamp(14px, 1.6vw, 26px);
  --card-r: 16px;
  position: relative;
  height: 100svh; min-height: 660px; max-height: 1200px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}

.hs__timer { position: absolute; z-index: 120; inset: 0 0 auto; height: 3px; pointer-events: none; }
.hs__timer span { display: block; height: 100%; background: var(--nude); transform: scaleX(0); transform-origin: left; }

.hs__slides { position: absolute; inset: 0; }
.hs__slide {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--ink-soft);
  box-shadow: 0 26px 50px -22px rgba(0, 0, 0, .75);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hs__slide.is-active { cursor: default; box-shadow: none; }
.hs__slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hs__slide:focus-visible { outline: 2px solid var(--nude); outline-offset: 4px; }

/* Escurecimento do fundo ativo (para o texto ler bem) */
.hs__slide-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    linear-gradient(90deg, rgba(24, 20, 17, .82) 0%, rgba(24, 20, 17, .55) 34%, rgba(24, 20, 17, .12) 62%, rgba(24, 20, 17, .28) 100%),
    linear-gradient(to top, rgba(24, 20, 17, .62), rgba(24, 20, 17, 0) 38%),
    linear-gradient(to bottom, rgba(24, 20, 17, .5), rgba(24, 20, 17, 0) 24%);
}
.hs__slide.is-active .hs__slide-shade { opacity: 1; }

/* Legenda dos cards */
.hs__slide::after {
  content: ""; position: absolute; inset: 40% 0 0; pointer-events: none;
  background: linear-gradient(to top, rgba(24, 20, 17, .78), rgba(24, 20, 17, 0));
  transition: opacity .5s var(--ease);
}
.hs__label {
  position: absolute; z-index: 1; left: 16px; right: 14px; bottom: 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hs__label::before { content: ""; width: 18px; height: 2px; background: var(--nude); margin-bottom: 4px; }
.hs__label small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.hs__label strong { font-weight: 500; font-size: clamp(14px, 1.15vw, 18px); line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.hs__slide.is-active::after, .hs__slide.is-active .hs__label { opacity: 0; transform: translateY(10px); }
@media (hover: hover) {
  .hs__slide:not(.is-active):hover .hs__label strong { color: var(--nude); }
  .hs__slide:not(.is-active):hover .hs__label::before { width: 32px; }
}
.hs__label::before { transition: width .5s var(--ease); }
.hs__label strong { transition: color .3s; }

/* Posição de referência do primeiro card (medida pelo JS) */
.hs__rail {
  position: absolute; visibility: hidden; pointer-events: none;
  left: 50%;
  top: calc(50% - var(--card-h) / 2 + 5vh);
  width: var(--card-w); height: var(--card-h);
}

/* Texto do slide */
.hs__content {
  position: absolute; z-index: 10;
  left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  width: min(calc(50vw - max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))) - 48px), 560px);
  top: calc(50% - var(--card-h) / 2 + 5vh - 34px);
}
.hs__eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 18px;
}
.hs__eyebrow::before { content: ""; flex-basis: 100%; width: 28px; max-width: 28px; height: 2px; background: var(--nude); margin-bottom: 12px; }
.hs__eyebrow [data-hs="room"] { color: var(--nude); font-weight: 500; }
.hs__eyebrow [data-hs="pieces"] { letter-spacing: .12em; text-transform: none; font-size: 13px; color: rgba(255, 255, 255, .72); }
.hs__eyebrow [data-hs="pieces"]::before { content: "·"; margin-right: 12px; color: rgba(255, 255, 255, .45); }
.hs__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 4.9rem); line-height: 1.02; letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 22px;
  text-wrap: balance;
}
.hs__desc { max-width: 440px; color: rgba(255, 255, 255, .8); margin-bottom: 30px; }
.hs__actions { display: flex; align-items: center; gap: 12px; }
.hs__round {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--nude); color: var(--ink);
  transition: background .3s, transform .45s var(--ease);
}
.hs__round svg { width: 20px; height: 20px; fill: currentColor; }
.hs__round:hover { background: var(--sand); transform: rotate(-12deg); }
.hs__pill {
  display: inline-flex; align-items: center; height: 48px; padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
  font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.hs__pill:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Controles */
.hs__controls {
  position: absolute; z-index: 30;
  left: 50%; right: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  top: calc(50% + var(--card-h) / 2 + 5vh + clamp(26px, 4.5vh, 48px));
  display: flex; align-items: center; gap: 12px;
}
.hs__arrow {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38); background: transparent; color: #fff;
  cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.hs__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hs__arrow:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hs__toggle .hs__icon-play { display: none; }
.hs__toggle[aria-pressed="true"] .hs__icon-pause { display: none; }
.hs__toggle[aria-pressed="true"] .hs__icon-play { display: block; fill: currentColor; stroke: none; }
.hs__toggle svg { width: 16px; height: 16px; }
.hs__progress { flex: 1; height: 2px; margin-inline: 14px 10px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.hs__progress span { display: block; height: 100%; background: var(--nude); transform-origin: left; transform: scaleX(calc(1 / 6)); }
.hs__count { display: flex; align-items: baseline; gap: 6px; font-weight: 500; letter-spacing: -.02em; }
.hs__num { display: inline-block; overflow: hidden; height: 1em; line-height: 1; font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
.hs__num span { display: block; }
.hs__count small { font-size: 14px; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }

/* Linhas do título (SplitText) */
.hs .split-line { padding-bottom: .04em; }

/* Faixa logo abaixo do slider: sem sobrepor os controles */
.page-v2 .band { margin-top: 0; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .hs__content { width: min(44vw, 520px); }
}

@media (max-width: 900px) {
  .hs {
    --card-w: 116px;
    --card-h: 164px;
    --gap: 12px;
    --card-r: 12px;
    min-height: 700px; max-height: none;
  }
  .hs__rail { left: var(--pad); top: auto; bottom: 104px; }
  .hs__content { left: var(--pad); right: var(--pad); width: auto; top: calc(var(--header-h) + 34px); }
  .hs__title { font-size: clamp(2.2rem, 9.6vw, 3rem); margin-bottom: 16px; }
  .hs__desc { font-size: 15px; margin-bottom: 22px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hs__eyebrow { margin-bottom: 14px; }
  .hs__eyebrow [data-hs="pieces"] { display: none; }
  .hs__slide-shade {
    background:
      linear-gradient(to bottom, rgba(24, 20, 17, .72) 0%, rgba(24, 20, 17, .55) 45%, rgba(24, 20, 17, .35) 65%, rgba(24, 20, 17, .75) 100%);
  }
  .hs__label { left: 10px; bottom: 10px; right: 8px; gap: 4px; }
  .hs__label small { font-size: 9px; }
  .hs__label strong { font-size: 12px; }
  .hs__controls { left: var(--pad); right: var(--pad); top: auto; bottom: 28px; gap: 8px; }
  .hs__arrow { width: 42px; height: 42px; }
  .hs__progress { margin-inline: 8px 4px; }
  .hs__num { font-size: 2.2rem; }
}

@media (max-width: 520px) {
  .hs__pill-extra { display: none; }
}
