/* ===== BASE (seguro para páginas antigas) ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: linear-gradient(to bottom, #f7f5ef, #ece7dc);
  font-family: Arial, sans-serif;
}

/* Imagens sempre proporcionais */
img { max-width: 100%; height: auto; }


/* ===== FIGURA DO MÊS – IMAGEM PRINCIPAL ===== */
.figura-mes {
  display: block;
  width: 100%;        /* ocupa TODA a largura do MAIN */
  max-width: 100%;
  height: auto;       /* mantém proporção */
  margin: 16px 0 24px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}


/* ===== TOPO PORTAL – PADRÃO DEFINITIVO ===== */
#topo-portal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: #f5f1e6; /* palha */
  border-bottom: 2px solid #7a4a1d; /* marrom */
  padding: 8px 15px;
}

#topo-portal{
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  clear: both;
}
#topo-portal{
  float: none !important;
}

#topo-portal .titulo {
  flex: 1 1 auto;
  text-align: center;
  padding: 0 10px;
}

/* Topo: título e subtítulo dentro do #topo-portal */
#topo-portal .titulo h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #7a4a1d;
}

#topo-portal .titulo p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #7a4a1d;
  opacity: 0.9;
}


#topo-portal .logo {
  flex: 0 0 auto;
  margin-left: auto;
}

#topo-portal .logo img {
  height: 50px;
  width: auto;
  display: block;
}


/* Botão VOLTAR (use dentro do topo e também no conteúdo, se quiser) */
.btn-voltar {
  display: inline-block;
  padding: 10px 16px;
  background: #6b4f2a;   /* marrom terra */
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  white-space: nowrap;
}
.btn-voltar:hover { background: #8a6a3c; }

/* ===== CARTÃO CENTRAL (ESCOLHA ÚNICA) =====
   Padrão: usar <main> como container principal.
*/

.data-atual{
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #c91111; /* vermelho - ou azul, ou o padrão do rodapé */
}

main {
  max-width: 1100px; /* pode subir p/ 1200px */
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  color: #333333;   /* cor padrão de leitura */
}

/* Se existir legado usando .conteudo, deixe como alias do main */
.conteudo {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 20px;
  color: #333333;
}

/* Espaço entre o topo e o cartão */
main, .conteudo {
  margin-top: 12px;
}

/* ===== TIPOGRAFIA (ESCOPADA NO CARTÃO) ===== */
main p, .conteudo p {
  line-height: 1.7;
  font-size: 16px;
}

main h1, .conteudo h1 {
  text-align: center;
  margin: 0 0 32px;
  color: #5a3e2b;
}

main h2, .conteudo h2 {
  text-align: center;
  margin-top: 40px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
  color: #5a3e2b;
}

main h3, .conteudo h3 {
  margin-top: 28px;
  color: #444;
}

/* ===== TÍTULOS ESPECIAIS ===== */
.titulo-azul,
.titulo-verde,
.titulo-vermelho {
  font-size: 26px;      /* tamanho do título principal */
  font-weight: bold;
  margin: 20px 0 16px;
  line-height: 1.25;
}

.titulo-azul {
  color: #003366;       /* azul escuro */
}

.titulo-verde {
  color: #006600;       /* verde escuro */
}

.titulo-vermelho{
  color:#cc0000;
}

/* ===== BLOCOS / LISTAS ===== */
section { margin-bottom: 30px; }

.links-importantes { list-style: none; padding: 0; }
.links-importantes li { margin: 8px 0; }
.links-importantes a { color: #5a3e2b; font-weight: bold; }
.links-importantes a:hover { text-decoration: underline; }

.palestras { list-style: none; padding: 0; }
.palestras li { margin: 8px 0; }
.palestras a { color: #5a3e2b; font-weight: bold; }
.palestras a:hover { text-decoration: underline; }

/* ===== GALERIA ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.galeria img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* ===== AUTORES (cards) ===== */
.autores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  padding: 20px;
}

.autores a {
  background: #f3eadf;
  border: 1px solid #c9b79c;
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  font-size: 16px;
  color: #5a3e2b;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.autores a:hover {
  background: #e8dccb;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* ===== NAV (se você usa em páginas de índice) ===== */
nav {
  background: #f2f2f2;
  padding: 10px;
}

nav a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #003366;
  font-weight: bold;
}

nav a:hover { background: #ddd; }
/* ===== FOTOS COM TAMANHOS/ALINHAMENTOS ===== */
img.foto {
  width: auto !important;      /* 🔴 impede esticamento */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* tamanhos */
img.foto.pequena { max-width: 200px !important; }
img.foto.media   { max-width: 320px !important; }
img.foto.grande  { max-width: 420px !important; }

/* alinhamentos */
img.foto.direita {
  float: right;
  margin: 0 0 15px 20px;
}
img.foto.esquerda {
  float: left;
  margin: 0 20px 15px 0;
}

.clear { clear: both; }


/* ===== LIVROS ===== */
.livros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.livro-card {
  background: #f9f6ef;
  border: 1px solid #d4c6ad;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.livro-card img {
  max-width: 120px;
  height: auto;
  margin-bottom: 10px;
}

.livro-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #5a3e2b;
}

.livro-card .meta {
  font-size: 13px;
  color: #7a6a55;
  margin-bottom: 8px;
}

.livro-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* ===== POEMAS ===== */
.poema {
  white-space: pre-line;
  margin: 16px 0 32px;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== RODAPÉ FULL WIDTH (igual ao cabeçalho) ===== */
.rodape {
  background: #5a3e2b;
  color: #f3eadf;
  padding: 14px 15px;     /* <<< mesma “margem” do topo/cabeçalho */
  margin-top: 24px;
}

/* container do conteúdo do rodapé */
.rodape-inner {
  width: 100%;            /* <<< FULL WIDTH */
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

/* esquerda e direita com a mesma largura => centro fica centro de verdade */
.rodape-esq,
.rodape-dir {
  flex: 0 0 140px;        /* <<< AJUSTE: largura “reservada” */
  display: flex;
  align-items: center;
}

.rodape-esq { justify-content: flex-start; }
.rodape-dir { justify-content: flex-end; }

.rodape-centro {
  flex: 1 1 auto;
  text-align: center;
  font-size: 13px;
  opacity: 0.95;
  white-space: nowrap;
}


/* ===== MOBILE ===== */

@media (max-width: 768px){
  .dc-topline{ flex-direction: column; align-items: center; }
  .dc-twitter{ text-align:center; }
  .dc-twitter-link{ justify-content:center; }

  #topo-portal { gap: 10px; }
  #topo-portal .titulo h1 { font-size: 18px; }
  #topo-portal .titulo p  { font-size: 11px; }

  img.foto{
    float: none !important;
    display: block;
    margin: 15px auto;
    width: 85%;
    max-width: 300px;
  }

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

/* ajuste fino no mobile */
@media (max-width: 768px){
  .menu-meses{
    background: #efefef;
    padding: 6px 0;
    font-size: 11px;
    gap: 6px;
  }
}

/* ===== DATAS COMEMORATIVAS (adicionar ao FINAL do portal.css) ===== */

.data-dia{
  color:#cc0000;
  font-weight:bold;
  margin-top:18px;
}

/* Classe de texto menor para observações dentro do MAIN */
.texto-miudo{
  font-size: 12px;
  line-height: 1.45;
}

/* Bloco ONU + Twitter (cabeçalho interno das Datas Comemorativas) */
/* === Correção: ONU à esquerda + Twitter à direita === */
.dc-topline{
  width: 100% !important;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  clear: both;                 /* quebra herança de tabelas/align */
}
.dc-onu{ flex: 0 0 auto; }
.dc-onu img.foto.pequena{ max-width: 300px !important; height:auto !important; }

/* Garante que o Twitter vá mesmo para a direita */
.dc-twitter{
  margin-left: auto;
  text-align: right;
}

.dc-twitter-label{
  font-size: 12px;
  color: #cc0000;
  font-weight: bold;
  line-height: 1.2;
}
.dc-twitter-name{
  font-size: 13px;
  color: #000080;
  font-weight: bold;
  line-height: 1.2;
  margin-top: 2px;
}
.dc-twitter-link{
  font-size: 13px;
  font-weight: bold;
  color: #000080;
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}
.dc-twitter-link:hover{ text-decoration: underline; }

/* ===== MENU MESES ===== */
.menu-meses{
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  font-size: 12px;        /* ↓ tamanho menor só nos meses */
  line-height: 1.2;
  white-space: nowrap;   /* evita quebrar palavras */
}

.menu-meses a{
  text-decoration: none;
  font-weight: bold;
  color: #003366;
}

.menu-meses a:hover{
  text-decoration: underline;
}
