/* =================================
   STILI PAGINA CONTATTI (MODERN)
   ================================= */

body {
    background-color: #f8f9fa;
}

.contact-header {
    text-align: center;
    padding: 50px 0 40px;
}

.contact-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.contact-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* --- CONTENITORE PRINCIPALE --- */
.contact-wrapper {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto 60px;
}

@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr; /* Sinistra stretta, Destra larga */
    }
}

/* --- COLONNA INFO (SINISTRA) --- */
.contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 16px;
}

.info-list .icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.info-list .icon i {
    font-size: 18px;
}

/* Social Icons */
.social-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background-color: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* --- COLONNA FORM (DESTRA) --- */
.contact-form-box {
    padding: 40px;
    background-color: white;
}

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

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #f9f9f9;
}

.form-control:focus {
    border-color: #667eea;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

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

/* Pulsante */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Messaggi Feedback */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}

/* Messaggi Feedback */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c2c7;
}

/* =================================
   FIX FOOTER CENTRATO
   ================================= */
.footer, .main-footer {
    text-align: center !important;
    width: 100%;
    padding: 40px 20px;
    background: #333;
    color: white;
    margin-top: 60px;
}

.footer p {
    margin: 0 auto; /* Centra il paragrafo se ha una larghezza */
}