/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ff0066, #ffcc00, #00e6e6, #6600ff);
  background-size: 400% 400%;
  animation: gradientMove 8s ease infinite;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden; 
  position: relative;
  padding-top: 50px;
}

@keyframes gradientMove {
  0% { background-position:0% 50%; }
  50% { background-position:100% 50%; }
  100% { background-position:0% 50%; }
}

/* Lang switch */
.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: white;
  font-weight: bold;
  margin-left: 10px;
  cursor: pointer;
  opacity: 0.7;
}

.lang-switch button:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Intro vento */
#intro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

#wind {
  width: 130%;
  height: 300px;
}

#wind path {
  fill: none;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 4;
  stroke-linecap: round;
  filter: blur(1px);
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: windMove 2.5s ease-out forwards;
}

#wind path:nth-child(2) { opacity: 0.4; animation-delay: 0.2s; }
#wind path:nth-child(3) { opacity: 0.25; animation-delay: 0.4s; }

@keyframes windMove { to { stroke-dashoffset: 0; } }

/* Contenitore principale */
#main {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Titolo */
h1#title {
  font-size: 4rem;
  text-shadow: 2px2px10px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  text-align: center;
}

/* Box centrale testo */
.text-box {
  background: rgba(0,0,0,0.6);
  border-radius: 20px;
  padding: 40px 40px;
  width: 100%;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  line-height: 1.7;
}

/* Testo */
p, li { font-size: 1.15rem; margin-bottom:16px; text-shadow:1px1px5px rgba(0,0,0,0.4); }

ul { list-style: disc; text-align:left; margin:20px 0 20px 20px; }

/* Prima parte indentata */
.left-indent {
  margin-left: 0; 
}

/* Sezione AI allineata a sinistra */
.left-align {
  margin: 0 0 20px 0;
  text-align: left;
}

/* Mostra contenuto */
#main.visible { opacity: 1; transform: translateY(0); }

/* Pulsante dashboard rotondo con SVG */
/* Pulsante dashboard rotondo con SVG */
.dashboard-btn {
  position: fixed;
  bottom: 540px;  /* ↑ più in alto rispetto ai 30px precedenti */
  right: 100px;
  width: 30px;
  height: 30px;
  background-color: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: transform 0.2s, background-color 0.2s;
  z-index: 50;
}

.dashboard-btn:hover {
  background-color: rgba(0,0,0,0.9);
  transform: scale(1.1);
}


.dashboard-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* Responsive */
@media (max-width: 768px) {
  h1#title { font-size: 3rem; }
  .text-box { padding: 30px 20px; }
}
