/*
 * Homepress footer — testo + social auto-rilevati da URL.
 * Variabili CSS impostate inline in wp_head dai theme_mods.
 */

.hp-footer {
    --hp-footer-bg: #1a1a1f;
    --hp-footer-text: #e5e5e5;
    --hp-footer-link: #ffffff;
    --hp-footer-link-hover: #cccccc;  /* fallback: grigio chiaro leggibile su bg scuro */
    --hp-footer-social: #e5e5e5;
    --hp-footer-social-hover: #ffffff;

    background: var(--hp-footer-bg);
    color: var(--hp-footer-text);
    padding: 32px 24px;
    font-size: 0.95em;
    line-height: 1.6;
}
.hp-footer-inner {
    max-width: 1300px;
    margin: 0 auto;
    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 footer (pagine: Privacy, Chi Siamo, Disclaimer, ecc.) */
.hp-footer-menu { width: 100%; }
.hp-footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
}
.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, text-decoration-color .15s ease;
}
.hp-footer-menu-list a:hover,
.hp-footer-menu-list a:focus,
.hp-footer-menu-list a:active {
    color: var(--hp-footer-link-hover) !important;
    text-decoration: underline;
    opacity: 1;
}

.hp-footer-text { color: inherit; }
.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; }

.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 { padding: 24px 16px; }
    .hp-footer-social-link { width: 44px; height: 44px; }
}
