/* ===== Footer (component) — fixed, single line, CSS-only ===== */
.site-footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 32px; /* Altezza compatta che funziona */
    background: #000;
    color: #fff;
    border-top: 1px solid #cba135;
    font-family: var(--font-ui, "Montserrat", sans-serif);
    z-index: 900;
}

.site-footer .footbar-inner{
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 8px; /* solo orizzontale */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: nowrap; /* una sola riga */
    overflow: visible; /* evita clipping */
}

/* LEFT: Copyright (must never shrink/clip) */
.footer-left, .foot-left{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: max-content;
    height: 100%;
    color: #fff;
}

/* Copyright assoluto: visibile e centrato verticalmente */
.footer-copyright{
    position: absolute !important;
    top: 0 !important;
    left: 8px !important; /* allinea al padding del container */
    height: 32px !important; /* uguale all'altezza del footer */
    display: flex !important;
    align-items: center !important;
    color: #fff;
    font-size: .75rem;
    line-height: 1;
    white-space: nowrap;
    text-indent: 0;
    pointer-events: none; /* non intercetta i click sopra i link */
}

/* RIGHT: Legal/utility (takes remaining space) */
.footer-links{
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.footer-list{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.footer-links a,
.footer-links button,
.footer-list a,
.footer-list button{
    color: inherit;
    text-decoration: none;
    font-size: .75rem;
    line-height: 1;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.footer-links a:hover,
.footer-links button:hover,
.footer-list a:hover,
.footer-list button:hover{
    text-decoration: underline;
}

/* a11y focus */
.footer-links a:focus-visible,
.footer-links button:focus-visible{
    outline: 2px solid #cba135;
    outline-offset: 2px;
}

/* Checkbox controller (hidden) */
.foot-toggle{
    position: absolute;
    left: -9999px;
}

/* Three-dot trigger */
.foot-trigger{
    display: none;
}

.foot-dot{
    display: block;
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
    margin: 0 1px;
}

@media (max-width: 767px){
    .foot-trigger{
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        cursor: pointer;
    }

    .footer-links{
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 100%;
        background: #000;
        border-top: 1px solid #cba135;
        padding: 6px 8px;
        box-shadow: 0 -8px 24px rgba(0,0,0,.35);
        z-index: 901; /* sopra al testo assoluto */
    }

    .footer-list{ gap: 6px; }

    #foot_toggle:checked ~ .footer-links{
        display: flex;
        justify-content: flex-end;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}