/*
 Theme Name:   Hello Elementor Child
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

.overlay-menu {
  z-index: 9000 !important;
}

.custom-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 3px solid #3e3026;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s,
    height 0.3s,
    background-color 0.3s,
    transform 0.1s ease-out;
  z-index: 9999;
  left: -100px;
}

.brown {
  position: relative;
  height: 100%;
  width: 100%;
  background-color: #3e3026;
  opacity: 0;
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.brown.active {
  opacity: 0.8;
}

body.overlay-menu-open .custom-cursor {
  border-color: #cec1a8;
}

body.overlay-menu-open .brown {
  background-color: #cec1a8;
}

body.overlay-menu-open .brown.active {
  opacity: 0.8;
}

a.dialog-close-button.dialog-lightbox-close-button:focus-visible {
  outline: none;
}

.cont-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 3;
  background-color: white;
}

.logo img {
  height: 40px;
  width: auto !important;
  object-fit: cover;
}

.menu {
  position: relative;
  width: 28px;
  height: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: black;
  will-change: transform;
}

.menu-links a {
  color: white !important;
}

.carosello-home .swiper-slide-image {
  width: 100% !important;
  height: 80vh !important;
  object-fit: cover !important;
}

.img-loadingDesktop img {
  opacity: 0;
  transform: translateY(60vh);
  animation: slideUpZoomDesktop 3s ease-out forwards;
  object-fit: cover;
  width: 600px;
  aspect-ratio: 3 / 2;
  transform-origin: center center;
}

.img-loadingMobile img {
  opacity: 0;
  transform: translateY(60vh);
  animation: slideUpZoomMobile 3s ease-out forwards;
  object-fit: cover;
  width: 45vw;
  transform-origin: center center;
}

@keyframes slideUpZoomDesktop {
  0% {
    opacity: 0;
    transform: translateY(60vh) scale(1);
  }

  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  40% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0)
      scale(max(calc(100vw / 600px), calc(100vh / 400px)));
  }
}

@keyframes slideUpZoomMobile {
  0% {
    opacity: 0;
    transform: translateY(60vh) scale(1);
  }

  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  40% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0)
      scale(max(calc(100vw / 45vw), calc(100vh / (45vw * (1485 / 990)))));
  }
}

.splash-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -50%);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: revealText 1.5s ease-out forwards;
  animation-delay: 2s;
  white-space: nowrap;
}

@keyframes revealText {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translate(-60%, -50%);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translate(-50%, -50%);
  }
}

.reviews .elementor-main-swiper {
  padding-bottom: 0 !important;
}

.reviews .elementor-testimonial {
  max-width: 50%;
}

.reviews .swiper-slide {
  text-align: center;
  display: flex;
  justify-content: center;
}

.reviews .elementor-testimonial__header {
  justify-content: center;
  padding: 0;
  margin-bottom: 10px;
}

.reviews .elementor-testimonial__content {
  padding: 0;
}

.reviews .elementor-testimonial__title {
  display: none;
}

.reviews .elementor-testimonial__icon {
  margin: 0;
}

.reviews .swiper-pagination {
  bottom: -40px !important;
}

.p-footer a,
.footer-legal a,
.footer-legal a:hover {
  color: white !important;
}

.p-contatti p {
  margin-bottom: 0;
}

.p-contatti a {
  color: black !important;
}

.carosello-centro .swiper-slide-image {
  width: 100% !important;
  height: 65vh !important;
  object-fit: cover !important;
}

p {
  margin-bottom: 0 !important;
}

.cmplz-cookiebanner .cmplz-logo img {
  max-height: 30px !important;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description {
  padding-top: 0 !important;
}

.cmplz-cookiebanner .cmplz-message {
  margin-bottom: 15px !important;
}

#metodo-futura {
  scroll-margin-top: 90px;
}

@media screen and (min-width: 1961px) {
  a.dialog-close-button.dialog-lightbox-close-button {
    right: calc((100% - 1900px) / 2) !important;
  }
}

@media (pointer: coarse) {
  .custom-cursor,
  .brown {
    display: none !important;
    visibility: hidden !important;
    background-color: transparent !important;
  }
}

@media screen and (max-width: 1024px) {
  .custom-cursor,
  .brown {
    display: none !important;
    visibility: hidden !important;
    background-color: transparent !important;
  }

  .cont-header {
    height: 70px;
  }

  .logo img {
    height: 30px;
  }

  .menu {
    width: 20px;
    height: 16px;
  }

  .reviews .elementor-testimonial {
    max-width: 80%;
  }

  .elementor-star-rating {
    font-size: 25px !important;
  }

  .elementor-star-rating i:not(:last-of-type) {
    margin-inline-end: 4px !important;
  }

  .carosello-home .swiper-slide-image,
  .carosello-centro .swiper-slide-image {
    height: 60vh !important;
  }

  #metodo-futura {
    scroll-margin-top: 70px;
  }
}

@media screen and (max-width: 768px) {
  .cmplz-cookiebanner {
    width: 90% !important;
    max-width: 400px !important;
    right: 10px !important;
    bottom: 10px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    margin: 0 auto !important;
  }

  .cmplz-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
  }

  .cmplz-buttons .cmplz-btn {
    flex: 1 !important;
    margin: 0 !important;
  }

  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
    font-size: 12px !important;
  }

  .cmplz-cookiebanner .cmplz-message {
    margin-bottom: 10px !important;
  }
}

@media screen and (max-width: 767px) {
  * {
    --cmplz_text_font_size: 12px !important;
    --cmplz_category_header_title_font_size: 12px !important;
  }

  .elementor-star-rating {
    font-size: 20px !important;
  }

  .elementor-star-rating i:not(:last-of-type) {
    margin-inline-end: 3px !important;
  }

  .carosello-home .swiper-slide-image,
  .carosello-centro .swiper-slide-image {
    height: 45vh !important;
  }
}
