/* ====== TIPOGRAFIA — ajustes que o SCSS não alcança ======
   Corpo, títulos e navbar já vêm de assets/tema.scss e tema-dark.scss
   (Fraunces nos títulos, Inter no corpo). Aqui ficam só os casos
   fora do controle do Bootstrap: o hero. */

:root{
  --fonte-corpo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fonte-titulo: "Fraunces", Georgia, "Times New Roman", serif;
}

/* Hero novo (rede animada): .iea-title tem <style> embutido no index.qmd,
   por isso o !important garante a fonte de exibição. */
.iea-title{ font-family: var(--fonte-titulo) !important; font-weight: 600; letter-spacing: -0.015em; }
.iea-sub{ font-family: var(--fonte-corpo) !important; font-weight: 400; letter-spacing: 0; }

/* Hero antigo (gradiente), caso ainda apareça em alguma página */
.hero h1{ font-family: var(--fonte-titulo); }
.hero p.lead{ font-family: var(--fonte-corpo); }


/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, #12303f 0%, #1d5b78 55%, #2f7d5b 130%);
  color: #fff;
  padding: 4.5rem 2rem 4rem;
  border-radius: 14px;
  margin: 1.2rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 70%);
}
.hero h1 {
  color: #fff !important;
  font-size: 2.5rem;
  line-height: 1.15;
  max-width: 780px;
  margin-bottom: 1rem;
}
.hero p.lead {
  color: rgba(255,255,255,0.92);
  font-size: 1.2rem;
  max-width: 720px;
  margin-bottom: 1.8rem;
}
.hero .badge-fapesp {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.4rem;
}
.hero .btn-hero {
  display: inline-block;
  background: #fff;
  color: #12303f !important;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  margin-right: 0.7rem;
}
.hero .btn-hero.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.6);
}
.hero .btn-hero:hover { transform: translateY(-1px); transition: 0.15s; }

/* ====== BLOCOS DE DESTAQUE ====== */
.grid-destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  margin: 2rem 0 3rem;
}
.card-destaque {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 1.6rem;
  background: #fbfaf7;
  transition: 0.18s;
}
.card-destaque:hover { box-shadow: 0 8px 24px rgba(18,48,63,0.10); transform: translateY(-2px); }
.card-destaque .icone { font-size: 1.8rem; margin-bottom: 0.5rem; }
.card-destaque h3 { margin-top: 0; font-size: 1.25rem; }

/* ====== EQUIPE ====== */
.grid-equipe {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}
.pessoa {
  text-align: center;
}
.pessoa img, .pessoa .avatar-fallback {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d5b78, #2f7d5b);
  color: #fff; font-size: 2.2rem; font-weight: 600;
  font-family: "Fraunces", Georgia, serif;
}
.pessoa .nome { font-weight: 600; color: #12303f; font-size: 1.02rem; }
.pessoa .papel { font-size: 0.85rem; color: #6b7280; display: block; margin-top: 0.2rem; }
.pessoa .instituicao { font-size: 0.8rem; color: #9aa0a6; }

/* Coordenação em destaque */
.coord-destaque {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}
.coord-card {
  display: flex; gap: 1rem; align-items: center;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: 4px solid #1d5b78;
  border-radius: 10px;
  padding: 1.2rem;
  background: #fbfaf7;
}
.coord-card.vice { border-left-color: #2f7d5b; }
.coord-card .avatar-fallback { width: 72px; height: 72px; font-size: 1.5rem; flex-shrink: 0; }
.coord-card .nome { font-size: 1.1rem; }

/* ====== PARCEIROS ====== */
.parceiros {
  display: flex; flex-wrap: wrap; gap: 1rem 2.2rem;
  align-items: center; justify-content: center;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f6f3ec;
  border-radius: 12px;
}
.parceiros a { color: #1d5b78; font-weight: 500; border: none !important; font-size: 0.95rem; }

/* ====== SEÇÃO ====== */
h2.secao-titulo {
  border-bottom: 2px solid #eef0ec;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  clear: both;
}

/* Impede que o Quarto jogue o conteúdo após um heading para a margem */
main.content { display: block; }
.grid-equipe, .grid-destaques, .coord-destaque, .parceiros { clear: both; width: 100%; }
