/* ==========================================================================
   LAPPES - UERJ | Folha de Estilos Principal (CSS3 Puro)
   Direção Visual: Laranja Institucional Predominante + Branco como Contraste
   Recursos: Escala de Fonte (A / A+ / A++), Modo Escuro e Carrossel JENEPS
   ========================================================================== */

:root {
  /* Paleta Laranja Predominante + Contraste Branco */
  --color-white: #FFFFFF;
  --color-canvas: #FFF2EA;
  --color-canvas-alt: #FFE4D4;
  --color-surface: #FFFFFF;
  --color-surface-soft: #FFF7F2;

  --color-orange: #EA4C15;
  --color-orange-bright: #F2541B;
  --color-orange-strong: #C53807;
  --color-orange-hover: #A82D04;
  --color-orange-deep: #8F2402;
  --color-orange-light: #FFEADF;
  --color-orange-border: #F8C4AC;

  /* Gradientes Laranja Protagonistas */
  --gradient-orange-hero: linear-gradient(135deg, #F2541B 0%, #D93E09 52%, #B32D02 100%);
  --gradient-orange-band: linear-gradient(135deg, #E84912 0%, #C73606 100%);
  --gradient-footer: linear-gradient(160deg, #280D04 0%, #160702 100%);

  /* Neutros Quentes de Alto Contraste */
  --color-black: #18120F;
  --color-dark: #241A15;
  --color-text: #221915;
  --color-text-muted: #5C4B43;
  --color-text-light: #7A665C;
  --color-border: #F2D5C6;
  --color-border-strong: #E5B9A3;

  /* Tipografia */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaçamento e Layout */
  --container-max: 1240px;
  --header-height: 100px;

  /* Bordas e Raios */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-pill: 9999px;

  /* Sombras Quentes */
  --shadow-xs: 0 2px 6px rgba(120, 32, 4, 0.06);
  --shadow-sm: 0 8px 22px rgba(120, 32, 4, 0.09);
  --shadow-md: 0 16px 40px rgba(110, 28, 3, 0.14);
  --shadow-lg: 0 24px 56px rgba(84, 18, 0, 0.26);
  --shadow-orange: 0 12px 28px rgba(197, 56, 7, 0.28);

  /* Transições */
  --transition-fast: 180ms ease;
  --transition-base: 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   ACESSIBILIDADE: TAMANHO DA LETRA (A / A+ / A++)
   ========================================================================== */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
  overflow-x: clip;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

html[data-fonte="2"] {
  font-size: 112.5%;
}

html[data-fonte="3"] {
  font-size: 125%;
}

/* ==========================================================================
   ACESSIBILIDADE: MODO ESCURO (data-tema="escuro")
   ========================================================================== */
html[data-tema="escuro"] {
  color-scheme: dark;
  --color-canvas: #120D0B;
  --color-canvas-alt: #1B1310;
  --color-surface: #231915;
  --color-surface-soft: #2B1F1A;

  --color-orange: #FF6B35;
  --color-orange-bright: #FF7847;
  --color-orange-strong: #E04814;
  --color-orange-hover: #FF8559;
  --color-orange-light: rgba(255, 107, 53, 0.16);
  --color-orange-border: rgba(255, 120, 71, 0.34);

  --gradient-orange-hero: linear-gradient(135deg, #BA3709 0%, #8E2503 55%, #591501 100%);
  --gradient-orange-band: linear-gradient(135deg, #9E2C05 0%, #6E1C02 100%);
  --gradient-footer: linear-gradient(160deg, #0D0907 0%, #070504 100%);

  --color-black: #FAF4F0;
  --color-dark: #18110E;
  --color-text: #F7EFEA;
  --color-text-muted: #D5C3B8;
  --color-text-light: #A89286;
  --color-border: #3B2B23;
  --color-border-strong: #523B30;

  --shadow-xs: 0 2px 8px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.62);
  --shadow-orange: 0 12px 28px rgba(0, 0, 0, 0.45);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-wrap: break-word;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

html[data-fonte="3"] h1,
html[data-fonte="3"] h2,
html[data-fonte="3"] h3,
html[data-fonte="3"] h4 {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.grid-2 > *,
.grid-3 > *,
.hero-grid > *,
.contact-layout > *,
.footer-grid > *,
.books-grid > *,
.bus-grid > *,
.timeline-item-grid > * {
  min-width: 0;
}

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

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

ul, ol {
  list-style: none;
}

/* Acessibilidade Base */
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--color-white);
  color: #B32D02;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2.5px solid var(--color-orange);
  outline-offset: 3px;
}

.hero :focus-visible,
.page-hero :focus-visible,
.section-orange :focus-visible {
  outline-color: var(--color-white);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografia Utilitária */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.text-orange {
  color: var(--color-orange-strong);
}

html[data-tema="escuro"] .text-orange {
  color: var(--color-orange);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-orange-strong);
  background: var(--color-surface);
  border: 1px solid var(--color-orange-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}

html[data-tema="escuro"] .eyebrow {
  color: var(--color-orange-bright);
  background: var(--color-orange-light);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.eyebrow-dark {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--color-white);
}

.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.18;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   BOTÕES (CONTRASTE LARANJA + BRANCO)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.2;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Seta discreta (sem círculo) que desliza no hover */
.btn .btn-arrow {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background-color: var(--color-orange-strong);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(120, 32, 4, 0.18), 0 4px 12px rgba(197, 56, 7, 0.22);
}

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(120, 32, 4, 0.2), 0 8px 18px rgba(197, 56, 7, 0.26);
}

.btn-dark {
  background-color: #18120F;
  color: var(--color-white);
}

.btn-dark:hover {
  background-color: #2E211B;
  transform: translateY(-1px);
}

html[data-tema="escuro"] .btn-dark {
  background-color: #120D0B;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-outline {
  background-color: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-outline:hover {
  border-color: var(--color-orange-strong);
  color: var(--color-orange-strong);
  background-color: var(--color-orange-light);
}

html[data-tema="escuro"] .btn-outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-bright);
}

/* Botão branco sólido sobre fundos laranja: texto escuro, seta laranja */
.btn-white {
  background-color: var(--color-white);
  color: #1B110D;
  box-shadow: 0 1px 2px rgba(72, 16, 0, 0.16), 0 6px 16px rgba(72, 16, 0, 0.16);
}

.btn-white .btn-arrow {
  color: var(--color-orange-strong);
}

.btn-white:hover {
  background-color: #FFF5EE;
  color: #1B110D;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(72, 16, 0, 0.18), 0 10px 22px rgba(72, 16, 0, 0.2);
}

/* Botão fantasma sobre fundos laranja */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* ==========================================================================
   CABEÇALHO PRINCIPAL + PÍLULA DE NAVEGAÇÃO + CONTROLE "Aa"
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  max-width: 1360px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logos {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  padding-left: 12px;
  border-left: 3px solid var(--color-orange-bright);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-orange-strong);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

html[data-tema="escuro"] .brand-sub {
  color: var(--color-orange-bright);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  padding: 7px 8px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 18px rgba(180, 48, 4, 0.08);
}

html[data-tema="escuro"] .nav-list {
  background: var(--color-surface-soft);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-text);
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-orange-strong);
  background: var(--color-orange-light);
}

html[data-tema="escuro"] .nav-link:hover {
  color: var(--color-orange-bright);
}

.nav-link.active {
  color: var(--color-white);
  background: var(--color-orange-strong);
  box-shadow: 0 4px 12px rgba(197, 56, 7, 0.3);
}

/* Botão "Aa" e Painel de Leitura / Acessibilidade (fiel à referência) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.a11y-controls {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-aa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--color-orange-strong);
  background: var(--color-surface);
  color: var(--color-orange-strong);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-aa:hover,
.btn-aa[aria-expanded="true"] {
  background: var(--color-orange-light);
  box-shadow: 0 0 0 3px rgba(234, 76, 21, 0.14);
}

html[data-tema="escuro"] .btn-aa {
  border-color: var(--color-orange);
  color: var(--color-orange-bright);
}

.a11y-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1200;
  width: min(312px, calc(100vw - 28px));
  padding: 18px;
  border-radius: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 48px rgba(24, 18, 15, 0.18);
}

html[data-tema="escuro"] .a11y-panel {
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.65);
}

.a11y-panel[hidden] {
  display: none !important;
}

.a11y-label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  padding: 0 4px;
}

.a11y-label + .a11y-segments + .a11y-label {
  margin-top: 16px;
}

.a11y-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: #F4F4F6;
}

html[data-tema="escuro"] .a11y-segments {
  background: #16100D;
}

.a11y-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.a11y-seg-btn:hover {
  background: rgba(197, 56, 7, 0.1);
}

.a11y-seg-btn[aria-pressed="true"] {
  background: #C2410C;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.3);
}

.a11y-segments-font .a11y-seg-btn {
  font-weight: 800;
}

.a11y-segments-font .a11y-seg-btn:nth-child(1) {
  font-size: 0.98rem;
}

.a11y-segments-font .a11y-seg-btn:nth-child(2) {
  font-size: 1.18rem;
}

.a11y-segments-font .a11y-seg-btn:nth-child(3) {
  font-size: 1.36rem;
}

.menu-toggle {
  display: none;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--color-black);
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--color-orange-strong);
  color: var(--color-orange-strong);
}

/* ==========================================================================
   HERO PRINCIPAL DA HOME — LARANJA PROTAGONISTA + CONTRASTE BRANCO
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 92px;
  background-color: #D93E09;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.16) 1.25px, transparent 1.25px),
    radial-gradient(circle at 86% 16%, rgba(255, 224, 194, 0.28) 0%, transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(112, 22, 0, 0.36) 0%, transparent 50%),
    var(--gradient-orange-hero);
  background-size: 24px 24px, 100% 100%, 100% 100%, 100% 100%;
  color: var(--color-white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 48px solid rgba(255, 255, 255, 0.06);
  right: -160px;
  bottom: -220px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--color-white);
  box-shadow: none;
}

.hero-title {
  color: var(--color-white);
  /* O mínimo encolhe em telas estreitas para "Produtos Pedagógicos"
     (≈11,2em) caber numa linha só (container + folga para barra de rolagem) */
  font-size: clamp(min(2.15rem, calc((100vw - 58px) / 11.6)), 3.9vw, 3.35rem);
  line-height: 1.16;
  margin-bottom: 22px;
}

/* Nos heros, a palavra-chave em balão fica sempre numa linha só */
.hero-title .text-orange,
.page-hero h1 .text-orange {
  white-space: nowrap;
}

/* Título do Hero em 3 linhas fixas. A fonte acompanha a largura da coluna
   (container query) para a linha mais longa — "para/com Educadores Sociais."
   — sempre caber inteira, sem balões quebrados ou empilhados. */
.hero-content {
  container-type: inline-size;
  min-width: 0;
}

.hero-title:has(.hero-line) {
  font-size: min(3.35rem, calc(100cqi / 15.4));
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.br-mobile {
  display: none;
}

/* Celular: "para/com / Educadores Sociais" vira UM balão com duas linhas
   dentro (largura justa ao texto), e a fonte pode ficar maior. */
@media (max-width: 599px) {
  .hero-title:has(.hero-line) {
    font-size: min(2.4rem, calc(100cqi / 12.6));
  }

  .br-mobile {
    display: inline;
  }

  .hero-title .text-orange.hero-key {
    display: inline-block;
    line-height: 1.12;
    padding: 0.1em 0.3em 0.14em;
    margin-top: 0.12em;
    vertical-align: baseline;
  }
}

/* Palavra-chave nos títulos sobre laranja: "balão" branco de contraste.
   - box-decoration-break: clone → cada linha vira um balão completo
     (cantos e respiro dos dois lados), alinhados pela esquerda;
   - line-height maior só nas linhas que têm balão → quando a palavra
     quebra, os balões ficam empilhados com um vão limpo, sem se encostar. */
.hero-title .text-orange,
.page-hero h1 .text-orange,
.section-orange .section-title .text-orange {
  color: #C53807;
  background: var(--color-white);
  line-height: 1.5;
  padding: 0.02em 0.26em 0.05em;
  margin: 0 0.04em;
  border-radius: 0.24em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 0 4px 14px rgba(84, 18, 0, 0.16);
}

.hero-lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 30px;
  max-width: 60ch;
}

.hero-lead strong {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

/* Botões invertidos sobre o Hero Laranja: Branco sólido de contraste */
.hero .btn {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1rem;
}

.hero .btn-primary,
.page-hero .btn-primary {
  background-color: var(--color-white);
  color: #1B110D;
  box-shadow: 0 1px 2px rgba(72, 16, 0, 0.16), 0 8px 20px rgba(72, 16, 0, 0.2);
}

.hero .btn-primary:hover,
.page-hero .btn-primary:hover {
  background-color: #FFF5EE;
  color: #1B110D;
  box-shadow: 0 2px 4px rgba(72, 16, 0, 0.18), 0 12px 26px rgba(72, 16, 0, 0.24);
}

.hero .btn-primary .btn-arrow,
.page-hero .btn-primary .btn-arrow {
  color: var(--color-orange-strong);
}

.hero .btn-dark,
.page-hero .btn-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: none;
}

.hero .btn-dark:hover,
.page-hero .btn-white:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  border-color: var(--color-white);
}

.hero-Tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-tag {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--color-white);
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
}

/* Foto inteira no formato original (16:9), sem texto por cima,
   para o letreiro "UERJ" no gramado ficar visível */
.hero-image-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Legenda em faixa própria abaixo da foto */
.hero-image-overlay {
  display: flex;
  flex-direction: column;
  padding: 16px 22px 18px;
  background: var(--color-dark);
  color: var(--color-white);
}

.hero-image-overlay span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFB08F;
  font-weight: 800;
}

.hero-image-overlay p {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 4px;
  color: var(--color-white);
}

.hero-floating-badge {
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--color-white);
  color: #221915;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(68, 14, 0, 0.32);
  text-align: center;
  max-width: 182px;
  border: 2px solid #FFE4D4;
}

.hero-floating-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: #C53807;
  margin-bottom: 5px;
}

.hero-floating-badge span {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: #4A3830;
  display: block;
}

/* ==========================================================================
   BARRA DE INDICADORES EM CONTRASTE BRANCO
   ========================================================================== */
.metrics-section {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  padding-bottom: 28px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border);
  overflow: hidden;
}

.metric-card {
  padding: 28px 24px;
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background var(--transition-fast);
}

.metric-card:last-child {
  border-right: none;
}

.metric-card.highlight {
  background: var(--gradient-orange-band);
  color: var(--color-white);
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--color-orange-strong);
  margin-bottom: 6px;
}

html[data-tema="escuro"] .metric-number {
  color: var(--color-orange-bright);
}

.metric-card.highlight .metric-number {
  color: var(--color-white);
}

.metric-label {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 3px;
}

.metric-card.highlight .metric-label {
  color: var(--color-white);
}

.metric-desc {
  font-size: 0.81rem;
  color: var(--color-text-muted);
}

.metric-card.highlight .metric-desc {
  color: rgba(255, 255, 255, 0.92);
}

/* ==========================================================================
   SEÇÕES DE RITMO LARANJA + BRANCO DE CONTRASTE
   ========================================================================== */
.section {
  padding: 84px 0;
}

/* Seções de destaque intenso em Laranja Sólido com Cards Brancos de Contraste */
.section-soft {
  background-color: var(--color-canvas-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-orange {
  position: relative;
  background-color: #D93E09;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px),
    var(--gradient-orange-band);
  background-size: 26px 26px, 100% 100%;
  color: var(--color-white);
  border-top: 0;
  border-bottom: 0;
}

.section-orange .section-title {
  color: var(--color-white);
}

.section-orange .section-subtitle {
  color: rgba(255, 255, 255, 0.92);
}

.section-orange .eyebrow:not(.card .eyebrow):not(.academic-panel .eyebrow) {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--color-white);
  box-shadow: none;
}

.section-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

/* ==========================================================================
   CARDS EM BRANCO PURO DE CONTRASTE
   ========================================================================== */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-orange-bright);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--color-text);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-orange-bright);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--gradient-orange-band);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(197, 56, 7, 0.24);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--color-black);
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-orange-strong);
}

html[data-tema="escuro"] .card-link {
  color: var(--color-orange-bright);
}

.card-link:hover {
  gap: 10px;
}

/* Card de Alto Contraste Laranja Intenso */
.card-contrast-orange {
  background: var(--gradient-orange-band);
  color: var(--color-white);
  border-color: transparent;
  border-top-color: var(--color-white);
  box-shadow: var(--shadow-orange);
}

.card-contrast-orange h3,
.card-contrast-orange p,
.card-contrast-orange .card-link {
  color: var(--color-white);
}

.card-contrast-orange .card-icon {
  background: var(--color-white);
  color: #C53807;
  box-shadow: none;
}

.card-contrast-dark {
  background: #24130C;
  color: var(--color-white);
  border-color: #452417;
  border-top: 4px solid var(--color-orange-bright);
}

.card-contrast-dark h3 {
  color: var(--color-white);
}

.card-contrast-dark p {
  color: #EADCD5;
}

.card-contrast-dark .card-link {
  color: #FF9870;
}

/* Cards de Projetos */
.project-card {
  text-align: left;
}

.project-logo-box {
  height: 150px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 22px;
}

.project-logo-box img {
  max-height: 110px;
  width: auto;
  object-fit: contain;
}

/* Painéis de Graduação e Pós-Graduação */
.academic-panel {
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
}

.academic-panel-light {
  background: var(--color-surface);
}

.academic-panel-dark {
  background: #23120B;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.16);
}

.academic-panel-dark h3,
.academic-panel-dark h4 {
  color: var(--color-white);
}

.academic-panel-dark p {
  color: #EADCD5;
}

.academic-logo-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.academic-panel-dark .academic-logo-strip {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.academic-logo-strip img {
  max-height: 62px;
  width: auto;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  padding: 6px 10px;
}

.academic-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 18px 0 26px;
}

.academic-box {
  background: var(--color-surface-soft);
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.academic-panel-dark .academic-box {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.academic-box h4 {
  font-size: 0.95rem;
  color: var(--color-orange-strong);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html[data-tema="escuro"] .academic-box h4,
.academic-panel-dark .academic-box h4 {
  color: #FF8E63;
}

.academic-box p {
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ==========================================================================
   CABEÇALHO DE PÁGINAS INTERNAS — LARANJA PREDOMINANTE + CONTRASTE BRANCO
   ========================================================================== */
.page-hero {
  position: relative;
  background-color: #D93E09;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.15) 1.25px, transparent 1.25px),
    radial-gradient(circle at 88% 20%, rgba(255, 218, 190, 0.25) 0%, transparent 45%),
    var(--gradient-orange-hero);
  background-size: 24px 24px, 100% 100%, 100% 100%;
  color: var(--color-white);
  padding: 64px 0 60px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.page-hero h1 {
  color: var(--color-white);
  /* Mínimo encolhe para "Formação Continuada" (≈10,9em) caber numa linha */
  font-size: clamp(min(2rem, calc((100vw - 58px) / 11.3)), 3.6vw, 3.05rem);
  line-height: 1.16;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.94);
  font-size: 1.0625rem;
  max-width: 68ch;
}

.page-hero strong {
  color: var(--color-white);
}

/* Botões do Page Hero: ver regras compartilhadas com .hero acima */

/* ==========================================================================
   ACERVO DE LIVROS / FILTROS (pesquisa.html)
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--color-surface);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-xs);
  margin-bottom: 32px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--color-orange-strong);
  color: var(--color-orange-strong);
  background: var(--color-orange-light);
}

html[data-tema="escuro"] .filter-btn:hover {
  border-color: var(--color-orange);
  color: var(--color-orange-bright);
}

.filter-btn.active {
  background: var(--color-orange-strong);
  border-color: var(--color-orange-strong);
  color: var(--color-white);
}

.search-input-wrap {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 340px;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border-strong);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.search-input::placeholder {
  color: var(--color-text-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-orange-strong);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px rgba(234, 76, 21, 0.18);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange-bright);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.book-card[hidden] {
  display: none;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-orange-bright);
}

.book-cover {
  height: 240px;
  background: var(--color-surface-soft);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}

.book-cover img {
  max-height: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: transform var(--transition-base);
}

.book-card:hover .book-cover img {
  transform: scale(1.04);
}

.book-publisher {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-orange-strong);
  margin-bottom: 6px;
}

html[data-tema="escuro"] .book-publisher {
  color: var(--color-orange-bright);
}

.book-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
}

.book-cta {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-black);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.book-card:hover .book-cta {
  color: var(--color-orange-strong);
}

html[data-tema="escuro"] .book-card:hover .book-cta {
  color: var(--color-orange-bright);
}

/* ==========================================================================
   LINHA DO TEMPO JENEPS + WIDGET CARROSSEL DE FOTOS POR EDIÇÃO
   ========================================================================== */
.timeline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.timeline {
  position: relative;
  padding-left: 34px;
  border-left: 4px solid var(--color-orange-bright);
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.timeline-item {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-orange-bright);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 34px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-orange-strong);
  border: 4px solid var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-orange-bright);
}

.timeline-item-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.timeline-year {
  background: var(--color-orange-strong);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.timeline-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-orange-strong);
  background: var(--color-orange-light);
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-orange-border);
}

html[data-tema="escuro"] .timeline-tag {
  color: var(--color-orange-bright);
}

.timeline-item h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.timeline-item p {
  color: var(--color-text-muted);
}

.timeline-item p + p {
  margin-top: 12px;
}

/* Widget de Galeria / Carrossel de Fotos de Cada Ano da JENEPS */
.jeneps-gallery {
  position: relative;
  background: var(--color-surface-soft);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.jeneps-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 4px;
}

.jeneps-gallery-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-orange-strong);
}

html[data-tema="escuro"] .jeneps-gallery-badge {
  color: var(--color-orange-bright);
}

.jeneps-gallery-counter {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-white);
  background: var(--color-orange-strong);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}

.jeneps-gallery-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #1B120E;
  aspect-ratio: 16 / 11;
}

.jeneps-gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.jeneps-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jeneps-slide img.slide-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jeneps-slide img.slide-contain {
  max-height: 86%;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.jeneps-slide-backdrop {
  background: radial-gradient(circle at 50% 35%, #EA4C15 0%, #7C1F02 100%);
}

.jeneps-slide-placeholder {
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, #D93E09 0%, #8A2202 100%);
  color: var(--color-white);
  gap: 10px;
}

.jeneps-slide-placeholder svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
}

.jeneps-slide-placeholder strong {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  line-height: 1.3;
}

.jeneps-slide-placeholder span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 30ch;
}

/* Botões laterais para passar as fotos */
.jeneps-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-orange-strong);
  background: var(--color-white);
  color: #B83104;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.jeneps-nav-btn:hover {
  background: var(--color-orange-strong);
  color: var(--color-white);
  border-color: var(--color-white);
  transform: translateY(-50%) scale(1.06);
}

.jeneps-nav-prev {
  left: 10px;
}

.jeneps-nav-next {
  right: 10px;
}

.jeneps-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 0 4px;
}

.jeneps-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.jeneps-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.jeneps-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--color-border-strong);
  cursor: pointer;
  padding: 0;
  transition: width var(--transition-fast), background-color var(--transition-fast);
}

.jeneps-dot[aria-selected="true"] {
  width: 22px;
  background: var(--color-orange-strong);
}

/* ==========================================================================
   CURSOS, BANNER CTA E CONTATOS
   ========================================================================== */
.course-card {
  padding: 0;
  overflow: hidden;
}

.course-img-wrap {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.course-card:hover .course-img-wrap img {
  transform: scale(1.05);
}

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-orange-strong);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.course-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Banner CTA Laranja Intenso */
.cta-banner {
  background: var(--gradient-orange-hero);
  color: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-orange);
  border: 2px solid rgba(255, 255, 255, 0.24);
}

.cta-banner h2 {
  color: var(--color-white);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 10px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 58ch;
  font-size: 1.02rem;
}

/* Página de Contatos */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-orange-bright);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-orange-bright);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-surface-soft);
  color: var(--color-text);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control::placeholder {
  color: var(--color-text-light);
}

.form-control:focus {
  outline: none;
  background: var(--color-surface);
  border-color: var(--color-orange-strong);
  box-shadow: 0 0 0 3px rgba(234, 76, 21, 0.16);
}

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

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-orange-light);
  border: 1px solid var(--color-orange-bright);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.visible {
  display: block;
}

.bus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bus-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-orange-bright);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.bus-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bus-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bus-badge {
  background: var(--color-orange-strong);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   RODAPÉ INSTITUCIONAL
   ========================================================================== */
.site-footer {
  background: var(--gradient-footer);
  color: #E5D7CF;
  padding: 64px 0 32px;
  border-top: 5px solid var(--color-orange-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1.1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logos {
  height: 54px;
  width: auto;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #FF8E63;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #B8A398;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .jeneps-gallery-track,
  .btn,
  .btn-aa,
  .a11y-seg-btn {
    transition: none;
  }
}

/* ==========================================================================
   RESPONSIVIDADE E ESCALA DE FONTES MAIORES (A+ / A++)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid,
  .contact-layout,
  .timeline-item-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-card:nth-child(2) {
    border-right: none;
  }
  .metric-card:nth-child(1),
  .metric-card:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
  .grid-3,
  .bus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Menu colapsável abaixo de 1220px ou quando a fonte é ampliada em telas médias */
@media (max-width: 1219px) {
  .menu-toggle {
    display: inline-flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-orange-bright);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    display: none;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: none;
  }
  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }
}

@media (min-width: 1220px) and (max-width: 1420px) {
  html[data-fonte="2"] .menu-toggle,
  html[data-fonte="3"] .menu-toggle {
    display: inline-flex;
  }
  html[data-fonte="2"] .main-nav,
  html[data-fonte="3"] .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-orange-bright);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  html[data-fonte="2"] .main-nav.open,
  html[data-fonte="3"] .main-nav.open {
    display: flex;
  }
  html[data-fonte="2"] .nav-list,
  html[data-fonte="3"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 8px;
  }
}

@media (min-width: 1421px) and (max-width: 1560px) {
  html[data-fonte="3"] .menu-toggle {
    display: inline-flex;
  }
  html[data-fonte="3"] .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 3px solid var(--color-orange-bright);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }
  html[data-fonte="3"] .main-nav.open {
    display: flex;
  }
  html[data-fonte="3"] .nav-list {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-md);
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .a11y-controls {
    position: static;
  }
  .a11y-panel {
    top: calc(100% + 8px);
    right: 14px;
    width: calc(100vw - 28px);
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
  }
  .brand-logos {
    height: 36px;
  }
  .brand-text {
    padding-left: 8px;
  }
  .brand-title {
    font-size: 0.92rem;
  }
  html[data-fonte="2"] .brand-text,
  html[data-fonte="3"] .brand-text {
    display: none;
  }
}

@media (hover: none) {
  .btn:hover,
  .btn-primary:hover,
  .btn-dark:hover,
  .btn-white:hover,
  .card:hover,
  .book-card:hover,
  .book-card:hover .book-cover img,
  .course-card:hover .course-img-wrap img {
    transform: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  .btn {
    white-space: normal;
    text-align: center;
    min-height: 44px;
  }
  .filter-btn {
    min-height: 40px;
  }
  .search-input,
  .form-control {
    font-size: 16px;
  }
  .filter-bar {
    padding: 16px;
  }
  .search-input-wrap {
    min-width: 0;
    max-width: none;
    flex: 1 1 100%;
  }
  .hero {
    padding: 52px 0 76px;
  }
  .page-hero {
    padding: 46px 0 42px;
  }
  .breadcrumb {
    flex-wrap: wrap;
  }
  .academic-panel {
    padding: 28px 22px;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline-item {
    padding: 24px 20px;
  }
  .timeline-item::before {
    left: -36px;
  }
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .book-card {
    padding: 12px;
  }
  .book-cover {
    height: 190px;
    padding: 8px;
  }
  .book-title {
    font-size: 0.86rem;
  }
  .grid-3,
  .grid-2,
  .academic-columns,
  .bus-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-card {
    border-right: none !important;
    border-bottom: 1px solid var(--color-border);
  }
  .metric-card:last-child {
    border-bottom: none;
  }
  .section {
    padding: 56px 0;
  }
  .cta-banner {
    padding: 32px 24px;
  }
  .hero-floating-badge {
    position: static;
    margin-top: 14px;
    max-width: none;
  }
}
