

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

/* SFONDO */
body {
    background: url("texture-light.svg");
    background-size: 600px;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 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 DESKTOP */
.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #222;
    font-size: 26px;
    font-weight: 600;
    transition: 0.3s;
}

.nav a:hover {
    color: #97CA41;
}

/* HAMBURGER (MOBILE) */
.hamburger {
    display: none;
    font-size: 36px;
    cursor: pointer;
    color: #222;
}

/* MENU MOBILE */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 999;
}

.nav-mobile a {
    padding: 15px 0;
    text-align: center;
    font-size: 22px;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.nav-mobile a:hover {
    color: #97CA41;
}

/* HERO */
.hero {
    height: 40vh;
    background: url("img/foto-graffito-home.png") center 80%/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.75);
}

.hero h2 {
    font-size: 22px;
    font-weight: 300;
    text-shadow: 0 3px 12px rgba(0,0,0,0.75);
}

/* FOOTER */
.footer {
    background: #222;
    padding: 40px 10%;
    text-align: center;
    border-top: 3px solid #97CA41;
    margin-top: 60px;
}

.footer-content h3,
.footer-content p,
.footer-info p,
.footer-legal {
    color: white;
}

.footer-info p {
    font-size: 15px;
}

.footer-legal {
    margin-top: 20px;
    font-size: 14px;
}

.footer-legal a {
    color: #97CA41;
    text-decoration: none;
    font-weight: 600;
}

.footer-legal a:hover {
    text-decoration: underline;
}

/* ICONE SOCIAL */
.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;
}

/* RESPONSIVE */

/* TABLET */
@media (max-width: 1024px) {
    .nav a {
        font-size: 22px;
    }

    .hero h1 {
        font-size: 40px;
    }
}

/* MOBILE */
@media (max-width: 768px) {

    /* Header */
    .header {
        padding-top: 70px;
    }

    .logo-header img {
        height: 50px;
    }

    /* Nascondi menu desktop */
    .nav {
        display: none;
    }

    /* Mostra hamburger */
    .hamburger {
        display: block;
    }

    /* Hero */
    .hero {
        height: 35vh;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero h2 {
        font-size: 18px;
    }

    /* Footer */
    .footer {
        padding: 30px 8%;
    }
}

/* SMALL MOBILE */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 26px;
    }

    .hero h2 {
        font-size: 16px;
    }

    .footer-social a {
        font-size: 28px;
    }
}

/* Posizione corretta del menu mobile */
.nav-mobile {
    top: 80px; /* desktop */
}

@media (max-width: 768px) {
    .nav-mobile {
        top: 70px; /* altezza header mobile */
    }
}

/* FIX MOBILE HEADER: alza logo e hamburger */
@media (max-width: 768px) {

    .header {
        height: 70px !important;
        padding: 0 4% !important;
        align-items: center !important;   /* centra verticalmente */
    }

    .logo-header img {
        display: block !important;        /* elimina il "buco" sotto */
        height: 50px !important;          /* dimensione stabile */
        margin: 0 !important;             /* elimina spostamenti */
    }

    .hamburger {
        display: block !important;
        font-size: 32px !important;
        line-height: 1 !important;
        height: 50% !important;
        margin: 0 !important;             /* elimina spostamenti */
        padding: 0 !important;
    }

    /* Il menu mobile deve partire esattamente sotto l’header */
    .nav-mobile {
        top: 70px !important;
    }
}
