@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);
    
    /* Mobile */
    --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));
    /* right: calc(50% - 70px); */
    border-radius: 50%;
    /* background: var(--bola-grande); */
    background: #ffffff;
    /* border: var(--bola-grande-borda); */
    box-shadow: var(--sombra);
    /* height: 140px;
    width: 140px; */
    /* border: 10px solid #901010; */
    right: calc(50% - var(--timeline-circle-size) / 2 + var(--timeline-circle-border-thickness));
    /* AJUSTES PARA WOTAN */
    height: calc(var(--timeline-circle-size) - var(--timeline-circle-border-thickness) * 2);
    width: calc(var(--timeline-circle-size) - var(--timeline-circle-border-thickness) * 2);
    /* border: 18px solid #ca004c; */
}
.timeline li .circle-border {
    position: absolute;
    top: -70px;
    /* right: calc(50% - 70px); */
    border-radius: 50%;
    background: var(--bola-grande);
    border: var(--bola-grande-borda);
    box-shadow: var(--sombra);
    /* height: 140px;
    width: 140px; */
    /* border: 10px solid #901010; */
    /* AJUSTES PARA WOTAN */
    right: calc(50% - var(--timeline-circle-size) / 2);
    height: var(--timeline-circle-size);
    width: var(--timeline-circle-size);
    background: #333487;
}
@media (max-width: 992px){
    .timeline li .circle-border {
        position: absolute;
        top: -25px;
        /* right: calc(50% - 70px); */
        border-radius: 50%;
        /* background: var(--bola-grande); */
        border: var(--bola-grande-borda);
        box-shadow: var(--sombra);
        /* height: 140px;
        width: 140px; */
        /* border: 10px solid #901010; */
        /* AJUSTES PARA ENFER */
        right: calc(50% - 45px / 2);
        height: 50px;
        width: 50px;
        background: #333487;
    }
}
.timeline li::before {
    content: '';
    /* background: var(--linha-horizontal); */
    position: absolute;
    /* top: -3px; */
    right: calc(50% - 20px);
    /* height: 6px; */
    width: 26%;
    height: 3px;
    background-image: linear-gradient(90deg, #747474, #747474 75%, transparent 75%, transparent 100%);
    background-size: 20px 3px, 100% 3px;
    border: none;
    /* AJUSTES PARA WOTAN */
    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;
    /* color: var(--bola-grande-fonte); */
    /* AJUSTES PARA WOTAN */
    font-style: normal;
    color: #4D4D4D;
    font-weight: 700;
}

.timeline :is(li:nth-child(odd), li:nth-child(even)) span::after {
    --size: 32px;
    /* top: -50px; */
    content: attr(data-year);
    font-size: var(--size);
    font-weight: bolder;
    /* color: var(--red-primary); */
    /* AJUSTES PARA WOTAN */
    top: -35px;
    font-style: normal;
    color: #333487;
}
.timeline :is(li:nth-child(odd), li:nth-child(even)) span.center-year::after {
    /* top: -18px !important; */
    /* AJUSTES PARA WOTAN */
    top: -12px !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: -32px; */
    /* AJUSTES PARA WOTAN */
    right: -38px;
}
.timeline li:nth-child(even) span::after {
    /* left: -30px; */
    /* AJUSTES PARA WOTAN */
    left: -38px;
}
.timeline li:nth-child(even) span.optional-year::after {
    /* left: -28px; */
    /* AJUSTES PARA WOTAN */
    left: -32px;
}

.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;
    /* top: -18px; */
    content: attr(data-month);
    font-size: var(--size);
    /* AJUSTES PARA WOTAN */
    top: -14px;
}
.timeline li:nth-child(odd)  span::before {
    right: -14px;
}
.timeline li:nth-child(odd)  span.optional-year::before {
    /* right: -27px; */
    width: min-content;
    text-align: center;
    font-weight: 700;
    /* AJUSTES PARA WOTAN */
    right: -34px;
    color: #333487;
}
.timeline li:nth-child(even) span::before {
    /* left: -18px; */
    left: -16px;
}
.timeline li:nth-child(even) span.optional-year::before {
    /* left: -26px; */
    width: min-content;
    text-align: center;
    font-weight: 700;
    /* AJUSTES PARA WOTAN */
    left: -34px;
    color: #333487;
}

.timeline .item {
    position: relative;
    padding: 50px 0;
    width: 50%;
}
.timeline li .item::before {
    position: absolute;
    content: '';
    /* top: -21px; */
    left: 47%;
    border-radius: 50%;
    /* background: var(--bola-pequena); */
    background: #333487;
    border: var(--bola-pequena-borda);
    box-shadow: var(--sombra);
    height: 40px;
    width: 40px;
    /* AJUSTES PARA WOTAN  */
    top: -9px;
}
.timeline li:nth-child(even) .item::before {
    right: 0;
}
.timeline li .item::after {
    position: absolute;
    content: '';
    top: 0px;
    /* right: -3px; */
    /* background: var(--linha-vertical); */
    height: 100%;
    /* width: 4px; */
    background-image: linear-gradient(to bottom, #747474, #747474 75%, transparent 75%, transparent 100%);
    background-size: 20px 20px, 100% 3px;
    border: none;
    /* AJUSTES PARA WOTAN */
    right: -2px;
    width: 3px;
}
.timeline li:nth-child(even) .item::after {
    /* left: -3px; */
    /* AJUSTES PARA WOTAN */
    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 {
    text-transform: uppercase;
} */

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

/* .timeline .card:not(.no-image) .card-body {
    border-top: var(--card-borda-topo);
} */

.timeline .card .card-body p {
    text-align: justify;
    hyphens: auto;
    font-size: 16px !important;
}
.timeline .card .card-body .card-title {
    /* color: var(--card-titulo); */
    position: relative;
    display: inline-block;
    text-transform: none;
    font-weight: bolder;
    color: #333487;
    text-align: center;
}
/* .timeline .card .card-body .card-title::before {
    content: attr(data-year);
} */
.timeline .card.no-image .card-body .card-title:after {
    position: absolute;
    /* content: ''; */
    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 { /* Data quando não tem imagem*/
    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 { /* Data quando tem imagem*/
    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;
}

/* h3.title::after {
    content: "";
    display: block;
    width: 250px;
    height: 3px !important;
    background: currentColor 0% 0% no-repeat padding-box;
    opacity: 1;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
} */
.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;
}
.readmore:hover{
    color: #333487;
}

.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% - 80px); */
    /* AJUSTES PARA WOTAN */
    right: calc(50% - 90px);
}
.timeline li:nth-child(even) .dashed-circle::after {
    /* left: calc(50% - 80px); */
    /* AJUSTES PARA WOTAN */
    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;
    }
}