*{
    padding: 0;
    margin: 0;
    font-family: sans-serif;
}

/*nav{
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0; 
    left: 0;
    z-index: 1000; 
    background-color: rgba(255, 255, 255, 0.9);


}

ul{
    display: flex;
}

li{
    list-style: none;
    padding-left: 20px;
    padding-right: 20px;
    color: rgb(67, 67, 67);
    
}

.logo_li{
    padding-left: 50px;
}

.cerca{
    height: 30px;
    width: 120px;
    margin-right: 50px;
    background-color: rgb(255, 166, 0);
    border: none;
    margin: none;
    outline: none;
    border-radius: 25px;
    color: white;
}


*/


/* Navbar principale */
nav {
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    z-index: 1000;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Ombra leggera */
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: rgb(60, 60, 60);
    padding-left: 50px;
}

/* Bottone cerca */
.cerca {
    height: 30px;
    width: 120px;
    background-color: rgb(255, 166, 0);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
}

/* Menu desktop (per visualizzazione su PC) */
.menu-desktop {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
}


.menu-desktop li {
    padding: 0 20px;
    color: rgb(67, 67, 67);
    cursor: pointer;
}



/* Hamburger (per visualizzazione su mobile) */
.hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Menu mobile (per visualizzazione su mobile) */
.menu-mobile {
    display: none;
    list-style: none;
    position: absolute;
    top: 80px; /* Sotto la navbar */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-mobile li {
    padding: 20px;
    color: rgb(67, 67, 67);
    text-align: center;
    cursor: pointer;
}


.principal_banner{
    height: 860px;
    width: 100%;
    background-color: rgba(255, 166, 0, 0.284);
    background-image: url('foto/3.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.principal_banner h3{
    font-size: 40px;
    margin-top: -80px;
}

.principal_banner h1{
    font-size: 100px;
}

.principal_banner button{
    height: 40px;
    width: 250px;
    background-color: rgb(255, 166, 0);
    border: none;
    margin: none;
    outline: none;
    border-radius: 25px;
    color: white;
    margin-top: 20px;
    font-size: 15px;
}

.principal_banner p{
    padding-top: 20px;
}

.searcher_container{
    height: 150px;
    width: 70%;
    margin-top: 20px;
    margin-left: 15%;
    display: flex;
}

.marca, .modello, .anno, .km ,.foto_1 , .foto_2 ,.foto_3 ,.foto_4{
    height: 150px;
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-left: 1px solid rgb(202, 198, 198);
}


.marca h3, .modello h3, .anno h3, .km h3{
    font-size: 30px;
    padding-bottom: 10px;
    color: rgb(255, 166, 0);
}

.marca p, .modello p, .anno p, .km p{
    padding-bottom: 10px;
}


.foto_1{
    background-image: url('foto/auto/1.jpg');
    background-size: cover;
    background-position: center;
}

.foto_2{
    background-image: url('foto/auto/2.jpg');
    background-size: cover;
    background-position: center;
}

.foto_3{
    background-image: url('foto/auto/3.jpg');
    background-size: cover;
    background-position: center;
}

.foto_4{
    background-image: url('foto/auto/4.jpg');
    background-size: cover;
    background-position: center;
}

::selection {
    background-color: rgb(255, 166, 0); /* Giallo dorato */
    color: #000000; /* Testo nero */
  }
  


  .search_form_container{
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
  }

  .search_form_container  .search_form{
    height: 700px;
    width: 400px;
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.search_form_container h3{
    text-align: center;
    margin-top: 30px;
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-size: 30px;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    color: rgba(255, 166, 0, 0.802);
    
}


.search_form_container label{
    margin-left: 30px;
    margin-top: 10px;
}

.search_form_container select{
    margin-top: 30px;
    height: 50px;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 5px;
    border: 1.2px solid rgba(255, 166, 0, 0.802);
}

.search_form_container select:invalid {
    color: #d10404; /* colore del placeholder */
  }

.search_form_container .button_cerca{
    margin-top: 50px;
    height: 50px;
    width: 50%;
    margin-left: 25%;
    margin-right: 25%;
    background-color: rgba(255, 166, 0, 0.802);
    color: white;
    font-size: 17px;
    border-radius: 10px;
    border: 2px solid rgba(255, 166, 0, 0.802);
    transition: 0.3s all linear;
}

.search_form_container .button_cerca:hover{
    background-color: rgba(255, 166, 0, 0.802);
}

.search_form_container .chiudi{
    width: 30%;
    margin-left: 35%;
    margin-right: 35%;
    background-color: rgba(0, 0, 0, 0);
    border: none;
    margin-top: 10px;
    color: rgb(199, 129, 0);
}




.site-footer {
    background-color: #f8bf85; /* Arancione chiaro */
    color: white;
    padding: 40px 20px 20px;
    font-family: sans-serif;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-container > div {
    flex: 1 1 300px;
    margin: 10px;
  }
  
  .footer-about p,
  .footer-contact p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links li {
    margin: 8px 0;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
    color: #FFF2E6;
  }
  
  .social-icons a {
    margin-right: 10px;
    display: inline-block;
  }
  
  .social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
  }
  
  .footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 13px;
  }
  


  /* MEDIA QUERIES */
@media (max-width: 768px) {
    nav{
        height: 50px;
    }
    .menu-desktop {
        display: none; /* Nascondi il menu desktop */
    }

    .hamburger {
        display: flex; /* Mostra l'icona dell'hamburger */
        justify-content:right;
        align-items: center;
        width: 31%;
        margin-right: 2%;

    }

    .logo span {
        font-size: 13px;
        padding-left: 10px;
        color: #444444;
    }

    .principal_banner h3{
        font-size: 13px;
    }


    .principal_banner h1 {
        font-size: 79px;
    }

    .searcher_container {
        height: 150px;
        width: 90%;
        margin-top: 20px;
        margin-left: 5%;
        display: flex;
    }

    .km{
        display: none;
    }

    .foto_1, .foto_2, .foto_3, .foto_4{
        width: 40%;
    }

    .marca p, .modello p, .anno p, .km p {
        padding-bottom: 10px;
        font-size: 13px;
    }


    .marca h3, .modello h3, .anno h3, .km h3 {
        font-size: 16px;
        padding-bottom: 10px;
        color: rgb(255, 166, 0);
    }


    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-container > div {
      margin: 20px 0;
      flex: 1 1 100%;
    }
  
    .social-icons a {
      margin: 0 10px;
    }
  
    .footer-bottom {
      padding-top: 10px;
      font-size: 12px;
    }
}



/* Aggiungi animazione e transizione */
.menu-mobile.active {
    display: block;
    animation: slideIn 0.3s ease-out;
}

/* Animazione di apertura del menu */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}