/* ibm-plex-sans-300 - latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300;
  src: local(''), url('../fonts/ibm-plex-sans-v8-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('../fonts/ibm-plex-sans-v8-latin-300.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-regular - latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  src: local(''), url('../fonts/ibm-plex-sans-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('../fonts/ibm-plex-sans-v8-latin-regular.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-500 - latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  src: local(''), url('../fonts/ibm-plex-sans-v8-latin-500.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('../fonts/ibm-plex-sans-v8-latin-500.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* ibm-plex-sans-700 - latin */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  src: local(''), url('../fonts/ibm-plex-sans-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('../fonts/ibm-plex-sans-v8-latin-700.woff') format('woff');
  /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* SCROLLBAR */
::-webkit-scrollbar {
  width: 20px;
  height: 20px;
}
::-webkit-scrollbar-track {
  background: #d8ddf0;
  cursor: default;
}
::-webkit-scrollbar-thumb {
  background: #99caff;
  cursor: default;
}
::-webkit-scrollbar-thumb:hover {
  background: #1e202b;
}
/* RESET */
*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
h1,
h2,
h3,
h4,
p,
ul,
ol {
  display: block;
  font-size: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
  /*image-rendering: -webkit-optimize-contrast;*/
}
a {
  color: inherit;
  transition: 0.3s;
  outline: 0;
  cursor: pointer;
}
a.link-highlight {
  display: block;
  font-size: 24px;
  color: #365075;
  text-align: left;
  margin-bottom: 15px;
  line-height: 24px;
  letter-spacing: -1px;
  text-decoration: none;
  text-align: center;
}
a.link-highlight:hover {
  text-decoration: underline;
}
body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #333;
  font-weight: 400;
  background: #fff;
  overflow: hidden;
}
body.sidebar-hidden .sidebar {
  left: -245px;
}
body.sidebar-hidden .sidebar .sidebar-search {
  opacity: 0;
}
body.sidebar-hidden .sidebar .sidebar-filters {
  opacity: 0;
}
body.sidebar-hidden .sidebar .sidebar-altri-strumenti {
  opacity: 0;
}
body.sidebar-hidden .sidebar .sidebar-hub-logo {
  left: calc(100% - 75px - 10px);
}
body.sidebar-hidden .sidebar .sidebar-toggle img {
  transform: rotate(180deg);
}
body.sidebar-hidden .timeline {
  padding: 0 50px 0 155px;
}
body.modal-overflow {
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
}
table tr th {
  padding: 20px;
  color: #fff;
}
table tr td {
  padding: 15px 20px;
}
.arrow-left {
  transform: rotate(-180deg);
}
/* ATOMS */
b,
strong {
  font-weight: 700;
}
p:not(:last-child) {
  margin-bottom: 30px;
}
.list {
  margin-bottom: 30px;
}
.list li {
  margin: 0 0 0 20px;
}
h1 {
  font-size: 40px;
  line-height: 40px;
  font-weight: 700;
  position: relative;
  margin-bottom: 35px;
}
h1:after {
  content: '';
  display: block;
  width: 30px;
  height: 5px;
  background-color: #000;
  position: absolute;
  bottom: -20px;
  left: 0;
}
h2 {
  font-size: 18px;
  line-height: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 10px;
  color: #d8ddf0;
}
h3 {
  font-size: 20px;
  line-height: 20px;
  position: relative;
  padding-top: 20px;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}
h3:after {
  content: '';
  display: block;
  width: 30px;
  height: 5px;
  background-color: #000;
  position: absolute;
  top: 0;
  left: 0;
}
.btn {
  display: inline-flex;
  justify-content: start;
  padding: 0 20px;
  background-color: #1e202b;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
  outline: 0;
  border: none;
  position: relative;
  overflow: hidden;
  font-family: inherit;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
  text-align: left;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn img {
  width: 25px;
  height: 25px;
}
.btn.btn-circle {
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background-color: #99caff;
}
.btn.btn-circle svg,
.btn.btn-circle img {
  width: 15px;
  height: 15px;
}
.btn.btn-xxx {
  background-color: #e09aa2;
  color: #1e202b;
  height: 50px;
}
.btn.btn-xxx.is-disabled {
  color: #e09aa2;
  background-color: #1e202b;
}
.btn.btn-orange {
  background-color: #ffb85d;
  color: #1e202b;
  height: 50px;
}
.btn.btn-orange.is-disabled {
  color: #ffb85d;
  background-color: #1e202b;
}
.btn.btn-violet {
  background-color: #cc8cf7;
  color: #1e202b;
  height: 50px;
}
.btn.btn-violet.is-disabled {
  color: #cc8cf7;
  background-color: #1e202b;
}
.btn.btn-green {
  background-color: #71d6bb;
  color: #1e202b;
  height: 50px;
}
.btn.btn-green.is-disabled {
  color: #71d6bb;
  background-color: #1e202b;
}
.btn.btn-rosa {
  background-color: #df8ba5;
  color: #1e202b;
  height: 50px;
}
.btn.btn-rosa.is-disabled {
  color: #df8ba5;
  background-color: #1e202b;
}
.btn.btn-aquamarine {
  background-color: #59c4b2;
  color: #1e202b;
  height: 50px;
}
.btn.btn-aquamarine.is-disabled {
  color: #59c4b2;
  background-color: #1e202b;
}
.btn.btn-azure {
  background-color: #99caff;
  color: #1e202b;
  height: 50px;
}
.btn.btn-azure.is-disabled {
  color: #99caff;
  background-color: #1e202b;
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.btn:hover {
  opacity: 0.6;
}
button {
  appearance: none;
  border: none;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  opacity: 0.6;
}
/* HELPER */
.t-left {
  text-align: left;
}
.t-right {
  text-align: right;
}
.t-center {
  text-align: center;
}
.t-white {
  color: #fff;
}
[hidden],
.hidden {
  display: none !important;
}
[disabled],
.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.no-select {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* GRAPHIC */
::-webkit-input-placeholder {
  color: #808080;
}
:-moz-placeholder {
  color: #808080;
}
::-moz-placeholder {
  color: #808080;
}
:-ms-input-placeholder {
  color: #808080;
}
.disable-scrollbars::-webkit-scrollbar {
  width: 0px;
  background: transparent;
  /* Chrome/Safari/Webkit */
}
.disable-scrollbars {
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}
/* GRID */
.container {
  margin: auto;
  max-width: 1000px;
  padding: 0 25px;
}
.loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #CFD8E6;
  color: #8899B2;
  height: 100%;
}
.timeline-wrapper {
  width: 100vw;
  height: 100vh;
  overflow-y: hidden;
  position: relative;
  cursor: grab;
}
.timeline {
  display: flex;
  width: 100%;
  background: linear-gradient(180deg, #d8ddf0 100px, #fff 101px, #fff 100%);
  padding: 0 50px 0 400px;
}
.timeline.with-transition {
  transition: 0.3s;
}
.timeline .y-col {
  height: calc(100vh - 20px);
  background: linear-gradient(90deg, #d8ddf0 1px, transparent 2px, transparent 100%);
}
.timeline .y-col .y-col-header {
  height: 100px;
  color: #2d3245;
  font-size: 25px;
  line-height: 25px;
  display: flex;
  align-items: center;
  position: relative;
}
.timeline .y-col .y-col-header span {
  display: block;
  width: 70px;
  height: 30px;
  text-align: center;
  letter-spacing: -0.5px;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: -35;
  white-space: nowrap;
}
.timeline .y-col .y-col-header span small {
  font-size: 16px;
  line-height: 16px;
}
.timeline .event {
  position: absolute;
  display: flex;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}
.timeline .event.event-range {
  background-color: #d8ddf0;
  border-radius: 999px;
}
.timeline .event.shift-down-1 {
  top: 150px;
}
.timeline .event .event-image {
  aspect-ratio: 1;
  height: 100%;
  border-radius: 999px;
  border-width: 3px;
  border-style: solid;
  border-color: #1e202b;
  background-color: #2d3245;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.timeline .event .event-title {
  width: calc(100% - 100px);
  margin-left: 10px;
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  color: #1e202b;
}
.timeline.zoom-3 .event .event-image {
  background-color: #fff;
  background-image: none !important;
  border-width: 8px;
}
.timeline.zoom-3 .event .event-title {
  width: calc(100% - 30px - 25px);
  font-size: 14px;
  line-height: 13px;
}
.timeline.zoom-2 .y-col {
  background: none;
}
.timeline.zoom-2 .y-col .y-col-header span {
  display: none;
}
.timeline.zoom-2 .y-col:nth-child(10n + 1) {
  background: linear-gradient(90deg, #d8ddf0 1px, transparent 2px, transparent 100%);
}
.timeline.zoom-2 .y-col:nth-child(10n + 1) .y-col-header span {
  display: block;
}
.timeline.zoom-2 .event .event-image {
  background-image: none !important;
  border: none;
}
.timeline.zoom-2 .event .event-title {
  display: none;
}
.timeline.zoom-1 .y-col {
  background: none;
}
.timeline.zoom-1 .y-col .y-col-header {
  font-size: 23px;
  line-height: 23px;
}
.timeline.zoom-1 .y-col .y-col-header span {
  display: none;
}
.timeline.zoom-1 .y-col .y-col-header span small {
  font-size: 13px;
  line-height: 13px;
}
.timeline.zoom-1 .y-col:last-child {
  width: 2px !important;
  background: linear-gradient(90deg, #d8ddf0 1px, transparent 2px, transparent 100%);
}
.timeline.zoom-1 .event.event-range {
  width: 10px !important;
}
.timeline.zoom-1 .event .event-image {
  background-color: #fff;
  background-image: none !important;
  border-width: 5px;
}
.timeline.zoom-1 .event .event-title {
  display: none;
}
.sidebar {
  width: 350px;
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh - 20px);
  background-color: #2d3245;
  color: #fff;
  border-right: 5px solid #99caff;
  padding: 150px 25px 25px 25px;
  transition: 0.3s;
  z-index: 20;
}
.sidebar .sidebar-search {
  margin-bottom: 50px;
  transition: 0.3s;
}
.sidebar .sidebar-search input:focus {
  outline: none;
}
.sidebar .sidebar-search .sidebar-input {
  position: relative;
  margin-bottom: 15px;
}
.sidebar .sidebar-search .sidebar-input input {
  padding: 8px 50px 8px 15px;
}
.sidebar .sidebar-search .sidebar-input .btn {
  position: absolute;
  top: 5px;
  right: 5px;
}
.sidebar .sidebar-search #searchYearWrapper {
  margin-bottom: 45px;
}
.sidebar .sidebar-search .sidebar-search-ere {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 20px;
  background-color: #1e202b;
  z-index: 10;
  padding: 15px;
  transition: 0.2s;
  opacity: 0;
  pointer-events: none;
}
.sidebar .sidebar-search .sidebar-search-ere.is-visible {
  opacity: 1;
  pointer-events: all;
}
.sidebar .sidebar-search .sidebar-search-ere .sidebar-search-ere-close {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
  color: #99caff;
  font-size: 14px;
  line-height: 14px;
  font-weight: 700;
  border-bottom: 1px solid #2d3245;
  padding: 0 3px 10px 3px;
}
.sidebar .sidebar-search .sidebar-search-ere .sidebar-search-ere-close img {
  width: 10px;
  height: auto;
}
.sidebar .sidebar-search .sidebar-search-ere .sidebar-search-ere-close:hover {
  opacity: 0.6;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-title {
  padding: 10px 3px;
  font-weight: 500;
  color: #85888f;
  border-bottom: 1px solid #2d3245;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-title img {
  width: 12px;
  height: auto;
  transition: 0.3s;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-title:hover {
  color: #d8ddf0;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-periodi {
  padding-left: 25px;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: 0.3s;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-periodi .periodo {
  padding: 10px 3px;
  font-weight: 500;
  color: #d8ddf0;
  border-bottom: 1px solid #2d3245;
  cursor: pointer;
  transition: 0.3s;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-periodi .periodo:hover {
  color: #fff;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper.is-open .era-title {
  border-bottom: 1px solid #99caff;
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper.is-open .era-title img {
  transform: rotate(180deg);
}
.sidebar .sidebar-search .sidebar-search-ere .era-wrapper.is-open .era-periodi {
  max-height: 300px;
  overflow: visible;
  pointer-events: all;
}
.sidebar .sidebar-filters {
  margin-bottom: 50px;
  transition: 0.3s;
}
.sidebar .sidebar-altri-strumenti {
  transition: 0.2s;
}
.sidebar .sidebar-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background-color: #99caff;
  border-radius: 0 0 0 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.sidebar .sidebar-toggle img {
  width: 25px;
  height: 25px;
  transition: 0.3s;
}
.sidebar .sidebar-toggle:hover img {
  opacity: 0.6;
}
.sidebar .sidebar-hub-logo {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 75px;
  transition: 0.3s;
}
#zoomTool {
  width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  margin: auto;
  bottom: 40px;
  left: 0;
  right: 0;
  z-index: 20;
  background-color: #1e202b;
  border-radius: 999px;
  padding: 0 5px;
}
#zoomTool img {
  width: auto;
  height: 50px;
}
#zoomTool .zoom-dots {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
#zoomTool .zoom-dots .zoom-dot {
  width: 50px;
  height: 50px;
  position: relative;
}
#zoomTool .zoom-dots .zoom-dot:after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: #99caff;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transition: 0.2s;
}
#zoomTool .zoom-dots .zoom-dot:hover {
  opacity: 1;
}
#zoomTool .zoom-dots .zoom-dot:hover:after {
  width: 14px;
  height: 14px;
}
#zoomTool .zoom-dots .zoom-dot.is-active:after {
  width: 32px;
  height: 32px;
  background: #99caff url('../img/icon-slide.svg') no-repeat center center;
  background-size: cover;
}
#zoomTool .zoom-dots:before {
  content: '';
  width: calc(100% - 50px);
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #99caff;
  pointer-events: none;
}
#toolTip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  z-index: 22;
  background-color: #1e202b;
  color: #fff;
  border-radius: 999px;
  padding: 3px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%);
  max-width: 300px;
  width: 100%;
}
#toolTip .event-tooltip-immagine {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border-width: 3px;
  border-style: solid;
  background: #000 no-repeat center center;
  background-size: cover;
}
#toolTip .event-tooltip-info {
  width: calc(100% - 60px);
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
}
#toolTip .event-tooltip-info .event-tooltip-date {
  font-size: 18px;
  line-height: 18px;
}
#toolTip:after {
  content: '';
  width: 0px;
  height: 0px;
  border-style: solid;
  border-width: 0 7px 12px 7px;
  border-color: transparent transparent #1e202b transparent;
  transform: rotate(180deg);
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  bottom: -12px;
  pointer-events: none;
}
#toolTip.is-visible {
  opacity: 1;
}
/* MODALE DETTAGLIO */
#modal_detail_container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: 0.6s;
  opacity: 0;
  visibility: hidden;
}
#modal_detail_container.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
#modal_detail_container.is-visible #modal_detail_window {
  opacity: 1;
  transform: translate(0, 0);
}
#modal_detail_container #modal_detail_window {
  background: #fff;
  color: #1e202b;
  width: 100%;
  max-width: 768px;
  height: 100vh;
  overflow: hidden;
  transform: translate(0, -20px);
  opacity: 0;
  transition: opacity 0s 0s, transform 0.3s 0s;
  padding: 85px 45px 45px 45px;
}
#modal_detail_container #modal_detail_window ::-webkit-scrollbar {
  width: 10px;
}
#modal_detail_container #modal_detail_window ::-webkit-scrollbar-thumb {
  background: #2d3245;
  border-radius: 999px;
}
#modal_detail_container #modal_detail_content {
  overflow-y: auto;
  max-height: calc( 100vh - 130px);
}
#modal_detail_container #modal_detail_content .event-detail {
  padding-right: 25px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-date {
  font-size: 25px;
  line-height: 25px;
  margin-bottom: 5px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-description {
  margin-bottom: 25px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-immagine {
  max-height: 500px;
  margin: 0 auto 10px auto;
  width: auto;
  display: block;
  cursor: pointer;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-didascalia {
  font-size: 16px;
  line-height: 16px;
  margin-bottom: 25px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-geolocalizzazione {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 25px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-geolocalizzazione iframe {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-resource {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 16px;
  margin-bottom: 15px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-resource img {
  width: 35px;
  height: auto;
  margin-right: 15px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-resource svg {
  width: 35px;
  height: auto;
  margin-right: 15px;
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-resource span {
  width: calc(100% - 50px);
}
#modal_detail_container #modal_detail_content .event-detail .event-detail-resource:hover {
  text-decoration: underline;
}
#modal_detail_container #modal_detail_close {
  width: 20px;
  height: 20px;
  position: absolute;
  margin: auto;
  top: 45px;
  right: 45px;
  cursor: pointer;
}
#modal_detail_container #modal_detail_close:hover {
  opacity: 0.6;
}
/* MODALE RICERCA */
#modal_search_container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: 0.6s;
  opacity: 0;
  visibility: hidden;
}
#modal_search_container.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
#modal_search_container.is-visible #modal_search_window {
  opacity: 1;
  transform: translate(0, 0);
}
#modal_search_container #modal_search_window {
  background: #fff;
  color: #1e202b;
  width: 100%;
  max-width: 768px;
  height: 100vh;
  overflow: hidden;
  transform: translate(0, -20px);
  opacity: 0;
  transition: opacity 0s 0s, transform 0.3s 0s;
  padding: 85px 45px 45px 45px;
}
#modal_search_container #modal_search_window ::-webkit-scrollbar {
  width: 10px;
}
#modal_search_container #modal_search_window ::-webkit-scrollbar-thumb {
  background: #2d3245;
  border-radius: 999px;
}
#modal_search_container #modal_search_content {
  overflow-y: auto;
  max-height: calc( 100vh - 130px);
}
#modal_search_container #modal_search_content h1 {
  font-weight: 400;
}
#modal_search_container #modal_search_content h1:after {
  display: none;
}
#modal_search_container #modal_search_content .event-search {
  padding: 20px 0;
  border-top: 1px solid #d8ddf0;
  width: calc(100% - 25px);
  cursor: pointer;
  transition: 0.2s;
}
#modal_search_container #modal_search_content .event-search:hover {
  color: #2d3245;
}
#modal_search_container #modal_search_close {
  width: 20px;
  height: 20px;
  position: absolute;
  margin: auto;
  top: 45px;
  right: 45px;
  cursor: pointer;
}
#modal_search_container #modal_search_close:hover {
  opacity: 0.6;
}
/* MODALE ZOOM IMMAGINE */
#modal_zoom_container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: 0.6s;
  opacity: 0;
  visibility: hidden;
}
#modal_zoom_container.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
#modal_zoom_container.is-visible #modal_zoom_window {
  opacity: 1;
  transform: translate(0, 0);
}
#modal_zoom_container #modal_zoom_window {
  color: #fff;
  background: #1e202b;
  width: 100%;
  max-width: 1280px;
  height: 100vh;
  overflow: hidden;
  transform: translate(0, -20px);
  opacity: 0;
  transition: opacity 0s 0s, transform 0.3s 0s;
  padding: 60px 25px 25px 25px;
}
#modal_zoom_container #modal_zoom_window ::-webkit-scrollbar {
  width: 10px;
}
#modal_zoom_container #modal_zoom_window ::-webkit-scrollbar-thumb {
  background: #99caff;
  border-radius: 999px;
}
#modal_zoom_container #modal_zoom_content {
  overflow-y: auto;
  max-height: calc( 100vh - 90px);
}
#modal_zoom_container #modal_zoom_content h1:after {
  display: none;
}
#modal_zoom_container #modal_zoom_content .zoom-image-immagine {
  display: block;
  margin: auto;
  max-width: 100%;
  max-height: 1024px;
  margin-bottom: 15px;
}
#modal_zoom_container #modal_zoom_content .zoom-image-didascalia {
  color: #fff;
}
#modal_zoom_container #modal_zoom_close {
  width: 20px;
  height: 20px;
  position: absolute;
  margin: auto;
  top: 20px;
  right: 20px;
  cursor: pointer;
}
#modal_zoom_container #modal_zoom_close:hover {
  opacity: 0.6;
}
/* ALERT */
.alert-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  transition: 0.6s;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
.alert-container.is-visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s 0s, visibility 0s 0s;
}
.alert-container.is-visible .alert {
  opacity: 1;
  transform: translate(0, 0);
}
.alert-container .alert {
  border-radius: 4px;
  background: #fff;
  width: 100vw;
  max-width: 300px;
  max-height: 100vh;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  text-align: center;
  transform: translate(0, -20px);
  opacity: 0;
  transition: opacity 0s 0s, transform 0.3s 0s;
}
.alert-container .alert .alert-title {
  font-size: 3rem;
}
.alert-container .alert .alert-content {
  padding: 25px 25px 0px 25px;
}
.alert-container .alert .alert-footer {
  display: flex;
  align-items: center;
  padding: 15px 15px 25px 15px;
  justify-content: center;
}
.alert-container .alert .btn {
  border: 1px solid #fff;
  background-color: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
  width: auto;
}
.alert-container .alert .btn:hover {
  background-color: #fff !important;
  color: #fff !important;
  border-color: #fff !important;
  opacity: 1;
}
.alert-container .alert .btn + .btn {
  margin-left: 8px;
}
.alert-container .alert.alert-success {
  background-color: #46c9ab;
  color: #fff;
}
.alert-container .alert.alert-success .btn:hover {
  color: #46c9ab !important;
}
.alert-container .alert.alert-error {
  background-color: #c92100;
  color: #fff;
}
.alert-container .alert.alert-error .btn:hover {
  color: #c92100 !important;
}
input {
  appearance: none;
  width: 100%;
  padding: 8px 15px;
  border-radius: 999px;
  background-color: #1e202b;
  color: #d8ddf0;
  border: none;
  font-size: inherit;
  line-height: inherit;
}
input:focus {
  outline: 1px solid #99caff;
}
@media (min-width: 1921px) {
  .timeline.zoom-1 {
    width: 100% !important;
  }
  .timeline.zoom-1 .y-col:nth-child(50n + 50) {
    width: auto !important;
    flex: 1;
  }
}
@media (max-height: 768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }
  .sidebar {
    padding: 125px 25px 25px 25px;
  }
  .timeline-wrapper {
    height: auto;
  }
  .timeline .y-col {
    height: auto;
  }
  .sidebar {
    height: 100vh;
  }
  #toolTip {
    display: none;
  }
}
@media (max-height: 720px) {
  .sidebar .sidebar-search {
    margin-bottom: 25px;
  }
  .sidebar .sidebar-search #searchYearWrapper {
    margin-bottom: 15px;
  }
  .sidebar .sidebar-filters {
    margin-bottom: 25px;
  }
}
@media (max-height: 475px) {
  body {
    font-size: 16px;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.sidebar-hidden .sidebar {
    left: calc(-100% + 35px);
  }
  body.sidebar-hidden .sidebar .sidebar-hub-logo {
    left: calc(100% - 27px);
    width: 25px;
    bottom: 5px;
  }
  body.sidebar-hidden .timeline {
    padding: 0 50px 0 75px;
  }
  h1 {
    font-size: 30px;
    line-height: 30px;
  }
  .timeline-wrapper {
    height: auto;
  }
  .timeline {
    padding: 0 50px 0 75px;
    background: linear-gradient(180deg, #d8ddf0 35px, #fff 36px, #fff 100%);
  }
  .timeline .y-col {
    height: auto;
  }
  .timeline .y-col .y-col-header {
    height: 35px;
    font-size: 16px !important;
    line-height: 16px !important;
  }
  .timeline .y-col .y-col-header span {
    height: 16px;
  }
  .timeline .y-col .y-col-header span small {
    font-size: 12px !important;
    line-height: 12px !important;
  }
  .timeline.zoom-3 .event .event-title {
    font-size: 12px;
    line-height: 11px;
  }
  .timeline.zoom-1 .event.event-range {
    width: 8px !important;
  }
  .timeline.zoom-1 .event .event-image {
    border-width: 4px;
  }
  .sidebar {
    width: 100%;
    height: 100vh;
    padding: 50px 20px 25px 20px;
    z-index: 30;
  }
  .sidebar .sidebar-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .sidebar .sidebar-search .sidebar-input {
    margin-bottom: 0;
  }
  .sidebar .sidebar-search #searchYearWrapper {
    margin-bottom: 0;
  }
  .sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-title {
    padding: 5px 3px;
  }
  .sidebar .sidebar-search .sidebar-search-ere .era-wrapper .era-periodi .periodo {
    padding: 5px 3px;
  }
  .sidebar .sidebar-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }
  .sidebar .sidebar-filters .btn {
    height: 40px;
    margin-bottom: 0;
  }
  .sidebar .sidebar-altri-strumenti {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
  }
  .sidebar .sidebar-altri-strumenti h2 {
    width: 100%;
    margin-bottom: 0;
  }
  .sidebar .sidebar-altri-strumenti .btn {
    width: calc(33.3333% - 7px);
  }
  .sidebar .sidebar-toggle {
    width: 30px;
    height: 35px;
    border-radius: 0 0 0 10px;
    padding-left: 5px;
  }
  .sidebar .sidebar-toggle img {
    width: 17px;
    height: 17px;
  }
  .sidebar .sidebar-hub-logo {
    width: 50px;
  }
  #zoomTool {
    width: 250px;
    bottom: 30px;
  }
  #zoomTool img {
    height: 40px;
  }
  #zoomTool .zoom-dots .zoom-dot {
    width: 40px;
    height: 40px;
  }
  #zoomTool .zoom-dots .zoom-dot#zoom-dot-4 {
    display: none;
  }
  #zoomTool .zoom-dots .zoom-dot.is-active:after {
    width: 25px;
    height: 25px;
  }
  input {
    line-height: 16px;
    height: 40px;
  }
  #modal_detail_container #modal_detail_window {
    max-width: 100%;
    padding: 50px 25px 25px 25px;
  }
  #modal_detail_container #modal_detail_window #modal_detail_content {
    max-height: calc(100vh - 75px);
  }
  #modal_detail_container #modal_detail_window #modal_detail_close {
    top: 15px;
    right: 20px;
  }
  #modal_search_container #modal_search_window {
    max-width: 100%;
    padding: 50px 25px 25px 25px;
  }
  #modal_search_container #modal_search_window #modal_search_content {
    max-height: calc(100vh - 75px);
  }
  #modal_search_container #modal_search_window #modal_search_content h1 {
    margin-bottom: 15px;
  }
  #modal_search_container #modal_search_window #modal_search_content .event-search {
    padding: 10px 0;
  }
  #modal_search_container #modal_search_window #modal_search_close {
    top: 15px;
    right: 20px;
  }
}
