* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Ticker ANSA (in alto) - Background verde */
.ansa-ticker-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #00a859;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 45px;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.ansa-ticker-label {
    background: rgba(0, 0, 0, 0.25);
    padding: 0 18px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ansa-ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

#ansaTickerContent {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: ansa-scroll 120s linear infinite;
    padding-left: 100%;
}

.ansa-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 45px;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 15px;
}

.ansa-ticker-separator {
    color: rgba(255, 255, 255, 0.5);
    padding: 0 8px;
    font-size: 12px;
}

#ansaTickerContent:hover {
    animation-play-state: paused;
}

.ansa-ticker-item .news-title {
    font-weight: 600;
    color: #ffffff;
}

.ansa-ticker-item .news-description {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.ansa-ticker-item .news-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 400;
    margin-left: auto;
    padding-left: 8px;
}

.ansa-ticker-item .news-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.ansa-ticker-item .news-link:hover {
    transform: translateX(3px);
}

/* Ticker Infrastrutture Tech (in basso) */
.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #d32f2f;
    color: #ffffff;
    display: flex;
    align-items: center;
    height: 40px;
    z-index: 10000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.ticker-label {
    background: rgba(0, 0, 0, 0.2);
    padding: 0 16px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: scroll 180s linear infinite;
    padding-left: 100%;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 40px;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.ticker-item:hover {
    opacity: 0.8;
}

.ticker-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.ticker-service {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.ticker-title {
    font-weight: 600;
    color: #ffffff;
}

.ticker-description {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 13px;
}

.ticker-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    flex-shrink: 0;
}

.ticker-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 400;
    flex-shrink: 0;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes ansa-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ansa-ticker-container {
        height: 40px;
    }
    
    .ansa-ticker-label {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .ansa-ticker-item {
        font-size: 12px;
        gap: 8px;
    }
    
    .ansa-ticker-item .news-description {
        display: none; /* Nascondi descrizione su mobile */
    }
    
    .ansa-ticker-item .news-time {
        font-size: 11px;
        padding-left: 8px;
    }
    
    .ticker-label {
        padding: 0 12px;
        font-size: 12px;
    }
    
    .ticker-item {
        font-size: 12px;
        padding: 0 15px;
    }
    
    .ticker-content {
        animation-duration: 120s;
    }
}

