:root {
    --bg-light: #F7EBD4;
    --orange: #FBA90A;
    --green-main: #2C8F3A;
    --purple: #9A0794;
    --green-dark: #0A3409;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --grey-light: #F5F5F5;
    --grey-dark: #757575;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
  pointer-events: auto;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans";
    color: var(--green-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* About section */
.grid-2 {
    display: grid;
    grid-template-columns: 280px 1fr;
    /* desktop: immagine fissa + testo fluido */
    gap: 32px;
    align-items: start;
}

.about-col {
    padding: 16px;
}

.about-col.text {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.about-img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    /*border: 2px solid var(--grey-light);
    background: var(--white);*/
    padding: 12px;
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
        /* mobile: una colonna sola */
    }

    .about-col {
        text-align: center;
    }

    .about-col.text {
        max-width: 100%;
        margin: 0 auto;
        text-align: left;
        /* così il testo resta leggibile anche al centro */
    }
}

/* Stats Section */
.stats {
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-box {
    padding: 16px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
    display: block;
    margin-bottom: 6px;
}

.stat-box {
  padding: 20px;
}

.stat-icon {
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 12px;
  display: block;
}

.stat-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.stat-box p {
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Parallax section */
.parallax {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-overlay {
  text-align: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.8); /* leggero scuro sopra immagine */
  padding: 40px 20px;
  border-radius: 12px;
}

.parallax-title {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--white);
}

.parallax-1 {
  background-image: url("../img/parallax/p1.png");
}

.parallax-2 {
  background-image: url("../img/parallax/p2.png");
  min-height: 500px; /* più spazio verticale */
}

/* Mobile fix: su alcuni device parallax non funziona, fallback */
@media (max-width: 768px) {
  .parallax {
    background-attachment: scroll;
  }
  .parallax-title {
    font-size: 1.8rem;
  }
}


/* Layout */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
header.site-header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--green-dark);
}

.brand img {
    height: 36px;
    width: auto;
}

.brand .title {
    font-weight: 700;
    letter-spacing: .3px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 18px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--orange);
}

#nav-toggle {
    display: none;
}

@media (max-width: 760px) {
    #nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--green-main);
        color: var(--white);
        border: none;
        padding: 8px 14px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600;
        margin-left: auto;
        z-index: 60;
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: var(--white);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        border-top: 2px solid var(--orange);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        padding: 12px 0;
        text-align: center;
    }

    nav.open ul {
        display: flex;
    }

    nav ul li {
        padding: 8px 0;
    }

    nav ul li a {
        color: var(--green-dark);
        font-size: 16px;
        font-weight: 600;
        display: block;
        width: 100%;
    }

    nav ul li a:hover {
        background: var(--bg-light);
        color: var(--orange);
    }
}

/* Hero */
.hero {
    padding: 72px 0 56px;
    background: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    margin: 0 0 12px;
    color: var(--green-main);
}

.hero p {
    color: var(--black);
    max-width: 760px;
    margin: 0 auto;
}

.cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn.primary {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: var(--green-dark);
}

.btn.primary:hover {
    background: #e18c00;
}

.btn.secondary {
    background: var(--purple);
    border: 1px solid var(--purple);
    color: var(--white);
}

.btn.secondary:hover {
    background: #7a0673;
}

/* Sections */
.section {
    padding: 56px 0;
    border-top: 1px solid var(--grey-light);
}

.section:nth-of-type(even) {
    background: var(--bg-light);
}

.section h2 {
    margin: 0 0 16px;
    color: var(--green-dark);
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--white);
    border: 1px solid var(--grey-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-top: 0;
    color: var(--green-main);
}

.card p {
    color: var(--grey-dark);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

/* Forms */
form {
    display: grid;
    gap: 12px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--grey-light);
    background: var(--white);
    color: var(--black);
}

label {
    font-size: 14px;
    color: var(--grey-dark);
}

button[type="submit"] {
    cursor: pointer;
}

/* Cookie banner */
#cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--grey-light);
    background: var(--white);
    color: var(--black);
    z-index: 1000;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#cookie-banner[hidden] {
    display: none !important;
}

#cookie-banner p {
    margin: 0;
    flex: 1;
    color: var(--grey-dark);
}

.cc-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cc-btn {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--grey-light);
    cursor: pointer;
    font-weight: 600;
}

.cc-btn.primary {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--green-dark);
}

.cc-btn.secondary {
    background: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    background: var(--purple);
    color: var(--white);
    font-weight: 600;
}

.badge+.badge {
    margin-left: 6px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

a {
    color: var(--green-main);
}

a:hover {
    text-decoration: underline;
}

small {
    font-size: 90%;
}

.hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Footer */
footer.site-footer {
    background: var(--green-dark);
  color: var(--white);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-cols {
   display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}

.footer-cols h4 {
     margin: 0 0 12px;
  font-size: 16px;
  color: var(--orange);
}

.footer-col p, 
.footer-col small {
  margin: 0 0 8px;
  color: var(--white);
}

.footer-col a {
  color: var(--white);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-bottom a {
  color: var(--orange);
  font-weight: 600;
}

/* Badge nel footer */
footer .badge {
    background: var(--purple);
    font-size: 11px;
    padding: 2px 8px;
}
footer .cc-btn {
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: var(--orange);
  color: var(--green-dark);
  font-weight: 600;
  cursor: pointer;
}
footer .cc-btn:hover {
  background: #e18c00;
}