/* ==========================================================================
   Componente: Footer Principale
   ========================================================================== */

.sp-footer {
    width: 100%;
    background-color: #ffffff;
    padding: 3rem 1.5rem 2rem; /* Spazio sopra e sotto */
    font-family: 'Roboto', sans-serif;
}

.sp-footer__inner {
    max-width: 1200px; /* Adatta alla larghezza del tuo container principale */
    margin: 0 auto;
}

/* --- PARTE SUPERIORE --- */
.sp-footer__top {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0; /* Riga di separazione */
}

@media (min-width: 992px) {
    .sp-footer__top {
        flex-direction: row;
    }
}

.sp-footer__top-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .sp-footer__top-left {
        flex-direction: row;
    }
}

.sp-footer__logo {
    height: 40px; /* Regola in base al tuo logo reale */
    width: auto;
    display: block;
}

.sp-footer__divider {
    display: none;
    width: 1px;
    height: 35px;
    background-color: #cbd5e1;
}

@media (min-width: 768px) {
    .sp-footer__divider {
        display: block;
    }
}

.sp-footer__nav {
    display: flex;
    gap: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.sp-footer__nav-link {
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.sp-footer__nav-link:hover {
    opacity: 0.7;
}

/* Colori specifici per i link */
.color-wallet   { color: var(--wp--preset--color--accent-3); }
.color-motors   { color: var(--wp--preset--color--accent-2); }
.color-partners { color: var(--wp--preset--color--accent-4); }
.color-magazine { color: var(--wp--preset--color--contrast); }

/* Icone Social */
.sp-footer__socials {
    display: flex;
    gap: 0.75rem;
}

.sp-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: #e2edf8; /* Azzurrino chiaro dello sfondo */
    color: #1a569d; /* Blu scuro dell'icona */
    border-radius: 6px; /* Leggermente stondati come nell'immagine */
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.sp-social-icon:hover {
    background-color: #cbdcf0;
    transform: translateY(-2px);
}

/* --- PARTE INFERIORE --- */
.sp-footer__bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .sp-footer__bottom {
        flex-direction: row;
    }
}

.sp-footer__legal {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sp-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sp-footer__legal a:hover {
    color: #1e293b;
}

.sp-footer__legal-sep {
    color: #cbd5e1;
}