/**
 * BBAdria Theme - Footer Styles
 * Stili personalizzati per il footer
 * 
 * @package BBAdria
 */

/* ========== LOGHI ISTITUZIONALI ========== */
.institutional-logos {
    background-color: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.institutional-logos .logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.institutional-logos .logo-item {
    display: block;
    max-width: 350px;
    min-width: 250px;
    transition: all 0.3s ease;
    opacity: 1;
}

.institutional-logos .logo-item:hover {
    opacity: 0.85;
    transform: translateY(-3px);
}

.institutional-logos .logo-item img {
    width: 100%;
    height: auto;
    display: block;
    filter: none;
    transition: all 0.3s ease;
}

.institutional-logos .logo-item:hover img {
    filter: brightness(1.05);
}

@media (max-width: 991px) {
    .institutional-logos {
        padding: 35px 0;
    }
    
    .institutional-logos .logos-wrapper {
        gap: 40px;
    }
    
    .institutional-logos .logo-item {
        max-width: 280px;
        min-width: 200px;
    }
}

@media (max-width: 767px) {
    .institutional-logos {
        padding: 30px 0;
    }
    
    .institutional-logos .logos-wrapper {
        gap: 30px;
    }
    
    .institutional-logos .logo-item {
        max-width: 220px;
        min-width: 180px;
    }
}

/* ========== FOOTER TOP ========== */

.footer .top {
    background-color: var(--color-cta-primary);
    background-image: linear-gradient(135deg, var(--color-cta-primary) 0%, var(--color-cta-primary-hover) 100%);
    padding: 80px 0 50px;
    position: relative;
}

.footer .top:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-cta-secondary), transparent);
    opacity: 0.3;
}

.footer .top .item {
    color: var(--color-white);
}

.footer .top .item .logo {
    margin-bottom: 25px;
}

.footer .top .item .logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer .top .item .logo a {
    display: inline-block;
}

.footer .top .item h3 {
    color: var(--color-white);
    font-size: var(--font-size-h5);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    position: relative;
    padding-bottom: 15px;
}

.footer .top .item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-cta-secondary), transparent);
}

.footer .top .item p {
    color: var(--color-white);
    font-size: var(--font-size-small);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-sm);
}

.footer .top .item p.address {
    display: flex;
    gap: 10px;
    line-height: 1.6;
}

.footer .top .item i {
    color: var(--color-white); 
    font-size: var(--font-size-normal);
    margin-top: 3px;
}

/* Contatti */
.footer .top .item .phone,
.footer .top .item .mail {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer .top .item a{
    color: var(--color-white);
    font-size: var(--font-size-small);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-normal);
}



.footer .top .item .phone:hover a,
.footer .top .item .mail:hover a {
    color: var(--color-cta-secondary);
    transform: translateX(5px);
}

/* Social Icons */
.footer .top .social-icons {
    margin-top: 25px;
}

.footer .top .social-icons .list-inline {
    display: flex;
    gap: 10px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer .top .social-icons li {
    display: inline-flex !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
    border: none !important;
    background: none !important;
}

.footer .top .social-icons li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(212, 168, 106, 0.1) !important;
    border: 1px solid var(--color-white) !important;
    border-radius: 50%;
    color: var(--color-cta-secondary) !important;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer .top .social-icons li:hover {
    background: none !important;
}

.footer .top .social-icons li:hover a {
    background-color: var(--color-cta-secondary) !important;
    color: var(--color-text-secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

/* Footer Menu */
.footer .top .footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .top .footer-menu li {
    margin-bottom: 12px;
}

.footer .top .footer-menu li a {
    color: var(--color-white);
    font-size: var(--font-size-small);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.footer .top .footer-menu li a:before {
    content: '\f054';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 300;
    font-size: var(--font-size-tiny);
    color: var(--color-cta-secondary);
}

.footer .top .footer-menu li:hover a {
    color: var(--color-cta-secondary);
    transform: translateX(5px);
}

/* Company Info Bottom */
.footer .bottom .company-info-bottom {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.footer .bottom .company-info-bottom span {
    color: var(--color-white);
    font-size: var(--font-size-tiny);
}

/* ========== FOOTER BOTTOM ========== */

.footer .bottom {
    background-color: var(--color-cta-primary-hover);
    padding: 25px 0 110px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .bottom p {
    color: var(--color-white);
    font-size: var(--font-size-small);
    margin: 0;
}

.footer .bottom .links ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer .bottom .links li {
    margin: 0;
}

.footer .bottom .links li a {
    color: var(--color-grey-medium);
    font-size: var(--font-size-small);
    transition: var(--transition-normal);
    position: relative;
}

.footer .bottom .links li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-cta-secondary);
    transition: width 0.3s ease;
}

.footer .bottom .links li a:hover {
    color: var(--color-cta-secondary);
}

.footer .bottom .links li a:hover:after {
    width: 100%;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 991px) {
    .footer .top {
        padding: 60px 0 40px;
    }
    
    .footer .top .item {
        margin-bottom: 30px;
    }
    
    .footer .bottom {
        padding: 25px 0 25px;
    }
    
    .footer .bottom .links ul {
        justify-content: flex-start;
        margin-top: 15px;
    }
}

@media (max-width: 767px) {
    .footer .top {
        padding: 50px 0 20px;
    }
    
    .footer .top .item h3 {
        font-size: 16px;
    }
    
    .footer .top .item {
        margin-bottom: 20px;
    }
    
    .footer .bottom {
        text-align: center;
        padding: 20px 0 25px;
    }
    
    .footer .bottom .links ul {
        justify-content: center;
        margin-top: 10px;
        gap: 15px;
    }
    
    .footer .bottom p {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .footer .bottom .company-info-bottom {
        justify-content: center;
        font-size: 11px;
        margin-top: 5px;
    }
}
