body {
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: 'Manrope', sans-serif;
    /*background-color: #f4f7f6;*/
    color: #333;
    line-height: 1.6;
}

.container {
    background-color: #fff;
    padding: .8rem;
    border-radius: .8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    margin: 1rem auto;
    border: 1px solid #e0e0e0;
}

.disabled {
    cursor:not-allowed;
    opacity: .55;
}

div.lang-disabled {
    display: none;
}

.enabled {
    cursor:pointer;
    opacity: 1;
}

#dynamic-results-content {
    /*width: 70%;*/
    width: 100%;
    text-align: center;
    margin: auto;
}

div.form-group-inline select {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 0.3rem;
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fafafa;
}

h3, h4 {
    color: #2c3e50;
    /*margin-bottom: 25px;*/
    text-align: center;
    margin: .1rem;
}
/*
#descr-indagine {
    margin-top: -3%;
}
*/
label {
    display: block;
    /*margin-bottom: 8px;
    margin-bottom: 1%;*/
    font-weight: bold;
    color: #555;
}

/*
.label-sanzioni {
    float:left;
    width:25%;
    margin-top:1%;
    text-align: center;
}
*/
select {
    margin-bottom: .5rem;
    /*width: 50%;*/
    width: 100%;
}

small {
    display: inline-block;
    width: 100%;
    color: #737373;
    font-size: 0.9rem;
    /*text-align: center;*/
}

input[type="text"] {
    width: calc(100% - 22px);
    padding: .75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

input[type="text"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

button[type="submit"] { /* Cambiato da input a button */
    background-color: #1A3841;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 95%;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    margin-left: 5%;
}

button[type="submit"]:hover {
    background-color: #0369A9;
    transform: translateY(-1px);
}

button[type="submit"]:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.info {
    font-size: 0.9em;
    color: #666;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

.info p {
    margin-bottom: 5px;
}

.info ul {
    padding-left: 20px;
    margin-top: 5px;
}

.info li {
    margin-bottom: 3px;
}

#results-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

#results-container h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#json-output {
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    white-space: pre-wrap; /* Preserve whitespace and wrap long lines */
    word-wrap: break-word; /* Break long words */
    max-height: 400px; /* Limit height */
    overflow-y: auto; /* Scroll if content exceeds height */
}

.error-message {
    color: red;
    font-weight: bold;
    text-align: center;
}

.loading-spinner {
    display: none; /* Hidden by default */
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/* Mostra solo le colonne obbligatorie su schermi piccoli 
@media (max-width: 768px) {
    th:not(.mandatory-column),td:not(.mandatory-column) {
        display: none;
    }
}
*/

/**
Screen reader only
*/
.sr-only {
    position: absolute; /* Rimuove l'elemento dal flusso del documento */
    width: 1px;         /* Rende l'elemento estremamente piccolo */
    height: 1px;        /* Rende l'elemento estremamente piccolo */
    padding: 0;         /* Rimuove qualsiasi padding */
    margin: -1px;       /* Sposta l'elemento fuori dallo schermo */
    overflow: hidden;   /* Nasconde qualsiasi contenuto che eccede la dimensione di 1x1px */
    clip: rect(0, 0, 0, 0); /* Obsoleto ma utile per browser meno recenti, assicura il clipping */
    white-space: nowrap; /* Previene il ritorno a capo, mantenendo tutto su una riga */
    border: 0;          /* Rimuove qualsiasi bordo */
}

@media screen and (max-width: 600px) {
    table, tbody, tr, th, td {
        display: block; /* Trasforma tutti gli elementi in blocchi per impilarli verticalmente */
    }

    .container {
        padding: .3rem;
        max-width: 100%;
    }

    tr {
        margin-bottom: .3rem; /* Spazio tra le "card" (ex righe) */
        border: 1px solid #ccc; /* Bordo attorno a ogni "card" */
        background-color: #fff; /* Sfondo bianco per le "card" */
        padding: .3rem; /* Spaziatura interna per ogni "card" */
        box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Leggera ombra per un effetto card */
        border-radius: .3rem;
    }

    th {
        /*background-color: transparent; *//* Rimuove il colore di sfondo dall'intestazione quando diventa un'etichetta */
        /*border-bottom: none; *//* Rimuove il bordo inferiore dall'intestazione */
        margin-bottom: .3rem; /* Spazio sotto l'etichetta */
        /*color: #555;*/ /* Colore più tenue per l'etichetta */
        font-size: 0.9em; /* Rende l'etichetta leggermente più piccola */
        text-transform: uppercase; /* Rende l'etichetta in maiuscolo */
    }

    td {
        border: none !important; /* Rimuove i bordi originali delle celle */
        /*padding: 5px 0;*/ /* Riduce la spaziatura interna */
        /*text-align: right;*/ /* Allinea il valore a destra */
        border-bottom: 1px solid #eee; /* Aggiunge un sottile bordo sotto ogni riga di dato */
    }

    /*td:last-child {
        /*border-bottom: 0; *//* Rimuove il bordo inferiore dall'ultimo elemento di ogni card */
    /*}
    */


}