:root {
  --thm-primary-color: #ACD04F;
  --thm-primary-color-rgb: 172, 208, 79;
  --thm-secondary-color: #345336;
  --thm-black-bg: #345336;
  --thm-black-bg-rgb: 52, 83, 54;
  --thm-border-color: #345336;
}

.product-page__sidebar-search-box .search-form {
  position: relative;
}

.product-page__sidebar-search-box .title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-page__sidebar-search-box .title .reset-filters-btn {
  font-size: 12px;
  line-height: 1;
  color: #7d6b4a;
  border: 1px solid #7d6b4a;
  border-radius: 16px;
  padding: 4px 10px;
  display: inline-block;
  font-weight: 600;
}

.product-page__sidebar-search-box .title .reset-filters-btn:hover {
  color: #ffffff;
  background-color: #7d6b4a;
}

.product-page__sidebar-categories-list li.active > a {
  font-weight: 700;
}

.product-page__sidebar-categories-list .cat-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.single-shop-style1__discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #c43d2f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1;
}

.product-discount-badge {
  display: inline-block;
  margin-top: 10px;
  background: #c43d2f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
}

.agricom-cart-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 360px;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e8dfcf;
  border-left: 4px solid #7d6b4a;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 9999;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.agricom-cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.agricom-cart-toast__icon i {
  color: #7d6b4a;
  font-size: 18px;
  line-height: 1;
}

.agricom-cart-toast__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 14px;
  color: #2a241b;
  line-height: 1.2;
}

.agricom-cart-toast__text {
  margin: 0;
  color: #6d6251;
  font-size: 13px;
  line-height: 1.3;
  word-break: break-word;
}

.agricom-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.agricom-cart-qty-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #d8cfbd;
  background: #fff;
  color: #7d6b4a;
  border-radius: 50%;
  font-weight: 700;
  line-height: 1;
}

.agricom-cart-qty-controls input {
  width: 64px;
  height: 36px;
  border: 1px solid #d8cfbd;
  border-radius: 8px;
  text-align: center;
  padding: 0 6px;
}

.agricom-cart-empty {
  padding: 24px;
  text-align: center;
  color: #7d6b4a;
  font-weight: 600;
}

.cart-info .left h4,
.cart-info .right h4 {
  font-weight: 700;
}

.cart-info #js-cart-items-count,
.cart-info #js-cart-total-price {
  display: inline-block;
  margin-left: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #7d6b4a;
  color: #fff !important;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}

.fieno-crok-hero {
  position: relative;
  background: #f5f4e8;
  padding: 20px 0 14px;
}

.fieno-crok-hero__title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.95;
  font-size: clamp(52px, 12vw, 168px);
  text-transform: uppercase;
  color: transparent;
  background-image: url("../images/resources/sfondo_scritta.webp");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}

.features-style1__inner {
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.features-style1__inner-cards {
  display: flex;
  align-items: center;
}

.features-style1__group-title {
  width: 100%;
  max-width: 250px;
  background: var(--thm-primary-color);
  border-radius: 10px;
  text-align: center;
  padding: 8px 14px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--thm-black-bg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.single-features-style1__content-icon i {
  color: var(--thm-primary-color);
}

.features-style1 .single-features-style1__content {
  padding: 10px 10px 8px;
}

.features-style1 .single-features-style1__content-title {
  margin-top: 6px;
  padding: 0 8px;
}

.features-style1 .single-features-style1__content-title h4 {
  line-height: 1.3;
}

.features-style1 .single-features-style1__content-title h4 a {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.features-style1 .single-features-style1__content-overlay {
  top: 50%;
  left: 6px;
  right: 6px;
  transform: translateY(-50%);
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(var(--thm-black-bg-rgb), 0.78);
  max-height: 90%;
  overflow: hidden;
}

.features-style1__bg-gradient {
  background: linear-gradient(0deg, rgba(var(--thm-black-bg-rgb), 1) 0%, rgba(var(--thm-black-bg-rgb), 0) 80%);
}

.features-style1 .single-features-style1:hover .single-features-style1__content-overlay {
  transform: translateY(-50%);
}

.features-style1 .single-features-style1__content-overlay p {
  margin: 0;
  font-size: 14px;
  line-height: 1.28;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.main-slider-style2__curved-top,
.main-slider-style2__curved-bottom {
  opacity: 0;
  transition: all 1000ms ease;
  z-index: 11;
}

/* Stabilizza il bordo basso dello slider durante il cambio slide */
.main-slider-style2 {
  overflow: hidden;
  background-color: transparent;
}

.main-slider-style2 .banner-slider,
.main-slider-style2 .swiper-wrapper,
.main-slider-style2 .swiper-slide,
.main-slider-style2__inner {
  height: 100vh !important;
  min-height: 860px;
}

.main-slider-style2 .swiper-wrapper,
.main-slider-style2 .swiper-slide,
.main-slider-style2 .image-layer {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.main-slider-style2__inner {
  height: 100%;
}

.main-slider-style2 .swiper-slide {
  overflow: hidden;
}

.main-slider-style2 .image-layer {
  background-size: cover;
  background-position: center center;
}

.main-slider-style2__curved-top {
  transform: translateY(-36px);
}

.main-slider-style2__curved-bottom {
  transform: translateY(36px);
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-top,
.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-bottom {
  opacity: 1;
  transform: translateY(0);
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-top {
  transition-delay: 1200ms;
}

.main-slider-style2 .swiper-slide-active .main-slider-style2__curved-bottom {
  transition-delay: 2100ms;
}

@media (max-width: 767px) {
  .fieno-crok-hero {
    padding: 14px 0 10px;
  }

  .fieno-crok-hero__title {
    letter-spacing: 0.03em;
    font-size: clamp(36px, 14vw, 62px);
  }
}

@media (max-width: 991px) {
  .main-slider-style2 .banner-slider,
  .main-slider-style2 .swiper-wrapper,
  .main-slider-style2 .swiper-slide,
  .main-slider-style2__inner {
    height: 86vh !important;
    min-height: 700px;
  }

  .main-slider-style2 .container {
    padding: 210px 12px 120px;
  }

  .main-slider-style2__content {
    padding: 82px 8px 86px;
    overflow: visible;
  }

  .main-slider-style2 .big-title h2 {
    font-size: clamp(34px, 9.2vw, 52px);
    line-height: 1.08;
  }

  .main-slider-style2 .title h3 {
    font-size: clamp(20px, 4.8vw, 30px);
    line-height: 1.2;
    text-align: center;
  }

  .main-slider-style2__curved-top,
  .main-slider-style2__curved-bottom {
    left: 0;
    right: 0;
    width: min(330px, 92vw);
    max-width: 92vw;
    font-size: clamp(11px, 2.3vw, 14px);
    letter-spacing: 0.03em;
  }

  .main-slider-style2__curved-bottom {
    bottom: -62px;
  }

  .main-slider-style2 .btn-box {
    padding-top: 20px;
  }

  .main-slider-style2 .btn-one i {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .main-slider-style2 .btn-one .txt {
    padding: 5px 18px;
    line-height: 34px;
    font-size: 15px;
  }
}

/* Navbar sticky (scroll): bianca con scritte nere */
.stricky-header--style1.main-menu,
.stricky-header--style1 .main-menu__wrapper,
.stricky-header--style1 .main-menu__wrapper-inner {
  background-color: #ffffff !important;
}

.stricky-header.stricky-header--style1 .main-menu__list > li > a,
.stricky-header.stricky-header--style1 .main-menu__list > li.current > a,
.stricky-header.stricky-header--style1 .main-menu__list > li:hover > a {
  color: #111111 !important;
}

.stricky-header .main-menu__list > li.dropdown > a:after,
.stricky-header .main-menu__list > li.current.dropdown > a:after,
.stricky-header .main-menu__list > li:hover.dropdown > a:after {
  color: #111111 !important;
}

/* Navbar: rimuove evidenziazione fissa su item corrente */
.main-menu .main-menu__list > li.current > a,
.stricky-header .main-menu__list > li.current > a {
  color: var(--thm-black) !important;
}

.main-menu .main-menu__list > li.current > a::before,
.main-menu .main-menu__list > li.current.dropdown > a::before,
.stricky-header .main-menu__list > li.current > a::before,
.stricky-header .main-menu__list > li.current.dropdown > a::before {
  opacity: 0 !important;
  transform: translateY(5px) !important;
}

.main-menu .main-menu__list > li.current.dropdown > a:after {
  color: #a29f98 !important;
}

/* Ripristina hover anche se il menu item ha classe current */
.main-menu .main-menu__list > li:hover > a,
.stricky-header .main-menu__list > li:hover > a {
  color: var(--thm-primary-color) !important;
}

.main-menu .main-menu__list > li:hover > a::before,
.main-menu .main-menu__list > li:hover.dropdown > a::before,
.stricky-header .main-menu__list > li:hover > a::before,
.stricky-header .main-menu__list > li:hover.dropdown > a::before {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.main-menu .main-menu__list > li:hover.dropdown > a:after,
.stricky-header .main-menu__list > li:hover.dropdown > a:after {
  color: var(--thm-primary-color) !important;
}

/* FAQ: testo dati contatto in bianco (telefono, email, indirizzo, orari) */
.faq-style1__contact-list > ul > li .text p,
.faq-style1__contact-list > ul > li .text p a {
  color: #ffffff !important;
}

.faq-style1__contact-list > ul > li .text p a:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

/* FAQ: titoli contatto in verde chiaro primary */
.faq-style1__contact-list > ul > li .text h4,
.faq-style1__contact-list > ul > li .text h4::before {
  color: var(--thm-primary-color) !important;
}

.faq-style1__contact-list > ul > li .text h4::before {
  background-color: var(--thm-primary-color) !important;
}

/* Pagina contatti: dati variabili nelle card in bianco */
.location-info__single-content-text p,
.location-info__single-content-text p a {
  color: #ffffff !important;
}

/* Preloader: porta il loading su verde scuro */
.loader-wrap .layer .overlay {
  background: #345336 !important;
}

.handle-preloader .animation-preloader .spinner {
  border-color: rgba(255, 255, 255, 0.9) !important;
  border-top-color: #345336 !important;
}

@media (max-width: 575px) {
  .main-slider-style2 .banner-slider,
  .main-slider-style2 .swiper-wrapper,
  .main-slider-style2 .swiper-slide,
  .main-slider-style2__inner {
    height: 78vh !important;
    min-height: 560px;
  }

  .main-slider-style2 .container {
    padding: 188px 10px 108px;
  }

  .main-slider-style2__content {
    padding: 72px 6px 78px;
  }

  .main-slider-style2 .sub-title h5 {
    font-size: 12px;
    line-height: 1.3;
  }

  .main-slider-style2 .big-title h2 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  .main-slider-style2 .title h3 {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  .main-slider-style2__curved-top,
  .main-slider-style2__curved-bottom {
    width: min(300px, 94vw);
    max-width: 94vw;
    font-size: 11px;
  }
}

@media (max-width: 991px) {
  .features-style1__inner-cards {
    flex-direction: column;
    gap: 18px;
  }

  .features-style1__inner + .features-style1__inner .features-style1__group-title {
    margin-top: 12px;
  }

  .features-style1__list.two,
  .features-style1__list.three {
    margin: 0;
  }

  .features-style1__group-title {
    max-width: 220px;
    font-size: 18px;
  }
}

.products-style2 ul.row > li {
  display: flex;
}

.products-style2 .single-products-style2 {
  width: 100%;
  height: 100%;
}

.products-style2 .single-products-style2__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products-style2 .single-products-style2__img {
  margin-top: auto;
}

.footer-links-group-title {
  margin: 16px 0 8px;
  font-size: 18px;
  line-height: 1.2;
  color: #20150d;
}

/* Footer centrale: testi scuri su sfondo chiaro */
.footer-widget-style2__content-title h4,
.footer-widget-style2__content-list li .left p,
.footer-widget-style2__content-list li .left .dot,
.footer-widget-style2__content-list li .right p,
.footer-widget-style2__content-list li .right p.color {
  color: #20150d !important;
}

/* Breadcrumb: patina in secondary scuro invece del marrone */
.breadcrumb-style1-bg::before {
  content: none !important;
  background: none !important;
}

@media (max-width: 1199px) {
  .main-header-style2__content {
    background-color: transparent !important;
  }

  .main-header-style2__content .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .main-header-style2__content-inner {
    padding-left: 0 !important;
    min-height: 72px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .main-header-style2__content-top {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    bottom: auto !important;
    padding: 0 !important;
  }

  .header-logo-box-style2 a img,
  .sticky-logo-box-style1 a img {
    height: 48px !important;
    width: auto !important;
    max-height: none !important;
  }

  .main-header-style2__content-bottom {
    float: none !important;
  }

  .main-header-style2__content-bottom-left {
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .main-menu,
  .main-menu__wrapper,
  .main-menu__wrapper-inner,
  .main-menu-style1__left,
  .main-menu-box {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
  }

  .main-menu .mobile-nav__toggler {
    padding: 0 !important;
    line-height: 1 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 1200px) {
  .main-header-style2__content-bottom-right .space-box {
    display: none !important;
  }

  .main-header-style2__content-bottom-right .header-btn-style2 {
    flex-shrink: 0;
  }

  .main-header-style2__content-bottom-right .header-btn-style2 .btn-one .txt {
    white-space: nowrap;
  }
}
