/*
Theme Name: ESMEPI Theme
Theme URI: https://www.esmepi.org.br/
Author: Antigravity AI
Author URI: https://esmepi.org.br
Description: Tema personalizado para a Escola Superior da Magistratura do Estado do Piauí.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: esmepi-theme
*/

/* ============================================================
   ESMEPI — Sistema de Design
   Escola Superior da Magistratura do Estado do Piauí
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;0,900;1,400&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Cores Institucionais */
  --verde: #135843;
  --verde-profundo: #0e4535;
  --verde-claro: #1a7a5c;
  --verde-suave: #e8f5f0;

  --vermelho: #931b23;
  --vermelho-escuro: #7a161d;
  --vermelho-claro: #b8232d;

  --dourado: #feef05;
  --dourado-suave: #fff8a1;
  --dourado-escuro: #c4b804;

  /* Neutros */
  --branco: #ffffff;
  --cinza-50: #f8f9fa;
  --cinza-100: #f1f3f5;
  --cinza-200: #e9ecef;
  --cinza-300: #dee2e6;
  --cinza-400: #adb5bd;
  --cinza-500: #6c757d;
  --cinza-600: #495057;
  --cinza-700: #343a40;
  --cinza-800: #2d3436;
  --cinza-900: #1a1a2e;

  /* Semânticas */
  --bg-body: var(--branco);
  --bg-section-alt: var(--cinza-50);
  --bg-dark: var(--verde-profundo);
  --texto-primario: var(--cinza-800);
  --texto-secundario: var(--cinza-600);
  --texto-claro: var(--branco);
  --borda: rgba(19, 88, 67, 0.12);
  --sombra-sm: 0 2px 8px rgba(0,0,0,0.06);
  --sombra-md: 0 4px 20px rgba(0,0,0,0.08);
  --sombra-lg: 0 8px 40px rgba(0,0,0,0.12);
  --sombra-card: 0 2px 16px rgba(19,88,67,0.08);
  --sombra-card-hover: 0 8px 32px rgba(19,88,67,0.16);

  /* Tipografia */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Roboto, sans-serif;
  --fs-hero: clamp(2.4rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
  --fs-h4: 1.125rem;
  --fs-body: 1rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-body: 1.7;
  --lh-heading: 1.2;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  --header-height: 96px;
  --topbar-height: 40px;
  --border-radius: 6px;
  --border-radius-lg: 12px;

  /* Transições */
  --transition: 300ms ease;
  --transition-fast: 150ms ease;
  --transition-slow: 500ms ease;
}

/* --- Reset Moderno --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--topbar-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--texto-primario);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Skip Navigation (Acessibilidade) --- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: var(--branco);
  padding: var(--space-xs) var(--space-md);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-nav:focus {
  top: 0;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--verde-profundo);
  color: var(--branco);
  font-size: var(--fs-xs);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.topbar__info a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

.topbar__info a:hover {
  color: var(--dourado);
}

.topbar__info svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

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

.topbar__social a {
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}

.topbar__social a:hover {
  color: var(--dourado);
  transform: translateY(-1px);
}

.topbar__social svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   HEADER / NAVEGAÇÃO
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--branco);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: all var(--transition);
  border-bottom: 1px solid var(--borda);
}

.header.scrolled {
  box-shadow: var(--sombra-md);
  height: 76px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo img {
  height: 72px;
  width: auto;
  transition: height var(--transition);
}

.header.scrolled .header__logo img {
  height: 56px;
}

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

.header__nav a {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--texto-primario);
  border-radius: var(--border-radius);
  transition: all var(--transition);
  position: relative;
  letter-spacing: 0.01em;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--verde);
  transition: all var(--transition);
  transform: translateX(-50%);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--verde);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 60%;
}

.header__cta {
  margin-left: var(--space-sm);
}

/* Hamburger Mobile */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--verde);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(14, 69, 53, 0.97);
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.mobile-nav.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  color: var(--branco);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  padding: var(--space-xs) var(--space-lg);
  transition: color var(--transition);
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
}

.mobile-nav.active a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav.active a:nth-child(1) { transition-delay: 100ms; }
.mobile-nav.active a:nth-child(2) { transition-delay: 150ms; }
.mobile-nav.active a:nth-child(3) { transition-delay: 200ms; }
.mobile-nav.active a:nth-child(4) { transition-delay: 250ms; }
.mobile-nav.active a:nth-child(5) { transition-delay: 300ms; }
.mobile-nav.active a:nth-child(6) { transition-delay: 350ms; }
.mobile-nav.active a:nth-child(7) { transition-delay: 400ms; }
.mobile-nav.active a:nth-child(8) { transition-delay: 450ms; }

.mobile-nav a:hover {
  color: var(--dourado);
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  border: 2px solid transparent;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--vermelho);
  color: var(--branco);
  border-color: var(--vermelho);
}

.btn--primary:hover {
  background: var(--vermelho-escuro);
  border-color: var(--vermelho-escuro);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 27, 35, 0.3);
}

.btn--secondary {
  background: var(--verde);
  color: var(--branco);
  border-color: var(--verde);
}

.btn--secondary:hover {
  background: var(--verde-profundo);
  border-color: var(--verde-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(19, 88, 67, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--branco);
  border-color: var(--branco);
}

.btn--outline:hover {
  background: var(--branco);
  color: var(--verde);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--verde);
  border-color: var(--verde);
}

.btn--outline-dark:hover {
  background: var(--verde);
  color: var(--branco);
  transform: translateY(-2px);
}

.btn--gold {
  background: var(--dourado);
  color: var(--verde-profundo);
  border-color: var(--dourado);
  font-weight: 800;
}

.btn--gold:hover {
  background: var(--dourado-suave);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 239, 5, 0.3);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--fs-body);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--verde-profundo) 0%, var(--verde) 50%, var(--verde-claro) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(254, 239, 5, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 27, 35, 0.08) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--branco), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(254, 239, 5, 0.15);
  border: 1px solid rgba(254, 239, 5, 0.3);
  color: var(--dourado);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  color: var(--branco);
  margin-bottom: var(--space-md);
}

.hero__title span {
  color: var(--dourado);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__ornament {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
}

.hero__ornament img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Decoração dourada */
.hero__gold-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--dourado), transparent);
  z-index: 3;
}

/* ============================================================
   SEÇÕES GENÉRICAS
   ============================================================ */
.section {
  padding: var(--space-4xl) 0;
}

.section--alt {
  background: var(--cinza-50);
}

.section--dark {
  background: var(--verde-profundo);
  color: var(--branco);
}

.section--verde {
  background: var(--verde);
  color: var(--branco);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: var(--space-sm);
}

.section--dark .section__label,
.section--verde .section__label {
  color: var(--dourado);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: var(--lh-heading);
  color: var(--verde-profundo);
  margin-bottom: var(--space-sm);
}

.section--dark .section__title,
.section--verde .section__title {
  color: var(--branco);
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dourado);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.section__header--left {
  text-align: left;
}

.section__header--left .section__title::after {
  margin-left: 0;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--texto-secundario);
  max-width: 600px;
  margin: var(--space-sm) auto 0;
  line-height: 1.7;
}

.section--dark .section__desc {
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--branco);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--sombra-card);
  border: 1px solid var(--borda);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra-card-hover);
  border-color: var(--verde-claro);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-lg);
}

.card__category {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: var(--space-xs);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--verde-profundo);
  margin-bottom: var(--space-xs);
}

.card__title a:hover {
  color: var(--verde-claro);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-xs);
  color: var(--cinza-500);
}

.card__meta svg {
  width: 14px;
  height: 14px;
}

/* Card de Curso */
.card--curso {
  position: relative;
  border: none;
  overflow: visible;
}

.card--curso .card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  box-shadow: 0 4px 12px rgba(19,88,67,0.2);
}

.card--curso .card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--branco);
}

.card--curso:hover .card__icon {
  background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
}

.card--curso .badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge--presencial {
  background: var(--verde-suave);
  color: var(--verde);
}

.badge--ead {
  background: rgba(147, 27, 35, 0.1);
  color: var(--vermelho);
}

.badge--hibrido {
  background: var(--dourado-suave);
  color: var(--dourado-escuro);
}

.badge--novo {
  background: var(--vermelho);
  color: var(--branco);
}

/* ============================================================
   STATS / NÚMEROS
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.stat {
  text-align: center;
  padding: var(--space-xl) var(--space-sm);
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--dourado);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat__label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   GRID DE NOTÍCIAS
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-lg);
}

.news-grid .card:first-child {
  grid-row: 1 / 3;
}

.news-grid .card:first-child .card__img {
  height: 300px;
}

/* ============================================================
   GRID DE CURSOS
   ============================================================ */
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ============================================================
   ACESSO RÁPIDO
   ============================================================ */
.quick-access {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.quick-access__item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(254, 239, 5, 0.15);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.quick-access__item:hover {
  background: rgba(254, 239, 5, 0.1);
  border-color: var(--dourado);
  transform: translateY(-4px);
}

.quick-access__icon {
  width: 52px;
  height: 52px;
  background: rgba(254, 239, 5, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.quick-access__icon svg {
  width: 24px;
  height: 24px;
  color: var(--dourado);
}

.quick-access__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--branco);
  margin-bottom: var(--space-xs);
}

.quick-access__desc {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   DEPOIMENTOS / CAROUSEL
   ============================================================ */
.testimonials {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 500ms ease;
}

.testimonial {
  min-width: 100%;
  padding: var(--space-2xl);
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--verde-profundo);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.testimonial__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--dourado);
  position: absolute;
  top: -30px;
  left: -20px;
  line-height: 1;
  opacity: 0.5;
}

.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--verde-suave);
}

.testimonial__info {
  text-align: left;
}

.testimonial__name {
  font-weight: 700;
  color: var(--verde-profundo);
  font-size: var(--fs-body);
}

.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--cinza-500);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-lg);
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cinza-300);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.testimonial-dot.active {
  background: var(--verde);
  width: 28px;
  border-radius: 5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--verde-profundo);
  color: var(--branco);
  padding: var(--space-4xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  height: 80px;
  width: auto;
  margin-bottom: var(--space-md);

}

.footer__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer__heading {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--dourado);
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer__links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  padding: 4px 0;
}

.footer__links a:hover {
  color: var(--dourado);
  padding-left: 6px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--dourado);
  flex-shrink: 0;
  margin-top: 2px;
}

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

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social a:hover {
  background: var(--dourado);
  color: var(--verde-profundo);
  transform: translateY(-3px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding: var(--space-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

.footer__bottom a {
  color: rgba(255,255,255,0.5);
}

.footer__bottom a:hover {
  color: var(--dourado);
}

/* ============================================================
   PAGE BANNER (Páginas internas)
   ============================================================ */
.page-banner {
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde));
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-banner__content {
  position: relative;
  z-index: 2;
}

.page-banner__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-banner__breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.page-banner__breadcrumb a:hover {
  color: var(--dourado);
}

.page-banner__breadcrumb span {
  color: var(--dourado);
}

.page-banner__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--branco);
  line-height: var(--lh-heading);
}

.page-banner__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--dourado);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.page-banner__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-sm);
  max-width: 600px;
}

/* ============================================================
   CONTEÚDO / TEXTOS
   ============================================================ */
.content h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--verde-profundo);
  margin-bottom: var(--space-md);
  line-height: var(--lh-heading);
}

.content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--texto-secundario);
}

.content ul, .content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.content li {
  margin-bottom: var(--space-xs);
  line-height: 1.7;
  color: var(--texto-secundario);
  list-style: disc;
}

.content a {
  color: var(--verde);
  font-weight: 600;
  border-bottom: 1px solid rgba(19, 88, 67, 0.3);
}

.content a:hover {
  color: var(--verde-claro);
  border-bottom-color: var(--verde-claro);
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--verde), var(--dourado));
}

.timeline__item {
  position: relative;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--dourado);
  border: 3px solid var(--verde);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--vermelho);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: var(--fs-body);
  color: var(--texto-secundario);
  line-height: 1.7;
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--texto-primario);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--branco);
  border: 2px solid var(--cinza-200);
  border-radius: var(--border-radius);
  font-size: var(--fs-body);
  color: var(--texto-primario);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(19, 88, 67, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cinza-400);
}

/* ============================================================
   FILTROS
   ============================================================ */
.filters {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid var(--cinza-200);
  color: var(--texto-secundario);
  background: var(--branco);
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--verde);
  color: var(--branco);
  background: var(--verde);
}

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-2xl);
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--transition);
  border: 1px solid var(--cinza-200);
}

.pagination a:hover {
  background: var(--verde-suave);
  border-color: var(--verde);
  color: var(--verde);
}

.pagination .active {
  background: var(--verde);
  color: var(--branco);
  border-color: var(--verde);
}

/* ============================================================
   DIRETORIA / TEAM GRID
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.team-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--branco);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--borda);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-card-hover);
}

.team-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--verde-suave);
  background: var(--cinza-100);
}

.team-card__name {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 4px;
}

.team-card__role {
  font-size: var(--fs-sm);
  color: var(--vermelho);
  font-weight: 600;
}

/* ============================================================
   MAPA CONTATO
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}

.map-container {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  height: 400px;
  box-shadow: var(--sombra-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   ANIMAÇÕES
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* Hero animations */
.hero__badge { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.2s; opacity: 0; }
.hero__title { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.4s; opacity: 0; }
.hero__subtitle { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.6s; opacity: 0; }
.hero__actions { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.8s; opacity: 0; }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Tablet Landscape */
@media (max-width: 1200px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  
  .footer__grid > *:last-child {
    grid-column: 1 / -1;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero__ornament {
    width: 350px;
    height: 350px;
    right: -10%;
    opacity: 0.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-access {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-grid .card:first-child {
    grid-row: auto;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-4xl: 4rem;
    --space-3xl: 3rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__ornament {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .stat {
    padding: var(--space-md) var(--space-xs);
  }

  .cursos-grid {
    grid-template-columns: 1fr;
  }

  .quick-access {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .topbar__info {
    gap: var(--space-sm);
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: var(--fs-sm);
  }
}

/* Mobile Small */
@media (max-width: 576px) {
  .topbar {
    display: none;
  }

  .quick-access {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-xs);
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
  }
}

/* Prefer Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus Visible (Acessibilidade) */
:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Print */
@media print {
  .header, .topbar, .footer, .hero__actions, .hamburger, .mobile-nav {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: none;
    color: #000;
    padding: 2em 0;
  }

  .hero__title, .hero__subtitle {
    color: #000;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ============================================================
   COMPONENTES DINÂMICOS (ACF)
   Classes que substituem os estilos inline dos protótipos.
   ============================================================ */

/* --- Acessibilidade --- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.campo-armadilha {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Ações centralizadas ao final das seções --- */
.section__actions {
  text-align: center;
  margin-top: var(--space-xl);
}

.section--filtros {
  padding-top: var(--space-xl);
  padding-bottom: 0;
}

.section--lista {
  padding-top: var(--space-xl);
}

.section__label--esquerda,
.section__title--esquerda {
  text-align: left;
  display: block;
}

.section__title--esquerda {
  margin-bottom: var(--space-md);
}

/* --- Banner com imagem de fundo --- */
.page-banner--imagem {
  background-image: linear-gradient(rgba(14, 69, 53, 0.88), rgba(14, 69, 53, 0.88)), var(--banner-image);
  background-size: cover;
  background-position: center;
}

.page-banner__breadcrumb svg {
  flex-shrink: 0;
}

/* --- Hero com imagem de fundo --- */
.hero--imagem {
  background-image: linear-gradient(rgba(14, 69, 53, 0.9), rgba(14, 69, 53, 0.9)), var(--hero-image);
  background-size: cover;
  background-position: center;
}

/* --- Blocos de ícone --- */
.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--branco);
  flex-shrink: 0;
}

.icon-box--verde {
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  box-shadow: 0 4px 12px rgba(19, 88, 67, 0.2);
}

.icon-box--vermelho {
  background: linear-gradient(135deg, var(--vermelho), var(--vermelho-claro));
  box-shadow: 0 4px 12px rgba(147, 27, 35, 0.2);
}

.icon-box--dourado {
  background: linear-gradient(135deg, var(--dourado-escuro), var(--dourado));
  color: var(--verde-profundo);
  box-shadow: 0 4px 12px rgba(196, 184, 4, 0.2);
}

.icon-box--sm {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin: 0;
}

/* --- Avatares --- */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--space-md);
  background: var(--cinza-100);
  border: 4px solid var(--verde-suave);
}

.avatar--initials {
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--branco);
  border: none;
}

.avatar--sm {
  width: 56px;
  height: 56px;
  margin: 0;
  border: none;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- Cartões --- */
.card--centro .card__body {
  text-align: center;
  padding: 2.5rem 2rem;
}

.card__cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card__cover--lg {
  height: 300px;
}

.card__cover--placeholder {
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(254, 239, 5, 0.4);
}

.card__cover-link {
  display: block;
  overflow: hidden;
}

.card__specs {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--verde);
  margin-top: var(--space-sm);
}

.card__btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-md);
}

.card__text--icone {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card__text--icone svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--verde);
}

.card--curso .badge--novo {
  right: auto;
  left: var(--space-md);
}

.badge--inline {
  position: static !important;
  margin-bottom: var(--space-sm);
}

/* Grade uniforme para as listagens (o destaque ocupa duas colunas). */
.news-grid--uniforme {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-template-rows: none;
}

.news-grid--uniforme .card:first-child {
  grid-row: auto;
}

.news-grid--uniforme .card--destaque {
  grid-column: span 2;
}

@media (max-width: 767px) {
  .news-grid--uniforme .card--destaque {
    grid-column: auto;
  }
}

/* --- Filtros --- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--cinza-100);
  color: var(--texto-secundario);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.filter-btn:hover {
  background: var(--cinza-200);
  color: var(--verde);
}

.filter-btn.active {
  background: var(--verde);
  color: var(--branco);
}

.lista-vazia {
  text-align: center;
  color: var(--texto-secundario);
  padding: var(--space-xl) 0;
}

/* --- Chamada final --- */
.section--cta {
  text-align: center;
}

.cta__titulo {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  color: var(--branco);
  margin-bottom: var(--space-sm);
}

.cta__texto {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
  opacity: 0.9;
  color: var(--branco);
}

/* --- Equipe em lista --- */
.team-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.team-list__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: var(--space-md);
}

.team-list__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--verde-profundo);
  margin-bottom: 2px;
}

.team-list__name {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin: 0;
}

.team-card__bio {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin-top: var(--space-xs);
}

.team-grid--compacto {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* --- Tabela simples --- */
.table-wrap {
  max-width: 800px;
  margin: 0 auto;
  overflow-x: auto;
}

.table-simple {
  border-collapse: collapse;
  width: 100%;
  min-width: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--sombra-card);
}

.table-simple th {
  padding: 16px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--branco);
  background: linear-gradient(135deg, var(--verde), var(--verde-claro));
}

.table-simple td {
  padding: 14px 24px;
  color: var(--texto-primario);
  border-bottom: 1px solid var(--cinza-200);
  background: var(--branco);
}

.table-simple tr:nth-child(even) td {
  background: var(--cinza-50);
}

.table-simple__destaque {
  font-weight: 700;
  color: var(--verde);
  white-space: nowrap;
}

/* --- Revista --- */
.revista-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.revista-capa-wrap {
  display: flex;
  justify-content: center;
}

.revista-capa-img {
  max-width: 320px;
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--sombra-md);
}

.revista-capa {
  width: 320px;
  max-width: 100%;
  height: 440px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  color: var(--branco);
  box-shadow: var(--sombra-md);
  border-left: 15px solid var(--vermelho);
}

.revista-capa__selo {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dourado);
}

.revista-capa__titulo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: var(--space-sm);
}

.revista-capa__edicao {
  font-size: var(--fs-sm);
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-sm);
}

.lista-check {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 var(--space-lg);
}

.lista-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--texto-primario);
}

.lista-check svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--verde);
}

/* --- Painel de informações --- */
.info-panel {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--sombra-sm);
}

.info-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.info-panel__titulo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--verde-profundo);
  margin-bottom: var(--space-sm);
}

.info-panel__rodape {
  border-top: 1px solid var(--borda);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
}

.content--compacto p {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
}

/* --- Contato --- */
.form-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--sombra-sm);
}

.form-card__titulo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--verde-profundo);
  margin-bottom: var(--space-md);
}

.form-card__btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  transition: all var(--transition);
}

.contact-card:hover {
  border-color: var(--verde-claro);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  background: var(--verde-suave);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--verde);
  flex-shrink: 0;
}

.contact-card__titulo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--verde-profundo);
  margin-bottom: 0.25rem;
}

.contact-card__texto {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  line-height: 1.5;
  margin: 0;
}

.channel-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--branco);
}

.channel-icon--whatsapp { background: #25d366; }
.channel-icon--instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.channel-icon--youtube { background: #ff0000; }
.channel-icon--facebook { background: #1877f2; }
.channel-icon--linkedin { background: #0a66c2; }
.channel-icon--esmepi { background: linear-gradient(135deg, var(--verde), var(--verde-claro)); }

/* --- Avisos --- */
.aviso {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.aviso--sucesso {
  background: var(--verde-suave);
  color: var(--verde);
}

.aviso--erro {
  background: rgba(147, 27, 35, 0.1);
  color: var(--vermelho);
}

.aviso svg {
  flex-shrink: 0;
}

/* --- Layout com barra lateral (curso) --- */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-xl);
  align-items: start;
}

.bloco {
  margin-top: var(--space-xl);
}

.bloco__titulo {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--verde-profundo);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--verde-suave);
}

.ficha {
  background: var(--branco);
  border: 1px solid var(--borda);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--sombra-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--space-sm));
  margin-bottom: var(--space-md);
}

.ficha__titulo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--verde-profundo);
  margin-bottom: var(--space-md);
}

.ficha__lista {
  margin: 0 0 var(--space-md);
}

.ficha__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--cinza-200);
}

.ficha__item dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin: 0;
}

.ficha__item dt svg {
  color: var(--verde);
  flex-shrink: 0;
}

.ficha__item dd {
  margin: 0;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--texto-primario);
  text-align: right;
}

.ficha__btn {
  width: 100%;
  justify-content: center;
}

/* --- Módulos e FAQ --- */
.modulos {
  list-style: none;
  counter-reset: modulo;
  padding: 0;
  margin: 0;
}

.modulo {
  counter-increment: modulo;
  border-left: 3px solid var(--verde-suave);
  padding: 0 0 var(--space-md) var(--space-md);
  position: relative;
}

.modulo::before {
  content: counter(modulo);
  position: absolute;
  left: -14px;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--verde);
  color: var(--branco);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modulo__topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}

.modulo__titulo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--verde-profundo);
}

.modulo__carga {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--verde);
  white-space: nowrap;
}

.modulo__desc {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin-top: 4px;
}

.faq {
  border: 1px solid var(--borda);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-xs);
  background: var(--branco);
}

.faq__pergunta {
  padding: 14px var(--space-md);
  font-weight: 600;
  color: var(--verde-profundo);
  cursor: pointer;
  list-style: none;
}

.faq__pergunta::-webkit-details-marker {
  display: none;
}

.faq__pergunta::after {
  content: '+';
  float: right;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--verde);
}

.faq[open] .faq__pergunta::after {
  content: '\2212';
}

.faq__resposta {
  padding: 0 var(--space-md) var(--space-md);
}

/* --- Downloads e galeria --- */
.downloads {
  list-style: none;
  padding: 0;
  margin: 0;
}

.downloads li + li {
  margin-top: var(--space-xs);
}

.downloads a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  background: var(--cinza-50);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--verde-profundo);
  transition: background var(--transition);
}

.downloads a:hover {
  background: var(--verde-suave);
}

.downloads svg {
  flex-shrink: 0;
  color: var(--verde);
}

.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-xs);
}

.galeria__item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

/* --- Página da notícia --- */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.entry-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
}

.entry-meta__item svg {
  color: var(--verde);
}

.entry-thumb {
  margin: 0 0 var(--space-lg);
}

.entry-thumb__img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  display: block;
}

.entry-thumb figcaption {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin-top: var(--space-xs);
  text-align: center;
}

.entry-video {
  margin-bottom: var(--space-lg);
}

.entry-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--border-radius-lg);
}

.entry-fonte {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  border-left: 3px solid var(--verde-suave);
  padding-left: var(--space-sm);
  margin-top: var(--space-lg);
}

.compartilhar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--borda);
}

.compartilhar__rotulo {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--texto-secundario);
  margin-right: var(--space-xs);
}

.compartilhar a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--verde-suave);
  color: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.compartilhar a:hover {
  background: var(--verde);
  color: var(--branco);
}

/* --- Busca e resultados --- */
.busca-form {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.busca-form .form-input {
  flex: 1;
}

.resultado {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--borda);
}

.resultado__tipo {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--verde);
}

.resultado__titulo {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  margin: 4px 0;
}

.resultado__titulo a {
  color: var(--verde-profundo);
}

.resultado__titulo a:hover {
  color: var(--vermelho);
}

.resultado__texto {
  font-size: var(--fs-sm);
  color: var(--texto-secundario);
  margin: 0;
}

/* --- Diversos --- */
.pagination svg {
  display: block;
}

.icon--flip {
  transform: rotate(180deg);
}

.mobile-nav__cta {
  margin-top: var(--space-sm);
}

/* --- Responsivo --- */
@media (max-width: 991px) {
  .single-layout {
    grid-template-columns: 1fr;
  }

  .ficha {
    position: static;
  }

  .revista-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .team-list {
    grid-template-columns: 1fr;
  }

  .info-panel,
  .form-card {
    padding: var(--space-md);
  }

  .filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-xs);
  }

  .filter-btn {
    white-space: nowrap;
  }
}
