/**
 * AAS Footer Custom Styles
 * Stili personalizzati per il footer a 4 colonne
 * Versione 1.0.7 - Con altezze uguali
 */

/* Sfondo scuro del footer */
.footer-custom .footer-content,
.footer-custom [data-footer-parallax] {
    background-color: #2c3e50 !important;
}

/* Contenitore principale footer con maggiore specificità */
.footer-simple .aas-footer-main,
.footer-custom .aas-footer-main {
    padding: 60px 0 40px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
}

/* Clearfix per la row */
.aas-footer-main:after {
    content: "";
    display: table;
    clear: both;
}

.aas-footer-main .aas-footer-col {
    margin-bottom: 30px;
    color: #ffffff !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
}

/* Forza altezza uguale per tutte le colonne */
@media (min-width: 992px) {
    .aas-footer-main .aas-footer-col {
        min-height: 100%;
    }
}

/* Linee verticali di separazione tra le colonne */
@media (min-width: 992px) {
    .aas-footer-main .aas-footer-col:not(:last-child):after {
        content: "";
        position: absolute;
        right: 0;
        top: 5%;
        height: 95%;
        width: 1px;
        background-color: rgba(255, 255, 255, 0.2);
    }
}

/* Forza il layout a 4 colonne su schermi grandi - con altissima specificità */
@media (min-width: 992px) {
    .footer-custom .gridContainer .row.aas-footer-main .col-md-3.aas-footer-col {
        width: 25% !important;
        max-width: 25% !important;
        flex: 0 0 25% !important;
    }
    
    /* Forza tutte le colonne a stare sulla stessa riga */
    .footer-custom .aas-footer-main {
        display: flex !important;
        width: 100% !important;
    }
}

/* Colonna 1: Delegazione UAI */
.aas-footer-delegation {
    text-align: center;
}

.aas-delegation-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.aas-delegation-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-transform: uppercase;
    color: #ffffff !important;
}

/* Colonna 2: Contatti */
.aas-footer-contact {
    color: #ffffff !important;
}

.aas-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.aas-contact-item i {
    margin-right: 10px;
    font-size: 18px;
    min-width: 20px;
    padding-top: 3px;
    color: #ffa500 !important;
}

.aas-contact-item span {
    color: #ffffff !important;
}

.aas-contact-item a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aas-contact-item a:hover {
    color: #ffa500 !important;
    text-decoration: underline;
}

/* Colonna 3: Sostegno */
.aas-footer-support {
    color: #ffffff !important;
}

.aas-footer-support p {
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
    color: #ffffff !important;
}

.aas-cf-highlight {
    font-size: 18px !important;
    margin: 15px 0 !important;
    color: #ffa500 !important;
}

.aas-support-highlight {
    font-size: 16px !important;
    color: #ffffff !important;
}

/* Colonna 4: Area Riservata */
.aas-footer-admin {
    color: #ffffff !important;
}

.aas-footer-admin p {
    color: #ffffff !important;
}

.aas-footer-admin a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.aas-footer-admin a:hover {
    color: #ffa500 !important;
}

.aas-footer-admin i {
    margin-right: 8px;
    color: #ffa500 !important;
}

/* Barra copyright */
.aas-footer-copyright-bar {
    background: rgba(0, 0, 0, 0.3) !important;
    padding: 20px 0 !important;
    text-align: center;
    color: #ffffff !important;
    margin-top: 20px;
}

.aas-footer-copyright-bar p {
    margin: 5px 0 !important;
    color: #ffffff !important;
}

.aas-footer-copyright-bar .copyright {
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 991px) {
    .aas-footer-col {
        text-align: center !important;
    }
    
    .aas-contact-item {
        justify-content: center;
    }
    
    .aas-footer-main .col-md-3 {
        width: 50% !important;
        float: left !important;
    }
}

@media (max-width: 767px) {
    .aas-footer-main {
        padding: 40px 0 20px !important;
    }
    
    .aas-delegation-logo {
        max-width: 120px;
    }
    
    .aas-footer-col {
        margin-bottom: 40px;
    }
    
    .aas-footer-main .col-md-3 {
        width: 100% !important;
        float: none !important;
    }
}
