.anl-notiziario-live {
    --anl-primary: #8a1f1f;
    --anl-secondary: #111111;
    --anl-blue: #003c7a;
    --anl-bg: #ffffff;
    --anl-soft: #f7f4f2;
    --anl-border: #e7ded9;
    --anl-muted: #757575;
    --anl-radius: 18px;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf8 100%);
    border: 1px solid var(--anl-border);
    border-radius: var(--anl-radius);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .06);
    padding: 24px;
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.anl-notiziario-live:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--anl-primary), var(--anl-secondary));
}

.anl-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--anl-border);
    padding-bottom: 18px;
    margin-bottom: 6px;
}

.anl-header h2 {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--anl-secondary);
}

.anl-subtitle,
.anl-last-update {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: var(--anl-muted);
    margin-top: 6px;
}

.anl-last-update {
    background: var(--anl-soft);
    border: 1px solid var(--anl-border);
    border-radius: 999px;
    padding: 7px 12px;
    white-space: nowrap;
}


.anl-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 0 4px;
    margin-bottom: 4px;
}

.anl-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--anl-border);
    background: rgba(255,255,255,.72);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    color: var(--anl-secondary);
}

.anl-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--anl-blue);
    display: inline-block;
}

.anl-legend-rss .anl-legend-dot {
    background: var(--anl-primary);
}

.anl-list-wrap {
    min-height: 120px;
}

.anl-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.anl-news-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--anl-border);
    transition: background-color .18s ease, transform .18s ease;
}

.anl-news-item:hover {
    background: rgba(138, 31, 31, .035);
    transform: translateX(2px);
}

.anl-news-item:last-child {
    border-bottom: none;
}

.anl-datebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border-radius: 14px;
    background: var(--anl-soft);
    border: 1px solid var(--anl-border);
}

.anl-time {
    font-size: 18px;
    font-weight: 800;
    color: var(--anl-secondary);
    line-height: 1;
    white-space: nowrap;
}

.anl-date {
    font-size: 11px;
    color: var(--anl-muted);
    margin-top: 5px;
    white-space: nowrap;
}

.anl-content {
    min-width: 0;
}

.anl-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.anl-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--anl-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 6px 8px;
}

.anl-internal-item .anl-badge {
    background: var(--anl-blue);
}

.anl-source {
    font-size: 12px;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: .01em;
    color: var(--anl-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.anl-title {
    color: var(--anl-secondary);
    text-decoration: none;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.28;
    font-weight: 750;
    display: inline;
}

.anl-title:hover {
    color: var(--anl-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.anl-title-static,
.anl-title-static:hover {
    color: var(--anl-secondary);
    text-decoration: none;
    cursor: default;
}

.anl-rss-item:hover .anl-title-static {
    color: var(--anl-secondary);
}

.anl-loading,
.anl-empty,
.anl-error {
    padding: 22px 0 8px;
    color: var(--anl-muted);
    font-size: 15px;
}

.anl-error {
    color: var(--anl-primary);
}

.anl-notiziario-live.is-loading .anl-list-wrap {
    opacity: .65;
}

.anl-pagination {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--anl-border);
}

.anl-pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.anl-page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.anl-page-btn {
    appearance: none;
    border: 1px solid var(--anl-border);
    background: #ffffff;
    color: var(--anl-secondary);
    border-radius: 999px;
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}

.anl-page-btn:hover:not(:disabled),
.anl-page-btn.is-active {
    border-color: var(--anl-primary);
    background: var(--anl-primary);
    color: #ffffff;
}

.anl-page-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.anl-page-dots {
    color: var(--anl-muted);
    padding: 0 2px;
}

@media (max-width: 768px) {
    .anl-notiziario-live {
        padding: 18px;
        border-radius: 14px;
    }

    .anl-header {
        display: block;
    }

    .anl-last-update {
        display: inline-block;
        margin-top: 10px;
        white-space: normal;
    }

    .anl-news-item {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 12px;
        padding: 15px 0;
    }

    .anl-datebox {
        min-height: 54px;
    }

    .anl-time {
        font-size: 16px;
    }

    .anl-title {
        font-size: 16px;
    }

    .anl-pagination-inner {
        justify-content: stretch;
    }

    .anl-page-prev,
    .anl-page-next {
        flex: 1 1 auto;
    }
}

.anl-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 0 8px;
}

.anl-filter-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--anl-secondary);
}

.anl-category-filter,
.anl-category-password {
    min-height: 40px;
    border: 1px solid var(--anl-border);
    background: #ffffff;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--anl-secondary);
    outline: none;
}

.anl-category-filter {
    min-width: 240px;
}

.anl-category-password {
    min-width: 190px;
}

.anl-password-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.anl-password-submit {
    min-height: 40px;
    border: 1px solid var(--anl-primary);
    background: var(--anl-primary);
    color: #ffffff;
    border-radius: 999px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.anl-password-submit:hover {
    filter: brightness(.95);
}

.anl-legend-lock {
    font-size: 13px;
    line-height: 1;
}

.anl-locked-message {
    margin-top: 12px;
    padding: 16px 18px;
    border: 1px solid var(--anl-border);
    border-radius: 14px;
    background: var(--anl-soft);
    color: var(--anl-secondary);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .anl-filter-bar {
        align-items: stretch;
    }

    .anl-filter-label,
    .anl-category-filter,
    .anl-password-box,
    .anl-category-password,
    .anl-password-submit {
        width: 100%;
    }
}

/* v1.0.6 - articoli protetti visibili ma non cliccabili nel filtro "Tutte le categorie" */
.anl-news-item.anl-locked-item {
    position: relative;
    cursor: not-allowed;
}

.anl-news-item.anl-locked-item:hover {
    transform: none;
    background: rgba(17, 17, 17, .025);
}

.anl-news-item.anl-locked-item .anl-badge {
    background: #4d4d4d;
}

.anl-news-item.anl-locked-item .anl-title-locked {
    display: inline-block;
    filter: blur(3px);
    opacity: .72;
    user-select: none;
    pointer-events: none;
}

.anl-news-item.anl-locked-item .anl-title-locked:hover {
    color: var(--anl-secondary);
    text-decoration: none;
}

.anl-lock-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--anl-muted);
}
