/* ============================================================
   COMUNIDADES.CSS — Exclusivos de pages/comunidades.html
   - Hero h1 maior + ornamentos maiores
   - Blocos de comunidades expandidos com mini slider
   - Cards secundários com meta + lista
   - Governança centralizada
   ============================================================ */

h1.h1-display {
  font-size: clamp(2.7rem, 6.8vw, 5.5rem);
}

/* Hero customizado: maior, com ornamentos brancos retangulares */
.page-hero .hero-content { max-width: 1560px; }
.page-hero .hero-content h1 { max-width: 1500px; }
.ornament {
  padding: 28px 30px;
  gap: 22px;
}
.ornament-icon { width: 64px; height: 64px; border-radius: 16px; flex: 0 0 64px; }
.ornament-icon svg { width: 32px; height: 32px; }
.ornament-num { font-size: clamp(2rem, 3vw, 2.625rem); }
.ornament-title { color: var(--branco-puro); font-size: 0.9375rem; }
.ornament-desc { color: rgba(255,255,255,0.85); }

/* ---------- BLOCO EXPANDIDO POR COMUNIDADE ---------- */
.communities-main { background: var(--branco-floresta); }
.communities-main .section-head { text-align: center; max-width: 1100px; margin: 0 auto clamp(48px, 6vw, 80px); }
.community-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
  background: var(--branco-puro);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: clamp(28px, 4vw, 48px);
}
.community-block:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .community-block { grid-template-columns: 1fr 1fr; gap: 56px; }
  .community-block.reverse .community-image { order: 2; }
}
.community-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--verde-nevoa);
}
.community-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.community-block:hover .mini-slider-track img.is-active { transform: scale(1.04); }
.community-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--verde-floresta);
  margin-bottom: 14px;
}
.community-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--verde-nevoa);
  color: var(--verde-floresta);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 22px;
  line-height: 1.4;
}
.community-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.community-actions li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--quase-preto);
}
.community-actions li::before {
  content: "";
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--verde-vivo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231B4332'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- MINI SLIDER (2 imagens por bloco) ---------- */
.mini-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.mini-slider-track { position: relative; width: 100%; height: 100%; }
.mini-slider-track img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.4,0,.2,1), transform 1s ease;
}
.mini-slider-track img.is-active { opacity: 1; }
.mini-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  min-width: 40px; min-height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.90);
  color: var(--verde-floresta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background var(--t-fast), transform var(--t-fast);
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.mini-slider:hover .mini-slider-btn,
.mini-slider:focus-within .mini-slider-btn { opacity: 1; }
.mini-slider-btn:hover { background: var(--branco-puro); transform: translateY(-50%) scale(1.06); }
.mini-slider-btn.prev { left: 12px; }
.mini-slider-btn.next { right: 12px; }
.mini-slider-btn svg { width: 16px; height: 16px; }
.mini-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
  padding: 6px 10px;
  background: rgba(27,67,50,0.45);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.mini-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}
.mini-dot.is-active { background: var(--branco-puro); transform: scale(1.25); }
.mini-dot:hover { background: rgba(255,255,255,0.85); }

/* ---------- CARDS SECUNDÁRIOS (com meta + lista) ---------- */
.pillar-card.dark .pc-meta { color: var(--branco-puro); }
.pillar-card.dark .pc-list li { color: rgba(255,255,255,0.92); }
.pillar-card.dark .pc-list li::before { background: var(--verde-vivo); }
.pillar-card.light .pc-meta { color: var(--cinza-suave); }
.pillar-card.light .pc-list li { color: var(--cinza-suave); }
.pillar-card.light .pc-list li::before { background: var(--verde-medio); }
.pillar-card h3 + .pc-meta { margin-top: -8px; }
.pc-meta {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 18px;
}
.pc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.pc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pc-list li::before {
  content: "";
  width: 6px; height: 6px;
  flex: 0 0 6px;
  margin-top: 9px;
  border-radius: 50%;
}

/* ---------- GOVERNANÇA (centralizada) ---------- */
#governance { text-align: center; }
#governance .h2-section { margin-left: auto; margin-right: auto; }
#governance .closing-box { margin: 0 auto; }

/* ---------- FINAL CTA bg ---------- */
.final-cta::before { background-image: url('../../PAGINAS/Comunidades/tapera.jpg'); }
