.event-archive-page .mec-event-time {
    display: none;
}
.event-slider .owl-item .event-grid-modern-head  {
	display: none;
}

/*event map css*/
.event-map-section {
  position: relative;
  background: url('https://webincostruzione1.it/luni/wp-content/uploads/2025/06/Vino.png') center center / cover no-repeat;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-map-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 150px 150px;
  flex-wrap: wrap;
  align-content: flex-end;
}

.horizontal-article .event-map-section {
    height: 100%;
}

.event-map-text {
  max-width: 600px;
}

.event-map-text h4 {
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.event-map-text h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.event-map-divider {
  width: 50px;
  height: 2px;
  background-color: #006633;
  margin: 20px 0;
}

.event-map-button {
  background-color: #006633;
  color: white;
  padding: 12px 24px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.event-map-button:hover {
  background-color: #422918;
}

.event-map-logo img {
  width: 160px;
  max-width: 100%;
}
.event-map-section * {
  color: white !important;
}
.event-archive-page .mec-calendar dt {
    border-radius: 0;
}
.company-hide {
    display: none !important;
}
.facetwp-map-filtering { 
  display: none; 
}
.company-map-container {
    width: 100% !important;
    max-width: 100% !important;
    height: calc(100dvh - 280px) !important;
    margin: 0 auto;
    padding: 0;
}
body .company-map-container #facetwp-map {
    width: 100% !important;
    height: calc(100dvh - 280px) !important;
}

/*Home Page*/
.horizontal-scroll > .vc_column-inner {
    padding-left: 0;
    padding-right: 0;
}
html:has(.company-list-section) {
    overflow-y: auto;
}
.horizontal-type-event-filter .facetwp-checkbox {
    font-size: 18px;
    color: #fff;
    margin: 10px 0;
    padding-left: 25px;
}
.horizontal-type-event-filter .facetwp-input-wrap {
    display: block;
}
.horizontal-type-event-filter .facetwp-input-wrap .facetwp-search {
    width: 100%;
}
.horizontal-type-event-filter .facetwp-facet-search {
    margin-bottom: 20px;
}
.horizontal-post-section p {
    line-height: 1.6;
    font-weight: normal;
}
.post-listing-wrapper {
    cursor: pointer;
}
@media screen and (min-width: 1101px) {
    body .companies-term-filter >.vc_column-inner {
        height: calc(100dvh - 300px);
    }
}
@media screen and (min-width: 1150px) {
    .home header#site-header,
    .archive header#site-header,
    body:has(.horizontal-event) header#site-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
    }
    .horizontal-scroll  > .vc_column-inner > .wpb_wrapper {
        display: flex;
        flex-wrap: nowrap;
    }
    .horizontal-scroll .vc_column-inner > .wpb_wrapper > .vc_row {
        background-size: auto 100%;
        background-position: right;
        min-width: 100vw;
    }
    .event-page-wrapper .horizontal-scroll .vc_column-inner > .wpb_wrapper > .vc_row {
        min-width: auto;
    }
    .event-page-wrapper .horizontal-scroll .vc_column-inner > .wpb_wrapper > .vc_row:last-child {
        min-width: 100vw;
    }
    .horizontal-scroll {
        display: flex;
        flex-wrap: nowrap;
        height: 100%;
        padding: 0;
    }
    .horizontal-inner .horizontal-scroll {
        width: unset;
    }
    .horizontal-scroll-content .horizontal-article {
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .horizontal-wrapper {
        padding-left: 0 !important;
    }
    .icon-scroll > .wpb_wrapper {
        text-align: center;
        position: relative;
    }
    .riga_progetto figure,
    .riga_progetto figure .vc_single_image-wrapper, 
    .riga_progetto .vc_figure {
        display: block;
    }
    .riga_progetto figure .vc_single_image-wrapper img {
        width: 100%;
    }
    .icon-scroll {
        position: absolute;
        bottom: 15vw;
        right: 5vw;
        text-align: right;
    }
    .icon-scroll-bar {
        width: 30px;
        height: 50px;
        margin: 0 auto 15px;
        box-shadow: rgb(206, 208, 215) 0px 0px 0px 3px inset;
        border-radius: 25px;
        position: relative;
    }
    .icon-scroll-bar::before {
        content: "";
        width: 6px;
        height: 6px;
        top: 6px;
        animation-duration: 1.5s;
        animation-iteration-count: infinite;
        animation-name: fadeOutDown;
        background: rgb(153, 155, 164);
        border-radius: 3px;
        position: absolute;
        right: 0;
        left: 0;
        margin: 0 auto;
    }
    .horizontal-scroll-content {
        display: flex;
        flex-wrap: nowrap;
    }
    .horizontal-scroll .mec-slider-t3 .mec-event-article {
        height: 100dvh;
    }
    .horizontal-event .thumbs-list {
        display: flex;
        flex-wrap: nowrap;
        height: 100dvh;
        width: 100%;
    }
    .horizontal-event .thumbs-list .item {
        width: 19.6vw;
        min-width: 19.6vw;
        height: 100%;
        display: flex;
        -webkit-box-align: end;
        align-items: flex-end;
        color: rgb(255, 255, 255);
        position: relative;
        border-width: 1px;
        border-style: solid;
        border-color: rgb(255, 255, 255);
        border-image: initial;
        text-decoration: none;
        border-bottom: none;
    }
    .horizontal-event .thumbs-list .item:before {
        position: absolute;
        content: "";
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        z-index: 1;
        background: linear-gradient(0deg, rgb(0, 0, 0), 0px, rgba(0, 0, 0, 0.9), 30%, rgba(0, 0, 0, 0.5), 60%, rgba(0, 0, 0, 0.25), 80%, rgba(0, 0, 0, 0));
    }
    .horizontal-event .thumbs-list .item .thumb {
        width: 100%;
        height: 100%;
        top: 0px;
        object-fit: cover;
        position: absolute;
        z-index: 0;
    }
    .horizontal-event .thumbs-list .item .title {
        text-align: center;
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 0px 1rem 5rem;
        font-size: 1.9rem;
        color: #fff;
        font-family: Trirong;
        font-weight: 500;
    }
    .horizontal-type-event-filter > .vc_column-inner {
        height: 100dvh;
        padding-top: 150px !important;
    }
    .horizontal-type-event .horizontal-type-event-filter {
        width: 360px;
    }
    .horizontal-type-event .horizontal-type-event-map {
        width: calc(100% - 360px);
    }
    .horizontal-type-event .horizontal-type-event-map {
        height: 100dvh;
    }
    .horizontal-type-event .horizontal-type-event-map .vc_column-inner {
        height: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    .horizontal-type-event-map .facetwp-facet-event_map #facetwp-map {
        height: 100dvh !important;
        width: 100% !important;
    }
    .horizontal-scroll .vc_column-inner > .wpb_wrapper > .vc_row.horizontal-post-section {
        padding: 210px 15%;
    }
    
    .horizontal-scroll .vc_column-inner > .wpb_wrapper > .vc_row.horizontal-post-section p {
        line-height: 1.5;
        max-width: 460px;
        margin: 0 0 10px !important;
    }
    
    
    @keyframes fadeOutDown {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            -webkit-transform: translateY(26px);
            transform: translateY(26px);
        }
    }
    
}

@media screen and (min-width: 768px) and (max-width: 1149px) {
 
    .horizontal-scroll .home_hero {
        background-size: auto 100%;
        background-position: right;
    }
    .horizontal-scroll .home_hero h1 {
        font-size: 40px;
    }
    .horizontal-scroll .home_hero h2 {
        font-size: 30px;
    }
    .horizontal-scroll .home_hero .theme-button {
        font-size: 18px;
    }
    .horizontal-wrapper > .vc_row {
        padding-left: 0;
        padding-right: 0;
    }
    #progetto {
        margin-left: 0;
        margin-right: 0;
    }
    
}
    
/* Responsive */
@media (max-width: 1150px) {
    
    .horizontal-event .thumbs-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        min-height: unset;
        margin-bottom: 40px;
        padding: 0 10px;
    }
    .horizontal-event .thumbs-list .item {
        position: relative;
        width: calc(33.33% - 8px);
        height: 350px;
    }
    .horizontal-event .thumbs-list .thumb {
        height: 100%;
        width: 100%;
        object-fit: cover;
        max-height: 100%;
    }
    .horizontal-event .thumbs-list .item .title {
        position: absolute;
        bottom: 0;
        color: #fff;
        font-size: 1.2rem;
        padding: 0px 1rem 1.5rem;
        text-align: center;
    }
    .horizontal-event .thumbs-list .item:before {
        position: absolute;
        content: "";
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 0px;
        z-index: 0;
        background: linear-gradient(0deg, rgb(0, 0, 0), 0px, rgba(0, 0, 0, 0.9), 30%, rgba(0, 0, 0, 0.5), 60%, rgba(0, 0, 0, 0.25), 80%, rgba(0, 0, 0, 0));
    }
    .horizontal-post-section {
        padding: 60px;
    }
    .horizontal-type-event-map #facetwp-map {
        width: 100% !important;
        min-height: 400px ;
        height: 100% !important;
    }
    .horizontal-type-event {
        margin: 0;
    }
    .horizontal-type-event-filter .vc_column-inner {
        min-height: 400px;
    }
    .horizontal-type-event-filter .facetwp-input-wrap .facetwp-search {
        min-width: unset;
    }
    .horizontal-type-event-filter {
        padding-left: 10px;
    }
    .horizontal-type-event-map .facetwp-facet-event_map {
        margin-bottom: 0;
    }
    .horizontal-post-section p {
        font-size: 14px;
    }
}


@media (max-width: 768px) {
  .event-map-overlay {
    flex-direction: column;
    text-align: center;
  }
  .event-map-logo {
    margin-top: 30px;
  }
  .event-map-text h1 {
    font-size: 32px;
  }
}

@media screen and (max-width: 767px) {
    
    .horizontal-scroll .home_hero {
        height: auto;
        align-items: center;
        padding-top: 40px;
        background-position: top;
        padding-bottom: 0px;
    }
    .horizontal-scroll > .vc_column-inner {
        padding-left: 0;
        padding-right: 0;
    }
    .home_hero .vc_col-sm-8 {
        display: none;
    }
    .home_hero .vc_col-sm-4 {
        height: auto;
    }
    .home_hero .vc_column-inner {
        padding-left: 15px !important;
    }
    .riga_progetto .vc_column-inner {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
    .horizontal-event .thumbs-list .item {
        width: calc(50% - 8px);
        height: 280px;
    }
    .horizontal-type-event-filter {
        padding-left: 0;
        padding-bottom: 20px;
    }
    
}


@media screen and (max-width: 480px) {
    
    .horizontal-event .thumbs-list .item {
        width: 100%;
    }
    .horizontal-event .thumbs-list .item {
        width: calc(100% - 15px);
        margin: 0 auto;
    }
    .horizontal-type-event-filter {
        padding: 0 15px 15px;
    }
    .horizontal-post-section {
        padding: 40px 15px;
    }
    
}