[v-cloak] { display: none !important }

/* stili home */

#banner {
  background-size: cover;
  position: relative;
  height: 400px;
  max-height: 400px;
}

#banner > img {
  width: 100%;
  position: absolute;
  opacity: 0.8;
  top: 0;
  left: 0;
}

.errorlist {
  color: red;
}

/* Effetto pulse riutilizzabile su qualsiasi bottone Bootstrap: il colore
   dell'anello segue automaticamente il colore del testo del bottone
   (es. btn-warning, btn-primary, btn-outline-*, ecc.) */
@property --pulse-level {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --pulse-active {
  syntax: "<number>";
  inherits: false;
  initial-value: 1;
}

@keyframes pulse {
  0%,
  100% {
    --pulse-level: 0;
  }

  60% {
    --pulse-level: 1;
  }
}

@keyframes pulse-cycle {
  /* Mantengo il pulse attivo durante il primo minuto */
  0%,
  49.999% {
    --pulse-active: 1;
  }

  /* Mantengo il pulse fermo durante il secondo minuto */
  50%,
  100% {
    --pulse-active: 0;
  }
}

.pulse {
  transform: scale(
    calc(
      1 + 0.05 * var(--pulse-level) * var(--pulse-active)
    )
  );

  box-shadow:
    0 0 0
    calc(
      0.5rem * var(--pulse-level) * var(--pulse-active)
    )
    color-mix(in srgb, currentColor 35%, transparent);

  animation:
    pulse 1s ease-out infinite,
    pulse-cycle 60s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    transform: none;
    box-shadow: none;
  }
}
