/**
 * CONTATTI - Stili Pagina Contatti
 * Gian Mario Ravasi - Arti Marziali
 */

/* Hero Section */
.contatti-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-light) 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contatti-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contatti-hero .description {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

/* Section */
.contatti-section {
    background: var(--background-light);
    padding: 0 0 5rem;
}

/* Form Card */
.form-card {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(171, 158, 149, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox Privacy */
.form-check {
    margin: 2rem 0;
    padding-left: 0;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
    cursor: pointer;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    cursor: pointer;
    vertical-align: middle;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-check-label a:hover {
    color: var(--primary-dark);
}

/* Submit Button */
.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(171, 158, 149, 0.3);
}

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

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Alert Messages */
.alert {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    color: #155724;
}

.alert-success strong {
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    color: #721c24;
}

.alert-danger strong {
    color: #dc3545;
}

.alert-danger ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.alert-danger li {
    margin-bottom: 0.3rem;
}

/* Info Card */
.info-card {
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 2rem;
}

.info-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--secondary-color);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 0.8rem 0;
    color: var(--text-dark);
    font-size: 1rem;
    border-bottom: 1px solid var(--secondary-color);
}

.benefits-list li:last-child {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 991px) {
    .contatti-hero h1 {
        font-size: 2.5rem;
    }
    
    .form-card {
        padding: 2rem;
    }
    
    .info-card {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .contatti-hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .contatti-hero h1 {
        font-size: 2rem;
    }
    
    .contatti-hero .description {
        font-size: 1rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .btn-submit {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}
