/* =========================================================== DESKTOP ================================================== */
html{
    scroll-padding-top: 80px;
}
.dettaglio{
    width: 100%;
    background-color: #f3f3f3;
    padding: calc(10px + 1vw);
}
main{
    max-width: 900px;
    margin: auto;
}
.segnala{
    font-weight: bold;
    margin-top: 30px;
}
.grid{
    width: 100%;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
/* MAIN ----------------------------------------------------------------------- */
.breadcrumbs{
    font-size: .8rem;
    margin-bottom: 5px;
}
h1{
    margin: 0;
    font-size: calc(1rem + 1vw);
    color: var(--main);
}
.foto-main{
    flex: 1 1 100%;
    height: 400px;
    position: relative;
}
.favorite{
    position: absolute;
    cursor: pointer;
    top: 20px;
    left: 20px;
    transition: .3s;
}
.favorite i{
    font-size: 2rem;
    color: var(--main);
}
.dati-main{
    flex: 1 1 400px;
}
.dati-main .media-recensioni-top{
    padding: 8px 10px;
    background-color: var(--main);
    margin-top: 0;
}
.dati-main .media-recensioni-top a{
    color: white;
}
.dati-main .media-recensioni-top .voto {
    color: gold;
    margin-left: 5px;
}
.dati-main .media-recensioni-top .basato{
    font-size: .8rem;
    margin-left: 5px;
}
.dati-main .media-recensioni-top i{
    font-size: 1.2rem;
    color: gold;
    padding-bottom: 2px;
    margin-right: 2px;
}
.dati-main .media-recensioni-top i:last-of-type{
    margin-right: 8px;
}
.dati-main .servizio {
    border: 1px solid #cacaca;
    padding: 5px 10px;
    border-radius: 4px;
}
.dati-main .servizio:hover{
    background-color: var(--main);
    border-color: var(--main);
    color: white;
}
.prezzi-main{
    flex: 1 1 100%;
    align-items: stretch;
}
.prezzi-main .box-container{
    flex: auto;
    gap: 1px;
}
.prezzi-main .box{
    background-color: #f3f3f3;
    flex: 1 1 auto;
    padding: 10px 20px;
}
.prezzi-main .box i{
    font-size: 2.1rem;
}
.prezzi-main .box .prezzo{
    font-size: 1.5rem;
}
.prezzi-main .btn{
    border-radius: 0;
    max-width: 100%;
    flex: auto;
    height: auto;
    margin: 0;
}
.prezzi-main .box .label {
    font-size: .9rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.prezzi-main .box .icon{
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
.prezzi-main .box .icon img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}
.box-desc{
    margin-bottom: 20px;
}
.box-desc h2{
    border-bottom: 2px solid #f3f3f3;
    padding-bottom: 20px;
    color: var(--main);
    margin-top: 0;
    font-size: calc(1.1rem + .5vw);
}
.box-desc p:last-of-type{
    margin-bottom: 0;
}
.box-desc .stars i{
    color: goldenrod;
    margin-right: 5px;
}
.box-desc .mappa{
    width: 100%;
    aspect-ratio: 16/9;
    z-index: 1;
}
.box-desc .descrizione_gpt {
    margin-bottom: 0;
}

.box-desc .descrizione_gpt .box {
    border-radius: 4px;
    border: 1px solid #c7c7c7;
    background-color: #f3f8ff;
    padding: 10px;
    flex: 1 1 100%;
}

.box-desc .descrizione_gpt p {
    font-size: .9rem;
    margin-bottom: 0;
    margin-top: 0;
}


/* Sezioni a scorrimento orizzontale */
.container-scroll {
    scroll-snap-type: x mandatory;
    overflow-x: scroll;
    scroll-behavior: smooth;
    position: relative;
    padding: 10px 0;
}

.container-scroll::-webkit-scrollbar {
    display: none;
}

.box-scroll {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 350px;
    max-width: 100%;
}

.box-scroll.w100 {
    min-width: 100%;
}

.btn-scroll {
    position: absolute;
    background-color: white;
    color: var(--secondary);
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: .5s;
}

.btn-scroll:hover {
    background-color: var(--main);
    color: white;
    transition: .5s;
}

.btn-scroll i {
    font-size: 2rem;
    font-weight: bold;
}

.btn-scroll.left {
    left: -.8rem;
}

.btn-scroll.right {
    right: -.8rem;
}
.servizi {
    margin: 2rem 0;
    gap: 6vw 3vw;
    transition: .5s;
}

.servizi *,
.news * {
    transition: .5s;
}

.servizi .foto {
    aspect-ratio: 3/4;
    height: 250px;
    width: 100%;
    overflow: hidden;
    padding-top: 20px;
}

.servizi .foto img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.news {
    flex: 1 1 auto;
    min-width: 320px;
    max-width: 100%;
}

.news h3 {
    margin-top: 0;
}

.news p {
    color: #333333;
    margin-top: 0;
    font-size: 1.1rem;
}

.news .prezzo {
    color: var(--main);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.news:hover img {
    opacity: .7;
}

.news:hover h3 {
    color: var(--main);
}

.news .data {
    font-size: .9rem;
    margin-top: 1rem;
    color: gray;
}
.foto_blog{
    width: 100%;
    height: auto;
    margin: 20px 0;
}
.foto_blog img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

/* =========================================================== TABLET PORTRAIT ================================================== */
@media only screen and (min-width: 768px) and (max-width: 1019px) {
    .prodotto{
        flex-wrap: wrap;
    }
    .prodotti .box-prezzo{
        flex: 100%;
    }
}

/* =========================================================== MOBILE ================================================== */
@media only screen and (max-width: 767px) {
    .dettaglio{
        padding: 0;
    }
    .prodotto{
        flex-wrap: wrap;
    }
    .prodotti .prodotto{
        flex-wrap: wrap;
    }
    .prezzi-main .box{
        padding: 10px 10px;
        flex-wrap: wrap;
        flex: 1 1 33%;
        flex-flow: column;
        justify-content: center;
        text-align: center;
    }
    .prezzi-main .box .label{
        font-size: .9rem;
    }
    .prezzi-main .box .prezzo{
        margin-top: 5px;
        font-size: 1.2rem;
    }
    .prodotti .box-prezzo{
        flex: 100%;
    }
    .abbinamenti .abbinamento{
        flex: 0 0 48%;
    }
    .foto-main{
        height: 300px;
    }
    .box-desc .mappa {
        aspect-ratio: 3/4;
        pointer-events: none;
    }
}