/*
- VARIABILI
- GENERAL
- FONTS
- STILI CUSTOM
    - SLIDER
    - BUTTONS
- HEADER
    - HAMBURGER
    - SUB MENU
    - OVERLAY
- PRELOADER

- PATTERNS
    - HERO MOBILE
    - SLIDER INTERVENTI

- LOOP LAVORI

*/


/** -------------------------------------------------------------------------------- */
/* // ! VARIABILI */
/** -------------------------------------------------------------------------------- */
:root{
    --transition: all 0.3s;
    --transition-cubic: all 0.5s cubic-bezier(0.59, 0.03, 0.2, 1);

    --font-nexa: var(--wp--preset--font-family--nexa-rust-slab);
    --font-calder: var(--wp--preset--font-family--calder-dark);
}
  
  
  
/** -------------------------------------------------------------------------------- */
/* // ! GENERAL */
/** -------------------------------------------------------------------------------- */



/** -------------------------------------------------------------------------------- */
/* // ! FONTS */
/** -------------------------------------------------------------------------------- */
.has-titolo-grande-font-size,
.has-titolo-medio-font-size,
.has-titolo-piccolo-font-size,
.has-titolo-giant-font-size{
  line-height: 0.9;
  font-weight: 800;
  font-family: var(--font-nexa);
}
.has-paragrafo-grande-font-size{
  font-family: var(--font-calder);
  line-height: 1;
}
  
  
/** -------------------------------------------------------------------------------- */
/* // ! STILI CUSTOM */
/** -------------------------------------------------------------------------------- */  
/*? -------------------------------------------------------------------------------- */
/*? SLIDER */
/*? -------------------------------------------------------------------------------- */
/* bullets */
.container-paginazione-slider{
      height: 60px;
}
.swiper-pagination-bullet{
  background: currentColor !important;
}
  
/* freccie */
.swiper-button-next:after,
.swiper-button-prev:after{
  display: none;
}
.swiper-button-next .material-symbols-outlined,
.swiper-button-prev .material-symbols-outlined{
  color: var(--wp--preset--color--custom-nero);
  font-size: 40px;
}

/* freccie bianche */
.wp-block-query.is-style-freccie-bianche .material-symbols-outlined{
  color: var(--wp--preset--color--custom-bianco) !important;
}
  



/*? -------------------------------------------------------------------------------- */
/*? BUTTONS */
/*? -------------------------------------------------------------------------------- */
.wp-block-button__link:hover{
  color: var(--wp--preset--color--custom-nero);
}






  
  
/** -------------------------------------------------------------------------------- */
/* // ! HEADER */
/** -------------------------------------------------------------------------------- */
header{
    position: fixed;
    width: 100%;
    z-index: 99;
    transition: var(--transition);
}
.scrollato header{
  background-color: var(--wp--preset--color--custom-nero);
  box-shadow: 0px 0px 30px #00000030;
}
  
  
  
/*? -------------------------------------------------------------------------------- */
/*? HAMBURGER */
/*? -------------------------------------------------------------------------------- */
/* btn hamburger */
.hamburger-mobile{
  text-align: center;
  margin: 0 !important;
}
.btn-menu {
  z-index: 34;
  background: transparent;
  min-height: 22px;
  padding-left: 0;
  padding-right: 0;
  border: none;
  color: inherit;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
}
.menu-open .btn-menu,
.scrollato .btn-menu{
  background-color: transparent;
}
  
.btn-menu__bars {
  display: block !important;
  background: currentColor;
  position: relative;
  width: 30px;
  height: 2px;
  transition: 0.3s;
}
  
  
.btn-menu__bars:before{
  content: "";
  background: currentColor;
  display: block;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
  
  
.btn-menu__bars:after {
  content: "";
  background: currentColor;
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}
  
  
.btn-menu__bars:before {
  transform: translate(0, -8px);
}
  
.btn-menu__bars:after {
  transform: translate(0, 8px);
}
  
/* menu open */
.menu-open .btn-menu .btn-menu__bars {
  background-color: transparent;
}
.menu-open .btn-menu__bars:before {
  background-color: currentColor;
  transform: rotate(45deg);
  right: 0;
  width: 100%;
}

.menu-open .btn-menu__bars:after {
  background-color: currentColor;
  transform: rotate(-45deg);
  width: 100%;
}
  




/*? -------------------------------------------------------------------------------- */
/*? VOCI E SUB MENU */
/*? -------------------------------------------------------------------------------- */
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione ul.menu{
  margin: 0;
  font-family: var(--wp--preset--font-family--nexa-rust-slab);
  gap: 20px;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione ul.menu > li{
  padding: 20px 0px;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione ul.menu > li > a{
  transition: all 0.25s;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children{
  position: relative; 
  display: flex;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children .sub-menu{
  display: block;
  position: absolute;
  top: 60px;
  opacity:1;
  transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
  opacity:0;
  visibility:hidden;
  background-color: var(--wp--preset--color--custom-uno);
  width: max-content;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children:not(.overlay-menu .menu-item-has-children):hover .sub-menu{
  opacity:1;
  visibility:visible;
  top:60px;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children .sub-menu > li{
  padding: 10px;
  border-bottom: 1px solid var(--wp--preset--color--custom-nero);
  transition: all 0.3s;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children .sub-menu > li:hover{
  background-color: var(--wp--preset--color--custom-quattro) !important;
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children .sub-menu > li > a{
  color: var(--wp--preset--color--custom-nero);
}
.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione .menu-item-has-children > a{
  gap: 0px;
}

.header-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione{
  text-transform: uppercase;
}

.header-menu .freccia-sub-menu{
  position: relative;
  top: -1px;
}


  
/*? -------------------------------------------------------------------------------- */
/*? OVERLAY */
/*? -------------------------------------------------------------------------------- */
.overlay-menu:not(.editor-styles-wrapper .overlay-menu) {
  position: fixed;
  width: 100%;
  z-index: -1;
  transform: translateY(-110%);
  transition: all 0.8s cubic-bezier(0.59, 0.03, 0.2, 1);
  top: 0;
}
  
.menu-open .overlay-menu{
  transform: translateY(0%) !important;
}

.overlay-menu ul.menu{
  gap: 5px;
}
.overlay-menu ul.menu > li{
  /* padding: 0 !important; */
  font-size: clamp(18px, 4vw, 22px);
}
.overlay-menu ul.menu > li > a{
  flex-direction: row;
  align-items: center;
}
.overlay-menu ul.menu > li.menu-item-has-children .sub-menu > li > a{
  font-size: 16px;
  margin-bottom: 3px;
}
.overlay-menu .freccia-sub-menu{
  position: relative;
  top:2px;
}


/* altezza massima */
.overlay-menu .wp-block-create-block-ggwd-block-gutenberg-menu-navigazione{
  max-height: 74vh;
  overflow: auto;
  padding-bottom: 40px;
}



/** -------------------------------------------------------------------------------- */
/* // ! PRELOADER */
/** -------------------------------------------------------------------------------- */
#preloader .preloader-inner{
  flex-direction: column;
  gap: 20px;
  justify-content: center;
  }
    
.loader {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--wp--preset--color--custom-uno);
  box-shadow: 32px 0 var(--wp--preset--color--custom-uno), -32px 0 var(--wp--preset--color--custom-uno);
  position: relative;
  animation: flash 1s ease-out infinite alternate;
  margin: 20px 0px;
}
    
@keyframes flash {
  0% {
  background-color: #ffffff20;
  box-shadow: 32px 0 #ffffff20, -32px 0 var(--wp--preset--color--custom-uno);
  }
  50% {
  background-color: var(--wp--preset--color--custom-uno);
  box-shadow: 32px 0 #ffffff20, -32px 0 #ffffff20;
  }
  100% {
  background-color: #ffffff20;
  box-shadow: 32px 0 var(--wp--preset--color--custom-uno), -32px 0 #ffffff20;
  }
}






/** -------------------------------------------------------------------------------- */
/* // PATTERNS */
/** -------------------------------------------------------------------------------- */
/*? -------------------------------------------------------------------------------- */
/*? HERO MOBILE */
/*? -------------------------------------------------------------------------------- */
@media(max-width:781px){
  .hero-mobile {
    min-height: 0px;
    margin-top: -40vw;
  }

  .hero-mobile .wp-block-cover__image-background {
    display: none;
  }
}





/*? -------------------------------------------------------------------------------- */
/*? HERO INTERVENTI */
/*? -------------------------------------------------------------------------------- */
.interventi-home .wp-block-cover:not(#page-id-390.wp-block-cover, #page-id-446.wp-block-cover, #page-id-454.wp-block-cover){
  display: none !important;
}








/** -------------------------------------------------------------------------------- */
/* // LOOP LAVORI */
/** -------------------------------------------------------------------------------- */
.loop-lavori__filters .cvp-live-filter{
  display: flex !important;
  justify-content: center !important;
  flex-direction: column !important;
  max-width: 200px !important;
  margin: 0 auto 40px auto !important;
}
.loop-lavori__filters .cvp-label{
  text-align: center;
  margin: 0 !important;
}












