/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 3.4
*/

/* =Theme customization starts here
------------------------------------------------------- */

.et_pb_ajax_pagination_container .wp-pagenavi a{font-size: 15px;color: blue;}
.mobile_menu_bar:before,
.mobile_menu_bar:after,
#top-menu li.current-menu-ancestor>a,
#top-menu li.current-menu-item>a {
    color: blue !important;
}

div.wpforms-container-full .wpforms-form .wpforms-head-container {
    padding: 0 !important;
}

.wpforms-container .wpforms-form a {color: #737373; font-weight: 800;}


/* =============================================================================
   CSS FOOTER ACCESSIBILITÀ - ISOLATO PER NON INTERFERIRE CON IL RESTO
   Aggiungere al file style.css del tema child
   ============================================================================= */

/* Screen reader only - SOLO nel footer */
#main-footer .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* FOOTER PRINCIPALE - container isolato */
#main-footer {
    background-color: #f8f9fa;
    border-top: 3px solid #005c2a;
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

/* LAYOUT FOOTER - layout originale DIVI */
#main-footer .fwidget {
    margin: 0;
}
#main-footer .fwidget figure {
    padding: 0 12px;
}
#main-footer .linesezz {
    position: relative;
        display: flex;
            align-items: center;
}

/* HEADING DEL FOOTER */
#main-footer .footer-heading {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #005c2a;
    padding-bottom: 0.5rem;
    font-family: inherit;
}

/* SEZIONE INFORMAZIONI AZIENDALI */
#main-footer .company-info address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

#main-footer .company-info address strong {
    font-size: 1.1rem;
    color: #005c2a;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#main-footer .address-line {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

#main-footer .contact-info {
    display: block;
    margin-top: 0.5rem;
}

#main-footer .contact-info a {
    color: #005c2a;
    text-decoration: underline;
    font-weight: 500;
    transition: all 0.2s ease;
}

#main-footer .contact-info a:hover,
#main-footer .contact-info a:focus {
    color: #003d1c;
    background-color: rgba(0, 92, 42, 0.1);
    outline: 2px solid #005c2a;
    outline-offset: 2px;
    text-decoration: none;
    border-radius: 2px;
    padding: 2px 4px;
}

#main-footer .fax-number {
    color: #666;
}

/* DETTAGLI AZIENDA */
#main-footer .company-details {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

#main-footer .company-details p {
    margin-bottom: 0.8rem;
    color: #555;
    line-height: 1.5;
}

#main-footer .company-details strong {
    color: #333;
    font-weight: 600;
}

#main-footer .copyright {
    font-size: 0.9rem;
    color: #777;
    margin-top: 1rem !important;
    font-style: italic;
}

/* NAVIGAZIONE LEGALE */
#main-footer .legal-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

#main-footer .legal-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    #main-footer .legal-links-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

#main-footer .legal-link {
    color: #005c2a !important;
    text-decoration: underline;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
    border-radius: 3px;
    padding: 0.3rem 0.5rem;
    margin: -0.3rem -0.5rem;
    font-size: 0.95rem;
}

#main-footer .legal-link:hover,
#main-footer .legal-link:focus {
    color: #003d1c !important;
    background-color: rgba(0, 92, 42, 0.1);
    outline: 2px solid #005c2a;
    outline-offset: 2px;
    text-decoration: none;
}

#main-footer .legal-link:visited {
    color: #4a0e4e !important;
}

#main-footer .pdf-link .file-type {
    font-size: 0.85em;
    color: #666;
    margin-left: 0.3rem;
}

/* SEZIONE FINANZIAMENTI E CERTIFICAZIONI */
#main-footer .funding-section {
    text-align: center;
}

#main-footer .funding-section .wp-block-image {
    margin-bottom: 0;
}

#main-footer .funding-section img {
    max-width: 200px;
    height: auto;
    transition: transform 0.2s ease;
    border-radius: 3px;
}

#main-footer .funding-section img:hover {
    transform: scale(1.02);
}

#main-footer .funding-amount {
    background-color: rgba(0, 92, 42, 0.05);
    padding: 1rem;
    border-radius: 5px;
    border-left: 3px solid #005c2a;
}

#main-footer .funding-amount p {
    margin: 0;
    line-height: 1.5;
}

#main-footer .funding-amount .amount {
    font-weight: 700;
    color: #005c2a;
    font-size: 1.1em;
}

/* GALLERIA IMMAGINI */
#main-footer .blocks-gallery-grid {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

#main-footer .blocks-gallery-item figure {
    margin: 0;
}

/* FOCUS MANAGEMENT - SOLO NEL FOOTER */
#main-footer a:focus-visible,
#main-footer button:focus-visible {
    outline: 2px solid #005c2a !important;
    outline-offset: 2px !important;
    border-radius: 3px !important;
}

#main-footer img:focus {
    outline: 2px solid #005c2a;
    outline-offset: 2px;
    border-radius: 3px;
}

/* FOOTER BOTTOM */
#main-footer #footer-bottom {
    background-color: #005c2a;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* WIDGET PERSONALIZZATI - STILI BASE */
#main-footer .footer-widget {
    margin-bottom: 0;
}

#main-footer .textwidget p {
    color: #333;
    line-height: 1.6;
}

/* RESPONSIVE MIGLIORATO */
@media (max-width: 767px) {
    #main-footer {
        padding: 1.5rem 0 1rem;
    }

    #main-footer .footer-heading {
        font-size: 1.1rem;
    }

    #main-footer .legal-links-list {
        gap: 0.3rem;
    }

    #main-footer .legal-link {
        font-size: 0.9rem;
        padding: 0.2rem 0.3rem;
        margin: -0.2rem -0.3rem;
    }
}

/* HIGH CONTRAST MODE SUPPORT */
@media (prefers-contrast: high) {
    #main-footer .legal-link {
        border: 1px solid currentColor;
    }

    #main-footer .footer-heading {
        border-bottom-width: 3px;
    }

    #main-footer .company-details {
        border-top-width: 2px;
        border-top-color: #333;
    }
}

/* REDUCED MOTION SUPPORT */
@media (prefers-reduced-motion: reduce) {

    #main-footer img,
    #main-footer .legal-link,
    #main-footer .contact-info a {
        transition: none;
    }

    #main-footer img:hover {
        transform: none;
    }
}

/* PRINT STYLES */
@media print {
    #main-footer {
        border-top: 2px solid #000;
        background: white !important;
        color: black !important;
    }

    #main-footer #footer-bottom {
        display: none;
    }

    #main-footer .legal-link {
        color: black !important;
        text-decoration: underline;
    }
}


.et_pb_team_member_description .et_pb_member_position { color: #333 !important;}