/*
 * Mobile first
 */
body {
    background-color: #fff;
}

.container {
    max-width: 1140px;
}

.main-title {
    font-weight: 500;
}

p {
    font-size: 0.95rem;
}

.fw-semibold {
    font-weight: 500;
}

.btn-container-cta .btn {
    height: 45px;
}
.btn-container-cta a.btn {
    line-height: 30px;
}

.bi-patch-check {
    color: #e31244;
}

/* Menu */
.entity-view .air-menu-top,
.entity-view .air-menu-bottom{
    display: none;
}

/* Images Grid */
.common-grid {
    display: none;
}

/* Swiffy */
.swiffy-slider .slider-container {
    height: 300px;
}

.swiffy-slider .slider-container li img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
}

/* Info list */
.info-list {
    display: flex;
    flex-direction: column;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-item span:nth-of-type(2) {
    min-width: 50px;
    text-align: center;
    font-weight: 600;
}

/* Table */
.table-prices tbody td {
    font-size: 14px;
}

/* Form */
#form-lead-container {
    position: sticky;
    top: 20px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px, rgba(17, 17, 26, 0.05) 0px 8px 32px;
    border-radius: 25px;
    border: 1px solid #e7e7e7;
}

/* Masonry */
.img-container-masonry {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Due colonne */
    gap: 10px;
}

.img-container-masonry img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Ogni 3 immagini, la prima (1, 4, 7, 10...) occupa due colonne */
.img-container-masonry img:nth-child(3n+1) {
    grid-column: span 2;
    height: 500px;
}

.item-service {
    padding: 10px;
    border:1px solid #ccc;
    border-radius: 25px;
}

.item-room {
    padding: 20px;
    border-radius: 15px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    background: #fff8d3;
}
.item-room h5 {
    margin-bottom: 10px;
}
.item-room p {
    margin-bottom: 0;
}

.item-map {
    border-radius: 25px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.list-group-item {
    font-size: 0.875rem;
}

/*
 *
 * Tablet
 *
 */
@media (min-width: 576px) {

    /* Menu */
    .entity-view .air-menu-top,
    .entity-view .air-menu-bottom {
        display: flex;
    }

    /* Images grid */
    .common-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 1rem), 1fr));
        gap: 0.5rem;
        grid-template-rows: minmax(auto, auto);
        position: relative;
    }

    .common-grid .grid-item {
        max-height: 400px;
    }

    .common-grid img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .common-grid button {
        position: absolute;
        bottom: 20px;
        right: 20px;
        border: 2px solid #252525;
    }

    .common-grid button:hover {
        border: 2px solid #252525;
    }

    .common-grid .subgrid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(46%, 1fr));
        gap: 0.5rem;
        height: 100%;
        max-height: 400px;
    }

}

@media screen and (min-width: 576px) and (max-width: 991px) {

    /* Images grid */
    .common-grid .subgrid{
        display: grid !important;
        place-items: center;
        grid-template-rows: repeat(2, 1fr);
    }

    .common-grid .subgrid img:nth-child(1),
    .common-grid .subgrid img:nth-child(2)
    {
        grid-column: span 2;
    }

    .common-grid .subgrid img:nth-child(3),
    .common-grid .subgrid img:nth-child(4){
        display:none;
    }

}

@media screen and (min-width: 992px) {

    /* Images grid */
    .subgrid:has(:nth-child(3):is(:last-child)) :last-child {
        grid-column: span 2;
    }

}

/*
 *
 * Desktop
 *
 */
@media (min-width: 1200px) {

    .entity-view .air-menu-top {
        display: none;
    }

    .common-grid .grid-item {
        max-height: 600px;
    }

    .common-grid .subgrid {
        max-height: 600px;
    }

}