@import url(variables.css);

.timeline {
  --timeline-circle-size: 160px;
  --timeline-circle-border-thickness: 16px;
  --timeline-lighting-angle: -140deg;

  --sombra: -6px 6px 15px 0 #0004;
  --titulo-fonte: var(--orange);
  --titulo-detalhe: var(--orange);

  --bola-grande: var(--gray-second);
  --bola-grande-fonte: var(--red-primary);
  --bola-grande-borda: 0 solid var(--red-primary);
  --bola-pequena: var(--red-primary);
  --bola-pequena-borda: 0 solid var(--darker);
  --linha-horizontal: var(--gray-primary);
  --linha-vertical: var(--gray-primary);

  --card-bg: white;
  --card-titulo: var(--darker);
  --card-sublinhado-titulo: var(--orange);
  --card-corpo: var(--darker);
  --card-borda-topo: 8px solid var(--orange);

  --card-bg-992px: white;
  --cor-data-sem-img-992px: var(--orange);
  --cor-data-com-img-992px: white;
  --size-data-sem-img-992px: 26px;
  --size-data-com-img-992px: 30px;
  --imagem-gradiente-992px: radial-gradient(
    at 100% 0%,
    rgb(0 0 0 / 25%) 0%,
    rgba(0, 0, 0, 0) 40%
  );
}

.timeline .card-title {
  font-weight: 800;
}
.timeline .title > h1,
.timeline .title > h2,
.timeline .title > h3,
.timeline .title > h4,
.timeline .title > h5,
.timeline .title > h6 {
  color: var(--titulo-fonte);
  position: relative;
}
.timeline .title h3::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -10px;
  background: var(--titulo-detalhe);
  height: 6px;
  width: 100%;
}
.timeline ul {
  padding: 0;
  margin-top: 50px;
  list-style: none;
}
.timeline li {
  position: relative;
  display: flex;
}
.timeline li::after {
  content: "";
  position: absolute;
  top: calc(-70px + var(--timeline-circle-border-thickness));
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--sombra);
  right: calc(
    50% - var(--timeline-circle-size) / 2 +
      var(--timeline-circle-border-thickness)
  );
  height: calc(
    var(--timeline-circle-size) - var(--timeline-circle-border-thickness) * 2
  );
  width: calc(
    var(--timeline-circle-size) - var(--timeline-circle-border-thickness) * 2
  );
}
.timeline li .circle-border {
  position: absolute;
  top: -70px;
  border-radius: 50%;
  background: var(--bola-grande);
  border: var(--bola-grande-borda);
  box-shadow: var(--sombra);
  right: calc(50% - var(--timeline-circle-size) / 2);
  height: var(--timeline-circle-size);
  width: var(--timeline-circle-size);
}

@media (max-width: 992px) {
  .timeline li .circle-border {
    position: absolute;
    top: -35px;
    border-radius: 50%;
    border: var(--bola-grande-borda);
    box-shadow: var(--sombra);
    right: calc(50% - 62px / 2);
    height: 70px;
    width: 70px;
  }
}

.timeline li::before {
  content: "";
  position: absolute;
  right: calc(50% - 20px);
  width: 26%;
  height: 3px;
  background-image: linear-gradient(
    90deg,
    #747474,
    #747474 75%,
    transparent 75%,
    transparent 100%
  );
  background-size: 20px 3px, 100% 3px;
  border: none;
  top: 10px;
}
.timeline li:nth-child(even) {
  flex-direction: row-reverse;
}
.timeline li:nth-child(even)::before {
  left: calc(50% - 20px);
}
.timeline li .item {
  position: relative;
}
.timeline :is(li:nth-child(odd), li:nth-child(even)) span::after,
.timeline :is(li:nth-child(odd), li:nth-child(even)) span::before {
  position: absolute;
  z-index: 1000;
  font-style: normal;
  color: #4d4d4d;
  font-weight: 700;
}

.timeline :is(li:nth-child(odd), li:nth-child(even)) span::after {
  --size: 32px;
  content: attr(data-year);
  font-size: var(--size);
  font-weight: bolder;
  top: -35px;
  font-style: normal;
}
.timeline :is(li:nth-child(odd), li:nth-child(even)) span.center-year::after {
  top: -5px !important;
}
.timeline
  :is(li:nth-child(odd), li:nth-child(even))
  span.center-year.optional-year::after {
  top: -50px !important;
}
.timeline li:nth-child(odd) span::after {
  right: -38px;
}
.timeline li:nth-child(even) span::after {
  left: -40px;
}
.timeline li:nth-child(even) span.optional-year::after {
  left: -38px;
}

.timeline li:nth-child(5) span::after {
  right: -28px;
}
.timeline :is(li:nth-child(odd), li:nth-child(even)) span::before {
  --size: 19px;
  top: 12px;
  content: attr(data-month);
  font-size: var(--size);
}
.timeline
  :is(li:nth-child(odd), li:nth-child(even))
  span.optional-year::before {
  --size: 28px;
  content: attr(data-month);
  font-size: var(--size);
  top: -14px;
}
.timeline li:nth-child(odd) span::before {
  right: -14px;
}
.timeline li:nth-child(odd) span.optional-year::before {
  width: min-content;
  text-align: center;
  font-weight: 700;
  right: -34px;
}
.timeline li:nth-child(even) span::before {
  left: -16px;
}
.timeline li:nth-child(even) span.optional-year::before {
  width: min-content;
  text-align: center;
  font-weight: 700;
  left: -34px;
}

.timeline .item {
  position: relative;
  padding: 50px 0;
  width: 50%;
}
.timeline li .item::before {
  position: absolute;
  content: "";
  left: 47%;
  border-radius: 50%;
  border: var(--bola-pequena-borda);
  box-shadow: var(--sombra);
  height: 40px;
  width: 40px;
  top: -9px;
}
.timeline li:nth-child(even) .item::before {
  right: 0;
}
.timeline li .item::after {
  position: absolute;
  content: "";
  top: 0px;
  height: 100%;
  background-image: linear-gradient(
    to bottom,
    #747474,
    #747474 75%,
    transparent 75%,
    transparent 100%
  );
  background-size: 20px 20px, 100% 3px;
  border: none;
  right: -2px;
  width: 3px;
}
.timeline li:nth-child(even) .item::after {
  left: -2px;
}

.timeline li:last-child .item::after {
  background-color: transparent;
  display: none;
}
.timeline .card {
  margin: 0 auto;
  background-color: transparent;
  border-radius: 5px;
  box-shadow: var(--sombra);
  min-height: 180px !important;
  max-height: max-content !important;
  height: auto !important;
}

.timeline .card .card-body {
  background-color: #fff !important;
  color: var(--card-corpo);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  /* max-width: 300px; */
  width: -webkit-fill-available;
}

.timeline .card .card-body p {
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 5px;
  color: #4f5d77 !important;
}
.timeline .card .card-body .card-title {
  font-size: 16px;
  position: relative;
  display: inline-block;
  text-transform: none;
  font-weight: bolder;
  color: #4f5d77 !important;
  text-align: start;
}

.timeline .card.no-image .card-body .card-title:after {
  position: absolute;
  left: 0;
  bottom: -14px;
  background: var(--card-sublinhado-titulo);
  height: 8px;
  width: 100%;
}
.timeline .card .image img {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  width: 100%;
  max-height: 200px !important;
  object-fit: cover;
}

.timeline .card.no-image {
  overflow: visible;
}
.card .date {
  font-weight: 600;
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  color: var(--cor-data-com-img-992px);
}
.timeline .card.no-image .date > * {
  color: inherit;
  font-weight: inherit;
  width: max-content !important;
}
.timeline .card.no-image .date {
  display: flex;
  justify-content: flex-end;
  position: absolute;
  top: -60px;
  right: 0;
  left: 0;
  padding-top: 24px;
  background: none;
  color: #b00000;
  font-size: var(--size-data-sem-img-992px);
}
.timeline .card:not(.no-image) .date {
  color: var(--cor-data-com-img-992px);
  padding: 20px 20px 0 0;
  font-size: var(--size-data-com-img-992px);
}

.card-timeline {
  max-height: auto !important;
}

h3.title {
  color: var(--main-color);
  font-weight: 500;
  font-family: var(--main-font);
  font-size: 50px;
}

.dashed .timeline span {
  font-style: normal;
  background: linear-gradient(var(--timeline-lighting-angle), #ca004c, #77365d);
  color: transparent;
  -webkit-background-clip: text;
}
.readmore {
  z-index: 1;
  text-align: center;
}

.timeline :is(li:nth-child(odd), li:nth-child(even))::before,
.timeline :is(li:nth-child(odd), li:nth-child(even)) .item::after {
  z-index: -2;
}
.timeline :is(li:nth-child(odd), li:nth-child(even)) .dashed-circle::after {
  content: "";
  position: absolute;
  top: -80px;
  border-radius: 50%;
  background: #e9e9e9;
  /* height: 160px;
    width: 160px; */
  border: 3px dashed #747474;
  z-index: -1;
  /* AJUSTES PARA WOTAN */
  height: 180px;
  width: 180px;
}
.timeline li:nth-child(odd) .dashed-circle::after {
  right: calc(50% - 90px);
}
.timeline li:nth-child(even) .dashed-circle::after {
  left: calc(50% - 90px);
}

@media (max-width: 992px) {
  .timeline ul {
    padding: 0;
    margin: 0;
  }
  .timeline li::after {
    display: none;
  }
  .timeline li .item {
    width: 100%;
  }
  .timeline [data-year] {
    display: none;
  }
  .timeline li .item:before,
  .timeline li .item:after {
    background: transparent;
    border: none;
    display: none;
  }
  .timeline li::before {
    content: "";
    position: absolute;
    top: -50px;
    right: 50%;
    height: 30%;
    width: 6px;
  }
  .timeline li:first-child::before {
    top: -22px;
  }
  .timeline li:nth-child(even)::before {
    left: auto;
  }
  .card .card-body {
    background-color: var(--card-bg-992px);
  }
  .timeline li:nth-child(even) {
    flex-direction: row;
  }
  .timeline .card {
    margin: 0 auto;
  }
  .timeline .card .image {
    position: relative;
  }
  .timeline .card:not(.no-image) .date {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--imagem-gradiente-992px);
    font-weight: 800;
  }
  .timeline .card .card-body .card-title::before {
    display: none;
  }
  .timeline :is(li:nth-child(odd), li:nth-child(even)) .dashed-circle::after {
    display: none;
  }
}

@media (max-width: 550px) {
  .timeline .card .card-body p {
    text-align: center !important;
  }
}
