/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  color-scheme: light only; /* Garante que o site ignore o dark mode do sistema */

  --color-bg-main: #fbfbfb; /* Fundo da <main>, tom suave */
  --color-bg-nav-footer: #142126; /* Fundo do menu e footer */
  
  --color-text-primary: #FCFCFC; /* Cor dos textos gerais */
  --color-text-secondary: #3F1111; /* Cor dos subtítulos e destaque */
  
  --line-height-default: 1.6;
  --section-padding: 40px;
  
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;

  --font-size-base: 16px;
  --font-size-lg: 24px;
}

body {
  font-family: "Montserrat", sans-serif, Arial, Helvetica;
  font-size: var(--font-size-base);
  line-height: var(--line-height-default);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  background-color: #fbfbfb; /* Define um fundo claro fixo */
  color: var(--color-text-secondary); /* Mantém contraste adequado */
}

/* ====== HEADER & NAV ====== */
header {
  position: relative;
}

header nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-bg-nav-footer);
  height: 70px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: 0 var(--font-size-lg);
}

nav ul li {
  list-style: none;
}

nav ul li a {
  color: var(--color-text-primary);
  text-decoration: none;
}

nav ul li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.divider {
  width: 80px;
  height: 1px;
  background-color: var(--color-text-primary);
  margin-right: var(--spacing-lg);
}

/* ====== MENU HAMBÚRGUER ====== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-primary);
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 101;
}

/* ====== BANNER & LOGO ====== */
.branding img {
  width: 100%;
  max-height: 810px;
  height: auto;
  object-fit: cover;
}

.logo-container {
  position: absolute;
  top: 35%;
  left: 20%;
  z-index: 10;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.logo-container img {
  width: 411px;
  height: auto;
}

.tagline {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  position: absolute;
  top: 80%;
  width: 450px;
}

.highlight {
  color: var(--color-text-secondary);
  position: absolute;
  top: 90%;
  left: 75%;
  transform: translate(-50%, -50%);
  width: 600px;
}

/* ====== MAIN ====== */
main {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  background-color: var(--color-bg-main);
}

.section img {
  width: 450px;
  height: auto;
  object-fit: cover;
}

.section {
  display: flex;
  justify-content: center;
  gap: 140px;
  margin: 30px 130px;
}

section:last-child {
  margin-bottom: 130px;
}

.content-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;
  max-width: 500px;
}

.content-card h2 {
  text-transform: uppercase;
  margin-bottom: 10px;
}

.divider-card {
  width: 140px;
  height: 1px;
  background-color: var(--color-bg-nav-footer);
  margin: var(--spacing-sm) auto;
}

/* ====== FOOTER ====== */
footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-color: var(--color-bg-nav-footer);
  color: var(--color-text-primary);
  text-align: center;
  padding: 20px;
}

.social ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  margin-bottom: 25px;
  gap: 12px;
}

.social ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--color-text-primary);
}

.social img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  filter: invert(100%) brightness(200%);
}

.divider-footer {
  display: block;
  width: 800px;
  height: 1px;
  background-color: var(--color-text-primary);
}

footer p {
  margin-top: 20px;
}

.developer {
  font-size: 12px;
}

/* ====== PAGINA DA HISTORIA ===== */
.timeline-page {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: var(--spacing-lg);
}

.timeline-page h1 {
  margin-bottom: 20px;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding-left: 30px; /* Ajuste para a linha da timeline */
  border-left: 3px solid var(--color-text-secondary);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--color-text-secondary);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
}

.timeline-date {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--color-text-secondary);
  width: 120px; /* Definir uma largura fixa para alinhar melhor */
  text-align: right;
  position: relative;
}

.timeline-content {
  background-color: var(--color-bg-main);
  padding: var(--spacing-md);
  border-radius: 6px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  width: 75%;
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.02);
}

/* ====== PAGINA DE ATIVIDADES ===== */
.activities-page {
  max-width: 900px;
  margin: auto;
  text-align: center;
  padding: var(--spacing-lg);
}

/* Correção global dos títulos h2 */
.activity-category h2 {
  color: var(--color-text-secondary); /* Agora todos os títulos são visíveis */
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin: 24px auto;
}

/* Melhor organização das listas */
.activity-list,
.action-list,
.event-list,
.award-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Estilos para itens */
.activity-item,
.action-item,
.event-item,
.award-item {
  background-color: var(--color-bg-main);
  padding: var(--spacing-md);
  border-radius: 6px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Ajustando a seção de premiações */
.award-item ul {
  text-align: left;
  margin-top: var(--spacing-sm);
  list-style: none;
}

.award-item ul li {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* Layout responsivo das imagens do jornal */
.news-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.news-image-container img {
  width: 100%;
  max-width: 250px;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

.news-image-container img:hover {
  transform: scale(1.05);
}

/* Estilo para abrir imagens em tela cheia */
.fullscreen-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.fullscreen-image img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* ====== PAGINA DE CONTATO ===== */
.contact-page {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 80px;
  max-width: 80%;
  margin: auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  width: 50%;
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
} 

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-page button {
  background-color: var(--color-bg-nav-footer);
  color: var(--color-text-primary);
  padding: var(--spacing-md);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: var(--spacing-lg);
}

.contact-map {
  width: 50%;
}

.contact-page iframe {
  max-width: 600px;
  width: 100%;
  height: 300px;
  margin: var(--spacing-lg);
}

/* ====== RESPONSIVIDADE ====== */
@media (max-width: 768px) {
  /* MENU HAMBÚRGUER */
  .menu-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background-color: var(--color-bg-nav-footer);
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: auto;
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--color-text-primary);
  }

  .menu.active {
    display: flex;
  }

  /* HEADER AJUSTADO */
  .branding img {
    max-height: 400px;
  }

  .logo-container {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    margin: auto;
  }

  .tagline {
    position: static;
    max-width: 90%; /* Evita que ultrapasse a tela */
    text-align: center;
    font-size: var(--font-size-base);
    margin: var(--spacing-sm) auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .highlight {
    display: none;
  }

  /* MAIN HOME AJUSTADO */
  .section {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
  }

  section:last-child {
    margin-bottom: 16px;
  }

  .content-card {
    order: -1;
    max-width: 90%;
    padding: var(--spacing-md);
  }

  .section img {
    width: 100%;
    max-width: 400px;
    margin-top: var(--spacing-md);
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline-date {
    text-align: left;
    width: auto;
  }

  .timeline-content {
    width: 100%;
  }

  /* Oculta o ponto na versão mobile */
  .timeline-date::before {
    display: none;
  }

  .activities-page {
    max-width: 100%;
    padding: var(--spacing-md);
  }

  .activity-category h2 {
    font-size: var(--font-size-lg);
  }

  /* Ajustando o layout dos eventos e ações */
  .activity-list,
  .action-list,
  .event-list,
  .award-list {
    gap: var(--spacing-sm);
  }

  .activity-item,
  .action-item,
  .event-item,
  .award-item {
    padding: var(--spacing-sm);
  }

  /* Ajustando a seção de imagens do jornal */
  .news-image-container {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
  }

  .news-image-container img {
    max-width: 80%;
  }
  
  /* PAGINA DE CONTATO */
  .contact-page {
    flex-direction: column; /* Empilha o formulário e o mapa */
    text-align: center;
    align-items: center; /* Centraliza os elementos */
    gap: var(--spacing-md);
    max-width: 90%; /* Reduz a largura para se ajustar melhor à tela */
  }

  .contact-form,
  .contact-map {
    width: 100%; /* Ambos ocupam a largura total */
    max-width: 500px; /* Limita o tamanho máximo para evitar expansão excessiva */
    margin-bottom: 0;
  }

  .contact-form textarea {
    height: 200px; /* Aumenta área de digitação para conforto */
  }

  .contact-page button {
    width: 100%;
  }

  /* FOOTER */
  footer {
    padding: var(--spacing-lg); /* Aumenta o espaçamento interno */
    min-height: auto; /* Permite que o conteúdo expanda naturalmente */
  }

  .social ul {
    flex-direction: row; /* Mantém os ícones em linha */
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
  }

  .social ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .social ul li a span {
    display: none; /* Esconde o texto ao lado dos ícones */
  }

  .social img {
    width: 24px; /* Define um tamanho adequado */
    height: auto;
    object-fit: contain;
    filter: invert(100%) brightness(200%);
  }

  .divider-footer {
    width: 80%;
    margin: var(--spacing-md) auto;
  }
}
