/* ══════════════════════════════════════════════════════════════════════
   COOPA — Página institucional (Hero)
   Estilos de página: header, hero com carrossel, seções e footer.
   ══════════════════════════════════════════════════════════════════════ */

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* O CTA full-bleed usa 100vw, que inclui a barra de rolagem —
     corta o transbordo horizontal resultante. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-base);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container { max-width: 1100px; width: 90%; margin: 0 auto; }

/* ── Header fixo com blur ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 30px; width: auto; display: block; }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Navegação com dropdowns (hover) */
.site-nav { display: flex; align-items: center; gap: 4px; }

.menu-item { position: relative; }
.menu-item__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-family: var(--font-base);
  font-size: 14.5px;
  font-weight: var(--fw-medium);
  color: var(--ink-700);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.005em;
  white-space: nowrap;
  background: none;
  border: none;
  transition:
    color var(--dur-fast) var(--ease-standard),
    background var(--dur-fast) var(--ease-standard);
}
/* Vale para o trigger dentro de .menu-item e para itens de link direto
   (sem dropdown), como "Fale Conosco". */
a.menu-item__trigger { text-decoration: none; }
a.menu-item__trigger[aria-current="page"] {
  color: var(--text-brand);
  background: var(--surface-brand-soft);
}
.menu-item:hover .menu-item__trigger,
.menu-item:focus-within .menu-item__trigger,
a.menu-item__trigger:hover,
a.menu-item__trigger:focus-visible {
  color: var(--text-brand);
  background: var(--surface-brand-soft);
}
.menu-item__trigger svg { transition: transform var(--dur-fast) var(--ease-standard); }
.menu-item:hover .menu-item__trigger svg,
.menu-item:focus-within .menu-item__trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 280px;
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--dur-fast) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}
.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown__inner {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
}
.dropdown__item {
  display: block;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-standard);
}
.dropdown__item:hover { background: var(--surface-muted); }
.dropdown__item-title { font-size: 14.5px; font-weight: var(--fw-semibold); color: var(--text-body); }
.dropdown__item:hover .dropdown__item-title { color: var(--text-brand); }
.dropdown__item-desc { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); margin-top: 2px; }

/* Menu mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-md);
  color: var(--ink-900);
}
.nav-toggle:hover { background: var(--surface-brand-soft); color: var(--text-brand); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; left: 0; right: 0;
  z-index: 49;
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  padding: 16px 24px 28px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__group { border-bottom: 1px solid var(--border-subtle); padding: 10px 0; }
.mobile-nav__group-title {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-brand);
  padding: 8px 0;
}
.mobile-nav__link {
  display: block;
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--fw-medium);
  color: var(--text-body);
  padding: 9px 0;
}
.mobile-nav__link:hover { color: var(--text-brand); }
.mobile-nav__actions { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(40px, 6vh, 72px);
  position: relative;
  overflow: hidden;
  padding: 120px 0 64px;
}
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--teal {
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at 30% 30%, var(--teal-100), rgba(226, 244, 243, 0) 70%);
}
.hero__blob--warm {
  bottom: -200px; left: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 60% 40%, var(--warm-100), rgba(244, 243, 241, 0) 70%);
}

.hero__carousel-wrap { max-width: 1200px; width: 92%; position: relative; margin: 0 auto; }
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-muted);
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms var(--ease-standard);
  z-index: 1;
}
.carousel__slide.is-active { opacity: 1; z-index: 2; }
.carousel__slide img, .carousel__slide .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel__link { position: absolute; inset: 0; display: block; }

.carousel__arrow {
  position: absolute;
  z-index: 20;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-900);
}
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }

.carousel__dots {
  position: absolute;
  z-index: 20;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.carousel__dot {
  width: 9px; height: 9px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: all 300ms var(--ease-standard);
}
.carousel__dot.is-active { width: 30px; background: var(--white); }

.hero__stats {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hero__stats > div { padding: 8px 4px; }
.hero__stats > div + div { padding-left: 32px; border-left: 1px solid var(--border-subtle); }

/* ── Seções ────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vh, 120px) 0; position: relative; }
.section--muted { background: var(--surface-muted); }
.section--white { background: var(--white); }

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: clamp(40px, 6vh, 64px);
}
.section__title {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  line-height: 1.1;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--text-body);
  text-wrap: pretty;
}
.section__lead {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-700);
  text-wrap: pretty;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

/* ── O que fazemos — pilares ───────────────────────────────────────── */
.pilar-card { height: 100%; display: flex; flex-direction: column; padding: 36px 32px; }
.pilar-card__eyebrow {
  font-family: var(--font-base);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--text-brand);
}
.pilar-card__number {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  color: var(--teal-500);
  font-size: 2.6rem;
  line-height: 1;
  margin: 18px 0 20px;
}
.pilar-card__text {
  margin: auto 0 0;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: 1.18rem;
  line-height: 1.35;
  color: var(--text-body);
  text-wrap: pretty;
}

/* ── Histórias reais — depoimentos ─────────────────────────────────── */
.testimonial {
  margin: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-bubble-tail) var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial__mark {
  font-family: Georgia, serif;
  font-size: 56px;
  line-height: 0.4;
  color: var(--teal-500);
  height: 28px;
}
.testimonial__quote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  flex: 1;
  font-style: italic;
}
.testimonial__author { display: flex; align-items: center; gap: 14px; }
.testimonial__photo {
  width: 52px; height: 52px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  background: var(--teal-100);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: var(--fw-bold); color: var(--teal-700);
}
.testimonial__name { font-weight: var(--fw-bold); font-size: 14.5px; color: var(--text-body); }
.testimonial__meta { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Últimos conteúdos — Instagram ─────────────────────────────────── */
.section__head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vh, 56px);
}
.section__head--split .section__head-copy { display: flex; flex-direction: column; gap: 10px; }
.section__head--split .section__lead { max-width: 520px; }
.section__head--split > a { text-decoration: none; flex: none; }

.ig-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-body);
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--dur-normal) var(--ease-standard),
    transform var(--dur-normal) var(--ease-standard);
}
.ig-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ig-card__media { position: relative; aspect-ratio: 4 / 3; }
.ig-card__media img, .ig-card__media .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-card__badge { position: absolute; top: 12px; left: 12px; }
.ig-card__body { padding: 18px 20px 22px; }
.ig-card__date { font-size: 12px; color: var(--text-muted); letter-spacing: 0.02em; }
.ig-card__caption { margin-top: 8px; font-size: 16px; font-weight: var(--fw-semibold); line-height: 1.4; text-wrap: pretty; }

/* ── Parceiros e convênios ─────────────────────────────────────────── */
.section__head--partners { gap: 14px; margin-bottom: clamp(40px, 6vh, 56px); }
.section__head--partners .section__lead { max-width: 620px; }

.partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.partner-logo {
  height: 84px;
  width: 100%;
  box-sizing: border-box;
  background: var(--white); /* logos JPG têm fundo branco; caixa branca evita ficar marcado */
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px;
}
.partner-logo img { max-width: 160px; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.partners-cta { text-align: center; margin-top: 36px; }
.partners-cta a { text-decoration: none; }
.partners-note {
  margin: 28px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.partners-note strong { color: var(--ink-700); }

/* ── Convênios (carrossel de logos) ────────────────────────────────── */
.logo-slider { position: relative; --ls-per-page: 5; --ls-gap: 18px; padding: 0 56px; }
.logo-slider__viewport { overflow: hidden; }
.logo-slider__track {
  display: flex; gap: var(--ls-gap); list-style: none; margin: 0; padding: 0;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.logo-slider__item {
  flex: 0 0 calc((100% - var(--ls-gap) * (var(--ls-per-page) - 1)) / var(--ls-per-page));
  min-width: 0;
}
.logo-slider__item .partner-logo { text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.logo-slider__item a.partner-logo:hover { border-color: var(--teal-500); box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-2px); }
.logo-slider__arrow {
  position: absolute; top: 42px; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-subtle); background: var(--white); color: var(--ink-900);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: background .2s, color .2s;
}
.logo-slider__arrow:hover { background: var(--teal-700); color: var(--white); border-color: var(--teal-700); }
.logo-slider__arrow:disabled { opacity: .35; cursor: default; }
.logo-slider__arrow--prev { left: 0; }
.logo-slider__arrow--next { right: 0; }
.logo-slider__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; min-height: 8px; }
.logo-slider__dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.18); transition: width .25s, background .25s;
}
.logo-slider__dot.is-active { width: 26px; background: var(--teal-700); }
.logo-slider.is-single .logo-slider__arrow, .logo-slider.is-single .logo-slider__dots { display: none; }
@media (prefers-reduced-motion: reduce) { .logo-slider__track { transition: none; } }

/* ── Página de contato ─────────────────────────────────────────────── */
.page-head {
  padding: calc(76px + clamp(48px, 8vh, 88px)) 0 clamp(40px, 6vh, 64px);
  background: var(--surface-muted);
}
.page-head__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Campos de formulário — réplica do Input/Select do design system */
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label {
  font-size: 13.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-body);
}
.form-field label .req { color: var(--danger); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-base);
  font-size: 15px;
  color: var(--text-body);
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  outline: none;
  transition:
    border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px var(--surface-brand-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-form__note { font-size: 12.5px; line-height: 1.5; color: var(--text-muted); max-width: 320px; }

.contact-aside { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item svg { flex: none; margin-top: 2px; }
.contact-item__label {
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-brand);
}
.contact-item__value { margin-top: 3px; font-size: 15px; line-height: 1.55; color: var(--ink-700); }
.contact-item__value a { color: var(--text-link); text-decoration: none; }
.contact-item__value a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── CTA final ─────────────────────────────────────────────────────── */
.cta-section { padding: 0; }
.cta-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.cta {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 7vw, 96px) clamp(24px, 5vw, 72px);
  box-shadow: var(--shadow-lg);
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; object-fit: cover; }
.cta__bg--empty { background: linear-gradient(135deg, var(--teal-700), var(--green-900)); }
.cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(21, 124, 118, 0.78), rgba(40, 51, 47, 0.62));
}
.cta__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 884px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 8px 40px rgba(12, 74, 70, 0.25);
  padding: clamp(47px, 6.5vw, 78px) clamp(36px, 6.5vw, 73px);
}
.cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-base);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
}
.cta__title {
  font-family: var(--font-display);
  font-weight: var(--fw-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  line-height: 1.12;
  margin: 24px 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--white);
  text-shadow: 0 1px 24px rgba(12, 74, 70, 0.3);
  text-wrap: balance;
}
.cta__title em { font-style: italic; font-weight: var(--fw-medium); }
.cta__action { margin-top: 36px; display: flex; justify-content: center; }
.cta__action a { text-decoration: none; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding-top: clamp(56px, 8vh, 96px);
}
.site-footer__inner { max-width: var(--container-max); width: 92%; margin: 0 auto; }
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding-bottom: clamp(40px, 6vh, 64px);
}
.site-footer__logo { height: 30px; width: auto; display: block; }
.site-footer__about {
  margin: 22px 0 0;
  max-width: 360px;
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.site-footer__contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.site-footer__contact {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
}
.site-footer__contact svg { flex-shrink: 0; }
.site-footer__contact a { color: inherit; text-decoration: none; }
.site-footer__contact a:hover { color: #fff; text-decoration: underline; }
.site-footer__socials { display: flex; gap: 12px; margin-top: 28px; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition:
    background var(--dur-fast) var(--ease-standard),
    border-color var(--dur-fast) var(--ease-standard);
}
.social-link:hover { background: var(--teal-700); border-color: var(--teal-700); }

.site-footer__nav { display: flex; flex-direction: column; }
.site-footer__nav-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-semibold);
  color: var(--teal-500);
  margin-bottom: 14px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14.5px;
  transition: color var(--dur-fast) var(--ease-standard);
}
.footer-link:hover { color: var(--white); }
.footer-link--spaced { margin-top: 8px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer__sign { display: inline-flex; align-items: center; }
.site-footer__sign img { max-width: 35px; height: auto; display: block; }

/* ── Responsivo ────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__actions .btn--ghost { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .logo-slider { --ls-per-page: 3; padding: 0 48px; }
  .carousel { aspect-ratio: 4 / 3; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 36px; }
}

/* Mobile: o carrossel vira quadrado e usa a versão mobile do banner (<picture>). */
@media (max-width: 767px) {
  .carousel { aspect-ratio: 1 / 1; min-height: 0; }
}

@media (max-width: 640px) {
  .hero__stats { grid-template-columns: 1fr; gap: 20px; }
  .hero__stats > div + div { padding-left: 4px; border-left: none; padding-top: 20px; border-top: 1px solid var(--border-subtle); }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-slider { --ls-per-page: 2; --ls-gap: 12px; padding: 0 44px; }
  .logo-slider__arrow { width: 36px; height: 36px; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .carousel__arrow { width: 40px; height: 40px; }
  .carousel__arrow--prev { left: 12px; }
  .carousel__arrow--next { right: 12px; }
  .site-header__inner { padding: 0 20px; }
}

/* ── Complementos: placeholders, prose, notícias, formulários ──────── */
.img-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--teal-100), var(--warm-100));
  color: var(--text-muted);
  font-size: 13px; text-align: center; padding: 16px; box-sizing: border-box;
}
.img-placeholder--soft { background: linear-gradient(135deg, var(--warm-100), var(--warm-200)); }

.prose {
  max-width: 800px; margin: 0 auto;
  font-size: 16.5px; line-height: 1.7; color: var(--ink-700);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display); color: var(--text-body); line-height: 1.2;
  margin-top: 1.8em; letter-spacing: var(--ls-tight);
}
.prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.25rem; } .prose h4 { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose a { color: var(--text-link); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.prose blockquote { margin: 1.4em 0; padding: 0.4em 0 0.4em 1.2em; border-left: 3px solid var(--teal-500); color: var(--ink-700); font-style: italic; }
.prose iframe { max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border-subtle); padding: 8px 12px; text-align: left; }
.prose th { background: var(--warm-100); }
.prose hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 2em 0; }

.news-card .ig-card__caption { font-size: 17px; }
.news-card__excerpt { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.blog-search { display: flex; gap: 10px; width: 100%; max-width: 480px; margin-top: 8px; }
.blog-search input {
  flex: 1; font-family: var(--font-base); font-size: 15px; padding: 11px 16px;
  border: 1.5px solid var(--border-subtle); border-radius: var(--radius-md); background: var(--white); outline: none;
}
.blog-search input:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--surface-brand-soft); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 48px; }
.pagination__info { font-size: 14px; color: var(--text-muted); }

/* Cooperados (listas PF / PJ) */
.members-switch { display: inline-flex; gap: 6px; margin-top: 22px; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--border-subtle); }
.members-switch__item { padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-muted); transition: background .2s, color .2s; }
.members-switch__item:hover { color: var(--text-body); }
.members-switch__item.is-active { background: var(--teal-700); color: #fff; }
.members { max-width: 960px; }
.members__search { margin: 0 auto 22px; max-width: 520px; }
.alpha { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 28px; }
.alpha__item { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text-body); background: var(--surface-muted); border: 1px solid transparent; transition: background .15s, color .15s; }
.alpha__item:hover { background: var(--surface-brand-soft); color: var(--teal-800); }
.alpha__item.is-active { background: var(--teal-700); color: #fff; }
.alpha__item.is-disabled { opacity: .35; cursor: default; pointer-events: none; }
.members__count { text-align: center; font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.members__count[hidden], .members__group[hidden], .members__item[hidden], .members__empty[hidden] { display: none; }
.members__group { display: grid; grid-template-columns: 64px 1fr; gap: 12px 24px; padding: 22px 0; border-top: 1px solid var(--border-subtle); }
.members__group:first-child { border-top: 0; padding-top: 0; }
.members__letter { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--teal-700); margin: 0; letter-spacing: var(--ls-tight); }
.members__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.members__item { display: flex; flex-direction: column; gap: 1px; padding: 8px 0; border-bottom: 1px dashed var(--border-subtle); font-size: 15.5px; line-height: 1.4; }
.members__name { color: var(--text-body); font-weight: 500; }
.members__info { font-size: 13px; color: var(--text-muted); }
@media (max-width: 720px) {
  .members__group { grid-template-columns: 1fr; gap: 8px; }
  .members__list { grid-template-columns: 1fr; }
  .alpha__item { min-width: 32px; height: 32px; font-size: 13px; padding: 0 8px; }
}

.post__meta { font-size: 14px; color: var(--text-muted); }
.post__cover { margin: 0 auto 40px; max-width: 960px; }
.post__cover img { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
/* Galeria de fotos da notícia (2 por linha) */
.post-gallery { max-width: 800px; margin: 40px auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post-gallery__item { margin: 0; }
.post-gallery__item a { display: block; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-muted, #f2f0ea); }
.post-gallery__item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.post-gallery__item a:hover img { transform: scale(1.03); }
.post-gallery__item figcaption { margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }
@media (max-width: 480px) { .post-gallery { grid-template-columns: 1fr; } }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(96vw, 1200px); max-height: 82vh; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #fff; font-size: 14px; padding: 0 60px; }
.lightbox__btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
body.has-lightbox { overflow: hidden; }

.post__share { max-width: 800px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.post__share a { text-decoration: none; }
a.pill-label { text-decoration: none; }

.form-success { display: flex; gap: 14px; align-items: center; color: var(--teal-700); font-size: 16px; line-height: 1.5; padding: 8px 0; }
.form-errors { background: #FBECEB; border: 1px solid #F1C4C1; color: var(--danger); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.form-errors ul { margin: 0; padding-left: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Classes geradas pelo editor (Quill) */
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; } .prose .ql-indent-3 { padding-left: 6em; }
.prose .ql-video { width: 100%; aspect-ratio: 16/9; }
