/* ======================================================== */
/* STILI PAGINA CONTATTI ISOLATI                            */
/* ======================================================== */

.contact-page {
    width: 100% !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    display: block !important;
}

.contact-max-bounds {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
}

/* Griglia Desktop Default */
.contact-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
}

/* Card Base Standard */
.contact-page .card {
    background: #ffffff;
    border: 2px solid #003366;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.contact-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contact-page .card h2 {
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    color: #003366;
    font-weight: 700;
    text-align: center;
}

.contact-page .card p {
    font-size: 0.92rem;
    color: #444444;
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: break-word;
}

/* Form Card */
.form-card form {
    display: flex;
    flex-direction: column;
}

.form-card label {
    font-size: 0.82rem;
    font-weight: bold;
    margin-top: 8px;
    color: #333333;
}

.form-card input,
.form-card textarea {
    width: 100%;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
}

.form-card button.cta-button {
    margin-top: 14px;
    padding: 10px;
    background-color: #003366;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-card button.cta-button:hover {
    background-color: #002244;
}

/* ======================================================== */
/* SEZIONE SOCIAL BUTTONS (PALLINI)                        */
/* ======================================================== */

.social-section {
    text-align: center;
    padding: 10px 0;
}

.social-section h2 {
    font-size: 1.4rem;
    color: #003366;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #003366; /* Colore base uniforme per tutti e 3 */
    color: #ffffff !important;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

/* Effetti Hover specifici per brand */
.social-btn.instagram:hover {
    background-color: #E1306C;
}

.social-btn.facebook:hover {
    background-color: #1877F2;
}

.social-btn.whatsapp:hover {
    background-color: #25D366; /* Verde attivato solo all'hover */
}

/* ======================================================== */
/* MEDIA QUERIES RESPONSIVE                                 */
/* ======================================================== */

/* Tablet (sotto i 1024px) */
@media (max-width: 1024px) {
    .contact-grid-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile (sotto i 768px) */
@media (max-width: 768px) {
    .contact-page {
        padding: 20px 10px !important;
    }

    .contact-max-bounds {
        gap: 20px !important;
    }

    .contact-grid-row {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}