/* Pacote 04 — primeira composição real da Home, Blocos 2–7. */

/* Mídia editorial opcional: superfície neutra quando nenhum arquivo foi fornecido. */
.ro-home-media-placeholder {
  position: absolute;
  inset: 0;
  background: var(--ro-color-stone);
}

.ro-home-hero__image,
.ro-home-editorial-break__image,
.ro-home-perspectives__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

/* Bloco 2 — Hero */
.ro-home-hero {
  background: var(--ro-color-paper);
}

.ro-home-hero__grid {
  min-height: clamp(680px, calc(100svh - 88px), 920px);
  padding-block: clamp(48px, 6vw, 88px);
  align-items: stretch;
}

.ro-home-hero__content {
  grid-column: 1 / span 5;
  display: flex;
  align-items: center;
  min-width: 0;
  padding-block: var(--ro-space-7);
  position: relative;
  z-index: 2;
}

.ro-home-hero__title {
  max-width: 10.8ch;
}

.ro-home-hero__title-line {
  display: block;
}

.ro-home-hero__title-line + .ro-home-hero__title-line {
  margin-top: 0.08em;
}

.ro-home-hero__media {
  grid-column: 7 / -1;
  min-height: 100%;
  background: var(--ro-color-stone);
}

/* Bloco 3 — Curadoria */
.ro-home-curation {
  padding-bottom: clamp(72px, 7vw, 112px);
  background: var(--ro-color-off-white);
}

.ro-home-curation__eyebrow {
  grid-column: 1 / span 2;
  align-self: start;
  padding-top: 0.42rem;
}

.ro-home-curation__content {
  grid-column: 4 / span 6;
  max-width: 720px;
}

.ro-home-curation__title {
  max-width: 17ch;
}

.ro-home-curation__body {
  max-width: 52ch;
}

.ro-home-curation__signature {
  margin: var(--ro-space-7) 0 0;
  padding-top: var(--ro-space-4);
  border-top: 1px solid var(--ro-color-line);
  color: var(--ro-color-taupe);
  font-family: var(--ro-font-display);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* Bloco 4 — autoridade silenciosa; mesmo capítulo visual da Curadoria. */
.ro-home-authority {
  padding: 0 0 clamp(96px, 9vw, 160px);
  background: var(--ro-color-off-white);
}

.ro-home-authority__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--ro-gutter);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ro-home-authority__item {
  min-width: 0;
  padding-top: var(--ro-space-5);
  border-top: 1px solid var(--ro-color-line);
}

.ro-home-authority__title {
  margin: 0 0 var(--ro-space-3);
  font-family: var(--ro-font-sans);
  font-size: var(--ro-text-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ro-home-authority__body {
  max-width: 28ch;
  margin: 0;
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-sm);
  line-height: 1.65;
}

/* Bloco 5 — Imóveis Selecionados */
.ro-home-selected {
  padding-top: clamp(104px, 10vw, 176px);
  padding-bottom: clamp(104px, 10vw, 176px);
}

.ro-home-selected__intro {
  align-items: end;
}

.ro-home-selected__title {
  grid-column: 1 / span 6;
  max-width: 12ch;
}

.ro-home-selected__body {
  grid-column: 8 / -1;
  max-width: 46ch;
}

.ro-home-selected__grid {
  margin-top: clamp(56px, 6vw, 96px);
}

.ro-home-selected__qa {
  max-width: 760px;
  margin-top: var(--ro-space-7);
  padding: var(--ro-space-4) var(--ro-space-5);
  border-inline-start: 2px solid var(--ro-color-bronze);
  background: color-mix(in srgb, var(--ro-color-stone) 42%, transparent);
}

.ro-home-selected__qa-text {
  margin: var(--ro-space-2) 0 0;
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-sm);
  line-height: 1.65;
}

/* Bloco 6 — Interlúdio editorial */
.ro-home-editorial-break {
  background: var(--ro-color-stone);
}

.ro-home-editorial-break__media {
  width: 100%;
  min-height: clamp(380px, 54vw, 760px);
  background: var(--ro-color-stone);
}

/* Bloco 7 — Morar × Investir */
.ro-home-perspectives {
  padding-top: clamp(112px, 10vw, 176px);
  padding-bottom: clamp(112px, 10vw, 176px);
  background: var(--ro-color-off-white);
}

.ro-home-perspectives__grid {
  grid-template-rows: auto auto auto;
  row-gap: clamp(48px, 6vw, 88px);
  align-items: start;
}

.ro-home-perspectives__title {
  grid-column: 1 / span 6;
  grid-row: 1;
  max-width: 15ch;
}

.ro-home-perspectives__media {
  grid-column: 1 / span 5;
  grid-row: 2 / span 2;
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.ro-home-perspective {
  min-width: 0;
  padding-top: var(--ro-space-5);
  border-top: 1px solid var(--ro-color-line);
}

.ro-home-perspective--primary {
  grid-column: 7 / span 4;
  grid-row: 2;
}

.ro-home-perspective--secondary {
  grid-column: 8 / -1;
  grid-row: 3;
}

.ro-home-perspective__title {
  margin: 0 0 var(--ro-space-4);
  font-family: var(--ro-font-display);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.ro-home-perspective__body {
  max-width: 46ch;
  margin: 0;
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-md);
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .ro-home-hero__grid {
    min-height: clamp(620px, calc(100svh - 80px), 820px);
  }

  .ro-home-hero__content {
    grid-column: 1 / span 4;
  }

  .ro-home-hero__media {
    grid-column: 5 / -1;
  }

  .ro-home-curation__eyebrow {
    grid-column: 1 / span 2;
  }

  .ro-home-curation__content {
    grid-column: 3 / span 5;
  }

  .ro-home-authority__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ro-space-7) var(--ro-gutter);
  }

  .ro-home-selected__title {
    grid-column: 1 / span 4;
  }

  .ro-home-selected__body {
    grid-column: 5 / -1;
  }

  .ro-home-perspectives__title {
    grid-column: 1 / span 5;
  }

  .ro-home-perspectives__media {
    grid-column: 1 / span 4;
  }

  .ro-home-perspective--primary {
    grid-column: 5 / -1;
  }

  .ro-home-perspective--secondary {
    grid-column: 5 / -1;
  }
}

@media (max-width: 640px) {
  .ro-home-hero__grid {
    min-height: auto;
    padding-block: 56px 0;
    row-gap: var(--ro-space-7);
  }

  .ro-home-hero__content,
  .ro-home-hero__media {
    grid-column: 1 / -1;
  }

  .ro-home-hero__content {
    padding-block: 0;
  }

  .ro-home-hero__title {
    max-width: 13ch;
    font-size: clamp(2.5rem, 11.5vw, 3.25rem);
    line-height: 0.96;
  }

  .ro-home-hero__media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .ro-home-curation {
    padding-top: 88px;
    padding-bottom: 64px;
  }

  .ro-home-curation__eyebrow,
  .ro-home-curation__content {
    grid-column: 1 / -1;
  }

  .ro-home-curation__eyebrow {
    margin-bottom: var(--ro-space-5);
  }

  .ro-home-curation__signature {
    margin-top: var(--ro-space-6);
  }

  .ro-home-authority {
    padding-bottom: 88px;
  }

  .ro-home-authority__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ro-home-authority__item {
    padding: var(--ro-space-5) 0 var(--ro-space-6);
  }

  .ro-home-authority__body {
    max-width: 34ch;
  }

  .ro-home-selected {
    padding-block: 88px 96px;
  }

  .ro-home-selected__title,
  .ro-home-selected__body {
    grid-column: 1 / -1;
  }

  .ro-home-selected__body {
    margin-top: var(--ro-space-5);
  }

  .ro-home-selected__grid {
    margin-top: var(--ro-space-8);
  }

  .ro-home-selected__qa {
    margin-top: var(--ro-space-6);
    padding-inline: var(--ro-space-4);
  }

  .ro-home-editorial-break__media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .ro-home-perspectives {
    padding-block: 96px 104px;
  }

  .ro-home-perspectives__grid {
    grid-template-rows: auto;
    row-gap: var(--ro-space-7);
  }

  .ro-home-perspectives__title,
  .ro-home-perspective--primary,
  .ro-home-perspectives__media,
  .ro-home-perspective--secondary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ro-home-perspectives__title {
    order: 1;
    max-width: 18ch;
    font-size: clamp(1.9rem, 8.5vw, 2.5rem);
    line-height: 1.04;
  }

  .ro-home-perspective--primary {
    order: 2;
  }

  .ro-home-perspectives__media {
    order: 3;
    aspect-ratio: 4 / 5;
  }

  .ro-home-perspective--secondary {
    order: 4;
  }

  .ro-home-perspective {
    padding-top: var(--ro-space-4);
  }

  .ro-home-perspective__body {
    max-width: 36ch;
  }
}
