/* Usa as variáveis globais definidas em assets/css/variables.css */

/* ── Page (versão específica desta página) ──
   Usa "div.page" em vez de só ".page" para não afetar o <body>,
   que o WordPress também marca com a classe "page" em qualquer Página. */
div.page {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 20px;
}

/* Corrige um comportamento clássico do flexbox/grid: por defeito, os
   elementos não encolhem abaixo do tamanho do próprio conteúdo
   (min-width:auto). Aplicado a TODOS os descendentes. */
div.page,
div.page * {
  min-width: 0;
}

/* Força os blocos diretos do div.page a ocuparem sempre 100% da
   largura disponível, em vez de confiarem no "stretch" do flexbox. */
div.page > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ══════════════════════════════════════════
   BLEEDS
   ══════════════════════════════════════════ */

.bleed,
.bleed-reverse {
  display: grid;
  min-height: auto;
  height: 400px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: static;
  left: auto;
  transform: none;
}

.bleed {
  grid-template-columns: 1fr 2fr;
}

.bleed-reverse {
  grid-template-columns: 2fr 1fr;
}

/* ── imagem ── */
.bleed-img {
  overflow: hidden;
}

.bleed-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

.bleed-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.bleed:hover .bleed-placeholder img,
.bleed-reverse:hover .bleed-placeholder img {
  transform: scale(1.03);
}

/* ── texto ── */
.bleed-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 2rem 2.5rem;
  background: var(--surface);
}

.bleed-title {
  font-family: 'Caracolina', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
  padding-left: 20px;
}

.bleed-desc {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: black;
  line-height: 1.8;
  max-width: 320px;
}

.bleed-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  gap: .4rem;
  transition: color .2s, gap .2s;
  width: fit-content;
  border-bottom: 1px solid var(--border-mid);
  padding-bottom: .2rem;
}

.bleed-link:hover {
  color: var(--c-clay);
  gap: .8rem;
  border-color: var(--c-clay);
}


/* ── responsive ── */
@media (max-width: 760px) {
  .bleed,
  .bleed-reverse {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
  }

  .bleed-reverse .bleed-img { order: -1; }
  .bleed-img {
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 260px;
    flex-shrink: 0;
  }

  .bleed-text {
    height: auto !important;
    overflow: visible !important;
    padding: 1.75rem 1.25rem;
    gap: 1rem;
  }

  .bleed-title {
    font-size: 1.9rem;
  }

  .bleed-desc {
    font-size: 15px;
    max-width: 100%;
  }
}
