/* ═══════════════════════════════════════════════════════════════
   HEADER — Bollettino Ufficiale
   ═══════════════════════════════════════════════════════════════ */

/* Nasconde completamente il header nativo di GeneratePress */
.site-header,
.main-navigation,
#masthead {
    display: none !important;
}

/* Header personalizzato */
.bu-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Barra superiore bianca: logo + testata */
.bu-header-top {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.bu-header-top-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand / logo */
.bu-header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.bu-header-logo {
    height: 48px;
    width: auto;
    display: block;
}

.bu-header-logo-text {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .5px;
    line-height: 1.2;
}

/* Tagline testata */
.bu-header-tagline {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.bu-header-tagline-name {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: .3px;
}

.bu-header-tagline-sub {
    font-size: 11px;
    color: #888;
    letter-spacing: .2px;
}

/* Hamburger mobile */
.bu-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.bu-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: .2s;
}

/* Barra nera navigazione */
.bu-nav {
    background: #1a1a1a;
}

.bu-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.bu-nav-list {
    display: flex;
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.bu-nav-item {
    position: relative;
}

.bu-nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 13px 18px;
    color: #e8e8e8;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.bu-nav-link:hover,
.bu-nav-item:hover > .bu-nav-link {
    background: #333;
    color: #fff;
}

.bu-nav-arrow {
    font-size: 9px;
    opacity: .7;
    margin-top: 1px;
}

/* Voce Approfondimenti — evidenziata in oro */
.bu-nav-link-appro {
    color: #c9a84c;
    margin-left: auto;
}

.bu-nav-link-appro:hover {
    color: #e8c96a;
    background: #2a2a2a;
}

/* Dropdown sottocategorie */
.bu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 3px solid #1a1a1a;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 200;
}

.bu-has-dropdown:hover .bu-dropdown {
    display: block;
}

.bu-dropdown li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: background .12s;
}

.bu-dropdown li a:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

.bu-dropdown-count {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — Bollettino Ufficiale
   ═══════════════════════════════════════════════════════════════ */

/* Nasconde il footer nativo di GeneratePress */
.site-footer,
#colophon {
    display: none !important;
}

.bu-footer {
    background: #1a1a1a;
    color: #ccc;
    margin-top: 60px;
}

.bu-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 36px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

/* Colonna brand */
.bu-footer-logo-link {
    text-decoration: none;
}

.bu-footer-logo-text {
    font-family: 'Georgia', serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.bu-footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: #999;
    margin: 0;
}

/* Intestazioni colonne */
.bu-footer-heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
}

/* Liste link footer */
.bu-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bu-footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: color .15s;
}

.bu-footer-links a:hover {
    color: #fff;
}

/* Colonna servizio */
.bu-footer-service-text {
    font-size: 13px;
    line-height: 1.6;
    color: #999;
    margin: 0 0 16px;
}

.bu-footer-cta-btn {
    display: inline-block;
    background: #c9a84c;
    color: #1a1a1a;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 2px;
    transition: background .15s;
    margin-bottom: 14px;
}

.bu-footer-cta-btn:hover {
    background: #e8c96a;
}

.bu-footer-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

/* Barra copyright */
.bu-footer-bottom {
    border-top: 1px solid #2e2e2e;
    background: #111;
}

.bu-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.bu-footer-copy,
.bu-footer-credits {
    font-size: 12px;
    color: #666;
}

.bu-footer-credits a {
    color: #888;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   BANNER CTA STICKY IN BASSO
   ═══════════════════════════════════════════════════════════════ */

.bu-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #c9a84c;
    z-index: 9999;
    box-shadow: 0 -2px 12px rgba(0,0,0,.2);
}

.bu-sticky-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bu-sticky-cta-text {
    flex: 1;
    font-size: 13px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
}

.bu-sticky-cta-text strong {
    font-weight: 700;
}

.bu-sticky-cta-text em {
    font-style: normal;
    opacity: .85;
}

.bu-sticky-cta-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.bu-sticky-cta-btn {
    background: #1a1a1a;
    color: #fff;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    border-radius: 2px;
    white-space: nowrap;
    transition: background .15s;
}

.bu-sticky-cta-btn:hover {
    background: #333;
}

.bu-sticky-cta-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.bu-sticky-cta-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px 8px;
    opacity: .6;
    flex-shrink: 0;
}

.bu-sticky-cta-close:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR CATEGORIE — solo quelle con articoli
   ═══════════════════════════════════════════════════════════════ */

.bu-sidebar-cats ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bu-sidebar-cats li {
    border-bottom: 1px solid #f0f0f0;
}

.bu-sidebar-cats li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color .15s;
}

.bu-sidebar-cats li a:hover {
    color: #1a1a1a;
}

.bu-sidebar-cats .cat-item-count {
    font-size: 11px;
    color: #999;
    background: #f5f5f5;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Nascondi categorie con 0 articoli via CSS (fallback) */
.bu-sidebar-cats .cat-item-count-0,
.bu-sidebar-cats li:has(.cat-item-count-0) {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .bu-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    /* Header mobile */
    .bu-header-tagline-sub { display: none; }
    .bu-nav-toggle { display: flex; }

    .bu-nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .bu-nav-list.bu-nav-open {
        display: flex;
    }

    .bu-nav-link {
        padding: 12px 20px;
        font-size: 13px;
    }

    .bu-dropdown {
        position: static;
        border: none;
        border-top: none;
        box-shadow: none;
        background: #2a2a2a;
        padding: 0;
    }

    .bu-has-dropdown:hover .bu-dropdown {
        display: none;
    }

    .bu-dropdown li a {
        color: #ccc;
        background: #2a2a2a;
        padding: 10px 32px;
        font-size: 12px;
    }

    /* Footer mobile */
    .bu-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Sticky CTA mobile */
    .bu-sticky-cta-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }

    .bu-sticky-cta-text {
        font-size: 12px;
    }

    .bu-sticky-cta-text em {
        display: none;
    }
}

/* ── FOOTER: lista lettori ── */
.bu-footer-readers {
    list-style: none;
    margin: 0;
    padding: 0;
}
.bu-footer-readers li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
}
.bu-footer-readers li:last-child { border-bottom: none; }
.bu-footer-reader-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}
.bu-footer-readers strong { color: #c9a84c; }

/* Registrazione testata nel footer */
.bu-footer-registrazione {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    margin-top: 12px;
    line-height: 1.5;
}
