#btnTornaSu {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 9999;
  
  /* Flexbox per centrare perfettamente l'icona */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Nascosto di default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#btnTornaSu.visibile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.svg-sfondo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Stile dell'icona Bootstrap */
#btnTornaSu i {
  color: #ffffff;
  font-size: 32px; /* Puoi regolare questa grandezza per ingrandire la freccia */
  z-index: 1; /* Assicura che l'icona stia sopra lo sfondo */
}

/* Sfondo azzurro semi-trasparente */
.sfondo-btn {
  fill: #03055e71; 
  transition: fill 0.3s ease;
}

/* Hover: scurisce leggermente lo sfondo */
#btnTornaSu:hover .sfondo-btn {
  fill: #03055e97; 
}

/* Configurazione del bordo che si traccia */
.bordo-btn {
  fill: none;
  stroke: var(--blu);
  stroke-width: 2;
  stroke-dasharray: 192;
  stroke-dashoffset: 192;
  transition: stroke-dashoffset 0.1s ease-out; 
}