.sezione-bibliografia {
    max-width: 1250px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.titolo-centrale-container { text-align: center; margin-bottom: 30px; }
.titolo-elegante { color: #3E6167; margin: 0; font-size: 2.2rem; }
.linea-decorativa { height: 2px; width: 50px; background: #C19A6B; margin: 10px auto; }
.conteggio-voci { font-size: 0.8rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }

.layout-archivio { display: flex; gap: 30px; align-items: flex-start; }

.sidebar-autori {
    flex: 0 0 280px;
    background: #f9f7f4;
    border: 1px solid #e0dcd5;
    border-radius: 4px;
    padding: 15px;
    max-height: 80vh;
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #C19A6B;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.sidebar-autori h3 { font-size: 0.85rem; color: #3E6167; text-transform: uppercase; margin: 0; }

.btn-pulisci {
    font-size: 10px;
    cursor: pointer;
    background: #3E6167;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    transition: 0.3s;
}

.lista-nomi-rapida button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 10px 5px;
    font-family: 'Georgia', serif;
    font-size: 0.85rem;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
}

.lista-nomi-rapida button:hover {
    color: #C19A6B;
    background: #fff;
    padding-left: 10px;
}

.contenuto-documenti { flex: 1; }

#searchInput {
    width: 100%;
    padding: 14px;
    margin-bottom: 25px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.item-documento {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}
.item-documento:hover { background: #fdfaf5; border-left: 4px solid #C19A6B; }

.testo-documento { flex: 1; }
.categoria { font-size: 9px; color: #C19A6B; font-weight: bold; text-transform: uppercase; }
.titolo-opera { font-size: 1.15rem; margin: 4px 0; color: #333; }
.dettagli-tecnici { font-size: 0.9rem; color: #666; margin: 0; }


.azioni {
    margin-left: 20px;
    display: flex;
    gap: 10px; 
}

.btn-download, .btn-anteprima {
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.btn-download {
    background-color: #3E6167;
    color: white;
    border: 1px solid #3E6167;
}

.btn-download:hover {
    background-color: #C19A6B;
    border-color: #C19A6B;
}

.btn-anteprima {
    background-color: white;
    color: #3E6167;
    border: 1px solid #3E6167;
}

.btn-anteprima:hover {
    background-color: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 900px) {
    .header-titolo-statico { display: none; }
    header { padding: 0 20px; }
}
