/*
 * Med-On Sticky Header Verde v1.0.0
 * Lo stato viene applicato dallo script quando la pagina supera 1px di scroll.
 * Non tocca l'header normale o il menu mobile aperto.
 */
body.medon-sticky-green-active #rs-header,
body.medon-sticky-green-active #rs-header > .header-inner,
body.medon-sticky-green-active #rs-header .elementor-131016,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d4b7f8e,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-dc235b1,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-effed6d,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-eacb5ba,
body.medon-sticky-green-active .elementor-131016 .elementor-element-d4b7f8e,
body.medon-sticky-green-active .elementor-131016 .elementor-element-dc235b1,
body.medon-sticky-green-active .elementor-131016 .elementor-element-effed6d,
body.medon-sticky-green-active .elementor-131016 .elementor-element-eacb5ba {
  background-color: #048681 !important;
  background-image: none !important;
}

/* Forza bianco su tutte le voci di primo livello, compresi hover e pagina attiva. */
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > a,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > a:hover,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > a:focus,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > .hfe-has-submenu-container > a,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > .hfe-has-submenu-container > a:hover,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > .hfe-has-submenu-container > a:focus,
body.medon-sticky-green-active .elementor-131016 nav.hfe-nav-menu__layout-horizontal > ul > li > a,
body.medon-sticky-green-active .elementor-131016 nav.hfe-nav-menu__layout-horizontal > ul > li > a:hover {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.medon-sticky-green-active .elementor-131016 nav.hfe-nav-menu__layout-horizontal > ul > li > a *,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu nav > ul > li > a * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
/* Frecce del menu, pulsante hamburger. */
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu__toggle,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu__toggle i,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu__toggle svg,
body.medon-sticky-green-active .elementor-131016 .hfe-nav-menu__layout-horizontal > ul > li > a svg {
  color: #fff !important;
  fill: currentColor !important;
}
/* Logo: lo script cambia direttamente la sorgente dell'immagine originale.
 * Dimensioni e posizionamento restano quelli impostati da Elementor.
 * Nessuna sovrapposizione, nessuna modifica a width/height. */
/* Menu dropdown mobile su fondo bianco: mantenere il contrasto. */
@media (max-width: 1024px) {
  body.medon-sticky-green-active .elementor-131016 nav.hfe-dropdown,
  body.medon-sticky-green-active .elementor-131016 nav.hfe-dropdown-expandible,
  body.medon-sticky-green-active .elementor-131016 .hfe-flyout-wrapper nav {
    background-color: #fff !important;
  }
  body.medon-sticky-green-active .elementor-131016 nav.hfe-dropdown a,
  body.medon-sticky-green-active .elementor-131016 nav.hfe-dropdown-expandible a,
  body.medon-sticky-green-active .elementor-131016 .hfe-flyout-wrapper nav a {
    color: #3f3f3f !important;
    -webkit-text-fill-color: #3f3f3f !important;
  }
}

/* v1.2.0 | Passaggio allo sticky immediato, senza dissolvenza.
   Applichiamo il reset in entrambi gli stati per evitare anche il fade al ritorno. */
#rs-header,
#rs-header .header-inner,
#rs-header .elementor-131016,
#rs-header .elementor-131016 .elementor-element-d4b7f8e,
#rs-header .elementor-131016 .elementor-element-dc235b1,
#rs-header .elementor-131016 .elementor-element-effed6d,
#rs-header .elementor-131016 .elementor-element-eacb5ba,
#rs-header .elementor-131016 .hfe-site-logo-container img,
#rs-header .elementor-131016 .hfe-nav-menu a,
#rs-header .elementor-131016 .search-form-style3,
#rs-header .elementor-131016 .search-form-style3 input,
#rs-header .elementor-131016 .search-form-style3 button {
  transition: none !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}
/* Annulla anche eventuali animazioni del tema sull'header sticky. */
body.medon-sticky-green-active #rs-header,
body.medon-sticky-green-active #rs-header .header-inner,
body.medon-sticky-green-active #rs-header .elementor-131016,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d4b7f8e,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-dc235b1 {
  animation: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

/* v1.3.0 | Sticky che scende dall'alto, senza dissolvenza.
   Si anima soltanto il contenitore principale, per evitare traslazioni doppie. */
@keyframes medon-sticky-drop-in {
  from { transform: translate3d(0, -100%, 0); opacity: 1; }
  to   { transform: translate3d(0, 0, 0); opacity: 1; }
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d4b7f8e,
body.medon-sticky-green-active .elementor-131016 .elementor-element-d4b7f8e {
  animation: medon-sticky-drop-in 360ms cubic-bezier(.22, 1, .36, 1) both !important;
  animation-delay: 0s !important;
  opacity: 1 !important;
}
@media (prefers-reduced-motion: reduce) {
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d4b7f8e,
  body.medon-sticky-green-active .elementor-131016 .elementor-element-d4b7f8e {
    animation: none !important;
  }
}


/* v1.7.0: search sticky sulle sole pagine SENZA header trasparente.
   Non tocca il layout gia' corretto delle pagine con header trasparente.
   Markup reale del widget RS: form.bs-search.search-form-style3 > .search-wrap
   > input.search-input + button[type=submit] > i.ri-search-line. */
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 .elementor-widget-hfe-search-button,
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 .elementor-widget-hfe-search-button > .elementor-widget-container,
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 .elementor-widget-hfe-search-button > .elementor-widget-container::before,
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 .elementor-widget-hfe-search-button > .elementor-widget-container::after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 {
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  width: 188px !important;
  max-width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap {
  display: flex !important;
  position: relative !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap > input.search-input {
  display: block !important;
  position: relative !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 46px 0 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 16px !important;
  line-height: normal !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap > input.search-input::placeholder {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap > button[type=submit] {
  display: flex !important;
  position: absolute !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  top: 50% !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
  color: #fff !important;
  opacity: 1 !important;
}
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap > button[type=submit] i.ri-search-line,
body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 > .search-wrap > button[type=submit] i.ri-search-line::before {
  display: inline-block !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  transform: none !important;
  opacity: 1 !important;
}
@media (max-width: 767px) {
  body.medon-sticky-green-active:not(.medon-header-transparent) .elementor-131016 form.bs-search.search-form-style3 {
    width: 160px !important;
  }
}



/* v1.9.0: stabilizzazione della lente durante il passaggio a sticky.
   Si applica a entrambi i tipi di pagina, ma solo quando lo sticky è attivo.
   Non cambia sfondo, colori o dimensioni del campo. */
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a form.search-form-style3 > .search-wrap {
  position: relative !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a form.search-form-style3 > .search-wrap > button[type="submit"] {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  top: 50% !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  line-height: 1 !important;
  transition: none !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a form.search-form-style3 > .search-wrap > button[type="submit"] > i.ri-search-line {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* v2.0.0: uscita istantanea quando si torna in cima; nessuna animazione di uscita. */


/* v2.1.0 | Elimina il flash rettangolare dietro il widget Search.
   Il form/pillola rimane con lo stile esistente; si neutralizza solo il
   contenitore Elementor e i suoi pseudo-elementi durante lo sticky. */
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a,
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a > .elementor-widget-container,
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a > .elementor-widget-container::before,
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a > .elementor-widget-container::after,
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a::before,
body.medon-sticky-green-active #rs-header .elementor-131016
.elementor-element-d8aab1a::after {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transition: none !important;
  animation: none !important;
}


/* v2.2.0 | Sottolineatura della voce attiva del menu principale.
   Vale per header normale, trasparente e sticky. Usa il colore del testo
   attuale (scuro nell'header bianco, bianco nel verde/trasparente). */
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current-menu-item > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current_page_item > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current-menu-ancestor > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current-menu-item > .hfe-has-submenu-container > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current_page_item > .hfe-has-submenu-container > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li.current-menu-ancestor > .hfe-has-submenu-container > a,
#rs-header .elementor-131016 .hfe-nav-menu nav > ul > li > a[aria-current="page"] {
  text-decoration-line: underline !important;
  text-decoration-style: solid !important;
  text-decoration-thickness: 3px !important;
  text-underline-offset: 9px !important;
  text-decoration-color: currentColor !important;
}


/* v2.4.0 - Search bianca/trasparente in QUALSIASI sticky verde,
   anche nelle pagine che usano l'header trasparente.
   Mantiene intatti dimensioni e posizionamento stabilizzati nelle v2.x. */
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container::before,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container::after {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 {
  background: transparent !important;
  background-image: none !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > input.search-input,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > button[type=submit] {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > input.search-input {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > input.search-input::placeholder {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
}
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > button[type=submit],
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > button[type=submit] i.ri-search-line,
body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 > .search-wrap > button[type=submit] i.ri-search-line::before {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}


/* v2.5.0 | MOBILE / TABLET (fino a 1024px)
   1. Ricerca bianca quando l'header sticky e' verde.
   2. Menu hamburger aperto: pannello bianco, voci scure.
   L'ID dell'header rende le regole piu' specifiche del bianco desktop.
   Non cambia posizione, dimensioni o animazione dello sticky. */
@media (max-width: 1024px) {
  /* Ricerca: input, bordo e lente bianchi anche se il tema usa una lente mobile separata. */
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 {
    border-color: #fff !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 input.search-input {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a form.bs-search.search-form-style3 input.search-input::placeholder {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a :is(
    .search-wrap > button[type="submit"],
    .search-wrap > button[type="submit"] i,
    .search-wrap > button[type="submit"] i::before,
    .hfe-search-icon-toggle,
    .hfe-search-icon-toggle i,
    .hfe-search-icon-toggle i::before,
    .hfe-search-icon,
    .hfe-search-icon i,
    .hfe-search-icon i::before
  ),
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-widget-hfe-search-button :is(
    .hfe-search-icon-toggle,
    .hfe-search-icon-toggle i,
    .hfe-search-icon-toggle i::before,
    .hfe-search-icon
  ) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 .elementor-element-d8aab1a :is(
    .search-wrap > button[type="submit"] svg,
    .hfe-search-icon-toggle svg,
    .hfe-search-icon svg
  ) {
    color: #fff !important;
    fill: currentColor !important;
    stroke: currentColor !important;
  }

  /* Il dropdown non deve ereditare il bianco delle voci del menu desktop. */
  body.medon-sticky-green-active #rs-header .elementor-131016 :is(
    nav.hfe-dropdown,
    nav.hfe-dropdown-expandible,
    nav.menu-is-active,
    nav.hfe-nav-menu__layout-vertical,
    .hfe-flyout-wrapper nav
  ),
  body.medon-sticky-green-active .elementor-131016 .hfe-flyout-wrapper nav {
    background-color: #fff !important;
    background-image: none !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 :is(
    nav.hfe-dropdown,
    nav.hfe-dropdown-expandible,
    nav.menu-is-active,
    nav.hfe-nav-menu__layout-vertical,
    .hfe-flyout-wrapper nav
  ) a,
  body.medon-sticky-green-active .elementor-131016 .hfe-flyout-wrapper nav a {
    color: #3f3f3f !important;
    -webkit-text-fill-color: #3f3f3f !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 :is(
    nav.hfe-dropdown,
    nav.hfe-dropdown-expandible,
    nav.menu-is-active,
    nav.hfe-nav-menu__layout-vertical,
    .hfe-flyout-wrapper nav
  ) a :is(span, i, .hfe-menu-item),
  body.medon-sticky-green-active .elementor-131016 .hfe-flyout-wrapper nav a :is(span, i) {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
  }
  body.medon-sticky-green-active #rs-header .elementor-131016 :is(
    nav.hfe-dropdown,
    nav.hfe-dropdown-expandible,
    nav.menu-is-active,
    nav.hfe-nav-menu__layout-vertical,
    .hfe-flyout-wrapper nav
  ) a svg {
    color: #3f3f3f !important;
    fill: currentColor !important;
  }
}


/* v2.6.0 | RS Search widget, icona mobile indipendente dal form.
   Il tema imposta background:#fff su .search_icons.style2.
   Eliminiamo il lampo bianco anche nel frame prima dell'attivazione
   della classe sticky, senza cambiare il colore del normale header. */
@media (max-width: 1024px) {
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons.style2,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons:hover,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons:focus-within,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons.icon_close,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search_icons::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Lo stato sticky verde ha entrambe le icone bianche; non forziamo
     opacity/display per preservare l'alternanza lente/chiusura del tema. */
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons .ri-search-line,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons .ri-close-line,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons .ri-search-line::before,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons .ri-close-line::before {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }

  /* Nessun rettangolo bianco dietro l'icona durante l'ingresso sticky. */
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a .search_icons.style2 {
    border-color: transparent !important;
  }
}


/* v2.7.0 | Mobile: neutralizza il flash bianco del controllo Search RS.
   L'icona ha il colore bianco SOLO durante lo stato sticky verde;
   nell'header normale il colore non viene impostato qui.
   Il tema puo' montare .search_icons fuori dal widget d8aab1a. */
@media (max-width: 1024px) {
  #rs-header .search_icons,
  #rs-header .search_icons.style2,
  #rs-header .search_icons.icon_close,
  #rs-header .search_icons:hover,
  #rs-header .search_icons:focus-within,
  #rs-header .search_icons > a,
  #rs-header .search_icons > button,
  #rs-header .search_icons::before,
  #rs-header .search_icons::after,
  .elementor-131016 .search_icons,
  .elementor-131016 .search_icons.style2,
  .elementor-131016 .search_icons > a,
  .elementor-131016 .search_icons > button,
  .elementor-131016 .search_icons::before,
  .elementor-131016 .search_icons::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  /* Evita che un bordo pieno disegni un rettangolo nel cambio stato. */
  #rs-header .search_icons,
  #rs-header .search_icons.style2,
  .elementor-131016 .search_icons.style2 {
    border-color: transparent !important;
  }
  /* Solo sticky: colore lente e relativo glifo. */
  body.medon-sticky-green-active #rs-header .search_icons .ri-search-line,
  body.medon-sticky-green-active #rs-header .search_icons .ri-search-line::before,
  body.medon-sticky-green-active #rs-header .elementor-element-d8aab1a .ri-search-line,
  body.medon-sticky-green-active #rs-header .elementor-element-d8aab1a .ri-search-line::before {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
  }
}


/* v2.8.0 | Mobile: rimuove il flash bianco della ricerca nella transizione.
   La protezione dei contenitori e dei controlli vale PRIMA e DURANTE lo
   sticky, perche' il tema puo' aggiornare i propri stili tra due frame.
   Non altera colore dell'icona, dimensioni o animazione dell'header. */
@media (max-width: 1024px) {
  #rs-header .elementor-131016 .elementor-element-d8aab1a,
  #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container,
  #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a > .elementor-widget-container::after,
  #rs-header .elementor-131016 .elementor-element-d8aab1a::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a::after,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search-wrap,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search-wrap > button,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search-wrap > button::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .search-wrap > button::after,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon-toggle,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon-toggle::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon-toggle::after,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a .hfe-search-icon::after {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: none !important;
    animation: none !important;
  }
  /* La pillola di ricerca resta gestita dalle regole esistenti: qui
     eliminiamo soltanto il riempimento che potrebbe comparire nello sticky. */
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a form.bs-search.search-form-style3,
  body.medon-sticky-green-active #rs-header .elementor-131016
  .elementor-element-d8aab1a form.bs-search.search-form-style3 input.search-input {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    transition: none !important;
  }
}

/* v2.9 | Mobile: il flash osservato nel video e' sul quadrato che avvolge
   la lente (non sul form). Neutralizza anche i wrapper con icona diretta
   e i relativi pseudo-elementi in entrambi gli stati dello sticky. */
@media (max-width: 1024px) {
  #rs-header .elementor-131016 .elementor-element-d8aab1a,
  #rs-header .elementor-131016 .elementor-element-d8aab1a *:not(input),
  #rs-header .elementor-131016 .elementor-element-d8aab1a *:not(input)::before,
  #rs-header .elementor-131016 .elementor-element-d8aab1a *:not(input)::after,
  #rs-header :is(a, button, span, div):has(> i.ri-search-line),
  #rs-header :is(a, button, span, div):has(> i.ri-search-line)::before,
  #rs-header :is(a, button, span, div):has(> i.ri-search-line)::after,
  #rs-header :is(a, button, span, div):has(> .search_icons),
  #rs-header :is(a, button, span, div):has(> .search_icons)::before,
  #rs-header :is(a, button, span, div):has(> .search_icons)::after {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    transition-property: color, opacity, transform !important;
  }
}
