.container-card-brand-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  text-align: center;
  margin: 20px 0;
}

.card-brand-1 {
  background-color: #f2f2f2;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  width: calc(25% - 20px);
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.card-brand-1:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-brand-1 img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.card-brand-1 h5 {
  margin: 10px 0 5px;
  font-size: 0.9rem;
}

.card-brand-1 p {
  font-size: 0.9rem;
  color: #333;
}

.card-brand-1 a {
  display: inline-block;
  margin-top: 8px;
  color: #0073aa;
  font-weight: bold;
  text-decoration: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .card-brand-1 {
    width: calc(33.33% - 20px);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .card-brand-1 h5,
  .card-brand-1 p {
    display: none;
  }

  .card-brand-1 {
    padding: 10px;
    width: calc(50% - 20px); /* due per riga */
  }
}


/*Tasti EMI (grey - red)*/

.btn-emi-1-grey {
  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;
}

.btn-emi-1-grey::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);
}


.btn-emi-1-grey:hover::after {
  animation: shine-animation 0.8s ease forwards;
}

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


.btn-emi-1-red {
  position: relative;
  display: inline-block;
  color: #ffffff;
  background-color: #bb0214;
  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;
}

.btn-emi-1-red::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);
}

.btn-emi-1-red:hover::after {
  animation: shine-animation 0.8s ease forwards;
}

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