.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/sfondoriso.jpg");
  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(66, 51, 37, 0.78);
  max-height: 90%;
  overflow: hidden;
}

.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: #001706;
}

.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 .swiper-slide {
  overflow: hidden;
}

.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 .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;
  }
}

@media (max-width: 575px) {
  .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;
}

/* Ricette: immagini card uniformi per evitare spazi da rapporti diversi */
.blog-page-style2 .single-blog-page-style2__img {
  height: 245px;
}

.blog-page-style2 .single-blog-page-style2__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Ricette: allinea verticalmente lista card con sidebar */
.ricette-page .blog-style1 {
  padding-top: 0;
}

/* Limita dimensione logo in navbar mantenendo le proporzioni */
.header-logo-box-style1 a img,
.sticky-logo-box-style1 a img {
  display: block;
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 1199px) {
  .header-logo-box-style1 a img,
  .sticky-logo-box-style1 a img {
    max-height: 52px;
  }
}

@media (max-width: 767px) {
  .header-logo-box-style1 a img,
  .sticky-logo-box-style1 a img {
    max-height: 42px;
  }
}

/* Navbar sticky oltre slider: fondo bianco e testi neri */
.stricky-header--style1.main-menu,
.stricky-header--style1 .main-menu__wrapper,
.stricky-header--style1 .main-menu__wrapper-inner,
.stricky-header--style1 .main-menu-box,
.stricky-header.stricked-menu {
  background-color: #ffffff !important;
}

.stricky-header.stricky-fixed {
  background-color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.stricky-header.stricky-fixed .main-menu__wrapper,
.stricky-header.stricky-fixed .main-menu__wrapper-inner,
.stricky-header.stricky-fixed .main-menu-box {
  background-color: #ffffff !important;
}

.stricky-header.stricky-fixed .main-menu__list > li > a {
  color: #111111 !important;
}

.stricky-header.stricky-fixed .main-menu__list > li:hover > a,
.stricky-header.stricky-fixed .main-menu__list > li.current > a,
.stricky-header.stricky-fixed .main-menu__list > li.current-menu-item > a {
  color: #d3a329 !important;
}

/* Slider home: migliore bilanciamento testi come layout demo */
.main-slider-style1__content-left-big-title h2 {
  max-width: 520px;
  line-height: 1.12;
}

.main-slider-style1__content-right-inner {
  max-width: 285px;
  margin: 0 auto;
}

.main-slider-style1__content-right-text p {
  font-size: clamp(18px, 1.15vw, 21px);
  line-height: 1.5;
}

/* Slider home: testo centrale (solo testomarrone) */
.main-slider-style1__center-text-wrap {
  position: relative;
  z-index: 6;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
}

.main-slider-style1 .swiper-slide-active .main-slider-style1__center-text-wrap {
  animation: sliderCenterTextIn 900ms ease 280ms forwards;
}

.main-slider-style1__center-text {
  margin: 0;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 78px);
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

@keyframes sliderCenterTextIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slider home: mantiene l'altezza anche con contenuti testuali/cerchi disattivati */
.main-slider-style1__inner .container {
  min-height: 860px;
}

@media (max-width: 991px) {
  .main-slider-style1__inner .container {
    min-height: 700px;
  }
}

@media (max-width: 767px) {
  .main-slider-style1__inner .container {
    min-height: 560px;
  }

  .main-slider-style1__center-text-wrap {
    max-width: 92%;
  }

  .main-slider-style1__center-text {
    font-size: clamp(28px, 9vw, 44px);
    line-height: 1.15;
  }
}

.blog-page-sidebar__recent-posts-list {
  position: relative;
  display: block;
  margin-top: 14px;
}

.blog-page-sidebar__recent-posts-list li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed rgba(94, 75, 44, 0.25);
}

.blog-page-sidebar__recent-posts-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-page-sidebar__recent-posts-list .img-box {
  width: 74px;
  min-width: 74px;
  height: 74px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.blog-page-sidebar__recent-posts-list .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-page-sidebar__recent-posts-list .img-box .overlay-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 6px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(58, 42, 25, 0.55) 100%);
}

.blog-page-sidebar__recent-posts-list .img-box .overlay-content a {
  color: #fff;
  font-size: 12px;
}

.blog-page-sidebar__recent-posts-list .text-box {
  min-width: 0;
}

.blog-page-sidebar__recent-posts-list .text-box p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.2;
  color: #6f5f48;
}

.blog-page-sidebar__recent-posts-list .text-box p i,
.blog-page-sidebar__recent-posts-list .text-box p span {
  margin-right: 6px;
}

.blog-page-sidebar__recent-posts-list .text-box h4 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.blog-page-sidebar__recent-posts-list .text-box h4 a {
  color: var(--thm-black);
}

.blog-page-sidebar__recent-posts-list .text-box h4 a:hover {
  color: var(--thm-base);
}

/* Chi siamo: estende la shape destra su tutta l'altezza della sezione */
.about-style2__shape {
  top: 0;
  bottom: 0;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.about-style2__shape img {
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
}

/* Footer centrale: testi neri su sfondo personalizzato */
.footer-style2 .single-footer-widget-style2__inner .footer-widget-style2__content-title h4,
.footer-style2 .single-footer-widget-style2__inner .footer-widget-style2__content-list .left p,
.footer-style2 .single-footer-widget-style2__inner .footer-widget-style2__content-list .right p,
.footer-style2 .single-footer-widget-style2__inner .footer-widget-style2__content-list .right p.color {
  color: #000000 !important;
}

/* Home sotto slider: icone in verde scuro */
.what-we-do-style1__content-icon {
  background-color: var(--thm-primary-color) !important;
}

.what-we-do-style1__content-icon-bg {
  display: none !important;
}

.what-we-do-style1__content-icon i {
  color: var(--thm-black-bg) !important;
}

/* Loader: palette verde scuro */
.handle-preloader .loader-section {
  background-color: var(--thm-black-bg) !important;
}

.loader-wrap .layer .overlay {
  background: var(--thm-black-bg) !important;
}

.handle-preloader .animation-preloader .spinner {
  border: 3px solid rgba(255, 255, 255, 0.35) !important;
  border-top-color: #ffffff !important;
}

.handle-preloader .animation-preloader .txt-loading .letters-loading:before {
  color: #ffffff !important;
}

/* Menu mobile: sfondo verde scuro e logo nascosto nel drawer */
.mobile-nav__overlay {
  background-color: var(--thm-black-bg) !important;
}

.mobile-nav__content {
  background-color: var(--thm-black-bg) !important;
}

@media (max-width: 1199px) {
  .mobile-nav__content .logo-box {
    display: none !important;
    margin: 0 !important;
  }
}

