/* AMPLIAMENTO MARGINI FOOTER - TRANNE HOME */

body:not(.page-id-2) #main-footer .container.custom-footer-menu,
body:not(.page-id-2) #main-footer .container,
body:not(.page-id-2) #main-footer #footer-bottom .container.clearfix {
    width: 95%;
}

/* FINE */

/* DIMENSIONE ICONE FOOTER */

body:not(.page-id-2) #main-footer .container #menu-footer-menu-sezioni {
    width: 72% !important;
    display: flex !important;
    float: right !important;
}

body:not(.page-id-2) .custom-footer-menu #menu-footer-menu-sezioni li a {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 15px !important;
    letter-spacing: 0.14px !important;
    font-weight: 300 !important;
    margin: 0 auto !important;
    max-width: unset!important;
    height: auto!important;
}

body:not(.page-id-2) .custom-footer-menu #menu-footer-menu-sezioni li p {
    width: 100%!important;
}

body:not(.page-id-2) .custom-footer-menu #menu-footer-menu-sezioni li a > img {
    width: 70px !important;
    height: 70px !important;
}

    /* FINE */

/* AUMENTO MARGINE BOTTOM FOOTER */

#main-footer #footer-bottom .container.clearfix {
    margin-bottom: 1rem;
}

/* FINE */

#main-footer {
    background-image: url(/core/img/sfondoFooter.png);
    background-color: unset;
    background-position: top;
    background-size: 100% 80%;
    background-repeat: no-repeat;
    margin-top: -50px;
    z-index: 1;
    position: relative;
}

.custom-footer-menu {
    /*padding: 50px 0 30px 0;*/
    padding: 60px 0 20px 0;
    display: flow-root;
}

#footer-widgets {
    padding: 30px 0 30px 0;
    border-top: 1px solid #707070;
}

.custom-footer-menu .footer-title{
    /*color: #2580C8;
    font-size: 24px;
    line-height: 38px;
    letter-spacing: -0.24px;
    font-weight: 500;
    width: 22%;
    float: left;
    margin-top: 50px;*/
    color: #2580C8;
    font-size: 24px;
    line-height: 38px;
    letter-spacing: -0.24px;
    font-weight: 500;
    width: 22%;
    float: left;
    margin-top: 25px;
}

.custom-footer-menu #menu-footer-menu-sezioni {
    /*width: 78%;
    display: flex;
    justify-content: center;
    align-self: center; /* CAMBIATO DA START A CENTER */
    width: 74%;
    display: flex;
    align-items: flex-start;
    float: right;
}

.custom-footer-menu #menu-footer-menu-sezioni li {
    display: inline-block;
    vertical-align: text-top;
    width: 16.7%;
}

.custom-footer-menu #menu-footer-menu-sezioni li a {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 15px;
    letter-spacing: 0.14px;
    font-weight: 300;
    /* max-width: 85px; /* DISABILITATI */
    /* height: 85px;*/ /* DISABILITATI */
    margin: 0 auto;
}

.custom-footer-menu #menu-footer-menu-sezioni li a > img{
    /*height: 100%;*/ /* DISABILITATI */
    height: 60px;
    width: 60px;
}

.custom-footer-menu #menu-footer-menu-sezioni li p {
    width: 90%; /* CAMBIATO DA 60 A 90 */
    margin: 0 auto;
    margin-top: 1rem; /* CAMBIATO DA 2REM A 1REM*/
}
.custom-footer-menu #menu-footer-menu-sezioni li a.viola {
    color: #6053B4;
}

#footer-widgets .footer-widget .widget_block {
    width: 100%;
    margin-bottom: 20px !important;
}

#footer-widgets .footer-widget .widget_block ul {
    width: 100%;
    column-count: 4;
    column-gap: 15%;
}

#footer-widgets .footer-widget .widget_block ul li {
    padding-left: 0;
}

#footer-widgets .footer-widget .widget_block ul li:before {
    content: unset;
}

#footer-widgets .footer-widget .widget_block ul li a {
    font-weight: 400;
    white-space: nowrap;
    display: inline-block;
}

@media screen and (min-width: 1024px) {

    #footer-widgets .footer-widget .widget_block ul li a:after {
        content: '';
        display: block;
        height: 2px;
        width: 0;
        background: transparent;
        transition: width .5s ease, background-color .5s ease;
    }

    #footer-widgets .footer-widget .widget_block ul li a:hover:after {
        width: 100%;
        background: #707070;
    }
}

#footer-bottom {
    padding-top: 0;
}

.custom-footer-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    padding-top: 20px;
    height: 60px;
}

.custom-footer-links p {
    font-size: 15px;
    font-weight: 700;
}

.custom-footer-links .custom-footer-links-social {
    margin-left: 30px;
}

.custom-footer-links .custom-footer-links-policy {
    margin-left: auto;
    margin-top: -5px;
}

.custom-footer-links .custom-footer-links-policy a{
    font-size: 15px;
    color: #2E333C;
    margin: 0 0 0 10px;
    font-weight: 400;
}

.custom-footer-links .custom-footer-links-policy a:hover{
    color: #2E333C;
    opacity: 1 !important;
}

.custom-footer-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    border-top: 1px black solid;
    padding: 5px 0 10px 0;
}

.custom-footer-info p {
    font-size: 13px;
    line-height: 22px;
    letter-spacing: -0.5px;
}

.custom-footer-info img{
    max-width: 170px;
}

.custom-footer-mobile-buttons {
    display: none;
    margin-bottom: 40px;
}

.custom-footer-mobile-buttons li a{
    width: 100%;
    display: block;
    text-align: center;
    margin-bottom: 15px;
    outline: none;
    border: none;
    padding: 0.9rem;
    border-radius: 100px;
    text-transform: uppercase;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.custom-footer-mobile-buttons li.link-prenota a {
    background: transparent linear-gradient(207deg, rgba(89, 46, 170, 0.7), rgba(40, 79, 167, 0.7)) 0% 0% no-repeat padding-box;
}

.custom-footer-mobile-buttons li.link-referti a {
    background: transparent linear-gradient(207deg, rgba(0, 131, 177, 0.7), rgba(40, 79, 167, 0.7)) 0% 0% no-repeat padding-box;
}

.custom-footer-mobile-buttons li.link-sedi a {
    background: transparent linear-gradient(207deg, rgba(58, 190, 190, 0.7), rgba(96, 83, 180, 0.7)) 0% 0% no-repeat padding-box;
}

.custom-footer-copyright a {
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 13px;
    line-height: 22px;
    letter-spacing: -0.5px;
    font-weight: 400;
    color:#2E333C;
}

.custom-footer-copyright a img {
    height: 25px;
    margin-left: 5px;
}

@media all and (max-width: 1180px){

    .custom-footer-menu .footer-title {
        width: auto;
    }

    body:not(.page-id-2) #main-footer .container #menu-footer-menu-sezioni {
        width: 90% !important;
        padding-top: 20px!important;
    }

    #main-footer{
        padding-top: 5rem;
        background-size: auto 81%;
        /* background-size: contain; */
    }

    .custom-footer-menu{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #DAE3E6;
        border-radius: 100px;
        padding: 1rem 1rem;
        margin-top: 0px;
        margin-bottom: 3rem;
    }

    .custom-footer-menu h3{
        margin-top: 0;
        text-align: center;
        width: 100%;
    }

    .custom-footer-menu #menu-footer-menu-sezioni{
        /*display: flex;
        width: 100%;
        justify-content: space-between;
        gap: .5rem;*/
        display: flex;
        width: 90%;
        justify-content: space-between;
        gap: 15px;
        padding-top: 10px;
    }

    .custom-footer-menu #menu-footer-menu-sezioni li{
        width: 100%;
    }

    .custom-footer-menu #menu-footer-menu-sezioni li p{
        display: none;
    }

}

@media all and (max-width: 980px) {
    .custom-footer-info {
        display: block;
        margin-bottom: 2rem;
    }
}

@media all and (max-width: 815px) {
}

@media all and (max-width: 768px) {
    #main-footer {
        margin-top: -70px;
        padding-top: 8rem;
    }

    .custom-footer-mobile-buttons {
        display: block;
    }

    #footer-bottom {
        margin-top: 60px;
    }
    #footer-widgets .footer-widget .widget_block ul {
        column-count: 3;
    }

    .custom-footer-menu h3{
        font-size: 20px;
    }
}

@media all and (max-width: 555px) {

    body:not(.page-id-2) #main-footer .container #menu-footer-menu-sezioni {
        padding-top: 10px !important;
        gap: 15px !important;
    }

    #footer-bottom{
        margin-top: 0;
    }

    #footer-bottom a{
        margin-left: 1rem;
    }

    #footer-widgets{
        padding: 30px 0 0 0;
    }

    .custom-footer-links {
        flex-wrap: wrap;
        height: auto;
    }
    .custom-footer-links .custom-footer-links-policy{
        flex-basis: 100%;
        text-align: end;
        border-bottom: 1px black solid;
        padding: 5px 0 10px 0;
        margin-top: 5px;
    }
    .custom-footer-info {
        text-align: center;
        margin-top: 20px;
        border-top: 0px solid;
    }

    .custom-footer-info > p{
        text-align: left;
        margin-bottom: 1.5rem;
    }

    .custom-footer-info .custom-footer-copyright > p{
        text-align: right;
    }
}

@media all and (max-width: 600px) {
    #footer-widgets .footer-widget .widget_block ul {
        column-count: 2;
        column-gap: 5%;
    }
}

@media all and (max-width: 320px) {

    body:not(.page-id-2) #main-footer .container #menu-footer-menu-sezioni {
        padding-top: 0 !important;
        gap: 10px!important;
    }
}