/* Phase 1: home introduction and course cards. No lesson, admin or auth selectors. */
.mf31-home {
  --mf31-ink: #233c4c;
  --mf31-muted: #526b79;
  --mf31-blue: #086da6;
  --mf31-line: #dce7ec;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.mf31-intro,
.mf31-home .mf31-courses,
.mf31-home .mf31-shelf {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  min-width: 0;
}
.mf31-intro { padding-block: 56px 42px; }
.mf31-intro-copy { max-width: 900px; }
.mf31-home .mf31-eyebrow {
  margin: 0 0 18px;
  color: #a43c2b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.6;
  letter-spacing: .1em;
}
.mf31-intro h1 {
  margin: 0;
  max-width: 910px;
  font: 650 clamp(38px, 4.25vw, 62px)/1.12 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -.045em;
  color: var(--mf31-ink);
  text-wrap: balance;
}
.mf31-intro h1 span { color: var(--mf31-blue); font-style: normal; }
.mf31-description {
  max-width: 730px;
  margin: 22px 0 0;
  color: var(--mf31-muted);
  font-size: 17px;
  line-height: 1.75;
}
.mf31-features {
  max-width: 850px;
  margin: 13px 0 0;
  color: #365b70;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.8;
}
.mf31-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.mf31-home .mf31-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 21px;
  border: 1px solid var(--mf31-line);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}
.mf31-home .mf31-button-primary { background: var(--mf31-blue); border-color: var(--mf31-blue); color: #fff; }
.mf31-home .mf31-button-primary:hover { background: #075583; border-color: #075583; }
.mf31-home .mf31-button-secondary { color: #234b61; background: #fff; }
.mf31-home .mf31-button-secondary:hover { background: #edf6fb; border-color: #92b9ce; }
.mf31-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mf31-availability { display: flex; align-items: center; gap: 8px; margin: 17px 0 0; color: var(--mf31-muted); font-size: 12px; line-height: 1.6; }
.mf31-availability > span { width: 6px; height: 6px; border-radius: 50%; background: #277b69; flex: none; }
.mf31-start-note { margin: 15px 0 0; color: var(--mf31-muted); font-size: 13px; line-height: 1.65; max-width: 620px; }
.mf31-home .mf31-courses { border-top: 1px solid var(--mf31-line); padding-block: 30px 44px; }
.mf31-courses .mf26-heading { margin-bottom: 22px; }
.mf31-courses .mf26-heading h2 { font: 650 clamp(24px, 2.3vw, 30px)/1.25 system-ui, sans-serif; letter-spacing: -.025em; }
.mf31-courses .mf26-heading > p:not(.kicker) { max-width: 700px; font-size: 14px; }
.mf31-courses .mf26-heading .kicker { font-size: 10px; color: var(--mf31-muted); margin-bottom: 8px; }
.mf31-home .mf31-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mf31-home .mf31-path {
  --mf31-accent: #086da6;
  --mf31-tint: #eaf5fc;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 15px;
  align-items: start;
  min-width: 0;
  min-height: 150px;
  padding: 24px 20px;
  border: 1px solid var(--mf31-line);
  border-radius: 16px;
  background: #fff;
  color: var(--mf31-ink);
  text-decoration: none;
}
.mf31-home .mf31-path:hover { border-color: #89b5cc; background: #fbfdff; }
.mf31-path[data-kind='situazioni'] { --mf31-accent: #ae472e; --mf31-tint: #fff0e9; }
.mf31-path[data-kind='letture'] { --mf31-accent: #795900; --mf31-tint: #fff5cc; }
.mf31-path-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mf31-tint); color: var(--mf31-accent); }
.mf31-path-icon svg { width: 25px; height: 25px; }
.mf31-path-copy { min-width: 0; }
.mf31-path-copy h3 { margin: 0; color: var(--mf31-ink); font: 700 16px/1.4 system-ui, sans-serif; letter-spacing: -.015em; }
.mf31-path-copy p { margin: 8px 0 0; color: var(--mf31-muted); font: 400 14px/1.65 system-ui, sans-serif; }
.mf31-path-arrow { align-self: start; display: block; color: var(--mf31-accent); padding-top: 3px; }
.mf31-path-arrow svg { width: 17px; height: 17px; }
.mf31-home .mf31-shelf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; padding-block: 38px 54px; border-top: 1px solid var(--mf31-line); }
.mf31-shelf-heading h2 { font: 600 clamp(25px, 2.5vw, 34px)/1.3 system-ui, sans-serif; letter-spacing: -.03em; margin: 6px 0 20px; }
.mf31-shelf-heading { min-width: 0; }
.mf31-shelf-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.mf31-shelf .mf22-intro-top { justify-content: flex-start; margin: 0; }
.mf31-shelf .mf22-sun { display: none; }
.mf31-shelf .mf22-showcase { max-width: 540px; }
.mf31-home :is(.mf31-button, .mf31-path):focus-visible { outline: 3px solid #a76100; outline-offset: 4px; }
@media (max-width: 1050px) {
  .mf31-intro { padding-block: 42px 34px; }
  .mf31-home .mf31-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mf31-home .mf31-path { min-height: 144px; }
  .mf31-home .mf31-shelf { gap: 28px; }
}
@media (max-width: 600px) {
  .mf31-intro, .mf31-home .mf31-courses, .mf31-home .mf31-shelf { width: calc(100% - 36px); }
  .mf31-intro { padding-block: 32px 28px; }
  .mf31-intro h1 { font-size: clamp(32px, 9.2vw, 44px); line-height: 1.16; letter-spacing: -.035em; }
  .mf31-home .mf31-eyebrow { font-size: 10px; margin-bottom: 13px; letter-spacing: .07em; }
  .mf31-description { margin-top: 18px; font-size: 15px; line-height: 1.75; }
  .mf31-features { font-size: 12px; line-height: 1.85; margin-top: 12px; }
  .mf31-actions { gap: 10px; margin-top: 22px; }
  .mf31-home .mf31-button { flex: 1 1 150px; min-height: 48px; padding: 12px 15px; font-size: 14px; }
  .mf31-availability { font-size: 12px; margin-top: 13px; }
  .mf31-home .mf31-courses { padding-block: 25px 30px; }
  .mf31-home .mf31-paths { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .mf31-home .mf31-path { min-height: 112px; padding: 19px 16px; gap: 13px; border-radius: 14px; }
  .mf31-path-copy h3 { font-size: 16px; }
  .mf31-path-copy p { font-size: 14px; margin-top: 6px; }
  .mf31-home .mf31-shelf { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 30px 38px; }
  .mf31-shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mf31-shelf-heading h2 { margin: 0; font-size: 23px; }
  .mf31-shelf .mf22-motion-toggle { white-space: normal; flex: 0 1 118px; min-width: 0; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .mf31-intro *, .mf31-paths * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
