/* ====== ESTILO CONSOLIDADO E LIMPO - anuario2024 ====== */
/* VARIÁVEIS CSS (ROOT) */
:root {
  --primary: #2f7f2f; /* Verde institucional - leve ajuste */
  --secondary: #163b6b; /* Azul institucional - leve ajuste */
  --background-color: #f7f9fb;
  --text-color: #222;
  --card-background: #ffffff;
  --footer-background: #1a3c6e;
  --footer-text: #ffffff;
  --border-color: #ddd;
  --shadow-color: rgba(0,0,0,0.04);
}



/* GLOBAIS */
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px; /* base maior para melhor leitura */
  background: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* NAVBAR */
.navbar {
  background: var(--card-background);
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 0.8rem 1rem; /* aumenta altura da navbar */
}
.navbar #darkModeToggleNav {
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}
.navbar #darkModeToggleNav i {
  color: var(--secondary);
}
body.dark-mode .navbar #darkModeToggleNav i {
  color: #ffd700;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(120deg, #e3f0ff 0%, #f7f9fb 100%);
  padding: 96px 0 48px 0; /* maior espaçamento no topo */
  text-align: center;
}
.hero-section img {
  width: 100%;
  max-width: 1285px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(26,60,110,0.07);
  margin: 0 auto 40px;
  display: block;
  transition: transform 0.3s ease;
}
.hero-section img:hover { transform: scale(1.02); }
.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary);
}

/* TÍTULOS DE SEÇÕES */
.section-title {
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Cor específica para o título 'Principais Temas' */
#principais-temas .section-title {
  color: rgb(0,66,0) !important;
}

/* Cor específica para o título 'Sobre a FAPESPA e a DETGI' */
#sobre .section-title {
  color: rgb(0,66,0) !important;
}

/* CARDS COM ANIMAÇÕES */
.card-feature {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.card-feature.card-animated {
  min-height: 360px; /* cards maiores */
  padding: 44px 32px; /* aumenta espaçamento interno */
}
@media (min-width: 1000px) {
  .card-feature.card-animated { min-height: 420px; }
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.92) 60%, rgba(255,255,255,0.88) 100%);
  transition: background 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
}
.card-feature:hover::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.5) 100%);
}
.card-feature > * {
  position: relative;
  z-index: 2;
  transition: color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card-feature:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 14px 28px rgba(0,0,0,0.16);
}
.card-feature:hover h5,
.card-feature:hover p,
.card-feature:hover i { color: #fff !important; }

/* IMAGENS DE FUNDO DOS CARDS */
.card-demografia { background-image: url('../img/demografia.png'); }
.card-economia { background-image: url('../img/economia.png'); }
.card-infraestrutura { background-image: url('../img/infraestrutura.png'); }
.card-meio-ambiente { background-image: url('../img/meio_ambiente.png'); }
.card-social { background-image: url('../img/social.png'); }
.card-mapas { background-image: url('../img/mapas.png'); }

/* CARDS BRANCO (SUMÁRIO, GLOSSÁRIO, EXPEDIENTE) */
.card-feature.text-center.bg-white {
  transition: background-color 0.4s ease, color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card-feature.text-center.bg-white:hover {
  background-color: #307028 !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(26, 60, 110, 0.15);
  transform: translateY(-6px) scale(1.02);
}
.card-feature.text-center.bg-white:hover h5,
.card-feature.text-center.bg-white:hover p {
  color: #fff !important;
  transition: color 0.4s ease;
}
.card-feature.text-center.bg-white:hover .btn {
  background-color: #348e39 !important;
  border-color: #348e39 !important;
  color: #fff !important;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.card-feature.text-center.bg-white:hover i {
  filter: brightness(1);
  transition: filter 0.4s ease;
}

/* BOTÕES NOS CARDS */
.card-feature .btn {
  display: inline-block;
  margin: 12px auto 0 auto;
  font-size: 1rem; /* botão ligeiramente maior */
  background-color: var(--primary);
  border: none;
  color: #fff;
  padding: 14px 20px;
  min-width: 100px;
  max-width: 140px;
  border-radius: 20px;
  line-height: 1.2;
  text-align: center;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.card-feature .btn:hover {
  background-color: var(--secondary) !important;
  transform: translateY(-2px);
}
.card-feature:hover .btn-outline-primary,
.card-feature:hover .btn-outline-success,
.card-feature:hover .btn-outline-info,
.card-feature:hover .btn-outline-warning,
.card-feature:hover .btn-outline-danger,
.card-feature:hover .btn-outline-secondary {
  background-color: #fff;
  color: #1a3c6e !important;
  border-color: #fff;
}

/* MODAL */
.modal-content {
  background-color: var(--card-background);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}
.modal-title,
.modal-body h3 { color: var(--secondary); }
.modal-body p { color: var(--text-color); }
body.dark-mode .modal-body p.text-secondary { color: #999 !important; }
.modal-body .form-control {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 12px;
  background-color: var(--background-color);
  color: var(--text-color);
}
body.dark-mode .modal-body .form-control {
  background-color: #2e2e2e;
  border-color: #555;
  color: #e0e0e0;
}

/* MODAL GENÉRICO - esconder título */
#contentModal .modal-header .modal-title { display: none; }
#contentModal .modal-header { justify-content: flex-end; }

/* MODAL GENÉRICO - ajustar tamanho e tipografia (menor modal, texto maior, centralizado) */
#contentModal .modal-dialog {
  max-width: 60vw; /* largura do modal */
  width: 60%;
  max-height: 90vh; /* limita altura do modal */
  margin: 1.75rem auto; /* margem do topo */
}
@media (max-width: 991.98px) {
  #contentModal .modal-dialog {
    max-width: 90vw;
    width: 90%;
  }
}

/* Permite scroll interno confortável */
#contentModal .modal-content {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

#contentModal .modal-body {
  padding: 2rem;
  text-align: left;
  overflow-y: auto; /* scroll vertical */
  flex: 1 1 auto;
}

#contentModal .modal-body img {
  max-width: 80%;
  height: auto;
  margin: 1rem auto; /* keep images centered */
  display: block;
}

#contentModal .modal-body p,
#contentModal .modal-body li {
  font-size: 1.5rem; /* texto maior */
  line-height: 1.9;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: none;
  text-align: left;
}

#contentModal .modal-body h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-align: left;
}

#contentModal .modal-body h2 {
  font-size: 2rem;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  text-align: left;
}

#contentModal .modal-body h3 {
  font-size: 1.8rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

#contentModal .modal-body strong,
#contentModal .modal-body b {
  font-weight: 700;
}
@media (min-width: 1200px) {
  #contentModal .modal-dialog {
    max-width: 85vw;
  }
}


/* SPINNER */
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}
#spinner.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
}

/* Ajuste de tamanho do spinner interno */
#spinner .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Modal flutuante customizado (conteúdo dinâmico) */
.modal-backdrop-custom {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}

.custom-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  width: 95%;
  max-width: 1200px;
  background: #e8f6eb; /* verde claro para o fundo do modal */
  color: var(--text-color);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-height: calc(100vh - 40px);
  overflow: visible;
  display: none;
}

.custom-modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #e8f6eb; /* mantém o verde claro em todo o conteúdo */
  color: var(--text-color);
}

.custom-modal-header {
  display: flex;
  justify-content: flex-end; /* botão de fechar no canto direito */
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
  background: #e8f6eb;
}

.custom-modal-header h5 {
  display: none; /* esconder título visível (remover "Apresentação"/"DETGI") */
}

.custom-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-modal-close:hover {
  color: #000;
}

.custom-modal-body {
  padding: 20px;
  overflow: hidden; /* será ajustado via JS se necessário */
  flex: 1;
  background: #e8f6eb;
}

.custom-modal-body iframe {
  width: 100%;
  height: 60vh;
  border: none;
}

.custom-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  background: #e8f6eb;
}

/* BOTÃO VOLTAR AO TOPO - SOLUÇÃO LIMPA */
/* BOTÃO VOLTAR AO TOPO - SIMPLES E FIXO */
#btnTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  background: #2f7f2f;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999999;
}

#btnTop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#btnTop:hover {
  background: #1a5f1a;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

#btnTop:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #btnTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* FOOTER */
.footer,
.footer-bottom {
  background: var(--footer-background) !important;
  color: var(--footer-text) !important;
}
footer .container { padding-top: 32px; padding-bottom: 32px; }

/* MAPA NO RODAPÉ */
.footer .map-container h5 {
  color: #ffffff;
  margin-bottom: 15px;
}
.footer .map-embed {
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  height: 0;
  max-height: 200px;
}
.footer .map-embed iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 8px;
}
@media (max-width: 992px) {
  .footer .map-embed {
    padding-bottom: 40%;
    max-height: 250px;
  }
}
.footer a {
    color: var(--footer-text) !important; /* Garante que os links sejam brancos */
    text-decoration: underline !important; /* Adiciona o sublinhado */
    text-underline-offset: 4px; /* Opcional: Afasta o traço do texto */
}
.footer .btn-link {
    display: block; /* Garante que cada link ocupe uma linha */
    padding: 0; /* Remove o padding do botão */
    margin-bottom: 0.5rem; /* Adiciona um pequeno espaçamento inferior para separá-los */
    line-height: 1.5; /* Ajusta a altura da linha */
    text-align: left;
}

@media (max-width: 992px) {
  .footer .map-embed {
    padding-bottom: 40%;
    max-height: 250px;
  }
}
/* CSS do Copyright - Rodapé Minimalista */
.copyright {
    background-color: #f8f9fa !important;
    border-top: 1px solid #e0e0e0 !important;
    padding: 0.5rem 0;
}

.copyright small {
    color: #6c757d;
    font-size: 0.875rem;
}

.copyright a {
    color: #495057 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #212529 !important;
}

.copyright .text-center {
    text-align: center;
}

/* SEÇÃO DE DOWNLOADS */
.downloads-section {
  background: linear-gradient(120deg, #e8f5e9 0%, #d7f0dc 100%);
  color: #1a3c6e;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(26, 60, 110, 0.1);
}
.downloads-section h2 {
  color: #1a3c6e;
  font-weight: 700;
}
.downloads-section p { color: #2e4a3f; }
.downloads-section .btn-success {
  background-color: #348e39;
  border: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.downloads-section .btn-success:hover {
  background-color: #1a3c6e;
  transform: translateY(-3px);
}

/* HELPERS */
.fw-bold { font-weight: 700 !important; }
.fw-medium { font-weight: 600 !important; }

/* Pesquisa de satisfação removida */

/* Toast container small adjustments (for our dynamic toasts) */
#site-toast-container {
  pointer-events: none;
}
#site-toast-container > div {
  pointer-events: auto;
}


/* RESPONSIVO */
@media (max-width: 400px) {
  .card-feature p { font-size: 0.9rem; }
  .hero-section .btn {
    padding: 10px 24px;
    font-size: 1rem;
  }
  .hero-section h1 { font-size: 2rem; }
  .hero-section img { max-width: 100%; }
}

/* --- FORÇA estilos do contentModal (última palavra: !important para evitar sobrescritas acidentais) --- */
#contentModal .modal-dialog {
  max-width: 58vw !important; /* ajuste fino para 58% */
  width: 58% !important;
}
@media (max-width: 991.98px) {
  #contentModal .modal-dialog {
    max-width: 95vw !important;
    width: 95% !important;
  }
}

#contentModal .modal-content {
  max-height: none !important;
  overflow: visible !important; /* evita scroll interno */
}

#contentModal .modal-body {
  padding: 2.25rem !important;
  min-height: auto !important;
  display: block !important;
  text-align: left !important;
}

#contentModal .modal-body img {
  max-width: 100% !important;
  height: auto !important;
  margin: 1rem auto !important;
  display: block !important;
}

#contentModal .modal-body p,
#contentModal .modal-body li {
  font-size: 1.6rem !important;
  line-height: 1.95 !important;
  margin-bottom: 0.85rem !important;
  width: 100% !important;
  max-width: none !important;
}

#contentModal .modal-body h1 { font-size: 3rem !important; }
#contentModal .modal-body h2 { font-size: 2.2rem !important; }
#contentModal .modal-body h3 { font-size: 1.9rem !important; }

/* Em telas pequenas, permitir overflow interno para manter modal usável */
@media (max-height: 700px) {
  #contentModal .modal-content {
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
}

/* Overrides fortes para conteúdo carregado (ex: apresentacao.html) que traz seu próprio CSS */
#contentModal .modal-body #corpo {
  font-size: 1.6rem !important;
  line-height: 1.95 !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 auto !important;
}
#contentModal .modal-body #cabecalho h2 {
  font-size: 2rem !important;
}
#contentModal .modal-body #rodape {
  font-size: 1rem !important;
}
#contentModal .modal-body p {
  font-size: 1.6rem !important;
}

/* ====================================================================
   ESTILOS MIGRADOS DO INDEX.HTML
   ==================================================================== */

/* Ajuste para botão Apresentação: maior e levemente mais acima */
.btn-apresentacao{
  margin-top: 0.25rem; /* empurra menos para baixo */
  padding: .9rem 1.75rem; /* maior área clicável */
  font-size: 1.125rem; /* texto levemente maior */
}
@media(min-width: 992px){
  .btn-apresentacao{ margin-top: 0.5rem; }
}

/* Capa (hero) — aumentar, levantar e reduzir espaçamento inferior */
.hero-section{
  padding-top: 1rem; /* deixa a seção mais próxima do topo */
  padding-bottom: 1.5rem; /* reduz espaço abaixo para aproximar do restante */
}

.img-hero-anuario{
  display: block;
  width: 85%; /* maior em telas pequenas */
  max-width: 1100px; /* limite para evitar overflow */
  height: auto;
  margin: 0 auto; /* centraliza */
  margin-top: -20px; /* sobe levemente a imagem */
  transition: margin 0.3s ease, width 0.3s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* Em telas médias e grandes aumentamos mais e subimos um pouco mais */
@media (min-width: 768px){
  .img-hero-anuario{ width: 75%; margin-top: -60px; }
  .hero-section{ padding-bottom: 1rem; }
}

@media (min-width: 1200px){
  .img-hero-anuario{ width: 65%; margin-top: -100px; }
  .hero-section{ padding-bottom: 0.5rem; }
}

/* =========================
 A11Y — STYLES (ETAPA 2)
 - As classes usam prefixo 'a11y-' e 'html.a11y-*'
 ========================= */

/* --- Vars de escala e controle --- */
:root{
  --a11y-font-scale: 1;
  --a11y-lineheight: 1.55;
  --a11y-paragraph-space: 1.0rem;
  --a11y-zoom: 1;
  --a11y-cursor-size: 1;
  --a11y-focus-outline: 3px solid #ffd54f;
  --a11y-highlight-link: #ffdd57;
  --a11y-highlight-button: #ff9f43;
}

/* Apply base scaling (JS atualiza --a11y-font-scale / --a11y-zoom) */
html { font-size: calc(100% * var(--a11y-font-scale)); }
body {
  transform: none !important; /* evita quebrar position: fixed */
  zoom: var(--a11y-zoom, 1); /* aplica zoom sem usar transform */
}

/* --- Modal / Painel (garante visual consistente) --- */
.acess-modal { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }
.acess-modal-panel { min-width: 280px; max-width: 420px; }

/* Section titles */
.acess-section-title {
  font-weight: 700;
  color: #163b6b;
  font-size: 0.95rem;
  padding: 8px 12px 4px;
}

/* Controls base (navbar + modal) */
.acess-control {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d2d2d2;
  background: #f7f7f7;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  line-height: 1.2;
  gap: 4px;
}
.acess-control:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); background: #eaeaea; border-color: #bdbdbd; }
.acess-control:focus { outline: var(--a11y-focus-outline); outline-offset: 3px; }
.acess-control:active { background: #dcdcdc; }

/* Reset button variant */
.acess-reset { background: #ff4444 !important; color: #fff !important; border-color: #cc0000 !important; }
.acess-reset:hover { background: #cc0000 !important; }

/* --- High Contrast (força onde necessário) --- */
html.a11y-contrast,
html.a11y-contrast body,
html.a11y-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  filter: none !important;
}
html.a11y-contrast a { color: #00eaff !important; }
html.a11y-contrast img { filter: invert(1) brightness(1.05) contrast(1.05) !important; }
/* Força texto branco nos botões de acessibilidade */
html.a11y-contrast #acess-modal .acess-control,
html.a11y-contrast #acess-modal button,
html.a11y-contrast #acess-modal .acess-modal-panel * {
  color: #fff !important;
  background-color: #000 !important;
  border-color: #fff !important;
}
html.a11y-contrast #acess-modal .acess-modal-panel {
  background-color: #000 !important;
  border-color: #fff !important;
}

/* --- Modo Noturno (mais suave que contraste) --- */
html.a11y-night, html.a11y-night body {
  background-color: #0f1720 !important;
  color: #e6eef8 !important;
}
html.a11y-night a { color: #8ed0ff !important; }
html.a11y-night .card-feature { background: #12151a !important; }
html.a11y-night .product-card { background: #12151a !important; color: #e6eef8 !important; }
html.a11y-night .product-card h5 { color: #8ed0ff !important; }
html.a11y-night .product-card p { color: #b8c5d6 !important; }
html.a11y-night .hero-section-modern { background: #0f1720 !important; }
html.a11y-night .hero-overlay { background: rgba(15, 23, 32, 0.85) !important; }
html.a11y-night .navbar { background: #12151a !important; }
html.a11y-night .footer-main { background: #0a0e14 !important; }
html.a11y-night .footer-products { background: #12151a !important; }
html.a11y-night section { background-color: transparent !important; }
html.a11y-night .downloads-section { background: #12151a !important; }
html.a11y-night #principais-temas { background: #0f1720 !important; }
html.a11y-night #sobre { background: #12151a !important; }

/* --- Escala em Cinza --- */
html.a11y-grayscale {
  filter: grayscale(100%) !important;
}

/* --- Reduzir movimentos (prefers-reduced-motion + override) --- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
/* Explicit override class */
html.a11y-reduced-motion * , html.a11y-reduced-motion *::before, html.a11y-reduced-motion *::after {
  animation-duration: 0.001ms !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* --- Fonte dislexia / guia de leitura --- */
html.a11y-dyslexia, html.a11y-dyslexia body {
  font-family: "OpenDyslexic", "Comic Sans MS", "Verdana", "Arial", sans-serif !important;
  letter-spacing: 0.01em !important;
  word-spacing: 0.06em !important;
  line-height: 1.8 !important;
}

/* Barra guia de leitura (linha móvel) */
.a11y-reading-guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 3.2rem;
  background: rgba(255, 229, 153, 0.12);
  border-top: 1px solid rgba(255,229,153,0.22);
  border-bottom: 1px solid rgba(255,229,153,0.08);
  pointer-events: none;
  z-index: 13000;
  mix-blend-mode: multiply;
}

/* --- Espaçamento de linhas e parágrafos controlável --- */
html.a11y-spacing {
  --a11y-lineheight: 1.9;
  --a11y-paragraph-space: 1.2rem;
}
html.a11y-spacing p { line-height: var(--a11y-lineheight) !important; margin-bottom: var(--a11y-paragraph-space) !important; }

/* --- Destacar links e botões --- */
html.a11y-highlight-links a { 
  text-decoration: underline !important; 
  background-color: #4A90E2 !important;
  color: #fff !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}
html.a11y-highlight-links a:hover {
  background-color: #357ABD !important;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3) !important;
}
html.a11y-highlight-buttons button, html.a11y-highlight-buttons .btn { box-shadow: 0 0 0 4px rgba(255,159,67,0.08) inset !important; border: 2px solid var(--a11y-highlight-button) !important; }

/* --- Foco visível aprimorado --- */
html.a11y-focus *:focus { outline: var(--a11y-focus-outline) !important; outline-offset: 3px !important; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }

/* --- Cursor aumentado --- */
html.a11y-large-cursor, html.a11y-large-cursor * { cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48"><circle cx="24" cy="24" r="10" fill="%23ffd54f"/></svg>') 24 24, auto !important; }
html.a11y-large-cursor { --a11y-cursor-size: 1.6; }

/* --- Modo leitura (remove distrações) --- */
html.a11y-reading-mode body {
  background: #fff !important;
  color: #111 !important;
}
html.a11y-reading-mode header, html.a11y-reading-mode .footer, html.a11y-reading-mode .sidebar, html.a11y-reading-mode .card-feature { display: none !important; }
html.a11y-reading-mode main, html.a11y-reading-mode .content, html.a11y-reading-mode .container { max-width: 900px !important; margin: 0 auto !important; padding: 28px !important; }

/* --- Daltonism filters using CSS filters and SVG matrix for better fidelity --- */
html.a11y-dalton-prot img, html.a11y-dalton-prot { filter: url(#protanopia) !important; }
html.a11y-dalton-deut img, html.a11y-dalton-deut { filter: url(#deuteranopia) !important; }
html.a11y-dalton-trit img, html.a11y-dalton-trit { filter: url(#tritanopia) !important; }
html.a11y-dalton-prot { filter: grayscale(0.05) contrast(1.05) saturate(0.9) !important; }
html.a11y-dalton-deut { filter: grayscale(0.03) contrast(1.02) saturate(0.95) !important; }
html.a11y-dalton-trit { filter: grayscale(0.02) contrast(1.02) hue-rotate(10deg) !important; }

/* --- Teclado virtual (estilo minimal) --- */
#a11y-virtual-keyboard {
  position: fixed;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  z-index: 14000;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  display: none;
  max-width: 92%;
}
#a11y-virtual-keyboard .vk-row { display:flex; gap:6px; justify-content:center; margin-bottom:6px; }
#a11y-virtual-keyboard .vk-key {
  background:#f1f3f5; border:1px solid #ddd; padding:8px 10px; border-radius:6px; min-width:40px; text-align:center; cursor:pointer;
}
#a11y-virtual-keyboard .vk-key:active { background:#e2e6ea; }

/* --- Readability: choose simpler fonts --- */
html.a11y-plain-font, html.a11y-plain-font body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  letter-spacing: 0.01em !important;
  font-weight: 400 !important;
}

/* --- Small screens adaptions --- */
@media (max-width: 520px) {
  .acess-modal { right: 10px; left: 10px; transform: none; top: auto; bottom: 88px; }
  .acess-modal-panel { width: auto; min-width: auto; }
  .acess-control { padding: 10px 12px; }
  #a11y-virtual-keyboard { bottom: 6%; left: 50%; transform: translateX(-50%); width: 96%; }
}

/* --- Tiny helpers for announcer / sr-only --- */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* BOTÃO DE ACESSIBILIDADE NO NAVBAR */
#acess-open-btn {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  line-height: 1.5;
  vertical-align: middle;
}

#acess-open-btn:hover {
  color: #0059ff !important;
  background-color: rgba(0, 89, 255, 0.05) !important;
}

#acess-open-btn:focus {
  outline: 2px solid #0059ff;
  outline-offset: 2px;
}

/* Dropdown compacto no navbar (previne quebra de layout) */
.acess-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  width: 280px;
  max-width: 88vw;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.08);
  z-index: 1200;
  color: #1a1a1a;
}

.acess-dropdown .acess-section-title { color: #333; margin-top: 8px; margin-bottom: 6px; font-size: 12px; }

.acess-dropdown .acess-control {
  background: #f7f7f7;
  color: #1a1a1a;
  border: 1px solid #d2d2d2;
}

.acess-dropdown .acess-control.active {
  background: #2d6a47;
  color: #ffffff;
  border-color: #225236;
}

/* MODAL DE ACESSIBILIDADE: aparece abaixo do navbar */
#acess-modal {
  position: fixed !important;
  top: 70px !important;
  right: 20px !important;
  width: 380px !important;
  max-width: calc(100vw - 40px) !important;
  background: none !important;
  border: none !important;
  z-index: 999998 !important;
  display: none;
}

/* Painel interno do modal */
#acess-modal .acess-modal-panel {
  width: 100% !important;
  padding: 24px 22px !important;
}

/* MOBILE — centraliza e ocupa mais espaço */
@media (max-width: 768px) {
  #acess-modal {
    top: 60px !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
  }
}

/* MODAL DE ACESSIBILIDADE (NOVO DESIGN) */
#acess-modal .acess-modal-panel {
  background: #ffffff;
  border-radius: 14px;
  padding: 20px 18px;
  width: 340px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0px 10px 35px rgba(0,0,0,0.28);
  border: 1px solid rgba(0,0,0,0.09);
  animation: acessFadeIn 0.3s ease;
}

/* Melhorar texto e evitar quebra */
.acess-control {
  white-space: nowrap;
  flex: 1 1 auto;
}

#acess-modal, 
#acess-modal * {
  color: #1a1a1a !important;
  fill: #1a1a1a !important;
}

/* Animação suave */
@keyframes acessFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cabeçalho */
.acess-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
}

.acess-modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.acess-close {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #444;
  transition: 0.2s;
}

.acess-close:hover {
  color: #d60000;
}

/* Seções */
.acess-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-top: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Linhas dos botões */
.acess-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* Botões */
.acess-control {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #d2d2d2;
  background: #f7f7f7;
  font-size: 12px;
  cursor: pointer;
  transition: 0.15s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  word-break: normal;
  line-height: 1.1;
  gap: 3px;
}

.acess-control:hover {
  background: #eaeaea;
  border-color: #bdbdbd;
}

.acess-control:active {
  background: #dcdcdc;
}

/* Botão principal */
.acess-control.active {
  background: #0059ff;
  color: white;
  border-color: #0048d6;
}

/* Botão "Restaurar tudo" */
.acess-reset {
  background: #ff4444 !important;
  color: white !important;
  border-color: #cc0000 !important;
}

.acess-reset:hover {
  background: #cc0000 !important;
}

/* Scroll estilizado */
#acess-modal .acess-modal-panel::-webkit-scrollbar {
  width: 8px;
}

#acess-modal .acess-modal-panel::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 4px;
}

#acess-modal .acess-modal-panel::-webkit-scrollbar-thumb:hover {
  background: #a9a9a9;
}

/* ============================================
   MODERNIZAÇÃO - HERO SECTION
   ============================================ */

.hero-section-modern {
  position: relative;
  min-height: 85vh;
  display: flex;
    background-size: cover; /* Ensure background size is maintained */
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
  #principais-temas .card-feature::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.42) 60%, rgba(0,0,0,0.52) 100%);
  }

  #principais-temas .card-feature:hover::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.6) 100%);
  }

  /* Botões outline brancos no Principais Temas */
  #principais-temas .card-feature .btn {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.9) !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  #principais-temas .card-feature .btn:hover {
    background: #ffffff !important;
    color: #1a1a1a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18) !important;
  }

  /* Micro-animação nos ícones */
  #principais-temas .card-feature i {
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  #principais-temas .card-feature:hover i {
    transform: translateY(-3px) scale(1.04);
  }

  /* Ajustes finos de tipografia e espaçamento */
  #principais-temas .card-feature h5 { margin-bottom: 0.5rem; font-weight: 800; }
  #principais-temas .card-feature p { margin-bottom: 1rem; line-height: 1.6; }

  /* Responsivo: reduzir altura e padding em telas pequenas */
  @media (max-width: 576px) {
    #principais-temas .card-feature.card-animated { min-height: 340px; padding: 36px 24px; }
  }

  #principais-temas .card-feature h5,
  #principais-temas .card-feature p,
  #principais-temas .card-feature i {
    color: #ffffff !important;
  }

  #principais-temas .card-feature h5,
  #principais-temas .card-feature p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
  }

  #principais-temas .card-feature p {
    font-weight: 500;
  }

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 12rem;
}

.hero-text-wrapper {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  font-weight: 800;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
}

.hero-year {
  display: block;
  font-size: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(90deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta-single {
  margin-top: 9rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #1a1a1a;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
  color: #000;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-icon {
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Animações */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.animate-fade-in-delay-2 {
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   CARDS MODERNOS (Sumário, Glossário, Expediente)
   ============================================ */

.quick-access-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.card-modern {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: #ffffff;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-success-gradient {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.bg-info-gradient {
  background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.card-modern-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.card-modern-text {
  font-size: 1rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-card-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #2d6a47;
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-card-modern:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(45, 106, 71, 0.35);
  background: #245338;
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-section-modern {
    min-height: 70vh;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 300px;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .quick-access-section {
    padding: 2rem 0;
  }
  
  .card-modern {
    padding: 2rem;
  }
}

/* ============================================
   Seção Sobre - modernização visual
   ============================================ */
#sobre {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#sobre .section-title {
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: 0.5px;
}

#sobre .row {
  align-items: center;
}

#sobre img.img-fluid {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#sobre img.img-fluid:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

#sobre p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #4a4a4a;
}

#sobre .btn.btn-outline-primary {
  border-width: 2px;
  border-radius: 40px;
  padding: 10px 20px;
  font-weight: 700;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#sobre .btn.btn-outline-primary:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #sobre img.img-fluid { margin-bottom: 1rem; }
}

/* ============================================
   Seção Downloads - modernização visual
   ============================================ */
.downloads-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.downloads-section .section-title {
  font-weight: 800;
  color: var(--secondary);
}

.downloads-section p {
  color: #4a4a4a;
  font-size: 1.05rem;
}

.downloads-section .btn {
  border-radius: 40px;
  padding: 12px 24px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.downloads-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* ============================================
   Footer - modernização visual
   ============================================ */
.footer {
  background: #0f1b2f;
  color: #e6ecf5;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer h5 {
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer p,
.footer li,
.footer a {
  color: #c9d4e3;
}

.footer a:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer .list-unstyled li { margin-bottom: 0.5rem; }

.footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.footer .social a:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

.footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  color: #9fb1c9;
}

@media (max-width: 576px) {
  .downloads-section .btn { width: 90%; max-width: 320px; }
}
/* ===========================
 PRODUTOS CARDS (FOOTER SECTION)
 =========================== */
.footer-products {
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  border-top: 4px solid var(--primary);
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.product-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.product-card:hover i {
  transform: scale(1.1);
}

.product-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a3c6e;
  font-size: 1rem;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ===========================
 FOOTER PRINCIPAL
 =========================== */
.footer-main {
  background: linear-gradient(135deg, #1a4d2e 0%, #2d6a47 100%);
  border-top: 4px solid var(--primary);
  color: #fff;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem !important;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-main a {
  color: #d0d0d0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-main a:hover {
  color: var(--primary);
}

.footer-main ul li {
  transition: padding-left 0.3s ease;
}

.footer-main ul li:hover {
  padding-left: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.text-light {
  color: #d0d0d0 !important;
}

/* Map embed in footer */
.map-embed {
  overflow: hidden;
  padding-bottom: 100%;
  position: relative;
  height: 0;
}

.map-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===========================
 FOOTER COPYRIGHT
 =========================== */
.footer-copyright {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

.footer-copyright small {
  color: #333 !important;
}

.footer-copyright a {
  color: #333 !important;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: var(--primary) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-title::after {
    width: 30px;
  }

  .product-card {
    padding: 1.5rem 1rem;
  }

  .product-card i {
    font-size: 2rem;
  }

  .product-card h5 {
    font-size: 0.95rem;
  }

  .footer-main .row {
    row-gap: 2rem;
  }

  .social-icons {
    gap: 0.8rem;
  }

  .social-link {
    width: 36px;
    height: 36px;
  }
}

/* ===========================
 AJUSTES DE TAMANHO — REPOSITÓRIO & DOWNLOADS
 =========================== */
/* Cards do Repositório: menores e menos largos */
#repositorio .card-feature.card-animated {
  min-height: 180px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #e7f0ff 0%, #d3e7ff 100%);
  border: 1px solid #e3edf7;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
#repositorio .repo-col { /* força 5 colunas por linha em telas grandes */ }
@media (min-width: 1200px) {
  #repositorio .repo-col { flex: 0 0 20%; max-width: 20%; }
}
#repositorio .card-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#repositorio a.card-feature { text-decoration: none; }
#repositorio .card-feature::before { display: none; }
#repositorio .card-feature:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
#repositorio .card-feature i { font-size: 1.8rem; }
#repositorio .card-feature h6 { font-size: 0.95rem; margin: 0; }
/* Evita mudança para branco no hover global */
#repositorio .card-feature:hover i,
#repositorio .card-feature:hover h6 { color: inherit !important; }

/* Grid 3-colunas para Social (3 + 3) */
@media (min-width: 992px) {
  #repositorio .repo-grid-3 .repo-col { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* Grid 4 + 3 para Economia */
@media (min-width: 992px) {
  #repositorio .repo-grid-4-3 .repo-col { flex: 0 0 25%; max-width: 25%; }
  #repositorio .repo-grid-4-3 .repo-col:nth-child(n+5) { flex: 0 0 33.333%; max-width: 33.333%; }
}

/* Grid 2-colunas para Economia (2 por linha) */
@media (min-width: 992px) {
  #repositorio .repo-grid-2 .repo-col { flex: 0 0 50%; max-width: 50%; }
}

/* Cards de Downloads: reduzir largura máxima e centralizar */
.footer-products .product-card {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #f0fff0 0%, #e2f5e2 100%);
  border-color: #e8efe8;
  justify-content: center;
  min-height: 160px;
}
.footer-products .product-card i { font-size: 1.8rem; }
.footer-products .product-card h5 { font-size: 0.95rem; }
.footer-products .product-card p { font-size: 0.85rem; }