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

/* ── Page (versão específica desta página) ──
   Usa "main.page" (esta página usa <main class="page"> diretamente,
   sem uma <div class="page"> extra por dentro). */
main.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;
}

/* 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), o que fazia caixas com largura fixa (ex:
   moda-descricao) empurrar a página para os lados em ecrãs pequenos.
   Aplicado a TODOS os descendentes, não só aos filhos diretos. */
main.page,
main.page * {
  min-width: 0;
}

/* Força os blocos diretos do main.page a ocuparem sempre 100% da
   largura disponível, em vez de confiarem no "stretch" do flexbox
   (que estava a falhar quando um neto tinha largura fixa em px). */
main.page > * {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: black;
  background: #ffffff;
  border: 2px dashed #f180b4;
  border-radius: var(--radius-lg);
  padding: .75rem 1.25rem;
  margin-top: 2rem;
  width: fit-content;
}

.breadcrumb a {
  color: black;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover { color: #F180B4; }
.breadcrumb span { color: var(--border-mid); }
.breadcrumb span:last-child { color: var(--ink-mid); }

/* ── Painel visual ── */
.painel-visual-tudo {
  position: relative;
  margin: 1rem 0;
}

.painel-visual {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.painel-visual:hover {
  transform: scale(1.10);
  cursor: pointer;
}

.clica-aqui {
  width: 250px;
  position: absolute;
  top: 20%;
  left: 22%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.subtitle {
  font-family: 'Caracolina', serif;
  font-size: 2.2rem;
  font-weight: 450;
  line-height: .92;
  color: var(--ink);
  text-align: center;
  margin-top: .1rem;
}

/* ══════════════════════════════════════════
   BLEEDS (versão desta página: texto centrado)
   ══════════════════════════════════════════ */
.bleed,
.bleed-reverse {
  display: grid;
  height: 100%;
  width: 100%;
  max-width: 1100px;
  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; }

.bleed img,
.bleed-reverse img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

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

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

.bleed-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 2rem 2.5rem;
  background: #fff;
}

.bleed-title {
  font-family: 'Caracolina', serif;
  font-size: 50px;
  font-weight: 300;
  color: black;
  line-height: 1.05;
}

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

@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: 240px;
    flex-shrink: 0;
  }

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

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

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

/* ── Hero "Desfile" (versão centrada) ── */
.cat-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: calc(20px * 2.5);
}

.cat-hero-texto {
  width: 100%;
  text-align: center;
}

.cat-titulo {
  font-family: 'Caracolina', serif;
  font-size: 50px;
  font-weight: 200;
  line-height: .92;
  color: black;
  align-items: center;
}

/* ── Grid de fotos do desfile ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: auto;
}

@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr; gap: 20px; }
  .photo-grid img { height: 320px; }
}

.photo-grid img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 12px;
}

.photo-grid img:hover {
  transform: scale(1.03);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}

/* ── Descrição do desfile ── */
.desfile {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 3rem auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-mid);
}

.moda-descricao {
  font-family: var(--font-display);
  width: 700px;
  max-width: 100%;
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(15,23,42,0.1);
  font-style: italic;
  font-size: 18px;
  font-weight: 200;
  color: #000000;
  text-align: center;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .moda-descricao {
    padding: 20px 16px;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 .5rem;
  }
}
