/*
----------------------------
# TIPOGRAFIA
# SPAZI
# HEADER
# HOVERS
# FOOTER
# MICROPRECISIONE STYLES
# BUTTONS
# PARVUS LIGHTBOX
# SEARCH MODAL WINDOW
# FORMIDABLE
# ACCORDION
# BREADCRUMBS
# ROTATING CIRCLE TEXT BUTTON
# MOUSE POINTER
# WPML
# IMMAGINI MOSTRATE ON HOVER
# BLOG
----------------------------
*/

/* 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);
}

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

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

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

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

.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;
  background-color: var(--wp--preset--color--white);
  transition: background-color var(--header-transition-time) ease,
    padding-block var(--header-transition-time) ease;
}

header.site-header .wp-block-site-logo img.custom-logo {
  width: 180px;
  position: relative;
  z-index: 10;
}

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

header.site-header .wp-block-columns .wp-block-column:nth-child(3) {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

header.site-header ul.menu {
  gap: 2vw;
}

header.site-header ul.menu a {
  color: var(--wp--preset--color--black);
  text-decoration: none;
  transition: color var(--header-transition-time) ease;
  font-size: 16px;
}

/* TRANSPARENT & SCROLL */
body.transparent_header header.site-header {
  background-color: transparent;
}

header.site-header.scrolled {
  padding-block: 10px;
  background-color: var(--wp--preset--color--white) !important;
  box-shadow: 0px 1px 3px 0px #949494;
}

body.transparent_header header.site-header ul.menu a {
  color: var(--wp--preset--color--white);
}

body.transparent_header header.site-header.scrolled ul.menu a,
header.site-header.scrolled ul.menu a {
  color: var(--wp--preset--color--black);
}

body.transparent_header header.site-header .wp-block-site-logo img {
  transition: filter var(--header-transition-time) ease;
  filter: invert(1);
}

body.transparent_header header.site-header.scrolled .wp-block-site-logo img {
  filter: invert(0);
}

body.fs_menu_open header.site-header .wp-block-site-logo img {
  filter: invert(1) !important;
}

body:not(.transparent_header) {
  /*spazio per header*/
  padding-top: 80px;
}

@media (max-width: 1340px) {
	header.site-header ul.menu {
	  gap: 1.5vw;
	}
}

@media (max-width: 781px) {
  body:not(.transparent_header) {
    /*spazio per header*/
    padding-top: 60px;
  }
}

#hamburger_icon {
  display: none;
  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--black);
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  transition: transform 0.25s ease-in-out,
    background var(--header-transition-time) ease;
}

#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.transparent_header header.site-header #hamburger_icon span {
  background: var(--wp--preset--color--white);
}

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

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

body.fs_menu_open header.site-header ul.menu a {
  color: var(--wp--preset--color--white) !important;
}

@media (max-width: 1280px) {
  header.site-header {
    padding-block: 10px;
  }

  header.site-header .wp-block-site-logo img.custom-logo {
    width: 140px;
  }

  header.site-header .wp-block-columns .wp-block-column:nth-child(1) {
    flex-basis: 50% !important;
  }

  header.site-header .wp-block-columns .wp-block-column:nth-child(2) {
    flex-basis: 0% !important;
  }

  header.site-header .wp-block-columns .wp-block-column:nth-child(3) {
    flex-basis: 50% !important;
  }

  header.site-header ul.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--wp--preset--color--black);
    gap: 2vh;
    flex-direction: column;
    z-index: 9;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.fs_menu_open header.site-header ul.menu {
    opacity: 1;
    pointer-events: all;
  }

  header.site-header ul.menu a {
    font-size: min(7vw, 50px);
    color: var(--wp--preset--color--white);
    transform: translateY(40px);
    transition: transform 0.2s ease;
  }

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

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

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

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

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

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

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

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

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

  header.site-header ul.menu li:nth-child(8) a {
    transition-delay: 0.35s;
  }

  header.site-header ul.menu li:nth-child(9) a {
    transition-delay: 0.4s;
  }

  header.site-header ul.menu li:nth-child(10) a {
    transition-delay: 0.45s;
  }

  #hamburger_icon {
    display: block;
  }
}

/* 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 {
    position: relative;
    width: fit-content;
  }

  footer a::after,
  header .menu 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:hover::after,
  header .menu 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;
}

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

footer {
  border-top: 2px solid var(--wp--preset--color--white);
}

footer a {
  text-decoration: none;
}

/*
---------------------------------------------------------------------------------------
# MICROPRECISIONE STYLES
---------------------------------------------------------------------------------------
*/

ul {
  margin-block: 0;
}

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

.mw_700 {
  max-width: 700px;
}

/* GO TO NEXT SECTION BUTTON */
.scroll_to_next {
  cursor: pointer;
  position: absolute;
  bottom: 7%;
  left: 7%;
}

.scroll_to_next.relative {
  cursor: pointer;
  position: relative;
  left: 0;
}

*:has(> .scroll_to_next) {
  position: relative;
}

/* ROTATING SVG */
.rotating_svg svg {
  animation: rotating_scale_anim 10s linear infinite;
}

@keyframes rotating_scale_anim {
  0% {
    transform: rotate(0deg) scale(0.9);
  }

  50% {
    transform: rotate(180deg) scale(1);
  }

  100% {
    transform: rotate(360deg) scale(0.9);
  }
}

@media (max-width: 781px) {
  .rotating_svg {
    margin: 0 auto;
    width: 200px;
    padding-top: 40px;
  }

  .carr_fixxx {
    padding-top: 40vh !important;
  }
}

/* TESTO CHE SCROLLA ALL'INFINITO */
.scrolling__text {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling__inner {
  display: inline-flex;
  white-space: nowrap;
}

.scrolling__inner p {
  margin: 0;
  padding-right: 0.5em;
  /* spazio tra le due copie */
  display: inline-block;
  white-space: nowrap;
  max-width: unset;
}

/* BLOB EFFECT */
figure.blob__effect {
  position: relative;
  display: inline-block;
}

figure.blob__effect img {
  position: relative;
  z-index: 2;
  /* sopra */
}

.blob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 1;
  /* dietro */
}

@media (max-width: 1280px) {
  .blob {
    width: 320px;
    height: 320px;
    filter: blur(30px);
  }
}

@media (max-width: 781px) {
  .blob {
    width: 240px;
    height: 240px;
    filter: blur(20px);
  }
}

/* PNG verde sotto titoli */
.green_blur_img {
  position: absolute;
  top: -50%;
  left: 20%;
  width: clamp(200px, 50%, 800px);
  z-index: -1;
}

/* SFONDO A PALLINI CON PARALLASSE */
.dot_px_bg {
  position: relative;
  background-image: url("/wp-content/themes/tema99-blank-main-child/assets/svg/dotted__bg.svg");
  background-repeat: repeat-y;
  background-size: 50%;
  background-position: 0% 0;
  will-change: background-position;
  z-index: 0;
}

@media (max-width: 781px) {
  .dot_px_bg {
    background-size: 100%;
  }
}

/* GLITCH (non usato) */
.glitch {
  position: relative;
}

.slice {
  position: absolute;
  top: 0;
  left: 0;
  color: inherit;
  overflow: hidden;
  pointer-events: none;
}

@media (min-width: 768px) {
  .gruppo_numerato_in_colonna p:last-child {
    min-height: 150px;
  }

  .gruppo_numerato_in_colonna .wp-block-heading {
    min-height: 2.2em;
  }
}

.align-items__flex-start {
  align-items: flex-start;
}

/*
---------------------------------------------------------------------------------------
# BUTTONS
---------------------------------------------------------------------------------------
*/

:root {
  --arrow-black: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'><circle cx='18' cy='18' r='18' fill='%23020300' stroke-width='0'/><polygon points='18.3 25.4 17.7 24.6 24.6 17.9 18.3 11.3 19.1 10.7 26 17.9 18.3 25.4' fill='%23c5f76f' stroke-width='0'/><rect x='17.01' y='10.04' width='1' height='15.4' transform='translate(-.57 34.91) rotate(-88.88)' fill='%23c5f76f' stroke-width='0'/></svg>");
}

.wp-block-button .wp-block-button__link,
.frm_button_submit {
  padding: 0.7rem 0.5rem 0.7rem 1.4rem;
  border-radius: 35px;
  border: 1px solid var(--wp--preset--color--black);
  text-decoration: none;
  color: var(--wp--preset--color--black);
  position: relative;
  z-index: 1;
  transition: background-color 0.5s ease, color 0.5s ease;
  font-size: 0.8em;
  display: flex;
  align-items: center;
}

.frm_button_submit {
  padding: 0.7rem 1.4rem !important;
  border-radius: 35px !important;
  background-color: var(--wp--preset--color--primary) !important;
  border: 1px solid var(--wp--preset--color--black) !important;
  font-size: 0.8em !important;
  color: var(--wp--preset--color--black) !important;
  box-shadow: none !important;
}

.wp-block-button.is-style-black-btn .wp-block-button__link {
  color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-black-btn .wp-block-button__link {
  background-color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-white-btn .wp-block-button__link {
  background-color: var(--wp--preset--color--white);
}

.wp-block-button.is-style-green-btn .wp-block-button__link {
  background-color: var(--wp--preset--color--primary);
}

.wp-block-button .wp-block-button__link::after,
.frm_button_submit::after {
  content: var(--arrow-black);
  width: 1.4rem;
  display: inline-block;
  position: relative;
  margin-left: 1em;
  line-height: 0;
  transition: padding 0.5s ease;
}

.wp-block-button.is-style-black-btn .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-white-btn .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--black);
}

.wp-block-button.is-style-green-btn .wp-block-button__link:hover {
  background-color: var(--wp--preset--color--white);
  color: var(--wp--preset--color--black);
}

.frm_button_submit:hover {
  background-color: var(--wp--preset--color--white) !important;
  color: var(--wp--preset--color--black) !important;
}

.wp-block-button .wp-block-button__link:hover::after,
.frm_button_submit:hover::after {
  padding-left: 1.3em;
}

.frm_forms label a {
	color: var(--wp--preset--color--primary) !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);
}

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

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

/* Hide modal by default */
#mpreSearchModalOverlay {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

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

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

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

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

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

#mpreSearchModal .mpre_search_button {
  padding: 10px;
  cursor: pointer;
  border: none;
  background: transparent;
}

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

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

.contact_us.frm_forms {
  max-width: var(--wp--style--global--content-size) !important;
  background-color: var(--wp--preset--color--black);
  border-radius: 25px;
  padding-inline: var(--wp--preset--spacing--30);
  padding-block: var(--wp--preset--spacing--40);
}

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

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

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

.contact_us.frm_forms .frm_fields_container input[type="checkbox"] {
  border-radius: 100% !important;
  background-color: var(--wp--preset--color--black);
  padding: 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;
}

.job_form {
  max-width: 880px !important;
  margin: 0 auto;
}

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

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

.job_form.frm_forms
  .frm_fields_container
  .frm_form_field:has(.frm_dropzone)
  .frm_primary_label {
  display: block !important;
}

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

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

/*
---------------------------------------------------------------------------------------
# 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;
}

/*
---------------------------------------------------------------------------------------
# ROTATING CIRCLE TEXT BUTTON
---------------------------------------------------------------------------------------
*/

/* Contenitore */
:has(> .rotating-circle-element) {
  position: relative;
}

.rotating-circle-element {
  --circle-radius: 110px;
  --distance-from-center: 70px;
  display: block;
  width: calc(var(--circle-radius) * 1.6);
  height: calc(var(--circle-radius) * 1.6);
  text-transform: uppercase;
  position: absolute;
  right: 3%;
  top: 20%;
}

/* Cerchio verde */
.rotating-circle {
  width: var(--circle-radius);
  height: var(--circle-radius);
  background: var(--wp--preset--color--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--wp--preset--color--black);
  font-size: 16px;
  position: absolute;
  letter-spacing: 0.02em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Anello esterno con il testo */
.rotating-circle-text {
  position: absolute;
  width: calc(var(--circle-radius) * 1.6);
  height: calc(var(--circle-radius) * 1.6);
  animation: rotating_anim 15s linear infinite;
  z-index: 1;
}

.rotating-circle-text span {
  color: var(--wp--preset--color--white);
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 0 0;
  font-size: 7px;
  width: 12px;
  height: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Animazione di rotazione */
@keyframes rotating_anim {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 781px) {
  .rotating-circle-element {
    --circle-radius: 120px;
    --distance-from-center: 80px;
  }

  .rotating-circle {
    font-size: 18px;
  }

  .rotating-circle-text span {
    font-size: 8px;
  }
}

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

#mouseFollow {
  position: fixed;
  z-index: 900;
  pointer-events: none;
  width: 60px;
  height: 60px;
  opacity: 0.6;
  top: 0;
  left: 0;
  mix-blend-mode: difference;
}

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

#mouseFollow .pointer,
#mouseFollow .interaction {
  position: absolute;
  top: 0px;
  left: 0px;
  transition: all 0.25s ease-out;
}

#mouseFollow .pointer svg {
  width: 20px;
  height: 20px;
}

#mouseFollow .interaction svg {
  width: 60px;
  height: 60px;
}

#mouseFollow .pointer {
  transform: translate(-50%, -50%) scale(1);
}

#mouseFollow .interaction {
  transform: translate(-50%, -50%) scale(0);
}

#mouseFollow.onHover .pointer {
  transform: translate(-50%, -50%) scale(0);
}

#mouseFollow.onInteraction {
  opacity: 1;
}

#mouseFollow.onInteraction .pointer {
  transform: translate(-50%, -50%) scale(1.5);
}

/* #mouseFollow.onInteraction .interaction {
  transform: translate(-50%, -50%) scale(1.2);
} */

/*
---------------------------------------------------------------------------------------
# WPML
---------------------------------------------------------------------------------------
*/
header.site-header .wpml-ls-legacy-list-horizontal {
  background: var(--wp--preset--color--primary);
  padding: 0.2em 0.75em;
  border-radius: 1em;
  font-size: 15px;
  z-index: 9;
}

header.site-header .wpml-ls-legacy-list-horizontal ul[role="menu"] {
  display: flex;
  flex-direction: row;
}

header.site-header .wpml-ls-legacy-list-horizontal ul li:nth-child(2) {
  border-left: 1px solid var(--wp--preset--color--black);
}

header.site-header
  .wpml-ls-legacy-list-horizontal
  li.wpml-ls-current-language
  a {
  font-weight: bold;
}

header.site-header .wpml-ls-legacy-list-horizontal a {
  color: var(--wp--preset--color--black);
  padding: 0;
  font-size: 1rem;
  line-height: 0;
  padding: 0.5rem;
}

/*
---------------------------------------------------------------------------------------
# IMMAGINI MOSTRATE ON HOVER
---------------------------------------------------------------------------------------
*/

@media (min-width: 782px) {
  figure.show_on_hover {
    position: absolute;
    left: -40%;
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.5s ease;
    z-index: 2;
    max-width: 250px;
  }

  figure.show_on_hover img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  *:has(> .show_on_hover) {
    position: relative;
  }

  .wp-block-columns:has(> .wp-block-column > .show_on_hover):hover
    figure.show_on_hover {
    opacity: 1;
    transform: translateY(-34%);
  }
}

/*
---------------------------------------------------------------------------------------
# BLOG
---------------------------------------------------------------------------------------
*/

body.blog main a,
body.archive main a {
  color: unset;
  text-decoration: none;
}

.wp-block-post-title :where(a) {
  color: unset;
  text-decoration: none;
}

@media (min-width: 782px) {
  .blog_loop figure.show_on_hover {
    left: 0;
  }
}

.wp-block-categories-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: var(--wp--preset--spacing--20);
  padding: 0;
}

.categorie_blog a {
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--wp--preset--color--black);
  border-radius: 25px;
}

.categorie_blog:not(:has(.current-cat)) p > a,
.categorie_blog li.current-cat a {
  border: none;
}

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

@media (max-width: 781px) {
  .blog_loop figure.show_on_hover {
    max-width: 300px;
  }

  .blog_loop .wp-block-post-template .wp-block-buttons,
  .loop_jobs .wp-block-post-template .wp-block-buttons {
    justify-content: flex-start !important;
  }

  .blog_loop .wp-block-post-template .wp-block-column:has(.taxonomy-category) {
    order: -1;
  }
}

/*
---------------------------------------------------------------------------------------
# DA ORDINARE
---------------------------------------------------------------------------------------
*/

#progress_indicator {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--wp--preset--color--primary);
  z-index: 9;
  transition: width 0.1s linear;
  display: none;
  /* nascosta di default */
}

body.wp-admin .acf-input .file-info {
  display: none;
}
