* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

.section-history {
  background-color: #e30613;
  color: white;
  padding: 50px 0;
  text-align: left;
}

.history-header h2 {
  font-size: 3.5em;
  font-weight: bold;
  margin-bottom: 50px;
  text-transform: uppercase;
  transition: transform 0.3s ease;
  text-align: left;
  font-style: italic;
  margin-left: 40px;
}

.history-header h2:hover {
  transform: scale(1.02);
}

.history-header i {
  margin-right: 10px; /* Espaço entre o ícone e o título */
  color: white; /* Cor do ícone */
  font-size: 1.3em; /* Tamanho do ícone */
}

.history-header p {
  font-size: 1.2em;
  margin-bottom: 80px;
  white-space: pre-line;
  line-height: 1.6;
  font-style: italic;
  margin-left: 40px;
}

.timeline-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.timeline {
  display: flex;
  max-width: 90%;
  position: relative;
  justify-content: space-between;
  align-items: flex-start;
}

.timeline-item {
  font-size: 1.2em;
  cursor: pointer;
  padding: 30px;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;

}

.timeline-item.active {
  font-weight: bold;
  color: #000000;
}

.progress-line {
  position: relative;
  height: 4px;
  background-color: white;
  margin: 10px auto;
  max-width: 60%;
}

.progress {
  height: 4px;
  background-color: #000000;
  width: 12.5%; /* Ajuste baseado no número de itens */
  transition: width 0.3s ease;
}

.timeline-item::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item.active::after {
  background-color: #050000;
}

.history-content {
  max-width: 80%;
  margin: 0 auto;
}

.year-content {
  display: none;
  margin-top: 20px;
}

.year-content.active {
  display: block;
}

.year-content h3 {
  font-size: 2.5em;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
  font-style: italic;
}

.year-content p {
  font-size: 1.2em;
  text-align: center;
  font-style: italic;
}

.history-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* Centraliza a imagem */
  float: right;
}

.history-images img {
  width: 500px; /* Reduzir o tamanho da imagem se necessário */
  margin: 0; /* Remover qualquer margem ao redor da imagem */
  display: block;
  transition: transform 0.3s ease;
}

.history-images img:hover {
  transform: scale(1.05); /* Leve aumento ao passar o mouse */
}
/* Media query para telas menores (até 480px) */
@media (max-width: 480px) {
  .section-history {
    padding: 20px 0; /* Menor padding para telas pequenas */
    text-align: center; /* Centraliza o texto */
  }

  .history-header h2 {
    font-size: 2.5em; /* Reduzir o tamanho do título */
    margin-left: 0; /* Remover margem esquerda */
    margin-bottom: 20px; /* Ajustar espaço inferior */
  }

  .history-header p {
    font-size: 1em; /* Reduzir o tamanho do texto do parágrafo */
    margin-left: 0; /* Remover margem esquerda */
    margin-bottom: 40px; /* Ajustar espaço inferior */
  }

  .timeline {
    flex-direction: column; /* Muda a direção para coluna em telas pequenas */
    align-items: center; /* Centraliza os itens da linha do tempo */
    max-width: 100%; /* Garantir que a linha do tempo não exceda a tela */
  }

  .timeline-item {
    padding: 20px; /* Reduzir o padding dos itens da linha do tempo */
    white-space: normal; /* Permitir quebra de linha nos itens da linha do tempo */
    text-align: center; /* Centraliza o texto do item */
    font-size: 1.1em; /* Ajustar o tamanho da fonte */
  }

  .progress-line {
    max-width: 80%; /* Limitar a largura da linha de progresso */
  }

  .history-content {
    max-width: 95%; /* Ajustar a largura do conteúdo */
    margin: 0 auto; /* Centralizar */
  }

  .year-content h3 {
    font-size: 2em; /* Reduzir o tamanho do título do ano */
  }

  .year-content p {
    font-size: 1em; /* Reduzir o tamanho do parágrafo do ano */
  }

  .history-images {
    flex-direction: column; /* Mudar a direção para coluna */
    align-items: center; /* Centraliza as imagens */
  }

  .history-images img {
    width: 80%; /* Ajustar o tamanho das imagens para 80% da largura do contêiner */
    max-width: 300px; /* Limitar o tamanho máximo da imagem */
    margin-bottom: 10px; /* Espaçamento entre imagens */
  }
}
