body {
    background-color: #0a0a0a;
    color: white;
    margin: 0;
}
    
/* HEADER CON NAVBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #222;
}

/* titolo già esistente ma adattato */
.nomepg {
    margin: 0;
    font-size: 62px;
    letter-spacing: 4px;
    font-family: 'Cinzel', serif;
}


/* NAVBAR */
.navbar {
    display: flex;
    gap: 25px;
    font-family: 'Montserrat', sans-serif;
}

.navbar a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: 0.3s;
    position: relative;
}

.navbar a:hover {
    color: white;
}

/* sottolineatura elegante hover */
.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 1px;
    background: white;
    transition: 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}
.testo {
    color: #bbb;
    line-height: 1.8;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    padding-left: 20%;
    padding-right: 20%;
}

.testocentrale{
   padding-top:7%; 
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.hero-image img {
    width: 85%;       
    max-width: 1200px;  
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 2px; 
}
/*footer*/

.footer {
    background: #0a0a0a;
    color: #aaa;
    text-align: center;
    padding: 35px 20px;
    margin-top: 150px;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid #222;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
    letter-spacing: 1px;
}

/* LOGO */
.footer-logo img {
    width: 90px;
    height: auto;
    margin-bottom: 15px;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* LINK */
.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 768px) {

   /* HEADER */
    .topbar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
        text-align: center;
    }

    .nomepg {
        font-size: 32px;
        letter-spacing: 2px;
        margin-left: 0;
    }

    /* NAVBAR */
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .navbar a {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    /* TESTO */
    .testo {
        font-size: 16px;
        line-height: 1.6;
        padding-left: 6%;
        padding-right: 6%;
    }

    /* FOOTER */
    .footer {
        padding: 25px 15px;
        margin-top: 80px;
    }

    .footer-logo img {
        width: 70px;
    }
}