/* ===========================================
   sections.css — Estilos específicos por seção
   =========================================== */

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  background: var(--green-900);
  min-height: var(--topbar-h);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--topbar-h);
  gap: var(--space-12);
}

.topbar__social {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--navbar-h);
  gap: var(--space-16);
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  width: auto;
  height: 56px;
}

/* ---- Navegação primária ---- */
.nav {
  display: none; /* mobile-first: escondida, abre no drawer */
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav__link {
  position: relative;
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  color: var(--text-nav);
  padding-block: var(--space-4);
  transition: color var(--transition);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green-active);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active {
  color: var(--green-active);
}

.nav__link.is-active {
  font-weight: var(--fw-bold);
}

.nav__link.is-active::after,
.nav__link:hover::after {
  width: 100%;
}

/* ---- Submenu (dropdown) ---- */
.nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Botão de expandir (injetado via JS) — só no drawer mobile. */
.nav__submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: var(--space-4);
  color: var(--text-nav);
  cursor: pointer;
  line-height: 0;
}

.nav__submenu-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.menu-item-has-children.is-open > .nav__submenu-toggle svg {
  transform: rotate(180deg);
}

@media (min-width: 900px) {
  .nav__list .menu-item-has-children {
    position: relative;
  }

  /* Seta (chevron) no item pai. */
  .nav__list .menu-item-has-children > .nav__link {
    padding-right: 1.35em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311472c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 13px;
  }

  /* Ponte invisível para o hover não "cair" no vão até o submenu. */
  .nav__list .menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }

  .nav__list .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 230px;
    padding-block: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--lime-500);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 70;
  }

  .nav__list .menu-item-has-children:hover > .sub-menu,
  .nav__list .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav__list .sub-menu .nav__link {
    display: block;
    padding: var(--space-6) var(--space-16);
    font-size: var(--fs-base);
    white-space: nowrap;
  }

  .nav__list .sub-menu .nav__link::after {
    display: none; /* sem underline animado dentro do dropdown */
  }

  .nav__list .sub-menu .nav__link:hover,
  .nav__list .sub-menu .nav__link:focus-visible {
    background: var(--gray-100);
  }
}

/* =========================================================
   HERO / BANNER
   ========================================================= */
.hero {
  position: relative;
  background: var(--green-900);
  overflow: hidden;
}

/* Slider de banners (crossfade automático) */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Faixa lime no rodapé do banner */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: var(--lime-500);
  z-index: 2;
}

/* Overlay verde p/ legibilidade (reforça no mobile) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(17, 71, 44, 0) 35%, rgba(17, 71, 44, 0.85) 100%);
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 560px;
  padding-block: var(--space-24);
}

/* Indicadores (dots) do slider */
.hero__dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero__dot.is-active {
  width: 26px;
  background: var(--lime-500);
}

.hero__content {
  max-width: 460px;
  color: var(--white);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 1.05rem;
  font-weight: var(--fw-regular);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-12);
}

.hero__eyebrow::before {
  content: "";
  width: 4px;
  height: 1.4em;
  background: var(--lime-500);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  margin-bottom: var(--space-24);
}

.hero__cta {
  font-size: var(--fs-base);
  color: var(--white);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  color: var(--white);
}

@media (min-width: 768px) {
  .hero__inner {
    min-height: 740px;
  }
}

@media (max-width: 767.98px) {
  .hero__inner {
    justify-content: center;
    text-align: center;
    min-height: 480px;
    padding-bottom: 3.25rem; /* espaço p/ os dots não encostarem no CTA */
  }
  .hero__eyebrow {
    justify-content: center;
  }
  /* No mobile mantém o sujeito da foto visível (fica à esquerda) */
  .hero__slide {
    object-position: 32% center;
  }
  /* Overlay mais forte e centralizado no mobile */
  .hero::before {
    background: linear-gradient(180deg, rgba(17, 71, 44, 0.45), rgba(17, 71, 44, 0.88));
  }
  .hero__dots {
    bottom: 16px;
  }
}

/* Respeita quem prefere menos movimento: sem crossfade animado */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}

/* =========================================================
   SOBRE
   ========================================================= */
.about {
  background: var(--white);
  padding-top: var(--space-24);
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-16);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.about__text {
  color: var(--green-900);
  text-align: justify;
  line-height: 1.7;
}

.about__text + .about__text {
  margin-top: var(--space-16);
}

.about__divider {
  border: none;
  border-top: 2px dashed var(--gray-300);
  margin-block: var(--space-24);
}

.about__cta-title {
  font-size: clamp(1.15rem, 1.8vw, 1.375rem);
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-16);
}

.about__cta {
  color: var(--white);
}

.about__cta:hover,
.about__cta:focus-visible {
  color: var(--white);
}

@media (min-width: 900px) {
  .about {
    padding-top: 6rem;
  }
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  /* Alinha a 1ª linha da coluna direita com o 1º parágrafo da esquerda */
  .about__col--offset {
    margin-top: 3.6rem;
  }
}

/* =========================================================
   VÍDEO
   ========================================================= */
.video {
  position: relative;
  background: var(--white);
  padding-bottom: var(--space-24);
  overflow: hidden;
}

/* Elementos decorativos */
.video-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.video-deco--inct {
  left: 20%;
  top: 50%;
  transform: translateY(-50%);
  height: 55%;
  width: auto;
}

.video-deco--defesa {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.5rem;
  width: 27%;
  height: auto;
}

.video-deco--virus {
  right: 23%;
  top: 50%;
  transform: translateY(-50%);
  width: 8%;
  height: auto;
}

/* Placeholder do player */
.video-player {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 770px);
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition);
}

.video-player__thumb {
  width: 100%;
  height: auto;
}

.video-player:hover,
.video-player:focus-visible {
  transform: translateY(-3px);
}

@media (min-width: 900px) {
  .video {
    padding-bottom: 6rem;
  }
}

@media (max-width: 767.98px) {
  /* Decorativos discretos no mobile p/ não competir com o player */
  .video-deco--inct,
  .video-deco--defesa {
    display: none;
  }
  .video-deco--virus {
    width: 18%;
    opacity: 0.5;
  }
}

/* =========================================================
   CONTRIBUIÇÕES (features)
   ========================================================= */
.features {
  background: var(--white);
  padding-block: var(--space-24);
}

.section-title--center {
  text-align: center;
  margin-bottom: var(--space-24);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: var(--space-16) var(--space-24);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 16px;
}

.feature-card__icon {
  flex-shrink: 0;
  width: 64px;
}

.feature-card__icon svg,
.feature-card__icon img {
  width: 100%;
  height: auto;
  display: block;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-6);
}

.feature-card__text {
  color: var(--green-900);
  line-height: 1.6;
}

@media (min-width: 900px) {
  .features {
    padding-block: 6rem;
  }
  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  /* 5º card centralizado, com a largura de uma coluna */
  .feature-card--wide {
    grid-column: 1 / -1;
    width: calc(50% - (var(--space-12) / 2));
    margin-inline: auto;
  }
}

/* =========================================================
   NOSSOS NÚMEROS
   ========================================================= */
.stats {
  background: url("../img/bg-numeros.png") no-repeat top center / cover;
  padding-block: var(--space-24);
}

.stats__title {
  margin-bottom: var(--space-24);
}

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24) var(--space-16);
  max-width: 620px;
}

.stat__number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--lime-600);
  margin-bottom: var(--space-8);
}

.stat__label {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-6);
}

.stat__text {
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.6;
}

@media (min-width: 600px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24) 3rem;
  }
}

@media (min-width: 900px) {
  .stats {
    padding-block: 6rem;
    min-height: 640px;
  }
}

/* No mobile, mantém a foto fora da área de texto */
@media (max-width: 599.98px) {
  .stats {
    background-color: #f2f7ee;
    background-position: 40% top;
  }
}

@media (max-width: 767.98px) {
  .about {
    padding-bottom: var(--space-24);
  }
}

/* =========================================================
   PESQUISA E INOVAÇÃO
   ========================================================= */
.research {
  background: var(--white);
  padding-top: var(--space-24);
}

.research--padded {
  padding-bottom: var(--space-24);
}

.research__intro,
.research__outro {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  color: var(--green-900);
  line-height: 1.6;
}

.research__intro {
  margin-top: calc(var(--space-12) * -1);
  margin-bottom: var(--space-24);
}

.research__graphic {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin-inline: auto;
}

.research__outro {
  margin-top: var(--space-24);
}

@media (min-width: 900px) {
  .research {
    padding-top: 6rem;
  }
  .research--padded {
    padding-bottom: 6rem;
  }
}

/* =========================================================
   OPORTUNIDADES DE COLABORAÇÃO
   ========================================================= */
.collab {
  background: #f4f7ee url("../img/bg-oportunidades.png") no-repeat left center / cover;
}

.collab__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 520px;
  padding-block: var(--space-24);
}

.collab__content {
  max-width: 480px;
}

.collab__text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-24);
}

.collab__cta {
  color: var(--white);
}

.collab__cta:hover,
.collab__cta:focus-visible {
  color: var(--white);
}

@media (min-width: 900px) {
  .collab__inner {
    min-height: 740px;
  }
}

@media (max-width: 767.98px) {
  .collab {
    background-position: 80% center;
  }
  .collab__inner {
    justify-content: center;
    text-align: center;
  }
}

/* =========================================================
   NOTÍCIAS E EVENTOS
   ========================================================= */
.news {
  background: var(--white);
  padding-block: var(--space-24);
}

.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #f6faf4;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 71, 44, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 71, 44, 0.12);
}

.news-card__media {
  display: block;
  aspect-ratio: 21 / 16;
  background: #f6faf4;
  overflow: hidden;
}

.news-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.news-card:hover .news-card__thumb {
  transform: scale(1.05);
}

.news-card__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-16) var(--space-16) var(--space-24);
}

.news-card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--green-active);
  margin-bottom: var(--space-8);
}

.news-card__title a {
  transition: color var(--transition);
}

.news-card__title a:hover {
  color: var(--green-900);
}

.news-card__excerpt {
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.news-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-top: auto;
  transition: gap var(--transition), color var(--transition);
}

.news-card__more svg {
  width: 18px;
  height: 18px;
}

.news-card__more:hover,
.news-card__more:focus-visible {
  color: var(--green-active);
  gap: var(--space-12);
}

.news__action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-24);
}

.news__cta {
  color: var(--white);
}

.news__cta:hover,
.news__cta:focus-visible {
  color: var(--white);
}

@media (min-width: 640px) {
  .news__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .news {
    padding-block: 6rem;
  }
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  background: #b6cf63 url("../img/bg-contato.png") no-repeat center center / cover;
}

.contact__inner {
  display: flex;
  justify-content: flex-end;
  padding-block: var(--space-24);
}

.contact__form {
  width: 100%;
  max-width: 560px;
}

.contact__title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .contact__inner {
    padding-block: 5rem;
    min-height: 640px;
  }
}

/* =========================================================
   FALE CONOSCO (formulário + informações)
   ========================================================= */
.contact-us {
  background: var(--white);
  padding-block: 4.5rem;
}

.contact-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.contact-us__title {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-8);
}

.contact-us__lead {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-24);
  max-width: 420px;
}

/* Campos do formulário com leve tom verde (fundo claro) */
.contact-us__form .field__control {
  background: #F6FAF4;
  border-color: #e2e9da;
}

.contact-us__form .field__control:focus-visible {
  background: var(--white);
  border-color: var(--green-900);
}

/* Botão em lime nesta página */
.contact-us__form .btn-submit {
  background: var(--lime-500);
  color: var(--white);
}

.contact-us__form .btn-submit:hover,
.contact-us__form .btn-submit:focus-visible {
  background: var(--lime-600);
}

/* Coluna de informações */
.contact-info + .contact-info {
  margin-top: var(--space-16);
}

.contact-info__label {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: #658C58;
  margin-bottom: var(--space-6);
}

.contact-info__text {
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.contact-info__text a {
  color: inherit;
  transition: color var(--transition);
}

.contact-info__text a:hover,
.contact-info__text a:focus-visible {
  color: var(--lime-600);
}

.contact-social {
  display: flex;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-social__link {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--lime-500);
  border-radius: var(--radius-pill);
  color: var(--green-900);
  transition: color var(--transition), background var(--transition);
}

.contact-social__link svg {
  width: 16px;
  height: 16px;
}

.contact-social__link:hover,
.contact-social__link:focus-visible {
  background: var(--lime-500);
  color: var(--white);
}

@media (min-width: 768px) {
  .contact-us__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: start;
  }
}


/* =========================================================
   CABEÇALHO DE PÁGINA INTERNA
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: #f1f6e8 url("../img/bg-sobre.png") no-repeat center center / cover;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24);
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-family: 'Northura Light UltCond', var(--font-base);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-900);
  margin-bottom: var(--space-12);
}

.page-hero__eyebrow::before {
  content: "";
  width: 4px;
  height: 1.4em;
  background: var(--lime-500);
  border-radius: 2px;
}

.page-hero__title {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--green-900);
}

@media (min-width: 768px) {
  .page-hero__inner {
    padding-block: 4rem;
  }
}

/* =========================================================
   SINGLE (post individual — notícia)
   ========================================================= */
.single {
  background: var(--white);
}

/* Cabeçalho do post reaproveita o .page-hero */
.single-hero .page-hero__eyebrow a {
  color: inherit;
  transition: color var(--transition);
}

.single-hero .page-hero__eyebrow a:hover {
  color: var(--lime-600);
}

.single-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8) var(--space-24);
  margin-top: var(--space-16);
}

.single-meta__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.single-meta__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--lime-600);
}

/* Imagem destacada */
.single__featured {
  margin-block: var(--space-24);
}

.single__featured-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Largura de leitura confortável */
.single__container {
  max-width: 760px;
}

/* Conteúdo (the_content) */
.single__content {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 1.05rem;
}

.single__content > * + * {
  margin-top: var(--space-16);
}

.single__content h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-top: var(--space-24);
}

.single__content h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-top: var(--space-16);
}

.single__content a {
  color: var(--green-active);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.single__content a:hover {
  color: var(--lime-600);
}

.single__content ul,
.single__content ol {
  padding-left: var(--space-24);
}

.single__content li {
  list-style: disc;
  margin-top: var(--space-8);
}

.single__content ol li {
  list-style: decimal;
}

.single__content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.single__content blockquote {
  border-left: 4px solid var(--lime-500);
  padding: var(--space-8) var(--space-16);
  background: #f6faf4;
  border-radius: 0 12px 12px 0;
  color: var(--green-900);
  font-size: 1.1rem;
  font-style: italic;
}

/* Tags */
.single__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-24);
}

.single__tags a {
  display: inline-block;
  padding: var(--space-4) var(--space-12);
  font-size: var(--fs-sm);
  color: var(--green-900);
  background: #f1f6e8;
  border: 1px solid #e2e9da;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition);
}

.single__tags a:hover {
  background: var(--lime-500);
  color: var(--green-900);
}

/* Compartilhar */
.single__share {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  margin-top: var(--space-24);
  padding-top: var(--space-16);
  border-top: 1px solid var(--gray-300);
}

.single__share-label {
  font-weight: var(--fw-bold);
  color: var(--green-900);
}

.single__share-list {
  list-style: none;
  display: flex;
  gap: var(--space-8);
}

/* Variante escura do social-link para fundo claro */
.social-link--dark {
  border-color: var(--green-900);
  color: var(--green-900);
}

.social-link--dark svg {
  background: var(--green-900);
}

.social-link--dark:hover svg {
  background: var(--lime-600);
}

/* Navegação entre posts */
.single__pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  margin-block: var(--space-24);
  padding-top: var(--space-24);
  border-top: 1px solid var(--gray-300);
}

.single__pager-link {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-12) var(--space-16);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 14px;
  color: var(--green-900);
  transition: border-color var(--transition), transform var(--transition);
}

.single__pager-link:hover {
  border-color: var(--lime-500);
  transform: translateY(-2px);
}

.single__pager-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--lime-600);
}

.single__pager-link span {
  display: flex;
  flex-direction: column;
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.single__pager-link small {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.single__pager-link--next {
  text-align: right;
  justify-content: flex-end;
}

@media (min-width: 600px) {
  .single__pager {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   PESQUISAS (lista com filtro por linha de pesquisa)
   ========================================================= */
.research-list {
  background: var(--white);
  padding-block: var(--space-24);
}

.research-list .section-title {
  margin-bottom: 0;
}

/* ---- Filtro em slide ---- */
.filter {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  border-bottom: 1px solid #e2e9da;
  margin-bottom: var(--space-24);
}

.filter__nav {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--lime-600);
  background: transparent;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.filter__nav svg {
  width: 20px;
  height: 20px;
}

.filter__nav:hover,
.filter__nav:focus-visible {
  color: var(--green-900);
  background: #f0f4e8;
}

.filter__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.filter__track {
  display: flex;
  gap: var(--space-24);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.filter__track::-webkit-scrollbar {
  display: none;
}

.filter__tab {
  position: relative;
  flex-shrink: 0;
  padding: var(--space-12) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  white-space: nowrap;
  color: rgba(17, 71, 44, 0.6);
  background: transparent;
  transition: color var(--transition);
}

.filter__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--green-900);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.filter__tab:hover {
  color: var(--green-900);
}

.filter__tab.is-active {
  color: var(--green-900);
  font-weight: var(--fw-bold);
}

.filter__tab.is-active::after {
  transform: scaleX(1);
}

/* ---- Grade de cards ---- */
.research-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.research-card {
  display: flex;
  flex-direction: column;
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 71, 44, 0.12);
}

.research-card__media {
  display: block;
  aspect-ratio: 21 / 15;
  background: #e7ede0;
  overflow: hidden;
}

.research-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.research-card:hover .research-card__thumb {
  transform: scale(1.05);
}

.research-card__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-16);
}

.research-card__title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--green-active);
  margin-bottom: var(--space-8);
}

.research-card__title a {
  transition: color var(--transition);
}

.research-card__title a:hover {
  color: var(--green-900);
}

.research-card__excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-16);
}

.research-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime-600);
  transition: gap var(--transition), color var(--transition);
}

.research-card__more svg {
  width: 18px;
  height: 18px;
}

.research-card__more:hover,
.research-card__more:focus-visible {
  color: var(--green-active);
  gap: var(--space-12);
}

@media (min-width: 600px) {
  .research-list__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .research-list {
    padding-block: 6rem;
  }
  .research-list__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =========================================================
   MISSÃO E PROPÓSITO
   ========================================================= */
.mission {
  background: var(--white);
  padding-block: var(--space-24);
}

.mission__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.mission-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-24);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 16px;
}

.mission-card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-12);
}

.mission-card__text {
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.7;
}

.mission-card__full > .mission-card__text + .mission-card__text {
  margin-top: var(--space-12);
}

.mission-card__more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-16);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime-600);
  transition: color var(--transition);
}

.mission-card__more svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.mission-card__more[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mission-card__more:hover,
.mission-card__more:focus-visible {
  color: var(--green-active);
}

@media (min-width: 768px) {
  .mission {
    padding-block: 6rem;
  }
  .mission__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }
}

/* =========================================================
   FUNDAMENTOS CIENTÍFICOS
   ========================================================= */
.fundamentos {
  background: var(--white);
  padding-block: var(--space-24);
}

.fundamentos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.fundamentos__text {
  color: var(--green-900);
  text-align: justify;
  line-height: 1.7;
}

.fundamentos__text + .fundamentos__text {
  margin-top: var(--space-16);
}

.fundamentos__list {
  margin-top: var(--space-16);
}

.fundamentos__list li {
  position: relative;
  padding-left: var(--space-16);
  color: var(--green-900);
  line-height: 1.6;
}

.fundamentos__list li + li {
  margin-top: 3px;
}

.fundamentos__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-active);
}

@media (min-width: 900px) {
  .fundamentos {
    padding-block: 6rem;
  }
  .fundamentos__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }
  /* Alinha a coluna direita com o 1º parágrafo da esquerda */
  .fundamentos__col--offset {
    margin-top: 4.6rem;
  }
}

/* =========================================================
   CONEXÃO COM OS ODS
   ========================================================= */
.ods {
  background: #eef4e6;
  padding-block: var(--space-24);
}

.ods__intro,
.ods__outro {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
}

.ods__intro {
  margin-top: calc(var(--space-12) * -1);
  margin-bottom: var(--space-24);
}

.ods__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-12);
}

.ods__items img {
  width: clamp(96px, 12vw, 130px);
  height: auto;
  border-radius: 4px;
}

.ods__outro {
  margin-top: var(--space-24);
}

@media (min-width: 900px) {
  .ods {
    padding-block: 6rem;
  }
}

/* =========================================================
   ESTRUTURA DE GOVERNANÇA
   ========================================================= */
.governance {
  background: var(--white) url("../img/bg-estrutura.png") no-repeat left center / contain;
}

.governance__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: var(--space-24);
}

.governance__content {
  width: 100%;
  max-width: 540px;
}

.governance__text {
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.7;
}

.governance__text + .governance__text {
  margin-top: var(--space-16);
}

@media (min-width: 992px) {
  .governance__inner {
    min-height: 680px;
    padding-top: 8rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 991.98px) {
  .governance {
    background: var(--white);
  }
}

/* =========================================================
   LINHAS DE PESQUISA PRIORITÁRIAS
   ========================================================= */
.lines {
  background: #f2f7ee;
  padding-block: var(--space-24);
}

.lines__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.line-card {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 96px;
  padding: var(--space-8) var(--space-24);
  background: #edf4e8;
  border: 1px solid #dde7cf;
  border-radius: 14px;
  color: var(--green-active);
  font-weight: var(--fw-bold);
  line-height: 1.4;
}

.lines__action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-24);
}

.lines__cta {
  color: var(--white);
  text-align: center;
}

.lines__cta:hover,
.lines__cta:focus-visible {
  color: var(--white);
}

@media (min-width: 640px) {
  .lines__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .lines {
    padding-block: 6rem;
  }
  .lines__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   INSTITUIÇÕES PARTICIPANTES
   ========================================================= */
.insts {
  background: var(--white);
  padding-block: var(--space-24);
}

.insts__intro {
  max-width: 1000px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: calc(var(--space-12) * -1);
  margin-bottom: var(--space-24);
}

.insts__grid {
  --cols: 2;
  --gap: var(--space-16);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.inst-card {
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: var(--space-16) var(--space-12);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.inst-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 71, 44, 0.08);
}

.inst-card img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 600px) {
  .insts__grid {
    --cols: 3;
  }
}

@media (min-width: 900px) {
  .insts {
    padding-block: 6rem;
  }
  .insts__grid {
    --cols: 6;
  }
}

/* =========================================================
   FINANCIADORES
   ========================================================= */
.funders {
  background: var(--white);
  padding-bottom: var(--space-24);
}

.funders__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-16);
}

.funder-card {
  flex: 0 0 180px;
}

@media (min-width: 900px) {
  .funders {
    padding-bottom: 6rem;
  }
}

/* =========================================================
   EQUIPE (cards de pesquisadores)
   ========================================================= */
.team {
  background: var(--white);
  padding-block: var(--space-24);
}

.team .section-title {
  margin-bottom: var(--space-24);
}

/* Segundo bloco de equipe na sequência: sem padding-top duplicado */
.team--alt {
  padding-top: 0;
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-24) var(--space-16);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(17, 71, 44, 0.10);
}

/* Avatar em formato de escudo */
.team-card__avatar {
  width: 92px;
  height: 104px;
  margin-bottom: var(--space-16);
  background: var(--lime-500);
  clip-path: url(#shieldClip);
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#shieldClip);
}

/* Placeholder (sem imagem) */
.team-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
}

.team-card__placeholder svg {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

.team-card__name {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-4);
}

.team-card__role {
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-bottom: var(--space-12);
}

.team-card__text {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 600px) {
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .team {
    padding-block: 6rem;
  }
}

/* =========================================================
   PESQUISADORES E ALUNOS (lista de texto)
   ========================================================= */
.people {
  background: var(--white);
  padding-bottom: var(--space-24);
}

/* Variante com fundo suave para alternar seções consecutivas */
.people--alt {
  background: var(--gray-100);
}

.people .section-title {
  margin-bottom: var(--space-24);
}

.people__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24) var(--space-24);
}

.people-item {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.people-item__avatar {
  flex-shrink: 0;
  width: 68px;
  height: 76px;
  margin: 0;
  background: var(--lime-500);
  clip-path: url(#shieldClip);
}

.people-item__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#shieldClip);
}

.people-item__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
}

.people-item__placeholder svg {
  width: 32px;
  height: 32px;
  opacity: 0.85;
}

.people-item__body {
  min-width: 0;
}

.people-item__name {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--green-active);
  margin-bottom: var(--space-4);
}

.people-item__inst {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--lime-600);
  margin-bottom: var(--space-4);
}

.people-item__text {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Cartão sem foto (ex.: Pesquisadores): nome + instituição + Lattes,
   sem avatar. Um leve destaque para não parecer uma lista solta. */
.people--no-photo .people-item {
  align-items: flex-start;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-12) var(--space-16);
  background: var(--gray-100);
  border-left: 3px solid var(--lime-500);
  border-radius: var(--radius-sm);
}

.people--no-photo.people--alt .people-item {
  background: var(--white);
}

/* Respiro vertical nas faixas de Alunos de Pós-Graduação, Alunos e Administrativo. */
#alunos-de-pos-graduacao,
#alunos,
#administrativo {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

@media (min-width: 768px) {
  .people__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: var(--space-24);
  }
}

@media (min-width: 980px) {
  .people__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .people {
    padding-bottom: 6rem;
  }
}

/* =========================================================
   REDE DE LABORATÓRIOS (carrossel)
   ========================================================= */
.labs {
  background: #f2f7ee;
  padding-block: var(--space-24);
}

.labs .section-title {
  margin-bottom: var(--space-16);
}

.labs__intro {
  max-width: 820px;
  margin: 0 auto var(--space-24);
  text-align: center;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Carrossel genérico ---- */
.carousel {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.carousel__nav {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--lime-600);
  background: transparent;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}

.carousel__nav svg {
  width: 22px;
  height: 22px;
}

.carousel__nav:hover,
.carousel__nav:focus-visible {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.6);
}

.carousel__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.carousel__track {
  display: flex;
  gap: var(--space-16);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

/* ---- Card de laboratório ---- */
.lab-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 71, 44, 0.06);
}

.lab-card__media {
  display: block;
  aspect-ratio: 21 / 15;
  background: #e7ede0;
  overflow: hidden;
}

.lab-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.lab-card__media:hover .lab-card__thumb {
  transform: scale(1.05);
}

.lab-card__body {
  display: flex;
  flex-direction: column;
  padding: var(--space-16);
}

.lab-card__title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--green-active);
  margin-bottom: var(--space-12);
}

.lab-card__title a {
  transition: color var(--transition);
}

.lab-card__title a:hover {
  color: var(--green-900);
}

.lab-card__address {
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.lab-card__address svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--lime-600);
}

@media (min-width: 600px) {
  .lab-card {
    flex-basis: 46%;
  }
}

@media (min-width: 980px) {
  .labs {
    padding-block: 6rem;
  }
  .lab-card {
    flex-basis: calc((100% - 2 * var(--space-16)) / 3);
  }
}

/* =========================================================
   SUB-NAVEGAÇÃO (categorias de notícias/eventos)
   ========================================================= */
.subnav {
  background: var(--white);
  padding-top: var(--space-16);
}

.subnav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-12);
  font-size: var(--fs-sm);
}

.subnav__link {
  color: var(--green-900);
  transition: color var(--transition);
}

.subnav__link:hover,
.subnav__link:focus-visible {
  color: var(--lime-600);
}

.subnav__link.is-active {
  color: var(--lime-600);
  font-weight: var(--fw-bold);
}

/* separador "|" entre os itens */
.subnav__list li:not(:first-child)::before {
  content: "|";
  margin-right: var(--space-12);
  color: var(--gray-300);
}

/* =========================================================
   NOTÍCIAS (listagem de posts)
   ========================================================= */
.posts {
  background: var(--white);
  padding-block: 3rem;
}

.posts .section-title {
  margin-bottom: var(--space-24);
}

.posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

@media (min-width: 600px) {
  .posts__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .posts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================================================
   ARTIGOS (cards por ano)
   ========================================================= */
.articles {
  background: var(--white);
  padding-block: 3rem;
}

.articles .section-title {
  margin-bottom: var(--space-24);
}

.articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.article-card {
  background: #F6FAF4;
  border: 1px solid #e2e9da;
  border-radius: 16px;
  padding: var(--space-24);
  text-align: center;
}

.article-card__year {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--green-900);
  margin-bottom: var(--space-16);
}

.article-card__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-12);
}

.article-card__title a {
  color: inherit;
  transition: color var(--transition);
}

.article-card__title a:hover,
.article-card__title a:focus-visible {
  color: var(--lime-600);
}

.article-card__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .articles__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================================================
   PATENTES / DISSERTAÇÕES (listas em 2 colunas)
   ========================================================= */
.prod-lists {
  background: #f2f7ee;
  padding-block: 5rem;
}

.prod-lists__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
}

.prod-list__heading {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-16);
}

.prod-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prod-list__item {
  padding-bottom: var(--space-16);
  margin-bottom: var(--space-16);
  border-bottom: 1px solid #d5e0cb;
}

.prod-list__item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.prod-list__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-8);
}

.prod-list__title a {
  color: inherit;
  transition: color var(--transition);
}

.prod-list__title a:hover,
.prod-list__title a:focus-visible {
  color: var(--lime-600);
}

.prod-list__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .prod-lists__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24) var(--space-24);
  }
}

@media (min-width: 980px) {
  .prod-lists__grid {
    gap: var(--space-24) 7rem;
  }
}


/* =========================================================
   SOFTWARES (texto + imagem de fundo)
   ========================================================= */
.softwares {
  position: relative;
  background: var(--white) url("../img/bg-softwares.png") no-repeat right center;
  background-size: contain;
}

.softwares__inner {
  padding-block: 5rem;
}

.softwares__text {
  position: relative;
  z-index: 1;
  max-width: 460px;
}

.softwares__heading {
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-16);
}

.softwares__p {
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.7;
}

.softwares__p + .softwares__p {
  margin-top: var(--space-16);
}

/* Variante com imagem à esquerda e texto à direita (Protocolos) */
.softwares--left {
  background-image: url("../img/bg-protocolos.png");
  background-position: left center;
}

.softwares--left .softwares__text {
  margin-left: auto;
}

@media (max-width: 767.98px) {
  /* No mobile a imagem cobre o fundo; overlay branco garante leitura */
  .softwares {
    background-size: cover;
  }
  .softwares::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.82);
  }
  .softwares__text {
    max-width: none;
  }
}


/* =========================================================
   EVENTOS (cards com data)
   ========================================================= */
.events {
  background: var(--white);
  padding-bottom: 3rem;
}

.events .section-title {
  margin-bottom: var(--space-24);
}

.events__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
}

.event-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-16);
  padding: var(--space-24);
  background: #f6faf4;
  border: 1px solid #e7ede0;
  border-radius: 16px;
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
  color: var(--green-active);
}

.event-card__day {
  font-size: 2.75rem;
  font-weight: var(--fw-bold);
}

.event-card__month {
  margin-top: var(--space-4);
  font-size: 1.25rem;
  font-weight: var(--fw-medium);
  color: var(--lime-600);
}

.event-card__title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--green-active);
  margin-bottom: var(--space-8);
}

.event-card__text {
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .events__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-24);
  }
}

/* =========================================================
   COBERTURA NA MÍDIA (vídeos)
   ========================================================= */
.coverage {
  background: #f2f7ee;
  padding-block: 3.5rem;
}

.coverage__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  align-items: center;
}

.coverage__eyebrow {
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--green-900);
  margin-bottom: var(--space-4);
}

.coverage__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  text-transform: uppercase;
  color: var(--lime-600);
  margin-bottom: var(--space-16);
}

.coverage__desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-24);
}

.coverage__cta {
  color: var(--white);
}

.coverage__cta:hover,
.coverage__cta:focus-visible {
  color: var(--white);
}

/* Lista de vídeos */
.coverage__videos {
  display: flex;
  gap: var(--space-12);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.coverage__videos::-webkit-scrollbar {
  display: none;
}

.coverage__videos > li {
  flex: 0 0 58%;
  scroll-snap-align: start;
}

.video-card {
  position: relative;
  display: block;
  aspect-ratio: 9 / 13;
  border-radius: 14px;
  overflow: hidden;
  background: #e7ede0;
  box-shadow: 0 8px 22px rgba(17, 71, 44, 0.12);
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.video-card:hover .video-card__thumb {
  transform: scale(1.05);
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: var(--lime-500);
  color: var(--green-900);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), background var(--transition);
}

.video-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--lime-600);
}

@media (min-width: 768px) {
  .coverage__inner {
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-24) 3rem;
  }
  .coverage__videos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
    overflow: visible;
  }
  .coverage__videos > li {
    flex: none;
  }
}

@media (min-width: 980px) {
  .coverage {
    padding-block: 7rem;
  }
}

/* =========================================================
   GALERIA DE FOTOS (masonry)
   ========================================================= */
.gallery {
  background: linear-gradient(150deg, #c5d27e 0%, #a4b85b 55%, #8fa451 100%);
  padding-block: var(--space-24);
}

.gallery__title {
  color: var(--white);
  margin-bottom: var(--space-12);
}

.gallery__intro {
  max-width: 760px;
  margin: 0 auto var(--space-24);
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.gallery__grid {
  column-count: 2;
  column-gap: var(--space-16);
}

.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--space-16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(17, 71, 44, 0.18);
}

.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 400ms ease;
}

.gallery__item:hover img {
  transform: scale(1.04);
}

@media (min-width: 600px) {
  .gallery__grid {
    column-count: 3;
  }
}

@media (min-width: 900px) {
  .gallery__grid {
    column-count: 4;
  }
}

@media (min-width: 980px) {
  .gallery {
    padding-block: 4rem;
  }
}

/* =========================================================
   OPORTUNIDADES (painel + carrossel de editais)
   ========================================================= */
.opps {
  background: var(--white);
  padding-block: var(--space-24);
}

.opps .section-title {
  margin-bottom: var(--space-24);
}

/* Painel */
.opp-block {
  background: #f6faf4;
  border: 1px solid #e2e9da;
  border-radius: 24px;
  padding: var(--space-12);
}

.opp-block + .opp-block {
  margin-top: var(--space-24);
}

/* Cabeçalho do painel */
.opp-block__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.opp-block__label {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
  margin-bottom: var(--space-8);
}

.opp-block__text {
  color: var(--text-muted);
  line-height: 1.7;
}

.opp-block__cta {
  align-self: flex-start;
  color: var(--white);
  flex-shrink: 0;
}

.opp-block__cta:hover,
.opp-block__cta:focus-visible {
  color: var(--white);
}

/* Carrossel */
.opp-carousel {
  position: relative;
}

.opp-carousel__track {
  display: flex;
  gap: var(--space-16);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: var(--space-4);
}

.opp-carousel__track::-webkit-scrollbar {
  display: none;
}

.opp-carousel .research-card {
  flex: 0 0 66%;
  scroll-snap-align: start;
  background: #f0f6ec;
}

/* Fade em gradiente na borda direita (sugere mais itens) */
.opp-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: var(--space-4);
  width: 22%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right, rgba(246, 250, 244, 0), #f6faf4 92%);
  border-radius: 0 16px 16px 0;
  transition: opacity var(--transition);
}

/* Esconde o fade quando chega ao fim */
.opp-carousel.is-end::after {
  opacity: 0;
}

/* Setas */
.opp-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(17, 71, 44, 0.18);
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}

.opp-carousel__arrow svg {
  width: 22px;
  height: 22px;
}

.opp-carousel__arrow--prev {
  left: -8px;
}

.opp-carousel__arrow--next {
  right: -8px;
}

.opp-carousel__arrow:hover,
.opp-carousel__arrow:focus-visible {
  background: var(--lime-500);
}

.opp-carousel__arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 600px) {
  .opp-carousel .research-card {
    flex-basis: 36%;
  }
}

@media (min-width: 768px) {
  .opp-block {
    padding: 2.5rem;
  }
  .opp-block__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .opp-block__intro {
    max-width: 60%;
  }
  .opp-block__cta {
    align-self: auto;
  }
}

@media (min-width: 980px) {
  .opps {
    padding-block: 4rem;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--green-900);
  background-image: radial-gradient(circle at 20% 0%, rgba(136, 179, 59, 0.18), transparent 55%);
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-24);
  align-items: start;
  padding-block: var(--space-24);
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--space-16);
}

.footer__logo img {
  height: 60px;
  width: auto;
}

.footer__brand {
  max-width: 460px;
}

.footer__org {
  font-weight: var(--fw-bold);
  color: var(--lime-500);
  line-height: 1.4;
  margin-bottom: var(--space-8);
}

.footer__line {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.footer__line + .footer__line {
  margin-top: var(--space-8);
}

.footer__line a:hover {
  color: var(--lime-500);
  text-decoration: underline;
}

.footer__social {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

/* ---- Navegação do rodapé ---- */
.footer__nav-title {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--lime-500);
  margin-bottom: var(--space-12);
}

.footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-24);
}

.footer__menu a {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  transition: color var(--transition);
}

.footer__menu a:hover,
.footer__menu a:focus-visible {
  color: var(--lime-500);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--space-16);
}

.footer__bottom p {
  text-align: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.footer__bottom a:hover {
  color: var(--lime-500);
  text-decoration: underline;
}

.footer__credit {
  margin-top: var(--space-6);
}

.footer__heart {
  color: #e26d6d;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    padding-block: 3.5rem;
  }
  .footer__nav {
    justify-self: end;
  }
}

/* =========================================================
   DESKTOP (≥ 900px)
   ========================================================= */
@media (min-width: 900px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none; /* hambúrguer só no mobile */
  }
}

/* =========================================================
   MENU MOBILE (drawer)
   ========================================================= */
@media (max-width: 899.98px) {
  .nav {
    display: block;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 320px);
    background: var(--white);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.12);
    padding: calc(var(--navbar-h) + var(--space-16)) var(--space-16) var(--space-16);
    transform: translateX(100%);
    transition: transform 280ms ease;
    z-index: 60;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .nav__link {
    font-size: var(--fs-lg);
  }

  /* Submenu recolhível no drawer. */
  .nav__submenu-toggle {
    display: inline-flex;
  }

  .nav .menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-8);
  }

  .nav .sub-menu {
    display: none;
    flex-basis: 100%;
    padding-left: var(--space-16);
  }

  .nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .nav .sub-menu .nav__link {
    font-size: var(--fs-md);
    padding-block: var(--space-6);
  }

  /* Overlay escuro atrás do drawer */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 55;
  }

  .nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

  /* Esconde social/área restrita muito apertados, se necessário */
  .topbar__social {
    gap: var(--space-6);
  }
}

/* =========================================================
   Projetos de Pesquisa (page-projetos.php)
   ========================================================= */
.projects {
  padding-block: 4rem;
}

.projects__lead {
  text-align: center;
  max-width: 60rem;
  margin-inline: auto;
  margin-bottom: var(--space-24);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  color: var(--text-body);
}

.projects__list {
  display: grid;
  gap: var(--space-24);
  max-width: 60rem;
  margin-inline: auto;
}

.project-item {
  padding: var(--space-24);
  background: var(--gray-100);
  border-radius: 1rem;
  border-left: 4px solid var(--lime-500);
}

.project-item__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: var(--green-active);
  margin-bottom: var(--space-12);
}

.project-item__text {
  color: var(--text-muted);
  line-height: 1.7;
  text-align: justify;
}

@media (min-width: 768px) {
  .projects {
    padding-block: 5.5rem;
  }
  .project-item {
    padding: var(--space-24) 2.5rem;
  }
}

/* =========================================================
   CTAs rápidos (page-pesquisa.php)
   ========================================================= */
.research-ctas {
  padding-block: 2rem 1rem;
}

.research-ctas__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-16);
}

.research-ctas__btn {
  min-width: 16rem;
  text-align: center;
}

/* =========================================================
   Seções "somente nome" (Pesquisadores / Alunos de Pós)
   ========================================================= */
.people--names {
  padding-block: 3rem;
}

.names-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 var(--space-24);
  max-width: 62rem;
  margin-inline: auto;
}

.names-list__item {
  padding: var(--space-12) var(--space-4);
  border-bottom: 1px solid var(--gray-300);
  color: var(--text-body);
  font-weight: var(--fw-medium);
  line-height: 1.4;
}

@media (min-width: 600px) {
  .names-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .names-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Nome que é link para o Lattes (lista somente-nome) */
.names-list__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--green-800);
  text-decoration: none;
  transition: color var(--transition);
}

.names-list__link svg {
  width: 0.9em;
  height: 0.9em;
  opacity: 0;
  transition: opacity var(--transition);
}

.names-list__link:hover,
.names-list__link:focus-visible {
  color: var(--green-active);
  text-decoration: underline;
}

.names-list__link:hover svg,
.names-list__link:focus-visible svg {
  opacity: 1;
}

/* Link "Acesse o Lattes" nos cartões com foto (.team-card / .people-item) */
.lattes-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--green-800);
  text-decoration: none;
  transition: color var(--transition);
}

.lattes-link svg {
  width: 0.9em;
  height: 0.9em;
}

.lattes-link:hover,
.lattes-link:focus-visible {
  color: var(--green-active);
  text-decoration: underline;
}

/* =========================================================
   Publicações (page-publicacoes.php)
   ========================================================= */
.pubs {
  padding-block: 3rem 4rem;
}

.pubs__lead {
  text-align: center;
  margin-bottom: var(--space-24);
}

.pubs-list {
  list-style: none;
  max-width: 64rem;
  margin-inline: auto;
  counter-reset: none;
}

.pub-item {
  display: flex;
  gap: var(--space-12);
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--gray-300);
  color: var(--text-body);
  line-height: 1.6;
}

.pub-item__num {
  flex-shrink: 0;
  min-width: 2.5rem;
  font-weight: var(--fw-bold);
  color: var(--green-active);
}

.pub-item__ref {
  text-align: left;
}

@media (min-width: 768px) {
  .pubs {
    padding-block: 4rem 5.5rem;
  }
}

/* =========================================================
   Logos de financiadores no conteúdo (linhas de pesquisa)
   ========================================================= */
.linha-funders {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24);
  margin-block: var(--space-16) var(--space-24);
}

.linha-funders img {
  max-height: 56px;
  width: auto;
}

/* =========================================================
   Consentimento de cookies (popup fixo)
   ========================================================= */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: var(--space-16);
  z-index: 1200;
  width: calc(100% - var(--space-24) * 2);
  max-width: 960px;
  background: var(--white);
  color: var(--text-body);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--lime-500);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%) translateY(calc(100% + var(--space-24)));
  opacity: 0;
  transition: transform 320ms ease, opacity 320ms ease;
}

.cookie-consent.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-8) var(--space-16);
  padding: var(--space-8) var(--space-16);
}

.cookie-consent__text {
  flex: 1 1 420px;
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--text-body);
}

.cookie-consent__link {
  color: var(--green-800);
  font-weight: var(--fw-medium);
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: var(--green-900);
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  flex-shrink: 0;
}

.cookie-consent__btn {
  font-family: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cookie-consent__btn--accept {
  background: var(--green-800);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cookie-consent__btn--accept:hover,
.cookie-consent__btn--accept:focus-visible {
  background: var(--green-900);
}

.cookie-consent__btn--reject {
  background: transparent;
  color: var(--green-800);
  border-color: var(--gray-300);
}

.cookie-consent__btn--reject:hover,
.cookie-consent__btn--reject:focus-visible {
  border-color: var(--green-800);
  background: var(--gray-100);
}

.cookie-consent__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .cookie-consent {
    width: calc(100% - var(--space-8) * 2);
    bottom: var(--space-8);
  }

  .cookie-consent__inner {
    padding: var(--space-12);
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent {
    transition: opacity 200ms ease;
    transform: translateX(-50%);
  }

  .cookie-consent.is-visible {
    transform: translateX(-50%);
  }
}
