@media (max-width:1024px){
    .error404 .most-read__wrapper {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .error404 .most-read__wrapper a + a {
        display: flex;
        border-left: 0;
        border-top: 1px solid #ddd;
        padding-left: 0;
        margin: 0;
        padding-top: 20px!important;
    }
}

@media (max-width:991px){
    .hp-piu-letti .img-bg h2 span {
        color: var(--wp--preset--color--contrast)!important;
    }
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(3) {
        margin: 20px 0;
    }
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(3),
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(4) {
        display: grid;
        grid-area: auto;
    }

}



@media (max-width:767px){
    form.woocommerce-checkout #customer_details,
    form.woocommerce-checkout > .col-dx {
        width: 100%;
        float: none;
    }
    form.checkout_coupon.woocommerce-form-coupon {
        display: flex;
        flex-direction: column;
    }
    form.checkout_coupon.woocommerce-form-coupon > p,
    form.checkout_coupon.woocommerce-form-coupon button{
        width: 100%;
        float: none;
    }   

    .woocommerce-account .woocommerce-MyAccount-content {
        max-width: 100%;
        width: 100%;
        margin-top: 30px;
    }
    .woocommerce-MyAccount-content .woocommerce-Address {
        padding: 20px;
    }

    .error404 .intro-404 {
        flex-direction: column-reverse;
        gap: 40px;
        padding-top: 40px!important;
    }
    .error404 .most-read {
        flex-direction: column;
    }

    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(3) .sub-menu,
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(4) .sub-menu {
        display: flex;
        flex-wrap: wrap;
        line-height: 1;
    } 
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(3) .sub-menu li,
    .footer__menu:not(.footer__menu_login) > ul > li:nth-child(4) .sub-menu li{
        width: 50%;
    } 

}
@media (max-width:600px){
    /*HEADER*/
    .page-template-login .header, .page-template-solo-testo .header {
        height: auto!important;
    }
    /*MENU*/
    /*
    .header__menu > div:not(.icon-menu__mobile) > ul > li:nth-child(2) .sub-menu > li {
        flex-basis: 60px;
    }
    */
    /*CUSTOM BLOCKS*/
    .hp-box-1-adv .article-big.img-dx{
        flex-direction: column;
    }

    /*RIVISTA*/
    .row-price-rivista {
        gap: 0px;
        flex-direction: column;
    }

    /*SOSTIENICI*/
    #sostienici .group button {
        width: 46%;
    }

    /*AREA PERSONALE*/
    .box-vita-std-intro {
        padding: 20px;
    }
    header.woocommerce-Address-title.title {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        gap: 10px;
    }
    .woocommerce-MyAccount-content h3 {
        margin-bottom: 20px;
        float: none;
    }
    .woocommerce-account .addresses .title .edit,
    .woocommerce-account .woocommerce-MyAccount-content .btn-black{
        padding: 10px 20px!important;
    }
    .woocommerce-account h1 {
        font-size: 28px;
        line-height: 1;
    }
    .m-sub .actions-sub  {
        margin: 0 -20px;
        padding: 20px 20px 0;
        flex-direction: column;
        align-items: flex-start;
    }
    .m-sub .actions-sub .buttons {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        box-sizing: border-box;
    }
    .m-sub .actions-sub .buttons a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /*FOOTER*/
    .page-template-login .footer__menu > ul:last-of-type, .page-template-solo-testo .footer__menu > ul:last-of-type {
        align-items: flex-start;
    }
    .footer__infos_login {
        margin-top: 40px;
    }
}