/*******************************************************
    UNIBS CUSTOM CSS - Optimized Version
    Ateneo: Università degli Studi di Brescia
    Colore Istituzionale: #27326E (Blu)
    Colore Accent: #C59341 (Oro)
*******************************************************/

/* --- 1. Struttura e Navigazione --- */

/* Tabella e bordi */
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
    border: 1px solid #dadada;
}

/* Navbar: Sfondo bianco e linea di separazione blu */
#survey-nav.navbar {
    background-color: #ffffff !important;
    border-bottom: 3px solid #27326E !important;
    min-height: 90px;
}

/* Gestione Logo */
.logo-container {
    padding: 12px 0 12px 20px !important;
    display: inline-block;
    vertical-align: middle;
}

.logo-container img {
    max-height: 65px !important; 
    width: auto;
    height: auto;
    display: block;
}

/* Titolo sondaggio nella Navbar (se logo spento) */
.navbar-brand, #survey-nav .nav-link {
    color: #27326E !important;
    font-weight: 600;
}

/* --- 2. Testi, Titoli e Link (Uniformazione Blu UniBS) --- */

/* Raggruppamento globale per tutti gli elementi testuali blu */
h1, h2, h3, h4, .h4,
.survey-name, .group-title, .question-title,
.survey-description, .description-text, .text-info,
#welcome-container, .welcome-text, .welcome-content p,
.privacy-info, .privacy-text, .asterisk,
.question-number, .ls-questionhelp:before,
.text-primary, span.text-info, .jumbotron p, .col-centered p {
    color: #27326E !important;
}

/* Titoli e nomi in grassetto */
h1, h2, h3, .survey-name, .group-title, .question-title {
    font-weight: 700;
}

/* Link Generici e Specifici (Privacy, Welcome, etc.) */
a, .btn-link, .ls-privacy-link, .checkbox-item label {
    color: #27326E !important;
    text-decoration: underline !important;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Stato Hover dei Link */
a:hover, a:focus, .btn-link:hover {
    color: #1a224d !important;
    text-decoration: underline !important;
}

/* Correzione per testi muted (accessibilità) */
.text-muted {
    color: #4a4a4a !important;
}

/* --- 3. Pulsanti e Interattività --- */

/* Bottoni Primari (Avanti, Invia) */
.btn-primary, 
.button-submit, 
.ls-move-next-btn, 
.ls-move-submit-btn {
    background-color: #27326E !important;
    border-color: #27326E !important;
    color: #ffffff !important;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

/* Hover Bottoni Primari (Passaggio all'Oro UniBS) */
.btn-primary:hover, 
.button-submit:hover, 
.ls-move-next-btn:hover, 
.ls-move-submit-btn:hover {
    background-color: #C59341 !important;
    border-color: #C59341 !important;
    color: #ffffff !important;
}

/* Bottoni Secondari (Indietro) */
.btn-secondary, 
.ls-move-previous-btn {
    background-color: #f8f9fa !important;
    border-color: #27326E !important;
    color: #27326E !important;
    border-radius: 4px;
}

.btn-secondary:hover, 
.ls-move-previous-btn:hover {
    background-color: #27326E !important;
    color: #ffffff !important;
}

/* Elementi attivi e ProgressBar */
.progress-bar,
.dropdown-item.active, 
.dropdown-item:active,
.list-group-item.active {
    background-color: #27326E !important;
    border-color: #27326E !important;
}

/* --- 4. Layout Domanda --- */

/* Bordo laterale estetico per focus sulla domanda */
.question-container {
    border-left: 5px solid #27326E !important;
    padding-left: 15px;
}