/**
 * Footer Child Custom Styles
 * Stili per il footer PHP custom (footer-child.php)
 */

/* Container principale footer */
.footer-child-main {
    padding: 0;
    background-color: #fff;
}

/* Layout a 2 colonne uguali (1fr 1fr) */
.footer-child-main .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.footer-child-main .footer-contact-column,
.footer-child-main .footer-links-column {
    width: 100%;
}


/* Titoli principali (INFORMAZIONI DI CONTATTO, LINK UTILI, SEGUICI SUI SOCIAL) */
.footer-child-main .footer-title {
    font-weight: 700 !important;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: #111;
    line-height: 1.2;
}

/* Sottotitoli (INDIRIZZO, CONTATTI, ORARI DI APERTURA SHOWROOM) */
.footer-child-main .footer-subtitle {
    font-weight: 600 !important;
    font-size: 14px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 8px;
    color: #111;
    line-height: 1.2;
}

.footer-child-main .footer-subtitle:first-of-type {
    margin-top: 0;
}

/* Testo normale */
.footer-child-main p {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

/* Link nel footer */
.footer-child-main a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-child-main a:hover {
    color: #E74338;
    text-decoration: none;
}

/* Colonna link utili - allineata a destra e verticalmente centrata */
.footer-child-main .footer-links-column {
    text-align: right !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Lista link utili */
.footer-child-main .footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: right !important;
}

.footer-child-main .footer-links-list li {
    margin-bottom: 8px;
    text-align: right !important;
}

.footer-child-main .footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-child-main .footer-links-list a {
    font-weight: 400;
    font-size: 14px;
    color: #333;
    display: inline-block;
    text-align: right !important;
}

.footer-child-main .footer-links-list a:hover {
    color: #E74338;
}

/* Titolo social */
.footer-child-main .footer-social-title {
    margin-top: 30px;
    margin-bottom: 15px;
    text-align: right !important;
}

/* Icone social - circolari con sfondo nero */
.footer-child-main .footer-social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end !important;
}

.footer-child-main .footer-social-icons a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50% !important;
    background-color: #000 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 !important;
    vertical-align: middle;
}

.footer-child-main .footer-social-icons a:hover {
    background-color: #E74338 !important;
    transform: scale(1.1);
    opacity: 1 !important;
}

/* Icone Font Awesome nei social - sovrascrive stili Porto */
.footer-child-main .footer-social-icons a::before {
    font-family: var(--fa-style-family-brands, "Font Awesome 6 Brands") !important;
    text-indent: 0 !important;
    font-size: 18px !important;
    color: #fff !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    line-height: 40px !important;
    height: 40px !important;
    margin: auto !important;
    z-index: 2 !important;
    text-align: center !important;
}

/* Colori specifici per ogni social (sovrascrive Porto) */
.footer-child-main .footer-social-icons .share-facebook {
    background-color: #000 !important;
}

.footer-child-main .footer-social-icons .share-facebook::before {
    content: "\f39e" !important; /* fa-facebook-f */
}

.footer-child-main .footer-social-icons .share-instagram {
    background-color: #000 !important;
}

.footer-child-main .footer-social-icons .share-instagram::before {
    content: "\f16d" !important; /* fa-instagram */
}

.footer-child-main .footer-social-icons .share-tiktok {
    background-color: #000 !important;
}

.footer-child-main .footer-social-icons .share-tiktok::before {
    content: "\e07b" !important; /* fa-tiktok */
}

/* Footer bottom (copyright) */
.footer-child-bottom {
    padding: 20px 0;
    border-top: 1px solid #eee;
    background-color: #fff;
}

.footer-child-bottom .container {
    max-width: 1200px;
}

.footer-child-bottom .text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .footer-child-main {
        padding: 0;
    }
    
    .footer-child-main .footer-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .footer-child-main .footer-subtitle {
        font-size: 13px;
        margin-top: 15px;
        margin-bottom: 6px;
    }
    
    .footer-child-main p {
        font-size: 13px;
    }
    
    .footer-child-main .footer-links-list a {
        font-size: 13px;
    }
    
    .footer-child-main .footer-social-title {
        margin-top: 25px;
        margin-bottom: 12px;
    }
    
    .footer-child-main .footer-social-icons {
        gap: 10px;
    }
    
    .footer-child-main .footer-social-icons a {
        width: 36px;
        height: 36px;
    }
    
    .footer-child-main .footer-social-icons a::before {
        font-size: 16px;
    }
}

/* Nascondi colonna INFORMAZIONI DI CONTATTO su iPad verticale e più piccoli */
@media (max-width: 768px) {
    .footer-child-main .footer-contact-column {
        display: none !important;
    }
    
    .footer-child-main .row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 767px) {
    /* Mobile: centra TUTTO e link in rosso */
    .footer-child-main {
        padding: 0;
        text-align: center !important;
    }

    .footer-child-main .row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-child-main .footer-contact-column,
    .footer-child-main .footer-links-column {
        margin-bottom: 30px;
        text-align: center !important;
        align-items: center !important;
    }

    .footer-child-main .footer-links-column:last-child {
        margin-bottom: 0;
    }

    .footer-child-main .footer-title,
    .footer-child-main .footer-subtitle,
    .footer-child-main p {
        text-align: center !important;
    }

    .footer-child-main a {
        color: #E74338 !important;
    }

    .footer-child-main .footer-links-column {
        justify-content: flex-start;
    }

    .footer-child-main .footer-links-list,
    .footer-child-main .footer-links-list li,
    .footer-child-main .footer-links-list a {
        text-align: center !important;
    }

    .footer-child-main .footer-social-title {
        text-align: center !important;
    }

    .footer-child-main .footer-social-icons {
        justify-content: center !important;
    }
}


/* Copyright: nessun trattino, <br class="mobile"> solo su mobile */
@media (min-width: 768px) {
    .footer-copyright br.mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .footer-copyright br.mobile {
        display: block !important;
    }
}
