/*
----------------------------
# TIPOGRAFIA
# SPAZI
# HEADER
# HOVERS
# FORMIDABLE
# FOOTER
# MW STYLE
----------------------------
*/

/*
---------------------------------------------------------------------------------------
# TIPOGRAFIA 
---------------------------------------------------------------------------------------
*/




.has-m-font-size,
.has-l-font-size,
.has-xl-font-size,
.has-xxl-font-size {
  letter-spacing: 0em;
  line-height: 1em;
}


/*
---------------------------------------------------------------------------------------
# SPAZI 
---------------------------------------------------------------------------------------
*/

@media (max-width: 781px) {
  :root {
    --wp--preset--spacing--20: min(2.1rem, 5.6vw);
    --wp--preset--spacing--30: min(3.5rem, 8.4vw);
    --wp--preset--spacing--40: min(9.8rem, 14vw);
    --wp--preset--spacing--50: min(14rem, 16.8vw);
    --wp--preset--spacing--60: min(19.6rem, 21vw);
  }
}


.mw-350 {
  max-width: 350px;
}

.mw-700 {
  max-width: 700px;
}

.mw-1024 {
  max-width: 1024px;
}

.mw-1080 {
  max-width: 1080px;
}


/*
---------------------------------------------------------------------------------------
# HEADER
---------------------------------------------------------------------------------------
*/

:root {
  --header-transition-time: 0.7s;
}

/* spazio per admin bar se utente loggato */
body.logged-in #header:not(.hidden) {
  top: 32px;
}

@media (max-width: 781px) {
  body.logged-in #header:not(.hidden) {
    top: 46px;
  }
}

#header {
  position: fixed;
  z-index: 99;
  top: 0px;
  width: calc(100% - var(--wp--style--root--padding-left) * 2);
  max-width: var(--wp--style--global--content-size);
  left: 50%;
  transform: translateX(-50%);
  
}
#header.wp-block-columns {
  padding:20px;
  background: var(--wp--preset--color--white);
  margin-top: 20px;
  border-radius: 10px;
}




#header p,
#header li.menu-item>a {
  font-size: 18px;
  color: var(--wp--preset--color--black);
  text-decoration: none;
}


#header li.menu-item:last-child {
  background-color: var(--wp--preset--color--primary);
  padding: 0.25em .5em;
  border-radius: 10px;
}

#header li.menu-item:last-child a {
  color: var(--wp--preset--color--white);
  padding: .25em .5em;
}

@media (max-width: 1080px) {
  #header .t99-menu li {
    overflow: hidden;
  }


  #header .t99-menu li a {
    opacity: 0;
    transform: translateY(2em);
    transition: transform .2s ease, opacity .2s ease;
    transition-delay: 0;
  }

  body.fs_menu_open #header .t99-menu li a {
    opacity: 1;
    transform: translateY(0);
    transition: transform .4s ease, opacity .6s ease;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(1) a {
    transition-delay: .1s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(2) a {
    transition-delay: .2s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(3) a {
    transition-delay: .3s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(4) a {
    transition-delay: .4s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(5) a {
    transition-delay: .5s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(6) a {
    transition-delay: .6s;
  }

  body.fs_menu_open #header .t99-menu li:nth-child(7) a {
    transition-delay: .7s;
  }


}


/*
---------------------------------------------------------------------------------------
# HOVERS
---------------------------------------------------------------------------------------
*/
:root {
  --hover-tranition-time: 0.7s;
}

#header li.menu-item>a {
  position: relative;
  width: fit-content;
}

#header li.menu-item>a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 0.05em;
  bottom: 0;
  left: 0;
  background: currentcolor;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

@media (min-width: 782px) {
  #header li.menu-item>a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
}

#header li>.active::after {
  transform: scaleX(1) !important;
  transform-origin: bottom left !important;
}


.hover_col {
  transition: background-color .5s ease, color .5s ease;
}
.hover_col:hover {
  background-color: var(--wp--preset--color--secondary) !important;
  color: var(--wp--preset--color--white)!important;
}

@media (max-width:1080px) {
	

  ul.t99-menu {
	  gap: 7vh;
	  width: 100dvw;
	  left: calc(var(--wp--style--root--padding-left) * -1);
	  display: flex;
	  justify-content: center;
	  align-items: center;
	  transition: clip-path .4s ease;
	  opacity: 1 !important;
	  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
	  margin-top: -20px
  }


  .t99-menu>li {
    width: fit-content;
  }

  #header .wp-block-site-logo{
    z-index: 12;
	position: relative
  }

  #header li.menu-item>a {
    font-size: 35px;
    letter-spacing: 0.1em;
    font-weight: normal;
	text-align: center;
	line-height: 1.2em  
  }


  body.fs_menu_open ul.t99-menu {
    transition: clip-path .8s ease;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}


.wp-block-buttons .wp-block-button__link {
  transition: background-color .4s ease, color .4s ease;
}

.wp-block-buttons .wp-block-button.is-style-back-button .wp-block-button__link {
  transition: none;
}

.wp-block-buttons:hover .wp-block-button__link {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}

/*
---------------------------------------------------------------------------------------
# FORMIDABLE
---------------------------------------------------------------------------------------
*/

.frm_forms fieldset {
  all: unset;
  display: block;
  width: 100%;
}

.frm_form_fields * {
    letter-spacing: 0.05em;
}

.frm_forms .frm_fields_container {
  grid-gap: 20px;
}

.frm_forms .frm_fields_container input,
.frm_forms .frm_fields_container select,
.frm_forms .frm_fields_container textarea {
  width: 100%;
  font-family: var(--wp--preset--font-family--neue-montreal);
  font-size: 1rem;
  color: var(--wp--preset--color--black);
  border: 0px;
  border-radius: 0px;
  border-bottom: 1px solid var(--wp--preset--color--black);
  padding-block: 1em;
  resize: none;
  padding: 0.25rem;
  background: transparent;

}

.frm_forms .frm_fields_container input:focus-visible,
.frm_forms .frm_fields_container select:focus-visible,
.frm_forms .frm_fields_container textarea:focus-visible {
  outline: 1px solid var(--wp--preset--color--black);
}

.frm_button_submit {
  all: unset;
  background: var(--wp--preset--color--black);
  color: var(--wp--preset--color--white);
  font-size: 1rem;
  text-transform: uppercase;
  padding: .7rem 2rem;
  border-radius: 5rem;
  cursor: pointer;
}

.frm_forms label a {
  text-decoration: underline;
}

.frm_forms *::placeholder {
  color: var(--wp--preset--color--black);
  opacity: .8;
}

.frm_forms input[type="checkbox"] {
  border: none;
  appearance: none;
  display: inline;
  cursor: pointer;
}

.frm_forms label {
  font-size: 14px;
  display: block;
  line-height: 14px;
}

input[type="checkbox"]::after {
  content: " ";
  width: 22px;
  height: 22px;
  color: white;
  display: inline-block;
  border: 1px solid var(--wp--preset--color--black);
  border-radius: 100%;
  text-align: center;
  vertical-align: text-top;
}

input[type="checkbox"]:checked::after {
  content: "✔";
  background-color: black;

}




.frm_forms .frm_fields_container .frm_primary_label {
  display: none;
}


.frm_forms br,
.frm_forms p:empty,
.frm_forms p:has(> input) {
  display: none;
}


.frm_forms.bianco input, .frm_forms.bianco textarea {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.frm_forms.bianco input::placeholder, .frm_forms.bianco textarea::placeholder
{
    color: #fff;
}

.frm_forms.bianco button.frm_button_submit.frm_final_submit {
    background: #fff;
    color: #000;
transition: all .3s ease, color .3s ease;
}

.frm_forms.bianco button.frm_button_submit.frm_final_submit:hover {
    background: #000;
    color: #fff;
}
footer {
    display: none !important;
}


#questionario .frm_forms .frm_rootline_single input {
    background: white;
	color: var(--wp--preset--color--primary);
	transition: color .4s ease, background .4s ease
}
#questionario .frm_forms .frm_rootline_single input:hover {
    color: white;
	background: var(--wp--preset--color--primary)
}

#questionario .frm_forms .frm_rootline_single input.frm_page_back {
	color: white !important;
	background: var(--wp--preset--color--primary) !important
}

#questionario .frm_forms  .frm_opt_container {
	margin-left: 4px
}

/*
---------------------------------------------------------------------------------------
# FOOTER
---------------------------------------------------------------------------------------
*/


footer a {
  text-decoration: underline;
}

@media (max-width:781px) {
  footer p {
    text-align: center !important;
  }
}


/*
---------------------------------------------------------------------------------------
# MW STYLE
---------------------------------------------------------------------------------------
*/
.no-wrap {
	white-space: nowrap;
}

.position_relative {
  position: relative;
}

.aspect_ratio_6_7 {
  aspect-ratio: 6 / 7;
}

.aspect_ratio_6_7 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width:782px) {
  .is-style-left-padded {
    padding-left: 26%;
  }

  .is-style-right-padded {
    padding-right: 26%;
  }

  .is-style-inline-padded {
    padding-inline: 20%;
  }

  .is-style-right-padded-small {
    padding-right: var(--wp--preset--spacing--50);
  }

  .is-style-left-padded-small {
    padding-left: var(--wp--preset--spacing--50);
  }

  .is-style-inline-padded-small {
    padding-inline: var(--wp--preset--spacing--50);
  }


  .middle_line {
    position: relative;

  }

  .middle_line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background-color: var(--wp--preset--color--white);
  }

}

@media (max-width:781px) {
  .wp-block-spacer.desk_vertical_empty_space.is-style-desk-only {
    display: none;
  }
}

.split_line {
  overflow: hidden;
}


.wp-block-column:has(.loop_video) {
  position: relative;
}