/* Stili Footer - Blocksy Child (senza Elementor) */

/* ===========================
   STICKY FOOTER LAYOUT
   =========================== */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main,
.main-content,
#main,
[role='main'] {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background: #1a2332;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: auto;
    font-family: 'Nunito Sans', 'Nunito', Arial, Helvetica, sans-serif;
}

/* ===========================
   FOOTER INNER & COLUMNS
   =========================== */
.footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

/* Colonna Brand */
.footer-col-brand {
    padding-right: 30px;
}

.footer-logo-wrap {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer-description {
    color: #b0bac5;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* Titoli colonne */
.footer-col-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 18px 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================
   Legal column: keep labels white, data text same as description
   =========================== */
.footer-col-legal .footer-legal-text p {
    color: #b0bac5;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.footer-col-legal .footer-legal-text p strong {
    color: #fff;
    font-weight: 600;
}

/* Liste info */
.footer-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-info-list li {
    color: #b0bac5;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.footer-info-list li strong {
    color: #fff;
    font-weight: 600;
}

.footer-info-list a {
    color: #b0bac5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-info-list a:hover {
    color: #2872fa;
}

/* ===========================
   FOOTER BOTTOM
   =========================== */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #8a95a5;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #b0bac5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #2872fa;
}

/* ===========================
   SOCIAL ICONS
   =========================== */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b0bac5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #2872fa;
    color: #fff;
    transform: translateY(-3px);
}

.social-icon svg {
    display: block;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 992px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-logo-wrap {
        display: block !important;
        text-align: center;
        margin-bottom: 20px;
    }

    /* Assicura che il logo sia visibile e ridimensionato */
    .footer-logo {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 160px;
        width: auto;
        height: auto;
        filter: brightness(0) invert(1);
    }

    /* Fix per immagini dentro il logo wrap */
    .footer-logo-wrap img {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-col-brand {
        text-align: center;
    }

    /* Logo fix su mobile */
    .footer-logo-wrap {
        display: block !important;
        text-align: center;
        margin-bottom: 15px;
        visibility: visible !important;
        width: 100%;
    }

    .footer-logo,
    .footer-logo-wrap img {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 140px;
        width: auto;
        height: auto;
        margin: 0 auto;
        filter: brightness(0) invert(1);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ===========================
   Footer contacts column spacing tweaks
   =========================== */
.footer-col-contacts .footer-col-title {
    /* title above email: reduce gap */
    margin-bottom: 8px;
}

.footer-col-contacts .contact-card {
    /* create a comfortable gap between email block and next title (Resta connesso) */
    margin-bottom: 22px;
}

.footer-col-contacts .contact-item {
    margin: 0 0 6px 0;
    color: #b0bac5;
    font-size: 0.95rem;
}

.footer-col-contacts .contact-label {
    display: inline-block;
    margin-right: 8px;
    color: #fff;
    font-weight: 600;
}

.footer-col-contacts .contact-link {
    color: #b0bac5;
    text-decoration: none;
}

.footer-col-contacts .contact-link:hover {
    color: #2872fa;
}
