@media(max-width: 1700px){

    html {
        scroll-behavior: smooth;
        background: white;
    }
    body {
        font-family: 'Playfair Display', serif;
    }



    /* sezione tasti */

    .home-text a, 
    .home-text01 a, 
    .home-text02 a, 
    .home-text03 a, 
    .home-text04 a, 
    .home-text05 a, 
    .home-text06 a, 
    .home-text07 a, 
    .home-text08 a
    {
    color: #8a0a50;
    font-size: 21px;
    text-decoration: none !important; /* Rimuove la sottolineatura dai link */
    }
    /* sezione bottoni */

    #buttonBusiness {
        margin-left: 1%;
        color: rgb(13, 138, 117);
        background-color: linear-gradient(90deg, #fffbf5, #838a97, #eea8a8);
        text-align: center;
        margin-bottom: 3%;
    }
    #buttonScopri{
        color: rgb(9, 230, 189);
        background-color: #a70909;
        text-align: right;
        margin-bottom: 3%;
    }


    .navbar {
        background-color: transparent;
    }
   
    #navbarNav {
        background-color: transparent;
        margin-left: 46%;
    }
    
    .navbar-nav {
        margin-left: 46%;
    }
    
    .nav-item{
        margin-right: 22%;
    }
    .nav-item a{   
        color: #8a0a50;
        font-size: 1.9rem;
        text-decoration: none !important; /* Rimuove la sottolineatura dai link */
            
    }
        
    .home-logo0 {
        height: 9rem;
        position: absolute;
        margin-left: 3%;        
        margin-top: 4.7%;
    }
    

    .navbar-brand {
        font-size: 1.5rem;
        font-weight: bold;
    }

    .header {
        text-align: center;
        margin-top: 10%;
        margin-bottom: 10%;
    }

    .header img {
        border-radius: 50%;
        width: 40%;
        height: 40%;
        margin-left: -69%;
        margin-top: -18%;
        margin-bottom: 1%;
    }

    .header h1 {
        font-size: 3.9rem;
        margin-top: -13%;
        margin-left: 12%;         
        margin-bottom: 1%;
        color: #b40b22;
        font-weight: bold;

    }

    .header h2 {
        font-size: 2.4rem;
        margin-left: 37%;
        margin-top: 10%;
    }

    .header p {
        font-size: 2.5rem;
        color: #8a0a50;
        margin-top: 10%;
        margin-left: 30%;
        font-weight: bold;

    }

    .section {
        padding: 60px 0;
        /* background-color: white; */
        background: white;
        text-align: center;
        margin-top: 18%;
    }
    .section h2 {
        margin-left: 1%;
        font-size: 2rem;
        font-weight: bold;
        color: #b40b22;

    }

    .section p {
        color: #070707;
        margin-top: 5%;
        margin-left: 15%;
    }
    .section img {
        max-width: 100%;
        border-radius: 5px;
    }

    /* quadrotti */
    .square {
        position: relative;
        padding-top: 100%; 
        overflow: hidden;
        margin-bottom: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: box-shadow 0.3s ease;
        border-radius: 10px; /* Aggiunto */
    }
    .square:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .square-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ffffff;
        text-align: center;
        border: 2px solid #ccc;
        transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
        border-radius: 10px; /* Aggiunto */
    }
    .square-content:hover {
        transform: scale(1.05); 
        background-color: #f9f9f9;
        border-color: #bbb;
    }
    .square-content img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
        border-radius: 10px; /* Aggiunto */
    }
    .square-content:hover img {
        transform: scale(1.1);
    }
    .square-content h3 {
        position: absolute;
        color: white;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 10px;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        transition: background-color 0.3s ease;
        border-radius: 0 0 10px 10px; /* Aggiunto */
    }
    .square-content:hover h3 {
        background-color: rgba(0, 0, 0, 0.7);
    }


    /* gestione banner privacy style*/
    .home-testo-privacy{
        width: 70%;
        height: 45%;
        display: flex;
        margin-top: 15%; 
        margin-left: 10%; 
        min-height: 20vh;
        align-items: center;
        justify-content: center;
        font-family: 'Roboto', sans-serif; 
        color:#1d1519;
        font-size: 2vw;
        
    }
    .home-testo-privacy p{
        margin-left: 5%;
    }
    
    .Testo-Aside-PRIVACY p{
    
        width: 75%;
        height: 15%;
        margin-bottom: 3%;
        margin-left: 13%;
        align-items: center;
        justify-content: center;
        font-family: 'Roboto', sans-serif;
        color:#8a0a50;
        font-size:2vw;
    
    }
    
    
    #banner-cookie {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        background: linear-gradient(90deg, #f5fff7, #e7efff, #ffe8e8);
        color: #333;
        padding: 20px;
        text-align: center;
        z-index: 1000;
    }
    .show {
        display: block;
    }
    
    #banner-cookie.hide {
        display: none; /* Il banner viene nascosto quando la classe 'hide' viene aggiunta */
    }

  
    /* sezione pagina contatti */
    .section contatti-form{
        width: 80%;
    }

    .contatti-form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
        margin-top: 1%;
        align-items: stretch; 
    }
    .sintes-contatti-form, .contatti-descrizione {
        margin-top: 8%;
        margin-bottom: 15%;
        flex: 1;
        min-width: 300px;
        max-width: 600px;
        padding: 20px;
        background-color: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        /*width: 100%;  Rimuovi larghezza manuale */
    }
    

    
    .contatti-descrizione h2{
        font-family: 'Roboto', sans-serif;
        font-size: 2vw;
        font-weight: bold;
    }

    .contatti-descrizione h3{
        font-family: 'Roboto', sans-serif;
        font-size: 1.8vw;
        font-weight: bold;
    }

    .contatti-descrizione p {
        font-family: 'Roboto', sans-serif;
        font-size: 1.6vw;

    }

    .contatti-descrizione li{
        font-family: 'Roboto', sans-serif;
        font-size: 1.5vw;

    }
    
    form {
        margin-bottom: 10%;
        margin-left:1%;
    }
    input[type="text"] {
        width: 90%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #EFEFEF;
        font-size: 16px;
    
    }
    input[type="password"] {
        width: 90%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #EFEFEF;
        font-size: 16px;
        
        }
    input[type="email"] {
        width: 90%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #EFEFEF;
        font-size: 16px;
    }
    
    input[type="tel"] {
        width: 90%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #EFEFEF;
        font-size: 16px;
    }
    
    textarea[name="messaggio"] {
        width: 70%;
        padding: 12px;
        margin: 8px 0;
        border: none;
        border-radius: 4px;
        box-shadow: inset 0 0 0 2px #EFEFEF;
        font-size: 16px;
        width: 390px;
        height: 150px;
    }
    
    input[type="submit"] {
        background-color: #8a0a50; /* modificato il colore da nero a blu scuro */
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 12px 20px;
        cursor: pointer;
        font-size: 16px;
    }
    input[type="submit"]:hover {
        background-color: #555;
    }  


    /* footer */
    footer {
        padding: 20px;
        text-align: center;
    }


    .footer-content {
        max-width: 70%;
        margin: auto;
    }
    
    .footer-links {
        list-style: none;
        padding: 0;
    }
    
    .footer-links li {
        display: inline;
        margin: 0 10px;
    }
    
    .footer-links a {
        color: #333;
        text-decoration: none;
    }

}

@media(max-width: 460px){


    /* sezione nav */

    #buttonCollaps{
        margin-left: 46%;
    }
    
    #testonav{
        margin-left: 3%;
    }
    
    .home-logo0 {
        height: 7rem;
        position: absolute;
        margin-left: 4%;
        margin-top: 7%;
        
    }

}