:root {
  --vermelho: #c00000;
  --branco: #ffffff;
  --preto: #121212;
  --cinza: #f2f2f2;
  --roxo: #53264f  /* usar esse roxo*/
  
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden; /* evita rolagem horizontal */
  background-color: var(--branco);
  color: var(--vermelho);
  transition: background-color 0.3s, color 0.3s;
}

header {
  background-color: var(--vermelho);
  color: var(--branco);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
}

nav {
  display: flex;
}

nav a {
  color: var(--branco);
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

section {
  padding: 2rem 1rem; /* reduz padding lateral em telas menores */
  max-width: 900px;
  margin: auto;
  box-sizing: border-box;
}

form input, form textarea {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid var(--vermelho);
  border-radius: 4px;
}

button {
  background-color: var(--vermelho);
  color: var(--branco);
  border: none;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border-radius: 4px;
}

footer {
  background-color: var(--vermelho);
  color: var(--branco);
  text-align: center;
  padding: 1rem;
}

.logo {
  height: 60px;
  margin-right: 1rem;
}

.logo-footer {
  height: 50px;
  margin-bottom: 0.5rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

/* Imagens responsivas */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ícone sanduíche */
.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--branco);
  cursor: pointer;
  display: none; /* só aparece no mobile */
}

/* Menu responsivo */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .menu-toggle {
    display: block; /* mostra ícone no mobile */
  }

  nav {
    display: none; /* esconde menu por padrão */
    flex-direction: column;
    align-items: center;
    background-color: var(--vermelho);
    width: 100%;
  }

  nav.show {
    display: flex; /* mostra menu quando ativado */
  }

  nav a {
    margin: 1rem 0;
    display: block;
  }

  .logo {
    margin-bottom: 1rem;
  }
}

section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px;
}

article {
  background: var(--branco);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin: 15px;
  padding: 20px;
  width: 100%;
  max-width: 350px;
  transition: transform 0.2s ease;
}

article:hover {
  transform: translateY(-5px);
}

article h2 {
  margin-top: 0;
  color: var(--vermelho);
  font-size: 1.2rem;
}

article p {
  font-size: 0.95rem;
  line-height: 1.4;
}

article small {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  section {
    flex-direction: column;
    align-items: center;
  }
  article {
    max-width: 90%;
  }
}

/* Grid de álbum */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: var(--branco);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
}

.card img {
  height: 250px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.card h3 {
  margin: 10px 0;
  color: var(--vermelho);
}

.card p {
  padding: 0 10px 10px;
  font-size: 14px;
  color: #555;
}

.card small {
  display: block;
  margin-bottom: 10px;
  color: #999;
}

/* Modal/lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
}

.modal-caption {
  margin: 20px auto;
  text-align: center;
  color: #fff;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ccc;
}

/* Cards de notícias */
.noticia-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.noticia-card .card-img {
  position: relative;
}

.noticia-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.noticia-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 10px;
  font-size: 1.1rem;
  text-align: center;
}

.noticia-card .card-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 10px;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.noticia-card:hover {
  transform: scale(1.03);
}

.noticia-card:hover .card-content {
  max-height: 500px; /* expande para mostrar conteúdo */
  padding: 10px;
}
