#news {
  position: relative;
}

@media screen and (min-width: 769px) {
  #news .slides > li::before {
    padding-top: 30.71%;
  }

  #news .centrato .slides > li::before {
    padding-top: 49.15%;
  }
}

#news .field-collection-container + .tag-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  z-index: 98;
  text-align: center;
}

@media screen and (max-width: 1024px) {
  #news .field-collection-container + .tag-wrapper {
    top: 44px;
  }
}

@media screen and (max-width: 768px) {
  #news .field-collection-container + .tag-wrapper {
    top: 44px;
  }
}

@media screen and (max-width: 580px) {
  #news .field-collection-container + .tag-wrapper {
    top: 44px;
  }
}

#news .field-collection-container + .tag-wrapper .tag {
  margin: 0 auto;
  padding: 1px 6px;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  text-transform: uppercase;
}

/* lista */

.page-news #block-system-main,
.page-soluzioni #block-system-main {
  background-color: #ededed;
}

.lista-news,
.lista-soluzioni {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.lista-soluzioni .lista {
  padding-top: 40px;
}

.lista-news .lista .news-wrapper,
.lista-soluzioni .lista .news-wrapper {
  display: inline-block;
  width: 25%;
  padding: 0 10px 25px;
  margin-right: -4px;
  vertical-align: top;
}

.lista-news .lista .news-wrapper.col2,
.lista-soluzioni .lista .news-wrapper.col2 {
  width: 50%;
}

.news-wrapper .news {
  position: relative;
  width: 100%;
  min-width: 260px;
  height: 390px;
  background-color: #fff;
  box-sizing: border-box;
  border-radius: 4px;
  overflow: hidden;
}

.news-wrapper .news > div {
  overflow: hidden;
  height: 100%;
}

.news-wrapper .news .tag {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}


.news-wrapper .news .testo h2,
.news-wrapper .news h2 a {
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-weight: 700;
  color: #3a3d3f;
}

/* template 1 */

.news-wrapper.standard .news img {
  width: 100%;
  height: auto;
}

.news-wrapper.standard .news .placeholder {
  width: 100%;
  background-color: #ddd9d9;
  border: 1px solid #fff;
  border-radius: 4px 4px 0 0;
}

.news-wrapper.standard .news .placeholder::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 72.8%;
}

.news-wrapper.standard .news .testo {
  font-size: 17px;
  line-height: 22px;
  color: #838c8e;
  padding: 24px;
  height: 160px;
}

.news-wrapper.standard .news .testo h2,
.news-wrapper.standard .news .testo h2 a {
  font-size: 18px;
  line-height: 24px;
  padding: 8px 0;
}

.news-wrapper .news .testo p {
  overflow: hidden !important;
  text-overflow: ellipsis;
  /*display: inline-block;*/
  /*width: 90%;*/
}

/* template 2 */

.news-wrapper.col2 .news img {
  float: right;
  /*margin: 37px 21px 0;*/
  margin: 20px;
  max-width: 40%;
}

.news-wrapper.col2 .news .testo {
  font-size: 17px;
  line-height: 22px;
  color: #838c8e;
  height: 100%;
  padding: 72px 0 64px 24px;
  padding-right: 0;
}

.news-wrapper.col2 .news .testo h2,
.news-wrapper.col2 .news h2 a {
  font-size: 26.5px;
  line-height: 32px;
  padding-bottom: 16px;
}

.news-wrapper.col2 .news .testo .btn {
  position: absolute;
  bottom: 24px;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: #3c3d41;
  padding: 10px 16px;
  border: 1px solid #efefef;
  border-radius: 20px;
}

.news-wrapper.col2 .news .testo .btn.with-icon {
  padding: 10px 16px 10px 64px;
  background-position: 16px center;
  background-repeat: no-repeat;
}

/* template 3 */

.news-wrapper.colore .news {
  text-align: center;
  padding: 72px 24px;
}

.news-wrapper.colore .news .tag {
  right: 24px;
  text-align: center;
}

.news-wrapper.colore .news h2,
.news-wrapper.colore .news h2 a {
  font-size: 27px;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
  padding-bottom: 16px;
}
.news-wrapper.colore .news .testo h2 {
  /*min-height: 130px;*/
}
.news-wrapper.colore .news .testo p {
  font-size: 17px;
  line-height: 22px;
  color: #fff;
  color: rgba(255,255,255,0.5);
  /*min-height: 210px;*/
}

.news-wrapper.colore .news .btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  width: 160px;
  margin-left: -80px;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
  padding: 10px 0;
  border: 1px solid #fff;
  border-color: rgba(255,255,255,0.2);
  border-radius: 20px;
}

/* filers */

.views-exposed-form .views-exposed-widget {
  float: none;
  text-align: right;
  padding: 20px 0;
}

.views-exposed-form .views-exposed-widget.views-submit-button {
  display: none;
}

.views-exposed-form .form-item, .views-exposed-form .form-submit {
  display: inline-block;
}

.views-exposed-form .form-item {
  width: 100%;
}
.views-exposed-form .form-item.form-type-bef-link {
  float: right;
  width: auto;
  margin-bottom: 6px;
}

#edit-field-tag-tid-all,
#edit-field-tag-soluzioni-tid-all {
  float: left;
}

#edit-field-tag-tid-all a,
#edit-field-tag-soluzioni-tid-all a {
  margin-left: 0;
}

.views-exposed-form .form-item a,
.views-exposed-form .form-submit a {
  display: inline-block;
  background-color: #ccc;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
  text-transform: uppercase;
  color: #fff;
  padding: 3px 8px;
  margin-left: 10px;
  border-radius: 2px;
}


/* post correlati */

#block-views-news-post-correlati {
  background-color: #ddd9d9;
}

#lista-news-post-correlati {
  padding-bottom: 36px;
}

#lista-news-post-correlati h3 {
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  color: #333;
  text-align: center;
  text-transform: uppercase;
  padding: 30px 0;
}

/* blocco home */

#block-views-news-blocco-home {
  background-color: #ddd9d9;
}

#lista-news-blocco-home {
  padding: 24px 0 48px;
}

#lista-news-blocco-home h3 {
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  padding: 30px 0;
  color: #bf0418;
  padding-left: 10px;
  text-transform: uppercase;
}

#lista-news-blocco-home .btn.btn-white {
  margin: 0 10px;
}

/* pager */

.item-list .pager-load-more {
  margin: 24px 10px 45px;
}

.item-list .pager-load-more li {
  margin: 0;
  padding: 0;
}

.item-list .pager-load-more li a {
  display: block;
  font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
  padding: 11px 0;
  height: 42px;
  background-color: #ddd9d9;
  color: #fff;
  margin-bottom: 20px;
  border-radius: 6px;
}

@media screen and (max-width: 1080px) {

  .lista-news,
  .lista-soluzioni {
    max-width: 900px;
  }
  .news-wrapper.standard .news,
  .news-wrapper.colore .news {
    height: auto;
    /*min-height: 527px;*/
  }

  .lista-news .lista .news-wrapper,
  .lista-soluzioni .lista .news-wrapper {
    /*width: 33.3%;*/
    /*width: calc(100% / 3);*/
    width: 50%;
  }
  .lista-news .lista .news-wrapper.col2,
  .lista-soluzioni .lista .news-wrapper.col2 {
    /*width: 66.7%;*/
    /*width: calc(100% * 2 / 3);*/
    width: 100%;
  }

  .news-wrapper.colore .news {
    min-height: 527px;
  }

}

/*@media screen and (min-width: 841px) and (max-width: 1080px) {
  .news-wrapper.colore .news {
    min-height: 394px;
  }
}*/

@media screen and (max-width: 840px) {

  .lista-news,
  .lista-soluzioni {
    max-width: 600px;
  }

  .lista-news .lista .news-wrapper,
  .lista-soluzioni .lista .news-wrapper {
    width: 50%;
  }
  .lista-news .lista .news-wrapper.col2,
  .lista-soluzioni .lista .news-wrapper.col2 {
    width: 100%;
  }

  .news-wrapper .news {
    min-width: 0;
    height: auto;
    min-height: 439px
  }

  .news-wrapper.colore .news {
    min-height: 439px;
  }
}

@media screen and (max-width: 768px) {
  #lista-news-blocco-home h3 {
    text-align: center;
  }
}

@media screen and (max-width: 590px) {

  .lista-news .lista .news-wrapper.standard,
  .lista-soluzioni .lista .news-wrapper.standard,
  .lista-news .lista .news-wrapper.colore,
  .lista-soluzioni .lista .news-wrapper.colore,
  .lista-news .lista .news-wrapper.col2,
  .lista-soluzioni .lista .news-wrapper.col2 {
    width: 100%;
  }

  .news-wrapper.standard .news,
  .news-wrapper.colore .news,
  .news-wrapper.col2 .news {
    height: auto;
    min-height: 360px;
  }

  /*.news-wrapper.standard .news,
  .news-wrapper.colore .news {
    max-width: 385px;
  }*/

  .news-wrapper.col2 .news .testo h2, .news-wrapper.col2 .news h2 a {
    font-size: 16px;
    line-height: 22px;
  }

  .news-wrapper.col2 .news .testo {
    font-size: 17px;
    line-height: 20px;
  }

  .news-wrapper.col2 .news .testo .open-gallery {
    background-image: none;
    padding-left: 16px;
  }

}
