/* === MICRO-ANIMAZIONI CSS === */
/* .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
}

input, select {
  transition: all 0.25s ease;
}
input:focus, select:focus {
  transform: scale(1.02);
}

.checkbox-modern span {
  transition: all 0.25s ease;
}
.checkbox-modern input:checked + span {
  transform: scale(1.05);
}

.btn-primary {
  transition: all 0.35s ease, transform 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
} */
/*ANCHOR - Effetto metallico */
.metal_plate {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    color: #1a1a1a;
    padding: 20px;

    /* Genera automaticamente i toni metallici dal colore base */
    --light-color: color-mix(in srgb, var(--base-color) 80%, white 40%);
    --dark-color: color-mix(in srgb, var(--base-color) 80%, black 40%);

    background: linear-gradient(135deg,
            var(--light-color) 0%,
            var(--base-color) 30%,
            var(--dark-color) 60%,
            var(--light-color) 100%);
    background-size: 300% 300%;
    animation: metalShift 10s ease-in-out infinite;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.25),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.metal_plate:hover {
    transform: translateY(-3px);
}

.price-label {
    background-color: var(--color-price, var(--white));
    padding: 10px;
    /* Solo per rendere visibile lo sfondo nell'esempio */
    border-radius: 99px;
    /* Solo per l'estetica */
}

/* Riflesso scorrevole (sheen) */
.metal_plate::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.7) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    opacity: 0;
    transition: transform 1.2s ease, opacity 0.8s ease;
}

.metal_plate:hover::before {
    transform: translateX(250%) rotate(25deg);
    opacity: 0.8;
}

/* Texture leggera per il metallo */
.metal_plate::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.25'/></svg>");
    mix-blend-mode: overlay;
    opacity: 0.05;
}

@keyframes metalShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*ANCHOR - Effetto onda */
.hamon_effect {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 2rem;
  background: var(--grigiochiaro);
  z-index: 1;
}

/* Pseudo-elemento per l’effetto onda */
.hamon_effect::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 50% 100%,
      var(--secondarycolor) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 0% 100%,
      var(--secondarycolor) 0%,
      transparent 70%
    ),
    radial-gradient(
      circle at 100% 100%,
      var(--secondarycolor) 0%,
      transparent 70%
    );
  /* opacity: 0.90; morbido per non coprire i contenuti */
  animation: waveMotion 12s infinite linear;
  z-index: 0;
}

/* Contenuti sopra lo sfondo */
.hamon_effect > * {
  position: relative;
  z-index: 2;
}

/* Animazione effetto ondeggiante */
@keyframes waveMotion {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) translateY(10%) rotate(3deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}