/*
 Theme Name:   UPC Gaudeix - Theme
 Theme URI:    https://understrap.com
 Description:  UPC Gaudeix Theme
 Author:       La Tempesta
 Author URI:   https://latempesta.cc
 Template:     understrap
 Version:      0.7.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  upcgaudeix
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

@import url('https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css');

@font-face {
  font-family:'upc-icones';
  src:url("./fonts/upc-icones.eot?40tf5e");
  src:url("./fonts/upc-icones.eot?40tf5e#iefix") format("embedded-opentype"),
  url("./fonts/upc-icones.ttf?40tf5e") format("truetype"),
  url("./fonts/upc-icones.woff?40tf5e") format("woff"),
  url("./fonts/upc-icones.svg?40tf5e#upc-icones") format("svg");
  font-weight:normal;
  font-style:normal;
  font-display:swap
}


:root {
  --bs-primary: #333333;
  --bs-primary-rgb: 51,51,51;
  --blau: #007BC0;
  --bs-gris: #F3F4F8;
  --container-max-width: 1280px;
}


body {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: #636363;
  background-color: var(--bs-gris);
}

.site {
  padding-top: 109px;
}

@media (min-width: 992px) {
  .site {
    padding-top: 83px;
  } 
}

.row > * {
	/*
  padding: 0px !important;
  */
}


.visually-hidden:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(100%); 
  height: 1px; 
  overflow: hidden; 
  position: absolute; 
  white-space: nowrap; 
  width: 1px; 
}

.btn.btn-primary::after {
  content: "";
  font-family: 'upc-icones';
  font-size: 12px;
}


[class^="icona-upc icon-"]::before, .icona-upc [class*=" icona-upc icon-"]::before {
  font-family: 'upc-icones' !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
    font-variant-ligatures: normal;
  text-transform: none;
  line-height: 1em;
  display: inline-block;
  text-decoration: inherit;
  width: 1em;
  margin-right: 0;
  text-align: center;
  margin-left: 0;
  letter-spacing: 0;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga";
  -ms-font-feature-settings: "liga" 1;
  font-feature-settings: "liga";
  -webkit-font-variant-ligatures: discretionary-ligatures;
  font-variant-ligatures: discretionary-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/***************
 * 
 * Header 
 * 
 ***************/

.container-fluid.header {
  /*
  max-width: min(100%,var(--container-max-width,1140px));
  margin: 0 auto;
  padding: 0px;
  */
  padding: 0px 10.12rem;
}

#wrapper-navbar {
  position: fixed;
  top: 0px;
  z-index: 2;
  width: 100%;
}

#wrapper-navbar.reduced .headertop {
  opacity: 0;
  transition: all 0.5s ease;
  height: 0px;
}

#wrapper-navbar.reduced .headerlogo {
  padding-bottom: 10px;
}

#main-nav {
  padding-bottom: 0px;
}

#wrapper-navbar.reduced #main-nav {
  --bs-bg-opacity: 0.9;
}

#wrapper-navbar .img-fluid {
  max-width: 100%;
  min-width: 200px;
  height: 60px;
  transition: all 0.5s ease;
  object-fit: contain;
  object-position: left;
}

#wrapper-navbar.reduced .img-fluid {
  height: 50px;
  object-fit: contain;
  transition: all 0.5s ease;
}

.headerlogo {
  align-self: normal;
}

.headerlogo .gaudeix {
  display: none;
  padding: 7px 7px;
  background-color: #007BC080;
  color: white;
  text-align: center;
  width: fit-content;
  margin-top: 5px;
}

.offcanvas-header {
  padding: 10px 20px;
  align-items: center;
  color: #F3F4F8;
  font-weight: 500;
}
.offcanvas-header div {
  font-size: 30px;
}

.header-wrap {

}

.headertop {
  display: flex;
  height: 60px;
  font-size: 14px;
  color: white;
  align-items: center;
  justify-content: right;
  transition: all 0.5s ease;
}

.headerbottom {
  display: none;
  padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
}

.headertop .contacte,
.headerbottom .contacte {
  margin: 10px 20px;
  color: #F3F4F8;
  text-decoration: none;
}
.headerbottom .wpml-ls-legacy-dropdown:hover .wpml-ls-item-toggle .wpml-ls-native {
  color:white;
}

.headerbottom .wpml-ls-item a:hover .wpml-ls-native {
  color: rgba(255, 255, 255, 0.75) !important;
}

.headertop .wpml-ls-legacy-dropdown {
  width: auto;
  max-width: 100%;
}

.headertop .wpml-ls-item-toggle {
  border: none;
  background-color: transparent;
  color: #F3F4F8;
}

.headertop .search-form input {
  border: none;
  background-color: transparent;
  font-size: 14px;
  font-weight: 300;
}


.language {
  display: flex;
  align-items: center;
  width: 110px;
}


.language .wpml-ls-sub-menu {
  width: 110px;
  left: -25px !important;
  box-shadow: 0 2px 4px rgba(255,255,255,0.33);
}

.language .wpml-ls-sub-menu a {
  background-color: rgb(51, 51, 51) !important;
  color: #F3F4F8;
  padding: 12px 10px;
  border:none;
}
.icona-upc.icon-world {
  padding-left: 10px;
  padding-top: 5px;
}
.icona-upc.icon-world::before {
  content: "\e92a";

}

.wpml-ls-legacy-dropdown a {
  padding: 15px 10px;
}

.language .wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > a, 
.language .wpml-ls-legacy-dropdown a:focus, 
.language .wpml-ls-legacy-dropdown a:hover {
  color: #ddd !important;
  background: rgb(51, 51, 51) !important;
}


#s-1 {
  width: 100px;
  transition:all 0,5s;
  color: #F3F4F8;
}

#s-1::placeholder {
  color: #F3F4F8;
}

#s-1:focus {
  width: 150px;
  transition:all 0,5s;
}


#searchsubmit {
  border: none;
  background-color: transparent;
}

#searchsubmit .icon::after {
  font-family: 'upc-icones' !important;
  line-height: 1em;
  display: inline-block;
  margin-right: 0;
  text-align: center;
  margin-left: 0;
  letter-spacing: 0;
  content: "\e915";
  border: none;
  color: white;
  font-size: 1rem;
}


.gaudeix {
  padding: 10px 30px;
  background-color: #007BC080;
  color: white;
  font-size: 16px;
  font-weight: 700;
  border-radius: 5px;
  text-decoration: none;
}

.gaudeix:hover {
  color: white !important;
  text-decoration: underline;
}

.navbar-nav {
    align-items: center;
  }

.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  color: white;
  padding-bottom: 15px;
}

.menu-item {
  margin-left: 10px;
}

.dropdown-toggle {
  margin-right: 10px;
}

.dropdown-menu.show {
  display: flex;
  border-radius: 0px;
  border-top: 1px solid white;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background-color: #333;
  text-transform: uppercase;
}

.dropdown-menu.show a {
  color: white;
}

.dropdown-item {
  padding-left: 0px;
  padding-right: 6px;
}

.dropdown-item:hover {
  background-color: transparent;
  text-decoration: underline;
}

.dropdown-toggle:after {
  content: "\e921";
  position: absolute;
  width: 9px;
  height: 12px;
  font-family: upc-icones;
  font-size: 75%;
  transition: .25s all ease;
  margin-top: 0px;
  margin-left: 7px;
  border:none;
}

.menu-item:hover .dropdown-toggle:after {
  transform: rotate(180deg);
  margin-top: 10px;

}


.navbar-toggler {
  background-color: var(--blau);
}



.offcanvas.show .dropdown-menu.show {
  flex-direction: column;
}


.offcanvas.showing .offcanvas-body,
.offcanvas.show .offcanvas-body {
  /* height: 80vh; */
}

.offcanvas.showing .headertop .gaudeix, 
.offcanvas.showing .headertop .contacte,
.offcanvas.showing .headertop .wpml-ls,
.offcanvas.show .headertop .gaudeix, 
.offcanvas.show .headertop .contacte,
.offcanvas.show .headertop .wpml-ls  {
  display: none;
}

.offcanvas.showing .headertop .search-form,
.offcanvas.show .headertop .search-form {
  width: 100%;
  padding: 20px;
}

.offcanvas.showing .input-group,
.offcanvas.show .input-group {
  background-color: white;
}

.offcanvas.showing #s-1::placeholder,
.offcanvas.show #s-1::placeholder {
  color: black;
  font-weight: 400;
}

.offcanvas.showing #searchsubmit,
.offcanvas.show #searchsubmit {
  background-color: rgb(var(--bs-primary-rgb));;
  padding-left: 15px;
}

.offcanvas.showing #searchsubmit .icon::after,
.offcanvas.show #searchsubmit .icon::after {
  font-size: 2rem;
}

.offcanvas.showing .headerbottom,
.offcanvas.show .headerbottom {
  display: flex;
  flex-direction: column;
}

.headerbottom .contacte {
  margin: 10px 10px;
  color: white;
  text-decoration: none;
  border-bottom: 2px solid white;
  padding-bottom: 10px;
  width: 50%;
}

.headerbottom .wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
  visibility: inherit;
  position: relative;
  border: none;
}

.headerbottom .wpml-ls-item a {
  background-color: transparent !important;
  color: white;
  border: none;
}


.headerbottom a.wpml-ls-item-toggle::after {
  border:none;
}

@media (max-width:1400px) {

  .dropdown-menu.show {
    flex-wrap: wrap;
  }
}

@media (max-width:1280px) {

  .container-fluid.header {
    padding-left: 20px;
    padding-right: 20px;
  
  }
}




@media (max-width:992px) {

  .container-fluid.header {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .headerlogo .img-fluid {
    width: fit-content !important;
    height: 50px !important;
  }

  .headerlogo .gaudeix {
    display: block;
    margin-bottom: 5px;
  }

  .headertop {
    display: none;
  }
}

/******************************
 * 
 * common page
 * 
 ******************************/

.wrapper {
  padding: 0;
}

#content {
  --bs-gutter-x: 0rem;
}


.margeesq {
  padding-left: calc((100vw - var(--container-max-width)) / 2 );
  align-self: center;
  padding-right: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.understrap-read-more-link {
  display: none;
}

/******************************
 * 
 * breadcrumb
 * 
 ******************************/


.breadcrumb_content {
  gap: var(--gap);
  width: 100%;
  max-width: min(100%,var(--container-max-width,1140px));
  margin: 0 auto;
  padding-inline-start: 0;
  padding-inline-end: 0;
  height: 100%;
  z-index: 1;
  position: relative;
}


.breadcrumb {
 display:-webkit-box;
 display:-ms-flexbox;
 display:flex;
 -ms-flex-wrap:wrap;
 flex-wrap:wrap;
 margin-bottom:1rem;
 list-style:none;
 background-color:#e9ecef;
 border-radius:3px;
 background-color:transparent;
 margin-bottom:0;
 padding:.75rem 0px;
 text-transform:uppercase;
 font-size:.7rem
}

.breadcrumb-item+.breadcrumb-item::before {
 display:inline-block;
 padding-right:.5rem;
 padding-left:.5rem;
 color:#6c757d;
 /*content:"|" */


  font-family: "upc-icones";
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
    font-variant-ligatures: normal;
  text-transform: none;
  line-height: 1;
  letter-spacing: 0;
  -webkit-font-feature-settings: "liga";
  -moz-font-feature-settings: "liga";
  -ms-font-feature-settings: "liga" 1;
  font-feature-settings: "liga";
  -webkit-font-variant-ligatures: discretionary-ligatures;
  font-variant-ligatures: discretionary-ligatures;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\e901";
  font-size: 14px;
  color: #7f7f7f;
  top: 4px;
  position: relative;

}
.breadcrumb-item+.breadcrumb-item:hover::before {
 text-decoration:underline
}
.breadcrumb-item+.breadcrumb-item:hover::before {
 text-decoration:none
}
.breadcrumb-item.active {
 color:#6c757d
}

.breadcrumb a {
  color: var(--blau);
  text-decoration: none;
  font-weight: bold;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-item {
  max-width:100px;
  white-space:nowrap;
  overflow:hidden;
  -o-text-overflow:ellipsis;
  text-overflow:ellipsis;
  font-size:16px;
}
.breadcrumb-item.active {
  color:#000;
  font-weight:700
}
.breadcrumb-item+.breadcrumb-item {
  padding-left:0
}
.breadcrumb-item+.breadcrumb-item::before {
  padding-left:.25rem;
  padding-right:.25rem
}

@media (max-width:1280px) {
  .breadcrumb {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (min-width:768px) {

  .breadcrumb-item {
    /* max-width:200px; */
    width: fit-content;
    max-width: 90vw;
  }
  .breadcrumb-item+.breadcrumb-item::before {
    padding-left:.5rem;
    padding-right:.5rem
  }
}


/* Pàgina Col·leccions */

.page-id-11291  .breadcrumb a,
.page-id-11291  .breadcrumb-item.active,
.page-id-11291  .breadcrumb-item + .breadcrumb-item::before {
  color: #E7E7E7;
  text-shadow: 1px 1px 5px black;
}

.page-id-11291  #page-wrapper {
  top: -5px;
  position: relative;
}


.term-title {
  font-size: 20px;
  line-height: 24px;
  margin: 10px 5px;
}

.term-content {
  padding: 0px 5px;
}

.term-mes {
  margin: 30px 5px 10px 5px;
  text-transform: uppercase;
  font-size: 14px;
}

/***************
 * 
 * INICI / HOME
 * 
 ***************/

.home .breadcrumb_content {
  display: none;
}

.fonsblaublanc {
  background: linear-gradient( to right, var(--blau) 0%, var(--blau) 50%, white 50%, white 100% );
}

.fonsblau {
  background: var(--blau);
}

.fonsblau p {
  color: white;
}

.titollinia p {
  background-color: var(--bs-gris);
  width: fit-content;
  padding: 0px 10px 0px 0px;
}

.titollinia p::before {
  border-bottom: 2px solid black;
  content: "";
  width: 100%;
  display: block;
  top: 16px;
  position: absolute;
  z-index: -1;
}


.fonsoblic {
  overflow: hidden !important;
}

.fonsoblic::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0px;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent white transparent;
  border-width: 0px 200px 400px 0px;
  overflow: hidden;
}


.home .vc_taxonomy_listing .grid-item:nth-child(1), 
.home .vc_taxonomy_listing .grid-item:nth-child(2), 
.home .vc_taxonomy_listing .grid-item:nth-child(3) {
  display: block !important;
}
.home .vc_taxonomy_listing .grid-item:not(:first-child) {
  display: none;
}


@media (max-width:768px) {

  .fonsblaublanc .elementor-element.e-child:nth-child(1) {
    background: var(--blau);
  }

  .fonsblaublanc {
    background: linear-gradient( to bottom, var(--blau) 0%, var(--blau) 50%, white 50%, white 100% );
  }
}


/******************************
 * 
 * ELEMENTO TERMS LIST WIDGET
 * 
 ******************************/


.term-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.vc_taxonomy_listing ul {
	padding: 0px;
  display: flex;
  flex-wrap: wrap;
}

.vc_taxonomy_listing li {
  width: calc(33% - 14px);
  list-style: none;
  margin-bottom: 20px;
  /* margin: 1%; */
  display: flex;
  flex-wrap: wrap;
}

.vc_taxonomy_listing .grid-item {
	background-color: transparent;
}

@media (min-width:768px) {
  .vc_taxonomy_listing .grid-item:nth-child(3n-1){
    margin-right: 24px;
    margin-left: 24px;
  }
}

@media (max-width:768px) {
  .vc_taxonomy_listing .grid-item:nth-child(2n) {
    margin-right: 0px;
    margin-left: 24px;
  }

  .vc_taxonomy_listing li {
    width: calc(50% - 12px);
  }
}

@media (max-width:520px) {
  .vc_taxonomy_listing .grid-item:nth-child(2n) {
    margin-right: 0px;
    margin-left: 0px;
  }

  .vc_taxonomy_listing li {
    width: 100%;
  }
}


/******************************
 * 
 * SINGLE OBJECTE
 * 
 ******************************/

#single-wrapper main {
  /* max-width: min(100%,var(--container-max-width,1140px)); */

  padding: 50px calc((100vw - var(--container-max-width)) / 2 );
  margin: auto ;
  background-color: white;
}

.single-objecte .tools {
  width: 100%;
  min-height: 50px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
}

.tools-left {
  width: 50%;
}

.tools-right {
  width: 50%;
  display: flex;
  justify-content: flex-end;
  height: 44px;
}

.button-colleccions a {
  background-color: var(--blau);
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  display: inline-flex;
}

.button-colleccions i {
  margin-right: 10px;
  position: relative;
  font-size: 1.3rem;
}

/*.tools .share-link,  */
.tools .adjacent {
  position: relative;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background-color: var(--blau);
  border-radius: 30px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: inherit;
}

.tools .share-link, .tools .copy-link button  {
  position: relative;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  text-align: center;
  align-items: center;
  display: flex;
}
.tools .share-link i, .tools .copy-link i {
  color: #666;
}

.tools .ml-share-bar {
  display: none;
  position: absolute;
  top: -130px;
  background-color: white;
  z-index: 999;
  box-shadow: 0px 0px 3px;
  width: 35px;
  padding: 5px !important;
  position: absolute !important;
  left: 2px !important;
}
.share-link .ml-share-bar a {
  padding: 4px 0px 4px 1px;
  display: inline-block;
}

.copy-link button {
  background: none;
  border: none;
}

.tools .share-link i, .tools .adjacent i {
  font-size: 1.3rem;
}
.tools a, .tools i {
  color: white;
  text-decoration: none;
}

.row.content-item.content .text {
  font-weight: normal;
}
.text {
  margin-top: 10px;
}
.nav-objectes {
  width: 40%;
  display: flex;
  justify-content: space-evenly;
  margin-left: 30px;
}

.upcommons {
  font-size: 24px;
  color: black;
  font-weight: 500;
}

.single-objecte .entry-title {
  font-size: 36px;
  line-height: 43px;
  font-weight: 500;
  color: #333333;
}

.single-objecte .entry-title::after {
  position: relative;
  content: '';
  bottom: -10px;
  left: 0;
  width: 150px;
  height: 6px;
  background-color: var(--blau);
  display: block;
}

.single-objecte .entry-content {
  margin-top: 50px;
}

.entry-content dt {
  color: var(--blau);
}

.single-objecte .caption {
  text-align: center;
  font-size: 0.7rem;
  margin-top: 8px;
}

.single-objecte .entry-content svg {
  width: 15px;
  fill: var(--blau);
  margin-left: 5px;
  top: -2px;
  position: relative;
}


/******************************
 * 
 * ARCHIVE OBJECTE
 * 
 ******************************/

.post-type-archive-objecte .page-header {
  max-width: 50vw;
  margin: 30px auto 50px auto;
}

.post-type-archive-objecte .page-header h2 {
  color:black;
  font-size: 30px;
  margin-bottom: 20px;
}

#archive-wrapper {
  background-color: var(--bs-gris);
}

#archive-wrapper header {

}

#archive-wrapper main {
  /* max-width: min(100%,var(--container-max-width,1140px)); */

  padding: 0 calc((100vw - var(--container-max-width)) / 2 );
  margin: 50px auto ;
}

#main {
 /* width: 80vw; */
  margin: auto;
}

#botonscontrol button {
  padding: 7px 20px;
}

#botonscontrol {
  display: flex;
  flex-wrap: inherit;
  justify-content: space-between;
}

#grid-colleccio #botonscontrol {
  display: none;
}

#botofiltres {
  border-radius: 5px;
  background: var(--blau);
  color: white;
  border: none;
}

#botofiltres i {
  margin-left: 10px;
}

.botoordre {
  display: flex;
  align-items: center;
}

.count-text {
  display: flex;
  margin-right: 30px;
}

.site-main #left-sidebar-colleccio {
  	width: max(25%,300px);
	display: none;
}

.site-main.filteropened #left-sidebar-colleccio {
  display: block;
  margin-top: 50px;
}


.archive .site-main .facetwp-template {
    width: 100%;
}

.archive .site-main.filteropened .facetwp-template {
	width: calc(100% - max(25%,300px) - 50px);
  	margin-left: auto;

   display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: normal;
  align-items: normal;
  align-content: normal;
}

.facetwp-template .grid-item {
    position: relative;
}

/* list */

.grid-item.header-list {
  display: none;
}

.layout-toggle {
  margin-right: 20px;
}

.layout-toggle button {
  border-radius: 5px;
  fill: var(--blau) !important;
  background-color: transparent;
  color: white;
  border: none;
  padding: 4px 8px !important;
}

.o-icon-grid svg, 
.o-icon-list svg {
  width: 30px; 

}

.layout-toggle button[disabled="disabled"] {
  background: var(--blau) !important;
}

.layout-toggle button[disabled="disabled"] svg{
  fill: var(--bs-gris) !important;
  cursor: not-allowed;
}
/*

.o-icon-grid::before {
  content: "";
  background: url('./img/icon-grid.svg');
  background-size: contain;
  width: 25px;
  display: block;
  height: 25px;
}

.o-icon-list::before {
  content: "";
  background: url('./img/icon-list.svg');
  background-size: contain;
  width: 25px;
  display: block;
  height: 25px;
}
*/
.facetwp-template.list .grid-item {
  width: 100%;
  position: relative !important;
  left: 0px !important;
  display: flex;
  justify-content: space-between;
}


.facetwp-template.list .img-wrap {
  min-height: 120px;
}

.facetwp-template.list .grid-item .entry-header {
  width: 150px;	
}

.facetwp-template.list .grid-item .entry-content {
  padding: 10px;
}

.facetwp-template.list .grid-item .entry-footer {
  padding: 10px;
  width: 25%;
}




/* masonry */
.grid-sizer,
.grid-item { 
    /* width: calc( 25vw - ( 450px / 4)); 
    width: 30%; */
    width: calc(33% - 14px);
  	/* margin-right: 25px; */
}

.facetwp-template:not(.list) .grid-item:nth-child(3n) {
  margin-right: 24px;
  margin-left: 24px;
}

@media (max-width:1100px) {
    .grid-sizer,
    .grid-item { 
        width: calc(50% - 12px);
    }

    .facetwp-template:not(.list) .grid-item:nth-child(3n) {
      margin-right: 0px;
      margin-left: 0px;
    }

    .facetwp-template:not(.list) .grid-item:nth-child(2n) {
      margin-right: 24px;
    }

}

@media (max-width:890px) {
    .grid-sizer,
    .grid-item { 
        width: 100%;
    }
    .facetwp-template:not(.list) .grid-item:nth-child(2n) {
      margin-right: 0px;
    }
}

@media (max-width:580px) {

    #exhibition-list {
        justify-content: space-around;
    }
}

.grid-item {
    background-color: white;
    margin-bottom: 20px;
    /*
    border: 1px solid #efefef;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
    */
}

.grid-item .card-footer.dmbs-post-footer {
    background-color:white;
}


.grid-item:hover .overlay {
 /*   opacity: 0.2;
    background-color: #2e2e2e;
    */
}

.overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 2;
}

.overlap {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
}

.grid-item .img-wrap {
    min-height: 250px;
    height: auto;
    background: url('./img/soclose-thumbnail.jpg');
    background-size: cover !important;
    background-position: center !important;
    transition: all 200ms ease;
}


.archive .grid-item:not(.header-list):hover  .entry-header {
     box-shadow: 0px 10px 10px rgba(0,0,0,0.2); 
}

.archive .grid-item:hover .img-wrap {
	transform: scale(1.1);
}


.grid-item .entry-header {
  overflow: hidden;
}



.grid-item .entry-content {
  padding: 20px 10px 0px 10px;
}

.grid-item .entry-footer {
  padding: 0px 10px 10px 10px;
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

.grid-item .title a {
  font-size: 20px;
  text-decoration: none !important;
}



/**** FACETES *****/

#filtres {
	margin-top: 20px;
}

.facetwp-counts {
    margin-right: 4px;
}

.meusfiltres {
  display: flex;
  justify-content: space-between;
}

.resultats.row {
    justify-content: initial !important;
    margin-bottom: 10px;
}
.facetwp-template {
    margin-top:40px;
    padding: 10px 0px;
}

.archive .facetwp-template {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.archive article {
 /*   width: 300px;*/
 /*   margin-right: 25px;*/
}

/* ordenació facetes */

.facetwp-facet.facetwp-facet-ordenar {
  margin: 0px;
}
.facetwp-facet.facetwp-facet-ordenar .fs-wrap {
  width: 150px;
}


.facetwp-facet.facetwp-facet-ordenar .fs-arrow {
  top: -6px;
}

.facetwp-facet.facetwp-facet-ordenar .fs-open .fs-arrow {
  top:0px;
}

.facetwp-facet.facetwp-facet-ordenar .fs-dropdown {
  position: absolute !important;
}
.facetwp-facet.facetwp-facet-ordenar.facetwp-type-sort .fs-arrow::after {
  content: '';
  width: 12px;
  height: 12px;
  position: absolute;
  border-right: 1px solid var(--blau);
  border-top: 1px solid var(--blau);
}

.facetwp-facet.facetwp-facet-ordenar .fs-label-wrap {
  border-radius: 5px;
  border-color: var(--blau);
}

.facetwp-facet.facetwp-facet-ordenar .fs-label {
  color: var(--blau);
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5rem;
  padding: 7px 20px;
}

.facetwp-sort {
    right: 0px;
    position: absolute;
    margin-right: 50px;
}

.facetwp-sort-select {
    background-color: var(--blau);
    border: none;
    color: white;
    padding: 6px;
}

/* facetwp search */
.facetwp-type-search input {
    border-radius: 5px !important;
    padding: 10px 20px;
        padding-right: 20px;
    -webkit-box-shadow: 0 7px 15px 0 rgba(0,0,0,.2);
    box-shadow: 0 7px 15px 0 rgba(0,0,0,.2);
    border: none;
}
.facetwp-type-search input:hover {
    -webkit-box-shadow: 0 0 20px 0 rgba(0,0,0,.5);
    box-shadow: 0 0 20px 0 rgba(0,0,0,.5);
}

.facetwp-type-search .facetwp-icon {
    border-bottom-right-radius: 5px;
    padding: 10px;
    border-top-right-radius: 5px;
    opacity: 1;
}

.facetwp-type-search .facetwp-icon::before {
    background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.06786 12.1357C7.3777 12.1357 8.60074 11.7096 9.59495 10.9995L13.3351 14.7396C13.5087 14.9132 13.7375 15 13.9742 15C14.4871 15 14.858 14.6055 14.858 14.1005C14.858 13.8638 14.7791 13.6428 14.6055 13.4692L10.889 9.74487C11.6702 8.7191 12.1357 7.44871 12.1357 6.06786C12.1357 2.73014 9.40558 0 6.06786 0C2.72225 0 0 2.73014 0 6.06786C0 9.40558 2.72225 12.1357 6.06786 12.1357ZM6.06786 10.8259C3.45608 10.8259 1.30984 8.67175 1.30984 6.06786C1.30984 3.46397 3.45608 1.30984 6.06786 1.30984C8.67175 1.30984 10.8259 3.46397 10.8259 6.06786C10.8259 8.67175 8.67175 10.8259 6.06786 10.8259Z' fill='%23666666'/%3E%3C/svg%3E");
  /*  background: url('./img/search-white.svg'); */
    background-repeat: no-repeat;
}
/* Filtres facetes */

.facetwp-selections li[data-facet="destacat"] {
    display: none !important;
}

.facetwp-selections {
    min-height: 10px;
}
.facetwp-facet {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

.facetwp-input-wrap, .facetwp-search {
    width: 100%;
}

.facetwp-facet input.facetwp-search, .facetwp-facet input.facetwp-location {
  min-width: inherit !important;
}

.facetwp-type-fselect .fs-wrap {
    width: 100% !important;
}
.facetwp-type-fselect .fs-dropdown {
    width: 100% !important;
}
.fs-dropdown {
  position: relative !important;
  border: none !important;
}

.fs-option, .fs-search, .fs-optgroup-label {
  border: none !important;  
}

.fs-option-label {
    font-size: 1rem;
    overflow: hidden;
    line-height: 1.1rem;
}



.archive .title a {
    font-size: 14px;
    color: var(--blau);
    font-weight: bold; 
    margin-bottom: 5px;
    word-wrap: break-word;
}

/* etiquetes superiors */
.facetwp-facet.facetwp-facet-tipus_item.facetwp-type-radio {
    display: flex;
    border-radius: 4px;
    height: 32px;
    width: 100%;
}

.facetwp-radio.checked {
    color: black !important;
    background: none !important;
}
.facetwp-radio {
    width: 150px;
    color: gray;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: none !important;
}

/* Load more button */
.facetwp-type-pager {
    width: 100%;
    text-align: center;
}
.facetwp-load-more {
    background-color: black;
    color: white;
    padding: 10px 30px;
    border: 1px solid black;
}
.facetwp-load-more:hover {
    color: black;
    background-color: white;
}

.title-text.facetwp-reset {
    cursor: pointer;
    text-decoration: underline;
    color:var(--blau);
}
.title-text.facetwp-reset:hover {
    text-decoration: none;
}

/* filtres triats */

.facetwp-selection-label {
    display: none;
}

.facetwp-selections .facetwp-selection-value {

    display: block !important;
    margin-right: 0px !important;
    cursor: pointer;
    padding-right: 16px;
    background-image: url('./img/icon-close.png') !important;
    background-size: 12px 12px;
    background-repeat: no-repeat;
    background-position: 95% center !important;

}
.facetwp-selection-value {
  padding: 10px 20px !important;
  border: 1px solid var(--blau);
  margin-bottom: 2px;
  border-radius: 0px;
  color: var(--blau);
}


.col-md-3.dmbs-left .row {
    justify-content: space-between;
/*    padding: 0px 15px; */
}

.col-md-3 .title-text {
    font-size: 13px;
}

.facet-item {
    border-top: 1px solid white;
}

.facetwp-selections ul {
    padding: 15px;
}

.facetwp-selections li {
    display: block !important;
}

.facetwp-facet.facetwp-facet-tipus_item.facetwp-type-checkboxes {
    width: 100%;
    display: inline-flex;
    justify-content: space-evenly;
    background-color: var(--blau);
    color: white;
}


.facet-item.color {
}

.facet-item.color .fs-label-wrap {
    border: none !important;
    padding: 10px;
    background-color: var(--blau) !important;
    width: 100%;
}
#left-sidebar-colleccio .facetwp-facet {
    margin-bottom: 0px;
}
.facetwp-facet.facetwp-facet-cerca.facetwp-type-search {
  margin-bottom: 40px !important;
}

#left-sidebar-colleccio .fs-label {
    color: white;
}

.facetwp-type-fselect .fs-option .fs-option-label {
    white-space: normal !important;
    word-break: break-word;
}


/* destacat */
/*
.facetwp-facet.facetwp-facet-destacat.facetwp-type-checkboxes {
    background-color: white;
    width: 26px;
    height: 26px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid gray;
    margin-left: 10px;
}
.facetwp-checkbox {
    height: 20px;
    width: 18px;
    background: #ddd !important;
    border-radius: 12px;
    margin: 2px;
    font-size: 0;
    margin-bottom: 0px !important;

}
.facetwp-checkbox.checked {
    background: var(--blau) !important;
}
.facetwp-facet-destacat .facetwp-counter {
    display: none;
}
*/
.facetwp-facet-destacat {
    margin-left: 10px;
}
.facetwp-facet-destacat .facetwp-checkbox {
    font-size: 0;
    bottom: 2px;
    position: relative;
}
.facetwp-facet-destacat .facetwp-counter {
    font-size: 1rem;
    position: relative;
    top: 3px;
    font-weight: 500;
}
.facetwp-checkbox {
    background-image: url('./img/ub-checkbox.png') !important;
}
.facetwp-checkbox.checked {
    background-image: url('./img/ub-checkbox-on.png') !important;
}

/* facet arrow */
.fs-arrow {
    position: absolute;
    top: 0;
    right: 12px !important;
    bottom: 0;
    margin: auto;
    transform: rotate(135deg) !important;
    -webkit-transform: rotate(135deg) !important;
    width: 10px !important;
    height: 10px !important;
    float: left !important;
    border: none !important;
}
.fs-open .fs-arrow {
    transform: rotate(-45deg) !important;
    -webkit-transform: rotate(-45deg) !important;
    right: 15px !important;
}

.fs-arrow::after {
    content: '';
    width: 12px;
    height: 12px;
    position: absolute;
    border-right: 1px solid white;
    border-top: 1px solid white;
}

.fs-search {
    border-radius: 20px;
    padding: 3px 10px !important;
    border: 1px solid #eee !important;
    box-shadow: 0px 2px 5px #eee;
}

.fs-wrap.multiple .fs-option .fs-checkbox i {
    border: 1px solid var(--blau) !important;
}
.fs-wrap.multiple .fs-option.selected .fs-checkbox i {
    background-image: none !important;
    background-color: var(--blau) !important;
}

.fs-dropdown div {
    margin-top: 2px;
    font-weight: 500;
}
/* slider tipus d'ítem */
.facet-item.tipus-item {
    padding: 20px 15px 15px 15px;
}

.facet-item.periode .title-text,
.facet-item.destacat .title-text {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    margin-bottom: 20px;
}

.facet-item.destacat .title-text {
    display: flex;
    justify-content: flex-start;
    line-height: 26px;
}

.facet-item.periode {
    text-align: center;
    font-size: 0.8rem;
    margin-bottom: 20px;
}
.noUi-handle {
    background-color: var(--blau) !important;
}


.facetwp-facet.facetwp-facet-data.facetwp-type-slider {
    text-align: center;
    color: white;

    margin-top: 25px;
}
.noUi-target {
    border: 1px solid white;
    padding: 0 8px;
}
.noUi-horizontal {
    height: 2px !important;
}

html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
    right: -7px;
    left: auto;
}
.noUi-horizontal .noUi-handle {
    width: 15px !important;
    height: 15px !important;
    top: -8px !important;
    border-radius: 50%;
}


@media (max-width:1320px) {

  #archive-wrapper main {
    padding: 0px 20px;
  }

}



/***************************
 * 
 * TAX COLLECCIO
 * 
 ***************************/

.tax-colleccio .page-header {
  background-color: white;
  display: flex;
  min-height: 400px;
}

.tax-colleccio .page-header div {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

@media (max-width:1280px) {

  .tax-colleccio .margeesq {
    padding-left: 20px;
  }
}

@media (max-width:768px) {

  #left-sidebar-colleccio {
    width: 100% !important;
  }

  .facetwp-template {
    width: 100% !important;
  }
  .tax-colleccio .page-header {
    overflow: hidden;
  }
  .tax-colleccio .page-header {
    flex-direction: column-reverse;
  }
  .tax-colleccio .margeesq {
    margin-top: 20px;
  }
}

/***************************
 * 
 * MAPA DEL PATRIMONI
 * 
 ***************************/

.marker-cluster-small div {
  background-color: rgba(0, 123, 192, 0.6) !important;
}
/*
.marker-cluster-small {
  background-color: rgba(138, 172, 219, 0.6) !important;
}
*/
.marker-cluster-small {
  background-color: rgba(138, 172, 219, 0.9) !important;
  border-radius: 50% 50% 50% 0 !important;
  box-shadow: -1px 1px 4px rgba(0, 0, 0, .5);
}

.marker-cluster-small span {
  color: white;
  font-weight: bold;
  font-size: 15px;
}

.offcanvas.espais-patrimoni .offcanvas-title {
  font-size: 24px;
}


.btn.btn-primary.llegirmes {
  text-transform: uppercase;
  padding: 6px 24px;
}



/***************************
 * 
 * SINGLE ESPAI PATRIMONI
 * 
 ***************************/

.single-espais-patrimoni .entry-header {
  background-color: white;
  min-height: 500px;
  display: flex;
}


.single-espais-patrimoni .entry-title {
  color: var(--blau);
  text-transform: uppercase;
  font-size: 36px;
  font-weight: 500;
}

.single-espais-patrimoni .entry-title::before {
  content: "";
  width: 250px;
  height: 8px;
  background-color: var(--blau);
  position: relative;
  top: -30px;
  display: block;
}

.single-espais-patrimoni .site-main {
  background-color: transparent !important;
}


.single-espais-patrimoni .entry-footer {
  background-color: white;
  padding: 30px 0px;
}

.single-espais-patrimoni .related-objects .img-wrap {
  position: relative;
}

.related-objects-section .grid-item {
  position: relative;
}

.related-objects-section h3 {
  color:black;
  font-size: 30px;
  margin-bottom: 20px;
}

.single-espais-patrimoni .related-objects-section {
  max-width: min(100%,var(--container-max-width,1140px));
  margin: auto;
}

.single-espais-patrimoni .related-objects {
  display: flex;
}

.single-espais-patrimoni .card-footer {
  padding: 10px 20px;
}


.related-objects .grid-item:nth-child(2n) {
  margin-right: 24px;
  margin-left: 24px;
}

@media (max-width:1280px) {
  .single-espais-patrimoni .related-objects-section {
    padding: 20px;
  }
}

@media (max-width:768px) {

  .single-espais-patrimoni .entry-header {
    flex-direction: column-reverse;
    overflow: hidden;
  }

  .single-espais-patrimoni .margeesq {
    margin-top: 40px;
  }

  .single-espais-patrimoni .related-objects {
    flex-wrap: wrap;
  }

  .related-objects .grid-item  {
    margin-right: 0px;
    margin-left: 0px;
  }
}

.espais-patrimoni .entry-header div[style*="background-image"] {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


/***************************
 * 
 * SINGLE 
 * 
 ***************************/


.header-section {
  display: flex;
  height: 160px;
  background-image: url("/wp-content/uploads/2024/04/fons-comunitat.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.header-section::after {
  content: "";
  background-color: #003E61;
  width: 100%;
  position: absolute;
  height: 100%;
  opacity: 0.8;
}

.header-section .titol {
/*  padding: 0px calc((100vw - var(--container-max-width)) / 2 );
*/
  width: 100%;

  align-self: center;
  max-width: min(100%,var(--container-max-width,1140px));
  margin: auto;
  color: #FFFFFF;
  font-family: "Roboto", Sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 40px;
  z-index: 1;
}


/***************************
 * 
 * SINGLE NOTICIA
 * 
 ***************************/

.single-noticia .image-wrap {
  overflow: hidden;
}

.single-noticia .wp-post-image {
  width: 100%;
  height: 450px !important;
  object-fit: cover;
  transition: all 0.5s;
  overflow: hidden;
}

.single-noticia .wp-post-image:hover {
  transform: scale(1.1) !important;
  transition: all 0.5s;
}

.single-noticia .entry-meta {
  font-size: 14px;
}

.single-noticia .entry-title {
  color: var(--blau);
  font-size: 30px;
  margin: 30px 0px;
  border-bottom: 4px solid var(--blau);
  padding-bottom: 24px;
}


/***************************
 * 
 * SINGLE HISTÒRIA
 * 
 ***************************/

.single-historia #main {
  padding: 0px;
  background-color: transparent;
}

.single-historia #single-wrapper {
  margin-top: -50px;
  position: relative;
}

.single-historia .breadcrumb a,
.single-historia .breadcrumb-item.active,
.single-historia .breadcrumb-item + .breadcrumb-item::before {
  color: #E7E7E7;
  text-shadow: 1px 1px 5px black;
}

.breadcrumb-item.active {
  font-weight: 400;
}



/***************************
 * 
 * FOOTER
 * 
 ***************************/



#footer-full-content .row {
  background-color: var(--blau);
  color: white;
  height: 100px;
  align-content: center;
}

#footer-full-content .textwidget.custom-html-widget {
  text-align: center;
  font-weight: 300 !important;
}

.footer-links-details ul {
  display: flex;
  list-style: none;
  justify-content: space-around;
  margin: 0px;
}

#footer-full-content a {
  color: white;
  text-decoration: none;
}

.footer-social-icon svg {
  width: 15px;
  fill: white;
}


#custom_html-5 a {
  margin-right: 10px;
}

#custom_html-5 a:hover {
  text-decoration: underline;
}

/***************************
 * 
 * SITE FOOTER
 * 
 ***************************/


.site-info {
  display: flex;
  justify-content: center;
  max-width: min(100%,var(--container-max-width,1140px));
  margin: auto;
  height: 150px;
  align-items: center;
  flex-wrap: wrap;
}

.site-info div {
  text-align: center;
}

.site-info img {
  height: 70px;
  object-fit: contain;
}


/***************************
 * 
 * MEC EVENT - LLISTAT ACTIVITATS
 * 
 ***************************/

.single-mec-events #main-content {
  margin-top: 30px;
}

.mec-event-grid-classic .mec-event-image a {
  height: 250px;
  overflow: hidden;
  display: block;
}

.mec-event-grid-classic .wp-post-image {
  object-fit: cover;
  height: 100%;
  object-position: top;
}


/***************************
 * 
 * MEC EVENT - SINGLE CTIVITAT
 * 
 ***************************/

.mec-single-event-description p {
  font-size: 16px !important;
  font-weight: 400;
}


/***************************
 * 
 * SEARCHWP - FORM
 * 
 ***************************/

.searchwp-form-input-container.swp-items-stretch {
  height: 50px;
}


/***************************
 * 
 * LINIA DEL TEMPS
 * addicional a child-theme.css
 *   
 ***************************/
.modal-link {
  display: none;
}


/***************************
 * 
 * WP Sitemap plugin
 *   
 ***************************/


.wsp-container {
  max-width: var(--container-max-width);
  margin: auto;
  padding: 10px;
}


.wsp-container h2 {
  font-size: 18px !important;
  color: var(--blau);
  text-transform: uppercase;
  font-weight: bold !important;
}

.wsp-container a {
  font-size: 16px;
  font-weight: 200;
  text-decoration: none;
}

