#carouselHome{
    height: calc(100vh - 210px);
    overflow: hidden;
    position: relative;
}
.carousel-item{height: calc(100vh - 210px);}
/*#carouselHome img{height: calc(100vh - 240.19px);}*/
.bg-slide{
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}
.style-slide-1{
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
    /*height: 100vh;*/
    position: relative;
}
.style-slide-2,
.style-slide-3{
    background-color: black;
    /*height: 100vh;*/
}
.style-carousel{
    position: relative;
}
.style-slide-1 .carousel-caption-4 h5,
.style-slide-1 .carousel-caption-3 h5,
.style-slide-2 .carousel-caption-2 h5,
.style-slide-3 .carousel-caption-2 h5{
    line-height: 1.3;
    font-size: 2.7vw;
    font-weight: 300;
    color: #fff;
}
.style-slide-1 .carousel-caption h5{
    font-size: 1.7rem;
    font-weight: 200;
    color: #fff;
}
.style-slide-1 .carousel-caption {
    right: 0;
    left: 0;
    bottom: 7%;
    background-color: rgba(0,0,0, .1);
}
.style-slide-3 .carousel-caption-2,
.style-slide-2 .carousel-caption-2 {
    height: 100vh;
    padding-bottom: 0;
}
.style-slide-3 .carousel-caption-2 {
    float: right;
    padding-right: 2rem;
}
.carousel-caption-2{
    text-align: right;
    max-width: 80%;
    float: left;
    padding-bottom: 3rem;
}
.carousel-caption-3{
    line-height: 1.3;
    font-size: 5rem;
    font-weight: 300;
    color: #fff;
    margin-top: 75px;
    height: 100vh;
}
.container-caption{
    position: relative;
}

.style-slide-3 .carousel-caption-2, .style-slide-1 .carousel-caption-3  {
    display: flex;
    align-items: center;
    justify-content: end;
}
.style-slide-2 .carousel-caption-2 {
    display: flex;
    align-items: center;
    justify-content: center;
}
.style-slide-1 .carousel-caption-3  h5{
    background-color: rgba(0,0,0, .1);
    padding: 15px
}

.carousel-caption-4{
    background-color: rgba(0,0,0, .1);
    bottom: 30%;
}

#team-home p{
    margin-bottom: 0;
    color: #cdcdcd;
    display: block;
    width: 100%;
    font-size: 1.2rem
}
#team-home h6{
    color: #114388;
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: .15em;
    font-weight: bold;
}
#team-home h4{
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-top: 0;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 10px
}
#team-home .desc-section,
#team-home h2, #testimonial-home h2{
    color: #cdcdcd !important;
}

#testimonial-home{
    padding-top: 105px;
    padding-bottom: 133px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-size: cover;
    margin-bottom: 0;
    background-image: url("../images/bg/testimonial-bg.jpg");
    z-index: 1;
    box-sizing: border-box;
}


#servizi-home{
    padding-top: 105px;
    padding-bottom: 133px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
    background-size: cover;
    margin-bottom: 0;
    background-image: url("../images/bg/bg-section-1.webp");
    z-index: 1;
    box-sizing: border-box;
}
#servizi-home .link-box {
    max-height: 275px;
    overflow: hidden;
    background: #3c4145c7;
}
#servizi-home .link-box .img-box {
    background-color: white;
    opacity: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: .5s ease;
    backface-visibility: hidden;
}

#servizi-home .link-box:hover .img-box {
    opacity: 0.3;
    transition: 0.3s;
}

#servizi-home .link-box .content-box {
    padding: 20px;
    transition-timing-function: ease-in;
    transition: 0.2s;
    transform: translateY(-50%);
}

#servizi-home .link-box:hover .content-box {
    transition-timing-function: ease-out !important;
    transition: 0.25s;
    transform: translateY(-120%);
}

#servizi-home .link-box .content-box h2{
    text-transform: uppercase;
    margin: 0 0 15px;
    text-shadow: 1px 1px #555;
    color: #fff;
}

#post-home .card{
    border: none;
    border-bottom: 7px solid #3c4145;
}
#post-home .card:hover{
    border-bottom: 7px solid #114388;
    transition: 0.3s;
}
#post-home .card .card-title{
    font-size: 1.7rem;
    font-weight: bold !important;
    line-height: inherit;
    transition: 0.3s;
}
#post-home .card p.card-text{
    height: 72px;
}

.img-box{
    height: 78px;
}

section {
    max-height: 100vh;
    overflow: hidden;
}
#myVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    left: 0;
    min-width: 100%;
}
#recipeCarousel{
    padding-right: 30px;
    padding-left: 30px;
    width: 94vw;
    height: 500px;
    overflow: hidden;
}
#recipeCarousel .carousel-control-next, #recipeCarousel .carousel-control-prev{
    width: 8%;
}
#recipeCarousel.carousel-fade .carousel-item{
    max-height: 500px;
}

#recipeCarousel .card-img img{
    object-fit: fill;
    object-position: center;
        height: 100%;
        width: 100%;
}
#recipeCarousel .card-img{
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 1782px){
    .style-slide-1 .carousel-caption-4 h5, .style-slide-1 .carousel-caption-3 h5, .style-slide-2 .carousel-caption-2 h5, .style-slide-3 .carousel-caption-2 h5 {
        font-size: 4rem;
    }
}
@media screen and (max-width: 1500px){    
    .style-slide-1{background-size: cover;}
}
@media screen and (max-width: 1399px){
    #servizi-home .link-box {
        max-height: 237px;
    }
    .style-slide-1 .carousel-caption-4 h5, .style-slide-1 .carousel-caption-3 h5, .style-slide-2 .carousel-caption-2 h5, .style-slide-3 .carousel-caption-2 h5 {
        font-size: 3rem;
    }
}
@media screen and (max-width: 1230px){    
    #carouselHome, .carousel-item  {
        height: calc(100vh - 157.16px);
    }
}
@media screen and (max-width: 1199px){
    #servizi-home .link-box {
        max-height: 197px;
    }
    .style-slide-1{
        background-size: cover;
    }
}
@media screen and (min-width: 992px){
    #gallery-home h2{
        margin-top: 230px; 
    }
}
@media  screen and (max-height: 900px){
    #recipeCarousel {height: 415px;}
}
@media  screen and (max-height: 810px){
    #recipeCarousel {height: 330px;}
}
@media  screen and (max-height: 730px){
    #recipeCarousel {height: 270px;}
}
@media  screen and (min-height: 600px) and (max-height: 900px){
    footer{padding-top:0}
}

@media screen and (max-width: 991px){
    #recipeCarousel{
        height: 500px;
    }
    .bg-slide {
        height: 100vh;
    }
    .container-caption{
        position: absolute;
        top: 72vh;
        height: 20vh;
        padding: 15px 0 !important;
        ;
        display: flex;
    }
    .carousel-caption-2{
        width: 100%
    }
    .style-slide-1 .carousel-caption-3 ,
    .style-slide-2 .carousel-caption-2 ,
    .style-slide-3 .carousel-caption-2 {
        justify-content: center;
        backdrop-filter: blur(7px);
        height: 20vh;
        padding: 15px;
        align-items: center;
        text-align: center;
        align-self: center;
        padding: 15px 0 !important;
    }
    #servizi-home .link-box {
        max-height: 145px;
    }
    #servizi-home .link-box:hover .content-box {
        transform: translateY(-104%);
    }
    #servizi-home .link-box .content-box h2{
        font-size: 24px;
    }
    .section-video{
        display: flex;
        background: black !important;
        align-items: center;
        justify-content: center;
    }
    #myVideo {
        position: relative;
        /*width: 100vw;*/
        top: 50px;
    }
    #carouselHome, .carousel-item  {
        height: calc(100vh - 129px);
    }
    .section-video{
        padding: 0 !important;
        background-color: #fff!important;            
    }
    section {
        max-height: initial;
        overflow: visible;
    }
    #myVideo {
        position: relative;
        width: 100vw;
         top: 0; 
    }
}
@media screen and (max-width: 767px){
    #recipeCarousel {
        padding-right: 18px;
        padding-left: 18px;
        width: 100vw;
    }
    #servizi-home .link-box {
        max-height: 223px;
        margin-bottom: 20px;
    }
    #carouselHome, .carousel-item {
        height: 50vh;
    }
    section {
        max-height: initial;
        overflow: visible;
    }
    
/*    .carousel-item{
        width: 100vw;
    }*/
}
@media screen and (max-width: 537px){
    #servizi-home .link-box {
        max-height: 146px;
        margin-bottom: 20px;
        max-width: 340px;
        margin: 0 auto;
    }
}

.card-img-overlay{
    padding-left: 0;
    padding-right: 0;
    padding-top: 0
}
.card-img-overlay .card-caption{
    color: white;
    font-weight: 300;
    font-size: 18px;
    background-color: rgba(0,0,0, .5);
    padding: .7rem;
}
@media (max-width: 767px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }
    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}
#recipeCarousel .carousel-item>div {
    padding-left: 5px;
    padding-right: 5px;
    background-color: white;
}
#recipeCarousel .carousel-inner .carousel-item.active,
#recipeCarousel .carousel-inner .carousel-item-next,
#recipeCarousel .carousel-inner .carousel-item-prev {
    display: flex;
}
#recipeCarousel .carousel-control-prev i,
#recipeCarousel .carousel-control-next i
{
    background-color: rgba(255,255,255, 1);
    padding: 20px 23px;
    color: black;
    border-radius: 100%;
}

/* medium and up screens */
@media (min-width: 768px) {

    #recipeCarousel .carousel-inner .carousel-item-end.active,
    #recipeCarousel .carousel-inner .carousel-item-next {
        transform: translateX(25%);
    }

    #recipeCarousel .carousel-inner .carousel-item-start.active,
    #recipeCarousel .carousel-inner .carousel-item-prev {
        transform: translateX(-25%);
    }
}

#recipeCarousel .carousel-inner .carousel-item-end,
#recipeCarousel .carousel-inner .carousel-item-start {
    transform: translateX(0);
}

.owl-carousel .owl-nav button.owl-next span, 
.owl-carousel .owl-nav button.owl-prev span{
        margin-top: -11px;
        background-color: rgba(255,255,255, .5);
        padding: 17px 28px 27px;
        color: #000000a7;
        border-radius: 100%;
        font-size: 3rem;                        
        transition: all .3s ease; 
}
.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev{
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 10%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
    background: transparent;
    border: 0;                   
}                
.owl-carousel .owl-nav button.owl-next:hover, 
.owl-carousel .owl-nav button.owl-prev:hover{
    background: transparent;
}
.owl-carousel .owl-nav button.owl-next:hover span, 
.owl-carousel .owl-nav button.owl-prev:hover span{
    background-color: rgba(255,255,255, 1);
}
.owl-carousel .owl-nav button.owl-prev{
    left: 0;
}
.owl-carousel .owl-nav button.owl-next{
    right: 0;
}
.owl-theme .owl-nav {width: 100%;}
.fancybox__content{background: transparent !important;}
.item {
    height: 572px;
    position: relative;
    top: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}
.item a .card{height: 100%; border: 0;/*background-color: black;*/}
.item a{
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.item a .card-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-content: stretch;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
}
.item a .card-img video {height: 100%;width: auto;}
.item a .card-img iframe {width: 100% !important;height: 100% !important;}

.relative{position: relative;}
