/* 
 * Stili migliorati per la pagina contatti
 * File: assets/css/contact.css
 */

/* Hero section */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, #0C8169 0%, #064039 100%);
    padding: 5rem 0;
    overflow: hidden;
    color: #fff;
    margin-bottom: 4rem;
    width: 100%;
    text-align: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../css/hero.jpg');
    background-size: cover;
    opacity: 0.09;
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.7;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 3px 6px rgba(0,0,0,0.15);
    color: #fff;
}

.contact-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.9;
    color: #fff;
}

.contact-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-badge {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.contact-badge:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}

.contact-badge i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
    color: #fff;
}

.contact-badge span {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    color: #fff;
}

/* Main contact section */
.contact-section {
    padding: 0 0 5rem 0;
    background-color: #f8f9fa;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Form card */
.contact-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    height: 100%;
}

.contact-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contact-card-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.contact-card-header h3 {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #0C8169;
    margin-bottom: 0.75rem;
}

.contact-card-icon {
    margin-right: 0.75rem;
    background-color: rgba(12, 129, 105, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-card-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Alert styles */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.alert-success {
    background-color: #e8f6ee;
    border-left: 4px solid #0C8169;
    color: #0C8169;
}

.alert-danger {
    background-color: #fdeded;
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Form styling */
.contact-form {
    margin-top: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #dc3545;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    transition: all 0.3s ease;
}

.textarea-icon i {
    top: 1.2rem;
    transform: none;
}

.input-icon .form-control {
    padding-left: 2.75rem;
    height: 50px;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.input-icon textarea.form-control {
    height: auto;
    padding-top: 1rem;
}

.input-icon.focused i {
    color: #0C8169;
}

.input-icon.filled i {
    color: #0C8169;
}

.input-icon.error i {
    color: #dc3545;
}

.form-control:focus {
    border-color: #0C8169;
    box-shadow: 0 0 0 0.25rem rgba(12, 129, 105, 0.15);
}

.input-icon.error .form-control {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: '\f071';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.privacy-notice {
    background-color: #f8f9fa;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.privacy-notice i {
    color: #0C8169;
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.privacy-notice p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #666;
}

.privacy-notice a {
    color: #0C8169;
    text-decoration: none;
    font-weight: 500;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

.form-button {
    text-align: center;
}

.submit-btn {
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0C8169 0%, #085446 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(12, 129, 105, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: #fff;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #085446 0%, #0C8169 100%);
    box-shadow: 0 6px 15px rgba(12, 129, 105, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.submit-btn i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
    color: #fff;
}

.submit-btn span {
    color: #fff;
}

/* Contact Info styles */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 2rem;
    height: 100%;
}

.contact-info-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.contact-info-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0C8169;
    margin-bottom: 0.75rem;
}

.contact-info-header p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-info-content {
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(12, 129, 105, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #0C8169;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: #333;
}

.contact-link {
    display: block;
    color: #0C8169;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #064039;
    text-decoration: underline;
}

.contact-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0;
}

.contact-info-footer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.contact-info-footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
}

.schedule-day {
    font-weight: 500;
    color: #333;
}

.schedule-hours {
    color: #666;
}

/* Enhanced CTA Section */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.cta-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.cta-feature i {
    color: #0C8169;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.cta-feature span {
    font-weight: 500;
    color: #333;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0C8169 0%, #085446 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(12, 129, 105, 0.2);
    transition: all 0.3s ease;
    color: #fff;
}

.cta-button:hover {
    background: linear-gradient(135deg, #085446 0%, #0C8169 100%);
    box-shadow: 0 6px 15px rgba(12, 129, 105, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

.cta-button i {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .contact-container {
        padding: 0 1.5rem;
    }
    
    .cta-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-badges {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        grid-template-columns: 1fr;
    }
    
    .cta-image {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .contact-hero {
        padding: 3rem 0;
        margin-bottom: 2rem;
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-features {
        flex-direction: column;
    }
    
    .cta-feature {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .contact-section {
        padding: 0 0 3rem 0;
    }
    
    .contact-card, 
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .contact-card-header h3,
    .contact-info-header h3 {
        font-size: 1.3rem;
    }
    
    .contact-card-header p,
    .contact-info-header p {
        font-size: 0.9rem;
    }
    
    .contact-container,
    .cta-container {
        padding: 0 1rem;
    }
}