:root {
 --primary: #3498db;
 --secondary: #2980b9;
}

legend {
    border-bottom: 4px solid --primary;
}

.forum_on {
   color: --primary;
}

.active-color {
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.postbit_user_btn a:link, .postbit_user_btn a:visited, .postbit_user_btn a:active {
   background: #1c1c1c;
    color: #fff;
}

.panel-primary>.panel-heading {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

blockquote {
    border-left: 5px solid var(--primary);
}

.thead {
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
	color: #fff;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	font-weight: bold;
}

.thead a:link, .thead a:visited {
	color:#fff;
}

.popup_menu .popup_item:hover {
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

a:link {
	color: var(--primary);
	text-decoration: none;
}

a:visited {
	color: var(--primary);
	text-decoration: none;
}

a:hover,
a:active {
	color: var(--primary);
	text-decoration: none;
}

#logo {
	background: var(--primary);
}

.forum_on {
color: var(--primary);
}

#portal #nav-portal a,
#forums #nav-forums a,
#searchh #nav-search a,
#member #nav-member a,
#calendar #nav-calendar a,
#help #nav-help a {
    background-color: var(--primary);
}

.pagination a:hover {
	background: var(--primary);
	border-color: var(--primary);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
     background-color: var(--primary);
	 color: #fff;
}

.pagination a:hover {
 background: var(--primary);
 color: #fff;
 border-color: var(--primary);
 text-decoration: none;
}

.popup_menu .popup_item:hover {
 background: var(--primary);
 color: #fff;
}

select {
    color: var(--primary);
}

.thead input.textbox,
.thead select {
 border: 1px solid var(--primary);
border-radius: 4px;
}

.modcp_nav_item:before {
	color: var(--primary);
}

 .postbit_buttons > a:link,
   .postbit_buttons > a:hover,
   .postbit_buttons > a:visited,
   .postbit_buttons > a:active {
    display: inline-block;
    padding: 2px 5px;
    margin: 2px;
    background: #1c1c1c;
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 4px;
}

.postbit_buttons > a:hover {
   border-color: var(--primary);
}

button,
   input.button {
    padding: 3px 8px;
    cursor: pointer;
    background: #1c1c1c;
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 4px;
    outline: 0;
}

button:hover,
   input.button:hover {
    border-color: var(--primary);
}

button,
   input.button {
    padding: 3px 8px;
    cursor: pointer;
    background: #1c1c1c;
    border: 1px solid var(--primary);
    color: #fff;
    border-radius: 4px;
    outline: 0;
}

button:hover,
   input.button:hover {
    border-color:  var(--secondary);
}

li.nav-forums:hover {
    background: var(--primary)!impotant;
}

/* --- MODIFICHE BANDE HEADER E FOOTER --- */

/* Rende azzurra la banda del logo/header */
header, #header, #logo {
    background: var(--primary) !important;
    background-image: none !important;
    border-bottom: 2px solid var(--secondary);
}

/* Rende azzurro il footer (parte bassa) */
#footer, .tfoot {
    background: var(--primary) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-top: 1px solid var(--secondary);
}

/* Sistema i link nel footer per renderli bianchi e visibili */
#footer a {
    color: #ffffff !important;
}

/* OPZIONALE: Se vuoi rendere azzurri anche i bottoni che ora sono neri (#1c1c1c) */
.postbit_buttons > a:link, 
.postbit_buttons > a:visited, 
button, 
input.button {
    background: var(--primary) !important;
    border-color: var(--secondary) !important;
}

.postbit_buttons > a:hover, 
button:hover, 
input.button:hover {
    background: var(--secondary) !important;
}

/* ... qui c'è tutto il tuo codice originale ... */

li.nav-forums:hover {
    background: var(--primary)!important;
}

/* --- AGGIUNGI DA QUI IN POI --- */

/* Fix per la banda in alto (Logo e Panel) */
header, #header, .wrapper, #panel .upper {
    background: var(--primary) !important;
    background-image: none !important;
    color: #ffffff !important;
}

/* Fix per tutti i pulsanti (trasforma il nero #1c1c1c in azzurro) */
.postbit_buttons > a:link, 
.postbit_buttons > a:visited, 
.postbit_user_btn a:link, 
.postbit_user_btn a:visited,
button, 
input.button,
a.button:link,
a.button:visited {
    background: var(--primary) !important;
    background-image: none !important;
    border: 1px solid var(--secondary) !important;
    color: #ffffff !important;
}

/* Effetto hover per i pulsanti */
.postbit_buttons > a:hover, 
.postbit_user_btn a:hover,
button:hover, 
input.button:hover,
a.button:hover {
    background: var(--secondary) !important;
    color: #ffffff !important;
}

/* Testo bianco nei menu alti */
#panel .upper a {
    color: #ffffff !important;
}

/* Fix per la banda in basso (Footer) */
#footer, .tfoot {
    background: var(--primary) !important;
    background-image: none !important;
    color: #ffffff !important;
}

#footer a {
    color: #ffffff !important;
}

/* --- FIX DEFINITIVO BANDA LOGO (HEADER ALTO) --- */
.navbar-inverse, 
.navbar-default,
header,
#header {
    background-color: var(--primary) !important;
    background-image: none !important;
    border: none !important;
}

/* Sistema il colore dei link nel menu (Home, Forums, ecc.) per renderli bianchi */
.navbar-nav > li > a, 
.navbar-link {
    color: #ffffff !important;
}

/* Cambia colore quando passi il mouse sopra i link del menu */
.navbar-nav > li > a:hover {
    background-color: var(--secondary) !important;
    color: #ffffff !important;
}

/* Rende bianco anche il testo del logo se è testuale */
.navbar-brand {
    color: #ffffff !important;
}

/* --- ULTIMI FIX: BARRA TABELLA E PULSANTI OPACI --- */

/* Trasforma la barra nera delle discussioni (Discussione/Autore) in azzurra */
.tcat {
    background: var(--secondary) !important; /* Usiamo l'azzurro più scuro per staccare dalla barra sopra */
    color: #ffffff !important;
}

.tcat a:link, .tcat a:visited {
    color: #ffffff !important;
}

/* Fix definitivo per i pulsanti neri (Visualizza questo messaggio, ecc.) */
.postbit_buttons > a, 
button.button, 
input.button,
.postbit_user_btn a {
    background: var(--primary) !important;
    background-image: none !important;
    border-color: var(--secondary) !important;
    color: #ffffff !important;
}

/* Toglie il bordo nero o l'ombra dai pulsanti */
.postbit_buttons > a:hover {
    background: var(--secondary) !important;
    border-color: var(--primary) !important;
}




/* --- SFONDO GENERALE DEL FORUM --- */
body {
    background-color: #e3f2fd !important; /* Un azzurro molto chiaro e riposante */
    background-image: none !important;    /* Rimuove eventuali texture o immagini scure */
}
		