/**
 * DFN Theme Footer Styles
 * Style ispirato al piè di pagina del sito ufficiale del FAI (Fondo per l'Ambiente Italiano)
 */

.dfn-site-footer {
    background-color: #1e1e1e;
    color: #cccccc;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    border-top: 1px solid #333333;
    width: 100%;
}

.dfn-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 1. TOP BAR NAVIGAZIONE MENU FOOTER */
.dfn-footer-top-bar {
    background-color: #181818;
    border-bottom: 1px solid #2d2d2d;
    padding: 16px 0;
}

.dfn-footer-nav {
    display: flex;
    justify-content: flex-end;
}

.dfn-footer-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.dfn-footer-menu li {
    margin: 0;
    padding: 0;
}

.dfn-footer-menu li a {
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.dfn-footer-menu li a:hover {
    color: #00a859;
}

/* 2. MAIN FOOTER CONTENT (GRID 3 COLONNE) */
.dfn-footer-main-bar {
    padding: 40px 0;
}

.dfn-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.dfn-footer-col {
    display: flex;
    flex-direction: column;
}

/* Colonna 1: Info e Contatti */
.dfn-footer-brand {
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.dfn-footer-text {
    color: #a0aec0;
    font-size: 13px;
    line-height: 1.6;
}

.dfn-footer-text a {
    color: #e2e8f0;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.dfn-footer-text a:hover {
    color: #00a859;
}

/* Colonna 2: Descrizione Legale */
.dfn-footer-desc p {
    margin: 0 0 8px 0;
    color: #cbd5e1;
    font-size: 13px;
}

.dfn-footer-desc .dfn-footer-subtext {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}

/* Colonna 3: Social Network */
.dfn-footer-social {
    align-items: flex-end;
}

.dfn-social-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.dfn-social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dfn-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2a2a2a;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    border: 1px solid #3d3d3d;
}

.dfn-social-link:hover {
    background-color: #004b23;
    color: #ffffff;
    transform: translateY(-2px);
    border-color: #006b32;
}

/* 3. BOTTOM COPYRIGHT BAR */
.dfn-footer-bottom-bar {
    background-color: #121212;
    border-top: 1px solid #262626;
    padding: 16px 0;
    text-align: center;
}

.dfn-footer-bottom-bar p {
    margin: 0;
    font-size: 12px;
    color: #718096;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .dfn-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .dfn-footer-social {
        align-items: flex-start;
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .dfn-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dfn-footer-social {
        grid-column: span 1;
    }

    .dfn-footer-nav,
    .dfn-footer-menu {
        justify-content: center;
    }

    .dfn-footer-menu {
        gap: 16px;
    }
}
