/**
 * Footer Styles - 4 colonne simmetriche
 */

.site-footer {
    background-color: #2a2a2a;
    color: #fff;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

/* 4 colonne con stesso gap dei widget articoli */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: 3rem;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #b0b0b0;
    font-size: 0.875rem;
    text-decoration: none;
    word-break: break-word;
}

.footer-links a:hover {
    color: #E84855;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.footer-social a:hover {
    background-color: #E84855;
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.875rem;
    color: #b0b0b0;
}

.footer-copyright a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-copyright a:hover {
    color: var(--color-primary-text, var(--color-primary));
    text-decoration: underline;
}

/* Tablet: 2 colonne */
@media (min-width: 768px) and (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 colonna centrata */
@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
    .footer-column,
    .footer-title {
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Dark mode */
body.dark-mode .site-footer {
    background-color: #1a1a1a;
}


/* ═══ Link trasparenza editoriale (v1.6.79) ═══ */
.footer-transparency {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem .6rem;
    padding: 1rem 0 .25rem;
    font-size: .85rem;
}
.footer-transparency a {
    color: inherit;
    opacity: .85;
    text-decoration: none;
}
.footer-transparency a:hover { opacity: 1; text-decoration: underline; }
.footer-transparency .sep { opacity: .4; }

.footer-legal {
    text-align: center;
    font-size: .8rem;
    line-height: 1.5;
    opacity: .75;
    margin: .5rem auto 0;
    max-width: 900px;
    padding: 0 1rem;
}
.footer-legal a { color: inherit; }

/* ═══ CAROSELLO NETWORK (v1.6.83) ═══
   Solo CSS, nessuno script: due copie dell'elenco scorrono in fila per un
   giro continuo. Si ferma al passaggio del mouse e con la tastiera.
   Con "riduci movimento" attivo diventa una fila scorrevole a mano. */
.network-carousel {
    margin: 2rem 0 .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.network-title {
    margin: 0 0 1rem;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .7;
}
.network-viewport {
    overflow: hidden;
    padding: 8px 0 16px;              /* spazio per ombra e sollevamento: niente taglio in basso */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.network-track {
    display: flex;
    width: max-content;
    animation: network-scroll var(--network-duration, 60s) linear infinite;
    will-change: transform;           /* scorrimento fluido, senza scatti */
    backface-visibility: hidden;
}
.network-viewport:hover .network-track,
.network-viewport:focus-within .network-track { animation-play-state: paused; }
.network-list {
    display: flex;
    gap: .9rem;
    margin: 0;
    padding: 0 .45rem;
    list-style: none;
}
.network-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 140px;
    padding: 8px 18px;
    border-radius: 10px;
    background: #fff;                 /* tessera chiara: i loghi si leggono su qualsiasi footer */
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.network-item a:hover,
.network-item a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.network-item img {
    display: block;
    max-height: 38px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.network-name {
    color: #1a1a1a;
    font-size: .85rem;
    font-weight: 800;
    white-space: nowrap;
}
@keyframes network-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .network-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 12px; }
    .network-track { animation: none; }
    .network-list[aria-hidden="true"] { display: none; }
    .network-item[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) {
    .network-item a { height: 48px; min-width: 116px; padding: 6px 14px; }
    .network-item img { max-height: 32px; max-width: 120px; }
}
