/**
 * Footer sito pubblico
 */

/* ── Footer ── */
.footer {
    background: #0c0808;
    border-top: 3px solid #e5101a;
    color: white;
    padding: 64px 0 28px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

/* Column: Brand */
.fcol-brand .footer-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.logo-main {
    height: 44px;
    width: auto;
}

.logo-sponsor {
    height: 30px;
    width: auto;
}

.vline {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, 0.22);
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.5;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

/* Social circles */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.25s ease, border-color 0.25s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    background: #e5101a;
    border-color: transparent;
}

/* Column eyebrow title */
.fcol-title {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(229, 16, 26, 0.9);
    margin-bottom: 20px;
}

/* Contact list */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
}

.contact-list i {
    color: rgba(229, 16, 26, 0.7);
    font-size: 0.78rem;
    margin-top: 4px;
    min-width: 14px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: white;
}

/* Nav links */
.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: white;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Bottom bar */
.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bar p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
}

.footer-bar a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bar a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #e5101a;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(229, 16, 26, 0.35);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 16, 26, 0.45);
}

/* Focus accessibility */
.social-link:focus-visible,
.footer-nav-links a:focus-visible,
.footer-cookie-btn:focus-visible,
.back-to-top:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.95);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer,
    .social-link,
    .back-to-top {
        animation: none;
        transition: none;
    }
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .footer {
        padding: 48px 0 24px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 32px;
    }
    .footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .fcol-brand {
        grid-column: 1 / -1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 28px;
    }
}

@media (min-width: 1024px) {
    .footer {
        padding: 72px 0 32px;
    }
}
