/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f9f8;
}

section {
    padding: 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3 {
    color: #2c4f4a;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

/* LOGO */
.logo {
    max-width: 200px;
}

.logo-footer {
    max-width: 150px;
    margin-bottom: 0px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, #cfe7df, #f0f6f4);
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
}

.hero h3 {
    font-weight: normal;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* SEZIONI */
.about,
.services,
.contacts {
    background-color: #ffffff;
}

/* SERVIZI */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: #f0f6f4;
    padding: 35px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 15px;
}

.service-icon img {
    width: 100%;
}

/* CONTATTI */
.contact-info {
    margin-top: 30px;
    font-size: 1.05rem;
}

.contact-info strong {
    display: block;
    margin-top: 10px;
}

/* FOOTER */
footer {
    background-color: linear-gradient(135deg, #cfe7df, #f0f6f4);
    color: #2c4f4a;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}
footer p {
    color: #2c4f4a;   /* colore normale del testo */
    text-decoration: none;  /* niente sottolineatura */
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .logo {
        max-width: 110px;
    }
    .contacts-flex {
        flex-direction: column;
    }

    .map-container iframe {
        height: 250px;
    }

    .about-flex {
        flex-direction: column;
        text-align: center;
    }

    .about-photo img {
        width: 150px;
        height: 150px;
    }

    .whatsapp-link img {
        width: 16px !important;
        height: 16px !important;
    }

    /* Riduce WhatsApp su mobile */
    .whatsapp-link img {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        min-height: 16px;
        max-width: 16px;
        max-height: 16px;
    }
}

/* SU DI ME CON FOTO */
.about-flex {
    display: flex;
    align-items: center;
    gap: 40px;
}

/*.about-photo img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}*/

.about-photo img {
    width: 350px;               /* puoi mantenere o cambiare */
    height: auto;               /* mantiene proporzioni reali */
    object-fit: contain;        /* mostra l’immagine completa senza taglio */
    border-radius: 5%;           /* rimuove il cerchio */
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.about-text {
    flex: 1;
}

/* =========================
   SEZIONE CONTATTI
========================= */

/* Contenitore principale */
.contacts-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap; /* consente ai contenuti di andare a capo su mobile */
    width: 100%;
}

/* Contatti */
.contact-info {
    flex: 1 1 300px; /* larghezza minima 300px */
}

/* Righe di contatto (telefono, sede) */
.phone-row {
    display: flex;
    align-items: baseline; /* allinea etichetta e testo */
    flex-direction: column; /* Verticale: etichetta sopra, contenuto sotto */
    gap: 5px;               /* Spazio tra etichetta e numero/WhatsApp */
    margin-top: 10px;
}

.phone-label {
    min-width: 80px; /* allinea tutte le etichette */
}

.phone-actions {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* Link contatti */
.phone-link,
.address-link {
    color: #2c4f4a;
    text-decoration: none;
    font-weight: 500;
}

.phone-link:hover {
    text-decoration: underline;
}

/* WhatsApp */
.whatsapp-link img {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    display: block;
    position: relative;
    top: 1px;
    color: #2c4f4a;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp-link {
    text-decoration: none;
    color: #25D366; /* verde WhatsApp */
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px; /* spazio tra testo e icona */
}

.whatsapp-link:hover {
    opacity: 0.8;
}


/* Mappa */
.map-container {
    flex: 1 1 300px; /* larghezza minima 300px */
    max-width: 100%; /* impedisce che esca fuori */
    border-radius: 15px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
}

#contact-form input,
#contact-form textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none; /* disabilita il ridimensionamento */
}

#contact-form button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: #0056b3;
}

#contact-form button {
    padding: 10px 15px;
    background-color: #d9ece6; /* colore di sfondo del pulsante */
    color: #2c4f4a; /* colore del testo */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background-color: #9de5ce; /* colore di sfondo al passaggio del mouse */
}
