body {
  background-color: #fff;
}
body.home {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
#footer {
  margin-top: auto;
}
main {
  margin-top: 0;
}
.cursor-pointer {
  cursor: pointer;
}
h1 {
  font-size: 2.625rem;
}
h1 > a,
h1 > a:visited {
  text-decoration: none;
  color: inherit;
}
h2 {
  font-size: 1.6rem;
  font-weight: 600;
}
h3 {
  font-size: 1.4rem;
  font-weight: 600;
}
h4 {
  font-size: 1.125rem;
  font-weight: 600;
}
#project_header {
  text-align: center;
}
#project_header {
  height: 0;
  overflow: hidden;
  padding-top: 25%;
  background: white;
  position: relative;
}
#project_header img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home #collections {
  max-width: 1575px;
  margin: 0 auto;
}
.home #collections .card-footer {
  padding: 0;
}
.home #collections img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
main {
  font-size: 0.875rem;
}

.modifica[aria-expanded="true"],
#side-col > div,
#collapseSearch {
  background-color: #f3f3f3;
}
.modifica {
  width: 100%;
  height: 100%;
  display: block;
  text-align: right;
  font-weight: bold;
  font-size: 1.125rem;
}

/* #side-col > div{
  border: 1px solid #979797;
} */
#side-col h2 {
  text-transform: uppercase;
  color: rgba(37, 37, 37, 0.5);
  font-size: 12px;
  font-weight: 700;
}

#vocabularies {
  list-style-type: none;
  padding-left: 1rem;
}
.vocabulary_table {
  margin-bottom: 0;
  border-bottom: 0 none !important;
}

.vocabularyContent {
  border-bottom: 1px solid #dee2e6;
}
#vocabularies a,
.vocabulary_table a {
  font-weight: 600;
  font-size: 1rem;
}
#hotspost_section {
  list-style-type: none;
  margin-left: 0;
  padding-left: 0;
}

#hotspost_section li {
  margin-bottom: 20px;
}

#hotspost_section > li > a > div > div:first-child > .square {
  position: relative;
  height: 0;
  padding-bottom: 100%;
}
#hotspost_section img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#hotspost_section > li > a {
  font-weight: 700;
  display: block;
}

#search_tab {
  margin-top: 0;
}
#search_tab .nav-item:last-child {
  margin-left: 1rem;
}
#search_tab .nav-link {
  text-align: left;
  margin-top: 0;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.mini-gallery + p {
  margin-top: 1.875rem;
}
.mini-gallery::after {
  content: "";
  clear: both;
  display: block;
}
.mini-gallery > .img-wrapper {
  position: relative;
  float: left;
  margin-right: 5px;
  margin-bottom: 5px;
  width: calc(33% - 5px);
  padding-bottom: calc(33% - 5px);
}
.mini-gallery > .img-wrapper > img {
  width: 100% !important;
  height: 100% !important;
  position: absolute;
  object-fit: cover;
}

.project_search #header,
.project_document #header {
  background: #ffffff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.separator {
  border-top: 1px solid #d8d8d8;
}

.back {
  font-weight: bold;
  font-size: 0.875rem;
  color: #024296;
  text-align: left;
}

.project_search h2 {
  opacity: 0.5;
  font-weight: bold;
  font-size: 1.625rem;
  color: #252525;
  text-align: left;
}

.project_search .table {
  background-color: #f8f8f8;
}

.project_search .nav-tabs,
.project_search .nav-tabs .nav-link,
.project_document .nav-tabs,
.project_document .nav-tabs .nav-link {
  background-color: transparent !important;
}
.project_search .nav-tabs .nav-item:last-child,
.project_document .nav-tabs .nav-item:last-child {
  margin-left: 0;
}

#big_image img,
#big_multi_image img {
  max-width: 100%;
}
#big_multi_image > div {
  position: relative;
}
#big_multi_image > div:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
#big_multi_image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  height: calc(100% - 30px);
  width: calc(100% - 30px);
}
.value_name {
  opacity: 0.4;
  font-weight: 900;
  font-size: 0.75rem;
  color: #024296;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
}

.value_desc .text_field * {
  font-family: inherit !important;
  font-size: inherit !important;
}

.value_desc .text_field sup,
.value_desc .text_field sub {
  font-size: 75% !important;
}

.value_desc .text_field *:not(b, strong) {
  font-weight: normal !important;
}

.value_desc {
  font-weight: 600;
  font-size: 1.125rem;
  color: #252525;
  text-align: left;
  line-height: 1.5rem;
  word-wrap: break-word;
}
.value_name + .value_desc {
  padding-bottom: 1.875rem;
}
.composite-group .value_name + .value_desc {
  padding-bottom: 0;
}

.value_desc .text_field ul {
  border-left: 0 none;
  list-style-type: disc;
}

.value_desc .text_field ul > li {
  padding-bottom: 0rem;
}
.value_desc .text_field ul > li:last-child {
  padding-bottom: 0rem;
}

.value_desc ul {
  border-left: 1px solid #9bb4d5;
  list-style-type: none;
  padding-left: 1.25rem;
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}
.value_desc ul .container_value.richtext ul {
  list-style-type: disc;
  border-left: none;
}
.composite-group .value_desc ul {
  margin-bottom: 0;
}

.value_desc ul > li {
  padding-bottom: 0rem;
  line-height: 1.3rem;
}
.value_desc ul > li:last-child {
  padding-bottom: 0rem;
}

.home_desc,
.home .card-body,
.home #other_results .description,
#read_more_desc,
#general_alert {
  font-size: 1.125rem;
  line-height: 1.5rem;
}

#main_desc {
  overflow: hidden;
  text-overflow: ellipsis;
}

#main_desc.full-story {
  height: auto !important;
}

#vocabulary_tab .nav-link {
  min-width: unset;
  padding: 0.5rem;
}

#cloud {
  width: 100%;
  /*min-height:100px;*/
}
#cloud:after {
  content: "";
  display: block;
  padding-bottom: 80%;
}

#cloud_modal {
  height: 75vh;
}
#tagsModal .modal-dialog {
  max-width: 90vw;
}

.home_desc img,
.home #collections img {
  max-width: 100%;
}
.home_desc a:not(.btn),
.home_desc a:not(.btn):hover,
.home_desc a:not(.btn):visited {
  color: #024296;
}

.home_desc .carousel-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: separate;
  border: 0 none;
  margin-top: 2rem;
  border-spacing: 0.4rem !important;
}
.home_desc .carousel-table td,
.home_desc .carousel-table tr {
  border: 0 none;
  position: relative;
}
.home_desc .carousel-table td:after {
  content: "";
  display: block;
  margin-top: 100%;
}
.home_desc .carousel-table td img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  max-width: unset;
  max-height: unset;
}
.home #other_results h3 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.home .result {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
p.caption {
  padding-top: 2rem;
}

.document_frame {
  border: 1px solid #9bb4d5;
}
.short_record_style.bold {
  font-weight: 700;
}
.short_record_style.gray-bold {
  font-weight: 700;
  color: #cccccc;
}
.short_record_style.light-blue {
  color: #0f9fff;
}

.project_document .single_image.square a,
.project_document .single_image.square span {
  position: relative;
  display: block;
  padding-top: 100%; /* initial ratio of 1:1*/
  margin: 0.5rem 0;
}

.project_document .single_image.square a img,
.project_document .single_image.square span img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-container--single .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}
.swiper-container--thumb .swiper-scrollbar {
  background: none;
}
.swiper-container--thumb .swiper-scrollbar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(2, 66, 150, 0.4);
}

.swiper-container--thumb .swiper-scrollbar .swiper-scrollbar-drag {
  background-color: #024296;
  height: 8px;
}

.swiper-horizontal.swiper-container--thumb > .swiper-scrollbar {
  height: 8px;
}

.swiper-container--thumb .swiper-wrapper {
  margin-bottom: 40px !important;
}

.swiper-slide {
  position: relative;
}
.swiper-slide:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.swiper-slide > * {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

.swiper-container--thumb--grid {
  min-height: 200px;
}
.swiper-container--thumb--grid .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  /* Center slide text vertically */
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.category {
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1rem;
  line-height: 1.25;
  position: relative;
}
body.ricerca .category > div {
  background-color: #d6772c;
}
body.tesi .category > div {
  background-color: #a898b0;
}
body.archivio .category > div {
  background-color: #98b09e;
}
.category .category_img {
  /* position: absolute;
  left: 0;
  top: 50%; */
  max-width: 100px;
  padding-right: 10px;
  vertical-align: middle;
  /* transform: translateY(-50%); */
}

.category .category_img_search {
  height: 50px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.category .category_img_search + span {
  margin-left: 50px;
}

body.ricerca .custom-control-input ~ .custom-control-label::before {
  border-color: #b9611c;
}
body.tesi .custom-control-input ~ .custom-control-label::before {
  border-color: #7e7185;
}
body.archivio .custom-control-input ~ .custom-control-label::before {
  border-color: #778a7c;
}

body.ricerca .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #d6772c;
}
body.tesi .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #a898b0;
}
body.archivio .custom-control-input:checked ~ .custom-control-label::before {
  background-color: #98b09e;
}

body.ricerca .back,
body.ricerca main a,
body.ricerca main h1,
body.ricerca #displayTab.nav-tabs .nav-link,
body.ricerca .value_name,
body.ricerca .advanced_form .input-group .fa,
body.ricerca main .home_desc a,
body.ricerca main .home_desc a:hover,
body.ricerca main .home_desc a:visited,
body.ricerca main .document_title {
  color: #d6772c;
}
body.tesi .back,
body.tesi main a,
body.tesi main h1,
body.tesi #displayTab.nav-tabs .nav-link,
body.tesi .value_name,
body.tesi .advanced_form .input-group .fa,
body.tesi main .home_desc a,
body.tesi main .home_desc a:hover,
body.tesi main .home_desc a:visited,
body.tesi main .document_title {
  color: #a898b0;
}
body.archivio .back,
body.archivio main a,
body.archivio main h1,
body.archivio #displayTab.nav-tabs .nav-link,
body.archivio .value_name,
body.archivio .advanced_form .input-group .fa,
body.archivio main .home_desc a,
body.archivio main .home_desc a:hover,
body.archivio main .home_desc a:visited,
body.archivio main .document_title {
  color: #98b09e;
}

body .composite-group {
  background-color: #347c9815;
}

body.ricerca .composite-group {
  background-color: #d6772c15;
}
body.tesi .composite-group {
  background-color: #a898b020;
}
body.archivio .composite-group {
  background-color: #98b09e20;
}
.composite-group {
  margin-bottom: 1.875rem;
  border-radius: 10px;
}

body.ricerca .back:hover,
body.ricerca main a:hover,
body.ricerca #displayTab.nav-tabs .nav-link:hover,
body.ricerca .advanced_form .input-group .fa:hover,
body.ricerca main .home_desc a:hover,
body.ricerca main .home_desc a:hover {
  color: #b9611c;
}
body.tesi .back:hover,
body.tesi main a:hover,
body.tesi #displayTab.nav-tabs .nav-link:hover,
body.tesi .advanced_form .input-group .fa:hover,
body.tesi main .home_desc a:hover,
body.tesi main .home_desc a:hover {
  color: #7e7185;
}
body.archivio .back,
body.archivio main a:hover,
body.archivio #displayTab.nav-tabs .nav-link:hover,
body.archivio .advanced_form .input-group .fa:hover,
body.archivio main .home_desc a:hover,
body.archivio main .home_desc a:hover {
  color: #778a7c;
}
.container-share .share {
  text-decoration: none;
}

body.ricerca .container-share svg {
  fill: #d6772c;
}
body.ricerca .container-share a:focus {
  color: #d6772c !important;
}
body.tesi .container-share svg {
  fill: #a898b0;
}
body.tesi .container-share a:focus {
  color: #a898b0 !important;
}
body.archivio .container-share svg {
  fill: #98b09e;
}
body.archivio .container-share a:focus {
  color: #98b09e !important;
}

.container-share .dropdown-item:active svg {
  fill: #fff;
}

body.ricerca main .btn-primary {
  background-color: #d6772c;
  color: #fff !important;
  border-color: #245f76;
}
body.tesi main .btn-primary {
  background-color: #a898b0;
  color: #fff !important;
  border-color: #7e7185;
}
body.archivio main .btn-primary {
  background-color: #98b09e;
  color: #fff !important;
  border-color: #778a7c;
}

body.ricerca main .btn-outline-primary {
  color: #d6772c;
  border-color: #d6772c;
}
body.tesi main .btn-outline-primary {
  color: #a898b0;
  border-color: #a898b0;
}
body.archivio main .btn-outline-primary {
  color: #98b09e;
  border-color: #98b09e;
}

body.ricerca main .btn-outline-primary:hover,
body.ricerca main .show .btn-outline-primary.dropdown-toggle,
body.ricerca main .show .dropdown-item:active {
  color: #fff;
  border-color: #d6772c !important;
  background-color: #d6772c !important;
}
body.tesi main .btn-outline-primary:hover,
body.tesi main .show .btn-outline-primary.dropdown-toggle,
body.tesi main .show .dropdown-item:active {
  color: #fff;
  border-color: #a898b0 !important;
  background-color: #a898b0 !important;
}
body.archivio main .btn-outline-primary:hover,
body.archivio main .show .btn-outline-primary.dropdown-toggle,
body.archivio main .show .dropdown-item:active {
  color: #fff;
  border-color: #98b09e !important;
  background-color: #98b09e !important;
}

body.ricerca main .date_search .card-header button i {
  color: #d6772c;
}
body.tesi main .date_search .card-header button i {
  color: #a898b0;
}
body.archivio main .date_search .card-header button i {
  color: #98b09e;
}

body.ricerca main .nav-tabs .nav-link:hover,
body.ricerca main .nav-tabs .nav-link:focus,
body.ricerca main .nav-tabs .nav-link.active {
  border-bottom-color: #d6772c;
}
body.tesi main .nav-tabs .nav-link:hover,
body.tesi main .nav-tabs .nav-link:focus,
body.tesi main .nav-tabs .nav-link.active {
  border-bottom-color: #a898b0;
}
body.archivio .nav-tabs .nav-link:hover,
body.archivio .nav-tabs .nav-link:focus,
body.archivio .nav-tabs .nav-link.active {
  border-bottom-color: #98b09e;
}

body.archivio .value_name,
body.tesi .value_name {
  opacity: 0.7;
}

#map {
  width: 100%;
  height: 0;
  padding-top: 100%;
}
div[id^="leafletMap_"] {
  width: 100%;
  height: calc(100vh - 650px) !important;
  min-height: 70vh;
}

#leafletMap {
  width: 100%;
  height: calc(100vh - 480px) !important;
  min-height: 70vh;
}

.poi_map .leaflet-popup {
  right: 0 !important;
  top: 0 !important;
}

.leaflet-popup-content {
  margin: 0 !important;
}

.leaflet-popup-content-wrapper .card {
  border: 0 none;
  border-radius: 12px;
}

.leaflet-popup-content-wrapper .card a {
  color: #fff;
}
.leaflet-sidebar.right {
  padding: 0 !important;
}
.leaflet-sidebar.right > div {
  z-index: 1;
}
body .leaflet-touch .leaflet-sidebar > .leaflet-control {
  border: 2px solid #024296;
}

body.ricerca .leaflet-touch .leaflet-sidebar > .leaflet-control {
  border: 2px solid #d6772c;
}
body.tesi .leaflet-touch .leaflet-sidebar > .leaflet-control {
  border: 2px solid #a898b0;
}
body.archivio .leaflet-touch .leaflet-sidebar > .leaflet-control {
  border: 2px solid #98b09e;
}

.leaflet-sidebar h2 {
  padding-top: 10px;
  padding-bottom: 20px;
}
.leaflet-sidebar ul {
  list-style-type: none;
  padding: 0;
}
.leaflet-sidebar ul > li {
  border-bottom: 1px solid #024296;
  margin: 10px 0;
  padding-bottom: 10px;
}
body.ricerca .leaflet-sidebar ul > li {
  border-bottom: 1px solid #d6772c;
}
body.tesi .leaflet-sidebar ul > li {
  border-bottom: 1px solid #a898b0;
}
body.archivio .leaflet-sidebar ul > li {
  border-bottom: 1px solid #98b09e;
}

#cloud_all {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: none;
}

/* Bootstrap modal richtext */

.modal-dialog-richtext {
  width: 90vw;
  height: 90vh;
  padding: 0;
}

.modal-content-richtext {
  height: 100%;
  width: 100%;
  border-radius: 0;
  overflow: scroll;
}

.reset-max-width {
  max-width: none !important;
}

/* END Bootstrap modal richtext */

/* CSS PRINT DOCUMENT */
.pdf-category {
  font-size: 0.625rem;
}

.pdf-category img {
  height: 1.25rem;
}

.pdf h1 {
  font-size: 1.75rem;
}

.containerImage .backgroundImage {
  width: 100%;
  height: 260px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#pdfMap {
  width: 50rem;
  height: 180px;
  display: none;
}

.pdf #pdfMap {
  display: block;
}
/* CSS PRINT DOCUMENT */

#document_template {
  padding-bottom: 10px;
}

#document_template .badge {
  font-weight: 900;
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
  padding: 5px 10px;
}
#document_template .badge a {
  color: #fff !important;
}

#document_template .badge.badge-primary {
  background-color: #02429670;
}
#document_template .badge.badge-primary.tesi {
  background-color: #a898b0;
}
#document_template .badge.badge-primary.archivio {
  background-color: #98b09e;
}
#document_template .badge.badge-primary.ricerca {
  background-color: #d6772c;
}

.no-image {
  width: 100%;
  position: relative;
  min-height: 200px;
}

.no-image .fas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 80px;
  color: #024296;
}
