/* ==========================================================
   DARK THEME - Contabilità Sala Giochi
   Importare con: <link rel="stylesheet" href="css/dark.css">
   ========================================================== */

/* ── Base ─────────────────────────────────────────────── */
html, body {
    min-height: 100%;
    margin: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%) fixed;
    color: #e5e7eb;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    background: rgba(2, 6, 23, 0.92) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(12px);
    z-index: 1030 !important;
}
.navbar-brand,
.nav-link { color: #e5e7eb !important; }
.nav-link:hover,
.nav-link.active { color: #93c5fd !important; }
.dropdown-menu {
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 1050 !important;
}
.dropdown-item { color: #e5e7eb; }
.dropdown-item:hover { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.dropdown-header { color: #6b7280; }

/* ── Page layout ───────────────────────────────────────── */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 16px 48px;
}
.page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
    display: flex;
    align-items: center;
    gap: 10px;
}
.page-title i {
    font-size: 1.5rem;
    color: #60a5fa;
}
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 99px;
    padding: 4px 14px;
    font-size: 0.8rem;
    color: #9ca3af;
}
.stat-pill span { color: #f9fafb; font-weight: 700; }

/* ── Dark card ─────────────────────────────────────────── */
.dark-card {
    background: rgba(15, 23, 42, 0.88);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    overflow: hidden;
}
.dark-card-header {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dark-card-header h6 {
    margin: 0;
    font-weight: 600;
    color: #f9fafb;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dark-card-body { padding: 0; }

/* ── Table ─────────────────────────────────────────────── */
.table-dark-custom {
    margin: 0;
    color: #e5e7eb;
}
.table-dark-custom thead th {
    background: rgba(15, 23, 42, 0.7);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
}
.table-dark-custom tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    vertical-align: middle;
    font-size: 0.9rem;
    color: #94a3b8 !important;
}
.table-dark-custom tbody tr:last-child td { border-bottom: none; }
.table-dark-custom tbody tr:hover td {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0 !important;
}

/* ── Badges ────────────────────────────────────────────── */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-role-admin          { background: #7f1d1d; color: #fca5a5; }
.badge-role-operatore      { background: #78350f; color: #fde68a; }
.badge-role-visualizzatore { background: #0c4a6e; color: #bae6fd; }
.badge-stato-attivo        { background: #14532d; color: #86efac; }
.badge-stato-inattivo      { background: #1f2937; color: #9ca3af; }
.badge-bloccato            { background: #7f1d1d; color: #fca5a5; }
/* Tipo macchina */
.badge-tipo-vlt            { background: #312e81; color: #a5b4fc; }
.badge-tipo-spielo         { background: #78350f; color: #fde68a; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-add {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 10px;
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transition: transform 0.12s, box-shadow 0.12s;
}
.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.55);
    color: #fff;
}
.btn-icon {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    color: #9ca3af;
    padding: 5px 9px;
    font-size: 0.85rem;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-icon:hover           { background: rgba(59,130,246,0.15);  color: #93c5fd; border-color: rgba(59,130,246,0.4); }
.btn-icon-danger:hover    { background: rgba(220,38,38,0.15);   color: #fca5a5; border-color: rgba(220,38,38,0.4); }
.btn-modal-save {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
}
.btn-modal-save:hover { color: #fff; filter: brightness(1.1); }
.btn-modal-cancel {
    background: rgba(55, 65, 81, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #9ca3af;
}
.btn-modal-cancel:hover { background: rgba(55, 65, 81, 0.7); color: #e5e7eb; }
.btn-close-custom {
    background: none;
    border: none;
    color: inherit;
    opacity: 0.7;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.btn-close-custom:hover { opacity: 1; }
/* Pulsante elimina nella modale di conferma */
.btn-delete-confirm {
    background: rgba(185, 28, 28, 0.8);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.88rem;
    color: #fee2e2;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-delete-confirm:hover { background: rgba(185, 28, 28, 1); }
/* Pulsante login */
.btn-login {
    width: 100%;
    border-radius: 12px;
    border: none;
    padding: 11px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 16px 35px rgba(59, 130, 246, 0.6);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
    color: #fff;
}
.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.75);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff;
}
.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.6);
}

/* ── Alerts ────────────────────────────────────────────── */
.alert-dark-success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.4);
    border-radius: 12px;
    color: #86efac;
    font-size: 0.88rem;
    padding: 10px 14px;
}
.alert-dark-danger {
    background: rgba(127, 29, 29, 0.5);
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 12px;
    color: #fee2e2;
    font-size: 0.88rem;
    padding: 10px 14px;
}
/* Alert usato nella pagina login */
.alert-custom {
    background: rgba(127, 29, 29, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(248, 113, 113, 0.7);
    color: #fee2e2;
    font-size: 0.85rem;
    padding: 10px 12px;
    margin-bottom: 14px;
}

/* ── Form controls ─────────────────────────────────────── */
.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
    margin-bottom: 5px;
}
.form-control,
.form-select {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.9);
    border-radius: 10px;
    color: #e5e7eb;
    font-size: 0.9rem;
    padding: 9px 12px;
}
.form-control::placeholder { color: #6b7280; }
.form-control:focus,
.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.6);
    background: rgba(2, 6, 23, 0.9);
    color: #f9fafb;
}
.form-control[readonly] {
    background: rgba(30, 41, 59, 0.5);
    color: #6b7280;
    cursor: not-allowed;
}
.form-select option       { background: #0f172a; color: #e5e7eb; }
.form-check-input         { background-color: rgba(2, 6, 23, 0.6); border-color: rgba(55, 65, 81, 0.9); }
.form-check-input:checked { background-color: #3b82f6; border-color: #3b82f6; }
.form-check-label         { color: #d1d5db; font-size: 0.9rem; }
.form-text                { color: #6b7280; font-size: 0.78rem; }
/* Input group (usato nella pagina login) */
.input-group-text {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px 0 0 12px;
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #6b7280;
}
.input-group .form-control {
    border-radius: 0 12px 12px 0;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(55, 65, 81, 0.9);
    color: #e5e7eb;
    padding: 10px 12px;
    font-size: 0.95rem;
}
.input-group .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.8);
    background: rgba(15, 23, 42, 1);
    color: #f9fafb;
}

/* ── Modals ────────────────────────────────────────────── */
.modal-content {
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    color: #e5e7eb;
}
.modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding: 18px 22px 14px;
}
.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f9fafb;
}
.modal-body   { padding: 20px 22px; }
.modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding: 14px 22px;
}
.btn-close       { filter: invert(1) brightness(0.7); }
.btn-close:hover { filter: invert(1) brightness(1); }

/* ── Filter buttons ────────────────────────────────────── */
.filter-group { display: flex; gap: 6px; }
.filter-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #9ca3af;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s;
}
.filter-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.35);
}
.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.45);
}

/* ── KPI Cards ─────────────────────────────────────────── */
.kpi-card {
    background: rgba(15, 23, 42, 0.88);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}
.kpi-icon {
    font-size: 1.8rem;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 4px;
}
.kpi-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.2;
}
.kpi-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}
.kpi-blue   { border-left: 3px solid #3b82f6; }
.kpi-red    { border-left: 3px solid #ef4444; }
.kpi-green  { border-left: 3px solid #22c55e; }
.kpi-purple { border-left: 3px solid #a855f7; }
.kpi-amber  { border-left: 3px solid #f59e0b; }
.kpi-blue   .kpi-icon { background: rgba(59, 130, 246, 0.12);  color: #60a5fa; }
.kpi-red    .kpi-icon { background: rgba(239, 68, 68, 0.12);   color: #f87171; }
.kpi-green  .kpi-icon { background: rgba(34, 197, 94, 0.12);   color: #86efac; }
.kpi-purple .kpi-icon { background: rgba(168, 85, 247, 0.12);  color: #c084fc; }
.kpi-amber  .kpi-icon { background: rgba(245, 158, 11, 0.12);  color: #fbbf24; }

/* ── Anno corrente nel confronto anni ──────────────────── */
.row-year-current td { background: rgba(59, 130, 246, 0.06) !important; }

/* ── Empty state ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #6b7280;
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    color: #374151;
}

/* ── Print ─────────────────────────────────────────────── */
@media print { .no-print { display: none !important; } }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-wrapper { padding: 16px 12px 32px; }
    .page-title   { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .modal-body             { padding: 16px; }
    .modal-header,
    .modal-footer           { padding: 12px 16px; }
    .dark-card-header       { padding: 12px 14px; }
    .table-dark-custom tbody td,
    .table-dark-custom thead th { padding: 10px 12px; }
}

/* ==========================================================
   BOOTSTRAP UTILITY OVERRIDES — index.php dark theme
   ========================================================== */

/* ── Card ──────────────────────────────────────────────── */
.card {
    background: rgba(15, 23, 42, 0.88) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 16px !important;
    color: #e5e7eb;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.card-header {
    background: rgba(15, 23, 42, 0.6) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
    color: #f9fafb !important;
    border-radius: 16px 16px 0 0 !important;
}
.card-header h5, .card-header h6, .card-header strong { color: #f9fafb; }
.card-body { background: transparent; }

/* ── bg utilities ──────────────────────────────────────── */
.bg-white { background: rgba(15, 23, 42, 0.6) !important; }
.bg-light  { background: rgba(30, 41, 59, 0.5) !important; }

/* ── text utilities ────────────────────────────────────── */
.text-dark      { color: #f9fafb !important; }
.text-muted     { color: #6b7280 !important; }
.text-secondary { color: #9ca3af !important; }
.text-primary   { color: #60a5fa !important; }
.text-success   { color: #86efac !important; }
.text-warning   { color: #fbbf24 !important; }
.text-danger    { color: #f87171 !important; }

/* ── border utilities ──────────────────────────────────── */
.border         { border-color: rgba(148, 163, 184, 0.2) !important; }
.border-top     { border-top-color: rgba(148, 163, 184, 0.15) !important; }
.border-bottom  { border-bottom-color: rgba(148, 163, 184, 0.15) !important; }
.border-end     { border-right-color: rgba(148, 163, 184, 0.15) !important; }
.border-success { border-color: rgba(34, 197, 94, 0.45) !important; }
.border-warning { border-color: rgba(245, 158, 11, 0.45) !important; }
.border-danger  { border-color: rgba(239, 68, 68, 0.45) !important; }

/* ── Standard Bootstrap table ──────────────────────────── */
.table > :not(caption) > * > th,
.table > :not(caption) > * > td { border-bottom-color: rgba(148, 163, 184, 0.1) !important; }
.table > thead > tr > th {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #9ca3af !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15) !important;
}
.table > tbody > tr > td { color: #94a3b8 !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(59, 130, 246, 0.04) !important;
    color: #94a3b8 !important;
}
.table-hover > tbody > tr:hover > * {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #e2e8f0 !important;
}
.table-light, thead.table-light th {
    background: rgba(15, 23, 42, 0.7) !important;
    color: #9ca3af !important;
}

/* ── Alerts ────────────────────────────────────────────── */
.alert-danger {
    background: rgba(127, 29, 29, 0.5) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    color: #fecaca !important;
}
.alert-danger .alert-link { color: #fca5a5 !important; }
.alert-success {
    background: rgba(22, 163, 74, 0.15) !important;
    border-color: rgba(22, 163, 74, 0.4) !important;
    color: #86efac !important;
}
.alert-warning {
    background: rgba(161, 98, 7, 0.2) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fcd34d !important;
}
.alert-info {
    background: rgba(14, 116, 144, 0.2) !important;
    border-color: rgba(6, 182, 212, 0.4) !important;
    color: #67e8f9 !important;
}

/* ── List group ────────────────────────────────────────── */
.list-group-item {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
    color: #e5e7eb !important;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #93c5fd !important;
}

/* ── Editable cells (index.php table) ──────────────────── */
.editable {
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.editable:hover { background: rgba(59, 130, 246, 0.1) !important; }
.editable-input {
    width: 100% !important;
    height: 31px !important;
    background: rgba(2, 6, 23, 0.8) !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 6px !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
    color: #f9fafb !important;
    font-size: 0.9rem !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ── Drag and drop ─────────────────────────────────────── */
.sortable-placeholder {
    background: rgba(30, 41, 59, 0.5) !important;
    border: 2px dashed rgba(148, 163, 184, 0.3) !important;
    border-radius: 8px;
    height: 50px;
    visibility: visible !important;
    margin: 4px 0;
}
.draggable-row.ui-sortable-helper > td { background: rgba(15, 23, 42, 0.95) !important; }
.drag-handle { color: #4b5563; cursor: move; transition: color 0.2s; }
.drag-handle:hover { color: #9ca3af; }

/* ── Button overrides ──────────────────────────────────── */
.btn-success {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    border: none !important;
    color: #fff !important;
}
.btn-success:hover {
    background: linear-gradient(135deg, #15803d, #166534) !important;
    color: #fff !important;
}
.btn-outline-success {
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #86efac !important;
}
.btn-outline-success:hover {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #86efac !important;
    border-color: #22c55e !important;
}
.btn-outline-warning {
    border-color: rgba(245, 158, 11, 0.5) !important;
    color: #fbbf24 !important;
}
.btn-outline-warning:hover {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
}
.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
}
.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
}

/* ── Checklist chiusura ───────────────────────────────── */
/* Banner checklist — non usa classe .alert per evitare auto-hide dei JS */
#alertChecklist {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1025;
    background: rgba(120, 80, 0, 0.82);
    border-top: 2px solid rgba(245,158,11,.6);
    color: #fde68a;
    padding: .7rem 1.5rem;
    backdrop-filter: blur(10px);
    font-size: .92rem;
}
#alertChecklist strong { color: #fef3c7; }
#alertChecklistBtn {
    display: inline-block;
    padding: .25rem .75rem;
    border: 1px solid rgba(245,158,11,.6);
    border-radius: .375rem;
    color: #fde68a;
    text-decoration: none;
    font-size: .82rem;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 1rem;
}
#alertChecklistBtn:hover {
    background: rgba(245,158,11,.2);
    color: #fff;
}
body.has-checklist-banner {
    padding-bottom: 58px;
}
.checklist-item {
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    transition: border-color .2s ease, background .2s ease;
    cursor: pointer;
}
.checklist-item:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
.checklist-item.cl-done {
    border-color: rgba(34,197,94,.55) !important;
    background: rgba(34,197,94,.08) !important;
}
.checklist-item .form-check-input {
    background-color: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.35);
}
.checklist-item .form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}
.btn-secondary {
    background: rgba(55, 65, 81, 0.4) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    color: #9ca3af !important;
}
.btn-secondary:hover {
    background: rgba(55, 65, 81, 0.7) !important;
    color: #e5e7eb !important;
}

/* ── Utility classes ───────────────────────────────────── */
.x-small   { font-size: 0.65rem; }
.btn-xs    { padding: 0.15rem 0.4rem; font-size: 0.75rem; }
kbd {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 4px;
    color: #e5e7eb;
    padding: 2px 6px;
    font-size: .85em;
}

/* ── Section summary box (contabilita_section totali) ──── */
.section-summary-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 8px;
}
.section-summary-box .text-dark { color: #f9fafb !important; }
.section-summary-box .text-secondary { color: #6b7280 !important; }
