body {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.text-primary {
    /*color: #b3a482!important;*/
    color: #8c7f62!important;

}

a {
    /*color: #b3a482;*/
    /*color: #988b6e;*/
    color: #4a4539;
    /*82775b*/
}
.fitxa-tags a {
  color: #986d1c!important;
}

a:hover{
  color: #7b7055;
}

.titol{
  font-weight: bolder;
}

.home-icons{
 color: black;
 text-decoration: none;
}

.home-icons:hover{
 color: black;
 text-decoration: none;
 width: 300px;
    height: 300px;
}

header.masthead {
  position: relative;
  /*background: url("../img/crema.png") no-repeat center center;*/
  background: url("../img/header.png") no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding: 5rem 0;
  /*box-shadow: inset 0 0 0 1000px rgba(179, 164, 130, 0.29);*/
}

header.masthead .overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

header.masthead h1 {
  font-size: 3rem;
  color: #fff;
  /*color:#6d6656;*/
  letter-spacing: 1.8rem;
}

header.masthead h2 {
  font-size: 2.5rem;
  color: #fff;
  font-family: 'Lora';
  /*color:#6d6656;*/
  /*color:#6d6656;*/
  /*font-style: italic;*/
}

.cercador{
	margin-top: 25px;
    box-sizing: border-box;
    border: none;
    height: 100%;
    line-height: 1.5;
    padding: 1rem;
    position: relative;
    width: 100%;
    font-size: 1.2rem;
}
.cercador:focus{
  outline: 3px solid #b3a482; 
  
}

/* Navbar */
.nav-item a:hover {
/* background-color: #F8E6BF;*/
 border-radius: 5px;
}

.navbar-light .navbar-nav .nav-link {
 color: white;
}

.barra-navegacio{
  padding: 0;
  background-color:#2d405a;
  /*background-color:#b3a482;*/
  /*background-color:#8c7f62;*/
}
.barra-navegacio a{
  text-transform: uppercase;
}

.barra-navegacio a:hover{
    color: #fff!important;
    border-radius: 0;
}


/*Resultats*/

header.resultats-header {
  position: relative;
  background: url("../img/header.png") no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

header.resultats-header .overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

header.resultats-header h1 {
  font-size: 2rem;
  /*color:#6d6656;*/
  color:#fff;
   letter-spacing: 6px;
}

header.resultats-header h2 {
  font-size: 1.3rem;
  /*color:#6d6656;*/
  color: #fff;
  /*font-style: italic;*/
}

header.resultats-header h3 {
  font-size: 1.4rem;
  /*color:#6d6656;*/
  color: #fff;
   letter-spacing: 6px;
}

@media (min-width: 768px) {
  header.resultats-header  {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  header.resultats-header  h1 {
    font-size: 2rem;
  }
   header.resultats-header  h2 {
    font-size: 1.5rem;
  }

}

.taula-resultats th, td{
    border-bottom: 1px solid #ddd;
}

.bg-ocre{
  background-color: #fbf5ea;
}
/*.tab-content {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    border-radius: 0px 0px 5px 5px;
    padding: 10px;
    background-color:#fdfdfd;

}
.nav-tabs > li a { 
    border: 1px solid #1A3E5E;
    background-color:#2F71AB; 
    color:#fff;
    }

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover{
    background-color: #fdfdfd !important;
    color:#000;
    border: 1px solid #1A3E5E;
    border-bottom-color: transparent;
    }

.nav-tabs > li > a:hover{
  background-color: #fdfdfd !important;
    border-radius: 5px;
    color:#000;

} 

.nav-tabs {
    margin-bottom: 0;
}*/


.filtres-title {
  font-size: 1.2rem;
  padding-top: 1.2rem;
  font-weight: 400;
  /*font-variant-caps: all-small-caps;*/
}
.sidebar-acordio{
  list-style: none;
  padding-left: 0;  
}
.sidebar-acordio-seccio{
  border-bottom: .1rem solid rgba(0,0,0,.08);
}
.sidebar-acordio-titol{
  align-items: center;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    line-height: 1.1875;
    padding: 10px 13px 10px 11px;
    text-align: left;
    width: 100%;
    border: none;
    cursor: pointer;
    border-bottom: .1rem solid rgba(0,0,0,.08);
}

.sidebar-acordio-titol h3 {
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 600;
}

.acordio-subitems{
  height: auto;
    background-color: #fff;
    font-size: .875rem;
    padding: .5rem .7rem .7rem;
    max-height: 18rem;
    overflow-y: scroll;
    transition: all .2s ease-in-out;
    list-style: none;
}

.breadcrumbs-wrapper{
  background-color: #fff;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,.1);
}

.breadcrumbs-results{
  font-size: 1em;
  padding-top: 0.75rem;
  padding-bottom: 0.1rem;
}

.breadcrumbs-item{
 font-size: 1em;
  padding: 0.75rem 0;
}
.breadcrumbs-item img{
  margin: 0 0.7rem;
  vertical-align: inherit;
  max-height: 0.7rem;
}
.breadcrumb-container{
  padding-left: 0;
}


.breadcrumbs-results img{
  margin: 0 0.7rem;
  vertical-align: inherit;
  max-height: 0.7rem;
}

.breadcrumbs-container{
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  
}

.breadscrumbs-results-area{
  display:flex;
  align-items: center;
  margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.breadscrumbs-options-area{
  display: flex;
}
.contenidor-opcions-resultats{
  padding: .5rem;
}

.breadscrumbs-filtres-area{
   background-color: #f9f6ee;
   background-color: #ecece9;
  box-shadow: inset 0 -1px 0 0 rgba(0,0,0,.1);
}

/*Filtres pastilles */
.llista-filtres{
    display: flex;
    max-height: none;
    visibility: visible;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem .5rem .5rem;
} 
.llista-filtres-i-label{
    display: flex;
    align-items: center;

}
.llista-filtres-label{
    color: #797260;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    align-self: baseline;
    display: block;
    margin: .5rem 0;
    margin-right: .75rem;
}
.llista-filtres-pastilles{
    display: inline-flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.llista-filtres-pastilla{
  background-color: #bdb08b;
    color: #fff;
    font-size: .875rem;
    border-radius: 2px;
    margin-right: .5rem;
    display: inline-block;
    margin-bottom: .25rem;
}
.llista-filtres-pastilla-link{
  color: #fff;
    display: inline-block;
    padding: 4px 8px;
}
a.llista-filtres-pastilla-link:hover{
  color: #fff;
    text-decoration: none;
}

.llista-filtres-pastilla-text{
  font-weight: 600;
    margin-right: .5rem;
  color:#fff;
}
.llista-filtres-pastilla-creu{
      width: 9px;
    height: 9px;
}

.hr-results{
  margin-top: 0px;
}

.titol-filtre{
  font-size: 1.4em;
  font-style: bold;
  font-variant-caps: all-small-caps;
}

.total-results{
  font-size: 1.3rem;
}
.sidebar-titol-filtre{
  color: #000;
  flex-basis: 80%;
  font-size: 0.84rem;
  word-break: break-word;
}
.total-items-filtre{
  color: #6d6d6d;
    flex-basis: 20%;
    font-size: .8125rem;
    margin-left: .25rem;
    text-align: right;
}
.sidebar-item{
  margin-bottom: .5rem;
    display: flex;
}

.item-list{
    display: flex;
    /*width: 100%;*/
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 0 0 #ddd6cf;
    box-shadow: 0 1px 0 0 #ddd6cf;
    padding: 12px 8px 12px 16px;
    margin-bottom: 8px;
    margin-left: -2.5em;
}

.fons-cerca{
  background-color: #f7f5f0;
}

.item-icono{
  border: .075rem solid rgba(0,0,0,.1);
  height: 6rem;
  margin: 0 .5rem;
  width: calc(15% - 1rem);
  align-items: center;
    display: flex;
    justify-content: center;
    padding: .5rem;
}

.tipus-resultat{
  text-transform: uppercase;
  color: #7b7b7b;
  font-size: 2em;
}
.badge-tipus-resultat{
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 24px;
    padding: 0 8px;
    margin-right: 4px;
    background: #f9f9f9;
    border-radius: 24px;
    color: #aaa5b1;
}

.item-title{
  font-size:1.125rem;
  color:#000;
  font-weight: 400;
}
.item-title a{
  color:#986c00;
}
.item-text-descripcio{
 display:block;
 font-size: .875rem;
}

.item-data {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.4em;
  display: inline-flex;
}


@media (max-width: 768px) {
  header.masthead {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  header.masthead h1 {
    font-size: 2rem;
  }
   header.masthead h2 {
    font-size: 1.5rem;
  }

}

@media (max-width: 500px) {
.navegacio{
    display: none;
  }
}

.showcase .showcase-text {
  padding: 3rem;
}

.showcase .showcase-img {
  min-height: 30rem;
  background-size: cover;
}

@media (min-width: 768px) {
  .showcase .showcase-text {
    padding: 7rem;
  }
}

.features-icons {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.features-icons .features-icons-item {
  max-width: 20rem;
}

.features-icons .features-icons-item .features-icons-icon {
  height: 7rem;
}

.features-icons .features-icons-item .features-icons-icon i {
  font-size: 4.5rem;
}

.equip {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.equip .equip-item {
  max-width: 18rem;
}

.equip .equip-item img {
  max-width: 12rem;
  box-shadow: 0px 5px 5px 0px #adb5bd;
}

.contacte {
  position: relative;
  background: url("../img/crema.png") no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.contacte h2, p{
  color:#6d6656;
}

.contacte .overlay {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0.3;
}

#contacte{
  padding: 3em;
}

footer p {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 100;
}

footer dt{
  color: #fff;
  font-size: 0.9rem;
  font-weight: 100;
}

.colaboradors{
  text-align: left;
}
.footer1{
  /*background-color: #2b2821;*/
  background-color: #222f40;
  color: #fff;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer1 a{
  color: #fff;
}
.footer2{
  background-color: #171717;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer2 img{
  max-height: 3.5rem;
}

/*.boto-formulari {
    color: #6d6656;
    font-size: 20px;
    font-weight: 500;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    padding: 6px 20px;
    line-height: 1.7em;
    background: transparent;
    border: 1px solid #6d6656;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-transition: all 0.2s;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.boto-formulari a:hover{

}
*/
.boto-formulari {
  border-radius: 4px;
  background-color: transparent;
  border-radius: 3px;
  border: 1px solid #6d6656;
  color: #6d6656;
  text-align: center;
  font-size: 16px;
  padding: 6px 20px;
  transition: all 0.5s;
  cursor: pointer;
  margin: 5px;
}

.boto-formulari span {
  cursor: pointer;
  display: inline-block;
  position: relative;
  transition: 0.5s;
}

.boto-formulari span:after {
  content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}
.boto-formulari:hover {
  background-color: white;
}

.boto-formulari:hover span {
  padding-right: 25px;
}

.boto-formulari:hover span:after {
  opacity: 1;
  right: 0;
}

/**
*
* Fitxa
*
*/
.fitxa-wrapper{
  padding: 2rem 0;
}
.fitxa-tags span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  /*padding-bottom: 1rem;*/
}

.fitxa-tags dt {
  width: 33%;
  color: #6d6d6d;
  font-size: 1rem;
  font-weight: 600;
  padding-top: .25rem;
  text-align: right;
  padding-right: 0.5rem;
}
.fitxa-tags dd {
  font-size: 1rem;
  width: 66%;
  margin-left: auto;
}

.fitxa-tags span:nth-child(odd){
  background-color: #f7f7f7;
}

.fitxa-seccio{
  border-bottom: .1rem solid rgba(0,0,0,.1);
  padding: 1.125rem 0;
}
.fitxa-seccio-last{
  padding: 1.125rem 0;
}
/**
*
* Paginació
*
*/
.page-link{
  color: #82775b;
}
.page-item.active .page-link{
  background-color: #82775b;
  border-color: #82775b;
}

.contenidor-opcions-resultats{
  flex-direction: row;
  align-items: center;
  padding: .5rem;
}

.desplegable-paginacio{
  color: #6d6d6d;
    display: inline-block;
    font-size: .8125rem;
    font-weight: 400;
    line-height: 1.0625;
    margin-bottom: .25rem;
    white-space: nowrap;
}
.estil-desplegable{
  -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url(../img/icons/thick-black-down.svg) no-repeat #f7f5f0;
    background-position: calc(100% - .5rem) 50%;
    background-size: .9em;
    border: none;
    border-radius: .25rem;
    cursor: pointer;
    padding: .5rem 1.5rem .5rem .25rem;
    width: 100%;
}
.barra-continguts{
  align-items: baseline;
    /*background-color: #f3f7f8;*/
    display: flex;
    flex-direction: row;
    /*margin: .5rem 0;*/
    border-radius: 6px;
}


.fieldset-inline{
display: contents;
}
.llegenda{
  margin-left: -20px;
  font-size: 1rem; 
}
.llegenda-inline{
  margin-left: 10px;
  font-size: 1rem; 
}
.cercador-avancat{
  margin-top: 50px;
  background-color: #f7f5f0;
  padding: 2rem 2.5rem;
  box-shadow: 0 0 0 15px white inset;
}

.radio-toolbar input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

.radio-toolbar label {
   /* display: flex;
    background-color: #ddd;
    padding: 10px 20px;
    font-family: sans-serif, Arial;
    font-size: 16px;
    border: 2px solid #444;
    border-radius: 4px;*/

    align-items: center;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 13px 10px 11px;
    text-align: left;
    width: 100%;
    border: none;
    cursor: pointer;
    border-bottom: .1rem solid rgba(0,0,0,.08);
    flex-grow: 1;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0px;
}

.radio-toolbar input[type="radio"]:checked + label {
    background-color:#2d405a;
    border-color: #4b6d9a;
    color:#fff;
}

.titol-item-destacat{
    color: #4d4d4d;
    border-bottom: 5px solid #52619a;
    font-size: 24px;
    margin:0;
    letter-spacing: 0em !important;
    padding-top: 1em;
    font-family: 'Lora';
    font-weight: 700;
}

.items-destacats{
  background: #f7f5f0;
    padding: 20px 0;
}

.sobre-epicat{
  background-color:#395c78;
  padding: 20px 10px;
}
.sobre-epicat p {
  color: #fff;
  font-weight: lighter;
}

.sobre-epicat a {
  color: #fff;
  font-weight: lighter;
  text-decoration: underline;
}

.llista-items-destacats{
  list-style: none;
  padding-left: 1.1rem;
}
.llista-item-destacat{
  border-bottom: 1px dotted #ccc;
  display: grid;
  margin-right: 1.1rem;
}
.llista-item-destacat-data{
  display: block;
}

.epistolaris-totals{
 background: 
    linear-gradient(
      rgba(45, 64, 90, 0.75), 
      rgba(59, 87, 115, 0.88)
    ), url("../img/epistolaris.png"); 
}

.cartes-totals{
 background: 
    linear-gradient(
      rgba(45, 64, 90, 0.75), 
      rgba(59, 87, 115, 0.88)
    ), url("../img/cartes.png");
}
.corresponsals-totals{
 background: 
    linear-gradient(
      rgba(45, 64, 90, 0.75), 
      rgba(59, 87, 115, 0.88)
    ), url("../img/corresponsals.png");
}
.families-totals{
 background: 
    linear-gradient(
      rgba(45, 64, 90, 0.75), 
      rgba(59, 87, 115, 0.88)
    ), url("../img/families.png");
}
.home-totals{
  background-size: cover;
  color: #fff;
  height: 15em;
  transition: 0.3s;
}
.home-totals a:hover{
  text-decoration: none;
}
.epistolaris-totals:hover, .cartes-totals:hover, 
.corresponsals-totals:hover, .families-totals:hover{
    opacity:70%;
}


.home-totals-num{
  font-family: "Lato";
  font-size: 6rem;
  color:#fff;
}
.home-totals-titol{
  font-size: 1.3rem;
  font-family: 'Lato';
  letter-spacing: 0.75rem;
  color:#fff;
  text-transform: uppercase;
}

.tags-cloud-p {
  max-width: 500px;
  margin: auto;
}

.tags-cloud-span {
  font-size: calc(1rem * var(--tag-multiplier));
}

.uppercase{
  text-transform: uppercase;
}

/* informació extra: desplegable fila taula resultats*/
td.details-control {
    text-align:center;
    color:forestgreen;
    cursor: pointer;
}
tr.shown td.details-control {
    text-align:center; 
    color:red;
}


/* Histograma */

 .axis path,
  .axis line {
    fill: none;
    stroke: black;
  shape-rendering: crispEdges;   
  }

  .axis text {
    font-size: 0.8em;
  }

  .bar {
    fill: #375E7E;
  }

  #histograma{
    background-color: #f7f7f7;
  }

  .selector-idiomes{
    background-color: #fff;
    padding: 0 10px 0 10px;
  }

  .selector-idiomes a:hover{
    color: #2d405a !important;
  }


  #canvas-holder {
    width: 100%;
    margin-top: 50px;
    text-align: center;
  }