/* --- TEMA CHIARO (Default) --- */
:root {
  --dl-custom:#82ff77;      /* Colore scuro per contrastare sullo sfondo chiaro */
  --dl-sidebar-bg: #042f00 ;  /* Colore acceso per i dettagli */
  --splash-bg-color: #ffffff; /* Sfondo della pagina */
  --splash-font-color: #121212;
}

/* --- TEMA SCURO (Browser Dark Mode) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --splash-bg-color: #121212; /* Sfondo scuro per non abbagliare */
    --splash-font-color:white;
  }
}


.page-loading .splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Helvetica, sans-serif;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;

  /* Modificato: ora usa la variabile definita sopra */
  background-color: var(--splash-bg-color) !important;
  color:var(--splash-font-color);
}


.st0 {
  fill: var(--dl-custom);
}
.st1 {
  fill-rule: evenodd;
  clip-rule: evenodd;
  fill: var(--dl-sidebar-bg);
  stroke: var(--dl-sidebar-bg);
  stroke-width: 4;
  stroke-miterlimit: 10;
}
.st2 {
  fill: var(--dl-sidebar-bg);
  stroke: var(--dl-sidebar-bg);
  stroke-width: 4;
  stroke-miterlimit: 10;
}

body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  display: none;
}

@media all and (orientation: landscape) {
  .splash-screen svg {
    height: 20vw !important;
    width: 20vw !important;
  }
}

@media all and (orientation: portrait) {
  .splash-screen svg {
    height: 60vw !important;
    width: 60vw !important;
  }
}

/* --- ANIMAZIONI --- */

@keyframes animate-svg-stroke-1 {
  0% { stroke-dashoffset: 3399.322265625px; stroke-dasharray: 3399.322265625px; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 3399.322265625px; }
}

@keyframes animate-svg-fill-1 {
  0% { fill: transparent; }
  100% { fill: var(--dl-custom); }
}

.is-animating .svg-elem-1 {
  animation: animate-svg-stroke-1 1s cubic-bezier(0.23, 1, 0.32, 1) 0s both,
             animate-svg-fill-1 0.7s ease-out 0.8s both;
}

/* --- Elementi 2-8 (Verde Scuro / Sidebar BG) --- */

@keyframes animate-svg-stroke-generic {
  0% { stroke-dashoffset: 100%; stroke-dasharray: 100%; }
  100% { stroke-dashoffset: 0; stroke-dasharray: 100%; }
}

@keyframes animate-svg-fill-dark {
  0% { fill: transparent; }
  100% { fill: var(--dl-sidebar-bg); }
}

/* Applicazione var alle animazioni specifiche */

@keyframes animate-svg-fill-2 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-3 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-4 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-5 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-6 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-7 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }
@keyframes animate-svg-fill-8 { 0% { fill: transparent; } 100% { fill: var(--dl-sidebar-bg); } }

.is-animating .svg-elem-2 { animation: animate-svg-stroke-2 1s cubic-bezier(0.23, 1, 0.32, 1) 0.12s both, animate-svg-fill-2 0.7s ease-out 0.9s both; }
.is-animating .svg-elem-3 { animation: animate-svg-stroke-3 1s cubic-bezier(0.23, 1, 0.32, 1) 0.24s both, animate-svg-fill-3 0.7s ease-out 1s both; }
.is-animating .svg-elem-4 { animation: animate-svg-stroke-4 1s cubic-bezier(0.23, 1, 0.32, 1) 0.36s both, animate-svg-fill-4 0.7s ease-out 1.1s both; }
.is-animating .svg-elem-5 { animation: animate-svg-stroke-5 1s cubic-bezier(0.23, 1, 0.32, 1) 0.48s both, animate-svg-fill-5 0.7s ease-out 1.2s both; }
.is-animating .svg-elem-6 { animation: animate-svg-stroke-6 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both, animate-svg-fill-6 0.7s ease-out 1.3s both; }
.is-animating .svg-elem-7 { animation: animate-svg-stroke-7 1s cubic-bezier(0.23, 1, 0.32, 1) 0.72s both, animate-svg-fill-7 0.7s ease-out 1.4s both; }
.is-animating .svg-elem-8 { animation: animate-svg-stroke-8 1s cubic-bezier(0.23, 1, 0.32, 1) 0.84s both, animate-svg-fill-8 0.7s ease-out 1.5s both; }