html {
font-family: Arial, Helvetica, sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}

body {margin: 4px; line-height: 1.6em;}
.spazio {width: 100%; max-width: 970px; margin: 5px auto; text-align: center; box-sizing: border-box; /** border: 1px solid #000: **/}
.spazio::after {content: ""; clear: both; display: table;}
.clearfix::after {content: ""; clear: both; display: table;}
h1, h2 {width: 100%; padding: 0px; margin: 0px; font-size: 19px; font-weight: bold; font-variant: small-caps;}
.row {margin: 2px auto;}
a {text-decoration: none; color: #005082;}
form {margin-bottom: 0px;}
.linea {border-bottom: 1px solid #666666;}

.cellebordate td {background-color: #ffffff; padding: 4px; text-align: right; border: 1px solid #666666;}
.cellebordate th {background-color: #ffffdd; padding: 4px; text-align: center; font-weight: bold; border: 1px solid #666666;}

.tabella table {width: 100%; border-collapse: collapse; /* Fondamentale per unire i bordi */}
.tabella table,.tabella th,.tabella td {border: 1px solid black; /* Colore e stile del bordo */}
.tabella th,.tabella td {padding: 10px; /* Spazio interno alle celle */ text-align: left;}

.lista-link {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 6px;
  column-gap: 8px;
  width: 100%;
  max-width: 970px;
  margin: 12px auto;
  box-sizing: border-box;
  align-items: stretch;
}

.contenitore {width: 100%; max-width: 970px; margin: 0px auto; text-align: center; box-sizing: border-box; position: relative;}

fieldset {
font-size: 18px;
text-align: left;
line-height: 1.6em;
margin: 0px;
border: 1px solid #000000;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}

.sommario {
box-sizing: content-box;
display: block;
padding: 6px;
color: #000;
border-radius: 3px;
font-size: 120%;
font-family: Verdana, Arial;
border: 1px solid #d6cfab;
text-align: center;
overflow: hidden;
background: #ffd754;
background: -moz-linear-gradient(top, #ffd754 0%, #fff8df 47%, #fff8df 47%, #fff8df 59%, #ffd754 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffd754), color-stop(47%, #fff8df), color-stop(47%, #fff8df), color-stop(59%, #fff8df), color-stop(100%, #ffd754));
background: -webkit-linear-gradient(top, #ffd754 0%, #fff8df 47%, #fff8df 47%, #fff8df 59%, #ffd754 100%);
background: -o-linear-gradient(top, #ffd754 0%, #fff8df 47%, #fff8df 47%, #fff8df 59%, #ffd754 100%);
background: -ms-linear-gradient(top, #ffd754 0%, #fff8df 47%, #fff8df 47%, #fff8df 59%, #ffd754 100%);
background: linear-gradient(to bottom, #ffd754 0%, #fff8df 47%, #fff8df 47%, #fff8df 59%, #ffd754 100%);
}

.sommario a {
color: #000;
font-weight: 600;
text-shadow: 1px 1px 1px #fff6af;
text-decoration: none;
display: block;
}

#sezionemenu {overflow: hidden; width: 100%;}

#sezioni {font-family: Verdana, Arial; color: #000; font-size: 14px;}

#sezioni div {width: 12.46%; float: left; border-top: 1px solid #fff;}

#sezioni a {
padding-bottom: 10px;
font-weight: 500;
text-shadow: 0.5px 0.5px 0.5px #B0AAAA;
color: #000;
float: left;
padding-top: 6px;
line-height: 1.2em;
background-color: #fff8df;
border-top: 1px solid #bbb073;
border-bottom: 1px solid #bbb073;
border-left: 1px solid #bbb073;
border-right: 1px solid #bbb073;
text-align: center;
display: block;
width: 100%;
box-sizing: content-box;
}

#sezioni a:hover {
text-shadow: 1px 1px 1px #B0AAAA;
color: #000;
background-color: #e5e1cb;
}

#sezioni a.calc {padding-top: 10px; vertical-align: middle; box-sizing: content-box;}

.riquadro {
border-radius: .6em;
border: 1px solid #666666; padding: 8px;
}

.input {
margin: 0;
min-height: 1.8em;
font-size: 19px;
text-align: right;
-webkit-appearance: none;
-webkit-border-radius: .6em;
border-radius: .6em;
box-shadow: inset 0 1px 8px rgba(0,0,0,0.23);
-webkit-box-shadow: inset 0 1px 8px rgba(0,0,0,0.23);
-moz-box-shadow: inset 0 1px 8px rgba(0,0,0,0.23);
border-color: #C0C0C0;
color: #222;
text-shadow: 0 1px 0 #fff;
padding-right: 10px;
display: inline;
}

input[type=text], select, textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 4px;
resize: vertical;
}

.container {
font-size: 18px;
text-align: left;
line-height: 1.5;
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}

.col-50 {
float: left;
width: 50%;
margin-top: 6px;
display: inline;
}

.col-100 {
float: left;
width: 100%;
margin-top: 6px;
display: inline;
}

.testata-blu {margin-top: 20px; color: #ffffff; font-weight: bold;
-moz-box-shadow:inset 0px 1px 0px 0px #54a3f7;
-webkit-box-shadow:inset 0px 1px 0px 0px #54a3f7;
box-shadow:inset 0px 1px 0px 0px #54a3f7;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #007dc1), color-stop(1, #0061a7));
background:-moz-linear-gradient(top, #007dc1 5%, #0061a7 100%);
background:-webkit-linear-gradient(top, #007dc1 5%, #0061a7 100%);
background:-o-linear-gradient(top, #007dc1 5%, #0061a7 100%);
background:-ms-linear-gradient(top, #007dc1 5%, #0061a7 100%);
background:linear-gradient(to bottom, #007dc1 5%, #0061a7 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#007dc1', endColorstr='#0061a7',GradientType=0);
background-color:#007dc1;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:1px solid #124d77;
padding: 5px;
text-align: center;
text-decoration:none;
text-shadow:0px 1px 0px #154682;
}

.testata-rossa {margin-top: 40px; color: #ffffff; font-weight: bold;
-moz-box-shadow:inset 0px 1px 0px 0px #cf866c;
-webkit-box-shadow:inset 0px 1px 0px 0px #cf866c;
box-shadow:inset 0px 1px 0px 0px #cf866c;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #d0451b), color-stop(1, #bc3315));
background:-moz-linear-gradient(top, #d0451b 5%, #bc3315 100%);
background:-webkit-linear-gradient(top, #d0451b 5%, #bc3315 100%);
background:-o-linear-gradient(top, #d0451b 5%, #bc3315 100%);
background:-ms-linear-gradient(top, #d0451b 5%, #bc3315 100%);
background:linear-gradient(to bottom, #d0451b 5%, #bc3315 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#d0451b', endColorstr='#bc3315',GradientType=0);
background-color:#d0451b;
-moz-border-radius:3px;
-webkit-border-radius:3px;
border-radius:3px;
border:1px solid #942911;
padding: 5px;
text-align: center;
text-decoration:none;
text-shadow:0px 1px 0px #854629;
}

.pulsante {
margin: 0px;
-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
box-shadow:inset 0px 1px 0px 0px #ffffff;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9));
background:-moz-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
background:-webkit-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
background:-o-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
background:-ms-linear-gradient(top, #f9f9f9 5%, #e9e9e9 100%);
background:linear-gradient(to bottom, #f9f9f9 5%, #e9e9e9 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9',GradientType=0);
background-color:#f9f9f9;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #dcdcdc;
display:inline-block;
color:#666666;
font-size:16px;
font-weight:bold;
padding:4px 10px;
text-align: center;
text-decoration:none;
text-shadow:0px 1px 0px #ffffff;
}
.pulsante:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9));
background:-moz-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
background:-webkit-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
background:-o-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
background:-ms-linear-gradient(top, #e9e9e9 5%, #f9f9f9 100%);
background:linear-gradient(to bottom, #e9e9e9 5%, #f9f9f9 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9',GradientType=0);
background-color:#e9e9e9;
}
.pulsante:active {
position:relative;
top:1px;
}

.pulsante-giallo {
margin: 0px;
-moz-box-shadow: 0px 1px 0px 0px #fff6af;
-webkit-box-shadow: 0px 1px 0px 0px #fff6af;
box-shadow: 0px 1px 0px 0px #fff6af;
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffec64), color-stop(1, #ffab23));
background:-moz-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-webkit-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-o-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:-ms-linear-gradient(top, #ffec64 5%, #ffab23 100%);
background:linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffec64', endColorstr='#ffab23',GradientType=0);
background-color:#ffec64;
-moz-border-radius:6px;
-webkit-border-radius:6px;
border-radius:6px;
border:1px solid #ffaa22;
display:inline-block;
cursor:pointer;
color:#333333;
font-family:Arial;
font-size:16px;
font-weight:bold;
padding:6px 24px;
text-align: center;
text-decoration:none;
text-shadow:0px 1px 0px #ffee66;
}
.pulsante-giallo:hover {
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #ffab23), color-stop(1, #ffec64));
background:-moz-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-webkit-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-o-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:-ms-linear-gradient(top, #ffab23 5%, #ffec64 100%);
background:linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffab23', endColorstr='#ffec64',GradientType=0);
background-color:#ffab23;
}
.pulsante-giallo:active {
position:relative;
top:1px;
}

a.pulsante-blu, .pulsante-blu {
outline: none;
cursor: pointer;
border: solid 1px #0076a3;
text-align: center;
text-decoration: none;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
box-shadow: 0 1px 3px rgba(0,0,0,0.5);
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#00adee), to(#0078a5));
background: -webkit-linear-gradient(#00adee,  #0078a5);
background: -moz-linear-gradient(#00adee,  #0078a5);
background: -ms-linear-gradient(#00adee,  #0078a5);
background: -o-linear-gradient(#00adee,  #0078a5);
background: linear-gradient(#00adee,  #0078a5);
color: #fff;
padding: 6px 10px;
font-family: Verdana, sans-serif;
text-shadow: 1px 1px 1px #12455d;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}

a.pulsante-blu:hover, .pulsante-blu:hover {
color: #fff;
background: #0095cd;
background: -webkit-gradient(linear, left top, left bottom, from(#0078a5), to(#00adee));
background: -webkit-linear-gradient(#0078a5,  #00adee);
background: -moz-linear-gradient(#0078a5,  #00adee);
background: -ms-linear-gradient(#0078a5,  #00adee);
background: -o-linear-gradient(#0078a5,  #00adee);
background: linear-gradient(#0078a5,  #00adee);
}

a.pulsante-blu:active, .pulsante-blu:active {
position: relative;
top: 1px;
color: #093950;
text-shadow: 1px 1px 1px #7ac8f0;
-webkit-box-shadow: #093950 0px 2px 3px inset;
-moz-box-shadow: #093950 0px 2px 3px inset;
box-shadow: #093950 0px 2px 3px inset;
}

.bianco {background-color: #FFFFFF; border-bottom: 1px solid #666666;}
.giallo {background-color: #FFFFCC; border: 1px solid #666666;}

.aleft {text-align: left;}
.aright {text-align: right;}
.acenter {text-align: center;}

.row:after {content: ""; display: table; clear: both;}

/** INIZIO SEZIONE MEDIA QUERY **/

@media only screen and (max-width: 540px) {

#sezioni div {width: 24.98%; float: left; border-top: 1px solid #fff;}

#sezioni a {
padding-bottom: 10px;
margin-left: 0px;
font-weight: 500;
text-shadow: 0.5px 0.5px 0.5px #B0AAAA;
color: #000;
float: left;
padding-top: 6px;
line-height: 1.2em;
background-color: #fff8df;
border-top: 1px solid #bbb073;
border-bottom: 1px solid #bbb073;
border-left: 1px solid #bbb073;
border-right: 1px solid #bbb073;
text-align: center;
display: block;
width: 98%;
}

#sezionemenu{margin-right:0px;}
.row {width: 100%;}
.aleft {width: 120px; text-align: left;}
.spazio {width: 100%;}

.col-50 {display: block; width: 100%;}
.col-100 {display: block; width: 100%;}

.lista-link {
  grid-template-columns: 1fr;
}

}

/** FINE SEZIONE MEDIA QUERY **/

/* ===== SCOPED PREFIX: uc- ===== */

/* ── WRAPPER ── */
.uc-wrap {
max-width: 970px;
margin: 0 auto;
font-family: Arial, Helvetica, sans-serif;
color: #212529;
text-align: left;
}

/* ── INTRO ── */
.uc-intro {
background: #ffffff;
padding: 24px 0px 0;
}
.uc-intro p {
font-size: 0.97rem;
color: #343a40;
line-height: 1.65;
margin: 0 0 20px;
}

/* ── GUIDE BOXES 4→2→1 ── */
.uc-guide-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 24px;
}
.uc-guide-box {
background: #e8f7fb;
border: 1px solid #b2dce8;
border-left: 4px solid #17a2b8;
border-radius: 5px;
padding: 14px 16px;
}
.uc-guide-box strong {
display: block;
font-size: 0.78rem;
/* text-transform: uppercase; */
letter-spacing: 0.05em;
color: #0a5570;
margin-bottom: 5px;
}
.uc-guide-box span {
font-size: 0.88rem;
color: #343a40;
line-height: 1.5;
}

/* ── TOOLBAR ── */
.uc-toolbar {
background: #ffffff;
padding: 14px 30px;
display: flex;
gap: 10px;
align-items: center;
position: sticky;
top: 0;
z-index: 100;
border-bottom: 2px solid #dee2e6;
box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}
/* label SR-only per accessibilità */
.uc-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
.uc-search {
flex: 1 1 auto;
min-width: 0;
box-sizing: border-box;
padding: 9px 13px;
border: 2px solid #ced4da;
border-radius: 4px;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.92rem;
color: #212529;
background: #fff;
transition: border-color 0.2s;
}
.uc-search:focus {
outline: none;
border-color: #17a2b8;
box-shadow: 0 0 0 3px rgba(23,162,184,0.2);
}
/* bottoni raggruppati — non wrappano separatamente */
.uc-toolbar-btns {
display: flex;
gap: 10px;
flex-shrink: 0;
}

/* ── BUTTONS Bootstrap colours + 3D ── */
.uc-btn {
display: inline-block;
padding: 8px 18px;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.88rem;
font-weight: 700;
border: none;
border-radius: 4px;
cursor: pointer;
white-space: nowrap;
transition: transform 0.08s, box-shadow 0.08s, background-color 0.15s;
text-align: center;
}
/* Primary #007bff */
.uc-btn-primary {
background-color: #007bff;
color: #fff;
box-shadow: 0 4px 0 #0056b3, inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(0,123,255,0.35);
}
.uc-btn-primary:hover  { background-color:#0069d9; box-shadow:0 3px 0 #004085,inset 0 1px 0 rgba(255,255,255,0.15),0 1px 3px rgba(0,123,255,0.3); transform:translateY(1px); }
.uc-btn-primary:active { background-color:#0056b3; box-shadow:inset 0 2px 4px rgba(0,0,0,0.2); transform:translateY(3px); }
/* Danger #dc3545 */
.uc-btn-danger {
background-color: #dc3545;
color: #fff;
box-shadow: 0 4px 0 #9a1e2b, inset 0 1px 0 rgba(255,255,255,0.15), 0 2px 4px rgba(220,53,69,0.35);
}
.uc-btn-danger:hover  { background-color:#c82333; box-shadow:0 3px 0 #7d1724,inset 0 1px 0 rgba(255,255,255,0.15),0 1px 3px rgba(220,53,69,0.3); transform:translateY(1px); }
.uc-btn-danger:active { background-color:#bd2130; box-shadow:inset 0 2px 4px rgba(0,0,0,0.2); transform:translateY(3px); }
/* Secondary #6c757d */
.uc-btn-secondary {
background-color: #6c757d;
color: #fff;
box-shadow: 0 4px 0 #494f54, inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 4px rgba(108,117,125,0.3);
}
.uc-btn-secondary:hover  { background-color:#5a6268; box-shadow:0 3px 0 #3d4145,inset 0 1px 0 rgba(255,255,255,0.12),0 1px 3px rgba(108,117,125,0.25); transform:translateY(1px); }
.uc-btn-secondary:active { background-color:#4e555b; box-shadow:inset 0 2px 4px rgba(0,0,0,0.2); transform:translateY(3px); }

/* ── DIV ex MAIN ── */
.uc-main {
background: #ffffff;
padding: 24px 0px 30px;
}
.uc-counter {
font-size: 0.82rem;
color: #6c757d;
margin-bottom: 14px;
}

/* ── GRID CARD ── */
.uc-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 12px;
}
.uc-card {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-left: 4px solid #adb5bd;
border-radius: 5px;
padding: 12px 14px;
transition: border-color 0.2s, background-color 0.2s, border-left-color 0.2s;
/* FIX #2: impedisce al card di uscire dalla colonna */
min-width: 0;
overflow: hidden;
box-sizing: border-box;
}
.uc-card:hover {
border-color: #17a2b8;
border-left-color: #17a2b8;
background-color: #e8f7fb;
}
.uc-card.uc-has-value {
border-left-color: #007bff;
background-color: #eef5ff;
}
/* FIX #1: sentence case — nessun text-transform qui, gestito in JS */
.uc-card label {
display: block;
font-size: 0.82rem;
font-weight: 700;
color: #495057;
margin-bottom: 6px;
letter-spacing: 0.01em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
/* titolo con tooltip automatico via JS per label troncate */
}
/* FIX #2: input non sfora MAI dal contenitore */
.uc-card input[type="number"],
.uc-card input[type="text"] {
display: block;
width: 100%;
box-sizing: border-box;
padding: 8px 10px;
border: 2px solid #ced4da;
border-radius: 4px;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.95rem;
color: #000000;
background: #ffffff;
transition: border-color 0.2s;
/* nasconde frecce spinner */
-moz-appearance: textfield;
}
.uc-card input[type="number"]::-webkit-outer-spin-button,
.uc-card input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.uc-card input[type="number"]:focus,
.uc-card input[type="text"]:focus {
outline: none;
border-color: #17a2b8;
box-shadow: 0 0 0 3px rgba(23,162,184,0.18);
}
/* stato non valido (pagina Numeri: carattere non ammesso nella base scelta) */
.uc-card input.uc-invalid {
border-color: #dc3545;
background: #fff5f5;
}

/* ── MODALE ── */
.uc-modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 9000;
align-items: center;
justify-content: center;
}
.uc-modal-overlay.uc-active { display: flex; }
.uc-modal-box {
background: #fff;
border-radius: 6px;
padding: 28px 32px;
max-width: 380px;
width: 90%;
text-align: center;
box-shadow: 0 8px 32px rgba(0,0,0,0.22);
border-top: 4px solid #17a2b8;
}
.uc-modal-box p {
margin: 0 0 20px;
font-size: 1rem;
color: #212529;
}

/* ── UTILITY ── */
.uc-hidden { display: none !important; }
.uc-empty {
grid-column: 1 / -1;
text-align: center;
padding: 40px 20px;
color: #6c757d;
font-size: 0.95rem;
}

/* ── FOOTER ── */
.uc-footer {
background: #f8f9fa;
border-top: 1px solid #dee2e6;
border-bottom: 1px solid #dee2e6;
border-radius: 0 0 6px 6px;
padding: 14px 30px;
font-size: 0.80rem;
color: #000000 /*#6c757d*/;
text-align: center;
margin-bottom: 30px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
.uc-guide-grid { grid-template-columns: repeat(2, 1fr); }
.uc-intro,
.uc-main   { padding-left: 16px; padding-right: 16px; }
/* FIX #3 mobile: toolbar in colonna, pulsanti sotto l'input a piena larghezza */
.uc-toolbar {
flex-direction: column;
align-items: stretch;
position: static;
padding: 14px 16px;
gap: 10px;
}
.uc-toolbar-btns {
width: 100%;
}
.uc-toolbar-btns .uc-btn {
flex: 1;
padding: 10px 12px;
}
}
@media (max-width: 480px) {
.uc-guide-grid { grid-template-columns: 1fr; }
.uc-grid   { grid-template-columns: 1fr; }
}

/* ── SELECT CATEGORIA ── */
.uc-cat-bar {
background: #0a5570;
padding: 12px 30px;
display: flex;
align-items: center;
gap: 12px;
border-bottom: 3px solid #073d52;
margin-top: 10px;
}

.uc-cat-bar label {
font-family: Arial, Helvetica, sans-serif;
font-size: 0.85rem;
font-weight: 700;
color: #ffffff /*#b2dce8*/;
white-space: nowrap;
letter-spacing: 0.03em;
text-transform: uppercase;
}

.uc-cat-select {
flex: 1;
max-width: 340px;
padding: 9px 40px 9px 14px;
font-family: Arial, Helvetica, sans-serif;
font-size: 0.92rem;
font-weight: 700;
color: #0a5570;
background-color: #e8f7fb;
border: 2px solid #17a2b8;
border-radius: 4px;
cursor: pointer;
/* freccia SVG custom — triangolo teal */
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%230e6e8c' d='M6 7L0 0h12z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 13px center;
/* ombra 3D coerente con i pulsanti */
box-shadow:
0 4px 0 #0a5570,
inset 0 1px 0 rgba(255,255,255,0.4),
0 2px 6px rgba(0,0,0,0.15);
transition: border-color 0.2s, background-color 0.2s,
box-shadow 0.08s, transform 0.08s;
}

.uc-cat-select:hover {
background-color: #d0eef6;
border-color: #0e6e8c;
box-shadow:
0 3px 0 #073d52,
inset 0 1px 0 rgba(255,255,255,0.35),
0 1px 4px rgba(0,0,0,0.12);
transform: translateY(1px);
}

.uc-cat-select:active {
box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
transform: translateY(3px);
}

.uc-cat-select:focus {
outline: none;
border-color: #ffffff;
box-shadow:
0 4px 0 #0a5570,
0 0 0 3px rgba(255,255,255,0.35);
background-color: #ffffff;
color: #0a5570;
}

/* ── PREFERITI ── */
.uc-star {
float: right;
background: none;
border: none;
font-size: 1.1rem;
line-height: 1;
cursor: pointer;
color: #adb5bd;
padding: 0 0 4px 6px;
transition: color 0.15s, transform 0.15s;
}
.uc-star:hover {
color: #ffc107;
transform: scale(1.2);
}
.uc-star.uc-starred {
color: #ffc107;
}

.uc-fav-separator {
grid-column: 1 / -1;
display: flex;
align-items: center;
gap: 10px;
margin: 4px 0 2px;
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
color: #6c757d;
}
.uc-fav-separator::before,
.uc-fav-separator::after {
content: '';
flex: 1;
height: 1px;
background: #dee2e6;
}
.uc-fav-separator.uc-sep-all::before,
.uc-fav-separator.uc-sep-all::after {
background: #dee2e6;
}

.sezionemenu[aria-hidden="true"] {
  display: none;
}
.sezionemenu[aria-hidden="false"] {
  display: block;
}
:target { outline: none; }