/*
Theme Name:     enfold-child
Description:    
Author:         Francesco Strazzante
Template:       enfold

*/

:root {
  --primary-color: #b1182e; 
}

.more-link {
	display: inline-block;
	margin: 0;
	padding: 0.6em 1em;
	background: var(--primary-color);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-size: 0.9375rem;
	transition: all 0.2s ease;
}

a.more-link, a.more-link:hover{
    color: white!important;
    text-decoration: none;
}

.offers{
    padding: 70px 0 70px;
    -js-display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.offers-tab{
    -js-display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto;
    width: 100%;
    margin-bottom: 70px;
    overflow: hidden;
}

.offers-tab .active{
    border-bottom: 3px solid var(--primary-color);
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
}

.offers-tablinks{
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 50%;
    flex: 0 1 50%;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(50,50,50,.1);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.88;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-transition: all .3s ease-in-out 0s;
    transition: all .3s ease-in-out 0s;
}

.offers-tabcontent.active{
    max-height: none;
    height: 100%;
    width: 100%;
    opacity: 1;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
}

.offers-tabcontent{
    margin: 0 auto;
    -js-display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-flex: 1;
    -ms-flex: 1 1;
    flex: 1 1;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: start;
    -ms-flex-line-pack: justify;
    align-content: start;
    max-width: 1120px;
    max-height: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: opacity 1s;
    transition: opacity 1s;
}

.offers-tabcontent .tabcontent-item {
    -js-display: flex;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 50%;
    flex: 0 1 50%;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    min-height: 300px;
    height: 100%;
    overflow: hidden;
    -webkit-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
    cursor: pointer;
    border-bottom: 2px solid #eaeaea;
}

.tabcontent-item:hover{
    border-bottom: 2px solid var(--primary-color);
    background-color: var(--primary-color);
    /* color: #fff */
}

.offer-content{
    width: 100%;
}

.offer-content-image{
    margin: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: calc(100% - 30px);
}

.offer-content img{
    position: relative;
    height: 100%;
    max-width: unset;
    width: 100%;
}

.offer-content div.offer-content-text{
    position: absolute;
    bottom: -100%;
    width: 100%;
    padding: 0 15px 15px;
    background: #fff;
    transition: bottom 0.5s ease;
}

.tabcontent-item:hover .offer-content div.offer-content-text{
  bottom: 0%!important;
}


.offer-content-title{
    margin: 15px 0;
}

.offer-content-description{
    font-size: 14px;
}

@media only screen and (max-width: 50em) {
    .swiper-slide img{
        height: 100%;
    }

    .offers-tabcontent .tabcontent-item{
        flex: 0 1 100%;
        margin-bottom: 30px;
    }

    .offer-content div.offer-content-text{
        bottom: 0px!important;
    }
}

.title_container .main-title {
    font-size: 24px!important;
}

@media only screen and (max-width: 768px) {
.hide-on-mobile { display: none !important; }}
@media only screen and (min-width: 768px) {
.hide-on-desktop { display: none !important; }}

pre {
    background-image: none !important;
}

.event-categories {
    display: inline;
    list-style: none!important;
    margin-left:0!important; 
}

.event-categories li {
    display: inline;
    margin-left:0!important; 
}

.event-categories li:after {
    content: ", ";
}

.event-categories li:last-child:after {
    content: "";
}