/* Stili di base */
body {
    font-family: 'Cormorant Garamond', serif;
    margin: 0;
    line-height: 1.6;
    color: #4A4A4A; /* Un grigio scuro per il testo principale */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    color: #5C4033; /* Nocciola più scuro per i titoli */
    
}

.firma {
    font-family: 'Alex Brush', cursive;
    font-size: 2rem; /* Puoi regolare la dimensione del font */
    color: #000000;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0px;
}

/* Header e navigazione */
header {
    height: 0px;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(173, 216, 230, 0.8); /* Azzurro chiaro leggermente trasparente */
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 15px 0;
    transition: background 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(173, 216, 230, 1); /* Azzurro chiaro meno trasparente allo scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #bdaa75; /* Nocciola scuro per il logo/nome */
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    font-weight: 500;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    color: #5C4033; /* Nocciola scuro per i link del menu */
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8B4513; /* Una tonalità di nocciola più calda al passaggio del mouse */
}

.hamburger {
    display: none;
    color: #5C4033; /* Nocciola scuro per l'icona hamburger */
    font-size: 2em;
    cursor: pointer;
}

.mobile-nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #bdaa75; /* Nocciola scuro più trasparente per il menu mobile */
    z-index: 999;
    padding: 20px 0;
    list-style: none;
    flex-direction: column;
    text-align: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav-links.active {
    display: flex;
    transform: translateY(0);
}

.mobile-nav-links li {
    margin: 15px 0;
}

.mobile-nav-links a {
    color: #fff; /* Testo bianco sui link del menu mobile */
    text-decoration: none;
    font-size: 1.2em;
    text-transform: uppercase;
}

/* Sezione Home/Hero */
#hero {
    padding-top: 80px; /* Aggiunge spazio in alto per il menu fisso */
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px; /* Spazio tra immagine e testo */
    text-align: left;
}

.hero-image {
    flex: 1; /* Occupare metà spazio */
    min-width: 300px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-text {
    flex: 1; /* Occupare l'altra metà dello spazio */
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 0.2em;
}

.hero-text h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin-top: 0;
}



/* Animazioni */
@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hero-text.animate {
    animation: slideInLeft 1s ease-out forwards;
}

.hero-text.animate h1 { animation-delay: 0.2s; }
.hero-text.animate h2 { animation-delay: 0.4s; }
.hero-text.animate p { animation-delay: 0.6s; }

/* Sezioni */
.section-padded {
    padding: 10px 0;
}

.bg-light {
    background: #F0F8FF; /* Una sfumatura di azzurro molto chiaro per le sezioni leggere */
}

/* Sezione Servizi */
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05); /* Ombra più leggera */
    text-align: center;
}

.service-item h3 {
    color: #5C4033; /* Nocciola scuro */
    margin-top: 10px;
}

/* Sezione Aree di competenza */
.expertise-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: justify;
}

.expertise-content h3 {
    color: #5C4033; /* Nocciola scuro */
    margin-top: 0px;
    margin-bottom: 0px;
}

.expertise-text {
    flex: 1;
}

.expertise-description {
    flex: 2;
}

/* Form di Contatto */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#contact-form button {
    background: #ADD8E6; /* Azzurro chiaro per il pulsante */
    color: #5C4033; /* Testo nocciola scuro sul pulsante */
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form button:hover {
    background: #87CEEB; /* Azzurro più scuro al passaggio del mouse */
}

/* Footer */
footer {
    background: #bdaa75; /* Nocciola scuro per il footer */
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Stili per il pop-up */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    font-family: 'Playfair Display', serif;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

.modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-icon-fa {
    color: #ADD8E6; /* Azzurro chiaro per l'icona di conferma */
    font-size: 10px;
    margin-bottom: 20px;
}

/* Animazione per la sezione "Contattami" allo scroll */
#contact h2,
#contact p,
#contact form {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#contact.animate h2,
#contact.animate p,
#contact.animate form {
    opacity: 1;
    transform: translateY(0);
}

#contact.animate h2 { transition-delay: 0.1s; }
#contact.animate p { transition-delay: 0.2s; }
#contact.animate form { transition-delay: 0.3s; }


/* =======================================================
   RESPONSIVITÀ PER MOBILE (schermi fino a 768px)
   ======================================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .logo {
        position: relative;
        left: 0;
        transform: none;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image, .hero-text {
        flex-basis: 100%;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-image img {
        height: auto;
        max-height: auto;
    }
    
    .hero-text {
        padding: 20px;
    }

    .hero-text h1 {
        font-size: 2em;
    }
    
    .hero-text h2 {
        font-size: 1.2em;
    }

    .expertise-content {
        flex-direction: column;
    }

    footer p {
        font-size: 0.8em;
    }
    
    .modal-content {
        width: 90%;
        max-width: 90%;
    }
}