@font-face {
  font-family: 'Roboto';
  src: url('../assets/font/Roboto-VariableFont.ttf');
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  width: 100dvw;
  min-height: 100dvh;
}

::-webkit-scrollbar-track {
  border-radius: 0;
  background-color: #000000;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-thumb {
  border-radius: 6px;
  border-width: 1px 3px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0);
  background-color: #363636 !important;
  background-clip: padding-box;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

div.page-content {
  flex: 1;
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Rimosso div.page-content > div { width: 50%; } per risolvere il bug mobile */

footer a {
  width: max-content;
}

a {
  position: relative;
  color: #fff;
}

a::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  border-radius: 4px;
  background-color: green;
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

a:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

a:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.card-custom {
  background-color: var(--bulma-scheme-main-bis) !important;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

.card-custom:hover {
  animation: pulse 1.5s infinite ease-in-out;
}

/* Gestione infallibile dell'header */
.custom-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

/* Su mobile (fino a 768px) lo mette in colonna e lo centra */
@media screen and (max-width: 768px) {
  .custom-header {
    flex-direction: column;
    justify-content: center;
  }
}
