/** === QuickSearch === */

/** SearchBox */

.elementor-search-form .elementor-search-form__container.searching {
  overflow: visible;
  background: white;
  border-radius: 5px 5px 0 0 !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.elementor-search-form
  .elementor-search-form__container
  .elementor-search-form__input {
  border-radius: 0;
}

.elementor-search-form .elementor-search-form__container .search-box {
  display: none;
  position: absolute;
  padding: calc(50px / 3);
  padding-top: 0;
  width: 100%;
  top: 100%;
  left: 0;
  min-height: 10rem;
  max-height: 30rem;
  height: auto;
  background: white;
  border-radius: 0 0 5px 5px;
}

.elementor-search-form .elementor-search-form__container.searching .search-box {
  display: flex;
  flex-direction: column;
}

.elementor-search-form
  .elementor-search-form__container.searching
  .search-box.loading {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elementor-search-form
  .elementor-search-form__container.searching
  .search-box
  .loader {
  display: none;
}

.elementor-search-form
  .elementor-search-form__container.searching
  .search-box.loading
  .loader {
  display: inline-block;
  font-size: 2rem;
  color: #0072bb;
}

/** Search Results */

.search-box ul {
  margin: 0;
}

.search-box .sections {
  border-top: 1px solid lightgray;
  flex: 1;
  overflow: auto;
}

.search-box .sections::-webkit-scrollbar {
  width: 8px;
  background-color: rgba(0, 0, 0, 0.05);
  -webkit-border-radius: 100px;
}

.search-box .sections::-webkit-scrollbar:hover {
  background-color: rgba(0, 0, 0, 0.09);
}

.search-box .sections::-webkit-scrollbar-thumb:vertical {
  background: rgba(0, 0, 0, 0.15);
  -webkit-border-radius: 100px;
}

.search-box .sections::-webkit-scrollbar-thumb:vertical:active {
  background: rgba(0, 0, 0, 0.61);
  -webkit-border-radius: 100px;
}

.search-box .view-all {
  text-align: center;
}

.search-box .sections .section {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.search-box .sections .section > .title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  border: 2px solid black;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.search-box .sections .section > .title a {
  color: inherit;
}

.search-box .sections .section.posts > .title {
  color: #84ac6f;
  border-color: #84ac6f;
}

.search-box .sections .section.events > .title {
  color: #713e7d;
  border-color: #713e7d;
}

.search-box .sections .section.documents > .title {
  color: #d23e28;
  border-color: #d23e28;
}

.search-box .sections .section.teams > .title {
  color: #1678bf;
  border-color: #1678bf;
}

.search-box .sections .section.ods > .title {
  color: #00bfb0;
  border-color: #00bfb0;
}
.search-box .sections .section.ods > .title i {
  font-weight: 600;
}

.search-box .sections .section > .title i {
  margin-right: 0.5rem;
}

.search-box .results {
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.search-box .results .result {
  margin: 0.15rem 0;
  display: flex;
}

.search-box .results .result .icon {
  position: relative;
  background: #eeeeee;
  width: 2em;
  height: 2em;
  margin-right: 1rem;
}

.search-box .results .result .icon.has-icon {
  background: none;
  border-radius: 50%;
}

.search-box .results .result .icon.has-icon i {
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  background: #0072bf;
  justify-content: center;
  color: white;
}

.search-box .results .result .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-box .results .result .subtitle {
  font-size: 0.8em;
  color: darkgray;
  font-weight: 600;
}

.search-box .results .result .title {
  font-size: 1rem;
  font-weight: 500;
}

.search-box .results .result .title a {
  color: black;
}

/** === WordPress Search === */

.search #primary {
  width: 100%;
}

.search #secondary {
  display: none;
}

.search .search-results {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
}

.search .search-results ul {
  margin: 0;
  list-style: none;
}

.search .search-results .sections-box {
  width: 70%;
  box-sizing: border-box;
  padding: 1rem;
}

.search .search-results .sections-box h1,
.search .search-results .sections-box h2 {
  font-size: 1rem;
}

.search .search-results .sections .section {
  margin-bottom: 2rem;
}

.search .search-results .sections .section > .title {
  display: inline-block;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.search .search-results .sections .section > .title a {
  display: inline-flex;
  align-items: center;
}

.search .search-results .sections .section > .title i {
  font-size: 1em;
}

.search .search-results .carousel .results {
  padding: 0.5rem 0;
}

.search .search-results .carousel .result {
  width: calc(100% / 3);
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search .search-results .carousel .result .icon {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: rgb(224, 224, 224);
}

@supports not (aspect-ratio: 16/9) {
  .search .search-results .carousel .result .icon {
    height: 10rem;
  }
}

.search .search-results .ods.carousel .result .icon {
  aspect-ratio: 1/1;
}

@supports not (aspect-ratio: 1/1) {
  .search .search-results .carousel .result .icon {
    height: 16rem;
  }
}

.search .search-results .carousel .result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search .search-results .filters-box {
  width: calc(30% - 2rem);
  box-sizing: border-box;
  padding: 1rem;
  margin-left: 2rem;
  background: white;
  box-shadow: 0 2px 15px rgb(0 0 0 / 20%);
  border-radius: 10px;
}

.search .search-results .filters-box h1 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.search .search-results .filters-box h2 {
  font-size: 1.05rem;
  margin: 1rem 0;
  border-bottom: 1px solid #f2f2f2;
  padding-bottom: 1rem;
}

.search .search-results .filters-box :not(.ods) .filters li {
  background: #0072bb;
}

.search .search-results .filters-box .ods .filters li {
  background: #74b551;
  text-align: center;
  line-height: 1.25em;
}

.search .search-results .filters-box .filters li.disable-filter {
  background: rgb(255, 84, 84);
}

.search .search-results .filters-box .filters li {
  padding: 0.25rem 1rem;
  font-size: 0.8rem;
  margin: 0.25rem;
}

.search .search-results .filters-box .view-filters {
  display: none;
}

@media screen and (max-width: 600px) {
  .search .search-results {
    flex-flow: column;
  }

  .search .search-results .sections-box {
    width: 100%;
  }

  .search .search-results .filters-box {
    width: 100%;
    margin: 0;
    order: -1;
  }

  .search .search-results .filters-box:not(.open) .filters-container,
  .search .search-results .filters-box:not(.open) > img {
    display: none;
  }

  .search .search-results .filters-box h1 {
    justify-content: space-between;
    display: flex;
    align-items: center;
  }

  .search .search-results .filters-box .view-filters {
    display: inline-block;
    color: #1e73be;
    font-weight: normal;
    background: none;
    font-size: 1em;
    padding: 0;
  }
}

/** === Common === */

.search-box .sections .section > .title,
.search-results .sections .section > .title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 0.25rem 1rem;
  border-radius: 99px;
  border: 2px solid black;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.search-box .sections .section > .title a,
.search-results .sections .section > .title a {
  color: inherit;
}

.search-box .sections .section.posts > .title,
.search-results .sections .section.posts > .title {
  color: #84ac6f;
  border-color: #84ac6f;
}

.search-box .sections .section.events > .title,
.search-results .sections .section.events > .title {
  color: #713e7d;
  border-color: #713e7d;
}

.search-box .sections .section.documents > .title,
.search-results .sections .section.documents > .title {
  color: #d23e28;
  border-color: #d23e28;
}

.search-box .sections .section.teams > .title,
.search-results .sections .section.teams > .title {
  color: #1678bf;
  border-color: #1678bf;
}

.search-box .sections .section.ods > .title,
.search-results .sections .section.ods > .title {
  color: #00bfb0;
  border-color: #00bfb0;
}
.search-box .sections .section.ods > .title i,
.search-results .sections .section.ods > .title i {
  font-weight: 600;
}

.search-box .sections .section > .title i,
.search-results .sections .section > .title i {
  margin-right: 0.5rem;
}

.search-box .results .result .icon,
.search-results .results .result .icon {
  position: relative;
}

.search-box .results .result .icon:after,
.search-results .results .result .icon:after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Font Awesome 5 Free";
  font-weight: normal;
  content: "\f039";
  color: #d7d7d7;
  line-height: 1em;
}

.search-results .results .result .icon:after {
  width: 4rem;
  font-size: 4rem;
  height: 4rem;
}

.search-box .results .result .icon.has-icon:after,
.search-results .results .result .icon.has-icon:after {
  display: none;
}

.search-box .sections .section.posts .result .icon:after,
.search-results .sections .section.posts .result .icon:after {
  content: "\f1ea";
}

.search-box .sections .section.events .result .icon:after,
.search-results .sections .section.events .result .icon:after {
  content: "\f073";
}
.search-box .sections .section.documents .result .icon:after,
.search-results .sections .section.documents .result .icon:after {
  content: "\f15c";
}

.search-box .sections .section.teams .result .icon,
.search-results .sections .section.teams .result .icon {
  font-weight: 600;
}
.search-box .sections .section.teams .result .icon:after,
.search-results .sections .section.teams .result .icon:after {
  content: "\f0c0";
}

.search-box .sections .section.ods .result .icon i,
.search-results .sections .section.ods .result .icon i {
  font-weight: 600;
}
.search-box .sections .section.ods .result .icon:after,
.search-results .sections .section.ods .result .icon:after {
  content: "\f140";
}

/** Results */

.search .search-results .carousel .result header {
  padding: 1rem;
}

.search .search-results .carousel .result .description {
  padding: 1rem;
  padding-top: 0;
  height: 8rem;
}
.search .search-results .carousel .result .title {
  height: 4rem;
}

.search .search-results .result .title {
  font-weight: bold;
}

.search .search-results .results-container:not(.swiper-container) {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

.search .search-results .results-container:not(.swiper-container) .result {
  margin-bottom: 1rem;
}

/* BIBLIOTECA */

section.olacefs-library {
  margin-top: 2em;
}
.olacefs-library .elementor-search-form__input {
  width: 80%;
border: 0;
  border-bottom: 2px solid #ccc;
  height: 50px;
}

.olacefs-library .btn-search {
  height: 50px;
  margin-left: 15px;
}

.olacefs-library ul.filters {
  display: flex;
  list-style: none;
}

.olacefs-library ul.filters {
  display: flex;
  list-style: none;
  margin: 2em 0;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
}

.olacefs-library ul.filters li {
  padding: .5em 1.5em;
  margin: 0 1em;
  border-radius: 50px;
}

.olacefs-library .filters li:first-child {
  background: #000;
}

.olacefs-library ul.filters li a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Quicksand';
}

.olacefs-library .filters li:nth-child(2) {
  background: #00acec;
}
.olacefs-library .filters li:nth-child(3) {
  background: #7a2c8b;
}
.olacefs-library .filters li:nth-child(4) {
  background: #73b64f;
}

.olacefs-library .filters li:nth-child(5) {
  background: #cf422a;
}
.olacefs-library .filters li:nth-child(6) {
  background: #7a2c8b;
}

.olacefs-library .filters li a i {
  margin-right: 10px;
}


.olacefs-library ul.sites {
margin: 2em 0;}

.olacefs-library ul.sites li {
list-style:none;}

.olacefs-library .sites h1 {
  font-family: 'Quicksand';
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 800;
  color: #000;
}

.olacefs-library ul.documents {
  margin: 1em 0 3.5em;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: ;
  align-items: flex-start;
  align-content: center;
}

.olacefs-library li.document {
  width: 20%;
  text-align: center;
  background: #f7f7f7;
  border-radius: 15px;
  box-shadow: 0 0 10px #969696;
  padding: 1em;
  min-height: 250px;
  align-content: space-between;
  display: inline-flex;
  justify-content: center;
  align-items: center;
margin: 15px 20px 15px 0;
}

@media (max-width:768px) {
  .olacefs-library li.document {
 width: 44%;
  margin: 15px auto;
  }
.olacefs-library .elementor-search-form__input {
  width: 65%; 
}
.olacefs-library .btn-search {
   margin-left: 8px;
  padding:1em;
  height:55px;
}

.olacefs-library ul.filters li {
 padding: .3em 1em;
  margin: .3em;

}



}

.olacefs-library .document h2 {
  font-size: 15px;
margin:1em;
font-weight: 700;
}


.olacefs-library .document h1 {
  font-size: 16px;
  text-transform: none;
  font-family: 'Montserrat';
  font-weight: 400;
margin:1em;
}

.olacefs-library li.document i {
  font-size: 3em;
}
.olacefs-library .document i.fas.fa-book, .olacefs-library .document i.fas.fa-file-signature,.olacefs-library .document i.fas.fa-clipboard,.olacefs-library .document i.fas.fa-file-alt {
  color: #fff;
  text-align:center;
  padding: 15px;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  line-height: 75px;
}
.olacefs-library .document i.fas.fa-book {
background: #7a2c8b;
}
.olacefs-library .document i.fas.fa-file-signature {background: #73b64f;}
.olacefs-library .document i.fas.fa-clipboard {background: #00acec;}
.olacefs-library .document i.fas.fa-file-alt {background: #cf422a;}
