*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Kanit", sans-serif;
}

html {
    scroll-padding-top: 15%; /* offset quando clicco su un link specifico */
}

a {
    text-decoration: none;
    transition: 0.3s;
  
  }
  
a:hover {
    text-decoration: underline;
}

.header {
    padding: 1.5px 5%;
}



.header-right a{
    margin-top: 6%;
    margin-left: 8%;
    transition: 0.3s;
}

.presentazione {
    height: 105vh;
    background-image: url(images/contatti2.jpg); /*oppure contatti1*/
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.presentazione h1{
    font-size: clamp(3.5rem, 5.3vw, 5.5rem);
    color: #fff;
}

.contatti {
    background-color: #e4e4e4;
}

/* .contatti::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(images/sfondo.jpg);
    background-size: cover;
    opacity: 1; 
    filter: blur(5px);
    z-index: -1;
} */

.contact-container{
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-evenly;
    margin-top: -10%;
    height: auto; 

}

.contact-left, .contact-right {
    width: 80%; 
    margin: 10% 0; 
    z-index: 10;
    padding: 3%;
    animation: in linear;
    animation-timeline: view();
}

.contact-left {
    /* margin-top: -5%; */
    margin-left: 5%;
}

.contact-left h2:hover img {
    opacity: 0.5;
    scale: 1.15;
}

.contact-left h2{
    margin-bottom: 2%;
    font-size: clamp(1rem, 1.1vw, 1.2rem);
    text-align:justify;
    font-weight: 500;
}
.contact-left h2 img {
    width: 35px;
    margin-right: 4%;
    position: relative;
    top: 8px; /* offset immagine dall'alto rispetto alle scritte */
    transition: 0.3s;
}


.contact-left h2 .phone {
    width: 30px;
}

.contact-left a {
    color: #000;
    transition: 0.3s;
}

.contact-left a:hover {
    color: #3e3e3e;
    /* text-decoration: none;     */
}




.contact-right {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20%;
    margin-bottom: 5%;
}

.contact-right-title h2{
    font-weight: 600;
    color: #144b00;
    font-size: clamp(1.8rem, 2.3vw, 2.3rem);
    margin-bottom: 3%;
    text-align: center;
}

.contact-input{
    width: 100%;
    height: 60px;
    font-size: 17px;
    padding: 0 5%;
    margin-bottom: 5%;
    border-radius: 25px;
    border: none;
    outline: none;
    box-shadow: 0px 5px 10px 1px #0000003c;
    transition: .3s;
}

.contact-input:hover {
    scale: 1.05;
}

.contact-right textarea {
    height: 30vh;
    padding-top: 5%;
}

.contact-input::placeholder{
    color: rgb(64, 64, 64);
    font-family:'Times New Roman', Times, serif;
}


.contact-right button{
    display: flex;
    align-items: center;
    background-color: #144b00;
    /* background: linear-gradient(270deg, #228f00, #186601); */
    border-radius: 20px;
    transition-duration: .4s;
    box-shadow: 0 8px 16px 0 #000000a0, 0 6px 20px 0 #000000a0;
    font-size: clamp(1.4rem, 1.5vw, 1.8rem);
    padding: 10px 15px;
    border: none;
    color: #fff;
    text-decoration: none;
    min-width: 100px;
    cursor: pointer;
    height: 70px;
    margin-left: auto; 
    margin-right: auto; 
    transition: 0.3s;
}

.contact-right button img{
    height: 15px;
   padding: 0 15px;

}

.contact-right button:hover {
    background-color: #196601d2;
    scale: 1.1;
    border-radius: 40px;
    color: #000000bb;
}

.whatsapp {
    position: fixed; 
    bottom: 5%; 
    right: 1%; 
    z-index: 99; 
    cursor: pointer;
    font-size: 150%;
    font-weight: bolder;
    padding: 0;
    height: 60px;
}

.whatsapp img{
    width: 40px;
    margin-top: 8%;
}

/*mappa*/
.mappa {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: space-evenly;
    background-image: url(images/ufficio.jpg);
    background-size: cover;
    background-position: center;
    padding: 5% 20%;
}

.mappa h2{
    margin-bottom: 5%;
    text-align: center;
    font-size: clamp(1.5rem, 1.5vw, 1.8rem);
    color: #fff;
}

.mappa iframe {
    border-radius: 5%;
    animation: fade linear;
    animation-timeline: view();
}

/*descrizione*/
.descrizione {
    margin-top: 10%;
    margin-right: 10%;
    margin-left: 10%;
    animation: in linear;
    animation-timeline: view();
}
.descrizione h1{
    margin-bottom: 3%;
    color: #144b00;
}
.descrizione p {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    line-height: 1.5;
    margin-top: -10px; 
    text-align: justify;
}

.descrizione a{
    color: #000;
    transition: 0.3s;
}

.descrizione a:hover {
    opacity: 0.5;
    /* text-decoration: none; */
}

.whatsapp img{
    margin-top: 11px;
}


@media (prefers-reduced-motion: no-preference) {
    @keyframes in {
        0% {scale:1; opacity: 0;}
        30% {scale: 1; opacity: 1;}
        60% {scale:1; opacity: 1;}
        100% {scale:1; opacity: 0;}
    }
}

@media (max-width: 1150px) {
    .presentazione {
        height: 70vh;
    }

    .contact-right {
        margin-top: 15%;
    }

    .contact-input{
        height: 50px;
    }

    .contact-right button {
        height: 55px;
    }
}

@media (max-width: 800px) {
    .presentazione {
        height: 50vh;
    }

    .header-right {
        width: 300px;
    }
  
    .contact-right-title  {
        margin-bottom: 10%;
    }

    .contact-right button {
        height: 50px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-right {
        margin-top: 5%;
    }

    .contact-left {
        /* margin-top: -40%; */
        width: 95%;
        margin-bottom: 0;
    }

    /* .contact-left h2{
        text-align: center;
    } */

    .contact-right {
        width: 90%;
    }

    .mappa iframe {
        width: 100%;
        height: 400px;
    }

    .mappa {
        padding: 5% 8%;
    }

    .card {
        width: 95%;
    }
}

@media (max-width: 600px) {
    .video-presentazione {
        height: 30vh;
    }
}