/* ==========================
   Reset básico
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================
   Corpo da página
========================== */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* ==========================
   Cabeçalho
========================== */
header {
  background: linear-gradient(90deg, #f50707, #f50707);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: center; /* garante centralização do título */
  padding: 0 1.5rem;
  flex-wrap: wrap;
  position: relative;
}

header h1 {
  margin: 0;
  font-weight: bold;
  font-size: 1.8rem;
  text-align: center;
  flex: 1;
}

/* Botão voltar */
#voltar {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: white;
  color: #d30505;
  border: 2px solid #d30505;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
#voltar:hover {
  background-color: #d30505;
  color: white;
}

/* Logo */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  height: 50px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Links visíveis no topo */
.top-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: center;
}
.top-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5rem 0.75rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}
.top-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Botão do menu */
.menu-toggle {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.menu-toggle:hover {
  transform: scale(1.1);
}

/* Menu oculto por padrão */
.menu {
  display: none;
  background-color: #c62828;
  animation: fadeIn 0.3s ease-in-out;
}
.menu.ativo {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu ul {
  list-style: none;
  padding: 1rem 1.5rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}
.menu ul li a:hover {
  color: #ffcccb;
}

/* ==========================
   Conteúdo principal / Postagens
========================== */
main {
  max-width: 850px;
  margin: 2rem auto;
  padding: 1rem;
}

.postagens h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #f50707;
  border-bottom: 2px solid #f50707;
  padding-bottom: 0.5rem;
  text-align: center;
}

/* Centralizar título principal */
.post-title {
  text-align: center;
  font-size: 2rem;
  color: #d30505;
  font-weight: bold;
  margin: 1rem 0 2rem 0;
}

/* Posts */
.post {
  background-color: #fff;
  border: 2px solid #f50707;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.post h2 {
  font-size: 1.6rem;
  color: #d30505;
  font-weight: bold;
}

/* Artigos */
article {
  background-color: white;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 6px solid #f50707;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  transition: transform 0.2s ease;
}
article:hover {
  transform: translateY(-3px);
}
article h2, 
article h3 {
  color: #d30505;
  margin-bottom: 1rem;
}
article p {
  margin-bottom: 1rem;
  text-align: justify;
  color: #444;
}
ul { padding-left: 1.5rem; margin-bottom: 1.5rem; }
ul li { margin-bottom: 0.8rem; }
strong { color: #d30505; }

/* ==========================
   Testemunhos
========================== */
.testemunhos {
  margin-top: 3rem;
}
.testemunhos h2 {
  font-size: 1.8rem;
  color: #c62828;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f50707;
  padding-bottom: 0.5rem;
  text-align: center;
}
.testemunho {
  background-color: #fff;
  border-left: 5px solid #f50707;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}
.testemunho:hover {
  transform: translateY(-2px);
}
.testemunho h3 {
  font-size: 1.2rem;
  color: #f50707;
  margin-bottom: 0.5rem;
}
.testemunho p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.testemunho small {
  display: block;
  font-size: 0.85rem;
  color: #777;
}

/* ==========================
   Rodapé
========================== */
footer {
  background-color: #f50707;
  color: white;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  border-top: 1px solid #f50707;
}

/* ==========================
   Cookie Banner
========================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none; /* inicial escondido */
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  z-index: 9999;
}
.cookie-banner button {
  background: #f50707;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.cookie-banner button:hover {
  background: #d32f2f;
}
.cookie-banner a {
  color: #f50707;
  text-decoration: underline;
}

/* ==========================
   Botão voltar (extra)
========================== */
.btn-voltar {
  display: inline-block;
  margin: 15px 0;
  padding: 10px 20px;
  background-color: #f50707;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
}
.btn-voltar:hover {
  background-color: #d32f2f;
}

/* ==========================
   Responsividade
========================== */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }
  .top-links {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
  }
  .top-links a {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  .menu-toggle {
    align-self: flex-end;
  }
  .menu ul {
    flex-direction: column;
  }
  main {
    padding: 1.5rem;
  }
  article {
    padding: 1rem;
  }
  .testemunho {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.4rem;
  }
  main {
    padding: 1rem;
    margin: 1rem;
  }
  .post h2 {
    font-size: 1.3rem;
  }
  article h2 {
    font-size: 1.2rem;
  }
  .testemunho h3 {
    font-size: 1rem;
  }
  .testemunho p {
    font-size: 0.9rem;
  }
  .btn-voltar {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
}
