html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Gestione classe faded per il body */
body.faded {
  opacity: 0.01;
  transition: opacity 0.6s ease-in-out;
}

body.faded.loaded {
  opacity: 1;
}

/* caroselli */
.splide {
  cursor: grab;
}

.splide:active {
  cursor: grabbing;
}

.imgs-carousel .splide__slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.imgs-carousel .splide__arrow {
  top: calc(100% + 50px);
  background-color: rgba(0, 0, 0, 0);
  opacity: 1;
  transition: all 0.2s ease;
}

.imgs-carousel .splide__arrow:hover {
  top: calc(100% + 50px);
  background-color: rgba(0, 0, 0, 0.05);
  opacity: 1;
}

.imgs-carousel .splide__arrow img {
  height: 1em;
  width: 1em;
}

.imgs-carousel .splide__arrow--next {
  right: calc(50% - 50px);
}

.imgs-carousel .splide__arrow--prev {
  left: calc(50% - 50px);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 80px;
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 200px;
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  margin: 0 auto;
  z-index: 1200;
  position: relative;
  /* margin-bottom: 75px; */
}

@media (max-width: 1120px) {
  .nav-bar {
    padding: 0 20px;
  }
}

.nav-bar .logo {
  height: 45px;
  transition: all 0.5s ease;
}

.nav-bar .menu-icon {
  stroke: #ffffff;
  transition: all 0.5s ease;
  cursor: pointer;
}

.nav-bar.colored .menu-icon {
  stroke: #092376;
}

.nav-bar.menu-open .menu-icon,
.nav-bar.menu-color-inverted .menu-icon {
  stroke: #ffffff;
}

.nav-bar .menu-line {
  opacity: 1;
  transition: all 0.5s ease;
}

.nav-bar.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(10px, -10px);
}

.nav-bar.menu-open .menu-line:nth-child(2) {
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.2s ease;
}

.nav-bar.menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(-12px, 0px);
}

.nav-bar-menu-overlay {
  position: fixed;
  top: 0;
  left: -110vw;
  width: 100vw;
  height: 100vh;
  background-color: #0e4169;
  transition: all 0.5s ease;
  z-index: 1100;
  pointer-events: none;
}

.nav-bar-menu-overlay.active {
  left: 0;
  pointer-events: all;
}

@media screen and (max-width: 767px) {
  .nav-bar {
    height: 135px;
  }
}


@media screen and (max-width: 1023px) {
  .nav-bar.colored.menu-open .logo {
    filter: brightness(0) invert(1);
  }
}

@media screen and (max-height: 700px) {
  .nav-bar-menu-overlay.active {
    height: 100vh;
    overflow: scroll;
    /* padding-top: 180px; */
  }
}

@media screen and (min-width: 1024px) {
  .nav-bar-menu-overlay.active {
    pointer-events: none;
    opacity: 0;
    display: none;
  }
}

@media screen and (max-height: 800px) {
  .sicilia-chiara {
    display: none;
  }
}
