body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #333;
    background: #f7f7f7;
}

/* HEADER */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #003049;
    color: white;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

/* MENU DESKTOP */
nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* MENU MOBILE */
.menu-toggle {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

nav.open {
    display: block;
}

/* HERO */
.hero {
    background: url('../img/foto1.jpg') center/cover no-repeat;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #0077b6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.btn:hover {
    background: #005f8a;
}

/* SERVIZI */
.servizi {
    padding: 60px 20px;
    text-align: center;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 25px;
    width: 260px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* GALLERIA */
.galleria {
    padding: 60px 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CONTATTI */
.contatti {
    padding: 60px 20px;
    text-align: center;
    background: #e0f7ff;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #003049;
    color: white;
}

/* 📱 VERSIONE SMARTPHONE */
@media (max-width: 768px) {

    .topbar {
        padding: 15px 20px;
    }

    .logo img {
        height: 45px;
    }

    nav {
        display: none;
        flex-direction: column;
        background: #003049;
        padding: 10px 0;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 55vh;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }
}

/* WHATSAPP BUTTON */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

.whatsapp-button img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #25D366;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    object-fit: contain;
}

.whatsapp-button img:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

