/* Leonardo (leonardoaderito-cmyk): cabecalho so com o logotipo (sem barra de topo) e rodape reduzido.
   Ficheiro a parte do app.css (compilado pelo Vite) para poder ser alterado no servidor sem compilar. */

/* ---------- Leitura: fundo cinzento claro em vez de branco puro; cartoes e tabelas continuam brancos ---------- */
body:not(.admin) { background: #f1f1ef; color: #1c1c1c; }
body:not(.admin) .titulo-seccao, body:not(.admin) .cabecalho-pagina { border-bottom-color: #d4d4d0; }
body:not(.admin) .conteudo-texto p, body:not(.admin) .conteudo-texto li { color: #262626; }
/* Barras laterais da pagina inicial em caixas brancas, para destacarem do fundo */
body:not(.admin) .lateral-bloco { background: #ffffff; border: 1px solid #e0e0dc; padding: .9rem 1rem 1rem; }

/* ---------- Cabecalho preto: logotipo + nome da Camara | pesquisa (a conta esta no rodape) ---------- */
/* Compacto e sobrio, como os portais do governo: barra preta lisa, emblema pequeno e nome em duas linhas */
.cabecalho { background: #000000; border-bottom: 0; }
.cabecalho-conteudo { flex-wrap: nowrap; gap: 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.cabecalho-marca { flex: 0 1 auto; display: flex; align-items: center; gap: .65rem; margin-right: auto; min-width: 0; color: #ffffff; }
/* O logotipo (fundo branco) fica num disco branco com aro vermelho fino */
.cabecalho-disco { flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 2px #b5121b; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cabecalho-logo { flex: none; width: 128%; height: 128%; max-width: none; object-fit: contain; }
.cabecalho-titulo { display: flex; flex-direction: column; min-width: 0; padding-left: .65rem; border-left: 1px solid #b5121b; }
.cabecalho-nome-novo { font-size: .78rem; font-weight: 700; line-height: 1.2; letter-spacing: .04em; text-transform: uppercase; color: #ffffff; }
.cabecalho-marca:hover .cabecalho-nome-novo { color: #f1f1f1; text-decoration: underline; text-decoration-color: #b5121b; text-underline-offset: 4px; }
/* Pesquisa sobre o fundo preto */
.cabecalho .pesquisa { flex: 0 1 20rem; height: 2.1rem; }
.cabecalho .pesquisa input { font-size: .85rem; }
.cabecalho .pesquisa button { font-size: .82rem; }
.cabecalho .pesquisa input { border: 1px solid #ffffff; border-right: 0; background: #ffffff; }
.cabecalho .pesquisa button { background: #b5121b; }
.cabecalho .pesquisa button:hover { background: #8c0e15; }
/* Tablet: nome mais pequeno */
@media (max-width: 900px) {
    .cabecalho-nome-novo { font-size: .74rem; }
    .cabecalho .pesquisa { flex-basis: 15rem; }
}
/* Telemovel: logotipo e nome numa linha, pesquisa por baixo a toda a largura */
@media (max-width: 640px) {
    .cabecalho-conteudo { flex-wrap: wrap; gap: .55rem; padding-top: .55rem; padding-bottom: .6rem; }
    .cabecalho-marca { gap: .55rem; margin-right: 0; }
    .cabecalho-disco { flex-basis: 1.9rem; width: 1.9rem; height: 1.9rem; }
    .cabecalho-titulo { padding-left: .55rem; }
    .cabecalho-nome-novo { font-size: .68rem; }
    .cabecalho .pesquisa { flex: 1 1 100%; width: 100%; }
}

/* Leonardo (leonardoaderito-cmyk): "Lista de despachantes" no lado direito da barra de menu */
.mega-item-direita { margin-left: auto; display: flex; align-items: center; padding: .3rem 0; }
.mega-lista-despachantes { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; background: #000000; color: #ffffff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; transition: background .15s, color .15s; }
.mega-lista-despachantes .icone { width: 1.1rem; height: 1.1rem; }
.mega-lista-despachantes:hover, .mega-lista-despachantes:focus-visible, .mega-lista-despachantes.activo { background: #ffffff; color: #b5121b; }
@media (max-width: 860px) {
    .mega-item-direita { margin-left: 0; padding: .6rem 0 0; }
    .mega-lista-despachantes { width: 100%; justify-content: center; padding: .6rem .9rem; }
}

/* ---------- Rodape reduzido ---------- */
.rodape { background: #000000; color: #c8c8c8; margin-top: 2.5rem; font-size: .88rem; border-top: 4px solid #b5121b; }
.rodape a:hover, .rodape button:hover { color: #ffffff; text-decoration: underline; }
.rodape-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.rodape-identidade { display: flex; align-items: center; gap: .75rem; min-width: 0; max-width: 22rem; }
.rodape-logo { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #ffffff; object-fit: cover; }
.rodape-identidade strong { display: block; color: #ffffff; font-size: .92rem; line-height: 1.25; }
.rodape-identidade span { display: block; font-size: .8rem; color: #9a9a9a; margin-top: .15rem; }
.rodape-ligacoes { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.rodape-ligacoes a { color: #dcdcdc; font-weight: 600; }
.rodape-newsletter-mini { display: flex; height: 2.25rem; width: min(16rem, 100%); }
.rodape-newsletter-mini input { flex: 1; min-width: 0; padding: 0 .65rem; border: 0; background: #ffffff; color: #1a1a1a; font-size: .85rem; }
.rodape-newsletter-mini button { background: #b5121b; color: #ffffff; font-weight: 600; padding: 0 .85rem; font-size: .85rem; }
.rodape-newsletter-mini button:hover { background: #8c0e15; text-decoration: none; }
.rodape-fim { border-top: 1px solid #2a2a2a; color: #8a8a8a; font-size: .8rem; }
.rodape-fim > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
/* Conta no rodape: entrar, registar, area do membro, sair */
.rodape-conta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; }
.rodape-conta form { display: flex; }
.rodape-conta a, .rodape-conta button { display: inline-flex; align-items: center; gap: .3rem; color: #dcdcdc; font-weight: 600; font-size: .85rem; }
.rodape-conta .icone { width: 1.1rem; height: 1.1rem; }
.rodape-conta-nome { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rodape-conta .rodape-conta-botao { background: #b5121b; color: #ffffff; padding: .3rem .75rem; }
.rodape-conta .rodape-conta-botao:hover { background: #8c0e15; text-decoration: none; }
@media (max-width: 640px) {
    .rodape-newsletter-mini { width: 100%; }
}
