/* --- INIZIO CSS hublist_pages (Ottimizzato e Completo) --- */

/*
 * =========================================================
 * 1. FIX CRITICO PER LO SPEED INDEX & RESET BASE
 * =========================================================
 */
body {
    margin: 0;
    min-width: 150px;
    
    /* MODIFICA PER IL TEST: FORZA LO STILE CON !important */
    /* Manteniamo il percorso assoluto che hai confermato funzionare direttamente */
    background: #ffffff url('/images/back.png') repeat left top !important; 
    background-attachment: fixed !important; 
}

/* * =========================================================
 * 2. LAYOUT GLOBALE (Centraggio e Massima Larghezza a 1100px) 
 * Questo garantisce che gli elementi principali siano centrati e non superino 1100px.
 * =========================================================
 */
.navbar, 
.navbar-inner,
.navbar-inverse,
#page, 
.breadcrumb, 
footer,
.container-fluid > * { 
    box-sizing: border-box !important;
    max-width: 1150px !important; 
    width: 100%; 
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0; 
    padding-right: 0;
}


/* * =========================================================
 * 3. UTILITY: TRONCAMENTO TESTO (Da completare)
 * Questa sezione è pronta per le tue classi di utility, ad esempio, 
 * per troncare il testo lungo in una riga con ellissi.
 * =========================================================
 */
.text-truncate-single-line {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%; /* Assicura che l'elemento rispetti un limite di larghezza */
    display: block;  /* Necessario per far funzionare overflow e text-overflow */
}

/* Aggiungi altri stili completi qui sotto se necessario... */
/* ========================================================== */
/* INIZIO CSS hublist_pages (COMPLETO E CORRETTO) */
/* ========================================================== */

/* Colore Blu Elettrico per tutti i link all'interno del contenuto principale */
.hublist-main-table a,
.hublist-recommended-clients a,
.hublist-totals-data a,
.hublist-top-row a,
a.hub-name-link {
  color: #0077ff !important; /* Blu Elettrico */
  text-decoration: none;
  font-weight: bold;
}

/* Stili per il zebrato (Alternating Row Backgrounds) */
.hublist-main-table tr.hub-row-default,
.hublist-recommended-clients tr.hub-row-default,
.hublist-totals-data tr.hub-row-default {
  background-color: #f6f6f6 !important;
}

.hublist-main-table tr.hub-row-alt,
.hublist-recommended-clients tr.hub-row-alt,
.hublist-totals-data tr.hub-row-alt {
  background-color: #ffffff !important;
}

/* Stili Generali per le Tabelle: RIMOZIONE DI TUTTI I BORDI */
.hublist-main-table,
.hublist-recommended-clients,
.hublist-totals-data {
  width: 100%;
  margin-top: 15px;
  border-collapse: collapse;
}

.hublist-main-table th,
.hublist-main-table td,
.hublist-recommended-clients th,
.hublist-recommended-clients td,
.hublist-totals-data th,
.hublist-totals-data td {
  /* Rimuovi tutti i bordi delle celle */
  border: none !important;
  /* CORREZIONE RICHIESTA: Forzatura padding a 12px su tutti i lati */
  padding: 12px !important;
  vertical-align: top;
}

.hublist-main-table thead th,
.hublist-recommended-clients thead th {
  /* Mantieni una linea sotto l'intestazione */
  border-bottom: 2px solid #555 !important;
  background-color: #eee;
  font-weight: bold;
  text-align: left;
}

/* Allineamento: Numero Sequenziale + Stato */
.hub-col-number {
  width: 1%;
  white-space: nowrap;
}

.hub-sequential-number {
  font-weight: bold;
}

.hub-status-label {
  /* Rende il badge di stato leggermente più vicino al numero */
  display: inline-block;
  margin-left: 5px; /* Spazio ridotto tra numero e stato */
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  font-weight: normal;
}

/* Sfondo nero, testo bianco per Online */
.hub-online {
  background-color: #000000 !important;
  color: white !important;
}

/* Il resto rimane invariato */
.hub-offline { background-color: #f0ad4e; color: white; }
.hub-banned { background-color: #d9534f; color: white; }

/* Stile per Address e centratura delle colonne dati */
.hub-col-address {
  font-size: 13px;
  word-break: break-all;
}

/* Allinea al centro i link/indirizzi e le colonne dati */
.hub-col-address,
.hub-col-users,
.hub-col-share,
.hub-col-language {
  text-align: center;
}


.hub-icon-secure-address,
.hub-icon-unsecure-address {
  font-size: 14px;
  display: inline-block;
}

/* ========================================================== */
/* CORREZIONE FONT CLONES/SHARE (Tabella Principale - Zebrato) */
/* ========================================================== */

/* Numeri principali (Users/Share) a 14px */
.hublist-main-table .hub-col-users strong:first-child,
.hublist-main-table .hub-col-share strong:first-child {
  display: block;
  font-size: 14px !important; /* Forza il 14px per il valore principale */
  line-height: 1.0;
}

/* Contenitori Clones/Clone Share: 11px, attaccati al valore principale */
.hublist-main-table .hub-stat-clones,
.hublist-main-table .hub-stat-cloneshare {
  display: block;
  font-size: 11px !important; /* Forza la dimensione del font sul contenitore */
  font-weight: normal;
  line-height: 1.0;
  margin-top: 0px;
}

/* Valori Clones/Clone Share interni: 11px */
.hublist-main-table .hub-stat-clones strong,
.hublist-main-table .hub-stat-cloneshare strong {
  font-weight: bold;
  font-size: 11px !important; /* Forza la dimensione del font sul valore interno */
}

/* ========================================================== */
/* CORREZIONE FONT CLONES/SHARE (Tabella Totali) */
/* ========================================================== */

/* Assicura che i tag <small> nei totali siano anch'essi 11px */
.hublist-totals-data td small {
  font-size: 11px !important;
  font-weight: bold;
  color: #555;
  display: block;
}

/* ========================================================== */
/* CORREZIONE PER FlylinkDC++ IN GRASSETTO */
/* ========================================================== */

.hublist-recommended-clients .hub-name-text {
  font-weight: bold !important;
}

/* ========================================================== */
/* CORREZIONE PAGINAZIONE: QUADRATINI SEPARATI (B/N/Bordo Nero) */
/* ========================================================== */

.hublist-pagination-container {
  text-align: center;
  padding: 20px 0;
}

.hublist-pager {
  display: inline-block;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hublist-pager li {
  display: inline-block;
  /* Aggiunge un piccolo margine tra i numeri per separarli */
  margin: 0 2px;
}

.hublist-pager li a,
.hublist-pager li span {
  display: block;
  padding: 8px 12px;
  /* Stili Richiesti */
  background-color: #ffffff; /* Sfondo Bianco */
  border: 1px solid #000000; /* Bordino Nero su tutti i lati */
  color: #000000; /* Numeri Neri */
  
  border-radius: 4px; /* Arrotondamento per ogni casella separata */
  text-decoration: none;
  font-weight: bold; /* In grassetto */
}

/* Ho rimosso le logiche "border-right-width: 0" e "last-child" perché ora ogni elemento è un blocco separato con tutti i bordi. */

/* Gestione dell'elemento attivo: Sfondo Nero, Testo Bianco, Bordo Nero */
.hublist-pager li.active span {
  background-color: #000000; /* Sfondo Nero */
  color: white; /* Testo Bianco */
  border-color: #000000; /* Bordo Nero */
}

/* Hover: leggero grigio per indicare la selezione, mantenendo il testo nero e il bordo nero */
.hublist-pager li a:hover {
  background-color: #f0f0f0;
}

/* Altri aggiustamenti */
.pull-right {
  float: right;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* ========================================================== */
/* FINE CSS hublist_pages */
/* ========================================================== */
/* ========================================================================= */
/* INIZIO CSS HUB_INFO (Stile Zebrato e Lineare) */
/* ========================================================================= */

.hub-header-title {
 font-size: 24px;
 margin-bottom: 20px;
 padding-bottom: 5px;
 border-bottom: 2px solid #ccc;
 display: flex;
 align-items: center;
}

.hub-logo-container {
 text-align: center;
 margin-bottom: 20px;
}

/* Rimosse le dimensioni fisse per evitare la deformazione del logo */
.hub-logo-image {
 max-width: 100%;
 max-height: 300px; /* Limita l'altezza massima (se necessario) */
 width: auto; /* Permette alla larghezza di essere proporzionale */
 height: auto; /* Permette all'altezza di essere proporzionale */
}

/* --- AGGIUNTA RICHIESTA: Stili per le icone piccole (32x32px) --- */
.hub-icon-small-left,
.hub-icon-small-right {
    width: 24px;
    height: 24px;
    vertical-align: middle; /* Allinea verticalmente con il testo del titolo */
}

/* Aggiunge spazio a destra per l'icona a sinistra */
.hub-icon-small-left {
    margin-right: 10px; 
}

/* Aggiunge spazio a sinistra per l'icona a destra */
.hub-icon-small-right {
    margin-left: 10px;
}
/* ------------------------------------------------------------------- */


/* --- Tabella Principale Zebrata --- */
.hub-info-table-striped {
 width: 100%;
 border-collapse: collapse;
 margin-bottom: 30px;
 font-size: 14px;
 border: 1px solid #ddd;
}

.hub-info-table-striped th,
.hub-info-table-striped td {
 padding: 10px;
 border: none;
 /* Allinea in alto per un incolonnamento verticale pulito */
 vertical-align: top;
}

/* Righe Alternate */
.hub-info-table-striped tbody .hub-info-row-default {
 background-color: #ffffff;
}

.hub-info-table-striped tbody .hub-info-row-alt {
 background-color: #f6f6f6;
}

/* Header di Gruppo */
.hub-info-table-striped .hub-group-header {
 background-color: #34495e;
 color: #fff;
 font-size: 16px;
}

.hub-info-table-striped .hub-group-header th {
 text-align: left;
 padding: 10px;
 border-bottom: 2px solid #2c3e50;
}

/* Colonna Etichette (TH) */
.hub-info-table-striped th {
 text-align: left;
 width: 25%;
 font-weight: bold;
 border-right: 1px solid #ddd;
}

/* Colonna Valori (TD) - RISULTATI IN GRASSETTO */
.hub-info-table-striped td {
 text-align: left;
 width: 75%;
 word-break: break-word;
 /* Forza il grassetto per tutti i risultati/valori */
 font-weight: bold !important;
}

/* Link - LINK IN BLU */
.hub-info-table-striped a,
.hub-link-address,
.hub-vote-link {
 /* Forza il colore blu per tutti i link */
 color: #007bff !important;
 text-decoration: none;
}

.hub-info-table-striped a:hover,
.hub-link-address:hover,
.hub-vote-link:hover {
 text-decoration: underline;
}

/* --- Stili per i Badge di Stato --- */
.hub-status-badge {
 padding: 3px 6px;
 border-radius: 3px;
 font-size: 12px;
 font-weight: bold;
 display: inline-block;
}

/* Online Badge (Sfondo Nero, Scritta Bianca) */
.hub-status-badge.hub-status-online {
 background-color: #000000;
 color: #ffffff;
}
/* Stili per altri badge per coerenza */
.hub-status-badge.hub-status-offline {
 background-color: #c0392b; /* Rosso per Offline */
 color: #fff;
}
.hub-status-badge.hub-status-banned {
 background-color: #95a5a6; /* Grigio per Banned */
 color: #fff;
}
.hub-status-badge.hub-status-new {
 background-color: #27ae60; /* Verde per New */
 color: #fff;
}


/* Blocchi Indirizzo (Multi-Address) */
.hub-info-table-striped .hub-multi-address {
 padding: 5px 0 5px 10px;
}

/* Rende gli indirizzi inline (stessa riga) */
.hub-info-table-striped .hub-address-line {
 display: inline-block !important; /* Forza l'allineamento orizzontale */
 margin: 0 15px 0 0 !important; /* Spazio a destra per separare gli indirizzi */
}

.hub-info-table-striped .hub-address-line .hub-badge {
 margin-right: 5px;
}

/* Testo Censurato/Shaded (Eccezioni per il grassetto) */
.hub-censor-text {
 font-weight: bold;
 color: #e74c3c;
}
.hub-value-shaded {
 color: #95a5a6;
 font-style: italic;
 font-weight: normal !important; /* Rimuove il grassetto dai valori non disponibili/ombreggiati */
}


/* --- Grafico Statistiche --- */
.hub-stats-graph-container {
 margin-top: 20px;
 padding: 15px;
 border: 1px solid #ddd;
 background-color: #fff;
 margin-bottom: 30px;
 text-align: center;
}

.hub-graph-title {
 font-size: 18px;
 margin-top: 0;
 margin-bottom: 10px;
 color: #333;
 border-bottom: 1px dashed #ccc;
 padding-bottom: 5px;
}

.hub-graph-info-text {
 font-size: 13px;
 color: #7f8c8d;
 margin-bottom: 15px;
 font-weight: normal !important; /* Eccezione per il testo informativo */
}

.hub-stats-graph-image {
 max-width: 100%;
 height: auto;
 border: 1px solid #ccc;
}

/* --- Lista Utenti Online --- */
.hub-userlist-main-container {
 margin-bottom: 30px;
 padding: 15px;
 border: 1px solid #ddd;
 background-color: #fff;
}

.hub-userlist-title {
 font-size: 18px;
 margin-top: 0;
 border-bottom: 1px dashed #ccc;
 padding-bottom: 5px;
 margin-bottom: 15px;
}

/* MODIFICA PER CORREGGERE LO SCROLL */
.hub-userlist-scroll-wrapper {
 max-height: 400px; /* Limite per lo scroll */
 overflow-y: auto;
 border: 1px solid #eee;
 margin-bottom: 10px;

 /* AGGIUNTO: Forza la visualizzazione del contesto di scorrimento */
 display: block;
}

.hub-userlist-table {
 width: 100%;
 border-collapse: collapse;
 /* AGGIUNTO: Assicura che la tabella non sia un elemento che limita lo scroll */
 min-height: 1px;
}

.hub-userlist-table th, .hub-userlist-table td {
 padding: 8px 10px;
 text-align: left;
 border-bottom: 1px solid #eee;
}

.hub-userlist-table thead th {
 background-color: #f0f0f0;
 font-weight: bold; /* Header Nick e Share in grassetto */
 position: sticky;
 top: 0;
 z-index: 10;
}

/* Allinea a destra l'header della colonna Share */
.hub-userlist-table .userlist-th-share-right-align {
 text-align: right;
}

.hub-userlist-table tbody td {
 font-weight: bold; /* Nick e Share in grassetto */
}

.userlist-row-alt { background-color: #f9f9f9; }
.userlist-row-default { background-color: #fff; }

.userlist-th-nick { width: 70%; }
.userlist-th-share { width: 30%; }
/* Allinea a destra il contenuto della colonna Share (per incolonnare i risultati) */
.userlist-share-cell {
 text-align: right !important;
}

/* Status Utente */
.userlist-nick-op { color: #e74c3c; font-weight: bold; }
.userlist-nick-bot { color: #f39c12; font-style: italic; font-weight: bold; }
.userlist-nick-verified { color: #2ecc71; font-weight: bold; }

.userlist-info {
 font-weight: normal !important; /* Rimuove grassetto dal testo informativo */
}


/* --- Commenti --- */
.hub-comments-container {
 margin-bottom: 30px;
 padding: 15px;
 border: 1px solid #ddd;
 background-color: #fff;
}

.hub-comments-title {
 font-size: 18px;
 margin-top: 0;
 border-bottom: 1px dashed #ccc;
 padding-bottom: 5px;
 margin-bottom: 15px;
}

.hub-comment-container {
 padding: 10px;
 margin-bottom: 10px;
 border-radius: 4px;
}

.comment-row-alt { background-color: #f9f9f9; border: 1px solid #eee; }
.comment-row-default { background-color: #ffffff; border: 1px solid #ddd; }

.comment-text {
 margin-bottom: 5px;
 font-weight: bold; /* Testo del commento in grassetto */
}

.comment-metadata {
 font-size: 12px;
 color: #7f8c8d;
 border-top: 1px dotted #ccc;
 padding-top: 5px;
 margin-top: 5px;
 font-weight: normal !important; /* Rimuove il grassetto dai metadati */
}

.comment-bold-text {
 font-weight: bold; /* Rende solo autore e data in grassetto nei metadati */
 color: #333;
}

.comment-author-guest { font-style: italic; }
.comment-delete-link { color: #e74c3c !important; }


/* --- Pannello Admin --- */
.hub-admin-main-container {
 margin-bottom: 30px;
 padding: 15px;
 border: 1px solid #e74c3c;
 background-color: #fef8f8;
}

.hub-admin-title {
 font-size: 18px;
 margin-top: 0;
 border-bottom: 2px solid #e74c3c;
 padding-bottom: 5px;
 margin-bottom: 15px;
 color: #e74c3c;
}

.hub-admin-table {
 width: 100%;
 border-collapse: collapse;
}

/* Imposta padding 10px e gestisce il bordo */
.hub-admin-table th,
.hub-admin-table td {
 padding: 10px !important; /* Aggiunto !important per forzare il padding */
 text-align: left;
 font-size: 13px;
 border: none;
 border-bottom: 1px dotted #e74c3c;
}

/* CORREZIONE CRITICA: Zebratura per Admin Panel (Massima specificità per superare i conflitti) */
.hub-admin-main-container .hub-admin-table tbody tr:nth-child(odd) {
 background-color: #ffffff !important; /* Riga dispari: Bianco (Forzato) */
}
.hub-admin-main-container .hub-admin-table tbody tr:nth-child(even) {
 background-color: #f6f6f6 !important; /* Riga pari: Grigio chiaro (Forzato) */
}

.hub-admin-table th {
 font-weight: bold;
 width: 15%;
}

.hub-admin-table td {
 font-weight: bold;
}

.hub-admin-table .hub-value-shaded {
 font-weight: normal !important;
}

/* Forza i link dell'Admin Panel in blu (tranne Delete e Ban) */
.hub-admin-table a.hub-action-link:not(.hub-ban-link-danger):not(.hub-ban-link-success):not(.hub-delete-link),
.hub-admin-table a.hub-link-address {
 color: #007bff !important;
}

.hub-admin-table .hub-ban-link-danger { color: #c0392b !important; font-weight: bold; }
.hub-admin-table .hub-ban-link-success { color: #27ae60 !important; font-weight: bold; }
.hub-admin-table .hub-delete-link { color: #e74c3c !important; }


/* ========================================================================= */
/* FINE CSS HUB_INFO */
/* ========================================================================= */
/* INIZIO CSS page_forum */

/* ----------------------------------------------------
   STILE GENERALE E TIPOGRAFIA
   ---------------------------------------------------- */
body {
    /* Rende tutto in grassetto come richiesto */
    font-weight: bold;
}

/* Rende i link blu (sovrascrive il tema esistente) */
.link-primary,
.link-primary:hover,
a.link-primary,
a.link-primary:hover,
.post-block-link,
.post-block-link:hover,
.card-title-link,
.card-title-link:hover,
.link-acp-modify,
.link-acp-delete {
    color: #0073AA; /* Blu WordPress */
    text-decoration: none;
    font-weight: bold; 
}

/* Forza la tipografia in grassetto ovunque, come richiesto */
* {
    font-weight: bold !important;
}


/* ----------------------------------------------------
   STILE DELLE CARD (CATEGORIA e POST)
   ---------------------------------------------------- */
.forum-block-card-wrapper, 
.post-block-item {
    /* FIX CRUCIALE PER L'OVERFLOW DELLA GRIGLIA 3X */
    box-sizing: border-box; 
}

/* ICONE 16x16px NELLA PAGINA PRINCIPALE */
.forum-icon-small {
    width: 16px; /* AGGIORNATO */
    height: 16px; /* AGGIORNATO */
    margin-right: 10px;
    flex-shrink: 0;
}

/* Colori zebrati per la lista dei Blocchi/Categorie (Pagina Principale) */
.block-odd {
    background-color: #f6f6f6; /* AGGIORNATO a f6f6f6 */
}
.block-even {
    background-color: #ffffff;
}

/* ----------------------------------------------------
   STRUTTURA A GRIGLIA (PAGE PRINCIPALE) - 3 Colonne
   ---------------------------------------------------- */
.forum-blocks-container {
    display: grid;
    /* 3 COLONNE ESPLICITE */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-top: 20px;
}

/* Media query per la responsività */
@media (max-width: 1100px) {
    .forum-blocks-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.forum-block-column {
    display: flex;
    flex-direction: column;
}

.block-group-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 3px solid #0073AA; 
    font-weight: bold;
}

.forum-category-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}

.forum-block-card-wrapper {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    /* La proprietà background-color è ora gestita dalle classi .block-odd/.block-even */
}

.forum-block-card-wrapper:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-color: #0073AA;
}

.forum-block-card {
    padding: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.card-description {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 10px;
    flex-grow: 1;
}

.card-stats {
    font-size: 0.85em;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* ----------------------------------------------------
   STILE A GRIGLIA (PAGE INTERNA - LISTA POST) - 3 COLONNE CONFERMATE
   ---------------------------------------------------- */
.posts-list-container {
    display: grid;
    /* 3 GRIGLIE PER RIGA CONFERMATE */
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px;
    margin-top: 20px;
}

.post-block-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Colori zebrati per la lista dei Post (Pagina ID) */
.post-odd {
    background-color: #f6f6f6; /* Riga 1 */
}
.post-even {
    background-color: #ffffff; /* Riga 2 */
}

/* ----------------------------------------------------
   STILE POST SINGOLO E RISPOSTE (ZEBRA + PADDING 12px)
   ---------------------------------------------------- */
.post-main-content {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #fcfcfc;
    line-height: 1.6;
}

.reply-block {
    border: 1px solid #eee;
    border-left: 5px solid #0073AA; 
    border-radius: 4px;
    /* PADDING 12px CONFERMATO */
    padding: 12px;
    margin-bottom: 10px;
}

/* Colori zebrati per le risposte richiesti: #f6f6f6 e #ffffff */
.reply-odd {
    background-color: #f6f6f6; /* Riga 1 */
}
.reply-even {
    background-color: #ffffff; /* Riga 2 */
}

.reply-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.reply-meta {
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* FINE CSS page_forum */
/* INIZIO CSS page_news */

/* ----------------------------------------------------
   STILE GENERALE E TIPOGRAFIA
   ---------------------------------------------------- */
body {
    /* Rende tutto in grassetto come richiesto precedentemente */
    font-weight: bold;
}

/* Rende i link blu (sovrascrive il tema esistente) */
.link-primary,
.link-primary:hover,
a.link-primary,
a.link-primary:hover,
.news-block-link,
.news-block-link:hover,
.category-link,
.category-link:hover {
    color: #0073AA; /* Blu WordPress */
    text-decoration: none;
    font-weight: bold; 
}

/* Forza la tipografia in grassetto ovunque */
* {
    font-weight: bold !important;
}

/* ----------------------------------------------------
   LISTA NEWS (GRIGLIA 3 COLONNE)
   ---------------------------------------------------- */
.page-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.news-blocks-container {
    display: grid;
    /* 3 COLONNE ESPLICITE */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin-bottom: 30px; /* Spazio prima della paginazione */
}

/* Media query per la responsività */
@media (max-width: 1100px) {
    .news-blocks-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.news-block-link {
    display: block; /* Rende il link un blocco che copre l'intera card */
    height: 100%;
}

.news-block-card {
    /* Bordo nero 1px (comune a tutte) */
    border: 1px solid #000000; 
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;

    /* Base: tutte bianche. Le regole :nth-child(odd) le sovrascriveranno */
    background-color: #ffffff; 
}

/* AGGIORNATO: Card Dispari (1°, 3°, 5°, ecc.) con Sfumatura Gialla PIÙ VISIBILE */
.news-blocks-container .news-block-link:nth-child(odd) .news-block-card {
    background-color: #f6f6f6; /* Fallback */
    /* Gradiente da f6f6f6 a un giallo visibile (#ffebc8) */
    background: linear-gradient(145deg, #f6f6f6 0%, #ffebc8 100%);
}

/* Card Pari (2°, 4°, 6°, ecc.) con Sfondo Bianco Piatto */
.news-blocks-container .news-block-link:nth-child(even) .news-block-card {
    background-color: #ffffff;
    /* Forza sfondo bianco piatto */
    background: #ffffff; 
}


.news-block-link:hover .news-block-card {
    /* Aumenta il box-shadow al passaggio del mouse per evidenziare */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
    border-color: #000000; 
}

.block-category {
    margin-bottom: 5px;
    min-height: 16px; 
}

.category-icon {
    width: 16px; 
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}

.block-title {
    font-size: 1.3em;
    color: #0073AA;
    margin-top: 5px;
    margin-bottom: 10px;
}

.block-description {
    font-size: 0.95em;
    color: #444;
    margin-bottom: 15px;
    flex-grow: 1; 
}

.block-summary {
    font-size: 0.85em;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: auto; 
}

.news-block-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* ----------------------------------------------------
   ARTICOLO SINGOLO (SINGLE VIEW)
   ---------------------------------------------------- */
.news-article-single {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px; 
    margin-bottom: 25px;
    background-color: #fcfcfc;
    position: relative;
}

.article-title {
    font-size: 1.8em;
    margin-top: 5px;
    margin-bottom: 10px;
}

.news-description {
    font-style: italic;
    color: #555;
    padding-left: 0; 
    margin-bottom: 15px;
}

.news-article-body {
    line-height: 1.6;
    margin-top: 15px;
}

.article-footer-info {
    font-size: 0.85em;
    color: #666;
    padding-top: 10px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

/* ----------------------------------------------------
   COMMENTI (SINGLE VIEW)
   ---------------------------------------------------- */
.comment-section-title {
    margin-top: 30px;
    margin-bottom: 15px;
}

.comment-box {
    border: 1px solid #eee;
    border-left: 5px solid #0073AA; 
    border-radius: 4px;
    padding: 12px;
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Zebratura per i commenti: Riga 1 f6f6f6, Riga 2 fffff */
.odd-comment {
    background-color: #f6f6f6;
}

.even-comment {
    background-color: #ffffff;
}

.comment-text {
    margin-bottom: 10px;
}

.comment-footer-info {
    font-size: 0.85em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.comment-link-box, .no-comments-message {
    margin-bottom: 20px;
}

/* FINE CSS page_news */