:root {
  --abisso: #0B3C5D;
  --notte: #082F49;
  --laguna: #4FB3BF;
  --corrente: #1F7A8C;
  --schiuma: #EAF8FB;
  --sabbia: #F4EBD9;
  --corallo: #E98B73;
  --bianco: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--notte);
  background: var(--schiuma);
}
a { color: var(--abisso); text-underline-offset: 3px; }
a:hover { color: var(--corrente); }
a:focus-visible { outline: 3px solid var(--corallo); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, .marchio {
  font-family: "Fredoka", "Nunito", system-ui, sans-serif;
  color: var(--abisso);
  line-height: 1.15;
}

/* Testata delle pagine interne */
.testata {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px;
}
.testata .marchio { font-size: 32px; font-weight: 700; text-decoration: none; }
.testata nav { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 700; }

/* Home */
.riva {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 0;
  position: relative;
  overflow: hidden;
}
.riva svg.personaggio { width: min(260px, 60vw); height: auto; }
.riva h1 { font-size: clamp(64px, 16vw, 132px); margin: 8px 0 0; letter-spacing: -0.01em; }
.riva .claim { font-size: clamp(20px, 4.5vw, 28px); font-weight: 600; color: var(--corrente); margin: 4px 0 24px; }
.riva .stato {
  display: inline-block;
  background: var(--bianco);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  margin-bottom: 64px;
}
.onde { display: block; width: 100%; height: 90px; margin-top: auto; }

.come {
  background: var(--abisso);
  color: var(--schiuma);
  padding: 72px 20px 88px;
}
.come h2 { color: var(--bianco); text-align: center; font-size: 36px; margin: 0 0 40px; }
.come ol {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  counter-reset: passo;
}
.come li { counter-increment: passo; }
.come li::before {
  content: counter(passo);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--laguna);
  color: var(--abisso);
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.come h3 { color: var(--bianco); font-size: 24px; margin: 0 0 8px; }
.come p { margin: 0; color: #DDF4F7; }

/* Pagine di testo */
.testo { max-width: 760px; margin: 0 auto; padding: 8px 20px 72px; }
.testo h1 { font-size: 44px; margin: 24px 0 8px; }
.testo .aggiornato { color: var(--corrente); font-weight: 700; margin: 0 0 32px; }
.testo h2 { font-size: 26px; margin: 40px 0 8px; }
.testo ul { padding-left: 22px; }
.testo li { margin-bottom: 6px; }
.riquadro {
  background: var(--bianco);
  border-radius: 20px;
  padding: 20px 24px;
  margin: 24px 0;
}

.piede {
  background: var(--sabbia);
  padding: 32px 20px;
  text-align: center;
  font-size: 16px;
}
.piede nav { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-weight: 700; margin-bottom: 8px; }
.piede p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .riva svg.personaggio { animation: galleggia 5s ease-in-out infinite; }
  @keyframes galleggia {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
  }
}
