/* ============================================================================
   CASATESE ACCREDITI - FRONTEND STYLES (CON IMMAGINE HERO)
   ============================================================================ */

.casatese-accrediti-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Immagine Hero */
.accrediti-hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accrediti-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Contenuto della pagina */
.accrediti-content {
    background: #f8fafc;
    padding: 20px;
    border-left: 4px solid #4527A0;
    margin-bottom: 20px;
    border-radius: 4px;
    line-height: 1.6;
}

.accrediti-content p {
    margin-bottom: 10px;
}

.accrediti-content b,
.accrediti-content strong {
    color: #4527A0;
    font-weight: 600;
}

.accrediti-content i {
    color: #666;
}

.accrediti-content a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-content a:hover {
    text-decoration: underline;
}

/* Header */
.casatese-accrediti-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4527A0;
}

.casatese-accrediti-header h2 {
    color: #4527A0;
    font-size: 28px;
    margin-bottom: 15px;
}

.accrediti-info,
.accrediti-nota {
    background: #f5f5f5;
    padding: 15px;
    border-left: 4px solid #4527A0;
    margin: 10px 0;
    line-height: 1.6;
}

.accrediti-nota {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.accrediti-info a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-info a:hover {
    text-decoration: underline;
}

/* Form Styles */
.accrediti-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #d32f2f;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4527A0;
    box-shadow: 0 0 0 3px rgba(69, 39, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: #4527A0;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    min-width: 200px;
}

.btn-submit:hover {
    background: #311B92;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.accrediti-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.accrediti-messages.show {
    display: block;
}

.accrediti-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.accrediti-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.accrediti-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.accrediti-footer h3 {
    color: #4527A0;
    font-size: 20px;
    margin-bottom: 10px;
}

.accrediti-footer a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-footer a:hover {
    text-decoration: underline;
}

/* Validation Styles */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

/* Responsive */
@media (max-width: 768px) {
    .casatese-accrediti-container {
        margin: 20px;
        padding: 20px;
    }
    
    .casatese-accrediti-header h2 {
        font-size: 24px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 12px;
    }
    
    .accrediti-hero-image {
        margin-bottom: 20px;
    }
    
    .accrediti-featured-img {
        max-height: 250px;
    }
}
/* ============================================================================
   CASATESE ACCREDITI - FRONTEND STYLES (CON IMMAGINE HERO)
   ============================================================================ */

.casatese-accrediti-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Immagine Hero */
.accrediti-hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accrediti-featured-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* Contenuto della pagina */
.accrediti-content {
    background: #f8fafc;
    padding: 20px;
    border-left: 4px solid #4527A0;
    margin-bottom: 20px;
    border-radius: 4px;
    line-height: 1.6;
}

.accrediti-content p {
    margin-bottom: 10px;
}

.accrediti-content b,
.accrediti-content strong {
    color: #4527A0;
    font-weight: 600;
}

.accrediti-content i {
    color: #666;
}

.accrediti-content a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-content a:hover {
    text-decoration: underline;
}

/* Header */
.casatese-accrediti-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4527A0;
}

.casatese-accrediti-header h2 {
    color: #4527A0;
    font-size: 28px;
    margin-bottom: 15px;
}

.accrediti-info,
.accrediti-nota {
    background: #f5f5f5;
    padding: 15px;
    border-left: 4px solid #4527A0;
    margin: 10px 0;
    line-height: 1.6;
}

.accrediti-nota {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.accrediti-info a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-info a:hover {
    text-decoration: underline;
}

/* Form Styles */
.accrediti-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #d32f2f;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4527A0;
    box-shadow: 0 0 0 3px rgba(69, 39, 160, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: #4527A0;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    min-width: 200px;
}

.btn-submit:hover {
    background: #311B92;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.accrediti-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.accrediti-messages.show {
    display: block;
}

.accrediti-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.accrediti-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.accrediti-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.accrediti-footer h3 {
    color: #4527A0;
    font-size: 20px;
    margin-bottom: 10px;
}

.accrediti-footer a {
    color: #4527A0;
    text-decoration: none;
    font-weight: 600;
}

.accrediti-footer a:hover {
    text-decoration: underline;
}

/* Validation Styles */
input:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #d32f2f;
}

input:valid:not(:placeholder-shown),
select:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border-color: #4caf50;
}

/* Responsive */
@media (max-width: 768px) {
    .casatese-accrediti-container {
        margin: 20px;
        padding: 20px;
    }
    
    .casatese-accrediti-header h2 {
        font-size: 24px;
    }
    
    .btn-submit {
        width: 100%;
        padding: 12px;
    }
    
    .accrediti-hero-image {
        margin-bottom: 20px;
    }
    
    .accrediti-featured-img {
        max-height: 250px;
    }
}
