/* ============================================================
   home.css — composition specific to the home page
   Hero (immerso), Il Palazzo, apartments header, CTA band,
   gallery intro. Reusable pieces live in components.css.
   ============================================================ */

/* -------------------------------------------------- Hero (immerso) */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__bg {
  position: absolute; inset: -7%;
  background: url('../assets/apt-living-01.jpg') center / cover;
  will-change: transform;   /* canvas-bg.js applies mouse parallax */
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 29, 0.5), rgba(11, 22, 29, 0.22) 42%, rgba(11, 22, 29, 0.62));
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream-2);
  padding: 0 24px;
  max-width: 1040px;
  animation: rise 1s var(--ease-out) both;
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(46px, 8.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero__title em { font-style: italic; font-weight: 400; }
.hero__lead {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 600px;
  margin: 28px auto 0;
  color: rgba(246, 241, 233, 0.9);
}
.hero__actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}
.hero__scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-decoration: none;
  color: var(--cream-2);
}
.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Downward chevron cue (reused in hero) */
.chev-down {
  width: 15px; height: 15px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: bobChev 2s ease-in-out infinite;
}

/* -------------------------------------------------- Il Palazzo */
.palazzo__intro { max-width: 840px; }
.palazzo__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.palazzo__stats { margin-top: clamp(48px, 6vw, 80px); }
.palazzo__gallery { margin-top: clamp(44px, 5vw, 66px); }

/* -------------------------------------------------- Apartments header */
.apart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 66px);
}
.apart-head .lede { max-width: 340px; }

/* -------------------------------------------------- CTA parallax band */
.cta {
  position: relative;
  height: clamp(440px, 60vh, 620px);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.cta__bg {
  position: absolute; inset: -14% 0;
  background: url('../assets/apt-living-01.jpg') center / cover;
  will-change: transform;   /* canvas-bg.js applies scroll parallax */
}
.cta__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 22, 29, 0.55), rgba(11, 22, 29, 0.5));
}
.cta__content {
  position: relative; z-index: 2;
  text-align: center;
  color: var(--cream-2);
  padding: 0 24px;
  max-width: 820px;
}
.cta__eyebrow {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 22px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
.cta__title em { font-style: italic; font-weight: 400; }
.cta .btn { margin-top: 34px; }

/* -------------------------------------------------- Galleria (full-bleed slider) */
.galleria {
  padding: var(--section-pad-y) 0;
  overflow: hidden;
}

/* -------------------------------------------------- Section intros (centered) */
.section-intro { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.section-intro--map { margin-bottom: clamp(40px, 5vw, 56px); }
