/* STILI PAGINA RISORSE
------------------------------------ */

.document-list {
    max-width: 900px;
    margin: 0 auto;
}

.document-category {
    margin-bottom: 50px;
}

/* Nuova regola per ridurre lo spazio sopra il primo titolo */
.document-category:first-child {
    margin-top: -20px;
}

.document-category h2 {
    font-size: 1.8rem;
    color: var(--rosso-unipd);
    border-bottom: 2px solid var(--rosso-unipd);
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.document-category ul {
    list-style: none;
    padding: 0;
}

.document-category li {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.document-category li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.07);
}

.document-category li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--blu-unipd);
    margin-bottom: 8px;
}

.document-category li a:hover {
    color: var(--rosso-unipd);
}

.document-category li a i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--rosso-unipd);
}

.document-category li p {
    margin: 0 0 0 38px; /* Allinea con il testo del link */
    color: #555;
    font-size: 0.95rem;
}

/* --- STILI PASSWORD BOX --- */
#password-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.password-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.password-icon {
    font-size: 2.5rem;
    color: var(--rosso-unipd);
    margin-bottom: 15px;
}

.password-box h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.password-box p {
    margin-bottom: 20px;
    color: #666;
}

#password-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1rem;
}

#password-input:focus {
    outline: none;
    border-color: var(--rosso-unipd);
}

.error-message {
    color: #d93025;
    margin-top: 10px;
    min-height: 1.2em;
}