/**** HEADER ****/
.header {
    /* position: absolute; */
    /* width: 1280px; */
    width: 100%;
    /* aggiunto */
    padding: 0 min((640px - 96px/2 - 506px), 5%);
    /* aggiunto */
    height: 60px;
    /* left: calc(50% - 1280px/2);
    top: calc(50% - 60px/2 - 482.5px);    */
    background: #FFFFFF;
    mix-blend-mode: normal;
    box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.12);
}

/* aggiunto */
.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    gap: 10px;
}

/* aggiunto */
.header nav div.registrati {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header nav div.registrati-accedi > div:nth-child(1) a {
    display: block;
    width: 152px;
    height: 24px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    letter-spacing: 0.002em;
    color: #004C99;
    text-decoration: none;
}

.header nav div.registrati-accedi > div:nth-child(2) a {
    width: 86px;
    height: 32px;
    background: #004C99;
    border-radius: 4px;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.002em;
    color: #FFFFFF;
    border: 0;
    transition: .3s;
    display: flex;
    text-decoration: none;
    justify-content: center;
    align-items: center;
}

.header nav div.registrati-accedi div:nth-child(2) a:hover {
    background: #0165ca;
}

.header nav .header-logo {
    /* position: absolute; */
    width: 96px;
    height: 29px;
    /* left: calc(50% - 96px/2 - 506px); */
    /* top: calc(50% - 29px/2 + 0.5px); */
    background: url('../../pub/Img/logo_mynet.png');
    background-size: contain;
    /* aggiunto */
    background-repeat: no-repeat;
    /* aggiunto */
    background-position: center;
    /* aggiunto */
}

.header nav .menu,
.header nav .user {
    display: none;
}

.header nav .menu span,
.header nav .user span {
    cursor: pointer;
}

.header nav .user .user-logged {
    display: none;
}


/**** HEADER HOMEPAGE ****/
.header.header-homepage nav .header-logo {
    width: 200px;
    height: 35.77px;
}

.header.header-homepage nav div.registrati-homepage div a {
    display: block;
    width: max-content;
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 18px;
    color: #004C99;
}

.header.header-homepage nav div.registrati-homepage div a:hover {
    text-decoration-line: underline;
}

.header.header-homepage nav,
.header.header-homepage nav div.registrati-homepage {
    gap: 56px
}

.header .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.header .modal .modal-content {
    background-color: #f4f4f4;
    padding: 20px;
    width: min(85%, 607px);
    box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 5px 8px 0 rgba(0, 0, 0, 0.17);
    animation: modalopen .5s;
}

.header .modal .modal-content .modal-body {
    display: flex;
    flex-direction: column;
    text-align: center;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 17.37px;
}

.header .modal .modal-content .closeBtn {
    display: inline-block;
    height: 30px;
    transition: .2s;
    border-radius: 50%;
}

.header .modal .modal-content .closeBtn:hover,
.header .modal .modal-content .closeBtn:focus {
    background-color: rgb(210, 210, 210);
    cursor: pointer;
}

.header .modal .modal-content .modal-body .icon-logo-modal {
    display: flex;
    flex-direction: column;
}

.header .modal .modal-content .modal-body .icon-logo-modal .logo-modal {
    width: 98px;
    height: 28px;
    background: url('../../pub/Img/logo_mynet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.header .modal .modal-content .modal-body .title-content {
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 600;
    font-size: 34px;
    line-height: 110%;
    letter-spacing: 0.25px;
    color: #000000;
}

.header .modal .modal-content .modal-body .content {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    text-align: center;
    color: #000000;
}

.header .modal .modal-content .modal-body .accedi-buttons {
    display: flex;
    gap: 44px;
}

.header .modal .modal-content .modal-body .accedi-buttons>a {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.002em;
    border: 0;
    text-decoration: none;
    padding: 12px 24px;
}

.header .modal .modal-content .modal-body .accedi-buttons a:nth-child(1) {
    color: #004C99;
    background: none;
}

.header .modal .modal-content .modal-body .accedi-buttons a:nth-child(2) {
    background: #004C99;
    border-radius: 4px;
    color: #FFFFFF;
    height: max-content;
}

.header .modal .modal-content .modal-body .checkbox-show {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header .modal .modal-content .modal-body .checkbox-show>label {
    font-family: 'Titillium Web';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #181B20;
}

.header .modal .modal-content .modal-body .checkbox-show>input[type="checkbox"] {
    height: 14px;
    width: 14px;
    border-radius: 2px;
    border: 2px solid #004C99;
    -moz-appearance: none;
    -webkit-appearance: none;
    -o-appearance: none;
}

.header .modal .modal-content .modal-body .checkbox-show>input[type="checkbox"]:checked {
    background-color: #007dc6;
}

.header .modal .modal-content .modal-body .checkbox-show>input[type="checkbox"]:checked:before {
    content: '';
    display: block;
    width: 3px;
    height: 6px;
    border: solid #fff;
    border-width: 0 1.8px 1.8px 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    margin-left: 2.63px;
}

@keyframes modalopen {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/****FOOTER****/
.footer {
    min-height: 185px;
    background: #FFFFFF;
    box-shadow: 0px -3px 6px -1px rgb(228 228 228 / 93%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer .container-footer {
    margin: auto;
    padding: 15px;
}

.footer .row {
    display: flex;
}

.footer .row:nth-child(1) {
    flex-wrap: wrap;
}

.footer .row:nth-child(1) div {
    flex: 1;
}

.footer .row:nth-child(1) div:nth-child(1) {
    padding-right: 3%;
}

.footer .col .footer-logo {
    width: 90px;
    height: 29.59px;
    background: url('../../pub/Img/logo_mynet.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer .seguici-su {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    line-height: 145%;
    letter-spacing: 0.4px;
    color: #000000;
}

.footer .row .col a:not(.fb-logo) {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #114C88;
    text-decoration: none;
    display: block;
}

.footer .row .col a:not(.fb-logo):hover {
    text-decoration: underline;
    color: #1667b8;
}

.footer .row:nth-child(3) .col:nth-child(1) {
    padding-right: 3%;
    flex: 1;
}

.footer .row:nth-child(3) .col:nth-child(2),
.footer .row:nth-child(3) .col:nth-child(2) a {
    display: inline;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 145%;
    letter-spacing: 0.4px;
    flex: 3;
}

.footer .row:nth-child(3) .col:nth-child(2) p{
    color: #181B20;
}

.header nav ul#listMenu {
    display: none;
}

/****MEDIA QUERY****/
@media screen and (max-width: 375px) {
    body {
        overflow-x: hidden;
    }

    /****HEADER****/
    .header {
        padding: 0 15px;
    }
    
    .header nav div.registrati {
        display: none;
    }

    .header nav .menu,
    .header nav .user {
        display: block;
    }

    .header nav .user .user-logged {
        background-color: #4A98E8;
        border-radius: 50%;
        height: 32px;
        width: 32px;
        text-align: center;
        color: #fff;
        font-family: 'Raleway';
        font-style: normal;
        font-weight: 500;
        font-size: 15px;
        line-height: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header .modal {
        display: none;
        justify-content: center;
        align-items: center;
    }

    .header .modal .modal-content {
        padding: 12px;
    }

    .header .modal .modal-content .modal-body .icon-logo-modal {
        gap: 13px;
    }

    .header .modal .modal-content .modal-body .title-content {
        font-size: 24px;
        line-height: 140%;
        letter-spacing: 0.5px;
    }

    .header .modal .modal-content .modal-body .content{
        font-size: 14px;
    }

    .header .modal .modal-content .modal-body .accedi-buttons {
        display: flex;
        flex-direction: column-reverse;
        width: 100%;
        gap: 5px;
    }

    .header .modal .modal-content .modal-body .checkbox-show {
        display: flex;
        align-items: center;
        padding-bottom: 15px;
    }

    /**** HEADER HOMEPAGE ****/
    .header.header-homepage nav .header-logo {
        width: 134.18px;
        height: 24px;
    } 

    /**** MENU ***/
    .header nav ul#listMenu {
        display: flex;
        flex-direction: column;
        list-style: none;
        text-decoration: none;
        position: fixed;
        width: 100%;
        height: calc(100vh - 60px);
        /* right: -100%; */
        top: 60px;
        background-color: #ffffff;
        transition: all .5s;
        padding: 0 15px;
        z-index: 1;
    }

    .header nav ul#listMenu .hr {
        border: 0;
        margin-inline: auto;
        display: block;
        width: 100%;
        background-color: #AEAEAE;
        max-height: 1px;
    }

    .header nav ul#listMenu > div {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .header nav ul#listMenu > div:nth-child(3) {
        justify-content: space-between;
    }

    .header nav ul#listMenu > div:nth-child(3) > div > li {
        padding: 14px 0;
    }

    .header nav ul#listMenu div li {
        font-family: 'Raleway';
        font-style: normal;
        font-weight: 500;
        font-size: 18px;
        line-height: 21px;
        /* flex: 1; */
        flex: 0; 
        display: flex;
        align-items: flex-start;
        /* momentaneo */
        padding: 14px 0;
    }

    .header nav ul#listMenu div:nth-child(1) li:last-child {
        flex: 1.5;
    }

    .header nav ul#listMenu li a {
        text-decoration: none;
        color: #000000;
        height: max-content;
    }

    /****FOOTER****/
    .footer .row {
        flex-wrap: wrap;
    }

    .footer .col .footer-logo {
        width: 63px;
        height: 21px;
    }

    .footer .row:nth-child(1) div {
        flex-basis: 33%;
    }

    .footer .row:nth-child(1) {
        text-align: center;
    }

    .footer .row .col a:not(.fb-logo) {
        width: max-content;
        margin: auto;
    }

    .footer .row:nth-child(3) .col:nth-child(1) {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    .footer .row:nth-child(3) .col:nth-child(2) {
        flex-basis: 100%;
    }

    .footer .row:nth-child(3) .col:nth-child(2) p:nth-child(2) {
        margin-top: 16px;
    }
}