
.bottone {
  position: relative;
  display: block;
  width: 100%;
  padding: var(--s-16) var(--s-24);
  overflow: hidden;
  cursor: pointer;

  background-color: var(--rosso);
  background-image:
    repeating-linear-gradient(90deg, rgba(250,249,247,.038) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(0deg,  rgba(250,249,247,.038) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(45deg, rgba(250,249,247,.022) 0 1px, transparent 1px 17px);

  color: var(--bianco-lino);
  font-family: var(--font-display);
  font-size: var(--t-12);
  font-weight: 400;
  letter-spacing: var(--tracking-medio);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;

  transition:
    background-color var(--t-medio) var(--ease),
    color var(--t-medio) var(--ease);
}

.bottone::before,
.bottone::after {
  content: "";
  position: absolute;
  left: var(--s-16);
  right: var(--s-16);
  height: 1px;
  background: color-mix(in srgb, var(--bianco-lino) 76%, transparent);
  transform: scaleX(var(--apertura, .16));
  transform-origin: center;
  transition:
    transform var(--t-ampio) var(--ease),
    background-color var(--t-medio) var(--ease);
}

.bottone::before { top: 9px; }
.bottone::after  { bottom: 9px; }

.bottone:hover,
.bottone:focus-visible {
  --apertura: 1;
  background-color: var(--rosso-cupo);
}

.bottone:hover::before,
.bottone:hover::after,
.bottone:focus-visible::before,
.bottone:focus-visible::after {
  background: var(--bianco-lino);
}

.bottone:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
}

.bottone:active { background-color: var(--inchiostro); }

.bottone[disabled],
.bottone[aria-disabled="true"] {
  opacity: .35;
  cursor: not-allowed;
}
.bottone[disabled]:hover,
.bottone[aria-disabled="true"]:hover {
  --apertura: .16;
  background-color: var(--rosso);
}


.bottone--vuoto {
  background-color: transparent;
  background-image: none;
  color: var(--inchiostro);
  border: 1px solid var(--oro);
}

.bottone--vuoto::before,
.bottone--vuoto::after { display: none; }

.bottone--vuoto:hover,
.bottone--vuoto:focus-visible {
  background-color: var(--rosso);
  border-color: var(--rosso);
  color: var(--bianco-lino);
}

.bottone--guasto {
  border-color: var(--rosso);
  color: var(--rosso);
}

.bottone--vuoto:active {
  background-color: var(--rosso-cupo);
  border-color: var(--rosso-cupo);
}


.freccia {
  display: grid;
  place-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--inchiostro);
  background: color-mix(in srgb, var(--fondo-scatto) 78%, transparent);
  transition:
    background-color var(--t-rapido) var(--ease),
    color var(--t-rapido) var(--ease),
    opacity var(--t-medio) var(--ease);
}

.freccia svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.freccia:hover {
  background: var(--fondo-scatto);
  color: var(--rosso);
}

.freccia:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: -2px;
}


.bottone--stretto {
  width: auto;
  display: inline-block;
  padding-inline: var(--s-48);
}


@media (prefers-reduced-motion: reduce) {
  .bottone::before,
  .bottone::after { transition: background-color var(--t-medio) var(--ease); }
  .bottone { --apertura: 1; }
}
