/* =========================================================== DESKTOP ================================================== */

/* MAIN ----------------------------------------------------------------------- */
.parallax{
    min-height: calc(400px + .5vw);
    background-attachment: unset;
    background-position: center;
}
.parallax h1{
    padding-top: 40px;
    font-size:calc(1.8rem + 1.5vw);
}
.parallax p{
    font-size:calc(1rem + .3vw);
}
section{
    background-color: white;
}
.pagina-testo{
    font-size: 1rem;
}
.pagina-testo h2{
    font-size: 2rem;
}
.pagina-testo h3{
    font-size: 1.5rem;
}
.pagina-testo li{
    padding: 5px 0;
}
.pagina-testo img{
    object-fit: cover;
    width: 100%!important;
    float:none!important;
    height: auto!important;
    margin: 1rem 0!important;
    border-radius: 4px;
    aspect-ratio: 16/9;
}
.pagina-testo iframe{
    border-radius: 4px;
    width: 100%;
}
.grid{
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.box{
    background-color: white;
    flex: 1 1 300px;
}
.box:hover img{
    opacity: .8;
    transform: scale(1.2);
}
.box .dati{
    padding: 20px;
}
.box .titolo{
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 0;
}
.box .sottotitolo{
    font-size: .9rem;
    color: #333333;
}
.box .foto{
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 4px 4px 0 0;
    position: relative;
}
.box .categoria{
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--main);
    color: white;
    padding: 5px 10px;
    font-size: .8rem;
    border-radius: 4px 0 4px 0;
}
.box img{
    border-radius: 4px 4px 0 0;
    transition: .5s;
}
.box .data{
    color: #a0a0a0;
    font-size: .8rem;
}
.box button{
    padding: 5px 10px;
    background-color: var(--main);
    color: white;
    border-radius: 4px;
    cursor: pointer;
}
.barra_pagine_avanti_indietro{
    margin: auto;
    max-width: 1000px;
}
.box_select_pagina select{
    padding: 5px 15px;
    outline-color: var(--main);
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    font-size: .9rem;
    line-height: 1.5;
    width: 100%;
}
.tasto_ai{
    background-color: var(--main);
    color: white;
    font-size: .9rem;
    padding: 5px 10px;
    border-radius: 4px;
}
.ricerca{
    margin-top: 30px;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}
.ricerca input{
    padding: 15px 20px;
    border: 1px solid gray;
    border-radius: 4px 0 0 4px;
    width: 100%;
}
.ricerca .tasto_cerca{
    background-color: var(--main);
    height: 49px;
    width: 50px;
    border: 1px solid gray;
    border-radius: 0 4px 4px 0;
    margin-left: -2px;
    cursor: pointer;
}
.ricerca .tasto_cerca i{
    color: white;
}
/* =========================================================== TABLET PORTRAIT ================================================== */
@media only screen and (min-width: 768px) and (max-width: 1019px) {
    /*width:650px;*/

}

/* =========================================================== MOBILE ================================================== */
@media only screen and (max-width: 767px) {
    .pagina-testo{
        font-size: 1rem;
    }
    .pagina-testo img{
        aspect-ratio: 4/3;
    }
}