/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/* SFONDO ENERGETICO */
body {
    background: url("texture-light.svg");
    background-size: 600px;
    background-attachment: fixed;
}

/* HEADER */
.header {
    width: 100%;
    height: 80px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo-header img {
    height: 60px;
}

.nav a {
    font-size: 26px;
    margin-left: 25px;
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: 0.3s;
}

.nav a:hover {
    color: #97CA41;
}

/* HERO */
.hero {
    height: 90vh;
    background: url("img/foto-graffito-home.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px; /* unico valore corretto */
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-hero {
    width: min(45vw, 420px);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.75);
}

.hero h2 {
    font-size: 24px;
    font-weight: 300;
    text-shadow: 0 3px 12px rgba(0,0,0,0.75);
}

/* SLIDER */
.slider-link {
    display: block;
    text-decoration: none;
}

.auto-slider {
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
    cursor: pointer;
}

.auto-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 25px;
    will-change: transform;
    transform: translateX(0);
}

.auto-slider-track img {
    flex: 0 0 auto;
    height: 260px;
    width: auto;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    user-select: none;
    pointer-events: none;
}

/* STORIA */
.storia {
    padding: 80px 15%;
    text-align: center;
}

.storia h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.storia p {
    margin-bottom: 18px;
    line-height: 1.7;
    font-size: 18px;
}

/* SEZIONI */
.sezioni {
    padding: 60px;
    text-align: center;
}

.sezioni h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

/* GRID CARD */
.cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card {
    background: #ffffffd0;
    border-radius: 12px;
    padding: 30px 0px;
    transition: 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card h3 {
    font-size: 32px;
    margin-bottom: 8px;
    font-weight: 700;
}

.card p {
    margin-top: 5px;
    color: #555;
    font-size: 24px;
}

.card img {
    max-height: 450px;      /* limite massimo */
    width: auto;            /* mantiene proporzioni */
    height: auto;           /* si riduce se serve */
    display: block;
    margin: 0 auto;         /* centrata */
    border-radius: 12px;
    object-fit: contain;    /* NON taglia nulla */
}



.card:hover {
    transform: translateY(-5px);
    border-color: #97CA41;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* CITAZIONE */
.citazione {
    padding: 80px 10%;
    text-align: center;
}

blockquote {
    font-family: "Gwendolyn", cursive;
    font-size: 38px;
    line-height: 1.3;
    color: #333;
    font-weight: 600;
}

blockquote strong {
    font-weight: 700;
}

blockquote span {
    display: block;
    margin-top: 20px;
    font-size: 22px;
    font-family: "Montserrat", sans-serif;
    opacity: 0.8;
}

/* FOOTER */
.footer {
    background: #222;
    padding: 40px 10%;
    text-align: center;
    border-top: 3px solid #97CA41;
    margin-top: 60px;
}

.footer-content h3 {
    font-size: 26px;
    margin-bottom: 5px;
    color: white;
}

.footer-content p,
.footer-info p {
    color: white;
}

.footer-info p {
    font-size: 15px;
}

.footer-legal {
    margin-top: 20px;
    font-size: 14px;
    color: white;
}

.footer-legal a {
    color: #97CA41;
    text-decoration: none;
    font-weight: 600;
}

.footer-legal a:hover {
    text-decoration: underline;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-social a {
    color: white !important;
    font-size: 32px;
    text-decoration: none !important;
}

.footer-social a:hover {
    color: #97CA41 !important;
}

/* COOKIE */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #222;
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: none;
    z-index: 2000;
}

.cookie-banner button {
    margin-left: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

#accept-cookies {
    background: #97CA41;
    color: white;
}

#reject-cookies {
    background: #555;
    color: white;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width: 1024px) {
    .hero h1 { font-size: 40px; }
    .hero h2 { font-size: 22px; }
    .auto-slider-track img { height: 240px; }
    .cards { grid-template-columns: 1fr 1fr; }
}

/* MOBILE */
@media (max-width: 768px) {

    .header {
        height: 70px;
        padding: 0 4%;
    }

    .nav a {
        font-size: 18px;
        margin-left: 15px;
    }

    .hero {
        height: 70vh;
    }

    .logo-hero {
        width: 60%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .auto-slider-track img {
        height: 180px;
    }

    .storia,
    .sezioni,
    .citazione {
        padding: 50px 8%;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card img {
        height: 300px;
    }

    blockquote {
        font-size: 30px;
    }

    blockquote span {
        font-size: 18px;
    }

    .footer {
        padding: 30px 8%;
    }
}

/* FIX HEADER RESPONSIVE PER LA HOME */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
}

@media (max-width: 768px) {

    /* Nascondi menu desktop */
    .nav {
        display: none !important;
    }

    /* Mostra hamburger */
    .hamburger {
        display: block !important;
    }

    /* Nascondi menu mobile di default */
    .nav-mobile {
        display: none;
    }
}

/* Uniforma la spaziatura del menu desktop */
.nav {
    gap: 25px !important;
}

.nav a {
    margin-left: 0 !important;
}

/* MOBILE: nascondi slider */
@media (max-width: 768px) {
    .auto-slider {
        display: none !important;
    }
}