/* mappa.css — home: sentiero avventura + vista elenco. */

.hero {
  text-align: center; padding: 24px 16px 10px;
}
.hero h1 { font-size: 2.2rem; }
.hero .sole-hero { font-size: 3rem; display: block; animation: galleggia 4s ease-in-out infinite; }
@keyframes galleggia { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

#profilo-box { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.saluto { font-weight: 800; font-size: 1.1rem; color: var(--mare-scuro); }

.toggle-vista { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.toggle-vista button {
  font-family: var(--font); font-weight: 800; font-size: 1rem; cursor: pointer;
  border: 2px solid #CDE4EC; background: #fff; color: var(--mare-scuro);
  padding: 10px 18px; border-radius: 999px; min-height: var(--tap);
}
.toggle-vista button.attivo { background: var(--mare); color: #fff; border-color: var(--mare); }

.countdown {
  background: linear-gradient(180deg, #FFF3D6, #FFE8B0); border-radius: 16px;
  padding: 14px 18px; text-align: center; font-weight: 700; color: var(--sole-scuro); margin-bottom: 18px;
}

/* sentiero a zig-zag */
.sentiero { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 10px 0; }
.sentiero::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px;
  background: repeating-linear-gradient(180deg, #FFD873 0 12px, transparent 12px 24px);
  transform: translateX(-50%); z-index: 0;
}
.tappa {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--notte);
  background: var(--carta); border-radius: 20px; padding: 14px 16px; margin: 6px 0;
  box-shadow: var(--ombra); width: 82%;
  transition: transform .1s;
}
.tappa[style*="right"] { margin-left: auto; flex-direction: row-reverse; text-align: right; }
.tappa:hover { transform: scale(1.02); }
.tappa.corrente { outline: 3px solid var(--sole); box-shadow: 0 0 0 6px rgba(255,183,3,.2), var(--ombra); }
.nodo {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(160deg, var(--cielo), var(--mare)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  box-shadow: var(--ombra-morbida);
}
.tappa.corrente .nodo { background: linear-gradient(160deg, var(--sole), var(--sole-scuro)); }
.tappa-info { flex: 1; }
.tappa-titolo { font-weight: 800; font-size: 1.15rem; }
.tappa-desc { font-size: .9rem; }
.qui-sei { color: var(--sole-scuro); font-weight: 800; margin-top: 4px; }

.mini-progress { height: 8px; background: #E6EFF3; border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.mini-progress .riempi { display: block; height: 100%; background: var(--prato); }

.inglese { text-align: center; border: 2px dashed #CDE4EC; background: rgba(255,255,255,.6); }
.inglese h2 { color: var(--mare-scuro); }

/* vista "tutti i compiti" */
.voce-compito {
  display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--notte);
  padding: 12px 10px; border-bottom: 1px solid #EAF3F7;
}
.voce-compito:last-child { border-bottom: none; }
.voce-compito .ic { font-size: 1.5rem; }
.voce-compito .nome { flex: 1; font-weight: 700; }
.voce-compito .prog { font-weight: 800; color: var(--mare-scuro); }

/* strumenti genitore */
.genitori {
  margin-top: 30px; padding: 16px; border-radius: 16px; background: rgba(255,255,255,.6);
  text-align: center; font-size: .9rem;
}
.genitori .btn { margin: 6px; }
#avviso-salvataggio { display: none; background: #FFEfE0; color: var(--sole-scuro); padding: 10px; border-radius: 12px; margin-top: 10px; }
.file-label { cursor: pointer; }
