/* ===== TIMELINE (fixa + active on scroll) ===== */

:root{ --timeline-sticky-offset: 0px; }

.history-timeline {
  position: relative;
}

.history-timeline .container {
  position: relative;
  overflow: visible;
}

.history__intro {
    width: 100%;
    max-width: 1146px;
    margin: 0 auto;  
    margin-bottom: 90px;
}

.history__intro p {
  font-size: 1.1rem;
  color: #FFF;
  line-height: 1.6;
  text-align: center;
}

.history-timeline__years {
  position: sticky;
  top: var(--timeline-sticky-offset);
  z-index: 9999;
  background: #0b0b0b;
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap:.5rem;
  padding: .25rem 0 .5rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #fff2;
  backdrop-filter: saturate(1.1);
}


.history-timeline__year{
  appearance: none;
  background: transparent;
  color: #fff;
  border: 0;
  padding: .25rem .5rem .75rem;
  display: inline-block;
  position: relative;
  cursor: pointer;
  font-size: clamp(28px, 4vw, 40px);
  font-family: "CormorantInfant-Regular", sans-serif;
  transition: transform .15s ease, opacity .15s ease, color .15s ease;
  opacity: .65;
}

.history-timeline__year.is-active,
.history-timeline__year[aria-selected="true"]{
  opacity: 1;
}

.history-timeline__year.is-active::after,
.history-timeline__year[aria-selected="true"]::after{
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
}

.history-timeline__year:hover{ transform: translateY(-2px); }
.history-timeline__year:active{ transform: scale(.98); }
.history-timeline__year:focus-visible{
  outline: 2px solid #ffffff88;
  outline-offset: 2px;
}

.history-timeline__panels{ margin-top: 24px; }
.history-timeline__panel{
  display:block;
  scroll-margin-top: calc(var(--timeline-sticky-offset) + 16px);
  padding: 48px 0;
}

.history-timeline__grid{
  display:grid;
  grid-template-columns: auto 2fr;
  gap: 4.5rem;
  align-items:start;
  margin-top: 40px;
}

@media (max-width: 1200px){
  .history__intro {
    padding: 48px 16px;
  }
}

@media (max-width: 992px){
  .history-timeline__grid{ gap: 2rem; }
  .history__intro p {
        font-size: 1.3rem;
        line-height: 30px;
    }
}
@media (max-width: 768px){
  .history-timeline__grid{ grid-template-columns:1fr; }
}

.history-timeline__year-title{
  font-size: clamp(28px,3vw,44px);
  line-height:1;
  margin:0;
  color: #FFF;
  font-family: "CormorantInfant-Regular", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.history-timeline__year-title::after{
  content: "";
  display: block;
  width: 1px;
  height: 538px;
  background: #fff;
  opacity: .25;
  margin-top: 8px;
}

.history-timeline__figure{ margin:0 0 .75rem; }
.history-timeline__figure img{ display:block; max-width:100%; height:auto; }

.history-timeline__text p{
  color: #FFF;
  font-size: 1.25rem;
  padding: 20px 0;
  line-height:1.6;
}

@media (max-width: 768px) {
.banner__content .button-link {
    margin: 30px auto 42px;
}

    .history__intro p {
        font-size: 1.1rem;
        line-height: 1.6;
    }

  .title-primary {
    font-size: 1.7rem;
    margin-top: 50px;
  }

  .button-link {
    text-align: center;
  }

  .history-timeline__col--content {
    padding: 20px;
    text-align: center;
  }
  .history-timeline__years {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0 0.75rem;
    margin-bottom: 1.5rem;
  }

  .history-timeline__years::-webkit-scrollbar {
    height: 4px;
  }
  .history-timeline__years::-webkit-scrollbar-track {
    background: transparent;
  }
  .history-timeline__years::-webkit-scrollbar-thumb {
    background: #ffffff33;
    border-radius: 999px;
  }
}

@media (max-width: 768px) {
  .history-timeline__year {
    font-size: clamp(20px, 5vw, 26px);
    padding: 0.25rem 0.5rem 0.5rem;
    white-space: nowrap;
  }

  .history-timeline__year.is-active::after,
  .history-timeline__year[aria-selected="true"]::after {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 768px) {
  .history-timeline__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 24px;
  }

  .history-timeline__year-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .history-timeline__year-title::after {
    height: 119px; /* bem menor pra não ficar exagerado no mobile */
  }

  .history-timeline__panel {
    padding: 32px 0;
  }

  .history-timeline__text p {
    font-size: 1rem;
    padding: 12px 0;
    line-height: 1.5;
  }
	.history__intro {
		padding: 0 20px
	}
}