/* Nossa História — layout ova-history (ref. https://ficase.mobilecv.net/nossa-historia/) */
.historia-page {
  margin-bottom: 0;
  padding-bottom: 0;
  width: 100%;
  overflow: visible;
}

.historia-page .historia-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
}

.historia-page .historia-intro h1,
.historia-page .historia-intro h2,
.historia-page .historia-intro h3 {
  color: #202b5d;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.historia-page .historia-intro p {
  color: #62718d;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.historia-page .historia-outro {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

.historia-page .ova-history {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 4rem 0 0;
  position: relative;
  z-index: 0;
}

.historia-page .ova-history .wp-item:last-child .wp-year {
  margin-bottom: 0 !important;
}

.historia-page .ova-history p {
  margin: 0;
}

.historia-page .ova-history .wp-item {
  display: flex;
}

.historia-page .ova-history .wp-item:hover .wp-year .dot span.dot2 {
  background: #fff;
}

.historia-page .ova-history .wp-item:hover .wp-year .dot span.dot1 {
  background: #0468b5;
  border-color: #0468b5;
}

.historia-page .ova-history .wp-item:hover .wp-content .ova-media img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item {
    flex-direction: column-reverse;
  }
}

.historia-page .ova-history .wp-item:first-child .wp-content {
  position: relative;
}

.historia-page .ova-history .wp-item:first-child .wp-content:before {
  content: '';
  width: 1px;
  height: 40px;
  background: #e5e5e5;
  display: inline-block;
  position: absolute;
  right: -1px;
  top: -36px;
  pointer-events: none;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:first-child .wp-content:before {
    display: none;
  }
}

.historia-page .ova-history .wp-item:first-child .wp-content:after {
  content: '';
  width: 10px;
  height: 10px;
  background: #e5e5e5;
  display: inline-block;
  position: absolute;
  right: -5px;
  border-radius: 50%;
  top: -46px;
  pointer-events: none;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:first-child .wp-content:after {
    display: none;
  }
}

.historia-page .ova-history .wp-item:last-child:nth-child(odd) .wp-content:before {
  left: unset;
  right: -1px;
}

.historia-page .ova-history .wp-item:last-child:nth-child(odd) .wp-content:after {
  left: unset;
  right: -5px;
}

.historia-page .ova-history .wp-item:last-child {
  margin-bottom: 0;
}

.historia-page .ova-history .wp-item:last-child .wp-content {
  position: relative;
  padding-bottom: 0 !important;
}

.historia-page .ova-history .wp-item:last-child .wp-content:before,
.historia-page .ova-history .wp-item:last-child .wp-content:after {
  display: none;
}

.historia-page .ova-history .wp-item:not(:last-child) .wp-content {
  padding-bottom: 85px;
}

/* Conteúdo visível por defeito; animação só com JS (.ova-history--animate) */
.historia-page .ova-history .wp-item .wp-content .content,
.historia-page .ova-history .wp-item .wp-year .year,
.historia-page .ova-history .wp-item .wp-year .title,
.historia-page .ova-history .wp-item .wp-year .desc {
  opacity: 1;
  transform: none;
}

.historia-page .ova-history .wp-item:nth-child(odd) .wp-content .content {
  text-align: right;
}

.historia-page .ova-history.ova-history--animate .wp-item .wp-content .content,
.historia-page .ova-history.ova-history--animate .wp-item .wp-year .year,
.historia-page .ova-history.ova-history--animate .wp-item .wp-year .title,
.historia-page .ova-history.ova-history--animate .wp-item .wp-year .desc {
  transition: transform 0.5s ease, opacity 0.5s ease;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:nth-child(odd) .wp-content .content {
    text-align: left;
  }
}

.historia-page .ova-history.ova-history--animate .wp-item:not(.active) .wp-content .content,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active) .wp-year .year,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active) .wp-year .title,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active) .wp-year .desc {
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(odd) .wp-content .content {
  transform: translate(-300px, 0);
}

.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(odd) .wp-year .year,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(odd) .wp-year .title,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(odd) .wp-year .desc {
  transform: translate(300px, 0);
}

.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(even) .wp-content .content {
  transform: translate(300px, 0);
}

.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(even) .wp-year .year,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(even) .wp-year .title,
.historia-page .ova-history.ova-history--animate .wp-item:not(.active):nth-child(even) .wp-year .desc {
  transform: translate(-300px, 0);
}

.historia-page .ova-history.ova-history--animate .wp-item.active .wp-content .content,
.historia-page .ova-history.ova-history--animate .wp-item.active .wp-year .year,
.historia-page .ova-history.ova-history--animate .wp-item.active .wp-year .title,
.historia-page .ova-history.ova-history--animate .wp-item.active .wp-year .desc {
  transform: translate(0);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .historia-page .ova-history.ova-history--animate .wp-item .wp-content .content,
  .historia-page .ova-history.ova-history--animate .wp-item .wp-year .year,
  .historia-page .ova-history.ova-history--animate .wp-item .wp-year .title,
  .historia-page .ova-history.ova-history--animate .wp-item .wp-year .desc {
    opacity: 1 !important;
    transform: none !important;
  }
}

.historia-page .ova-history .wp-item:nth-child(even) {
  flex-direction: row-reverse;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:nth-child(even) {
    flex-direction: column-reverse;
  }
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-content {
  padding-right: 0;
  padding-left: 70px;
  border: none;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:nth-child(even) .wp-content {
    padding: 0;
    padding-bottom: 60px;
  }
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-year {
  flex-direction: row-reverse;
  padding-left: 0;
  padding-right: 70px;
  border-right: 1px solid #e5e5e5;
  text-align: right;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item:nth-child(even) .wp-year {
    padding: 0;
    border: none;
    text-align: left;
  }
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-year .dot .dot1 {
  left: unset;
  right: -15px;
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-year .dot .dot2 {
  left: unset;
  right: -6.5px;
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-year .dot .dot4 {
  left: unset;
  right: -3.5px;
}

.historia-page .ova-history .wp-item:nth-child(even) .wp-year .year {
  margin-top: -6px;
}

.historia-page .ova-history .wp-item .wp-content {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 70px;
  border-right: 1px solid #e5e5e5;
  transition: 0.5s;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item .wp-content {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    border: none;
  }
}

.historia-page .ova-history .wp-item .wp-content .content .ova-media {
  overflow: hidden;
  margin-bottom: 23px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.historia-page .ova-history .wp-item .wp-content .content .ova-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  transition: transform 0.8s;
}

.historia-page .ova-history .wp-item .wp-year {
  flex: 0 0 50%;
  max-width: 50%;
  padding-left: 70px;
  border: none;
  position: relative;
  transition: 0.5s;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .historia-page .ova-history .wp-item .wp-year {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }

  .historia-page .ova-history .wp-item:last-child .wp-year {
    margin-bottom: 0 !important;
  }

  .historia-page .ova-history .wp-item .wp-year .dot {
    display: none;
  }
}

.historia-page .ova-history .wp-item .wp-year .dot span {
  display: inline-block;
  position: absolute;
}

.historia-page .ova-history .wp-item .wp-year .dot .dot1 {
  border: 1px solid #e5e5e5;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  top: 0;
  left: -15px;
  z-index: 1;
  background: #fff;
  transition: 0.4s;
}

.historia-page .ova-history .wp-item .wp-year .dot .dot2 {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  top: 8.5px;
  left: -6.5px;
  z-index: 2;
  transition: 0.4s;
  background: #0468b5;
}

.historia-page .ova-history .wp-item .wp-year .dot .dot4 {
  background: #fff;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  top: 11.5px;
  left: -3.5px;
  z-index: 3;
}

.historia-page .ova-history .wp-item .wp-year .title {
  margin: 0;
  padding: 0;
}

.historia-page .ova-history .wp-item .wp-year .title h2,
.historia-page .ova-history .wp-item .wp-year .title h3 {
  margin: 0 0 0.35rem;
  font-size: 22px;
  line-height: 1.2;
  color: #202b5d;
  font-weight: 600;
}

.historia-page .ova-history .wp-item .wp-year .year {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
  padding: 0;
  font-style: italic;
  color: #0468b5;
}

.historia-page .ova-history .wp-item .wp-year .desc {
  font-size: 16px;
  line-height: 1.55;
  color: #62718d;
  margin-top: 0.25rem;
}

.historia-page .ova-history .wp-item .wp-year .desc p {
  margin: 0 0 0.45rem;
}

.historia-page .ova-history .wp-item .wp-year .desc p:last-child {
  margin-bottom: 0;
}
