/* Cases */

.cases #purpleBar {
    content: "";
    position: absolute;
    background-color: var(--purple);
    width: 100%;
    height: 42px;
}

.cases .cases-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* grid-template-rows: 1fr 1fr 1fr; */
    position: relative;
    margin-bottom: 60px;
    /* min-height: 1080px; */
}

.cases .cases-wrapper .case-item {
    margin-top: 95px;
    /* margin-bottom: 63px; */
    position: relative;
    cursor: pointer;
}

.cases .cases-wrapper .case-item::after {
    content: "";
    position: absolute;
    /* right: -45px; */
    left: 100%;
    transform: translateX(-100%);
    z-index: -1;
    top: 103px;
    background-color: var(--purple);
    width: 45px;
    height: 4px;
}

.cases .cases-wrapper .case-item .div-item .picture figure img {
    max-width: 391px;
    width: 100%;
    height: 261px;
}

.cases .cases-wrapper .hover-div {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    /* width: 391px; */
    width: 100%;
    height: 300px;
    text-align: center;
    opacity: 0;
    cursor: pointer;
    /* margin-top: 94px; */
    top: 0;
    left: 0;
    z-index: 2;
}

.cases .cases-wrapper .hover-div:hover {
    opacity: 1;
    transition: 1s;
}

.cases .cases-wrapper .hover-div .hover-div-wrapper {
    z-index: 1020;
}

.cases .cases-wrapper .hover-div .hover-div-wrapper #whiteBG {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 300px;
    background-color: var(--white);
    opacity: 0.7;
    z-index: -1;
}

.cases .cases-wrapper .hover-div .hover-div-wrapper .title-item h1{
    font-size: 25px;
    font-weight: bold;
    color: var(--purple);
    margin-bottom: 21px;
}

.cases .cases-wrapper .hover-div .hover-div-wrapper .saiba-mais span {
    color: var(--purple);
}
.cases .cases-wrapper .hover-div .hover-div-wrapper .title-item h1,
.cases .cases-wrapper .hover-div .hover-div-wrapper .saiba-mais span{
    width: 92%;
}

.cases .cases-wrapper .hover-div .div-image {
    position: absolute;
    bottom: 0;
    left: 0;
}
.cases .cases-wrapper .hover-div .div-image img{
    width: 100%;
}

/* Case modal */

.swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: var(--white);
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-modal {
    display: none;
    position: absolute;
    top: 380px;
    width: 100%;
    min-height: 1060px;
    height: auto;
    z-index: 10;
    background-color: var(--white);
    overflow: hidden;
}

.case-modal .case-modal-wrapper .close-modal {
    text-align: end;
    height: 100px;
}

.case-modal .case-modal-wrapper .close-modal i {
    font-size: 35px;
    color: var(--purple);
    cursor: pointer;
}

.case-modal .case-modal-wrapper .content {
    display: flex;
    justify-content: center;
}

.case-modal .case-modal-wrapper .content {
    width: 100%;
}

.case-modal .case-modal-wrapper .content .wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.case-modal .case-modal-wrapper .content .wrapper .left-arrow i,
.case-modal .case-modal-wrapper .content .wrapper .right-arrow i {
    font-size: 80px;
    color: var(--purple);
    cursor: pointer;
}

.case-modal .case-modal-wrapper .content .wrapper .photo figure img {
    width: 664px;
    height: 451px;
}

.case-modal .case-modal-wrapper .content .purple-range {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 20px;
    width: 100%;
}

.case-modal .case-modal-wrapper .content .purple-range::after {
    content: "";
    position: absolute;
    bottom: 10px;
    width: 100%;
    height: 9px;
    background-color: var(--purple);
}

.case-modal .case-modal-wrapper .content .purple-range i {
    font-size: 50px;
    color: var(--purple);
}

.case-modal .case-modal-wrapper .content .text {
    margin-top: 42px;
    text-align: justify;
    overflow-wrap: anywhere;
    color: var(--black);
}

@media(max-width: 992px) {
    .cases {
        overflow: hidden;
    }
    .navbar-mobile .nav-content {
        z-index:10 !important;
    }

    .cases .cases-wrapper {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .case-modal {
        min-height: 2090px;
    }

    .cases .cases-wrapper .case-item,
    .cases .cases-wrapper .case-item .div-item .picture figure img {
        /* width: 100%; */
        height: auto;
    }

    .cases .cases-wrapper .case-item::after {
        display: none;
    }

    .cases .cases-wrapper .hover-div:hover {
        opacity: 0;
    }

    .case-modal {
        top: 270px;
    }
}
@media(max-width: 664px){
    .case-modal .case-modal-wrapper .content .wrapper .photo iframe{
        width: 100%;
        height: 300px;
    }
    .case-modal .case-modal-wrapper .content .wrapper .photo figure img{
        width: 100%;
        height: auto;
    }
}