/* Fonte moderna */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

/* Reset básico */
#cssmenu,
#cssmenu ul,
#cssmenu ul li,
#cssmenu ul li a,
#cssmenu #menu-button {
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  line-height: 1;
  display: block;
  position: relative;
  box-sizing: border-box;
}

#cssmenu:after,
#cssmenu > ul:after {
  content: '';
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

/* Menu principal */
#cssmenu {
  max-width: 980px;
  margin: 0 auto;
  font-family: 'Open Sans', Helvetica, sans-serif;
  background: linear-gradient(to bottom, #d3050d 0%, #d5262d 100%);
}

#cssmenu > ul {
  display: flex;
  flex-wrap: wrap;
  background: url('images/bg.png');
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.05);
}

#cssmenu > ul > li {
  flex: 1;
  text-align: center;
}

#cssmenu > ul > li > a {
  padding: 18px 25px;
  border-right: 1px solid rgba(80, 80, 80, 0.12);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #d3eced;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#cssmenu > ul > li:hover > a,
#cssmenu > ul > li.active > a {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.1);
}

/* Indicador de submenu */
#cssmenu > ul > li.has-sub > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top-color: #d3eced;
  right: 17px;
  top: 22px;
  transition: transform 0.3s ease;
}

#cssmenu > ul > li.has-sub.open > a::after {
  transform: rotate(180deg); /* seta gira para cima */
}

/* Submenus com animação */
#cssmenu ul ul {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 52px;
  left: 0;
  background: #8e0107;
  font-size: 13px;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

#cssmenu ul ul.open {
  max-height: 500px;
  opacity: 1;
}

/* Submenus */
#cssmenu ul ul {
  max-height: 0;
  overflow: hidden;
  position: absolute;
  top: 52px;
  left: 0;
  background: #8e0107;
  font-size: 13px;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}

#cssmenu ul ul.open {
  max-height: 500px;
  opacity: 1;
}

#cssmenu ul ul li a {
  text-decoration: none;
  font-weight: 400;
  padding: 11px 25px;
  width: 180px;
  color: #ffffff;
  background: #8e0107;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, color 0.3s ease;
}

#cssmenu ul ul li:hover > a {
  background: #a50c12;
  color: #ffd700;
}

/* Responsivo menu */
#menu-button { display: none; }
@media (max-width: 800px) {
  #cssmenu > ul { flex-direction: column; display: none; width: 100%; }
  #cssmenu > ul.open { display: flex; }
  #cssmenu > ul > li { width: 100%; }
  #cssmenu > ul > li > a { border-right: 0; }
  #menu-button {
    display: block;
    background: #d3050d;
    color: #fff;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
  }
}

/* NOTICIAS */

.noticias-agenda {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

#divnoticia {
  flex: 2;             /* ocupa mais espaço */
  min-width: 0;        /* evita estourar */
}

#divagenda {
  flex: 1;             /* ocupa menos espaço */
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  min-width: 0;        /* evita estourar */
}

#divagenda {
  margin-bottom: 30px;
}

#carousel {
  overflow: hidden;
  width: 100%;
}

#carousel ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
  animation: slide 30s infinite linear; /* animação automática */
}

#carousel .noticia {
  flex: 0 0 550px;   /* largura fixa */
  height: 300px;
  margin: 0 20px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  text-align: center;
}

#carousel .noticia img {
  width: 100%;
  height: 600px;
  object-fit: cover;	/* corta proporcionalmente */
  border-radius: 0px;
  margin-bottom: 10px;
}

#carousel .noticia h3 {
  font-size: 1.1em;
  margin: 5px 0;
  color: #333;
}

#carousel .noticia p {
  font-size: 0.9em;
  color: #555;
}

@media (max-width: 768px) {
  .noticias-agenda {
    flex-direction: column;
  }
  #divnoticia, #divagenda {
    width: 100%;
  }
}

  #carousel .noticia img {
    height: auto;
  }
}

.indicators img {
  width: 60px;
  height: 40px;
  object-fit: cover;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
}
.indicators img.active {
  opacity: 1;
  border: 2px solid #d3050d;
}


/* animação contínua */
@keyframes slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.indicators {
  text-align: center;
  margin-top: 15px;
}

.indicators span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.indicators span.active {
  background: #d3050d; /* vermelho institucional */
}
/* FIM NOTICIAS */

/* AGENDA */

.agenda-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.agenda-data {
  text-align: center;
  min-width: 80px;
  background: #d3050d;
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: bold;
}

.agenda-data .dia {
  font-size: 1.6em;
  display: block;
}

.agenda-data .mes,
.agenda-data .ano {
  font-size: 0.9em;
  display: block;
}

.agenda-conteudo {
  flex: 1;
}

.agenda-conteudo .titulo {
  font-size: 1.2em;
  font-weight: bold;
  color: #fff;
}

.agenda-conteudo .descricao_home {
  margin: 10px 0;
  color: #fff;
  line-height: 1.4;
}

.agenda-local {
  font-size: 0.9em;
  color: #777;
  margin-top: 5px;
}

.agenda-link a {
  font-size: 0.9em;
  font-weight: bold;
  color: #d3050d;
  text-decoration: none;
}

.agenda-link a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 600px) {
  .agenda-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .agenda-data {
    margin-bottom: 10px;
  }
}
/* --- FIM AGENDA --- */

#divgaleria {
  margin-top: 90px;   /* espaço extra acima da galeria de fotos */
}

#divvideo {
  margin-top: 90px;   /* espaço extra acima da galeria de vídeos */
}

/* --- BRECHO --- */
#divbrecho {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 980px;
  margin: 50px auto; /* controla a distância do bloco anterior */
}

.brecho-item {
  flex: 1;
  text-align: center;
}

.brecho-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.brecho-item.doacao img {
  max-width: 100%;
  height: auto;
}

/* Responsivo */
@media (max-width: 768px) {
  #divbrecho {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .brecho-item {
    width: 100%;
  }
}
/* --- FIM BRECHO --- */

/* --- PUBLICIDADE --- */
#divpublicidade {
  max-width: 980px;
  margin: 40px auto;
  text-align: center;
}

#divpublicidade img {
  margin-bottom: 20px;
}

.publicidade-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
}

.publicidade-item {
  flex: 0 0 220px;
}

.publicidade-item img {
  width: 220px;
  height: 110px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.publicidade-item img:hover {
  transform: scale(1.05);
}
/* --- FIM PUBLICIDADE --- */

/* --- Rodapé --- */
#divbaixo {
  width: 100%;
  margin: 40px 0 0;
  background: #8e0107;       /* fundo vermelho institucional */
  color: #fff;
  font-family: Verdana, Arial, sans-serif;
  padding: 20px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 20px;
  max-width: 1200px;         /* centraliza conteúdo interno */
}

.footer-item {
  flex: 1;
  min-width: 250px;
}

.footer-item img { margin-bottom: 10px; }

.footer-item nav a {
  display: block;
  margin: 5px 0;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-item nav a:hover {
  color: #ffd700;
  text-shadow: 0 0 5px #ffd700;
}

/* Área de redes sociais */
.footer-social {
  margin-top: 15px;
}

.social-links {
  display: flex;
  justify-content: center;   /* centraliza os ícones */
  gap: 20px;                 /* espaço entre eles */
  flex-wrap: wrap;           /* quebra linha em telas pequenas */
}

.social-links .social {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}

.icon-wrapper {
  display: flex;
  flex-direction: column;    /* ícone em cima, texto embaixo */
  align-items: center;
  gap: 5px;
}

.icon-wrapper img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.icon-wrapper img:hover {
  transform: scale(1.2);     /* efeito hover */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  font-size: 0.9em;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

/* Responsivo rodapé */
@media (max-width: 768px) {
  .footer-top { 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
  }
  .footer-item { 
    width: 100%; 
    text-align: center; 
  }
  .footer-bottom { 
    flex-direction: column; 
    gap: 10px; 
    text-align: center; 
  }
  .social-links { 
    justify-content: center; 
  }
}
