.select_clienti {
    font-family: "Courier New";
}

/* Stili Modal - Responsive Design */
.modal-body {
    padding: 2rem;
}

.form-section {
    border-radius: 0.25rem;
    padding: 0;
}

.form-section h6 {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Select/Input form-control improvements */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* Select box con nbsp per tabellatura - stile monospace per mantenere allineamento */
select.form-control.select-with-nbsp {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.9rem;
    word-spacing: -0.25em;
}

/* Form labels */
.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

/* Table responsive improvements */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.table-sm td,
.table-sm th {
    padding: 0.5rem;
    vertical-align: middle;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
}

.table tbody tr {
    transition: background-color 0.15s ease-in-out;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Checkbox style */
.form-check {
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-top: 0;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-check-label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
}

/* Modal header/footer improvements */
.modal-header {
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
}

.modal-header .close {
    margin: -1.5rem -2rem -1.5rem auto;
    padding: 1.5rem 2rem;
}

.modal-footer {
    padding: 1rem 2rem;
}

.modal-footer .btn {
    margin-left: 0.5rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #212529;
}

/* Responsive adjustments for tablets/mobile */
@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .modal-header,
    .modal-footer {
        padding: 1rem 1.5rem;
    }

    .form-section {
        margin-bottom: 1.5rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .table-sm td,
    .table-sm th {
        padding: 0.375rem;
    }

    .form-control,
    .form-control-sm {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    .col-12,
    .col-md-6,
    .col-md-10,
    .col-md-2 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }

    .modal-header .close {
        margin: -0.75rem -1rem -0.75rem auto;
        padding: 0.75rem 1rem;
    }

    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .table-responsive {
        font-size: 0.75rem;
    }

    .table-sm td,
    .table-sm th {
        padding: 0.25rem;
    }

    .form-control,
    .form-control-sm {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ------------------------------------------------------------------
   Standard text utility classes (design system tokens)
   Use these classes to apply consistent typography across the frontend.
   If you apply these classes to existing elements, check layout and
   spacing — some sizes may need tuning. See TODOs below.
   ------------------------------------------------------------------ */

/* Citazione */
.text-quote {
    font-family: "Articulat CF", system-ui, sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 105%; /* 1.575rem */
}

/* Sottotitolo sezione */
.section-subtitle {
    font-family: "Articulat CF", system-ui, sans-serif;
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 105%; /* 1.575rem */
}

/* Testo sezione (titoli principali di sezione) */
.section-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.25rem; /* TODO: verificare se 2.25rem sovrascrive le regole esistenti e se va benone */
    font-style: normal;
    font-weight: 400;
    line-height: 104%; /* 2.34rem */
    letter-spacing: -0.0675rem;
}

.brand__logo {
    height: 2rem;
    width: auto;
}

/* Testo title card */
.card-title-text {
    font-family: 'Unbounded', sans-serif;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}
.card h3.card-title-text {
    margin: 0 0 0.75rem;
    font-family: 'Unbounded', sans-serif;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

/* Testo corpo card */
.card-body-text {
    font-family: "Articulat CF", system-ui, sans-serif;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 105%; /* 1.18125rem */
}

/* Testo date / meta */
.date-text {
    font-family: "Articulat CF", system-ui, sans-serif;
    font-size: 1.25rem; /* Text 5 */
    font-style: normal;
    font-weight: 500;
    line-height: 105%; /* 1.3125rem */
}

