.shop-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1.5rem;
  row-gap: 2.5rem;
  box-sizing: border-box;
}

/* Card */
.shop-card-item {
  flex: 0 0 calc(20% - 1.5rem); /* Ho usato 'rem' per il gap per coerenza */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  background-color: #d0d0d0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Immagini */
.shop-card-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Contenuto card */
.shop-card-content {
  text-align: center;
}

.shop-card-content h3 {
  margin: 0;
  padding-bottom: 0.8em;
  padding-top: 0.8em;
  font-size: 1.3em;
  color: #ffffff;
  background-color: #bb0214;
}

.shop-card-content p {
  font-size: 1.1em;
  margin-bottom: 10px;
  line-height: 1.2;
  font-weight: 400;
}

.shop-card-content h6 {
  font-size: 0.9em;
  color: #00ab41;
  background-color: #333333;
  padding: 6px;
  font-weight: 400;
}

/* Link del blog con shine */
.shop-blog-link {
  position: relative;
  display: inline-block;
  color: #ffffff;
  background-color: #333333;
  padding: 8px 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 1em;
  font-weight: bold;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.2s ease;
  z-index: 1;
}

/* Effetto shine */
.shop-blog-link::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: skewX(-20deg);
}

/* Animazione al passaggio del mouse */
.shop-blog-link:hover::after {
  animation: shine-animation 0.8s ease forwards;
}

@keyframes shine-animation {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Footer */
.shop-card-footer {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 8px;
}

/* Link Google Maps (CTA per la mappa) */
.shop-maps-link {
  text-decoration: none;
  display: inline-block;
  padding-bottom: 8px;
  cursor: pointer;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Icona Mappa */
.shop-maps-icon {
  width: 2em;
  object-fit: contain;
  display: inline-block;
  padding-top: 2px;
}


/* --- Responsive Ottimizzato --- */

@media (max-width: 1200px) {
  /* Su schermi più piccoli, ad esempio laptop, mostra 3 colonne */
  .shop-card-item {
    flex: 0 0 calc(33.333% - 1.5rem);
  }
.shop-card-content h3 {
  margin: 0;
  padding-bottom: 0.8em;
  padding-top: 0.8em;
  padding-left: 0.2em;
  padding-right: 0.2em;
  font-size: 1.0em;
  color: #ffffff;
  background-color: #bb0214;
}

.shop-card-content p {
  font-size: 0.9em;
  margin-bottom: 10px;
  padding-left: 2px;
  padding-right: 2px;
  line-height: 1.2;
  font-weight: 400;
}
}

@media (max-width: 992px) {
  /* Su tablet, mostra 2 colonne */
  .shop-card-item {
    flex: 0 0 calc(50% - 1.5rem);
  }

.shop-card-content h3 {
  margin: 0em;
  padding-bottom: 0.8em;
  padding-top: 0.8em;
  padding-left: 0.2em;
  padding-right: 0.2em;
  font-size: 1.0em;
  color: #ffffff;
  background-color: #bb0214;
}

.shop-card-content p {
  font-size: 0.9em;
  margin-bottom: 10px;
  padding-left: 2px;
  padding-right: 2px;
  line-height: 1.2;
  font-weight: 400;
}
}

@media (max-width: 390px) {
  /* Su smartphone, mostra 1 colonna a tutta larghezza */
  .shop-card-item {
    flex: 0 0 100%;
  }
}
