/* for-schools.css - the For schools page (/for-schools/, /it/scuole/), plan site/plan/for-schools.md.
   Page classes carry the fs- prefix. The drawn product window follows the home's window (home.css .win: dark
   panel, white document paper, tabs MMAI tutor / Lesson / FlashCard / Quiz, the Lesson view asking "Are you
   familiar with the topic ...?" with Yes and No); its rules are copied here under fs- names, home.css is not
   loaded. The kit gives the hero (hero--collage), the moment (pinned-chapters), the fragments (checklist, chat,
   notify) and the diagram; this file sets their ground, sizes and the page's few layout rules.
   The timeline diagram reads its icons from /assets/kit/icons/demo/ (data-icon-base on the .dg); kit_sync copies
   them because their file names stand here: ui-megaphone.svg, ui-send.svg, ui-school.svg, ui-book-open.svg.
   No colour beyond the palette. */

/* ---------------------------------------------------------------- the lit ground (hero art, frames, visuals) */
:is(.fs-hero .fs-art, .frame.fs-lit, #steps:not(.is-live) .fs-vis) {
  background:
    radial-gradient(70% 60% at 14% 8%, rgb(23 234 217 / .13), transparent 70%),
    radial-gradient(60% 50% at 96% 100%, rgb(23 234 217 / .06), transparent 70%),
    #0e131d;
  border: 1px solid var(--line);
}

/* ================================================================ 1. hero (collage) */
.fs-hero .hero__proof { font-size: var(--t-small); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.fs-hero .fs-art { --fx-bg: var(--p-surface); --fx-ink: var(--p-ink); --fx-accent: var(--p-accent); }

/* the study window: one dark panel, cut by the frame's right and bottom edges (the kit places it) */
.fs-win {
  --fx-bg: var(--p-surface); --fx-surface: var(--p-bg); --fx-ink: var(--p-ink); --fx-muted: #9aa1ab;
  --fx-accent: var(--p-accent); --fx-accent-ink: var(--p-accent-ink); --ui-font: var(--font-text); --ui-radius: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px minmax(0, 1fr); min-height: 720px;
  font: 400 13px/20px var(--font-text); color: var(--u-ink);
  background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7), 0 0 0 1px rgb(233 237 243 / .04);
}
.fs-win__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; min-width: 0; }
.fs-win__dots { display: flex; gap: 6px; flex: none; }
.fs-win__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--u-fill-3); }
.fs-win__crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; padding-right: var(--ly-cut-room, 48px); }
.fs-win__crumb img { width: 15px; height: 14px; flex: none; }
.fs-win__crumb i { font-style: normal; opacity: .5; }
.fs-win__crumb b { font-weight: 500; color: var(--u-ink); overflow: hidden; text-overflow: ellipsis; }
.fs-win__body { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; min-height: 0; }
.fs-win__doc { display: none; min-width: 0; padding: 12px 0 0 16px; background: var(--u-fill); }
.fs-win__tutor { display: flex; flex-direction: column; min-width: 0; }
/* the document beside the tutor where the window is wide enough (from 1280, and stacked on a tablet) */
@media (min-width: 1280px), (min-width: 640px) and (max-width: 1023px) {
  .fs-win__body { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
  .fs-win__doc { display: block; }
  .fs-win__tutor { border-left: 1px solid var(--u-line); }
}
/* the document page is white paper, as in the real app */
.fs-paper { height: 100%; padding: 18px 18px 24px; border-radius: 6px 0 0 0; background: #ffffff; color: #15181d; }
.fs-paper__title { font-size: 15px; line-height: 20px; font-weight: 600; }
.fs-paper__sub { margin-top: 14px; font-size: 13px; line-height: 18px; font-weight: 600; }
.fs-paper__text { margin-top: 4px; font-size: 12px; line-height: 18px; color: #5f6670; }
/* the tutor panel: tabs (a picture of the app's tabs, not controls), then the Lesson view */
.fs-tabs { display: flex; gap: 2px; padding: 10px var(--ly-cut-room, 48px) 10px 12px; border-bottom: 1px solid var(--u-line); color: var(--u-muted); white-space: nowrap; overflow: hidden; }
:is(.fs-tabs, .fs-chat-tabs) > span { padding: 4px 7px; border-radius: 6px; font-size: 12px; line-height: 20px; }
:is(.fs-tabs, .fs-chat-tabs) > span.is-on { background: var(--u-fill-3); color: var(--u-ink); font-weight: 500; }
.fs-lesson { display: flex; flex-direction: column; gap: 14px; padding: 16px var(--ly-cut-room, 48px) 16px 16px; }
.fs-stages { display: flex; flex-wrap: wrap; gap: 4px; color: var(--u-muted); }
.fs-stages span { padding: 3px 9px; border-radius: 99px; font-size: 12px; line-height: 18px; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.fs-stages .is-on { background: var(--u-accent); color: var(--u-accent-ink); font-weight: 500; box-shadow: none; }
.fs-ask { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; color: var(--u-text-2); }
.fs-ask img { width: 20px; height: 19px; flex: none; margin-top: 1px; }
.fs-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fs-answers span { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 6px 10px; border-radius: 8px; color: var(--u-ink); box-shadow: inset 0 0 0 1px var(--u-line-2); }

/* the result card over the window's lower-left corner (its loop is the kit's [data-ly-steps]) */
.fs-art > .fs-card { left: 32px; bottom: 32px; width: 300px; z-index: 2; }
.fs-card {
  padding: 14px 16px; border-radius: 12px; background: #1b2231; color: var(--p-ink);
  font: 400 14px/1.4 var(--font-text); border: 1px solid rgb(233 237 243 / .12);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / .7);
}
.fs-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; }
.fs-card__row b { font-weight: 500; }
.fs-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 500; background: rgb(23 234 217 / .14); color: var(--p-accent); white-space: nowrap; }
.fs-card__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #c9ced6; border-top: 1px solid rgb(233 237 243 / .08); }
.fs-card__line i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgb(23 234 217 / .14); color: var(--p-accent); }
.fs-card__line svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1023px) { .fs-art > .fs-card { left: 16px; bottom: 16px; width: 270px; } }

/* ================================================================ 2. how the tutor teaches (pinned-chapters) */
.fs-steps { --card: #0e131d; --frag: #171d2a; }
.fs-steps__lead { max-width: 46ch; color: var(--ink); }
/* at rest (no moment: a tablet, reduced motion, no script) each visual is its own lit panel with a height */
#steps:not(.is-live) .fs-vis { position: relative; overflow: hidden; height: clamp(332px, 38svh, 380px); }
#steps:not(.is-live) .fs-vis--chat { height: 400px; }
#steps:not(.is-live) .fs-vis--notes { height: 300px; }
@media (max-width: 639px) {
  #steps:not(.is-live) .fs-vis--lesson { height: 336px; }
  #steps:not(.is-live) .fs-vis--notes { height: 280px; }
}
/* where each fragment sits (cards.css placements) */
.fs-vis--lesson .stage > .at-rise { --ax: 32px; --ay: 40px; --fit-max: 340px; }
.fs-vis--chat .stage > .at-rise { --ax: 32px; --ay: 40px; --fit-max: 400px; }
.fs-vis--notes .stage > .at-rise { --ax: 32px; --ay: calc(100% - 180px); --ay-sm: calc(100% - 180px); --fit-max: 380px; }
/* the checklist's head: a gap between the lesson title and its counter; on a narrow panel the counter takes
   its own line instead of touching the title */
.fs-vis .ui-checks__head { flex-wrap: wrap; column-gap: 12px; row-gap: 0; height: auto; min-height: 48px; padding-block: 8px; }
.fs-vis .ui-checks__head .ui-title { white-space: normal; }
/* the chat's header is the tutor panel's tab row */
.fs-chat-tabs.ui-head { gap: 2px; height: 48px; padding: 0 12px; white-space: nowrap; overflow: hidden; color: var(--u-muted); }
.fs-vis .ui-msg__av { width: 22px; height: 20px; flex: none; }
/* the notices: the site's mark in a round tile, and the longer line wraps instead of being cut */
.fs-vis .ui-note { height: auto; min-height: 64px; padding-block: 10px; }
.fs-vis .ui-note__body { white-space: normal; line-height: 18px; }
.fs-note-mark { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--u-fill-2); box-shadow: inset 0 0 0 1px var(--u-line); }
.fs-note-mark img { width: 18px; height: 17px; }

/* ================================================================ 3. why schools look at AI training now */
.fs-why__head { align-items: start; row-gap: var(--s-4); }
.fs-why__text { display: grid; gap: var(--s-4); align-content: start; }
.fs-why__text > p:first-child { font-size: var(--t-lead); line-height: 1.5; color: var(--ink); max-width: 52ch; }
#why .fs-tl { margin-top: var(--s-7); min-height: 320px; padding: clamp(16px, 3vw, 40px); }
#why .fs-tl > .fs-tl__dg { flex: 1 1 auto; align-self: stretch; width: 100%; min-height: 240px; }
@media (max-width: 639px) { #why .fs-tl { min-height: 360px; } }
/* a timeline running down a phone puts each caption beside its point on one line (diagram.css); here the label
   and its sub-label stack and wrap inside the frame, so a long sub-label ("Docenti, personale ATA, studenti")
   is never cut by the frame's right edge (room right of the points at 390: about 240px) */
#why .dg .dg-node.dg-node--side > .dg-cap { flex-direction: column; align-items: flex-start; gap: 2px; white-space: normal;
  width: max-content; max-width: min(320px, calc(100vw - 160px)); text-wrap: balance; overflow-wrap: anywhere; }
/* without script: the four steps as a plain row (a column on a phone) */
.fs-tl__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); width: 100%; margin: 0; padding: 0; list-style: none; }
.fs-tl__list li { display: grid; gap: 4px; padding-top: var(--s-3); border-top: 2px solid var(--accent); }
.fs-tl__list span { color: var(--muted); font-size: var(--t-small); }
@media (max-width: 639px) { .fs-tl__list { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================ 4. talk to us */
#talk .fs-talk__grid { align-content: start; align-items: start; row-gap: var(--s-7); }
.fs-talk__text > * + * { margin-top: var(--s-5); }
.fs-talk__text > .t-lead { color: var(--ink); max-width: 40ch; }
.fs-talk__text > .btn-row { margin-top: var(--s-6); }
.fs-talk__links { display: grid; justify-items: start; gap: var(--s-3); margin-bottom: 0; padding: 0; list-style: none; }
@media (max-width: 639px) { .fs-talk__text .btn-row > .btn { width: 100%; justify-content: center; } }
