* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

:root {
    --primary-green: #4C5561 ;
    --primary-yellow: #FFC107;
    --primary-blue: #888E96;
    --text-dark: #333;
    --text-light: #666;
    --background-light: #888E96;
    --white: #fff;
}

body {
    background-color: #EAEAEA;
    color: #0C1A26;
    font-family: Arial, sans-serif;
}

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

.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem; 
    gap: 4rem; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 2rem; 
}

.logo-img {
    width: 200px;
    height: auto;
    border-radius: 5px;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/foresta.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 12rem 0 6rem; 
    text-align: center;
}

.hero h1 {
    font-size: 4rem; 
    margin-bottom: 1.5rem;
    
}

.hero p {
    font-size: 1.5rem; 
    margin-bottom: 2.5rem;
}


.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background: #081C2C ;
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: #081C2C;
}

.services {
    padding: 4rem 0;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.2s;
}
.service-card:nth-child(2) {
    animation-delay: 0.4s;
}
.service-card:nth-child(3) {
    animation-delay: 0.6s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonials-grid blockquote {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 0.8s ease-in-out forwards;
}

.testimonials-grid blockquote:nth-child(1) {
    animation-delay: 0.2s;
}
.testimonials-grid blockquote:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonials-grid blockquote:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-in-out forwards;
    animation-delay: 0.6s;
}

    .cta:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}



.why-us {
    background: var(--background-light);
    padding: 4rem 0;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.testimonials {
    padding: 4rem 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

blockquote {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cta {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    margin: 4rem 0;
    border-radius: 10px;

}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer {
    background: #081C2C;
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    font-size: 16px
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.8rem;
}


.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-green);
    padding-left: 25px;
}



/* Si realizza impostando inizialmente il testo con opacità 0 e traslazione verso il basso */
.hero h1, .hero p, .hero .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* E so aggiunge una classe attiva per far apparire il testo */
.hero.show h1 {
    opacity: 1;
    transform: translateY(0);
}

.hero.show p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.hero.show .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.nav-links a:hover {
    color: var(--primary-green);
}



/* Hamburger menu */
.hamburger {
    display: none;
    font-size: 30px;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1001;
}

/* Menu principale */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

/* Nascondi i link del menu in modalità mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;  /* Spazio sotto la navbar */
        left: 0;
        background-color: var(--white);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    
    /* Hamburger diventa visibile */
    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 10px 20px;
        text-decoration: none;
        color: var(--text-dark);
        text-align: center;
    }

    /* Effetto hover per i link */
    .nav-links a:hover {
        background-color: #f1f1f1;
        color: var(--primary-green);
    }
}


