* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: #2f2f2f;
    background-color: #f5f5f5;
}

/* Navbar */
#main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#main-nav.scrolled {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

#main-nav .logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #A7C4A0;
    font-weight: 700;
}

#main-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

#main-nav .nav-links a {
    text-decoration: none;
    color: #2f2f2f;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

#main-nav .nav-links a:hover {
    color: #A7C4A0;
}

#main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #A7C4A0;
    transition: width 0.3s ease;
}

#main-nav .nav-links a:hover::after {
    width: 100%;
}

#main-nav .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

#main-nav .hamburger span {
    width: 25px;
    height: 3px;
    background: #2f2f2f;
    transition: all 0.3s ease;
}

#main-nav .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#main-nav .hamburger.open span:nth-child(2) {
    opacity: 0;
}

#main-nav .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('hero-image.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    filter: brightness(1.2);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

.hero-particles::before {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { opacity: 1; }
    100% { transform: translateY(-50vh); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Chi Sono */
.chi-sono {
    padding: 4rem 2rem;
    background: #FAFAF5;
}

.chi-sono h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #A7C4A0;
    margin-bottom: 2rem;
    text-align: center;
}

.chi-sono-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.chi-sono .image-container {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
}

.chi-sono .logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.chi-sono .profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
}

.chi-sono p {
    flex-grow: 1;
    text-align: left;
    font-size: 1rem;
    color: #2f2f2f;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Servizi */
.servizi {
    padding: 4rem 2rem;
    background: #fff;
    text-align: center;
}

.servizi h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #A7C4A0;
    margin-bottom: 2rem;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.servizio {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servizio:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.servizio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.servizio h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #A7C4A0;
    margin-bottom: 0.5rem;
    position: relative;
}

.servizio h3::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #A7C4A0;
    transition: width 0.3s ease;
}

.servizio:hover h3::after {
    width: 100%;
}

.servizio h3 i {
    margin-right: 0.5rem;
}

.servizio p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Sezione Naturopatia Como */
#naturopatia-como {
    padding: 4rem 2rem;
    background: #FAFAF5;
    text-align: center;
}

/* Contatti */
.contatti {
    padding: 4rem 2rem;
    background: url('https://images.unsplash.com/photo-1507499739999-097706ad8914?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: relative;
}

.contatti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.contatti h2,
.contatti p,
.contatti form {
    position: relative;
    z-index: 1;
}

.contatti h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contatti p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.contatti form {
    max-width: 500px;
    margin: 0 auto;
}

.contatti input,
.contatti textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border: none;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    color: #2f2f2f;
}

.contatti textarea {
    min-height: 120px;
}

/* Footer */
footer {
    background: #F5F5E5;
    padding: 2rem;
    text-align: center;
    color: #2f2f2f;
}

footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #A7C4A0;
    margin-bottom: 0.5rem;
}

footer p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contacts p {
    margin: 0.5rem 0;
}

.footer-contacts i {
    margin-right: 0.5rem;
    color: #A7C4A0;
}

.social-icons {
    margin: 1rem 0;
}

.social-icons a {
    color: #2f2f2f;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a.rotate:hover {
    transform: rotate(360deg);
    color: #A7C4A0;
}

.footer-copyright {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 1rem;
}

/* Pulsanti */
.btn,
.btn-small {
    background: linear-gradient(to bottom, #A7C4A0, #8B6F47);
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-small {
    padding: 0.6rem 1.5rem;
}

.btn:hover,
.btn-small:hover {
    transform: scale(1.05);
}

.btn.glow:hover {
    box-shadow: 0 0 15px rgba(167, 196, 160, 0.7);
}

/* Effetto MorphingGlow */
.morphingGlow:hover {
    animation: morphingGlow 1.5s infinite;
}

@keyframes morphingGlow {
    0% { box-shadow: 0 0 5px rgba(167, 196, 160, 0.3); }
    50% { box-shadow: 0 0 20px rgba(139, 111, 71, 0.7); }
    100% { box-shadow: 0 0 5px rgba(167, 196, 160, 0.3); }
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #main-nav .hamburger {
        display: flex;
    }
    #main-nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    #main-nav .nav-links.active {
        display: flex;
    }
    #main-nav .nav-links li {
        margin: 0.5rem 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .chi-sono-content {
        flex-direction: column;
        text-align: center;
    }
    .chi-sono .image-container {
        flex-direction: column;
    }
    .chi-sono .logo,
    .chi-sono .profile-img {
        width: 250px;
        height: 250px;
    }
    .chi-sono p {
        text-align: center;
    }
}
