/* Bassanonet shell — header + footer (Notizie nw / Account+Community cm) */
/* --- header --- */
/* Header Bassanonet — unico CSS condiviso (Notizie, Account, Community) */
header#header {
    width: 100%;
    height: 100px;
    background: var(--blue-color);
    font-size: 13px;
    color: #fff;
    position: relative;
    z-index: 2000;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
header#header .content,
header#header .wrapper {
    overflow: visible;
}
header#header .content {
    padding: 0 20px 20px 20px;
    position: relative;
}
header#header .header-top .content {
    min-height: 100px;
    padding-bottom: 0;
    box-sizing: border-box;
}
header#header .logo {
    position: absolute;
    left: 115px;
    top: 27px;
}
header#header .logo img {
    width: 330px;
    height: auto;
}

/* Ricerca (Notizie) */
.header-search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--blue-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.2);
}
.header-search-bar[hidden] {
    display: none !important;
}
.header-search-bar .content {
    padding: 12px 20px 14px;
}
.header-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 12px;
}
.header-search-icon {
    color: var(--yellow-color);
    font-size: 18px;
}
.header-search-form input[type="search"] {
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
}
.header-search-form input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.header-search-form input[type="search"]:focus {
    outline: none;
    border-color: rgba(235, 205, 70, 0.55);
    background: rgba(255, 255, 255, 0.12);
}
.header-search-submit,
.header-search-close {
    width: auto;
    height: auto;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}
.header-search-submit {
    background: var(--yellow-color);
    color: var(--blue-color);
}
.header-search-submit:hover {
    background: #f3d95a;
    color: var(--blue-color);
}
.header-search-close {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}
.header-search-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.header-search-trigger[aria-expanded="true"] {
    background: rgba(235, 205, 70, 0.18);
    color: var(--yellow-color);
}

/* Online pill (Community) */
header#header .community-live-wrap {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}
.community-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    color: #fff;
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}
.community-live-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
}
.community-live-pill .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: community-pulse 2s ease-out infinite;
}
.community-live-pill .live-label {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}
@keyframes community-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.header-actions {
    --header-panel-bg: var(--blue-color);
    --header-panel-bg-2: rgba(255, 255, 255, 0.08);
    --header-panel-text: #fff;
    --header-panel-muted: rgba(255, 255, 255, 0.7);
    --header-panel-accent: #fff;
    --header-avatar-bg: var(--blue-color-2);
    --header-panel-border: rgba(255, 255, 255, 0.12);
    position: absolute;
    right: 12px;
    top: 0;
    height: 100px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2001;
}
.header-meteo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-right: 4px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff;
    font-family: var(--body-fonts);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.header-meteo i {
    color: var(--yellow-color);
    font-size: 18px;
    line-height: 1;
}
.header-meteo-temp {
    font-weight: 700;
}
.header-meteo-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-meteo:hover {
    background: rgba(235, 205, 70, 0.18);
    color: var(--yellow-color);
    text-decoration: none;
}
.header-meteo:hover i {
    color: var(--yellow-color);
}
.header-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--yellow-color);
    font-size: 21px;
    cursor: pointer;
    text-decoration: none;
    margin: 0;
    padding: 0;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.header-icon-btn:hover,
.apps-menu-container.active .apps-trigger {
    background: rgba(235, 205, 70, 0.18);
    color: var(--yellow-color);
}
.apps-menu-container,
.account-menu-container {
    position: relative;
    z-index: 2001;
}

/* App launcher */
.apps-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 344px;
    max-height: min(70vh, 560px);
    overflow: auto;
    background: var(--blue-color);
    color: #fff;
    border: 1px solid var(--blue-color-3);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(27, 34, 62, 0.28);
    padding: 14px;
    z-index: 2200;
}
.apps-dropdown[hidden] {
    display: none !important;
}
.apps-menu-container.active .apps-dropdown:not([hidden]) {
    display: block !important;
}
.apps-favorites {
    background: var(--blue-color-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 12px 12px;
    margin-bottom: 8px;
}
.apps-favorites-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.apps-more-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 2px;
}
.apps-grid-more {
    padding: 0 0 4px;
}
.apps-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}
.apps-grid-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--yellow-color);
    text-decoration: none;
}
.apps-grid-item:hover .apps-grid-icon {
    color: var(--yellow-color);
    border-color: rgba(235, 205, 70, 0.35);
}
.apps-grid-item:hover .apps-grid-label {
    color: var(--yellow-color);
}
.apps-grid-item.is-current {
    background: rgba(255, 255, 255, 0.08);
    color: var(--yellow-color);
    text-decoration: none;
}
.apps-grid-item.is-current .apps-grid-icon {
    color: var(--yellow-color);
    border-color: rgba(235, 205, 70, 0.35);
}
.apps-grid-item.is-current .apps-grid-label {
    color: var(--yellow-color);
}
.apps-grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.apps-grid-label {
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}

/* Account avatar + panel */
.account-avatar-trigger {
    position: relative;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.account-avatar-trigger:hover .account-avatar,
.account-menu-container.active .account-avatar {
    box-shadow: 0 0 0 3px rgba(235, 205, 70, 0.55);
}
.account-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--header-avatar-bg);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    user-select: none;
    position: relative;
    overflow: hidden;
}
.account-avatar.has-photo {
    background: transparent;
    padding: 0;
    color: transparent;
}
.account-avatar.has-photo img,
.account-panel-avatar.has-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.account-panel-avatar.has-photo {
    overflow: hidden;
    padding: 0;
    background: transparent;
}
.account-avatar-premium {
    background: linear-gradient(145deg, var(--premium-color-2), var(--premium-color));
    color: var(--premium-ink);
    box-shadow: 0 0 0 2px var(--blue-color-3);
}
.account-avatar-guest {
    background: var(--blue-color-2);
    font-size: 15px;
}
.account-premium-mark {
    position: absolute;
    left: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--premium-color);
    color: var(--premium-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid var(--blue-color);
    box-sizing: content-box;
    z-index: 1;
}
.account-avatar-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid var(--blue-color);
    box-sizing: content-box;
    z-index: 2;
}
.account-menu-container.is-premium .account-avatar-trigger:hover .account-avatar,
.account-menu-container.is-premium.active .account-avatar {
    box-shadow: 0 0 0 3px rgba(235, 205, 70, 0.7);
}
.account-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--header-panel-bg);
    color: var(--header-panel-text);
    border: 1px solid var(--blue-color-3);
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(27, 34, 62, 0.28);
    padding: 20px 20px 16px;
    text-align: center;
    z-index: 2200;
}
.account-panel[hidden] {
    display: none !important;
}
.account-menu-container.active .account-panel:not([hidden]) {
    display: block !important;
}
.account-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--header-panel-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.account-panel-close:hover {
    background: var(--header-panel-bg-2);
    color: var(--yellow-color);
}
.account-panel-email {
    margin: 4px 28px 16px;
    font-size: 13px;
    color: var(--header-panel-muted);
    word-break: break-all;
}
.account-panel-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: var(--header-avatar-bg);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 600;
    border: 3px solid rgba(255, 255, 255, 0.18);
}
.account-panel-avatar.account-avatar-premium {
    border-color: var(--premium-color);
    box-shadow: 0 0 0 3px rgba(235, 205, 70, 0.35);
}
.account-panel-hello {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 1.25;
}
.account-panel-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--premium-color-2), var(--premium-color));
    color: var(--premium-ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.account-panel-premium {
    background:
        linear-gradient(180deg, rgba(235, 205, 70, 0.16), rgba(27, 34, 62, 0) 88px),
        var(--header-panel-bg);
    border-color: rgba(235, 205, 70, 0.45);
}
.account-panel-manage {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.account-panel-manage:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    text-decoration: none;
}
.account-panel-actions {
    margin: 20px 0 0;
    border-top: 1px solid var(--header-panel-border);
    padding-top: 8px;
    text-align: left;
}
.account-panel-actions a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 10px;
    transition: background 0.15s ease, color 0.15s ease;
}
.account-panel-actions a:hover,
.account-panel-actions a.is-current {
    background: var(--header-panel-bg-2);
    color: var(--yellow-color);
    text-decoration: none;
}
.account-panel-actions a span {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.account-panel-actions a.account-panel-cta-premium {
    margin-top: 8px;
    justify-content: center;
    background: var(--yellow-color);
    color: var(--blue-color);
    font-weight: 700;
    border: 1px solid var(--yellow-color);
    border-radius: 999px;
}
.account-panel-actions a.account-panel-cta-premium:hover,
.account-panel-actions a.account-panel-cta-premium.is-current {
    background: #e0c23a;
    border-color: #e0c23a;
    color: var(--blue-color);
}
.account-panel-actions a.account-panel-back-site {
    margin-top: 14px;
}
.account-panel-logout {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--header-panel-border);
}
.account-panel-logout button {
    width: 100%;
    min-height: 44px;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: transparent !important;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.account-panel-logout button:hover {
    background: var(--header-panel-bg-2) !important;
    color: var(--yellow-color);
}
.account-panel-guest .account-panel-hello {
    margin-top: 12px;
}

@media (max-width: 780px) {
    header,
    header.smaller,
    header#header {
        overflow: visible;
        height: auto;
        min-height: 50px;
        padding-top: env(safe-area-inset-top, 0px);
        box-sizing: border-box;
    }
    header#header .content,
    header#header .header-top .content {
        position: relative;
        display: block;
        min-height: 0;
        padding: 4px 0 17px;
        box-sizing: border-box;
    }
    header#header .logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        float: none !important;
        display: block !important;
        width: fit-content;
        max-width: calc(100vw - 40px);
        margin: 58px 0 0 auto;
        text-align: right;
    }
    header#header .logo a {
        display: inline-block;
    }
    html.dark header#header .logo {
        margin-left: auto !important;
        text-align: right !important;
    }
    header#header .logo img {
        width: auto !important;
        height: 34px;
        max-width: min(360px, calc(100vw - 40px));
    }
    .header-actions {
        display: flex;
        position: absolute;
        top: calc(env(safe-area-inset-top, 0px) + 7px);
        right: 6px;
        height: auto;
        min-height: 0;
        margin: 0;
        align-items: center;
        gap: 2px;
    }
    .header-meteo {
        gap: 6px;
        min-height: 38px;
        margin-right: 0;
        padding: 6px 8px;
        font-size: 13px;
    }
    .header-meteo-label {
        display: none;
    }
    .header-icon-btn,
    .account-avatar-trigger {
        width: 38px;
        height: 38px;
    }
    .header-icon-btn {
        font-size: 20px;
    }
    .account-avatar {
        width: 32px;
        height: 32px;
    }
    .account-avatar-badge {
        top: -4px;
        right: -4px;
    }
    header#header .community-live-wrap {
        padding: 0;
        margin: 0;
    }
    .community-live-pill {
        padding: 6px 8px;
        font-size: 12px;
        gap: 6px;
        min-height: 38px;
    }
    .community-live-pill .live-label {
        display: none;
    }
    .apps-dropdown,
    .account-panel {
        width: min(344px, calc(100vw - 16px));
        right: 0;
        top: calc(100% + 6px);
        max-height: min(85vh, 560px);
    }
    .account-panel {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    .account-panel-logout {
        position: sticky;
        bottom: 0;
        z-index: 1;
        margin-bottom: 0;
        padding-bottom: 4px;
        background: var(--header-panel-bg);
        box-shadow: 0 -8px 12px rgba(27, 34, 62, 0.22);
    }
    .account-panel-premium .account-panel-logout {
        background:
            linear-gradient(180deg, rgba(27, 34, 62, 0) 0, var(--header-panel-bg) 12px),
            var(--header-panel-bg);
    }
}

/* Annulla reset form globali (site.css) sui controlli dell'header */
header#header .header-actions button.header-icon-btn,
header#header .header-actions button.theme-toggle,
header#header .header-actions button.apps-trigger,
header#header .header-actions button.account-avatar-trigger,
header#header .header-actions button.account-panel-close,
header#header .header-actions button.guest-trigger {
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    line-height: 1;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow-color);
}
header#header .account-panel-logout button {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    line-height: 1.2;
    background: transparent !important;
    color: #fff;
    display: block;
}
header#header .header-actions button.header-icon-btn:hover,
header#header .header-actions button.theme-toggle:hover,
header#header .header-actions button.apps-trigger:hover,
header#header .header-actions button.account-avatar-trigger:hover,
header#header .apps-menu-container.active .apps-trigger {
    background: rgba(235, 205, 70, 0.18);
    color: var(--yellow-color);
}
/* --- footer nw --- */
/* Footer — blu come community */
body.news-body .nw-footer > .nw-wrap,
body.news-body .nw-footer > .nw-wrap a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}
.nw-footer {
    margin-top: 0;
    background: var(--blue-color);
    padding: 48px 0 0;
    border-top: 0;
}
.nw-footer > .nw-wrap {
    padding-bottom: 32px;
}
.nw-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nw-footer-brand {
    flex: 0 0 360px;
    width: 360px;
}
.nw-footer-brand + .nw-footer-col {
    margin-left: auto;
}
.nw-footer-col {
    flex: 0 0 160px;
    width: 160px;
}
.nw-footer-kicker {
    display: block;
    font-family: var(--body-fonts);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.nw-footer-brand strong {
    display: block;
    font-family: var(--body-fonts-2);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.nw-footer-brand p {
    font-family: var(--body-fonts);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: none;
}
.nw-footer-social {
    margin-top: 18px;
}
.nw-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nw-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nw-footer-social a:hover {
    color: var(--yellow-color);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.nw-footer-social i {
    font-size: 18px;
    line-height: 1;
}
.nw-footer-col h3 {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
}
.nw-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nw-footer-col li + li {
    margin-top: 8px;
}
.nw-footer-col a {
    font-family: var(--body-fonts);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.nw-footer-col a:hover {
    color: var(--yellow-color);
    text-decoration: none;
}
.nw-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
    margin-top: 0;
    border-top: 0;
}
.nw-footer-bottom p {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}
.nw-footer-bottom a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.nw-footer-bottom a:hover {
    color: var(--yellow-color);
    text-decoration: none;
}
@media (max-width: 900px) {
    .nw-footer > .nw-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .nw-footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    .nw-footer-brand {
        grid-column: 1 / -1;
        flex: none;
        width: auto;
    }
    .nw-footer-brand + .nw-footer-col {
        margin-left: 0;
    }
    .nw-footer-col {
        flex: none;
        width: auto;
    }
    .nw-footer-bottom {
        flex-direction: column;
    }
}
@media (max-width: 560px) {
    .nw-footer-grid { grid-template-columns: 1fr; }
}

/* Testo legale — sfondo blu scuro */
body.news-body .nw-footer .nw-footer-legal,
body.news-body .nw-footer .nw-footer-legal p,
body.news-body .nw-footer .nw-footer-legal a {
    color: var(--blue-color-4);
    font-size: 13px;
}
.nw-footer-legal {
    background: var(--blue-color-3);
    padding: 18px 0 22px;
    text-align: center;
    color: var(--blue-color-4);
}
.nw-footer-legal .nw-wrap {
    max-width: 1400px;
}
.nw-footer-legal p {
    margin: 0 0 3px;
    font-family: var(--body-fonts);
    font-size: 13px;
    line-height: 1.35;
    color: var(--blue-color-4);
}
.nw-footer-legal p:last-of-type {
    margin-bottom: 8px;
}
.nw-footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nw-footer-legal-links li {
    display: inline-block;
    margin: 0 5px;
}
.nw-footer-legal-links a {
    color: var(--blue-color-4);
    text-decoration: none;
}
.nw-footer-legal-links a:hover {
    color: var(--blue-color-4);
    text-decoration: underline;
    opacity: 0.85;
}
/* --- footer cm --- */
:root {
    --cm-display: 'Playfair Display', Georgia, serif;
}
footer#footer.cm-footer,
footer#footer.cm-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}
.cm-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: var(--blue-color);
    padding: 48px 0 28px;
}
/* Stessa larghezza di Notizie (.nw-wrap) su tutte le pagine */
.cm-footer > .cm-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.cm-footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 32px 28px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cm-footer-brand {
    flex: 0 0 360px;
    width: 360px;
}
.cm-footer-brand + .cm-footer-col {
    margin-left: auto;
}
.cm-footer-col {
    flex: 0 0 160px;
    width: 160px;
}
.cm-footer-kicker {
    display: block;
    font-family: var(--body-fonts);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.cm-footer-brand strong {
    display: block;
    font-family: var(--cm-display);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.cm-footer-brand p {
    font-family: var(--body-fonts);
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: none;
}
.cm-footer-social {
    margin-top: 18px;
}
.cm-footer-social ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.cm-footer-social a:hover {
    color: var(--yellow-color);
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.cm-footer-social i {
    font-size: 18px;
    line-height: 1;
}
.cm-footer-col h3 {
    font-family: var(--body-fonts);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
}
.cm-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cm-footer-col li + li {
    margin-top: 8px;
}
.cm-footer-col a {
    font-family: var(--body-fonts);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.cm-footer-col a:hover {
    color: var(--yellow-color);
    text-decoration: none;
}
.cm-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
}
.cm-footer-bottom p {
    font-family: var(--body-fonts);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}
@media (max-width: 900px) {
    .cm-footer > .cm-wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .cm-footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }
    .cm-footer-brand {
        grid-column: 1 / -1;
        flex: none;
        width: auto;
    }
    .cm-footer-brand + .cm-footer-col {
        margin-left: 0;
    }
    .cm-footer-col {
        flex: none;
        width: auto;
    }
    .cm-footer-bottom {
        flex-direction: column;
    }
}
@media (max-width: 560px) {
    .cm-footer-grid {
        grid-template-columns: 1fr;
    }
}

body.community-body .cm-footer,
body.community-body .cm-footer a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}
body.community-body .cm-footer {
    margin-top: 48px;
}
