footer {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #45b379, #0d85ae, #f49945, #e83a68);
    color: white;
    padding: 40px 20px 20px;
    overflow: hidden;
}

footer .overlay-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* layer nero più scuro */
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 1;
}

.container-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

footer .col-md-4 {
    flex: 1 1 220px; /* era 1 1 300px */
    min-width: 180px; /* più compatto */
}

.logo-footer img {
    width: 120px;
    margin-bottom: 10px;
}

footer h5 {
    font-size: 18px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    color: transparent;
    width: fit-content;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

footer ul li a:hover {
    color: #ddd;
}

/* Stile speciale per link 5x1000 nel footer */
.footer-5x1000-link {
    display: inline-block;
    background: #ff6f61;
    color: white !important;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 5px;
}

.footer-5x1000-link:hover {
    background: #e55a4d !important;
    color: white !important;
    transform: translateY(-1px);
}

.description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}

.text-center {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.social-icons ul {
    display: flex;
    gap: 15px;
}

.social-icons ul li a {
    font-size: 20px;
    color: white;
    transition: 0.3s;
}

.social-icons ul li a:hover {
    color: #ccc;
}

.whatsapp-link {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    background-color: #25d366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s ease;
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.whatsapp-link:hover {
    background-color: #128c7e;
}
.language-switcher {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.65);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.language-switcher label {
    margin: 0;
    font-weight: normal;
    color: white;
}

.language-switcher select {
    padding: 5px 8px;
    font-size: 14px;
    border-radius: 5px;
    border: none;
    background: #fff;
    color: #000;
    cursor: pointer;
}

@media (max-width: 480px) {
    .language-switcher {
        bottom: 10px;
        left: 10px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .language-switcher select {
        font-size: 12px;
        padding: 4px 6px;
    }

    footer {
        padding: 30px 15px 20px;
    }

    .container-footer {
        gap: 20px;
    }

    footer h5 {
        font-size: 16px;
    }

    .logo-footer img {
        width: 100px;
    }

    .description {
        font-size: 13px;
    }

    .whatsapp-link {
        font-size: 14px;
        padding: 10px 15px;
    }

    .whatsapp-icon {
        width: 20px;
        height: 20px;
    }

    .social-icons ul {
        justify-content: center;
        gap: 20px;
    }

    .social-icons ul li a {
        font-size: 24px;
    }

    .footer-5x1000-link {
        display: block;
        text-align: center;
        padding: 10px 16px;
        font-size: 0.95rem;
    }

    .text-center p {
        font-size: 12px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    footer {
        padding: 0;
    }
    .container-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .col-md-4 {
        max-width: 100%;
    }

    .logo-footer img {
        width: 140px;
    }

    .whatsapp-link {
        justify-content: center;
    }
}
