/**
 * Custom Footer Styling - Matches Header Design
 * Associated with: gp_child_custom_footer()
 */

/* ==========================================================================
   Site Info Container (GeneratePress wrapper)
   ========================================================================== */
/* High specificity to override parent theme - clean approach without !important */
html body .site-footer .site-info,
html body footer.site-info,
body .site .site-footer .site-info {
    background-color: #003d7a;
    color: #ffffff;
    padding: 0;
    margin: 0;
    border-top: 3px solid #0056b3;
    box-shadow: 0 -2px 10px rgba(0, 61, 122, 0.1);
}

/* ==========================================================================
   Custom Footer Container
   ========================================================================== */
.gp-custom-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

/* ==========================================================================
   Copyright Text
   ========================================================================== */
.gp-custom-footer .copyright {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.gp-custom-footer .copyright a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.gp-custom-footer .copyright a:hover {
    border-bottom: 1px solid #ffffff;
}

/* ==========================================================================
   Footer Links (Privacy, Cookie)
   ========================================================================== */
.gp-custom-footer .footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.gp-custom-footer .footer-links a {
    color: #b3d7ff; /* Lighter blue for secondary links */
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gp-custom-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.gp-custom-footer .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Tablet & Mobile (< 768px) */
@media (max-width: 768px) {
    .gp-custom-footer {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }
    
    .gp-custom-footer .copyright {
        font-size: 13px;
        order: 2; /* Sposta copyright sotto i link su mobile */
    }
    
    .gp-custom-footer .footer-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        order: 1;
    }
    
    /* Nascondi il separatore bullet su mobile dato che sono in colonna */
    .gp-custom-footer .separator {
        display: none;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    /* Specificità aumentata per evitare !important */
    html body .site-footer .site-info {
        background-color: transparent;
        color: #000000;
        border-top: 1px solid #000000;
        box-shadow: none;
    }
    
    .gp-custom-footer {
        padding: 15px 0;
    }
    
    .gp-custom-footer,
    .gp-custom-footer a {
        color: #000000;
        text-decoration: none;
    }
    
    .gp-custom-footer a::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }
    
    .gp-custom-footer .footer-links {
        display: none; /* Nascondi link privacy in stampa se ridondanti */
    }
}