/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: #fafbfc;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: #f0f4f8;
}

.text-center {
    text-align: center;
}

/* Header & Nav */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
}

.desktop-nav {
    display: block;
}

.logo span {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #4a7c59;
}

.btn-nav {
    background-color: #4a7c59;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #edf4ee 0%, #dfead8 100%);
    padding: 110px 0 90px;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #4a7c59;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 20px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.15;
}

.hero-content p {
    font-size: 1.12rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #555;
}

.hero-content .hero-intro {
    max-width: 640px;
    font-size: 1rem;
    margin-bottom: 24px;
}

.hero-content blockquote {
    max-width: 720px;
    margin: 28px auto 32px;
    padding: 22px 28px;
    border-left: 4px solid #4a7c59;
    color: #2c3e50;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.55;
    text-align: left;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Bottoni */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a7c59;
    color: #fff;
    box-shadow: 0 8px 20px rgba(74, 124, 89, 0.2);
}

.btn-primary:hover {
    background-color: #3d654a;
}

.btn-secondary {
    background-color: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

/* Section Grid */
.section-grid {
    display: grid;
    grid-template-columns: 220px 1.5fr 1fr;
    gap: 30px;
    align-items: center;
}

.text-block p {
    margin-bottom: 14px;
    color: #4b4b4b;
    font-size: 1.03rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag-list span {
    background: #edf4ee;
    color: #345a41;
    border: 1px solid #dfe9e0;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #4a7c59;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);
    justify-self: center;
    transform: translateY(-10px);
}

.profile-photo img {
    width: 110%;
    height: 110%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: translate(-5%, -4%);
}

.info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    border-left: 6px solid #4a7c59;
}

.info-card ul {
    list-style: none;
    margin-top: 15px;
}

.info-card li {
    margin-bottom: 12px;
    color: #2f2f2f;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.feature-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
    padding: 28px 22px;
    border-top: 4px solid #b8d4b9;
}

.feature-card h3 {
    margin-bottom: 10px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}

.card-link {
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.09);
}

.card-link span {
    display: inline-block;
    margin-top: 16px;
    color: #4a7c59;
    font-weight: 700;
}

/* Sfide */
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.05rem;
}

.challenges-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.challenge-item {
    background: #ffffff;
    border-left: 5px solid #4a7c59;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.5;
}

/* Contatti */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f7faf7;
    padding: 28px;
    border-radius: 18px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5ddd5;
    border-radius: 10px;
    font-family: inherit;
    background: #fff;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info p {
    margin-bottom: 12px;
    color: #3f3f3f;
}

.contact-link {
    color: #4a7c59;
    font-weight: 600;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9rem;
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #dfe9e0;
    border-radius: 12px;
    background: #f4f9f5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1100;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #2c3e50;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 35, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.mobile-menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 320px);
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 1001;
    padding: 90px 24px 24px;
}

.mobile-nav-panel.open {
    transform: translateX(0);
}

.nav-links-mobile {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nav-links-mobile a {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
}

body.menu-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .section-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        padding: 12px 20px;
    }
}