:root {
  --maxw: 1200px;
  --green: #6FAE2E;
  --green-dark: #00692C;
  --dark: #2b2b2b;
  --muted: #5a5a5a;
  --border: #e6e6e6;
  --light-green: #f6fbec;
}

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

body {
  font-family: 'Libre Franklin', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  padding-top: 80px; 
}


#header-container.header-desktop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}


.historia-main {
  margin-top: 0px !important;
  min-height: 100vh;
  background: #fff;
  padding: 2rem 0 4rem;
}

.historia-section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

.historia__container {
  position: relative;
  overflow: hidden;
}

.historia__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.historia__title {
  color: var(--green-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.highlight {
  color: var(--green);
  font-weight: 800;
}

.timeline__image-container {
  position: absolute;
  right: 200px;
  top: 120px; /* ajuste conforme necessário */
  width: 350px;
  z-index: 5;
  pointer-events: none;
}


.timeline__background-image {
  width: 100%;
  height: auto;
  display: block;
}

.timeline__sidebar {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end
  z-index: 10;
}

.timeline__years {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.timeline__year {
  background: var(--green);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.timeline__year:hover {
  background: #5a8f26;
  transform: translateX(-5px);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 0;
  margin-right: 12rem;
}

/* Remove a linha vertical */
.timeline::before {
  display: none;
}

.timeline__item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 0;
  scroll-margin-top: 120px;
}

.timeline__marker {
  display: none;
}


.timeline__content {
  background: #fff;
  border-left: 3px solid var(--green);
  padding: 1.5rem;
  margin-left: 0;
  max-width: 80%;
}

.timeline__year-title {
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline__year-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  flex-shrink: 0;
}

.timeline__year-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.timeline__subtitle {
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline__event {
  margin-bottom: 1.5rem;
}

.timeline__event:last-child {
  margin-bottom: 0;
}

.timeline__event-title {
  color: #6FAE2E !important;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}

.timeline__text:last-child {
  margin-bottom: 0;
}

.timeline__with-image {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.timeline__text-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

.timeline__image-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.timeline__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline__link {
  color: var(--green);
  text-decoration: underline;
  font-weight: 500;
}

.timeline__link:hover {
  color: #5a8f26;
}

/* Responsividade */
@media (max-width: 992px) {
  .timeline__image-container {
    display: none;
  }
  
  .historia__header {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .timeline__sidebar {
    position: static;
    transform: none;
    align-self: center;
  }
  
  .timeline__years {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .timeline {
    margin-right: 0;
  }
  
  .timeline__content {
    max-width: 100%;
  }
  
  .timeline__with-image {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .timeline__image-content {
    order: -1;
  }
}

@media (max-width: 768px) {
  .historia-main {
    padding: 1rem 0 2rem;
  }
  
  .historia__title {
    font-size: 2rem;
  }
  
  .timeline {
    padding-left: 0;
  }
  
  .timeline__item {
    padding-left: 0;
  }
  
  .timeline__content {
    padding: 1rem;
    margin-left: 0;
  }
  
  .timeline__year-title {
    font-size: 1.3rem;
  }
  
  .timeline__year-icon {
    width: 40px;
    height: 40px;
  }
  
  .timeline__subtitle {
    font-size: 1rem;
  }
  
  .timeline__years {
    gap: 0.5rem;
  }
  
  .timeline__year {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .timeline__years {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .timeline__content {
    border-left: 2px solid var(--green);
  }
}
