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

@media screen {
    *{
        padding: 0%;
    }
}

html,
body {
    
    padding: 15px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('Image_Elio/Firenze/IMGP1532.webp');
    background-size: cover;
    z-index: -1;
}

/* Media query per iPhone SE */
@media (max-width: 375px) {
    .background-image {
        background-size: cover; /* Continua a coprire l'intera area disponibile */
        background-position: center; /* Centra l'immagine */
    }
}

/* Media query per iPhone Pro Max */
@media (max-width: 414px) {
    .background-image {
        background-size: cover; /* Continua a coprire l'intera area disponibile */
        background-position: center; /* Centra l'immagine */
    }
}

/* Opzionale: Considera altri dispositivi con schermi più grandi */
@media (min-width: 415px) {
    .background-image {
        background-size: cover; /* Continua a coprire l'intera area disponibile */
        background-position: center; /* Centra l'immagine */
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 30px;
    z-index: 1000;
    background-color: rgba(16, 15, 15, 0.389);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

@media screen and (max-width: 768px) {
    .logo{
        font-size: 14px;
    }
    .navbar{
        font-size: 14px;
        margin-left: 25px;
    }
}

@media screen and (max-width: 390px) {
    .logo{
        font-size: 14px;
    }
    .navbar{
        font-size: 14px;
        margin-left: 20px;
    }
     .content{
        font-size: 70%;
    }
    header{
        padding: 15px 10px;
    }
}

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





.nav-links {
    list-style-type: none;
    display: flex;
}

.nav-links li {
    margin-right: 20px;
    position: relative;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ffc107;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #343a40;
    min-width: 120px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #ffc107;
}



.line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}

@media (max-width: 768px) {
    .nav-links {
       flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-menu{
        padding: 0px;
    }

    .nav-links.show {
        display: flex;
    }

    

}




.line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
}



main {
    padding-top: 100px; /* Ensure content starts below the fixed header */
    color: white;
}

.content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

footer {
    text-align: center;
    color: white;
    padding: 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
}



    .nav-active {
        display: flex; /* Display nav links when burger menu is active */
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
    }

    .nav-active li {
        margin: 10px 0;
    }



footer{
    font-size: 24px;
    
    color: rgba(251, 246, 246, 0.805);
    background-color: rgba(13, 13, 13, 0.67);
}


