/*
----------------------------
# TIPOGRAFIA
# SPAZI
# HEADER
# FS MENU
# HOVERS
# FOOTER
# CASALI STYLES
# BUTTONS
# PARVUS LIGHTBOX
# FORMIDABLE
# ACCORDION
# BREADCRUMBS
# SEARCH MODAL WINDOW
# RISULTATI RICERCA
# MOUSE POINTER
----------------------------
*/

/* add right padding to body and header when scrollbar hides (overflow hidden / scroll paused) */
body.fs_menu_open,
body.lightbox__open {
  padding-right: var(--scrollbar-width);
}

header.site-header>.wp-block-columns {
  box-sizing: content-box;
}

body.fs_menu_open header.site-header>.wp-block-columns {
  padding-right: var(--scrollbar-width);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: normal;
  font-size: unset;
}

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

.has-l-font-size,
.has-xl-font-size,
.has-xxl-font-size {
  line-height: 0.9em;
}

@media (max-width: 781px) {

  .has-l-font-size,
  .has-xl-font-size,
  .has-xxl-font-size {
    line-height: 1.05em;
  }
}

.has-l-font-size,
.has-xl-font-size,
.has-xxl-font-size {
  font-family: var(--wp--preset--font-family--mezzano);
}

.text-uppercase {
  text-transform: uppercase !important;
}

.huge_text {
  font-size: calc(var(--wp--preset--font-size--xxl) * 1.2);
}

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

@media (max-width: 781px) {
  :root {
    --wp--preset--spacing--20: min(1.5rem, 4vw);
    --wp--preset--spacing--30: min(2.5rem, 6vw);
    --wp--preset--spacing--40: min(7rem, 14vw);
    --wp--preset--spacing--50: min(10rem, 17vw);
    --wp--preset--spacing--60: min(14rem, 22vw);
  }
}

.wp-block-create-block-t99-block-gutenberg-svg svg {
  width: 100%;
}

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

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

header.site-header {
  padding-right: var(--wp--style--root--padding-right);
  padding-left: var(--wp--style--root--padding-left);
  padding-block: 20px;
  position: fixed;
  width: 100%;

  z-index: 99;
  top: 0px;
  transition: background-color var(--header-transition-time) ease,
    padding-block var(--header-transition-time) ease;
}

header.site-header #wpml_switch {
  font-size: 15px;
  z-index: 10;
}

header.site-header #wpml_switch span {
  padding-inline: 0.1em;
  transition: color var(--header-transition-time) ease;
}

header.site-header svg#logo_casali_svg {
  width: 160px;
  position: relative;
  z-index: 10;
}

@media (max-width: 781px) {
  header.site-header svg#logo_casali_svg {
    width: 100px;
  }
}

header.site-header .wp-block-columns {
  margin: 0 auto;
  max-width: var(--wp--style--global--content-size);
}

/* WHITE HEADER ELEMENTS & SCROLL */
header.site-header.scrolled {
  padding-block: 10px;
  background-color: var(--wp--preset--color--white) !important;
  box-shadow: 0px 0px 3px 0px #d1d1d1;
}

header.site-header svg#logo_casali_svg * {
  transition: fill var(--header-transition-time) ease;
}

body.header_white header.site-header svg#logo_casali_svg * {
  fill: var(--wp--preset--color--white);
}

body header.site-header.scrolled svg#logo_casali_svg * {
  fill: var(--wp--preset--color--primary);
}

body.fs_menu_open header.site-header svg#logo_casali_svg * {
  fill: var(--wp--preset--color--white);
}

body.header_white header.site-header #wpml_switch span {
  color: var(--wp--preset--color--white);
}

header.site-header.scrolled #wpml_switch span {
  color: var(--wp--preset--color--primary) !important;
}

body.fs_menu_open header.site-header #wpml_switch span {
  color: var(--wp--preset--color--white) !important;
}

#hamburger_icon {
  width: 40px;
  height: 18px;
  margin-right: 0;
  position: relative;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 21;
}

#hamburger_icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--wp--preset--color--primary);
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  transition: all 0.25s ease-in-out;
}

#hamburger_icon span:nth-child(1) {
  top: 0px;
}

#hamburger_icon span:nth-child(2),
#hamburger_icon span:nth-child(3) {
  top: 8px;
}

#hamburger_icon span:nth-child(4) {
  top: 16px;
}

body.fs_menu_open #hamburger_icon span:nth-child(1) {
  top: 10px;
  width: 0%;
  left: 50%;
}

body.fs_menu_open #hamburger_icon span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

body.fs_menu_open #hamburger_icon span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

body.fs_menu_open #hamburger_icon span:nth-child(4) {
  top: 10px;
  width: 0%;
  left: 50%;
}

body.header_white header.site-header #hamburger_icon span {
  background: var(--wp--preset--color--white);
}

body.header_white header.site-header.scrolled #hamburger_icon span {
  background: var(--wp--preset--color--primary);
}

body.fs_menu_open header.site-header #hamburger_icon span {
  background: var(--wp--preset--color--white) !important;
}

/*
---------------------------------------------------------------------------------------
# FS MENU
---------------------------------------------------------------------------------------
*/

#fs_menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 9;
}

#fs_menu ul.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3vh;
}

#fs_menu .wp-block-create-block-t99-block-gutenberg-menu-navigazione {
  justify-content: center;
  flex-grow: 1;
}

#fs_menu .wp-block-columns {
  margin-top: auto;
}

#fs_menu ul.menu a {
  text-decoration: none;
  font-family: var(--wp--preset--font-family--mezzano);
  text-transform: uppercase;
}

@media (max-width: 781px) {
  #fs_menu p {
    font-size: 14px;
    margin-block-start: 0px;
  }

  #fs_menu .wp-block-columns .wp-block-column:nth-child(2) {
    display: none;
  }

  #fs_menu .wp-block-create-block-t99-block-gutenberg-menu-navigazione {
    justify-content: end;
  }

  #fs_menu hr {
    margin-top: var(--wp--preset--spacing--30) !important;
    margin-bottom: var(--wp--preset--spacing--30) !important;
  }
}

header.site-header #fs_menu ul.menu li {
  overflow: hidden;
}

body.fs_menu_open header.site-header #fs_menu ul.menu a {
  transform: translateY(0px);
}

header.site-header #fs_menu ul.menu li:nth-child(1) a {
  transition-delay: 0s;
}

header.site-header #fs_menu ul.menu li:nth-child(2) a {
  transition-delay: 0.05s;
}

header.site-header #fs_menu ul.menu li:nth-child(3) a {
  transition-delay: 0.1s;
}

header.site-header #fs_menu ul.menu li:nth-child(4) a {
  transition-delay: 0.15s;
}

header.site-header #fs_menu ul.menu li:nth-child(5) a {
  transition-delay: 0.2s;
}

header.site-header #fs_menu ul.menu li:nth-child(6) a {
  transition-delay: 0.25s;
}

header.site-header #fs_menu ul.menu li:nth-child(7) a {
  transition-delay: 0.3s;
}

/* ANIMAZIONI FS MENU IN OUT -> chiamate via js */

#fs_menu {
  clip-path: polygon(100% 0, 100% 100%, 100% 0, 100% 0, 0 0);
  pointer-events: none;
}

body.fs_menu_open #fs_menu {
  pointer-events: all;
}

@keyframes menu_in {
  0% {
    clip-path: polygon(100% 0, 100% 100%, 100% 0, 100% 0, 0 0);
  }

  50% {
    clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0 0, 0 0);
  }

  100% {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 100%, 0 0);
  }
}

@keyframes menu_out {
  0% {
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 100%, 0 0);
  }

  50% {
    clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0 0, 0 0);
  }

  100% {
    clip-path: polygon(100% 0, 100% 100%, 100% 0, 100% 0, 0 0);
  }
}

#fs_menu {
  --fs-menu-anim-time: 0.4s;
}

#fs_menu ul.menu li {
  transform: translateY(70%);
  opacity: 0;
  transition: opacity var(--fs-menu-anim-time) ease,
    transform var(--fs-menu-anim-time) ease;
  transition-delay: 0.3s;
}

#fs_menu .wp-block-separator {
  width: 0;
  transition: width var(--fs-menu-anim-time) ease;
  transition-delay: 0.3s;
}

#fs_menu .wp-block-column {
  transform: translateY(50%);
  opacity: 0;
  transition: opacity var(--fs-menu-anim-time) ease,
    transform var(--fs-menu-anim-time) ease;
  transition-delay: 0.3s;
}

body.fs_menu_open #fs_menu ul.menu li {
  transform: translateY(0);
  opacity: 1;
}

body.fs_menu_open #fs_menu ul.menu li:nth-child(1) {
  transition-delay: 0.2s;
}

body.fs_menu_open #fs_menu ul.menu li:nth-child(2) {
  transition-delay: 0.3s;
}

body.fs_menu_open #fs_menu ul.menu li:nth-child(3) {
  transition-delay: 0.4s;
}

body.fs_menu_open #fs_menu ul.menu li:nth-child(4) {
  transition-delay: 0.5s;
}

body.fs_menu_open #fs_menu ul.menu li:nth-child(5) {
  transition-delay: 0.6s;
}

body.fs_menu_open #fs_menu .wp-block-separator {
  width: 100%;
  transition-delay: 0.6s;
}

body.fs_menu_open #fs_menu .wp-block-column {
  transform: translateY(0);
  opacity: 1;
}

body.fs_menu_open #fs_menu .wp-block-column:nth-child(1) {
  transition-delay: 0.6s;
}

body.fs_menu_open #fs_menu .wp-block-column:nth-child(2) {
  transition-delay: 0.7s;
}

body.fs_menu_open #fs_menu .wp-block-column:nth-child(3) {
  transition-delay: 0.8s;
}

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

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

/*
---------------------------------------------------------------------------------------
# HOVERS
---------------------------------------------------------------------------------------
*/
@media (min-width: 782px) {
  :root {
    --hover-tranition-time: 0.7s;
  }

  .swiper-button-prev img,
  .swiper-button-next img {
    transition: transform var(--hover-tranition-time) ease;
  }

  .swiper-button-prev:hover img,
  .swiper-button-next:hover img {
    transform: scale(1.1);
  }

  .breadcrumbs_container a,
  #products_tax_tree a,
  #product_filters a {
    transition: color var(--hover-tranition-time) ease;
  }

  .breadcrumbs_container a:hover,
  #products_tax_tree a:hover,
  #product_filters a:hover {
    color: var(--wp--preset--color--primary) !important;
  }

  footer a,
  header .menu a,
  .link_section a {
    position: relative;
    width: fit-content;
  }

  footer a:not(.wp-block-button__link):not(.wp-block-create-block-t99-block-gutenberg-svg a)::after,
  header .menu a::after,
  .link_section 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;
  }

  footer a:not(.wp-block-button__link):not(.wp-block-create-block-t99-block-gutenberg-svg):hover::after,
  header .menu a:hover::after,
  .link_section a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }
}

header .menu .current-menu-item a::after,
header .menu .current_page_parent a::after,
footer .current-menu-item a::after,
footer .current_page_parent a::after {
  transform: scaleX(1) !important;
}

/* BLOG */
body.blog .wp-block-query>ul {
  row-gap: var(--wp--preset--spacing--30);
}

@media (max-width: 781px) {
  body.blog .wp-block-query>ul {
    row-gap: var(--wp--preset--spacing--60);
  }
}

body.blog .wp-block-post-featured-image {
  overflow: hidden;
}

body.blog .wp-block-post-featured-image img {
  transition: transform 1s ease;
}

body.blog li.wp-block-post:hover {
  cursor: pointer;
}

body.blog li.wp-block-post:hover .wp-block-post-featured-image img {
  transform: scale(1.075);
}

body.wp-singular.single.single-post .wp-block-post-content a {
  color: var(--wp--preset--color--primary);
}

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

footer a,
footer p {
  text-decoration: none !important;
}

footer .wp-block-create-block-t99-block-gutenberg-svg svg>* {
  fill: #fff !important;
}

@media (max-width: 781px) {

  footer *,
  footer .has-text-align-right {
    text-align: center;
    align-items: center !important;
    justify-content: center !important;
  }
}

footer ul.menu a {
  font-size: 12px;
  line-height: 1.5em;
}

footer .wp-block-columns {
  gap: var(--wp--preset--spacing--40);
}

/*
---------------------------------------------------------------------------------------
# CASALI STYLES
---------------------------------------------------------------------------------------
*/

.split_line {
  overflow: hidden;
}

ul {
  margin-block: 0;
}

ul.no_list_style,
ol.no_list_style {
  list-style: none;
  margin-inline: 0;
  padding-inline: 0;
}

.link_section a {
  text-decoration: none;
  color: unset;
}

.product_loop_item {
  padding: var(--wp--preset--spacing--20);
}

.product_loop_item * {
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}

.product_loop_item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.product_loop_item a::before {
  content: "";
  background-color: var(--wp--preset--color--secondary);
  position: absolute;
  top: 30px;
  left: 50%;
  width: 200px;
  height: min(80%, 350px);
  transform: translateX(-50%);
  border-radius: 100px;
  z-index: -1;
  transition: transform 0.8s ease;
}

.product_loop_item img {
  max-height: 400px;
  display: block;
  margin-bottom: 30px;
  transition: transform 0.8s ease, margin 1.5s ease;
  object-fit: contain !important;
}

.product_loop_item p {
  margin: 0;
}

@media (min-width: 782px) {
  .product_loop_item a:hover::before {
    transform: translateX(-50%) scale(0.9);
  }

  .product_loop_item a:hover img {
    transform: scale(1.05) rotate(5deg);
    margin-bottom: 25px;
  }

  .product_loop_item .excerpt {
    transition: margin 1.5s ease;
  }

  .product_loop_item a:hover .excerpt {
    margin-bottom: 5px;
  }
}

.single_product_img img {
  max-height: 800px;
  display: block;
  object-fit: contain !important;
  position: relative;
  z-index: 1;
}

.single_product_img::before {
  content: "";
  background-color: var(--wp--preset--color--secondary);
  position: absolute;
  top: 5%;
  left: 50%;
  width: 400px;
  height: 95%;
  transform: translateX(-50%);
  border-radius: 200px;
  z-index: 0;
}

@media (max-width: 781px) {
  .product_loop_item a::before {
    width: max(90%, 160px);
  }

  .single_product_img img {
    max-height: 480px;
  }

  .single_product_img::before {
    width: 280px;
    height: 90%;
  }

  body.blog main>.wp-block-group:nth-child(1),
  body.single-prodotto main>.wp-block-group:nth-child(1) {
    margin-top: 0 !important;
    padding-top: 16vh !important;
  }
}

/* ANIMAZIONI IMMAGINI */
body:not(.wp-admin) .wp-block-media-text__media {
  position: relative;
  overflow: hidden;
}

body:not(.wp-admin) .wp-block-media-text__media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--wp--preset--color--primary);
  overflow: hidden;
  clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  transition: clip-path 0.3s ease-out;
}

body:not(.wp-admin) .wp-block-media-text__media img {
  transform: scale(1);
  clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
  transition: clip-path 0.7s ease-out, transform 0.9s ease-out;
  transition-delay: 0.3s;
}

body:not(.wp-admin) .wp-block-media-text__media.fade_in::before {
  clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
}

body:not(.wp-admin) .wp-block-media-text__media.fade_in img {
  transform: scale(1.05);
  clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
}

body:not(.wp-admin) .single_product_img img {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s ease-out, opacity 0.4s ease;
  transition-delay: 0.2s;
}

body:not(.wp-admin) .single_product_img.fade_in img {
  opacity: 1;
  transform: translateY(0px);
}

/* read more & pagination */
a.wp-block-post-excerpt__more-link {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--white) !important;
  padding: 5px 20px;
  text-transform: uppercase;
  text-decoration: none !important;
  font-size: 0.8em;
  border-radius: 16px;
  margin-top: 15px;
  transition: background-color 0.4s ease;
}

a.wp-block-post-excerpt__more-link:hover {
  background-color: var(--wp--preset--color--secondary);
}

.wp-block-query-pagination {
  margin-top: var(--wp--preset--spacing--20);
}

.wp-block-query-pagination-numbers .page-numbers {
  color: var(--wp--preset--color--primary);
}

.wp-block-query-pagination-numbers .page-numbers.current {
  color: var(--wp--preset--color--secondary);
}

.margin_top_minus_1px {
  margin-top: -1px;
  z-index: 1;
}

body:not(.wp-admin) #wpml_switch {
  display: none;
}

.columns_list {
  padding-inline: 20px;
}

@media (min-width: 781px) {
  .columns_list {
    column-count: 3;
    column-gap: var(--wp--preset--spacing--40);
  }
}

.wp-block-create-block-t99-block-gutenberg-svg svg {
  height: auto !important;
}

.wp-block-query-pagination-numbers {
  display: flex;
  gap: 1rem;
}

.wp-block-media-text>.wp-block-media-text__content {
  padding: 8vh 8vw;
  padding: 8dvh 8dvw;
}

.mh-120 {
  min-height: 120px;
}

.mh-160 {
  min-height: 160px;
}

/* Media & Text */
@media (max-width: 767px) {
  .wp-block-media-text__media.fade_in img {
    min-height: 40vh;
    object-fit: cover;
  }

  .wp-block-media-text.is-stacked-on-mobile:not(.is-style-mobile_media_after_text) {
    margin-top: 0 !important;
  }

  .wp-block-media-text.is-stacked-on-mobile.is-style-mobile_media_after_text {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
  }

  .wp-block-media-text.is-stacked-on-mobile.is-style-mobile_media_after_text figure {
    order: 99;
  }
}

/* colonne con separatori verticali */
.columns_with_separators .wp-block-column:not(.last-child) {
  border-right: 1px solid var(--wp--preset--color--primary);
}

@media (max-width: 1280px) {
  .columns_with_separators {
    flex-direction: column;
  }

  .columns_with_separators .wp-block-column:not(.last-child) {
    border-right: none;
    border-bottom: 1px solid var(--wp--preset--color--primary);
  }
}

/*
---------------------------------------------------------------------------------------
# BUTTONS
---------------------------------------------------------------------------------------
*/
:root {
  --btn-arrow: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2020%2030%22%3E%3Cpolygon%20points%3D%2218.81%2014.99%203.81%2029.99%201.2%2027.39%2013.59%2014.99%201.19%202.61%203.81%200%2018.81%2014.99%22%20fill%3D%22%23fff%22%20fill-rule%3D%22evenodd%22/%3E%3C/svg%3E");
  --btn-size: 0.8em;
}

.wp-block-button .wp-block-button__link,
.frm_button_submit {
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 35px !important;
  color: var(--wp--preset--color--primary) !important;
  background-color: var(--wp--preset--color--white) !important;
  font-size: var(--btn-size) !important;
  padding-left: calc(var(--btn-size) * 4) !important;
  padding-right: calc(var(--btn-size) * 2) !important;
  padding-block: var(--btn-size) !important;
  position: relative;
  overflow: hidden;
  line-height: 1em !important;
  display: flex;
  align-items: center;
  border: 1px solid var(--wp--preset--color--primary) !important;
  transition: color 0.8s ease;
  z-index: 1;
}

.frm_button_submit {
  border-color: var(--wp--preset--color--primary) !important;
}

.wp-block-button .wp-block-button__link:hover,
.frm_button_submit:hover {
  transition: color 0.4s ease;
  color: var(--wp--preset--color--white) !important;
}

.wp-block-button .wp-block-button__link::before,
.frm_button_submit::before {
  content: "";
  position: absolute;
  left: calc(var(--btn-size) * -0.1);
  width: calc(var(--btn-size) * 3);
  height: calc(var(--btn-size) * 3);
  border-radius: 100%;
  background-color: var(--wp--preset--color--primary);
  z-index: -1;
  transition: transform 1s ease;
}

.wp-block-button .wp-block-button__link:hover::before,
.frm_button_submit:hover::before {
  transform: scale(20);
}

.wp-block-button .wp-block-button__link::after,
.frm_button_submit::after {
  content: var(--btn-arrow);
  position: absolute;
  transition: padding 0.4s ease;
  left: var(--btn-size);
  width: calc(var(--btn-size) * 0.8);
  z-index: 1;
  line-height: 1;
}

.wp-block-button .wp-block-button__link:hover::after,
.frm_button_submit:hover::after {
  padding-left: calc(var(--btn-size) * 0.8) !important;
}

.wp-block-button.is-style-white-border-btn .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--white) !important;
}

/*
---------------------------------------------------------------------------------------
# PARVUS LIGHTBOX
---------------------------------------------------------------------------------------
*/

.parvus-zoom__indicator {
  display: none !important;
}

.parvus__btn {
  background-color: transparent !important;
  outline: none !important;
}

.parvus__btn.parvus__btn--close path,
.parvus__btn.parvus__btn--previous polyline,
.parvus__btn.parvus__btn--next polyline {
  stroke: var(--wp--preset--color--black);
}

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

.contact_form.frm_forms {
  max-width: 1000px !important;
}

.frm_forms .frm_fields_container input,
.frm_forms .frm_fields_container select,
.frm_forms .frm_fields_container textarea {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--wp--preset--color--black);
  padding-block: 1em;
  resize: none;
}

.frm_forms .frm_fields_container input:focus,
.frm_forms .frm_fields_container select:focus,
.frm_forms .frm_fields_container textarea:focus {
  border-color: var(--wp--preset--color--secondary) !important;
  box-shadow: 0px 0px 5px 0px rgb(90 81 65 / 60%) !important;
}

.frm_forms ::placeholder,
.frm_forms label,
.frm_forms select {
  color: var(--wp--preset--color--black) !important;
}

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

.frm_forms .frm_fields_container input[type="checkbox"] {
  border-radius: 100% !important;
  background-color: var(--wp--preset--color--white);
}

.frm_forms.with_frm_style .frm_fields_container .frm_checkbox input[type="checkbox"]:not([disabled]):checked {
  background-color: var(--wp--preset--color--tertiary) !important;
  border: 0;
}

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

.frm_forms .frm_fields_container input:focus {
  box-shadow: none !important;
}

.frm_forms .frm_button_submit {
  text-transform: uppercase;
  box-shadow: none !important;
}

.frm_forms label a {
  color: var(--wp--preset--color--secondary);
  text-decoration: none;
  font-style: italic;
}

footer .frm_forms label a {
  color: var(--wp--preset--color--white);
}

/* form newsletter */
.newsletter_form.frm_forms .frm_fields_container input,
.newsletter_form.frm_forms .frm_fields_container select,
.newsletter_form.frm_forms .frm_fields_container textarea {
  border-bottom: 1px solid var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--primary);
}

.newsletter_form.frm_forms ::placeholder,
.newsletter_form.frm_forms label,
.newsletter_form.frm_forms select {
  color: var(--wp--preset--color--white) !important;
}

.newsletter_form.frm_forms .frm_fields_container input[type="checkbox"] {
  background-color: var(--wp--preset--color--primary);
}

/*
---------------------------------------------------------------------------------------
# ACCORDION
---------------------------------------------------------------------------------------
*/

.accordion_mpre {
  position: relative;
}

body:not(.wp-admin) .accordion_mpre_content {
  display: none;
}

.accordion_mpre_content {
  padding-bottom: var(--wp--preset--spacing--10);
}

.accordion_mpre .wp-block-heading {
  cursor: pointer;
  padding-block: var(--wp--preset--spacing--20);
  /* space for after element */
  max-width: 95%;
  transition: color 0.4s ease;
}

.accordion_mpre .wp-block-heading::after {
  content: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgaWQ9InBsdXMiPjxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIyIiB4MT0iMTYiIHgyPSIxNiIgeTE9IjciIHkyPSIyNSIvPjxsaW5lIHN0cm9rZT0iIzAwMCIgc3Ryb2tlLXdpZHRoPSIyIiB4MT0iNyIgeDI9IjI1IiB5MT0iMTYiIHkyPSIxNiIvPjwvZz48L3N2Zz4=");
  position: absolute;
  right: 5px;
  transition: transform 0.4s ease;
  width: 32px;
  height: 32px;
}

.accordion_mpre.open .wp-block-heading::after {
  transform: rotateZ(135deg);
}

.accordion_mpre.open .wp-block-heading,
.accordion_mpre .wp-block-heading:hover {
  color: var(--wp--preset--color--primary);
}

/*
---------------------------------------------------------------------------------------
# BREADCRUMBS
---------------------------------------------------------------------------------------
*/

#breadcrumbs {
  background: white;
  position: relative;
  top: 0;
  padding-block: 10px;
  padding-left: var(--wp--style--root--padding-left);
  padding-right: var(--wp--style--root--padding-right);
  width: 100%;
  border-bottom: 1px solid var(--wp--preset--color--black);
}

#breadcrumbs .breadcrumbs_container {
  max-width: var(--wp--style--global--content-size);
  margin: 0 auto;
}

#breadcrumbs,
#breadcrumbs a {
  color: var(--wp--preset--color--text-color);
  text-decoration: none;
}

/*
---------------------------------------------------------------------------------------
# SEARCH MODAL WINDOW
---------------------------------------------------------------------------------------
*/

#header_search {
  border: 1px solid var(--wp--preset--color--primary);
  border-radius: 100%;
  padding: 0.5em;
  box-sizing: content-box;
  cursor: pointer;
  overflow: visible;
}

#casaliSearchModalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#casaliSearchModalOverlay.show {
  opacity: 1;
  pointer-events: all;
}

/* Modal box */
#casaliSearchModal {
  width: 80%;
  padding: 4vh 2vw;
}

/* Close button */
#casaliSearchClose {
  position: absolute;
  color: var(--wp--preset--color--white);
  top: 8%;
  right: 5%;
  background: transparent;
  border: none;
  font-size: 42px;
  cursor: pointer;
}

#casaliSearchModal form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

#casaliSearchModal .search_title {
  text-align: center;
  font-size: var(--wp--preset--font-size--ms);
  color: var(--wp--preset--color--white);
  text-transform: uppercase;
  margin: 0 0 40px 0;
}

/* Input + search button */
#casaliSearchModal input[type="text"] {
  background: transparent;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid var(--wp--preset--color--white);
  border-radius: 0;
  color: var(--wp--preset--color--white);
  outline: none;
}

#casaliSearchModal .casali_search_button {
  padding: 10px;
  cursor: pointer;
  border: none;
  background: transparent;
}

@media (max-width: 480px) {
  #casaliSearchModal .casali_search_button {
    padding: 0;
  }
}

/* colori search button*/
#header_search {
  border-color: var(--wp--preset--color--primary);
  transition: border-color var(--header-transition-time) ease;
}

#header_search path {
  fill: var(--wp--preset--color--primary);
  transition: fill var(--header-transition-time) ease;
}

body.header_white #header_search {
  border-color: var(--wp--preset--color--white);
}

body.header_white #header_search path {
  fill: var(--wp--preset--color--white);
}

header.site-header.scrolled #header_search {
  border-color: var(--wp--preset--color--primary);
}

header.site-header.scrolled #header_search path {
  fill: var(--wp--preset--color--primary);
}

body.fs_menu_open #header_search {
  border-color: var(--wp--preset--color--white) !important;
}

body.fs_menu_open #header_search path {
  fill: var(--wp--preset--color--white) !important;
}

/*
---------------------------------------------------------------------------------------
# RISULTATI RICERCA
---------------------------------------------------------------------------------------
*/
body.search .wp-block-search__inside-wrapper {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
}

body.search .wp-block-search__button {
  background-color: var(--wp--preset--color--primary);
}

body.search li.wp-block-post .wp-block-post-title a {
  color: var(--wp--preset--color--primary);
}

/*
---------------------------------------------------------------------------------------
# MOUSE POINTER
---------------------------------------------------------------------------------------
*/

#mouseFollow {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  opacity: 0.7;
  top: 0;
  left: 0;
  /* mix-blend-mode: difference; */
}

@media (max-width: 1280px) {
  #mouseFollow {
    display: none;
  }
}

#mouseFollow .pointer {
  position: absolute;
  top: 0px;
  left: 0px;
  transform: translate(-50%, -50%);
  line-height: 0;
}

#mouseFollow .pointer svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease-out;
}

#mouseFollow.onHover .pointer svg {
  transform: scale(2);
}