/* Stile Globale e Variabili Colore */
:root {
    --primary-color: #c4a980; /* Marrone/Oro dal biglietto */
    --secondary-color: #f0ebe5; /* Beige/Grigio chiaro dal biglietto */
    --text-color: #333333;
    --white-color: #ffffff;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Dancing Script', cursive;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* Previene overflow orizzontale */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Rimuove scroll orizzontale */
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden; /* Rimuove scroll orizzontale */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    padding: 0 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://via.placeholder.com/1920x1080/c4a980/ffffff?text=Immagine+di+Sfondo+Qui') no-repeat center center/cover;
    color: var(--white-color);
}

.hero-content {
    background: none;
    padding: 2rem;
    color: var(--white-color);
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--white-color);
    border-color: var(--white-color);
}

/* Sezioni Contenuto */
.content-section {
    padding: 4rem 2rem;
    text-align: center;
}

.content-section-alt {
    background-color: var(--secondary-color);
    padding: 4rem 2rem;
    text-align: center;
}

.content-section h2, .content-section-alt h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-family: var(--font-secondary);
}

/* Chi Siamo */
.about-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
}

/* Servizi */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Contatti */
.contact-info {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: left;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container {
    display: block;
    max-width: 1000px;        /* se vuoi un limite */
    width: 100%;              /* prende tutto lo spazio disponibile in sezione */
    margin: 0 auto;           /* centrata */
    border: 5px solid var(--secondary-color);
    box-sizing: border-box;   /* il bordo viene incluso nella larghezza */
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;                /* nessun bordo extra */
}


/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 2rem 1rem;
}

.social-icons {
    margin-bottom: 1rem;
}

.social-icons a {
    color: #c4a980; /* oro visibile */
    font-size: 1.5rem;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #f0e6c8; /* più chiaro in hover */
}

/* Bottone Contatto Fisso */
.contact-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap;
}

.contact-float-button:hover {
    transform: scale(1.05);
}

.contact-float-button i {
    font-size: 1.5rem;
}

a[href*="wa.me"] {
    background-color: #25D366; /* verde WhatsApp */
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1050;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        padding: 1.5rem 0;
    }

    .hamburger-menu {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-container {
        flex-direction: column;
    }
}
