/* The school register uses the same light paper on screen and in print. */
:root {
  color-scheme: light;
  --bg: #f8fbfa;
  --ink: #142c3c;
  --muted: #536770;
  --line: #d9e2dd;
  --surface: #fff;
  --accent: #20614f;
  --road: #8b522e;
  --sea: #20614f;
  --pass: #1d6847;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
}
body { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.frame { width: min(calc(100% - 2 * var(--gutter)), 72rem); margin-inline: auto; }
h1, h2, h3 { color: inherit; letter-spacing: -.03em; }
h1, .slide h2 { font-size: clamp(2.65rem, 5.3vw, 5.25rem); line-height: 1.01; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); }
p { max-width: 65ch; }
a, button { min-height: 44px; min-width: 44px; }
a { display: inline-flex; align-items: center; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.masthead, .cover { background: var(--navy); color: #fff; }
.masthead-inner, .actions, .enrol, .print-tools, .controls .frame {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap;
}
.masthead-inner { border-bottom: 1px solid #536770; min-height: 4.25rem; padding-block: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 750; }
.masthead a, .cover a { color: inherit; }
.masthead a:focus-visible, .cover :focus-visible { outline-color: var(--foam); }
.school-languages {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 .4rem;
  font-family: var(--font-text); font-size: 1.0625rem;
}
.school-languages [aria-current="page"] { color: var(--foam); font-weight: 700; text-decoration-thickness: 2px; }
.actions { justify-content: flex-start; }
.button, .controls button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px;
  border: 1px solid transparent; border-radius: 3px; padding: .55rem 1.35rem;
  background: var(--navy); color: #fff; font: 750 1.15rem/1.25 var(--font-display); text-decoration: none;
}
.cover .button { color: var(--navy); background: var(--foam); }
.button:hover { text-decoration: underline; }
.cover > .spread { padding-block: clamp(2.5rem, 6vw, 6rem); }
.spread { display: grid; align-items: center; gap: clamp(1.75rem, 5vw, 5rem); }
.cover h1 { max-width: 18ch; margin-bottom: 1.5rem; }
.cover em { color: var(--foam); font-style: normal; }
.cover .actions { margin-top: 1.65rem; }
.licence-slip {
  min-width: 0; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-top: 5px solid var(--foam);
}
.licence-slip { padding: clamp(1.1rem, 2.75vw, 2rem); }
.slip-title {
  font: 750 1.2rem/1.25 var(--font-display);
  margin: 0; padding-bottom: .75rem; border-bottom: 1px solid var(--ink);
}
.licence-slip p { margin: 1rem 0; }
.licence-slip p:last-child { margin-bottom: 0; }
.figure-number, .allowance dt, .prices td {
  font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums;
}
.figure-number { display: block; font-size: clamp(4rem, 8vw, 7.5rem); letter-spacing: -.055em; line-height: .92; }
.app-lines, .poster-terms { list-style: none; margin: 0; padding: 0; }
.app-lines { display: grid; gap: .5rem; }
[data-app="stradipass"] { --app-colour: #8b522e; }
[data-app="nautipass"] { --app-colour: #20614f; }
[data-app="volapass"] { --app-colour: #176494; }
[data-app="dronipass"] { --app-colour: #a64f00; }
[data-app="civitapass"] { --app-colour: #245b96; }
[data-app="linguipass"] { --app-colour: #006b7a; }
[data-app="silvapass"] { --app-colour: #a52f23; }
.app-lines li {
  padding-left: .7rem; border-left: 6px solid var(--app-colour); font-size: 1.0625rem;
}
.app-heading { font-size: 1.25rem; margin: 1.25rem 0 .65rem; }
.app-lines a { display: inline; font-weight: 700; }
/* The three objects use their actual proportions: dashboard, phone and printed card. */
.cover:has(.desktop-still) .spread { padding-block: clamp(2rem, 4.5vw, 4.5rem); }
.cover:has(.desktop-still) h1 { max-width: 21ch; font-size: clamp(2.3rem, 4.4vw, 4.35rem); }
.cover h1 span {
  display: block; margin-top: 1rem; color: var(--foam); letter-spacing: -.015em;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.32; font-weight: 500;
}
.desktop-still { position: relative; aspect-ratio: 1.48; width: min(100%, 36rem); justify-self: center; }
.desktop-still img, .student-screens img, .dashboard-shot img, .paper-samples img { display: block; height: auto; }
.desktop-still img { position: absolute; box-shadow: 0 1rem 2rem #04162655; }
.desktop-still .monitor {
  width: 84%; top: 5%; left: 2%; transform: rotate(-3deg);
  border: 5px solid #374b5a; border-radius: 9px; background: var(--navy);
}
.phone { border: 5px solid #203341; border-radius: 1.4rem; background: #203341; }
.desktop-still .phone { width: 26%; right: 1.5%; bottom: 4%; transform: rotate(5deg); border-radius: 1rem; }
.desktop-still .desk-card { width: 30%; left: 14%; bottom: 1%; transform: rotate(-9deg); }
.frame > .licence-slip { margin-block: 2.5rem 0; border: 0; border-block: 1px solid var(--line); background: none; padding-inline: 0; }
.frame > .licence-slip .slip-title { border: 0; padding: 0; }
.frame > .licence-slip .figure-number { color: var(--sea); }
.frame > .licence-slip .app-heading { margin-top: 0; }
.student-view { padding-block: clamp(2.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.student-screens {
  display: flex; align-items: start; justify-content: space-evenly; gap: 1.25rem;
  padding: clamp(1.4rem, 4vw, 3.5rem) 1.1rem 1.25rem; background: #e9f2ee;
}
.student-screens figure { flex: 0 1 13.75rem; text-align: center; }
.student-screens .phone { width: 100%; box-shadow: 0 .55rem 1rem #193e3720; }
.student-screens figcaption, .paper-samples figcaption { margin-top: 1rem; color: var(--ink); font: 650 1.1rem/1.25 var(--font-display); }
.dashboard-shot { margin-block: 1rem; }
.dashboard-shot img { width: 100%; border: 1px solid #b9c9c3; border-radius: 5px; box-shadow: 0 .4rem 1rem #18352d12; }
.dashboard-shot figcaption { font-size: .95rem; }
.dashboard-shot figcaption span::before { content: " · "; }
.paper-samples {
  display: flex; justify-content: center; gap: 7%; align-items: start;
  padding: clamp(1.5rem, 4vw, 3rem) 4% 1.5rem; background: #e7ede9; margin-bottom: .7rem;
}
.paper-samples figure { flex: 0 1 15.25rem; text-align: center; }
.paper-samples img { width: 100%; box-shadow: 0 .5rem 1.2rem #15322526; transform: rotate(-3deg); }
.paper-samples figure + figure { margin-top: 1.35rem; }
.paper-samples figure + figure img { transform: rotate(3deg); }
@media (min-width: 48rem) {
  .cover:has(.desktop-still) .spread { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .frame > .licence-slip { display: grid; grid-template-columns: .8fr 1.7fr; gap: 3rem; }
  .frame > .licence-slip .app-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; }
}
@media (max-width: 599px) {
  .student-screens {
    justify-content: start; overflow-x: auto; scroll-snap-type: x proximity;
    scroll-padding-inline: 1.1rem; scrollbar-color: var(--sea) transparent;
  }
  .student-screens figure { flex: 0 0 60vw; scroll-snap-align: start; }
  .desktop-still .monitor, .desktop-still .phone { border-width: 3px; }
  .dashboard-shot img { width: min(100%, 390px); }
  .paper-samples figcaption { font-size: 1rem; }
}
.pillars > div { border-top: 1px solid var(--line); padding: 1rem 0; }
.pillars span { color: var(--muted); }
.pillars h3 { margin: .25rem 0 .5rem; }

.ledger { display: grid; gap: 1rem; padding-block: clamp(2.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.ledger h2 { margin: 0; }
.ledger > *, .spread > * { min-width: 0; }
.ledger p:last-child { margin-bottom: 0; }
.intro { margin-bottom: 1.4rem; }
.steps { padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 1.15rem 0 1.15rem 3.5rem;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1.2rem;
  font: 800 2rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--sea);
}
.steps h3 { margin: 0 0 .35rem; }
.allowance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.allowance {
  margin: .75rem 0 1rem; padding-block: 1.15rem; border-block: 1px solid var(--line);
  column-gap: .5rem;
}
.allowance dt { color: var(--sea); font-size: clamp(2.75rem, 5.5vw, 5.25rem); line-height: 1; letter-spacing: -.045em; }
.allowance dd { font-size: 1.0625rem; margin: .35rem 0 0; }
.prices { width: 100%; border-collapse: collapse; margin: 2rem 0 1rem; text-align: left; }
.prices caption { text-align: left; font-weight: 700; font-size: 1.5rem; padding-bottom: .5rem; }
.prices th, .prices td { border-bottom: 1px solid var(--line); padding: .7rem .3rem; }
.prices th { font-family: var(--font-text); }
.prices thead th { font-size: 1.0625rem; color: var(--muted); border-block: 1px solid var(--ink); }
.prices td { font-size: clamp(2.15rem, 4vw, 3.75rem); line-height: 1.05; letter-spacing: -.035em; }
.prices tr > :last-child { text-align: right; }
.prices .amount { white-space: nowrap; }
.prices small { font: 500 1.0625rem var(--font-text); color: var(--muted); letter-spacing: 0; white-space: nowrap; }
.guarantee { border-left: 6px solid var(--sea); background: var(--foam); padding: 1.1rem 1.25rem; }
.guarantee h3 { margin-bottom: .45rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; min-height: 44px; padding: .9rem .15rem; font-weight: 650; }
.faq details p { padding-bottom: 1rem; }
.enrol { padding-block: 3rem; }
.enrol h2 { margin: 0; }
footer.frame { font-size: 1.0625rem; }
footer nav { margin-bottom: 1.1rem; }
footer p { margin-bottom: .4rem; }

.presentation.playing {
  height: 100vh; height: 100dvh; display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.playing main { min-height: 0; touch-action: pan-y pinch-zoom; }
.slide {
  display: grid; align-items: safe center; min-height: 85vh;
  border-left: 6px solid var(--sea); overflow-y: auto;
}
.slide.cover { border-left-color: var(--foam); }
.slide > .frame { padding-block: clamp(1.5rem, 5vh, 4rem); }
.slide p { max-width: 48ch; }
.opening { border-top-color: var(--app-colour, var(--foam)); }
.opening .slip-title { display: block; }
.deck-settings { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.deck-settings label { display: grid; gap: .2rem; font-size: 1rem; }
.deck-settings select, .deck-settings button {
  max-width: 100%; min-height: 44px; color: var(--ink); background: var(--surface);
  font: inherit; border: 1px solid var(--muted); border-radius: 3px; padding: .3rem .5rem;
}
.deck-settings :focus-visible { outline-color: var(--navy); }
:fullscreen .deck-settings { display: none; }
@media (display-mode: fullscreen) { .deck-settings { display: none; } }
.slide .plain-url { display: inline-block; white-space: normal; overflow-wrap: anywhere; }
.playing .slide { height: 100%; min-height: 0; }
@media (prefers-reduced-motion: no-preference) {
  .playing .slide { animation: entra 180ms ease-out; }
  @keyframes entra { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
}
.slide-qr, .poster-qr { display: block; height: auto; max-width: 100%; border: 1px solid var(--line); }
.slide-qr { justify-self: center; width: min(100%, 37vh, 22rem); }
.plain-url { font-weight: 600; font-size: min(1em, 4.15vw); white-space: nowrap; }
.controls { background: var(--surface); border-top: 1px solid var(--line); }
.controls .frame { flex-wrap: nowrap; gap: .25rem; padding-block: .5rem; }
.controls button { color: var(--ink); background: transparent; border-color: var(--muted); }
.controls button[aria-disabled="true"] { color: var(--muted); border-color: var(--line); cursor: default; }
.controls span { color: var(--muted); font-variant-numeric: tabular-nums; }
.poster, .print-tools { width: min(calc(100% - 2 * var(--gutter)), 46rem); margin-inline: auto; }
.print-tools { padding-block: 1rem; }
.poster { background: white; padding: clamp(1.2rem, 4vw, 3rem); border: 1px solid var(--line); border-left: 6px solid var(--sea); margin-bottom: 2rem; }
.poster h1 { margin: 0; padding-top: 1.1rem; border-top: 2px solid var(--navy); }
.poster-qr { width: min(100%, 23rem); margin: 1.5rem auto .5rem; }
.poster .plain-url { display: flex; justify-content: center; text-align: center; }
.poster-terms { margin-top: 1.25rem; }
.poster-terms li { padding-block: .6rem; border-top: 1px solid var(--line); }
@media (min-width: 48rem) {
  .spread { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .ledger { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: 3rem; }
}
@media (max-width: 40rem) {
  .masthead-inner { gap: .1rem .5rem; }
  .masthead .brand, .masthead a { font-size: 1.0625rem; }
  .masthead img { width: 25px; height: 25px; }
  .slide h1, .slide h2 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .slide .spread { gap: 1rem; }
  .slide .figure-number { font-size: 3.5rem; }
  .controls button { padding-inline: .8rem; }
}
@page iscrizione { size: A4 portrait; margin: 15mm; }
@media print {
  .poster-page { page: iscrizione; background: white; font-size: 14pt; }
  .print-tools { display: none; }
  .poster { width: 100%; margin: 0; padding: 7mm; border-left-width: 2mm; break-inside: avoid; }
  .poster h1 { font-size: 38pt; }
  .poster-qr { width: 105mm; margin: 8mm auto 2mm; border: 0; }
  .poster .plain-url { color: black; font-size: 13pt; }
  .poster-terms { margin-top: 5mm; }
}
