/* --- Footer Base Styles --- */
footer {
    position: relative !important;
    text-align: center !important;
    padding: 10px 0 !important;
    bottom: 0 !important;
    margin-top: auto !important;
    background-color: var(--primary-color) !important;
}

.site-footer {
    background-color: #1a1a1a;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    justify-content: center; /* cambia da space-between a center */
    gap: 2rem; /* opzionale: spazio tra colonne */
}

.footer-section {
    flex: 1;
    min-width: 200px;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.footer-heading {
    font-weight: 600;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: start;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: start;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: white;
}

.footer-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon {
    margin-right: 0.75rem;
    color: #c40d2e;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    color: var(--fiftiary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.social-icon {
    width: 16px;
    height: 16px;
    fill: white !important;
}

.social-link:hover .social-icon {
    fill: white !important;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1.5rem 0;
}

/* --- Nuovo contenitore per footer bottom (copyright + policy + social) --- */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    color: white;
    flex-wrap: nowrap;
}

.footer-bottom .separator {
    color: rgba(255, 255, 255, 0.6);
}

.footer-inner {
    max-width: 500px;
    text-align: left;
   margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-inner {
        margin: 0; /* elimina il centramento */
        text-align: left; /* conferma allineamento a sinistra */
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
        gap: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer bottom diventa colonna */
    .footer-bottom {
        flex-direction: column;
        gap: 0.25rem;
    }

    /* Nascondi i separatori | */
    .footer-bottom .separator {
        display: none;
    }

    /* Footer bottom contenuti full width e centrati */
    .footer-bottom p,
    .footer-bottom a.footer-link,
    .footer-bottom .social-links {
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
        justify-content: center;
    }
}
