/* =====================================================================
   Centro Social e Paroquial de Travancas - Sr. dos Aflitos
   Estilo do site. Cores principais em :root (header.asp injecta as da BD)
   ===================================================================== */

:root {
  --cor1: #2e75c9;   /* azul principal */
  --cor2: #1b4a9e;   /* azul escuro    */
  --cor3: #22303f;   /* quase preto    */
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #444;
  background: #fff;
}

h1, h2, h3, h4, h5, .navbar-nav {
  font-family: 'Poppins', Verdana, sans-serif;
}

a { color: var(--cor1); }
a:hover { color: var(--cor2); text-decoration: none; }

/* ---------- Barra topo ---------- */
.barra-topo {
  background: #22303f;
  color: #c9d4de;
  font-size: .82rem;
  padding: .35rem 0;
}
.barra-topo .link-topo { color: #fff; }
.barra-topo .link-topo:hover { color: #9fc6ef; }
.barra-topo .text-muted { color: #8a9aab !important; }

/* ---------- Cabecalho ---------- */
.logo-site { max-height: 74px; }
.email-topo { color: #555; font-weight: 600; }
.icone-redondo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cor1); color: #fff; margin-right: .5rem;
}
a.icone-redondo:hover { background: var(--cor2); color: #fff; }

/* ---------- Menu ---------- */
.menu-principal {
  background: var(--cor1);
  padding-top: 0; padding-bottom: 0;
}
.menu-principal .nav-link {
  color: #fff !important;
  font-weight: 600; font-size: .85rem;
  letter-spacing: .5px;
  padding: 1rem 1.1rem !important;
}
.menu-principal .nav-item.active,
.menu-principal .nav-link:hover { background: rgba(0,0,0,.15); }

/* ---------- Galeria inicial (hero) ---------- */
.galeria-hero .carousel-item {
  height: 480px;
  background-size: cover;
  background-position: center;
}
.galeria-hero .mascara {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,30,60,.55), rgba(10,30,60,.05));
}
.galeria-hero .carousel-caption {
  bottom: 20%; text-align: left; left: 8%; right: auto; max-width: 520px;
}
.galeria-hero .carousel-caption h2 {
  font-size: 2.3rem; font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.galeria-hero .carousel-caption p { text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.faixa-cor { height: 14px; background: var(--cor2); }

@media (max-width: 767px) {
  .galeria-hero .carousel-item { height: 300px; }
  .galeria-hero .carousel-caption h2 { font-size: 1.4rem; }
}

/* ---------- Faixa de chamada (CTA) ---------- */
.faixa-cta {
  background: #cfe7f7;
  color: #23405e;
  padding: 1.6rem 0;
}
.faixa-cta .btn-cta {
  background: var(--cor2); color: #fff; font-weight: 600;
}
.faixa-cta .btn-cta:hover { background: var(--cor1); color: #fff; }

/* ---------- Cartoes de servicos ---------- */
.cartao-servico {
  border: 0; border-radius: .5rem;
  color: #fff; text-align: center;
  padding: 1.8rem 1rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cartao-servico:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,.18); }
.cartao-servico h3 { font-size: 1.15rem; font-weight: 600; }
.cartao-servico p { font-size: .85rem; min-height: 48px; }
.cartao-servico .btn {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.6);
  color: #fff; font-size: .8rem;
}
.cartao-servico .btn:hover { background: #fff; color: #333; }
.cartao-servico .icone-servico { font-size: 1.8rem; margin-bottom: .6rem; display: block; }

.fundo-azul     { background: var(--cor1); }
.fundo-azul2    { background: var(--cor2); }
.fundo-escuro   { background: #37424c; }
.fundo-celeste  { background: #4a90d9; }
.fundo-cinza    { background: #9aa5a5; }
.fundo-claro    { background: #6c7a7a; }

/* ---------- Titulos de seccao ---------- */
.titulo-seccao {
  font-weight: 700; color: #333;
  position: relative; margin-bottom: 2.2rem;
}
.titulo-seccao:after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--cor1); margin-top: .6rem;
}
.titulo-seccao.centrado { text-align: center; }
.titulo-seccao.centrado:after { margin-left: auto; margin-right: auto; }

/* ---------- Galeria de fotos ---------- */
.foto-galeria {
  display: block; border-radius: .4rem; overflow: hidden;
  border: 1px solid #e5ebf1; background: #fff;
  margin-bottom: 24px;
}
.foto-galeria img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .25s ease;
}
.foto-galeria:hover img { transform: scale(1.05); }
.foto-galeria .legenda {
  display: block; padding: .5rem .8rem; font-size: .85rem;
  font-weight: 600; color: #445; background: #f4f8fb;
}
.filtros-galeria .btn {
  font-size: .82rem; font-weight: 600; margin: 0 .25rem .5rem 0;
  border: 1px solid var(--cor1); color: var(--cor1);
}
.filtros-galeria .btn.activo,
.filtros-galeria .btn:hover { background: var(--cor1); color: #fff; }

/* ---------- Instalacoes (carrossel) ---------- */
.galeria-instalacoes { background: #f4f8fb; }
.galeria-instalacoes .item-foto img {
  height: 200px; object-fit: cover; border-radius: .4rem;
}

/* ---------- Citacoes missao / visao ---------- */
.bloco-citacao {
  background: linear-gradient(135deg, var(--cor1), var(--cor2));
  color: #fff; border-radius: .6rem;
  padding: 2.2rem 2.4rem; height: 100%;
}
.bloco-citacao h3 { font-size: 1.2rem; font-weight: 700; }
.bloco-citacao p { font-size: .95rem; font-style: italic; margin-bottom: 0; }

/* ---------- Paginas interiores ---------- */
.faixa-pagina {
  background: var(--cor2); color: #fff;
  padding: 2.2rem 0 1.6rem;
  position: relative;
  background-size: cover;
  background-position: center 30%;
}
/* pelicula azul por cima da foto, para o texto se ler bem */
.faixa-pagina.com-foto:before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,50,110,.72), rgba(20,50,110,.25));
}
.faixa-pagina .container { position: relative; }
.faixa-pagina h1 { font-size: 1.9rem; font-weight: 600; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.faixa-pagina .caminho { font-size: .8rem; opacity: .95; }
.faixa-pagina .caminho a { color: #fff; text-decoration: underline; }

.bloco-icone {
  border-top: 3px solid var(--cor1);
  box-shadow: 0 6px 16px rgba(0,0,0,.07);
  border-radius: .3rem; background: #fff;
  padding: 1.6rem 1.8rem; margin-bottom: 2rem;
}
.bloco-icone h3 { font-size: 1.15rem; font-weight: 600; color: #333; }
.bloco-icone .icone {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cor1); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: .8rem;
}

/* ---------- Documentos (relatorios e contas) ---------- */
.tabela-documentos thead th {
  background: var(--cor1); color: #fff; border: 0;
  font-size: .9rem;
}
.tabela-documentos tbody tr:nth-child(odd) { background: #f2f6fa; }
.tabela-documentos td { font-size: .92rem; vertical-align: middle; }
.filtros-anos .btn {
  display: block; width: 100%; margin-bottom: .5rem;
  background: var(--cor2); color: #fff; font-weight: 600;
}
.filtros-anos .btn.activo,
.filtros-anos .btn:hover { background: var(--cor1); color: #fff; }

/* ---------- Contactos ---------- */
.cartao-contacto {
  border: 1px solid #e0e9f1; border-radius: .4rem;
  padding: 1.4rem; height: 100%; background: #fff;
}
.cartao-contacto h4 { font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.cartao-contacto ul { list-style: none; padding: 0; margin: 0; font-size: .87rem; }
.cartao-contacto li { margin-bottom: .55rem; }
.cartao-contacto i { color: var(--cor1); width: 20px; }
.mapa-contactos iframe { width: 100%; height: 340px; border: 0; }

/* ---------- Rodape ---------- */
.faixa-nome { border-bottom: 2px solid var(--cor1); }
.etiqueta-nome {
  display: inline-block; background: var(--cor1); color: #fff;
  font-family: 'Poppins', cursive; padding: .45rem 1.6rem;
  margin-left: 4%; border-radius: .3rem .3rem 0 0;
}
.rodape { background: #101820; color: #b9c4ce; font-size: .88rem; }
.titulo-rodape { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.lista-rodape { list-style: none; margin: 0; padding: 0; }
.lista-rodape li { margin-bottom: .5rem; }
.lista-rodape a { color: #b9c4ce; }
.lista-rodape a:hover { color: #9fc6ef; }
.lista-contactos i { color: var(--cor1); width: 18px; }
.icones-sociais a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: #26313c; color: #fff; margin-right: .4rem;
}
.icones-sociais a:hover { background: var(--cor1); }
.linha-copyright { border-top: 1px solid #26313c; font-size: .8rem; }
.logo-rodape { max-height: 40px; background: #fff; border-radius: .2rem; padding: 2px 6px; }
