/* STYLE */

* {
    /* outline:1px solid #f00; */
    transition: 0.5s ease-in-out;
    box-sizing: border-box;
}

body, html {
    font-family: "jaf-domus";
    position: relative;
    color: #44506F;
    height:100%;
}

b, strong {
    font-weight: 700;
}

h1 {
    margin: 0px;
    position: absolute;
    left: 100px;
    top: 100px;
    color: #44506F;
    font-size: 31px;
    font-weight: 300;
    z-index:2;
}

h1:before {
    content: '';
    height: 3px;
    width: 100px;
    background: #00C89B;
    margin-bottom: 18px;
    display: block;
}

.legenda {
    position: absolute;
    right: 100px;
    top: 100px;
    display: none;
}

.logo {
    position: absolute;
    right: 100px;
    bottom: 70px;
}

.desktop {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: scale(1.2);
}

.background {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 875px;
    /*height: 328px;*/
}

.item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.68);
    z-index:2;
}

.item i {
    position: absolute;
    padding: 4px 24px;
    font-size: 24px;
    line-height: 100%;
    border-radius: 10px;
    color: #44506F;
    text-decoration: none;
    text-align: center;
    left: 17%;
    top: 53%;
    margin-top: 27px;
    transform: translateX(-50%) rotate(31deg) skewX(-25deg);
    font-style: normal;
    white-space: nowrap;
    margin-bottom: 10px;
    font-weight: 700;
}

.item img {
    position: relative;
    display: block;
    transition: 0.3s ease-in-out;
    transform: scale(1);
}

.item:hover img {
    transform: scale(1.1);
}

.holder {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

@media(max-height:899px) {
    .holder {
        transform: scale(0.9);
    }
}

@media(max-width:1499px) {
    h1 {
        left: 40px;
    }

    .legenda, .logo {
        right: 40px;
    }

    .holder {
        transform: scale(0.9);
    }
}

@media(max-height:799px) {
    .holder {
        transform: scale(0.78);
    }
}

@media(max-width:1399px) {
    h1 {
        left: 40px;
        top: 40px;
    }

    .legenda {
        top: 40px;
        width: 200px;
    }

    .logo {
        bottom: 40px;
        width: 100px;
    }

    .holder {
        transform: scale(0.78);
    }
}

@media(max-height:699px) {
    .holder {
        transform: scale(0.65);
    }
}

@media(max-width:1199px) {
    h1 {
        left: 40px;
        top: 40px;
    }

    .legenda {
        top: 40px;
        width: 140px;
    }

    .logo {
        bottom: 40px;
        width: 100px;
        position: relative;
        margin-bottom: 40px;
    }

    .holder {
        transform: scale(0.65);
    }
}

@media(max-height:599px) {
    .holder {
        transform: scale(0.50);
    }
}

@media(max-width:991px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block !important;
    }

    body {
        padding: 20px;
    }

    h1, .logo {
        position: relative;
        right: auto;
        bottom: auto;
        top: 0px;
        left: 0px;
    }

    h1 {
        margin-bottom: 48px;
    }

    .logo {
        margin: 0px auto;
        display: block;
        margin-top: 48px;
        margin-bottom: 48px;
    }
}

/* MOBILE */

.mobile {
    display: none;
}

.item_mobile {
    display: flex;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 10px;
    position: relative;
    gap: 10px;
    padding: 0px 10px;
    align-items: center;
    margin-bottom: 10px;
    text-decoration: none;
    font-weight: 600;
    padding-right: 20px;
    overflow: hidden;
}

.item_mobile i {
    font-size: 24px;
    font-style: normal;
    color: #44506F;
}

.item_mobile img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: relative;
    top: 5px;
}

@media(max-width:767px) {

    .item_mobile i {
        font-size: 16px;
        font-style: normal;
        color: #44506F;
    }
}

/* MODAL */

.overlay {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    z-index: 10;
    transition: 0s;
    display: none;
}

.modal {
    position: fixed;
    left: 0px;
    top: 50%;
    width: 100%;
    max-height: 100%;
    z-index: 10;
    overflow: auto;
    padding: 40px;
    transform: translateY(-50%);
    transition: 0s;
    pointer-events: none;
    display: none;
}

.modal_item {
    max-width: 100%;
    width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    margin: 40px 0px;
    margin-bottom: 80px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
    transition: 0s;
    pointer-events: all;
    display: none;
    background: rgba(240, 240, 240, 0.5);
    backdrop-filter: blur(20px);
}

.modal_item:before{
    content:'';
    width:147px;
    height:40px;
    position: absolute;
    background:url(images/logo-senior.png) no-repeat;
    right:40px;
    bottom:40px;
    background-size: contain;
    background-position: right bottom;
}

.modal_item:after{
    content:'';
    width:112px;
    height:3px;
    position: absolute;
    background:#FF8200;
    left:40px;
    bottom:40px;
}

.modal_item_header {
    background: #aaa;
    padding: 40px;
    position: relative;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    line-height: 37px;
    float:right;
    width:100%;
    max-width:540px;
    border-radius:0px 0px 0px 38px;
}

.modal_item_header img {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.modal_item_header_close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.modal_item_header_close:before, .modal_item_header_close:after {
    content: '';
    width: 10px;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.modal_item_header_close:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.modal_item_content {
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: stretch;
    float:right;
    width:100%;
    margin-bottom: 40px;
}

.modal_item_content h2 {
    font-size: 48px;
    font-weight: 700;
    color:#33456B;
    line-height: 100%;
    padding:0px;
    margin:0px;
}

.modal_item_content p {
    font-size: 24px;
    line-height: 140%;
    color:#33456B;
}

.modal_item_content.center {
    justify-content: center;
}

.modal_item_content_item {
    min-height: 190px;
    background: #fff;
    border-radius: 30px;
    flex-grow: 1;
    flex: 0 0 calc(25% - 15px);
    position: relative;
    padding:24px;
    padding-bottom:48px;
    font-size: 18px;
}

.modal_item_content_item.big {
    flex: 0 0 calc(75% - 15px);
}

.modal_item_content_item.medium {
    flex: 0 0 calc(50% - 15px);
}

.modal_item_content_item:before {
    content:'';
    left:24px;
    bottom:24px;
    position: absolute;
    width:100px;
    height:3px;
    background:#FF8200;
}

@media(max-width:1199px){
    .modal_item_content_item {
        flex: 0 0 calc(33.33% - 13.33px);
    }

    .modal_item_content_item.big {
        flex: 0 0 100%;
    }
    
    .modal_item_content_item.medium {
        flex: 0 0 100%;
    }
}

@media(max-width:991px){
    .modal_item_content_item {
        flex: 0 0 calc(50% - 10px);
    }
    
    .modal_item_header{
        font-size: 18px;
        font-weight: 700;
    }

    .modal_item_header img{
        width:40px;
    }
    .modal_item_content h2 {
        font-size: 32px;
        font-weight: 700;
        color: #33456B;
        line-height: 100%;
        padding: 0px;
        margin: 0px;
        margin-bottom: -20px;
    }
    .modal_item_content p {
        font-size: 16px;
        line-height: 140%;
        color: #33456B;
        margin-bottom: 40px;
    }
    .modal_item:before {
        content: '';
        width: 100px;
        height: 20px;
    }
    .modal_item:after {
        content: '';
        width: 72px;
        height: 2px;
        position: absolute;
        background: #FF8200;
        left: 24px;
        bottom: 80px;
    }
}

@media(max-width:767px){
    .modal{
        padding:10px;
    }
    .modal_item_content_item {
        flex: 0 0 100%;
        min-height: 0px;
    }
    .modal_item_header{
        padding:24px;
        padding-right:100px;
    }
    .modal_item_content{
        padding:24px;
        justify-content: flex-start;
    }
}