
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #26352e;
    background: #ffffff;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 7%;
    background: white;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #263e32;
    letter-spacing: 1px;
    text-decoration: none;
}

.logo span {
    color: #719b70;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #35443b;
    font-size: 15px;
}

nav a:hover {
    color: #719b70;
}

.hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 60px 9%;
    background:
        linear-gradient(90deg, rgba(0,0,0,.65), rgba(0,0,0,.12)),
        url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1800")
        center/cover;
    color: white;
}

.hero-content {
    max-width: 620px;
}

.sottotitolo {
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.15;
    margin: 20px 0;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
}

.bottone {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 25px;
    background: #719b70;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.bottone:hover {
    background: #527d55;
}

.sezione {
    padding: 65px 7%;
    text-align: center;
}

.sezione h2,
.territorio h2 {
    font-size: 32px;
}

.introduzione {
    color: #777;
    margin-bottom: 35px;
}

.categorie {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 1100px;
    margin: auto;
}

.categoria {
    padding: 30px 15px;
    border: 1px solid #e8eee8;
    border-radius: 10px;
    background: white;
    color: #304637;
    cursor: pointer;
    transition: .2s;
    font-family: inherit;
}

.categoria:hover,
.categoria.active {
    transform: translateY(-4px);
    box-shadow: 0 5px 18px #00000012;
    border-color: #719b70;
    background: #f2f7f1;
}

.categoria span {
    font-size: 35px;
}

.categoria h3 {
    font-size: 17px;
    margin-bottom: 0;
}

.guide {
    background: #f6f8f5;
}

.ricerca {
    max-width: 550px;
    margin: 0 auto 35px;
}

.ricerca input {
    width: 100%;
    padding: 16px;
    border: 1px solid #dce4dc;
    border-radius: 8px;
    font-size: 16px;
}

.articoli {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.articolo {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px #0000000c;
}

.articolo img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.articolo-testo {
    padding: 22px;
}

.articolo-testo span {
    font-size: 11px;
    color: #719b70;
    font-weight: bold;
    letter-spacing: 1px;
}

.articolo h3 {
    font-size: 20px;
    line-height: 1.4;
}

.articolo p {
    color: #777;
    line-height: 1.6;
}

.leggi {
    color: #56845a;
    text-decoration: none;
    font-weight: bold;
}

.leggi:hover {
    text-decoration: underline;
}

.no-results {
    color: #777;
    margin-top: 30px;
}

.territorio {
    padding: 65px 10%;
    text-align: center;
    background: #eaf0e9;
}

.territorio p {
    max-width: 650px;
    margin: auto;
    line-height: 1.8;
}

footer {
    padding: 40px;
    text-align: center;
    background: #263e32;
    color: white;
}

footer .logo {
    color: white;
}

@media (max-width: 750px) {
    .header {
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero {
        min-height: 400px;
        padding: 40px 7%;
    }

    .hero h1 {
        font-size: 35px;
    }

    .categorie {
        grid-template-columns: repeat(2, 1fr);
    }

    .articoli {
        grid-template-columns: 1fr;
    }
}
