.news-ticker-container {
    background: #f8f9fa;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
    position: relative;
    height: 40px;
    z-index: 10;
}

.news-ticker {
    display: flex;
    flex-direction: column;
    animation: sidebar-ticker-scroll-up 48s steps(8) infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center; /* CENTRA orizzontalmente */
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.news-category {
    padding: 2px 6px;
    margin-right: 10px;
    color: white;
    border-radius: 3px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: bold;
    flex-shrink: 0;
}

.news-text-wrapper {
    overflow: hidden;
    white-space: nowrap;
    flex: 0 1 auto; /* NON scrolla */
    position: relative;
}

.news-text {
    display: inline-block;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    transform: none;
    animation: none;
	text-transform: uppercase;
}

/* Scroll verticale automatico */
@keyframes sidebar-ticker-scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-320px); } /* 8 notizie x 40px */
}

@media screen and (max-width: 768px) {
    .news-ticker-container {
        height: 32px;
    }

    .ticker-item {
        height: 32px;
        font-size: 13px;
    }

    .news-category {
        font-size: 11px;
        padding: 1px 5px;
        margin-right: 6px;
    }

    .news-text {
        font-size: 13px;
    }

    @keyframes sidebar-ticker-scroll-up {
        0%   { transform: translateY(0); }
        100% { transform: translateY(-256px); } /* 8 x 32px */
    }
}
