/* Underskin — Site footer */

.site-footer {
    /* Palette-driven: bg = ink (nero), testi = bg (colore body).
       Poster negative feel — colophon stampato invertito. Rispetta rule
       "no white cards floating" tenendo il footer come band scura dominante
       che stacca dal turchese/sabbia del body. */
    background: var(--ink);
    color: var(--bg);
    border-top: 2px solid var(--accent);
    margin-top: var(--space-xxl);
}

.site-footer a {
    color: color-mix(in oklab, var(--bg) 85%, transparent);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--accent);
}

.site-footer__logo,
.site-footer__wordmark {
    color: var(--bg);
}

/* Palette-driven SVG logo: inline SVG usa fill=currentColor. */
.site-footer__logo svg {
    display: block;
    width: auto;
    height: 120px;
    max-width: 100%;
}

.site-footer__logo-img {
    /* invert(1) su bg nero = logo bianco/chiaro. Coerente con color scheme. */
    filter: brightness(0) invert(1);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 2fr 1fr 1.4fr 1fr;
    }
}

.site-footer__tagline {
    font-size: var(--font-size-sm);
    line-height: 1.5;
    max-width: 42ch;
    opacity: 0.8;
    margin-top: var(--space-sm);
}

.site-footer__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.site-footer__contact a {
    line-height: 1.5;
    transition: color var(--duration-fast) var(--ease-default);
}

.site-footer__logo {
    display: inline-flex;
    color: var(--bg);
    height: 96px;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.site-footer__logo-img {
    height: 100%;
    width: auto;
    display: block;
    transition: filter var(--duration-fast) var(--ease-default);
}

.site-footer__logo:hover .site-footer__logo-img {
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

.site-footer__wordmark {
    font-family: var(--font-signature);
    font-size: clamp(1.75rem, 2.4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.site-footer__address {
    line-height: 1.4;
}

.site-footer__col-title {
    font-family: var(--font-signature);
    font-size: clamp(1.4rem, 1.8vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.site-footer__menu,
.site-footer__social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.site-footer__social {
    flex-direction: row;
    gap: var(--space-sm);
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--bg);
    background: transparent;
    border: 0;
}

.site-footer__social svg {
    width: 28px;
    height: 28px;
    transition:
        color var(--duration-fast) var(--ease-default),
        transform var(--duration-fast) var(--ease-default);
}

.site-footer__social a:hover svg,
.site-footer__social a:focus-visible svg {
    color: var(--accent);
    transform: scale(1.1);
}

.site-footer__bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    color: color-mix(in oklab, var(--bg) 65%, transparent);
}

@media (min-width: 768px) {
    .site-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.site-footer__credit a {
    color: var(--accent);
}
