#last-news {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: 0.3s;
  z-index: 10;
  opacity: 1;
}
#last-news.invisible {
  opacity: 0;
  z-index: -1;
}
#last-news .post {
  position: absolute;
  float: left;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-height: 300px;
  padding: 25px;
  background: #528403;
  color: #fff;
  border-radius: 25px;
}
#last-news .post .title {
  position: relative;
  float: left;
  width: 100%;
  font-size: 25px;
  font-weight: 700;
}
#last-news .post .text {
  position: relative;
  float: left;
  width: 100%;
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: hidden;
  margin-top: 10px;
  font-size: 15px;
}
#last-news .btn {
  position: relative;
  float: left;
  left: 50%;
  transform: translate(-50%);
  margin-top: 10px;
  padding: 10px 20px;
  color: #528403;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}
#prodotti-intro {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, #5b9105 0%, var(--brand) 100%);
  color: #fff;
  padding: calc(var(--h-header) + var(--header-top) + 50px) 0 130px 0;
  overflow: hidden;
}

#prodotti-intro .intro-head {
  text-align: center;
  margin-bottom: 30px;
}

#prodotti-intro .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

#prodotti-intro h1 {
  margin: 0 0 12px 0;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.18);
}

#prodotti-intro .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

#prodotti-intro .breadcrumb a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

#prodotti-intro .breadcrumb a:hover {
  text-decoration: underline;
}

#prodotti-intro .breadcrumb .sep {
  opacity: 0.5;
}

#prodotti-intro .cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 10px;
}

#prodotti-intro .cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 16px 10px 14px 10px;
  height: 140px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#prodotti-intro .cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

#prodotti-intro .cat-card .img {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 6px;
}

#prodotti-intro .cat-card .img img {
  max-height: 80px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

#prodotti-intro .cat-card:hover .img img {
  transform: scale(1.06) rotate(-2deg);
}

#prodotti-intro .cat-card .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #333;
  text-transform: uppercase;
}

#prodotti-intro .cat-card.highlight {
  background: linear-gradient(135deg, #f0f7d8 0%, #e2eebd 100%);
}

#prodotti-intro .cat-card.highlight .label {
  color: var(--brand-dark);
}

#prodotti-intro .sub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

#prodotti-intro .sub-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

#prodotti-intro .sub-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

#prodotti-intro .sub-chip.active {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

#prodotti-intro .hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 110px;
  pointer-events: none;
  display: block;
}

#prodotti-list {
  position: relative;
  width: 100%;
  padding: 30px 0 50px 0;
  background: #fff;
}

#products {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
}
#products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
}

#products .product {
  position: relative;
  width: 100%;
  margin: 0;
  border: 1px solid #eee;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
}
#products .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: #cdd9b1;
}
#products .product .link-area {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}
#products .product .link-area:hover .title h4 {
  color: #528403;
}
#products .product.offer {
  border-color: #cfe0a3;
}
#products .product.offer .price .amount {
  color: #528403;
}
#products .product .img-offer {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: #fd7200;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#products .product .img-offer i {
  font-size: 12px;
}
#products .product .img {
  position: relative;
  float: left;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #ffffff;
}
#products .product .img > img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 78%;
  max-height: 78%;
  height: auto;
  width: auto;
  transition: transform 0.35s ease;
}
#products .product:hover .img > img {
  transform: translate(-50%, -50%) scale(1.06);
}
#products .product .title {
  position: relative;
  float: left;
  width: calc(100% - 32px);
  height: 42px;
  margin: 16px 16px 4px 16px;
  font-size: 15px;
  text-align: center;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
#products .product .title h4 {
  margin: 0;
  font-weight: 600;
  color: #333;
  line-height: 1.25;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#products .product .price {
  position: relative;
  float: left;
  width: calc(100% - 32px);
  margin: 4px 16px 12px 16px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #333;
  letter-spacing: -0.3px;
}
#products .product .price .unit {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #888;
  letter-spacing: 0;
}
#products .product .quantity-row {
  position: relative;
  width: calc(100% - 32px);
  margin: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#products .product .quantity {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}
#products .product .quantity #quantity {
  position: relative;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  height: 38px;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
}
#products .product .quantity input {
  width: 100%;
  height: 38px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  outline: 0;
  text-align: center;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
#products .product .quantity .icon {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--qty-btn-bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  border: none;
  padding: 0;
  color: var(--qty-btn-fg);
  flex-shrink: 0;
}
#products .product .quantity .icon:first-child {
  border-radius: 8px 0 0 8px;
}
#products .product .quantity .icon:last-child {
  border-radius: 0 8px 8px 0;
}
#products .product .quantity .icon:hover {
  background: var(--qty-btn-bg-hover);
  color: var(--qty-btn-fg-hover);
}
#products .product .quantity .icon i {
  font-size: 14px;
  line-height: 1;
}
#products .product .add-cart {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 0;
}
#products .product .add-cart:hover {
  background: var(--brand-dark);
}
#products .product .add-cart:active {
  transform: scale(0.96);
}
#products .product .add-cart i {
  font-size: 18px;
  line-height: 1;
}
#products .product .add-cart.added {
  background: #2f7a04;
}
#products .product .add-cart.bump i {
  animation: cart-bump 0.45s ease;
}
@keyframes cart-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
#pages {
  position: relative;
  float: left;
  width: 100%;
  margin: 5% 0;
  margin-bottom: -2%;
  text-align: center;
}
#pages .pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
#pages .pagination .pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
  box-sizing: border-box;
}
#pages .pagination .pg-btn:hover {
  background: #528403;
  color: #fff;
  border-color: #528403;
}
#pages .pagination .pg-btn.active {
  background: #528403;
  color: #fff;
  border-color: #528403;
  pointer-events: none;
}
#pages .pagination .pg-btn.arrow {
  padding: 0 10px;
}
#pages .pagination .pg-btn.arrow i {
  font-size: 15px;
  transition: 0.2s;
}
#pages .pagination .pg-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
#pages .pagination .pg-ellipsis {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  color: #888;
  font-weight: 700;
}
#title {
  position: relative;
  float: left;
  width: 100%;
  padding-top: calc(var(--h-header) + var(--header-top) + 30px);
  text-align: center;
  font-size: 50px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.75);
  color: var(--brand);
  padding-bottom: 3%;
}
#access {
  position: relative;
  float: left;
  width: 40%;
  margin-top: 3%;
  left: 50%;
  transform: translate(-50%);
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  padding: 3% 5%;
  border: 2px solid #528403;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 25px;
  color: #528403;
  cursor: pointer;
  transition: 0.3s;
}
#access:hover {
  background: #fff;
}
@media (max-width: 1100px) {
  #prodotti-intro .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1000px) {
  #title {
    font-size: 30px;
  }
  #last-news .post {
    width: 80%;
    max-height: 500px;
    padding: 5%;
  }
  #last-news .post .text {
    width: 100%;
    max-height: 350px;
  }
  #prodotti-intro {
    padding: calc(var(--h-header) + var(--header-top) + 30px) 0 90px 0;
  }
  #prodotti-intro h1 {
    font-size: 30px;
  }
  #prodotti-intro .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  #prodotti-intro .cat-card {
    height: 120px;
  }
  #prodotti-intro .cat-card .img img {
    max-height: 60px;
  }
  #prodotti-intro .hero-wave {
    height: 60px;
  }
  #products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  #products .product {
    border-radius: 14px;
    padding-bottom: 12px;
  }
  #products .product .title {
    height: 38px;
    font-size: 13px;
    margin: 12px 12px 2px 12px;
    width: calc(100% - 24px);
  }
  #products .product .price {
    font-size: 18px;
    margin: 2px 12px 10px 12px;
    width: calc(100% - 24px);
  }
  #products .product .price .unit {
    font-size: 11px;
  }
  #products .product .quantity-row {
    width: calc(100% - 20px);
    margin: 0 10px 4px 10px;
    gap: 6px;
  }
  #products .product .quantity {
    flex: 1 1 auto;
    min-width: 0;
    border-radius: 8px;
  }
  #products .product .quantity #quantity {
    flex: 1 1 auto;
    height: 30px;
    min-width: 0;
  }
  #products .product .quantity input {
    width: 100%;
    height: 30px;
    font-size: 15px;
    padding: 0;
  }
  #products .product .quantity .icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  #products .product .quantity .icon i {
    font-size: 14px;
  }
  #products .product .add-cart {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }
  #products .product .add-cart i {
    font-size: 18px;
  }
  #products .product .img-offer {
    font-size: 10px;
    padding: 5px 8px;
  }
  #access {
    width: 80%;
    margin-top: 5%;
    font-size: 25px;
    border-radius: 15px;
  }
}
