/* ----------------------------- */
/* Motion Graphics Grid */
/* ----------------------------- */

.portfolio-grid-row {
  display: flex !important;
  flex-wrap: wrap !important;
  max-width: 1320px !important;
  margin: 0 auto 8px auto !important;
}

/* Desktop */
.portfolio-grid-row > .portfolio-card,
.portfolio-grid-row > .wpb_column.portfolio-card {
  float: none !important;
  width: 33.3333% !important;
  flex: 0 0 33.3333% !important;
  max-width: 33.3333% !important;
  box-sizing: border-box !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-bottom: 16px !important;
}

/* Immagini */
.portfolio-img-html img {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  display: block !important;
  margin-bottom: 8px !important;
}

/* Titoli */
.portfolio-card h4,
.portfolio-card .vc_custom_heading h4 {
  text-align: left !important;
  font-size: 16px !important;
  letter-spacing: 3px !important;
  line-height: 1.1 !important;
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  white-space: nowrap !important;
}

/* Sottotitoli */
.portfolio-desc,
.portfolio-meta,
.portfolio-meta p {
  text-align: left !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  margin-bottom: 7px !important;
}

/* Bottone */
.portfolio-btn,
.vc_btn3-container {
  margin-top: 7px !important;
  margin-bottom: 0 !important;
}

/* Riduce spazio sotto showreel */
.vc_video + .vc_empty_space {
  height: 20px !important;
}

/* ----------------------------- */
/* Tablet */
/* ----------------------------- */

@media (max-width: 1024px) {

  .portfolio-grid-row {
    max-width: 100% !important;
    margin-bottom: 6px !important;
  }

  .portfolio-grid-row > .portfolio-card,
  .portfolio-grid-row > .wpb_column.portfolio-card {
    width: 33.3333% !important;
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
    margin-bottom: 14px !important;
  }

  .portfolio-img-html img {
    aspect-ratio: 1 / 1 !important;
    margin-bottom: 7px !important;
  }

  .portfolio-card h4,
  .portfolio-card .vc_custom_heading h4 {
    font-size: 12px !important;
    letter-spacing: 1.6px !important;
    line-height: 1.1 !important;
    margin-top: 4px !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
  }

  .portfolio-desc,
  .portfolio-meta,
  .portfolio-meta p {
    font-size: 10px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin-bottom: 5px !important;
  }

  .vc_btn3.vc_btn3-size-xs {
    font-size: 9px !important;
    padding: 7px 12px !important;
  }
}

/* ----------------------------- */
/* Mobile Motion Graphics */
/* ----------------------------- */

@media (max-width: 768px) {

  .portfolio-grid-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 0 !important;
  }

  .portfolio-grid-row > .portfolio-card,
  .portfolio-grid-row > .wpb_column.portfolio-card {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    float: none !important;
    clear: none !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 14px !important;
    box-sizing: border-box !important;
  }

  .portfolio-grid-row::before,
  .portfolio-grid-row::after {
    display: none !important;
    content: none !important;
  }

  .portfolio-img-html img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    margin-bottom: 8px !important;
  }

  .portfolio-card h4,
  .portfolio-card .vc_custom_heading h4 {
    font-size: 10px !important;
    letter-spacing: 1px !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    margin-top: 6px !important;
    margin-bottom: 4px !important;
  }

  .portfolio-desc,
  .portfolio-meta,
  .portfolio-meta p {
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    margin-bottom: 8px !important;
  }

  .portfolio-meta .vc_btn3-container {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
  }

  .vc_btn3.vc_btn3-size-xs {
    font-size: 8px !important;
    padding: 6px 10px !important;
  }
}

/* ----------------------------- */
/* Gallery Architectural 4 colonne */
/* ----------------------------- */

.architectural-gallery-4col {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  clear: both;
  position: relative;
  z-index: 2;
  margin-bottom: 50px !important;
}

.architectural-gallery-4col .portfolio-card {
  width: 24%;
  flex: 0 0 24%;
  margin-bottom: 30px !important;
}

.architectural-gallery-4col .portfolio-img-html img,
.architectural-gallery-4col .vc_single_image-wrapper img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.architectural-gallery-4col h4,
.architectural-gallery-4col .vc_custom_heading {
  font-size: 16px !important;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}

.architectural-gallery-4col p {
  font-size: 13px !important;
  line-height: 1.6;
  text-align: center;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}

/* ----------------------------- */
/* Twenty20 WPBakery stabile */
/* ----------------------------- */

.twenty20,
.twentytwenty-wrapper,
.twentytwenty-container {
  width: 100% !important;
  max-width: 100% !important;
  height: 360px !important;
  min-height: 360px !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  background: #f5f5f5;
}

.twenty20 img,
.twentytwenty-container img,
.twentytwenty-before,
.twentytwenty-after {
  width: 100% !important;
  height: 360px !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Titoli e testi sotto Twenty20 */

.wpb_wrapper > h4,
.twenty20 + h4,
.twentytwenty-wrapper + h4 {
  font-size: 16px !important;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-align: center;
  margin-top: 18px !important;
  margin-bottom: 12px !important;
}

.wpb_wrapper > p {
  font-size: 13px !important;
  line-height: 1.7;
  text-align: center;
  margin: 0 auto 12px auto !important;
}

/* ----------------------------- */
/* Protezione contro sovrapposizione Clients */
/* ----------------------------- */

.architectural-gallery-4col,
.twenty20,
.twentytwenty-wrapper,
.twentytwenty-container {
  clear: both;
}

/* ----------------------------- */
/* Immagini normali a 2 colonne */
/* ----------------------------- */

.two-col-images .wpb_single_image img {
  width: 100%;
  height: 415px;
  object-fit: cover;
  object-position: center;
}

/* ----------------------------- */
/* Titoli sezione */
/* ----------------------------- */

.section-title h2 {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  color: #111111;
  margin-bottom: 0.575em;
}

/* ----------------------------- */
/* Protezione immagini leggera */
/* ----------------------------- */

.no-download img {
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* ----------------------------- */
/* Mobile sezioni generali */
/* ----------------------------- */

@media (max-width: 768px) {
  .architectural-gallery-4col {
    flex-direction: column;
  }

  .architectural-gallery-4col .portfolio-card {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .architectural-gallery-4col .portfolio-img-html img,
  .architectural-gallery-4col .vc_single_image-wrapper img {
    height: 240px !important;
  }

  .twenty20,
  .twentytwenty-wrapper,
  .twentytwenty-container,
  .twenty20 img,
  .twentytwenty-container img,
  .twentytwenty-before,
  .twentytwenty-after {
    height: 240px !important;
    min-height: 240px !important;
  }

  .two-col-images .wpb_single_image img {
    height: auto !important;
  }

  .clients-section {
    margin-top: 50px !important;
  }
}

/* ----------------------------- */
/* CLIENTS layout loghi */
/* ----------------------------- */

.clients-section {
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 80px !important;
}

/* Contenitore loghi */
.clients-section-white .wpb_wrapper,
.clients-section .wpb_wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  row-gap: 45px !important;
  column-gap: 0 !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

/* Singolo logo */
.clients-section-white .wpb_single_image,
.clients-section .wpb_single_image {
  width: calc(100% / 7) !important;
  flex: 0 0 calc(100% / 7) !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Immagine logo */
.clients-section-white .wpb_single_image img,
.clients-section .wpb_single_image img {
  width: auto !important;
  max-width: 200px !important;
  height: auto !important;
  max-height: 100px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px) {
  .clients-section-white .wpb_single_image,
  .clients-section .wpb_single_image {
    width: calc(100% / 3) !important;
    flex: 0 0 calc(100% / 3) !important;
  }
}


.three-col-images .wpb_single_image img {
    width: 100%;
    height: 415px;
    object-fit: cover;
    object-position: center;
}

.three-col-images .wpb_single_image img {
    width: 100%;
    height: 415px;
    object-fit: cover;
    object-position: center;
}

/* Immersive gallery 4 colonne */
.threee-col-images {
  max-width: 1280px;
  margin: 0 auto 70px auto;
}

/* Immersive gallery 4 colonne */
.threee-col-images {
  max-width: 1280px;
  margin: 0 auto 90px auto;
}

.threee-col-images .wpb_column {
  padding-left: 6px !important;
  padding-right: 6px !important;
  margin-bottom: 28px !important;
}

.threee-col-images .wpb_single_image {
  margin-bottom: 0 !important;
}

.threee-col-images .wpb_single_image img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .threee-col-images .wpb_column {
    width: 50% !important;
    margin-bottom: 24px !important;
  }

  .threee-col-images .wpb_single_image img {
    height: 260px !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .threee-col-images .wpb_column {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .threee-col-images .wpb_single_image img {
    height: auto !important;
  }
}

/* Cube Portfolio testi responsive */

@media (max-width: 768px) {

  .cbp .cbp-item .cbp-caption-defaultWrap,
  .cbp .cbp-item .cbp-caption-activeWrap {
    text-align: center !important;
  }

  .cbp .cbp-l-caption-title,
  .cbp .cbp-l-grid-projects-title,
  .cbp .cbp-l-grid-agency-title {
    font-size: 11px !important;
    line-height: 1.15 !important;
    letter-spacing: 1px !important;
    word-break: normal !important;
    white-space: normal !important;
    text-align: center !important;
  }

  .cbp .cbp-l-caption-desc,
  .cbp .cbp-l-grid-projects-desc,
  .cbp .cbp-l-grid-agency-desc {
    font-size: 10px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
  }

}