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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #eef5ff;
}

/* =========================
   MENU FISSO
   ========================= */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.menu .logo {
  font-weight: bold;
  color: #003366;
  font-size: 18px;
}

.menu nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #1a73e8;
  font-weight: bold;
  font-size: 14px;
}

/* =========================
   STRADA
   ========================= */
.road {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: calc(100vh - 60px);
  background: linear-gradient(to bottom, #003366, #4da3ff);
  z-index: 0;
  pointer-events: none;
}

/* =========================
   CONTENITORE CON SNAP
   ========================= */
.wrapper {
  margin-top: 60px;
  height: calc(100vh - 60px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

/* =========================
   STEP
   ========================= */
.step {
  height: calc(100vh - 60px);
  scroll-snap-align: start;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 2;
}

/* =========================
   CARD
   ========================= */
.content {
  background: #ffffff;
  padding: 48px 64px;
  border-radius: 16px;
  text-align: center;
  max-width: 520px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.content h1,
.content h2 {
  color: #003366;
  margin-bottom: 20px;
}

.content p {
  color: #333;
  line-height: 1.6;
}

.content a {
  color: #1a73e8;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* INTRO */
.hint {
  display: block;
  margin-top: 32px;
  font-size: 14px;
  color: #666;
}
/* =========================
   MOBILE OPTIMIZATION
   ========================= */
@media (max-width: 768px) {

  /* MENU */
  .menu {
    padding: 0 20px;
    height: 56px;
  }

  .menu nav a {
    margin-left: 16px;
    font-size: 13px;
  }

  /* STRADA PIÙ SOTTILE */
  .road {
    width: 6px;
  }

  /* CONTENITORE */
  .wrapper {
    margin-top: 56px;
    height: calc(100vh - 56px);
    scroll-snap-type: y proximity; /* meglio su touch */
  }

  /* STEP */
  .step {
    height: calc(100vh - 56px);
    padding: 0 16px;
  }

  /* CARD */
  .content {
    padding: 32px 24px;
    border-radius: 12px;
    max-width: 100%;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content h2 {
    font-size: 1.4rem;
  }

  .content p {
    font-size: 15px;
  }

  .content a {
    font-size: 16px;
  }

  /* HINT */
  .hint {
    font-size: 13px;
  }
}

