/*
 * Componenti globali del sito.
 * Questo file viene caricato per ultimo per mantenere header e footer identici
 * in ogni pagina, indipendentemente dagli stili specifici della sezione.
 */

body .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid #e9edf5;
    box-shadow: 0 8px 28px rgba(16, 20, 47, 0.06);
    backdrop-filter: blur(14px);
}

body .site-header .header-inner {
    min-height: 78px;
    gap: 20px;
}

body .site-header .brand {
    gap: 0;
    color: #11162f;
}

body .site-header .brand-mark,
body .site-header .brand-logo-image {
    width: calc(var(--site-header-logo-height, 58px) * 3.45);
    height: var(--site-header-logo-height, 58px);
    max-width: none;
    filter: none;
    object-fit: contain;
    object-position: left center;
}

body .site-header .nav {
    display: flex;
    gap: 24px;
}

body .site-header .nav > a,
body .site-header .nav-account-summary {
    color: #11162f;
    font-size: 0.9rem;
    font-weight: 800;
}

body .site-header .nav > a:hover,
body .site-header .nav > a.is-active,
body .site-header .nav-account-summary:hover,
body .site-header .nav-account-summary.is-active {
    color: #7a4ce8;
}

body .site-header .nav > a.is-active:not(.btn) {
    position: relative;
}

body .site-header .nav > a.is-active:not(.btn)::after {
    position: absolute;
    right: 0;
    bottom: -27px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f33791, #7a4ce8);
    content: "";
}

body .site-header .nav .btn-primary {
    min-height: 44px;
    padding: 0 22px;
    background: linear-gradient(135deg, #f33791, #7a4ce8);
    color: #fff;
    box-shadow: 0 12px 28px rgba(122, 76, 232, 0.24);
}

body .site-header .nav-favorites {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    padding: 0;
    border: 1px solid #e3e7f0;
    background: #f6f3ff;
    color: #f33791;
}

body .site-header .nav-favorites:hover,
body .site-header .nav-favorites.is-active {
    border-color: #d8c7fa;
    background: #efe8ff;
    color: #d92f79;
    transform: translateY(-1px);
}

body .site-header .nav-favorites::after {
    display: none;
}

body .site-header .nav-toggle {
    display: none;
    border-color: #e1e7f2;
    background: #fff;
}

body .site-header .nav-toggle-line {
    background: #11162f;
}

.sm-heart .favorite-toggle,
.related-heart .favorite-toggle {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font: inherit;
}

.sm-heart .favorite-toggle.is-active,
.related-heart .favorite-toggle.is-active {
    background: transparent;
    color: #f33791;
}

.location-event-card {
    position: relative;
}

body .site-footer {
    padding: 54px 0 28px;
    background:
        linear-gradient(90deg, rgba(7, 12, 31, 0.34), rgba(10, 13, 34, 0.16)),
        linear-gradient(180deg, rgba(7, 12, 31, 0.06), rgba(7, 12, 31, 0.55)),
        url('../img/footer-banner.webp') center / cover no-repeat;
    color: #c8d2ea;
}

body .site-footer .footer-inner {
    display: grid;
    grid-template-columns: minmax(230px, 1.1fr) repeat(3, minmax(120px, 0.7fr)) minmax(220px, 1fr);
    align-items: start;
    justify-content: initial;
    gap: 42px;
    text-align: left;
}

body .site-footer .footer-brand,
body .site-footer .footer-column,
body .site-footer .footer-newsletter {
    display: grid;
    align-content: start;
    gap: 11px;
    min-width: 0;
}

body .site-footer .footer-brand {
    gap: 14px;
    color: #fff;
    font-size: 1rem;
}

body .site-footer .footer-brand::before {
    content: none;
}

body .site-footer .footer-brand img {
    display: block;
    width: 190px;
    height: auto;
}

body .site-footer .footer-brand p,
body .site-footer .footer-newsletter p {
    display: block;
    margin: 0;
    color: #c8d2ea;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.55;
}

body .site-footer .footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body .site-footer .footer-socials span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
}

body .site-footer .footer-column h2,
body .site-footer .footer-newsletter h2 {
    display: block;
    margin: 0 0 4px;
    color: #fff;
    font-size: 1rem;
    line-height: 1.3;
}

body .site-footer .footer-column a {
    display: block;
    color: #dce4f7;
    font-size: 0.9rem;
    line-height: 1.45;
}

body .site-footer .footer-column a:hover {
    color: #fff;
}

body .site-footer .footer-newsletter label {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    min-height: 52px;
    margin-top: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
}

body .site-footer .footer-newsletter input {
    width: 100%;
    min-width: 0;
    padding: 0 16px;
    border: 0;
    background: rgba(3, 7, 24, 0.3);
    color: #fff;
    font: inherit;
}

body .site-footer .footer-newsletter input::placeholder {
    color: #c8d2ea;
}

body .site-footer .footer-newsletter button {
    border: 0;
    background: linear-gradient(135deg, #f33791, #ff7d4b);
    color: #fff;
    font-size: 1.35rem;
    cursor: pointer;
}

body .site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 24px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b9c4dd;
    font-size: 0.84rem;
    text-align: left;
}

body .site-footer .footer-bottom span:first-child {
    width: auto;
    margin-right: auto;
}

body .site-footer .footer-bottom a {
    color: #d8e0f2;
    text-decoration: none;
}

body .site-footer .footer-bottom a:hover,
body .site-footer .footer-bottom a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

body .site-footer .footer-newsletter .footer-newsletter-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 0;
    margin-top: 2px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: #c8d2ea;
    cursor: pointer;
    font-size: 0.73rem;
    line-height: 1.45;
}

body .site-footer .footer-newsletter .footer-newsletter-consent input {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #ef3f93;
}

body .site-footer .footer-newsletter .footer-newsletter-consent a {
    color: #fff;
    font-weight: 700;
    text-underline-offset: 2px;
}

.newsletter-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 1180px) {
    body .site-header .nav-toggle {
        display: inline-flex;
    }

    body .site-header .header-inner {
        position: relative;
    }

    body .site-header .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 16px 16px;
        border-top: 1px solid #e9edf5;
        border-bottom: 1px solid #e9edf5;
        background: rgba(255, 255, 255, 0.99);
        box-shadow: 0 22px 50px rgba(3, 7, 18, 0.18);
    }

    body .site-header .nav.is-open {
        display: flex;
    }

    body .site-header .nav > a {
        width: 100%;
        padding: 13px 4px;
        border-bottom: 1px solid #edf1f7;
        color: #151936;
        white-space: normal;
    }

    body .site-header .nav > a.is-active::after {
        display: none;
    }

    body .site-header .nav-user-actions {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 12px;
        margin-left: 0;
        padding-top: 14px;
    }

    body .site-header .nav-favorites {
        align-self: start;
    }

    body .site-header .nav-account-summary {
        justify-content: center;
        color: #151936;
    }
}

@media (max-width: 1080px) {
    body .site-footer .footer-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body .site-footer .footer-brand,
    body .site-footer .footer-newsletter {
        grid-column: 1 / -1;
    }

    body .site-footer .footer-newsletter {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    body .site-header .header-inner {
        min-height: 72px;
    }

    body .site-header .brand-mark,
    body .site-header .brand-logo-image {
        width: calc(var(--site-header-logo-height-mobile, 44px) * 3.45);
        height: var(--site-header-logo-height-mobile, 44px);
    }

    body .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body .site-footer .footer-brand,
    body .site-footer .footer-newsletter {
        grid-column: auto;
    }

    body .site-footer .footer-bottom {
        display: grid;
    }

    body .site-footer .footer-bottom span:first-child {
        margin-right: 0;
    }
}
