/*
 * Homepress footer — full-bleed background + container interno con max-width.
 * Vars CSS impostate inline in wp_head dai theme_mods.
 */

/* === Container esterno: full-bleed (background si estende a tutta la pagina) === */
.hp-footer {
    --hp-footer-bg: #1a1a1f;
    --hp-footer-text: #e5e5e5;
    --hp-footer-link: #ffffff;
    --hp-footer-link-hover: #cccccc;
    --hp-footer-social: #e5e5e5;
    --hp-footer-social-hover: #ffffff;

    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--hp-footer-bg);
    color: var(--hp-footer-text);
    font-size: 0.95em;
    line-height: 1.6;
}
.hp-footer *,
.hp-footer *::before,
.hp-footer *::after { box-sizing: border-box; min-width: 0; }

/* === Container interno: max-width centrato + padding === */
.hp-footer-inner {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hp-footer-align-center .hp-footer-inner { align-items: center; text-align: center; }
.hp-footer-align-left   .hp-footer-inner { align-items: flex-start; text-align: left; }
.hp-footer-align-right  .hp-footer-inner { align-items: flex-end; text-align: right; }

/* === Menu pages === */
.hp-footer-menu { width: 100%; }
.hp-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
    word-break: break-word;
}
.hp-footer-align-center .hp-footer-menu-list { justify-content: center; }
.hp-footer-align-right  .hp-footer-menu-list { justify-content: flex-end; }
.hp-footer-menu-list li { margin: 0; padding: 0; }
.hp-footer-menu-list a {
    color: var(--hp-footer-link) !important;
    text-decoration: none;
    font-size: 0.92em;
    transition: color .15s ease;
}
.hp-footer-menu-list a:hover,
.hp-footer-menu-list a:focus {
    color: var(--hp-footer-link-hover) !important;
    text-decoration: underline;
}

/* === Testo === */
.hp-footer-text {
    color: inherit;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.hp-footer-text a {
    color: var(--hp-footer-link) !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hp-footer-text a:hover,
.hp-footer-text a:focus {
    color: var(--hp-footer-link-hover) !important;
    text-decoration: none;
}
.hp-footer-text p { margin: 0 0 0.5em; }
.hp-footer-text p:last-child { margin: 0; }

/* === Social === */
.hp-footer-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.hp-footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--hp-footer-social);
    text-decoration: none;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}
.hp-footer-social-link:hover,
.hp-footer-social-link:focus {
    color: var(--hp-footer-social-hover);
    background: rgba(255, 255, 255, .08);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .hp-footer-inner { padding: 24px 16px; gap: 14px; }
    .hp-footer-menu-list { gap: 6px 16px; }
    .hp-footer-social-link { width: 44px; height: 44px; }
}
