/* --- NEWS HERO --- */
.news-hero {
    text-align: center;
    padding: 120px 20px 60px;
    background: linear-gradient(180deg, #05000a 0%, #1a002e 100%);
    border-bottom: 1px solid #bc13fe;
}

.news-hero h1 { font-family: 'AquireBold', sans-serif; font-size: 3.5rem; margin-bottom: 10px; }
.news-hero p { font-family: 'AquireLight', sans-serif; color: #ccc; font-size: 1.2rem; }

/* --- CONTROLLI NEWS --- */
.news-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    /* FIX: Margine positivo per staccarlo dall'header/hero */
    margin: 40px auto; 
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Barra di Ricerca */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Larghezza fissa decente */
}

.search-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bc13fe;
    font-size: 1.1rem;
}

.search-container input {
    width: 100%;
    padding: 15px 20px 15px 50px; /* Più padding per comodità */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #bc13fe;
    border-radius: 50px; /* Arrotondato */
    color: white;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.search-container input:focus {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Gruppo Filtri */
.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.filter-btn {
    background: transparent;
    border: 1px solid #bc13fe;
    color: #fff;
    padding: 10px 25px; /* Bottoni più grandi */
    border-radius: 25px;
    cursor: pointer;
    font-family: 'AquireLight', sans-serif;
    transition: 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
    background: #bc13fe;
    box-shadow: 0 0 10px #bc13fe;
}

/* Messaggio Nessun Risultato */
.no-results-message {
    text-align: center;
    color: #ccc;
    padding: 40px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto 40px;
    border: 1px dashed #444;
}

.no-results-message i {
    font-size: 2rem;
    color: #bc13fe;
    margin-bottom: 10px;
    display: block;
}

/* --- GRIGLIA NEWS --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 0 20px;
}

/* Card Notizia */
.news-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: #bc13fe;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

.news-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

.news-category {
    color: #00ffff;
    font-weight: bold;
    text-transform: uppercase;
}

.news-card h3 {
    font-family: 'AquireBold', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-excerpt {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
    flex-grow: 1;
}

.read-btn {
    display: inline-block;
    color: #bc13fe;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    margin-top: auto;
}

.read-btn:hover { color: #fff; letter-spacing: 1px; }

/* Link Wrapper */
.news-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Stili Pagina Articolo */
.article-container { max-width: 800px; margin: 60px auto; padding: 0 20px; }
.article-header { text-align: center; margin-bottom: 40px; }
.article-meta { color: #888; margin-top: 10px; font-size: 0.9rem; }
.article-meta span { margin: 0 10px; }
.article-image-full { width: 100%; height: auto; border-radius: 10px; border: 1px solid #333; margin-bottom: 40px; }
.article-body { color: #ddd; line-height: 1.8; font-size: 1.1rem; }
.article-body h2 { color: #fff; margin-top: 40px; margin-bottom: 20px; font-family: 'AquireBold', sans-serif; }
.article-footer { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 30px; text-align: center; }
.back-btn { display: inline-block; padding: 10px 25px; border: 1px solid #bc13fe; color: #fff; text-decoration: none; border-radius: 25px; transition: 0.3s; }
.back-btn:hover { background: #bc13fe; box-shadow: 0 0 15px #bc13fe; }
.content-hidden { display: none; }

/* Responsive Desktop: Barra e Filtri in linea */
@media (min-width: 992px) {
    .news-controls {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .search-container {
        margin-right: 30px;
        flex: 1; /* Prende lo spazio disponibile */
        max-width: 400px;
    }
    
    .filter-group {
        flex: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .news-hero h1 { font-size: 2.5rem; }
    .news-grid { grid-template-columns: 1fr; }
}