/* --- STILE FOOTER SECTION --- */
#main-footer {
    background: linear-gradient(to bottom, #687D98 0%, #4D5766 64%);
    color: #ffffff;
    padding-top: 30px;
}

.footer-container {
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .footer-container {
        padding: 0 2rem;
    }
}

@media (min-width: 992px) {
    .footer-container {
        padding: 0 80px;
    }
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 20px;
    margin-bottom: 20px;
    position: relative;
    align-items: center; /* MODIFICA: Centra i blocchi colonna */
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start; /* Ripristina l'allineamento per desktop */
        gap: 3rem;
    }
}

.footer-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}

.footer-col {
    flex: 1;
    text-align: center; /* AGGIUNTA: Centra tutto il testo (logo, indirizzo, ecc.) */
}

@media (min-width: 768px) {
    .footer-col {
        text-align: left; /* Ripristina l'allineamento a sinistra per desktop */
    }
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-logo img {
        height: 60px;
        margin-bottom: 2rem;
    }
}

.footer-address {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #ffffff;
}

.footer-address strong {
    color: #ffffff;
}

.footer-col-links {
    text-align: center; /* MODIFICA: Centra i link e i titoli */
}

@media (min-width: 768px) {
    .footer-col-links {
        text-align: right; /* Ripristina l'allineamento a destra per desktop */
    }
}

.footer-links-group h4,
.footer-social-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 0.5rem;
}

.footer-links-group a {
    text-decoration: none;
    color: #ffffff;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links-group a:hover {
    opacity: 0.8;
}

.footer-social-group {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center; /* MODIFICA: Centra le icone social */
    gap: 1rem;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-end; /* Ripristina l'allineamento a destra per desktop */
    }
}

.social-icons a svg {
    fill: #ffffff;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons a:hover svg {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.75rem;
    color: #ffffff;
}

@media (min-width: 768px) {
    .footer-bottom {
        font-size: 0.8rem;
    }
}