/* 🎨 FOOTER MODERNO E INTERATTIVO */

.footer-glass {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 1) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    overflow: hidden;
}

/* Background sottile */
.footer-glass::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 209, 178, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: footerParticles 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes footerParticles {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Container principale */
.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Sezioni footer Ultra Interattive */
.footer-section {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: default;
}

.footer-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 204, 106, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 0;
}

.footer-section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 0;
}

.footer-section:hover::before {
    left: 100%;
}

.footer-section:hover::after {
    opacity: 1;
}

.footer-section:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 204, 106, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

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

/* Logo footer */
.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-logo .logo-accent {
    color: #00cc6a;
}

.footer-logo:hover {
    transform: scale(1.03);
}

.footer-logo .logo-text {
    font-family: 'Poppins', sans-serif;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.footer-section:hover h3,
.footer-section:hover h4 {
    color: rgba(255, 255, 255, 0.95);
    transform: translateX(3px);
}

.footer-section h3::after,
.footer-section h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #00cc6a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover h3::after,
.footer-section:hover h4::after {
    width: 60px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section:hover p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

/* Liste footer */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.7rem 0.7rem 0.7rem 1.8rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
}

.footer-section ul li::after {
    content: "";
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #00cc6a;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.footer-section ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #00cc6a;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    padding-left: 2rem;
    color: #ffffff;
    background: rgba(0, 204, 106, 0.08);
    border-left: 3px solid #00cc6a;
    transform: translateX(4px);
}

.footer-section ul li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-section ul li:hover::after {
    width: 20px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00cc6a;
    transition: width 0.25s ease;
}

.footer-section a:hover {
    color: #00cc6a;
    transform: translateX(3px);
}

.footer-section a:hover::after {
    width: 100%;
}

/* Social Links Ultra Moderni */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(0, 204, 106, 0.12);
    border-color: rgba(0, 204, 106, 0.4);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-link:hover svg {
    fill: #00cc6a;
}

/* Newsletter Form Interattivo */
.newsletter-form {
    margin-top: 1.5rem;
}

.newsletter-input {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    position: relative;
    padding: 0.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.newsletter-input:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(176, 38, 255, 0.2);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.1);
}

.newsletter-email {
    flex: 1;
    padding: 1.2rem 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    outline: none;
    backdrop-filter: blur(10px);
}

.newsletter-email:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(176, 38, 255, 0.3);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.2);
}

.newsletter-email::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-email:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(176, 38, 255, 0.5);
    box-shadow: 
        0 0 20px rgba(176, 38, 255, 0.3),
        0 0 40px rgba(176, 38, 255, 0.2),
        0 0 60px rgba(176, 38, 255, 0.1);
    animation: inputNeonGlow 2s ease-in-out infinite;
}

@keyframes inputNeonGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(176, 38, 255, 0.3),
            0 0 40px rgba(176, 38, 255, 0.2),
            0 0 60px rgba(176, 38, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(176, 38, 255, 0.5),
            0 0 60px rgba(176, 38, 255, 0.3),
            0 0 90px rgba(176, 38, 255, 0.2);
    }
}

/* Statistiche animate */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.footer-stats::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(176, 38, 255, 0.1), transparent);
    animation: statsShine 4s ease-in-out infinite;
}

@keyframes statsShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.footer-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.footer-stat::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(176, 38, 255, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.footer-stat:hover::before {
    width: 200px;
    height: 200px;
}

.footer-stat:hover {
    background: rgba(176, 38, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(176, 38, 255, 0.3),
        0 0 20px rgba(176, 38, 255, 0.2),
        inset 0 0 20px rgba(176, 38, 255, 0.1);
    border: 1px solid rgba(176, 38, 255, 0.3);
    animation: statNeonPulse 2s ease-in-out infinite;
}

@keyframes statNeonPulse {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(176, 38, 255, 0.3),
            0 0 20px rgba(176, 38, 255, 0.2),
            inset 0 0 20px rgba(176, 38, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 10px 30px rgba(176, 38, 255, 0.5),
            0 0 30px rgba(176, 38, 255, 0.4),
            inset 0 0 30px rgba(176, 38, 255, 0.2);
    }
}

.footer-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #B026FF, #00D1B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
    filter: drop-shadow(0 0 10px rgba(176, 38, 255, 0.6));
    animation: numberNeonGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.footer-stat:hover .footer-stat-number {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(176, 38, 255, 1)) drop-shadow(0 0 30px rgba(176, 38, 255, 0.8));
}

@keyframes numberNeonGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(176, 38, 255, 0.6));
        text-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(176, 38, 255, 1)) drop-shadow(0 0 30px rgba(176, 38, 255, 0.8));
        text-shadow: 0 0 30px rgba(176, 38, 255, 0.8), 0 0 40px rgba(176, 38, 255, 0.6);
    }
}

.footer-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.footer-stat:hover .footer-stat-label {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px 16px 0 0;
    backdrop-filter: blur(10px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    transition: color 0.25s ease;
}

.footer-bottom:hover .footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Footer Legal - link minimali ed eleganti (nessun pulsante verde) */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-legal-dot {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
    user-select: none;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    transition: all 0.25s ease;
    position: relative;
}

.footer-legal-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #00cc6a;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.footer-legal-link:hover {
    color: #00cc6a;
}

.footer-legal-link:hover::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #B026FF, #00D1B2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(176, 38, 255, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 15px 40px rgba(176, 38, 255, 0.6),
        0 0 30px rgba(176, 38, 255, 0.8),
        0 0 60px rgba(176, 38, 255, 0.6);
    animation: backToTopNeon 2s ease-in-out infinite;
}

@keyframes backToTopNeon {
    0%, 100% {
        box-shadow: 
            0 15px 40px rgba(176, 38, 255, 0.6),
            0 0 30px rgba(176, 38, 255, 0.8),
            0 0 60px rgba(176, 38, 255, 0.6);
    }
    50% {
        box-shadow: 
            0 15px 40px rgba(176, 38, 255, 0.8),
            0 0 50px rgba(176, 38, 255, 1),
            0 0 90px rgba(176, 38, 255, 0.8);
    }
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .footer-section {
        padding: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-stats {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Animazioni di entrata */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

