/* ===== FOOTER BASE (mobile first) ===== */
footer {
    border-top: 1px solid var(--theme-color2-border);
}
/* sezioni */
.footer-section {
    padding: 0.75rem 0;
}
/* titoli */
.footer-section h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}
footer .heading{
    margin-top: 0;
}

/* liste */
.footer-section ul li,
.footer-meta li,
.footer-contacts li {
    margin-bottom: 0.35rem;
}

/* contatti */
.footer-contacts,
.footer-meta{
    display: flex;
    flex-direction: row;
}
.footer-contacts i{
    width: 18px;
    text-align: center;
    margin-right: 0.25rem;
}
/* link */
footer a:link, footer a:visited {
    text-decoration: none;
    color: var(--body-color);
}
footer a:hover, footer a:active,
footer .nav-link:hover, footer .nav-link:active {
    color: var(--theme-primary);
}
/* bottone top */
.scroll-top {
    border-radius: 50%;
}

/* ===== FOOTER MENU ===== */
#footer-menu {
    font-size: .9rem;
}
/* mobile: colonne ben separate */
#footer-menu .footer-section {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 1rem;
}

/* ===== CREDITS ===== */
#credits{
	background-image: url(../../easyAdmin/common/images/CreditsNero.gif);
	background-position: right center;
	background-repeat: no-repeat;
    font-size: .7rem;
    display: inline-block;
	margin: 1rem 0 0 0;
}
#credits span{
    visibility: hidden;
    display: inline-block;
    width: 106px;
}

/* ===== LEGAL NOTES ===== */
#legalnotes ul {
    display: flex;
    /*flex-direction: column;   mobile verticale */
    gap: 0.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
#legalnotes li {
    font-size: 0.75rem;
}
#legalnotes a {
    text-decoration: none;
    color: var(--body-color);
    padding: .3rem;
}
#legalnotes a:hover, #legalnotes a:active {
    color: var(--theme-primary);
}

@media (min-width: 768px) {
    footer {
        font-size: 0.95rem;
    }
    .footer-section {
        padding: 0.5rem 0;
    }
    /* rimuovo separatori mobile */
    #footer-menu .footer-section {
        border-bottom: none;
        padding-bottom: 0;
    }
    /* credits a destra */
    #credits {
        justify-content: flex-end;
        text-align: right;
    }
    /* legal in riga */
    #legalnotes ul {
        flex-direction: row;
        align-items: flex-end;
        flex-wrap: wrap;
        gap: .4rem .9rem;
    }
    #legalnotes li {
        font-size: 0.8rem;
    }
}

@media (min-width: 992px) {
    footer {
        font-size: 1rem;
    }
    .footer-section h6 {
        font-size: 1rem;
    }
    footer h4{
        margin-bottom: 2.5rem;
    }
    #footer-menu {
        font-size: 0.95rem;
    }
    #credits{
	    margin: 1rem 2rem 0 0;
    }
}