:root{

    --anpi-red:#D71920;
    --anpi-red-dark:#B51217;
    --anpi-green:#00843D;

    --text:#333333;
    --light:#f8f8f8;
    --white:#ffffff;

    --shadow:0 10px 25px rgba(0,0,0,.08);

}

/* RESET */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Montserrat',sans-serif;
    color:var(--text);
    background:#fff;
    line-height:1.6;

}

img{
    max-width:100%;
    display:block;
}

/* CONTAINER */

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/* HEADER */

header{

    position:sticky;
    top:0;
    z-index:999;

    background:white;

    box-shadow:0 2px 10px rgba(0,0,0,.05);

}

.top-bar{

    height:6px;

    background:
    linear-gradient(
        90deg,
        var(--anpi-green) 0%,
        var(--anpi-green) 33%,
        #ffffff 33%,
        #ffffff 66%,
        var(--anpi-red) 66%,
        var(--anpi-red) 100%
    );

}

.nav-container{

    min-height:90px;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

/* LOGO */

.logo{

    display:flex;
    align-items:center;
    gap:15px;

}

.logo-anpi{

    height:60px;
    width:auto;

}

.logo-text{

    display:flex;
    flex-direction:column;

}

.logo-text span{

    color:var(--anpi-red);

    font-size:28px;
    font-weight:900;
    line-height:1;

}

.logo-text small{

    text-transform:uppercase;
    letter-spacing:1px;

    font-size:12px;
    font-weight:700;

    color:#666;

}

/* MENU */

nav ul{

    display:flex;
    list-style:none;
    gap:30px;

}

nav a{

    text-decoration:none;
    color:#333;

    font-weight:700;

    transition:.3s;

}

nav a:hover{

    color:var(--anpi-red);

}

/* HERO */

.hero{

    min-height:90vh;

    display:flex;
    align-items:center;

    background:
        linear-gradient(
            rgba(255,255,255,.88),
            rgba(255,255,255,.92)
        );

}

.hero-container{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;

}

.hero-content{

    width:50%;

}

.hero-content h1{

    color:var(--anpi-red);

    font-size:4.5rem;
    line-height:1;

    margin-bottom:25px;

    font-weight:900;

}

.hero-content p{

    font-size:1.4rem;
    margin-bottom:35px;

}

/* IMMAGINE HERO */

.hero-image{

    width:50%;

    display:flex;
    justify-content:center;

}

.hero-image img{

    max-width:850px;
    width:100%;
    height:auto;

}

/* BOTTONI */

.hero-buttons{

    display:flex;
    gap:15px;
    flex-wrap:wrap;

}

.btn{

    display:inline-block;

    padding:14px 28px;

    border-radius:8px;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}

.btn-primary{

    background:var(--anpi-red);
    color:white;

}

.btn-primary:hover{

    background:var(--anpi-red-dark);

}

.btn-secondary{

    border:2px solid var(--anpi-red);

    color:var(--anpi-red);

}

.btn-secondary:hover{

    background:var(--anpi-red);

    color:white;

}

.btn-white{

    background:white;

    color:var(--anpi-red);

    font-weight:800;

}

.btn-white:hover{

    background:#f0f0f0;

}

/* SEZIONI */

.section{

    padding:100px 0;

}

.section h2{

    color:var(--anpi-red);

    font-size:2.5rem;

    margin-bottom:20px;

    font-weight:800;

}

.intro{

    max-width:850px;

    font-size:1.15rem;

}

/* CARD */

.cards{

    margin-top:50px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

.card{

    background:white;

    padding:30px;

    border-radius:15px;

    border-top:6px solid var(--anpi-red);

    box-shadow:var(--shadow);

    transition:.3s;

}

.card:hover{

    transform:translateY(-5px);

}

.card h3{

    color:var(--anpi-red);

    margin-bottom:15px;

}

/* BANNER VOLONTARI */

.banner-volontari{

    background:var(--anpi-red);

    color:white;

    text-align:center;

    padding:90px 0;

}

.banner-volontari h2{

    color:white;

    margin-bottom:20px;

    font-size:2.7rem;

}

.banner-volontari p{

    font-size:1.2rem;

    margin-bottom:25px;

}

/* FOOTER */

footer{

    background:#222;

    color:white;

    text-align:center;

    padding:60px 0;

}

footer h3{

    margin-bottom:10px;

}

/* MOBILE */

@media(max-width:992px){

    .hero-container{

        flex-direction:column;

        text-align:center;

    }

    .hero-content{

        width:100%;

    }

    .hero-image{

        width:100%;

        margin-top:25px;

    }

    .hero-content h1{

        font-size:3rem;

    }

    nav ul{

        gap:15px;

    }

}

@media(max-width:768px){

    .nav-container{

        flex-direction:column;
        padding:15px 0;

    }

    nav ul{

        flex-wrap:wrap;
        justify-content:center;

    }

    .hero{

        padding:40px 0;

    }

    .hero-content h1{

        font-size:2.3rem;

    }

    .hero-content p{

        font-size:1.1rem;

    }

    .section{

        padding:70px 0;

    }

    .section h2{

        font-size:2rem;

    }

}