@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');

:root {
  --background: #abd1c6;
  --background-second: #004643;
  --headline: #001e1d;
  --text: #e8e4e6;

  --font-padrao: 'Noto Sans', 'Arial', sans-serif;
  --font-titulo: "Tangerine", cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-padrao);
}

body {
    background-color: var(--background);
}

header {
    text-align: center;
    background-color: var(--background-second);
    color: var(--text);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

header > h1{
  font-size: 50px;
  font-family: var(--font-titulo);
}

nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: var(--background-second);
    position: fixed;
    width: 100%;
    z-index: 999;
}

nav a {
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.5s ease;
}

nav a:hover {
    background-color: var(--background);
    color: var(--background-second);
    border-radius: 5px;
}

p {
    text-indent: 5%;
    margin-top: 1%;
    text-align: justify;
}

.hero {
    height: 60vh;
    background: linear-gradient(#abd1c6, #00000000), url('https://servicodados.ibge.gov.br/api/v1/resize/image?maxwidth=600&maxheight=600&caminho=biblioteca.ibge.gov.br/visualizacao/fotografias/GEBIS%20-%20RJ/pb42998.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 60px;
}

.hero h2 {
  font-family: var(--font-titulo);
  font-size: 150px;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.section {
    background: var(--background-second);
    color: var(--text);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.section > h2 {
  color: var(--background);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
}

.timeline-item {
    padding: 20px;
    margin: 20px 0;
    background: #001e1d;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item i {
  transition: transform 0.3s ease;
  margin-left: 10px;
}

.timeline-item.active i {
  transform: rotate(180deg);
}

.timeline-content {
  display: none;
  padding-top: 10px;  
}

.timeline-item.active .timeline-content {
  display: block;
}

.timeline-item h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.links a {
  font-style: italic;
  color: var(--background);
  text-decoration: none;
}

.mapa {
    height: 400px;
    margin: 2rem 0;
}

footer {
    background-color: var(--background-second);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer > p {
  text-indent: 0;
  margin: 0;
}

.active {
    background-color: var(--background);
    color: var(--background-second);
    border-radius: 5px;
}

/* MEDIA QUERIE */

@media (max-width: 768px) {
    header {
      padding: 0.5rem;
      position: relative;
    }
  
    nav {
      flex-direction: column;
      text-align: center;
      position: relative;
      padding: 0.5rem;
    }
  
    nav a {
      padding: 0.5rem;
      margin: 2px 0;
      font-size: 0.9rem;
    }
  
    .hero {
      height: 40vh;
      margin-top: 0;
    }
  
    .container {
      margin: 1rem auto;
      padding: 0 0.5rem;
    }
  
    .section {
      padding: 1rem;
      margin: 1rem 0;
    }
  
    .timeline-item {
      padding: 15px;
      margin: 15px 0;
    }
  
    .timeline-item h3 {
      font-size: 1rem;
    }
  
    .mapa {
      height: 300px;
    }  
    
    .embed-google-map iframe {
      height: 300px;
    }
    
    .imagens-historicas img {
      max-width: 100%;
      height: auto;
    }
  }

  @media (max-width: 480px) {
    h1 {
      font-size: 1.5rem;
    }
  
    h2 {
      font-size: 1.3rem;
    }
  
    .hero h2 {
      font-size: 1.2rem;
      text-align: center;
      padding: 0 10px;
    }
  
    .timeline-item {
      padding: 10px;
    }
  
    .timeline-item h3 {
      font-size: 0.9rem;
    }
  
    .mapa {
      height: 250px;
    }
  
    .embed-google-map iframe {
      height: 250px;
    }
  }
  
  @media (min-width: 769px) {
    body {
      padding-top: 140px;
    }
  
    header {
      position: fixed;
    }
  
    nav {
      position: fixed;
      top: 76px;
    }
  }
  
  @media (max-width: 768px) {
    body {
      padding-top: 0;
    }
  
    header, nav {
      position: relative;
    }
  }
  
  p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .timeline-item:hover {
    transform: none;
  }