/* Reset minimo */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #2f3b33;
    background: #faf7f2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: #1b5e20;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout di base */

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-main {
    min-height: 60vh;
}

/* Header */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2f3b33;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4caf50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.logo-text strong {
    font-size: 15px;
}

.main-nav .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.main-nav .menu a {
    text-decoration: none;
    color: #374237;
}

.btn-dona-header {
    padding: 8px 16px;
    border-radius: 999px;
    background: #e65100;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: #e53935;
    color: #fff;
}

.btn-secondary {
    background: #2e7d32;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2e7d32;
    color: #2e7d32;
}

.btn-secondary:hover,
.btn-primary:hover,
.btn-outline:hover,
.btn-dona-header:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Hero */

.hero {
    background: linear-gradient(to bottom, #fdf7f2, #f3f7ec);
    padding: 40px 0 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 20px;
    color: #4a7b57;
    margin-bottom: 16px;
    font-style: italic;
}

.hero-text {
    margin-bottom: 20px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.hero-list li::before {
    content: "✔";
    margin-right: 6px;
    color: #2e7d32;
}

.hero-side-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-size: 14px;
}

.hero-side-box h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Sezioni home */

.home-section {
    padding: 40px 0;
}

.home-section h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
}

.section-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 24px;
    color: #5b645b;
    font-size: 14px;
}

/* Cards */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.card-progetto,
.card-news {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-size: 14px;
}

.card-progetto img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-progetto h3,
.card-news h3 {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 16px;
}

.card-subtitle {
    color: #5b645b;
    margin-bottom: 10px;
    font-size: 13px;
}

.link-arrow {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: #2e7d32;
}

/* Impatto */

.home-impatto .impatto-quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.quote-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    font-size: 14px;
}

.quote-card blockquote {
    margin: 0 0 8px;
}

/* News home */

.cards-news .card-news {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-date {
    font-size: 12px;
    color: #757575;
}

/* Page / Single */

.page-wrapper,
.single-wrapper,
.single-progetto-wrapper,
.archive-wrapper,
.archive-progetti {
    padding: 40px 16px;
}

.page-title,
.single-title {
    font-size: 28px;
    margin-bottom: 12px;
}

.page-body,
.single-body,
.single-progetto-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Singolo progetto */

.single-progetto-header {
    margin-bottom: 20px;
}

.single-progetto-header h1 {
    margin-bottom: 4px;
}

.single-progetto-subtitle {
    color: #5b645b;
    margin-bottom: 12px;
}

.single-progetto-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.badge {
    background: #e8f5e9;
    color: #1b5e20;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

/* Footer */

.site-footer {
    margin-top: 40px;
    color: #f1f8e9;
}

.footer-top {
    background: #2e7d32;
    padding: 24px 0;
}

.footer-top-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
}

.footer-text {
    font-size: 13px;
    margin: 4px 0 0;
}

.footer-links .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.footer-links .footer-menu li {
    margin-bottom: 4px;
}

.footer-links .footer-menu a {
    color: #f1f8e9;
}

.footer-bottom {
    background: #1b5e20;
    padding: 8px 0;
    font-size: 12px;
}

.footer-bottom-inner {
    text-align: center;
}

/* Responsive */

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .main-nav {
        display: none;
    }

    .nav-toggle {
        display: inline-block;
    }

    .footer-top-inner {
        flex-direction: column;
    }
}
