/* Nuova home: il footer (29/10/2026, concept in docs/concepts/home-design/home-footer.php, markup in
   components/home-footer.php). Allineato ai bordi del bento «Risorse e casi studio»; sale sul fondo della chiusura
   (styles/public-home-chiusura.css). In fondo il wordmark AIZOOME da bordo a bordo, che sfuma nel nero e sale da sotto
   quando arriva a vista (js/pages/home-footer.js). Caricato solo da index.php via $extraCss. */

body.public-site.homepage .site-footer.home-chiusura__footer {
    padding: 0;
    overflow: hidden;
}

.home-footer {
    --edge: calc(clamp(28px, 4.5vw, 72px) + 28px);
    padding: 0 var(--edge);
    color: #fff;
    font-family: var(--public-font-body);
    text-align: left;
}

/* ---------- In alto: marchio a sinistra, due colonne di link un po' verso il centro ---------- */

.home-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px 200px minmax(0, .18fr);
    column-gap: 56px;
    padding-bottom: 64px;
}

.home-footer__logo img {
    display: block;
    width: auto;
    height: 30px;
}

/* Niente blu sul testo (Luca, 29/10): la risposta è bianca, staccata solo dal peso; il resto della frase è grigio. */
.home-footer__claim {
    max-width: 26ch;
    margin: 28px 0 32px;
    color: var(--public-on-dark-50);
    font-size: clamp(1.5rem, 1rem + 1vw, 2rem);
    font-weight: var(--public-weight-regular);
    line-height: 1.2;
    letter-spacing: -.02em;
}

.home-footer__claim span {
    color: #fff;
    font-weight: var(--public-weight-semibold);
    white-space: nowrap;
}

.home-footer__social {
    display: flex;
    gap: 10px;
}

/* Cerchietti di vetro fumé, come i pulsanti del sito. */
.home-footer__social a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--public-radius-circle);
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .8);
    transition: background .25s, color .25s;
}

.home-footer__social a:hover,
.home-footer__social a:focus-visible {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.home-footer__social svg {
    width: 17px;
    height: 17px;
}

.home-footer__col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.home-footer__head {
    margin: 6px 0;
    color: rgba(255, 255, 255, .42);
    font-size: 13px;
    font-weight: var(--public-weight-regular);
    letter-spacing: .02em;
}

.home-footer__col a,
.home-footer__col button {
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .86);
    font: var(--public-weight-regular) 16px/1.3 var(--public-font-body);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color .2s;
}

.home-footer__col a:hover,
.home-footer__col a:focus-visible,
.home-footer__col button:hover,
.home-footer__col button:focus-visible {
    color: #fff;
}

/* ---------- La riga legale ---------- */

.home-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .42);
    font-size: 13px;
}

.home-footer__bottom p {
    margin: 0;
}

.home-footer__up {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s;
}

.home-footer__up:hover {
    color: #fff;
}

.home-footer__up svg {
    width: 14px;
    height: 14px;
}

/* ---------- Il wordmark: da bordo a bordo della finestra, appena più chiaro del nero, sfuma verso il basso ---------- */

.home-footer__wm {
    margin-inline: calc(-1 * var(--edge));
    padding: 0 1.2vw;
    color: rgba(255, 255, 255, .16);
    line-height: 0;
    -webkit-mask: linear-gradient(#000 25%, transparent 92%);
    mask: linear-gradient(#000 25%, transparent 92%);
}

.home-footer__wm-svg {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transform: translateY(18%);
    opacity: 0;
    transition: transform 1.8s var(--home-ease), opacity 1.4s var(--home-ease);
}

.home-footer__wm.is-on .home-footer__wm-svg {
    transform: none;
    opacity: 1;
}

/* ---------- Schermi stretti: tutto in colonna (il mobile vero arriva dopo il desktop) ---------- */

@media (max-width: 960px) {
    .home-footer {
        --edge: 20px;
        padding-top: 56px;
    }

    .home-footer__top {
        grid-template-columns: 1fr 1fr;
        row-gap: 40px;
        padding-bottom: 40px;
    }

    .home-footer__brand {
        grid-column: 1 / -1;
    }

    .home-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-footer__wm-svg {
        transform: none;
        opacity: 1;
        transition: none;
    }
}
