/**
 * Stili CSS per il modulo Documenti
 */
/* Pagina lista documenti */
.documenti-list-page {
    padding: 20px 0;
}
.documenti-category-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}
.documenti-category-section:last-child {
    border-bottom: none;
}
.documenti-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #005cab;
}
.documenti-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.documenti-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}
.documenti-item:last-child {
    border-bottom: none;
}
.documenti-download-link {
    display: inline-flex;
    align-items: center;
    color: #005cab;
    text-decoration: none !important;
    font-size: 1rem;
    transition: color 0.3s ease;
}
.documenti-download-link:hover {
    color: #1a8aa3;
    text-decoration: underline;
}
.documenti-download-link i,
.documenti-download-link .material-icons {
    margin-right: 8px;
    font-size: 1.2rem;
}
.documenti-empty {
    color: #999;
    font-style: italic;
}
/* Modal popup */
#documentiModal .modal-header {
    background-color: #005cab;
    color: #fff;
    border-bottom: none;
}
#documentiModal .modal-title {
    font-weight: 600;
    color: #fff;
}
#documentiModal .close {
    color: #fff;
    opacity: 0.8;
}
#documentiModal .close:hover {
    opacity: 1;
}
#documentiModal .modal-body {
    padding: 25px;
}
.documenti-modal-intro {
    margin-bottom: 20px;
    color: #666;
}
.documenti-form .form-group {
    margin-bottom: 15px;
}
.documenti-form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}
.documenti-form .required {
    color: #e74c3c;
}
.documenti-form .form-control {
    border-radius: 4px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 14px;
}
.documenti-form .form-control:focus {
    border-color: #005cab;
    box-shadow: 0 0 0 0.2rem rgba(47, 181, 210, 0.25);
}
.documenti-form .form-check {
    padding-left: 1.5rem;
}
.documenti-form .form-check-input {
    margin-top: 0.3rem;
}
.documenti-form .form-check-label {
    font-size: 0.9rem;
    color: #666;
}
.documenti-form .form-check-label a {
    color: #f5821f;
}
/* reCAPTCHA */
.documenti-form .g-recaptcha {
    margin-top: 15px;
}
/* Messaggi */
.documenti-messages {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
}
.documenti-messages.error {
    background-color: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
}
.documenti-messages.success {
    background-color: #f0fff4;
    border: 1px solid #27ae60;
    color: #1e8449;
}
/* Pulsanti */
#documentiModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 15px 25px;
}
#documentiSubmitBtn {
    background-color: #005cab;
    border-color: #005cab;
    padding: 10px 25px;
    font-weight: 500;
}
#documentiSubmitBtn:hover {
    background-color: #1a8aa3;
    border-color: #1a8aa3;
}
#documentiSubmitBtn:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}
#documentiSubmitBtn .btn-loading {
    display: inline-flex;
    align-items: center;
}
#documentiSubmitBtn .btn-loading i {
    margin-right: 5px;
}

.modal-header:after {
  display: none !important;
}

#documentiModal .modal-footer #documentiSubmitBtn{
    background-color: #005cab;
}


#documentiModal .modal-footer .documenti-close-modal{
    background-color: #f5821f;
}


/* Responsive */
@media (max-width: 576px) {
    .documenti-category-title {
        font-size: 1.25rem;
    }
    #documentiModal .modal-body {
        padding: 15px;
    }
    .documenti-form .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left top;
    }
}
