/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

  .table-bordered > thead > tr > th {
    border: 1px solid #dadada;
  }
  .table-bordered > thead > tr > td {
    border: 1px solid #dadada;
  }
  
  /* Testo guida in linea */
.ls-questionhelp {
    color: #666666 !important;
}

/* Nasconde il simbolo ? */
.ls-questionhelp::before {
    display: none !important;
    content: none !important;
}

.ls-questionhelp .fa-question,
.ls-questionhelp .fa-question-circle,
.ls-questionhelp .fa-circle-question {
    display: none !important;
}
  
  
.survey-name {
    display: none !important;
}
/* Nasconde il titolo dell'indagine */
.survey-name,
.surveytitle {
    display: none !important;
}.navbar-brand {
    display: none !important;

}
/* Asterisco domanda obbligatoria */
.asterisk .text-danger {
    color: #0f5380 !important;
}


/* Pulsante finale INVIA */
#ls-button-submit {
    background-color: #0f5380 !important;
    border-color: #0f5380 !important;
    color: #ffffff !important;
}

/* Hover e focus */
#ls-button-submit:hover,
#ls-button-submit:focus {
    background-color: #1a83c9 !important;
    border-color: #1a83c9 !important;
    color: #ffffff !important;
}




/* ==================================================
   OPZIONE "NESSUNA RISPOSTA"
   ================================================== */

/* Nasconde "Nessuna risposta" nelle domande Lista (Radio Button) */
.list-radio .noanswer-item {
    display: none !important;
}


/* ==================================================
   GRUPPI DI DOMANDE - Limesurvey
   ================================================== */

/* 1. Il riquadro che racchiude l'intero gruppo */
.group-container {
    background-color:#FBFCFE;
    border: 1px solid #c8ced3;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0; /* A zero, i margini interni li gestiscono titolo e domande */
    margin-bottom: 40px;
    overflow: hidden;
}

/* 2. Il titolo del gruppo */
.group-container .group-name,
.group-container .group-title,
.group-container .group-title h1,
.group-container .group-title h2,
.group-container .group-title h3 {
    background-color: #f4f6f8;
    color: #0F5380;
    margin: 0; 
    padding: 15px 25px;
    border-bottom: 1px solid #c8ced3;
    font-size: 1.4em;
    font-weight: bold;
    text-align: left !important;
    width: 100%;
}

/* 3. Descrizione del gruppo */
.group-container .group-description {
    padding: 20px 25px 0 25px;
}

/* 4. Spaziatura standard per TUTTE le singole domande */
.group-container .question-container,
.group-container .ls-question-container {
    margin-bottom: 0 !important; 
    padding: 15px 25px 25px 25px !important; /* Alto 15px, Destra 25px, Basso 25px, Sinistra 25px */
    background-color: transparent !important;
    border: none;
    box-shadow: none;
}


/* ==================================================
   DOMANDE AFFIANCATE (Desktop)
   ================================================== */

/* Domanda di SINISTRA */
.domanda-sx {
    width: 50% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding-left: 25px !important;  /* Mantiene la distanza dal bordo sinistro del riquadro */
    padding-right: 15px !important; /* Spazio verso il centro */
    --bs-gutter-x: 0 !important;
}

/* Domanda di DESTRA */
.domanda-dx {
    width: 50% !important;
    float: left !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;  /* Spazio verso il centro */
    padding-right: 25px !important; /* Mantiene la distanza dal bordo destro del riquadro */
    --bs-gutter-x: 0 !important;
}

/* Ripristina l'andata a capo per le domande successive */
.domanda-dx + .question-container,
.domanda-dx + .ls-question-container {
    clear: both !important;
}


/* ==================================================
   COMPORTAMENTO RESPONSIVE (Smartphone/Tablet)
   ================================================== */

@media (max-width: 768px) {
    .domanda-sx, 
    .domanda-dx {
        width: 100% !important; 
        float: none !important; 
        /* Ripristina i 25px simmetrici come le altre domande normali */
        padding-left: 25px !important; 
        padding-right: 25px !important;
    }
}

/* Riduce lo spazio verticale sopra e sotto i campi di risposta */
.question-container .ls-answers,
.ls-question-item .ls-answers,
.question-title-container {
    padding-top: 2px !important;    /* Riduce lo spazio tra il titolo e il campo */
    padding-bottom: 3px !important; /* Riduce lo spazio in fondo al campo */
}

/* Nasconde il messaggio di limite SOLO per le domande di caricamento file */
.question-container.file .em_num_answers,
.question-container.upload .em_num_answers,
.type-upload .em_num_answers {
    display: none !important;
}