/* ==========================================================
   Light Template — Header Footer Light
   Caricato su tutte le pagine che usano il template header-footer-light
   ========================================================== */

:root {
    --c-blue-dark:  #1a3d5c;
    --c-blue:       #2d7eb5;
    --c-bg:         #f0f2f5;
    --c-white:      #ffffff;
    --c-border:     #d0d8e0;
    --c-muted:      #6b7a8d;
    --transition:   .2s ease;
}

/* ── PAGE LAYOUT ───────────────────────────────────────── */
body.page-template-header-footer-light {
    margin: 0;
    padding: 0;
    background: #FCFCFD;
}

/* FSE wrappa il template in .wp-site-blocks — è qui che serve il flex column */
body.page-template-header-footer-light .wp-site-blocks {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

/* Il main si espande per occupare tutto lo spazio disponibile */
body.page-template-header-footer-light .light-page-main {
    flex: 1;
    padding: 0;
}

/* ── LIGHT HEADER ──────────────────────────────────────── */
header.light-header,
.wp-block-template-part.light-header {
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
}

.light-header__inner {
    padding: 0 60px;
    height: 72px;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem;
}

.wp-block-site-logo.light-header__logo {
    flex-shrink: 0;
    margin: 0;
}

.wp-block-site-logo.light-header__logo img {
    height: 32px;
    width: auto;
    display: block;
}

.light-header__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.light-header__contact {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-family: 'Akko Pro', inherit;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: 0;
    color: #333E48;
    text-decoration: none;
    transition: color var(--transition);
    white-space: nowrap;
}

.light-header__contact:hover {
    color: var(--c-blue);
}

.light-header__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.light-header__icon svg {
    display: block !important;
    margin: 0 !important;
}

/* ── LIGHT FOOTER ──────────────────────────────────────── */
footer.light-footer,
.wp-block-template-part.light-footer {
    background: #333E48;
}

.light-footer__inner {
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Riga 1: logo */
.light-footer__logo {
    line-height: 0;
}

.light-footer__logo svg,
.light-footer__logo img {
    display: block;
}

.light-footer__logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Riga 2: testo legale + link */
.light-footer__bottom {
    display: flex;
    align-items: flex-end;
    gap: 46px;
}

.light-footer__legal {
    flex: 1;
    font-family: 'Akko Pro', inherit;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
}

/* Link legali */
.light-footer__links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.light-footer__links a {
    font-family: 'Akko Pro', inherit;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.3;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition);
}

.light-footer__links a:hover {
    opacity: .7;
}

.light-footer__sep {
    font-size: 14px;
    color: #ffffff;
    opacity: .5;
    user-select: none;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 680px) {
    .light-header__inner {
        padding: .65rem 1rem;
    }

    .light-header__right {
        gap: .75rem;
    }

    .light-header__contact {
        font-size: 0;
    }

    .light-footer__inner {
        padding: 24px 20px;
        gap: 20px;
    }

    .light-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .light-footer__links {
        justify-content: flex-start;
        flex: none;
    }

    .light-page-main {
        padding: 1rem .5rem;
    }
}
