* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: whitesmoke;
    color: #fff;
}


#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;
    object-fit: cover;

    transform: translate(-50%, -50%);
    z-index: -2;
}


#hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45); /* intensità overlay */
    z-index: -1;
}


#containerHero {
    max-width: 900px;
    padding: 20px;
    font-family: "Satoshi", sans-serif;
}

#containerHero h1 {
    text-transform: uppercase;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 10px;
}

#containerHero h2 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

#containerHero h1,
#containerHero h2 {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

#containerHero h2 {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;/*Rende invisibile il testo*/
        transform: translateY(30px); /*Scende di 30 px in basso*/
    }
    to {
        opacity: 1;/*Diventa visibile*/
        transform: translateY(0);/*Torna alla posizione default*/
    }
}

#triplettaCards {
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 35px 20px;
}

.triplettaWrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.triplettaCard {
    position: relative;
    padding: 24px 20px 20px;
    border-radius: 18px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.triplettaCard:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
}

.cardNumber {
    position: absolute;
    top: -14px;
    left: -12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #52BC21, #3a9118);
    box-shadow: 0 6px 14px rgba(58, 145, 24, 0.35);
}

.triplettaCard h4 {
    color: #2f7f1c;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.triplettaCard p {
    color: #1f1f1f;
    line-height: 1.45;
}

#mapSection {
    padding: 60px 20px 0;
    margin-bottom: 3rem;
}

.mapWrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.mapWrapper h3 {
    font-family: "Space Grotesk", sans-serif;
    color: #2f7f1c;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    text-align: center;
    margin-bottom: 16px;
}

.mapControls {
    display: grid;
    grid-template-columns: 2fr 1fr auto auto;
    gap: 10px;
    margin-bottom: 12px;
}

.mapControls input,
.mapControls select,
.mapControls button {
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(82, 188, 33, 0.35);
    font-size: 0.98rem;
}

.mapControls input,
.mapControls select {
    padding: 0 12px;
    color: #1f1f1f;
    background: #fff;
}

.mapControls button {
    padding: 0 14px;
    background: linear-gradient(135deg, #52BC21, #3a9118);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mapControls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(58, 145, 24, 0.35);
}

#mapStatus {
    color: #1f1f1f;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

#leafletMap {
    width: 100%;
    height: 420px;
    border-radius: 18px;
    border: 1px solid rgba(82, 188, 33, 0.3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

#iniziativaCards {
    max-width: 1100px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.cardsWrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.iniziativaCard {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-direction: row;
}

.cardImagePlaceholder {
    width: 35%;
    min-width: 180px;
    min-height: 130px;
    border: 2px dashed rgba(82, 188, 33, 0.75);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3a9118;
    font-weight: 600;
}

.cardText {
    width: 65%;
}

.cardText h4 {
    color: #52BC21;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.cardText p {
    color: #1e1e1e;
    line-height: 1.5;
}
#footer {
    background: #1e1e1e;
    color: #ccc;
    padding: 50px 20px 20px;
    margin-top: 80px;
}

#containerFooter {
    max-width: 1100px;
    margin: 0 auto;
}

.footerContent {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footerSection h4 {
    color: #52BC21;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footerSection ul {
    list-style: none;
}

.footerSection ul li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footerSection ul li:hover {
    color: #52BC21;
}

.footerSection p {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.footerBottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
    font-size: 0.9rem;
    color: #888;
}

.footerBottom p {
    margin-bottom: 0.45em;
}
.footerSection a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s ease;
}

.footerSection a:hover {
    color: #52BC21;
}
/* NAVBAR BASE */
#navbar {
    width: calc(100% - 40px);
    max-width: 1000px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(25, 25, 25, 0.65); /* semi-dark trasparente */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.navContainer {
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar pubblica: tipografia Plus Jakarta Sans */
#navbar,
#navbar .navContainer,
#navbar .logo,
#navbar .navLinks li a {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.logo {
    font-weight: 700;
    font-size: 1.45rem;
    color: #52BC21;
    text-decoration: none;
    letter-spacing: 0.04em;
}

/* NAV LINKS */
.navLinks {
    list-style: none;
    display: flex;
    gap: 32px;
}

.navLinks li a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 10px 6px;
    position: relative;
    transition: color 0.3s ease;
}

.navLinks li a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #52BC21;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navLinks li a:hover {
    color: #52BC21;
}

.navLinks li a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* HAMBURGER ANIMATION ON TOGGLE */
.navLinks.active {
    right: 0;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    #navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        background: rgba(25, 25, 25, 0.9);
    }

    .navLinks {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(25, 25, 25, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .navLinks li a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .triplettaWrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .iniziativaCard,
    .iniziativaCard:nth-of-type(odd),
    .iniziativaCard:nth-of-type(even) {
        flex-direction: column;
    }

    .cardImagePlaceholder,
    .cardText {
        width: 100%;
    }

    #mapSection {
        padding-top: 36px;
    }

    .mapControls {
        grid-template-columns: 1fr;
    }

    .mapControls button {
        width: 100%;
    }

    #leafletMap {
        height: 340px;
        border-radius: 14px;
    }
}

#partecipazioneCard {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: left;
    width: 50%;
    min-width: 400px;
    margin-left: auto; 
    margin-right: auto;
}

#partecipazioneCard div {
    max-width: 800px;
    width: 100%;
}

#partecipazioneCard p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #1e1e1e;
}

.highlight-green {
    color: #52BC21;
    font-weight: 600;
}

#formAdozione {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

#btnAdozione {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 44px;
    padding: 0 14px;
    min-width: 200px;

    font-family: "Space Grotesk", sans-serif;
    font-size: 0.98rem;
    font-weight: 600;

    color: #fff;
    text-decoration: none;

    background: linear-gradient(135deg, #52BC21, #3a9118);
    border-radius: 12px;
    border: 1px solid rgba(82, 188, 33, 0.35);

    cursor: pointer;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#btnAdozione:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(58, 145, 24, 0.35);
}

#btnAdozione:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(58, 145, 24, 0.25);
}

#btnAdozione:link,
#btnAdozione:visited {
    color: #fff;
    text-decoration: none;
}