/* Nascondi solo la bandierina spagnola dal menu */
.menu-item-wpml-ls-45-es {
    display: none !important;
}

.grecaptcha-badge {
  display: none !important
}

#cn-more-info {
  color: #fff;
  text-decoration: underline;
}

#cn-more-info:hover {
  text-decoration: none;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb {
  /*font-size: .92em;*/
  font-size: 18px;
  color: #767676;
  font-family: 'GIlroy';
}

.column {
  padding: 0 !important;
}

.woocommerce-product-details__short-description {
  font-family: 'GIlroy';
}

.posted_in {
  font-family: 'GIlroy';
}

#tab-description {
  font-family: 'GIlroy';
}

.flex-viewport {
  border-radius: 10px;
  margin: 0 5px;
}

.elementor-menu-toggle {
  margin-bottom: 10px !important;
}

/* Applicare solo il bordo inferiore */
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], textarea {
  background-color: transparent;
  /* Sfondo trasparente */
  border: none;
  /* Rimuove tutti i bordi */
  border-bottom: 2px solid #000;
  /* Aggiunge solo il bordo inferiore */
  padding: 5px 0;
  /* Spaziatura per evitare che il testo sia troppo vicino al bordo */
  box-sizing: border-box;
  /* Garantisce che padding e bordo non alterino la dimensione del campo */
  transition: border-color 0.3s ease;
  /* Aggiunge un effetto di transizione al focus */
  border-radius: 0;
  font-style: italic;
}

/* Modifica il colore del bordo inferiore al focus */
input:focus, textarea:focus {
  outline: none;
  /* Rimuove il contorno del focus */
  border-bottom: 2px solid #000;
  /* Cambia colore del bordo inferiore */
}

/* Placeholder visibile */
input::placeholder, textarea::placeholder {
  color: #646464;
  /* Colore del testo segnaposto */
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  /* Aggiunge margine tra le righe */
}

.form-row .full-width {
  flex: 100%;
  padding: 0 10px;
  /* Aggiunge spaziatura laterale anche per gli elementi a larghezza piena */
}

.column {
  flex: 1;
  min-width: 250px;
  padding: 0 10px;
  /* Aggiunge spaziatura orizzontale tra le colonne */
}

.button-info-privacy {
  color: #b6a892;
  /* Colore predefinito */
  text-decoration: none;
  /* Rimuove la sottolineatura del link */
  transition: color 0.3s ease;
  /* Transizione per un effetto più fluido */
}

.button-info-privacy:hover {
  color: #855c41;
  /* Colore di hover */
  text-decoration: underline;
  /* Aggiunge la sottolineatura al passaggio del mouse */
}

[type=button], [type=submit], button {
  color: #fff;
  float: right;
  padding: 16px 25px !important;
  border-radius: 7px;
  background-color: #05498c;
  border: 2px solid #05498c;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
  background-color: #fff;
  border: 2px solid #05498c;
  color: #05498c;
}

.wpcf7-list-item {
  margin-left: 0;
}

.elementor-widget-search .e-search-form {
  display: block;
}

.e-search-submit {
  width: 100% !important;
  margin-top: 10px;
  display: block !important;
}

.elementor-icon-box-title {
  margin-top: -10px;
}

.woocommerce div.product div.images .flex-control-thumbs {
  padding: 10px 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  border-radius: 10px;
}

.woocommerce .woocommerce-breadcrumb {
  padding: 0 5px;
}

.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
  padding: 0 5px;
}

.woocommerce-tabs.wc-tabs-wrapper {
  padding: 0 5px;
}

@media only screen and (max-width: 767px) {
  .woocommerce-tabs.wc-tabs-wrapper {
    padding: 0;
  }
}

.woof_container {
  padding: 0 5px;
}

.product-category-link {
  text-decoration: none;
  /* Rimuove il sottolineato dal link */
  color: inherit;
  /* Mantiene il colore del testo */
  display: inline-block;
  /* Imposta il blocco cliccabile */
}

.nv-product-category {
  display: flex;
  align-items: center;
  /* Centra verticalmente img e testo */
  gap: 10px;
  /* Spazio tra immagine e testo */
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  /* Effetto al passaggio del mouse */
}

.nv-product-category:hover {
  background-color: rgba(0, 0, 0, 0.0);
  /* Sfumatura al passaggio del mouse */
}

.nv-product-category-image {
  width: 80px;
  /* Larghezza massima immagine */
  height: auto;
  /* Mantiene proporzioni */
  display: block;
  margin-left: -10px;
}

.nv-product-category-name {
  margin: 0;
  /* Rimuove margini extra */
  font-size: 1.5em;
  /* Dimensione testo */
  line-height: 1.2;
  /* Altezza linea per un buon allineamento */
}

.nv-product-tags .sku_wrapper,
.nv-product-tags .posted_in {
  display: none;
}

.nv-product-tags span.detail-label {
  display: block;
}

/* Rimuove doppio titolo da custom tabs */
.woocommerce-Tabs-panel h2 {
  display: none;
}

.button.woof_submit_search_form {
  width: 100% !important;
  background-color: #05498c !important;
  color: #fff !important;
  height: 60px;
  padding: 10px !important;
  margin: 5px !important;
  border-radius: 7px !important;
  font-family: 'Gilroy';
  font-weight: 400;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover {
  background-color: #fff !important;
  color: #05498c !important;
  border: solid 2px #05498c;
}

.title-products-form {
  font-family: 'gilroy';
  padding: 20px 10px;
}

.woocommerce .elementor-1109 .elementor-element.elementor-element-6409a68 .flex-control-thumbs {
  margin-right: calc(0px / 2);
  margin-left: calc(0px / 2);
}

.woof_container .woof_container_inner input[type="search"] {
  line-height: normal !important;
  border: solid 1px #ccc;
  font-size: 16px;
  font-family: 'Gilroy';
  font-style: normal;
  font-weight: 400px;
  padding: 12px 20px;
  border-radius: 7px;
  color: #000 !important;
  /*background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/lens-1.svg');*/
  /* Sostituisci con il percorso dell'icona */
  background-repeat: no-repeat;
  background-position: 10px center;
  /* Posiziona l'icona a sinistra */
  background-size: 15px 15px;
  /* Regola la dimensione dell'icona */
  margin-top: -15px;
}
@media only screen and (max-width: 389px) {
  .woof_container .woof_container_inner input[type="search"] {
    margin-top: 5px;
  }
}

.woof_container {
  margin-bottom: 1px;
}

.chosen-container-single .chosen-single span {
  font-size: 18px;
  color: #000;
}

.chosen-container-single .chosen-single {
  border-bottom: 1px solid #000;
  /* Imposta il bordo inferiore */
  border-left: none;
  /* Assicura che il bordo sinistro non venga visualizzato */
  border-right: none;
  /* Assicura che il bordo destro non venga visualizzato */
  border-top: none;
  /* Assicura che il bordo superiore non venga visualizzato */
  border-radius: 0;
  /*
  height: 51px !important;
  padding: 18px 0 2px 0px;
  */
  height: 40px !important;
  padding: 10px 0 2px 0px;
}
.chosen-container-single .chosen-single div {
  top: -8px;
}

.chosen-container-single .chosen-single div b {
  background-position: 0px 20px !important;
}

.button.woof_submit_search_form {
  margin: 10px 5px 20px 5px !important;
}

.button.woof_reset_search_form {
  font-family: 'Gilroy' !important;
  background-color: #fff !important;
  border: solid 0px #05498c !important;
}

.button:hover.woof_reset_search_form {
  color: #b6b6b6 !important;
}

.elementor-1201 .elementor-element.elementor-element-44b38b0f .elementor-heading-title {
  font-family: "Gilroy", Sans-serif;
  font-size: 35px;
  text-align: left;
}

.woocommerce ul.products li.product a img {
  border-radius: 10px;
}

#tab-key-features, #tab-product-information, #tab-description {
  font-family: 'Gilroy';
  line-height: 1.8em;
  padding: 20px 10px 30px 10px;
}

@media only screen and (max-width: 767px) {
  #tab-key-features, #tab-product-information, #tab-description {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
}

.custom-upsells h2 {
  font-size: 30px;
  line-height: 1.8em;
}

.custom-cross-sells h2 {
  font-size: 30px;
  line-height: 1.8em;
}

.woocommerce-loop-product__title {
  font-size: 1.5em !important;
}

.custom-upsells h2,
.custom-cross-sells h2 {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 30px;
  padding-bottom: 10px;
}

.custom-upsells h2::after,
.custom-cross-sells h2::after {
  content: "";
  flex-grow: 1;
  height: 5px;
  border-radius: 10px;
  background-color: #05498c;
  margin-left: 20px;
}

/* Escludere la linea dai titoli dei post */
.custom-upsells h2.woocommerce-loop-product__title::after,
.custom-cross-sells h2.woocommerce-loop-product__title::after {
  content: none !important;
}

/* Setter Trays */
.product-cat-setter-trays .custom-upsells h2::after,
.product-cat-setter-trays .custom-cross-sells h2::after {
  background-color: #56b8d6;
}

/* Chick Boxes */
.product-cat-chick-boxes .custom-upsells h2::after,
.product-cat-chick-boxes .custom-cross-sells h2::after {
  background-color: #fdc300;
}

/* Chicks Transport Systems */
.product-cat-chicks-transport-systems .custom-upsells h2::after,
.product-cat-chicks-transport-systems .custom-cross-sells h2::after {
  background-color: #816980;
}

/* Eggs Transport Systems */
.product-cat-eggs-transport-systems .custom-upsells h2::after,
.product-cat-eggs-transport-systems .custom-cross-sells h2::after {
  background-color: #d87b0e;
}

/* Hatcher Baskets */
.product-cat-hatcher-baskets .custom-upsells h2::after,
.product-cat-hatcher-baskets .custom-cross-sells h2::after {
  background-color: #51b47a;
}

/* stampa attributi */
.custom-product-attributes p.attribute-label {
  font-weight: bold;
  margin-bottom: 0;
  Font-family: 'Gilroy';
}

.custom-product-attributes span.attribute-value {
  display: block;
  margin-bottom: 0px;
}

.custom-product-attributes span.attribute-value:nth-of-type(1) {
  margin-bottom: 15px;
}

/*carosello upsells e crossels*/
.custom-upsells-swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.custom-upsells-swiper .swiper-slide img {
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}

.custom-upsells-swiper .swiper-slide h3 a {
  font-size: 25px;
}

.custom-upsells-swiper .swiper-slide p {
  font-size: 18px;
  line-height: 25px;
}

.custom-upsells p {
  font-size: 18px;
  line-height: 25px;
  font-family: 'Gilroy' !important;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after, .swiper-button-next:after, .swiper-rtl .swiper-button-prev:after {
  display: none;
}

.custom-upsells-swiper .swiper-wrapper {
  padding-bottom: 60px;
}

.custom-upsells-pagination {
  bottom: 40px !important;
}

.custom-upsells-prev,
.custom-upsells-next {
  width: 40px !important;
  height: 40px !important;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: auto !important;
  bottom: 0px !important;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

.custom-upsells-prev {
  right: 60px !important;
  left: auto !important;
  background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/arrow-left.svg');
}

.custom-upsells-next {
  right: 10px;
  background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/arrow-right.svg');
}

.custom-cross-sells-swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.custom-cross-sells-swiper .swiper-slide img {
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}

.custom-cross-sells-swiper .swiper-slide h3 a {
  font-size: 25px;
}

.custom-cross-sells-swiper .swiper-slide p {
  font-size: 18px;
  line-height: 25px;
}

.custom-cross-sells p {
  font-size: 18px;
  line-height: 25px;
  font-family: 'Gilroy' !important;
}

.custom-cross-sells-swiper .swiper-wrapper {
  padding-bottom: 60px;
}

.custom-cross-sells-pagination {
  bottom: 40px !important;
}

.custom-cross-sells-prev,
.custom-cross-sells-next {
  width: 40px !important;
  height: 40px !important;
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: auto !important;
  bottom: 0px !important;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

.custom-cross-sells-prev {
  right: 60px !important;
  left: auto !important;
  background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/arrow-left.svg');
}

.custom-cross-sells-next {
  right: 10px;
  background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/arrow-right.svg');
}

.custom-cross-sells.custom-cross-sells-carousel {
  margin-bottom: 45px;
}

/* singolo cross sells upsells */
.custom-cross-sell-single p {
  font-size: 18px;
  line-height: 25px;
  font-family: 'Gilroy' !important;
}

.custom-cross-sell-single-item,
.custom-upsell-single-item {
  /*max-width: 425px;*/
  max-width: 33.33%;
}

.custom-cross-sell-single-item:first-child,
.custom-upsell-single-item:first-child {
  margin-right: 10px;
}

@media only screen and (max-width: 1199px) {

  .custom-cross-sell-single-item,
  .custom-upsell-single-item {
    max-width: 49%;
  }
}

@media only screen and (max-width: 960px) {

  .custom-cross-sell-single-item,
  .custom-upsell-single-item {
    max-width: 100%;
  }

  .custom-cross-sell-single-item h3 a,
  .custom-upsell-single-item h3 a {
    font-size: 25px !important;
  }

  .custom-upsells h2 {
    font-size: 25px;
    line-height: 1.8em;
  }

  .custom-cross-sells h2 {
    font-size: 25px;
    line-height: 1.8em;
  }

  .custom-cross-sell-single-item:first-child,
  .custom-upsell-single-item:first-child {
    margin-right: 0px;
  }
}

@media only screen and (min-width: 961px) {

  .custom-cross-sell-single-item,
  .custom-upsell-single-item {
    float: left;
  }
}

@media only screen and (min-width: 1200px) {

  .custom-cross-sell-single-item:first-child,
  .custom-upsell-single-item:first-child {
    margin-right: 20px;
  }
}

.custom-cross-sell-single-item::after,
.custom-upsell-single-item::after {
  content: "";
  clear: both;
  display: table;
}

.custom-cross-sell-single-item img,
.custom-upsell-single-item img {
  -webkit-border-radius: 15px !important;
  -moz-border-radius: 15px !important;
  border-radius: 15px !important;
}

.custom-cross-sell-single-item h3 a,
.custom-upsell-single-item h3 a {
  font-size: 25px !important;
  font-family: 'Gilroy' !important;
}

.custom-cross-sell-single-item p,
.custom-upsell-single-item p {
  font-size: 18px;
  line-height: 25px;
  font-family: 'Gilroy' !important;
}

/* archivio prodotti */
.elementor-widget-wc-archive-products h2.woocommerce-loop-product__title {
  font-size: 25px !important;
}

.custom-product-attributes p.attribute-label {
  font-size: 18px;
  font-family: 'Gilroy' !important;
}

.nv-product-tags span.detail-label {
  font-size: 18px;
}

.nv-product-category-image {
  width: 80px;
  margin-left: -10px;
}

.woof_products_top_panel li span, .woof_products_top_panel2 li span {
  background-image: url("https://www.bestpoultrytech.com/wp-content/uploads/2025/03/close.svg") !important;
  Padding-right:25px;
}

.custom-product-attributes span.attribute-value {
  font-family: 'Gilroy' !important;
}

/* forzatura stampa prodotti su una colonna da smartphine negli archivi prodotti (es. shop) */
@media only screen and (max-width: 575px) {
	body.archive .elementor-products-grid ul.products.elementor-grid {
		display: block !important;
	}
}

.filters-title-injected {
  font-family: 'GIlroy';
  background-image: url('https://www.bestpoultrytech.com/wp-content/uploads/2025/01/lens-1.svg');
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 15px 15px;
  padding-left: 35px;
}
@media only screen and (max-width: 389px) {
  .filters-title-injected {
    margin-bottom: 10px !important;
  }
}

.woocommerce .woocommerce-breadcrumb :not(body.single-product) {
  padding: 0;
  margin-bottom: 0;
}

body.single-product .woocommerce-breadcrumb {
  margin-top: 30px !important;
}

/* BARRA LATERALE E BUGFIX MARGIN TOP E DIMENSIONE CONTENUTO START */

.nv-sidebar {
  padding-top: 50px;
}
.elementor-1201 .elementor-element.elementor-element-5f14f1b .elementor-nav-menu--main:not(.elementor-nav-menu--layout-horizontal) .elementor-nav-menu > li:not(:last-child) {
  margin-bottom: 0px;
}
@media only screen and (max-width: 960px) {
  .nv-sidebar {
    position: fixed;
    top: 100px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  .nv-sidebar.sidebar-open {
    transform: translateX(0);
  }
  header > div:first-child {
    height: 100px;
  }
  #woof-filters {
    width: 100% !important;
  }
  #woof-filters .chosen-container.chosen-container-single {
    width: 100% !important;
  }
  .nv-sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
  }
  .nv-sidebar-close img {
    width: 37px;
    height: 37px;
  }
  .nv-sidebar-toggle {
    display: block;
  }
  .nv-sidebar-toggle:hover {
    cursor: pointer;
  }
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .nv-sidebar {
    width: 50% !important;
  }
}
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .nv-sidebar {
    width: 35% !important;
  }
}
@media only screen and (min-width: 961px) {
  .nv-sidebar-close {
    display: none;
  }
  .nv-sidebar-toggle {
    display: none;
  }
}
@media only screen and (min-width: 961px) and (max-width: 1024px) {
  .nv-sidebar {
    position: fixed;
    top: 100px !important;
    height: 100%;
    background: #fff;
  }
}

.custom-sticky-header {
  position: fixed;
  top: 0;
  z-index: 9999;
  background-color: white; /* o il colore del tuo header */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* effetto ombra se ti serve */
  transition: all 0.3s ease;
  width: 100% !important;
}

@media only screen and (min-width: 1025px) {
  .page-body-wrapper-single-product {
    margin-top: 190px !important;
  }
  .page-body-wrapper-archivio-prodotto {
    margin-top: 190px !important;
  }
  .page-body-wrapper-generico {
    margin-top: 120px !important;
  }
}
@media only screen and (min-width: 961px) and (max-width: 1024px) {
  .page-body-wrapper-single-product,
  .page-body-wrapper-archivio-prodotto,
  .page-body-wrapper-generico {
    width: 60% !important;
    padding: 0 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 960px) {
    .elementor-73 .elementor-element.elementor-element-945edc7 .elementor-nav-menu--main > .elementor-nav-menu > li > .elementor-nav-menu--dropdown, .elementor-73 .elementor-element.elementor-element-945edc7 .elementor-nav-menu__container.elementor-nav-menu--dropdown {
        margin-top: 20px !important;
    }
}


@media only screen and (max-width: 480px) {
  .elementor-element-ebbd224 {
    position: absolute !important;
  }
}
@media only screen and (max-width: 960px) {
  .elementor-element-ebbd224 {
    padding-top: 50px!important;
  }
}

/* Fix specifico per Safari START */

@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) {
    .nv-sidebar {
      -webkit-transform: translate3d(0, 0, 0);
      will-change: auto !important;
    }

    .nv-sidebar.sidebar-open {
      -webkit-transform: translateX(0) !important;
      transform: translateX(0) !important;
    }

    /* Disabilita hardware acceleration su Safari per la sidebar */
    .elementor-sticky--active .nv-sidebar {
      -webkit-backface-visibility: hidden;
      -webkit-perspective: 1000;
    }
  }
}

/* Previeni CLS durante lo scrolling */
/*
.nv-sidebar {
  contain: layout style paint;
}

@media only screen and (min-width: 961px) {
  .nv-sidebar {
    position: fixed;
    transform: none !important;
  }
}
*/

/* Fix specifico per Safari END */


@media only screen and (max-width: 389px) {
  .elementor-60 .elementor-element.elementor-element-cf3a463,
  .elementor-1201 .elementor-element.elementor-element-27c267b {
    display: block !important;
  }
  .nv-sidebar {
    padding-top: 0 !important;
  }
  body.product-template-default .nv-sidebar {
    padding-top: 20px !important;
  }
  body.product-template-default .filters-title-injected {
    margin-top: -15px;
  }
  .button.woof_submit_search_form {
    margin-top: 0 !important;
  }
}

/* Blocco scroll mobile quando sidebar aperta - VERSIONE DEFINITIVA */
/*
body.nv-sidebar-open {
    position: fixed !important;
    top: var(--scroll-y, 0) !important;
    width: 100% !important;
    overflow: hidden !important;
    left: 0 !important;
    right: 0 !important;
}
*/

/*
@media (max-width: 960px) {
    .nv-sidebar {
        overflow-y: auto;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
}
*/

@media (max-width: 960px) {
    .nv-sidebar {
        overflow-y: auto;
        max-height: 100vh;
        -webkit-overflow-scrolling: touch;
    }
}

/* Fix z-index Chosen - FORZA con !important */
.nv-sidebar .chosen-container {
    position: relative !important;
    z-index: 1 !important;
}

/* Quando è attivo, sopra tutto */
.nv-sidebar .chosen-container-active.chosen-with-drop {
    z-index: 9999 !important;
}

/* Dropdown sempre in cima */
.nv-sidebar .chosen-drop {
    z-index: 10000 !important;
}

/* IMPORTANTE: Impedisci ai dropdown di seguire lo scroll */
.nv-sidebar[style*="position: relative"] .chosen-drop {
    position: absolute !important;
}

/* Fix z-index Chosen - SOLO questo */
.nv-sidebar:not(.elementor-sticky__spacer) .chosen-container {
    position: relative !important;
    z-index: 1 !important;
}

.nv-sidebar:not(.elementor-sticky__spacer) .chosen-container-active.chosen-with-drop {
    z-index: 9999 !important;
}

.nv-sidebar:not(.elementor-sticky__spacer) .chosen-drop {
    z-index: 10000 !important;
}

#woof-filters select {
  border: 0px;
  border-bottom: 1px solid black;
  padding-left: 0;
  font-size: 18px;
  border-radius: 0;
  background: #fff;
}
/* BARRA LATERALE E BUGFIX MARGIN TOP E DIMENSIONE CONTENUTO END */
