/* ==========================================================
   Colégio ECCOS — Estrutura (galeria horizontal)
   Usa .secao (diferenciais.css) e .link-seta (sobre.css)
   ========================================================== */

.estrutura {
  background: var(--azul-profundo);
  color: var(--branco);
  overflow: hidden;
}

.estrutura__topo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.estrutura__topo h2 {
  margin: 0 0 14px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 16em;
}
.estrutura__topo p {
  margin: 0;
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #c3d4ee;
}

/* Botões anterior / próximo */
.galeria__botoes { display: flex; gap: 10px; flex: none; }
.galeria__botao {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  background: transparent;
  color: var(--branco);
  transition: background .2s, border-color .2s, opacity .2s;
}
.galeria__botao svg { width: 22px; height: 22px; }
.galeria__botao:hover:not(:disabled) { background: var(--branco); color: var(--azul-profundo); border-color: var(--branco); }
.galeria__botao:disabled { opacity: .35; cursor: default; }

/* Trilho rolável */
.galeria {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.galeria::-webkit-scrollbar { display: none; }

.espaco {
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}
.espaco__foto {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(170deg, rgba(10,47,107,0) 50%, rgba(10,47,107,.45)),
    var(--fundo, var(--azul));
  background-size: cover;
  background-position: center;
}
.espaco__foto::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px);
}
.espaco__icone {
  position: absolute;
  left: 18px; top: 18px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--branco);
  color: var(--azul-profundo);
}
.espaco__icone svg { width: 24px; height: 24px; }

.espaco h3 {
  margin: 18px 0 6px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.25rem;
}
.espaco p { margin: 0; line-height: 1.6; color: #c3d4ee; font-size: 1rem; }

.estrutura__rodape { margin-top: 44px; }
.estrutura .link-seta { color: var(--branco); border-bottom-color: var(--sol); }
.estrutura .link-seta:hover { color: var(--sol); }
.estrutura :focus-visible { outline-color: var(--sol); }

@media (max-width: 760px) {
  .estrutura__topo { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .galeria { scroll-behavior: auto; }
}
