/* tutoro/polish.css */
/*
  Tutoro · rifiniture della landing (novembre 2026)
  Un solo foglio per home, funzioni, prezzi, centri studi e 404, caricato per ultimo nell'<head>.
  Tiene insieme tre cose:
    1. il respiro della pagina ora che le sezioni non sono più alte "uno schermo esatto" (system.css);
    2. il movimento: comparsa allo scroll, header che si fa vetro, parallasse dell'hero, luce sulle schede;
    3. i ritocchi di profondità (ombre, bordi, bande scure arrotondate).
  Regole di casa: tutto ciò che nasconde qualcosa vale solo con html.pl-js (lo mette polish.js), quindi
  senza script la pagina è intera; con prefers-reduced-motion niente si muove.
*/

/* ---------------------------------------------------------------- respiro */
@media (min-width: 640px) {
  :root { --padt: clamp(96px, 13svh, 128px); --padb: clamp(64px, 8svh, 88px); }
}
@media (max-width: 639px) {
  :root { --padt: 76px; --padb: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------------------------------------------------------------- header: vetro e avanzamento
   Il fondo sta su ::before (non sul .nav): un backdrop-filter sul .nav farebbe da contenitore al
   menu a tutto schermo del telefono, che è position: fixed dentro di lui. */
.nav { background: transparent; border-bottom-color: transparent; transition: border-color .3s ease, box-shadow .3s ease; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transition: background-color .3s ease; }
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 14px 34px -26px rgb(10 22 40 / .35); }
.nav.is-scrolled::before {
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(170%) blur(16px); backdrop-filter: saturate(170%) blur(16px);
}
.nav.is-open::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
/* la riga verde sotto l'header: quanta pagina hai letto */
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, #3cb371, #2f9c62);
  transform-origin: 0 50%; transform: scaleX(var(--pl-scroll, 0)); opacity: 0; transition: opacity .3s ease;
}
.nav.is-scrolled::after { opacity: 1; }
.nav.is-open::after { opacity: 0; }

/* ---------------------------------------------------------------- comparsa allo scroll
   polish.js mette .rv solo ai blocchi che al caricamento stanno sotto lo schermo, e .rv-in quando
   entrano. Si muove con translate (non transform), così chi ha già una rotazione o un hover suo li tiene. */
@media (prefers-reduced-motion: no-preference) {
  html.pl-js .rv { opacity: 0; }
  html.pl-js .rv.rv-in { animation: plRv .9s cubic-bezier(.16, 1, .3, 1) var(--rv-d, 0ms) both; }
  html.pl-js .rv.rv--big.rv-in { animation-name: plRvBig; animation-duration: 1.1s; }
  @keyframes plRv { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
  @keyframes plRvBig { from { opacity: 0; translate: 0 40px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
}
@media print { html.pl-js .rv { opacity: 1 !important; } }

/* ---------------------------------------------------------------- hero */
main > .hero { overflow: clip; }
/* una luce menta e inchiostro blu dietro la finestra, che respira piano */
main > .hero::before, main > .sub-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 54% at 80% 36%, rgb(60 179 113 / .17), transparent 70%),
    radial-gradient(38% 44% at 98% 84%, rgb(47 93 168 / .10), transparent 70%),
    radial-gradient(34% 40% at 4% 6%, rgb(60 179 113 / .08), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
}
main > .sub-hero { isolation: isolate; overflow: clip; }
@media (prefers-reduced-motion: no-preference) {
  main > .hero::before, main > .sub-hero::before { animation: plAurora 14s ease-in-out infinite alternate; }
  @keyframes plAurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 4%, 0) scale(1.1); } }
}

/* il collage dell'hero: la cornice ha un'altezza sua e la finestra finisce sempre sopra una fascia libera
   in fondo, così il post-it e il disegno hanno il loro posto a ogni altezza di schermo (prima il post-it
   copriva le righe della finestra appena lo schermo scendeva sotto i 900px, e sempre sul tablet) */
@media (min-width: 640px) {
  .hero--collage .hero__art { box-shadow: 0 40px 80px -56px rgb(10 22 40 / .45); }
  .hero--collage .hero__art > .ly-piece--main { bottom: var(--art-band, 150px); display: flex; flex-direction: column; }
  .hero--collage .hero__art > .ly-piece--main > .d-win__body { flex: 1 1 0; min-height: 0; }
  .hero--collage .hero__art .d-main { overflow: hidden; }
}
@media (min-width: 1024px) {
  .hero--collage .hero__art { min-height: clamp(520px, 100svh - 184px, 720px); }
}
/* tablet e telefono: sotto le parole la cornice non ha più "il resto dello schermo" da prendere */
@media (max-width: 1023px) {
  .hero--collage .hero__art { flex: none; height: clamp(440px, 62vw, 540px); --art-band: 132px; }
}
@media (max-width: 639px) {
  .hero--collage .hero__art { height: 320px; }
}
/* parallasse del puntatore: tre profondità (polish.js scrive --px e --py, da -1 a 1) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero__art > .ly-piece--main { translate: calc(var(--px, 0) * -7px) calc(var(--py, 0) * -6px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); }
  .hero__art > .ly-piece--note { translate: calc(var(--px, 0) * 12px) calc(var(--py, 0) * 10px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); }
  .hero__art > .doodle { translate: calc(var(--px, 0) * 20px) calc(var(--py, 0) * 14px); transition: translate .6s cubic-bezier(.2, .7, .2, 1); }
}
/* le righe della finestra entrano una dopo l'altra, e la lezione "In corso" ha il puntino vivo */
@media (prefers-reduced-motion: no-preference) {
  .hero__art .d-row { animation: plRow .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero__art .d-row:nth-child(1) { animation-delay: .45s; }
  .hero__art .d-row:nth-child(2) { animation-delay: .53s; }
  .hero__art .d-row:nth-child(3) { animation-delay: .61s; }
  .hero__art .d-row:nth-child(4) { animation-delay: .69s; }
  .hero__art .d-row:nth-child(5) { animation-delay: .77s; }
  @keyframes plRow { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  .hero__art .d-row:nth-child(2) .d-chip::before { animation: plPulse 1.8s ease-out infinite; }
  @keyframes plPulse { 0% { box-shadow: 0 0 0 0 rgb(23 103 63 / .55); } 70%, 100% { box-shadow: 0 0 0 6px rgb(23 103 63 / 0); } }
}

/* ---------------------------------------------------------------- bottoni
   Il primario ha un po' di corpo (luce in alto, ombra verde sotto) e un riflesso che lo attraversa. */
.btn--primary {
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .32), 0 1px 2px rgb(13 60 36 / .22), 0 12px 26px -14px rgb(31 122 77 / .75);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; translate: -130% 0;
  background: linear-gradient(105deg, transparent 32%, rgb(255 255 255 / .42) 50%, transparent 68%);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn--primary:hover::before { translate: 130% 0; transition: translate .75s cubic-bezier(.2, .7, .2, 1); }
  .btn--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / .32), 0 1px 2px rgb(13 60 36 / .22), 0 18px 34px -14px rgb(31 122 77 / .8); }
}

/* ---------------------------------------------------------------- schede dei piani
   Si alzano sotto il puntatore, con una luce menta che lo segue (--mx, --my da polish.js). */
.card--plan { transition: translate .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .3s ease; }
.card--plan > * { position: relative; z-index: 1; }
.card--plan::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgb(60 179 113 / .16), transparent 68%);
}
.card--plan.is-featured {
  background: linear-gradient(180deg, color-mix(in oklab, var(--action) 9%, var(--card)), var(--card) 46%);
  box-shadow: inset 0 0 0 1px var(--action), 0 30px 64px -44px rgb(31 122 77 / .6);
}
@media (hover: hover) and (pointer: fine) {
  .card--plan:hover::before { opacity: 1; }
  .card--plan:hover { translate: 0 -6px; box-shadow: 0 34px 64px -40px rgb(10 22 40 / .42); }
  .card--plan.is-featured:hover { box-shadow: inset 0 0 0 1px var(--action), 0 38px 70px -40px rgb(31 122 77 / .7); }
}
@media (prefers-reduced-motion: reduce) { .card--plan:hover { translate: none; } }
/* in una scheda stretta il prezzo resta intero: va a capo il "Consigliato", non il simbolo dell'euro */
.card--plan .price { flex-wrap: wrap; row-gap: var(--s-2); }
.card--plan .price .t-stat { white-space: nowrap; }

/* ---------------------------------------------------------------- la grande finestra che "atterra"
   Dove il browser sa animare sullo scroll, .tilt-in arriva inclinata e si raddrizza mentre sale
   (altrove resta piana e compare come gli altri blocchi). */
.tilt-in { box-shadow: 0 1px 2px rgb(10 22 40 / .06), 0 50px 90px -60px rgb(10 22 40 / .5); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    .tilt-in {
      transform-origin: 50% 0;
      animation: plTilt linear both; animation-timeline: view(); animation-range: entry 0% cover 34%;
    }
    @keyframes plTilt {
      from { opacity: .3; transform: perspective(1800px) rotateX(11deg) scale(.94); }
      55% { opacity: 1; }
      to { opacity: 1; transform: perspective(1800px) rotateX(0deg) scale(1); }
    }
  }
}

/* ---------------------------------------------------------------- la banda scura (la lavagna)
   Non più una fascia da bordo a bordo: una lavagna appoggiata sulla pagina, con gli angoli tondi.
   Il .wrap si allarga di quanto la banda rientra, così i suoi bordi restano sulle righe della pagina. */
main > section.ground-inverse {
  --band-in: clamp(8px, 1.4vw, 20px);
  margin-inline: var(--band-in); border-radius: clamp(20px, 2.6vw, 40px); overflow: clip;
  box-shadow: 0 50px 90px -70px rgb(10 22 40 / .7);
  padding-block: clamp(72px, 10svh, 112px);   /* una lavagna ha lo stesso margine sopra e sotto */
}
main > section.ground-inverse > :is(.wrap, .container) { width: min(100% - 2 * (var(--gut) - var(--band-in)), var(--container)); }
/* un'ancora sulla lavagna lascia vedere il suo bordo sotto l'header */
main > section.ground-inverse { scroll-margin-top: 24px; }
/* i fogli a quadretti sulla lavagna si sollevano sotto il puntatore */
main > section.ground-inverse .card--open > .panel { transition: translate .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  main > section.ground-inverse .card--open:hover > .panel { translate: 0 -5px; box-shadow: 0 30px 50px -28px rgb(0 0 0 / .75); }
}

/* ---------------------------------------------------------------- la nota del fondatore
   Un foglio appoggiato un po' storto, che si raddrizza quando ci passi sopra. */
.founder { rotate: -.6deg; transition: rotate .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s ease; }
@media (hover: hover) and (pointer: fine) {
  .founder:hover { rotate: 0deg; box-shadow: 0 36px 70px -44px rgb(10 22 40 / .55); }
}
@media (prefers-reduced-motion: reduce) { .founder { transition: none; } }

/* ---------------------------------------------------------------- footer: la scritta in gesso e l'aeroplanino */
footer.closing.footer--dark { border-radius: clamp(20px, 2.6vw, 40px) clamp(20px, 2.6vw, 40px) 0 0; }
@media (prefers-reduced-motion: no-preference) {
  html.pl-js .close__board .close__word { clip-path: inset(-20% 100% -20% -4%); }
  html.pl-js .close__board .close__word.is-written { clip-path: inset(-20% -4% -20% -4%); transition: clip-path 1.5s cubic-bezier(.6, .05, .25, 1); }
}
/* l'aeroplanino vola in percentuali della lavagna (prima erano tre tracciati in px, uno per larghezza) */
.close__board .plane { offset-path: none; left: calc(100% - 44px); top: 6px; rotate: -24deg; }
.close__board .plane.is-flying { animation: plPlane 2.8s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes plPlane {
  0%   { left: 46%; top: 78%; rotate: -4deg; opacity: 0; }
  8%   { opacity: 1; }
  30%  { left: 60%; top: 30%; rotate: -34deg; }
  55%  { left: 74%; top: 64%; rotate: 22deg; }
  78%  { left: 88%; top: 40%; rotate: -30deg; }
  100% { left: calc(100% - 44px); top: 6px; rotate: -24deg; opacity: 1; }
}
html.pl-js .close__board .plane:not(.is-flying, .has-flown) { opacity: 0; }
@media (prefers-reduced-motion: reduce) { html.pl-js .close__board .plane { opacity: 1 !important; } }
@media print {
  html.pl-js .close__board .close__word { clip-path: none !important; }
  .nav::after { display: none; }
}

/* ---------------------------------------------------------------- telefono
   Il disco dei cookie (cookie-consent.js) stava sopra i contenuti e sui bottoni di pausa: dove il footer ha già
   "Preferenze cookie", sul telefono e sul tablet non serve. */
@media (max-width: 1023px) {
  :root:has(#cookiePrefs) .tutoro-cc-fab { display: none !important; }
}

/* tutoro/menu.css */
/*
  Tutoro · il menu "Funzioni" dell'header (novembre 2026), in tutte le pagine della landing e nel blog.
  Al computer: un riquadro sospeso sotto la parola, che entra morbido; le voci arrivano una dopo l'altra con
  la loro icona, e a destra la scheda "lavagna" di Centro Studi con la mappa della sede che cambia da sola e
  una sostituzione accettata. Si apre al passaggio del mouse (dopo 150ms, come prima) o con la tastiera.
  Sul telefono, dentro il menu a tutto schermo: le stesse voci in elenco, la scheda dei centri senza disegni.
  Senza prefers-reduced-motion niente cambia nell'impaginazione, solo i movimenti spariscono.
*/
.nav__menu.mm {
  --mm-mint: #3cb371; --mm-deep: #2e9b5e; --mm-light: #edfaf4; --mm-ink: #0a1628; --mm-muted: #6b7280; --mm-board: #16231b;
  --mm-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ================================================================ computer */
@media (min-width: 1024px) {
  .nav__menu.mm {
    background: transparent; border: 0; padding: 10px 0 0;   /* il margine trasparente tiene aperto il menu mentre il mouse scende */
    transform: none; pointer-events: none;
  }
  .nav__item:hover > .nav__menu.mm, .nav__item:focus-within > .nav__menu.mm { pointer-events: auto; transform: none; }
  .mm__card {
    width: min(1100px, calc(100% - 2 * var(--gut, 24px))); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 10px; padding: 10px;
    border-radius: 26px; background: #fff;
    box-shadow: 0 0 0 1px rgb(10 22 40 / .07), 0 2px 4px rgb(10 22 40 / .04), 0 24px 48px -20px rgb(10 22 40 / .28), 0 60px 120px -60px rgb(10 22 40 / .35);
    opacity: 0; translate: 0 -10px; scale: .985; transform-origin: 30% 0;
    transition: opacity .18s ease, translate .32s var(--mm-ease), scale .32s var(--mm-ease);
  }
  .nav__item:hover > .mm .mm__card, .nav__item:focus-within > .mm .mm__card { opacity: 1; translate: 0 0; scale: 1; transition-delay: .15s; }

  .mm__main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; padding: 18px 14px 10px 18px; align-content: start; }
  .mm__col { display: grid; gap: 2px; align-content: start; }
  .mm__label { margin: 0 0 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-muted); }

  /* una voce: icona, titolo e riga; al passaggio la riga si colora e l'icona si accende */
  .mm__link { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border-radius: 16px;
    color: var(--mm-ink); text-decoration: none; transition: background-color .2s ease; }
  .mm__link::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--mm-deep); border-right: 2px solid var(--mm-deep);
    rotate: 45deg; opacity: 0; translate: -6px 0; transition: opacity .2s ease, translate .3s var(--mm-ease); }
  .mm__link:hover, .mm__link:focus-visible { background: #f4f7f5; }
  .mm__link:hover::after, .mm__link:focus-visible::after { opacity: 1; translate: 0 0; }
  .mm__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--mm-light); color: var(--mm-deep);
    box-shadow: inset 0 0 0 1px rgb(60 179 113 / .14); transition: background-color .25s ease, color .25s ease, transform .45s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease; }
  .mm__ico svg.i { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mm__link:hover .mm__ico, .mm__link:focus-visible .mm__ico { background: var(--mm-mint); color: #fff; transform: rotate(-8deg) scale(1.06); box-shadow: 0 8px 16px -8px rgb(46 155 94 / .8); }
  .mm__txt { display: grid; gap: 1px; min-width: 0; padding-right: 18px; }
  .mm__txt b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
  .mm__txt small { font-size: 13.5px; color: var(--mm-muted); }

  /* in fondo a sinistra: tutte le funzioni */
  .mm__all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 16px;
    background: #f6f8fa; color: var(--mm-ink); text-decoration: none; transition: background-color .2s ease; }
  .mm__all b { display: block; font-size: 14.5px; font-weight: 600; }
  .mm__all small { font-size: 13px; color: var(--mm-muted); }
  .mm__all:hover { background: var(--mm-light); }
  .mm__arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s var(--mm-ease); }
  .mm__all:hover .mm__arrow, .mm__board:hover .mm__go .mm__arrow, .mm__side-link:hover .mm__arrow { translate: 4px 0; }

  /* le voci entrano una dopo l'altra */
  .mm :is(.mm__label, .mm__link, .mm__all, .mm__side) { opacity: 0; translate: 0 6px; transition: opacity .25s ease, translate .4s var(--mm-ease), background-color .2s ease; }
  .nav__item:hover > .mm :is(.mm__label, .mm__link, .mm__all, .mm__side),
  .nav__item:focus-within > .mm :is(.mm__label, .mm__link, .mm__all, .mm__side) { opacity: 1; translate: 0 0; }
  .nav__item:hover > .mm .mm__col:nth-child(1) > :nth-child(1) { transition-delay: .17s, .17s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(1) > :nth-child(2) { transition-delay: .2s, .2s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(1) > :nth-child(3) { transition-delay: .23s, .23s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(1) > :nth-child(4) { transition-delay: .26s, .26s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(2) > :nth-child(1) { transition-delay: .2s, .2s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(2) > :nth-child(2) { transition-delay: .23s, .23s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(2) > :nth-child(3) { transition-delay: .26s, .26s, 0s; }
  .nav__item:hover > .mm .mm__col:nth-child(2) > :nth-child(4) { transition-delay: .29s, .29s, 0s; }
  .nav__item:hover > .mm .mm__all { transition-delay: .32s, .32s, 0s; }
  .nav__item:hover > .mm .mm__side { transition-delay: .22s, .22s, 0s; }

  /* ---- a destra: la lavagna dei centri studi ---- */
  .mm__side { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
  .mm__board { position: relative; display: grid; align-content: start; gap: 4px; min-height: 300px; padding: 22px 22px 20px; border-radius: 20px; overflow: hidden; isolation: isolate;
    background-color: var(--mm-board); color: #eef4ee; text-decoration: none;
    background-image: radial-gradient(80% 60% at 100% 0%, rgb(60 179 113 / .22), transparent 70%),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='372' height='320' fill='none' stroke='%23eef4ee' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M300 60 q30 -50 60 0'/%3E%3Cpath d='M292 66 H372 M330 84 V10'/%3E%3Cpath d='M24 292 h26 m-13 -13 v26 M70 292 h20'/%3E%3C/svg%3E");
    background-repeat: no-repeat; transition: translate .35s var(--mm-ease), box-shadow .35s ease; }
  .mm__board:hover { translate: 0 -2px; box-shadow: 0 22px 40px -24px rgb(0 0 0 / .7); }
  .mm__kicker { font: 600 22px/1 var(--hand, "Caveat", cursive); color: #9fe3bd; transform: rotate(-2deg); transform-origin: left; }
  .mm__title { margin-top: 6px; font: 500 26px/1.1 var(--font-display, "Geist", sans-serif); letter-spacing: -.03em; color: #fff; }
  .mm__sub { max-width: 30ch; font-size: 14px; line-height: 1.45; color: #b9c8be; }
  .mm__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 600; color: #fff; }

  /* la sede vista dall'alto: le aule si liberano e si occupano da sole */
  .mm__map { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 52px 46px; gap: 5px; margin-top: 16px; padding: 6px; border-radius: 12px;
    background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(238 244 238 / .1); }
  .mm__map .r { position: relative; display: flex; align-items: flex-end; padding: 5px 7px; border-radius: 7px; font-style: normal;
    background: rgb(60 179 113 / .26); box-shadow: inset 0 0 0 1px rgb(127 224 168 / .35); }
  .mm__map .r em { font: 500 10.5px/1 var(--font-text, "Geist", sans-serif); font-style: normal; color: rgb(238 244 238 / .85); white-space: nowrap; }
  .mm__map .r::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: #7fe0a8; box-shadow: 0 0 0 3px rgb(127 224 168 / .18); }
  .mm__map .r4 { grid-column: 1 / 3; }
  .mm__map .r.is-busy, .mm__map .r2, .mm__map .r5 { background: rgb(224 98 84 / .24); box-shadow: inset 0 0 0 1px rgb(240 140 128 / .35); }
  .mm__map .r2::after, .mm__map .r5::after { background: #f08c80; box-shadow: 0 0 0 3px rgb(240 140 128 / .18); }

  /* il biglietto: una sostituzione accettata, che arriva quando si apre il menu */
  .mm__toast { position: absolute; right: 16px; bottom: 58px; display: grid; grid-template-columns: 22px auto; column-gap: 8px; align-items: center; padding: 8px 12px 8px 9px; border-radius: 12px;
    background: #fff; color: var(--mm-ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 14px 28px -12px rgb(0 0 0 / .55); z-index: 2; }
  .mm__toast svg { grid-row: span 2; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--mm-mint); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .mm__toast small { font-size: 11.5px; font-weight: 400; color: var(--mm-muted); }

  .mm__side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--mm-ink);
    text-decoration: none; transition: background-color .2s ease; }
  .mm__side-link:hover { background: #f4f7f5; }

  @media (prefers-reduced-motion: no-preference) {
    @keyframes mmBusy { 0%, 42% { background: rgb(60 179 113 / .26); box-shadow: inset 0 0 0 1px rgb(127 224 168 / .35); } 50%, 92% { background: rgb(224 98 84 / .24); box-shadow: inset 0 0 0 1px rgb(240 140 128 / .35); } 100% { background: rgb(60 179 113 / .26); box-shadow: inset 0 0 0 1px rgb(127 224 168 / .35); } }
    @keyframes mmBusyDot { 0%, 42% { background: #7fe0a8; } 50%, 92% { background: #f08c80; } 100% { background: #7fe0a8; } }
    @keyframes mmToast { 0% { opacity: 0; translate: 0 14px; scale: .94; } 60% { opacity: 1; translate: 0 -2px; scale: 1.01; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
    @keyframes mmPing { 0% { box-shadow: 0 0 0 0 rgb(127 224 168 / .6); } 100% { box-shadow: 0 0 0 10px rgb(127 224 168 / 0); } }
    .nav__item:hover > .mm .mm__map .r1, .nav__item:focus-within > .mm .mm__map .r1 { animation: mmBusy 5.2s ease-in-out .9s infinite; }
    .nav__item:hover > .mm .mm__map .r1::after, .nav__item:focus-within > .mm .mm__map .r1::after { animation: mmBusyDot 5.2s ease-in-out .9s infinite; }
    .nav__item:hover > .mm .mm__map .r4, .nav__item:focus-within > .mm .mm__map .r4 { animation: mmBusy 6.4s ease-in-out 2.2s infinite; }
    .nav__item:hover > .mm .mm__map .r4::after, .nav__item:focus-within > .mm .mm__map .r4::after { animation: mmBusyDot 6.4s ease-in-out 2.2s infinite; }
    .nav__item:hover > .mm .mm__map .r3::after, .nav__item:focus-within > .mm .mm__map .r3::after { animation: mmPing 1.4s ease-out .7s 3; }
    .mm__toast { opacity: 0; }
    .nav__item:hover > .mm .mm__toast, .nav__item:focus-within > .mm .mm__toast { animation: mmToast .6s var(--mm-ease) .7s both; }
  }
}

/* ================================================================ telefono e tablet: dentro il menu a tutto schermo */
@media (max-width: 1023px) {
  .nav.is-open .nav__menu.mm { padding: 0 0 18px; }
  .mm__card, .mm__main, .mm__col, .mm__side { display: grid; gap: 2px; }
  .mm__card { gap: 14px; }
  .mm__label { margin: 8px 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mm-muted); }
  .mm__link { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; color: var(--mm-ink); text-decoration: none; }
  .mm__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mm-light); color: var(--mm-deep); }
  .mm__ico svg.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .mm__txt { display: grid; gap: 1px; }
  .mm__txt b { font-size: 16px; font-weight: 500; }
  .mm__txt small { font-size: 13.5px; color: var(--mm-muted); }
  .mm__all, .mm__side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--mm-ink); text-decoration: none; }
  .mm__all small { display: none; }
  .mm__arrow { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .mm__board { display: grid; gap: 3px; margin-top: 6px; padding: 16px 18px; border-radius: 16px; background: var(--mm-board); color: #eef4ee; text-decoration: none; }
  .mm__kicker { font: 600 19px/1 var(--hand, "Caveat", cursive); color: #9fe3bd; }
  .mm__title { font-size: 19px; font-weight: 600; color: #fff; letter-spacing: -.01em; }
  .mm__sub { font-size: 13.5px; color: #b9c8be; }
  .mm__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 600; color: #fff; }
  .mm__map, .mm__toast { display: none; }
}

/* tutoro/blog.css */
/*
  Tutoro · il blog con l'aspetto della landing (novembre 2026). Lo carica blog-render.js.
  Il vecchio /blog.css resta com'era: lo usa ancora l'anteprima degli articoli nell'admin
  (webapp/src/lib/admin/blog-preview-render.ts), che ha il suo markup.
  Header, footer, bottoni, griglia e caratteri vengono da /assets/system.css e /assets/tutoro/polish.css, come
  nella home; qui ci sono solo l'elenco degli articoli (.bl-*) e la pagina articolo (.post*), più i segni di scuola
  della landing (quaderno a quadretti, penna rossa e blu, gesso sulla lavagna, scrittura a mano).
  Regola di casa: quello che nasconde qualcosa per farlo entrare vale solo con html.bl-js (lo mette lo script
  della pagina), quindi senza script la pagina è intera; con prefers-reduced-motion non si muove niente.
*/
:root {
  --pen-red: #d0453b; --pen-blue: #2f5da8; --chalk: #eef4ee; --hand: "Caveat", "Segoe Print", cursive;
  --sq: rgb(47 93 168 / .14); --paper: #fcfdfb;
  --mint: #3cb371; --deep: #2e9b5e; --mint-light: #edfaf4; --board: #16231b;
  --read: 680px;
}

/* ---------------------------------------------------------------- i pezzi condivisi della landing */
.nav__logo img, .footer-logo img { width: 28px; height: 28px; border-radius: 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.legal-links a { color: inherit; }
footer.closing.footer--dark { background-color: var(--board); }
.chalk-word { color: var(--chalk); text-shadow: 0 0 1px rgb(238 244 238 / .6), 1px 1px 0 rgb(238 244 238 / .08); opacity: .94; }
.close__word.chalk-word { overflow: visible; line-height: 1.05; padding-top: .08em; }
.close__board { position: relative; }
.plane { position: absolute; left: 0; top: 0; width: 40px; height: 24px; overflow: visible; pointer-events: none; }
.plane path { fill: rgb(238 244 238 / .95); stroke: var(--board); stroke-width: 1.2; stroke-linejoin: round; }
@media (max-width: 1023px) { .plane { display: none; } }
:focus-visible { outline-color: var(--ink) !important; }
.ground-inverse :focus-visible, footer.closing :focus-visible { outline-color: var(--chalk) !important; }

/* l'evidenziatore sotto una parola del titolo, che si disegna quando entra */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl--wrap { white-space: normal; }
.hl__mark { position: absolute; left: -2%; bottom: -.02em; width: 104%; height: .42em; z-index: -1; overflow: visible; }
.hl__mark path { fill: none; stroke: rgb(60 179 113 / .45); stroke-width: 22; stroke-linecap: round; }
html.bl-js [data-draw] path[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.bl-js [data-draw].is-drawn path[pathLength] { animation: blDraw 1s cubic-bezier(.6, .1, .3, 1) .2s both; }
@keyframes blDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* le schede entrano dal basso, una dopo l'altra */
@media (prefers-reduced-motion: no-preference) {
  html.bl-js .bl-rise { opacity: 0; translate: 0 22px; transition: opacity .7s ease var(--d, 0ms), translate .9s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms); }
  html.bl-js .bl-rise.is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { html.bl-js [data-draw] path[pathLength] { stroke-dashoffset: 0; animation: none; } }

.blog-main { overflow-x: clip; }

/* ================================================================ l'elenco degli articoli */
main > .bl-hero { padding: calc(var(--nav) + clamp(48px, 7vw, 96px)) 0 clamp(28px, 4vw, 48px); }
main > .bl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 12% 0%, rgb(60 179 113 / .12), transparent 70%),
              radial-gradient(50% 60% at 95% 30%, rgb(47 93 168 / .07), transparent 70%);
}
.bl-hero .wrap { max-width: 1180px; margin-inline: auto; }
.bl-eyebrow { margin: 0 0 var(--s-4); font-size: 14px; font-weight: 500; color: var(--muted); }
.bl-hero h1 { max-width: 16ch; font-size: clamp(40px, 4.6vw + 14px, 76px); line-height: 1.02; letter-spacing: var(--display-tracking-xl, -0.045em); font-weight: 500; }
.bl-lead { margin-top: var(--s-5); max-width: 56ch; font-size: clamp(17px, .5vw + 15px, 20px); line-height: 1.55; color: var(--muted); }

/* gli argomenti: pillole; sul telefono scorrono di lato */
.bl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-7); }
.bl-chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, translate .25s cubic-bezier(.2, .7, .2, 1); }
.bl-chip:first-letter { text-transform: uppercase; }
a.bl-chip:hover { border-color: var(--mint); background: var(--mint-light); color: #1f7a4d; translate: 0 -1px; }
.bl-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

main > .bl-list { padding: var(--s-5) 0 clamp(72px, 8vw, 120px); }
.bl-list .wrap { max-width: 1180px; margin-inline: auto; display: grid; gap: clamp(28px, 3vw, 44px); }

/* la scheda */
.bl-card { position: relative; display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
.bl-card__cover { position: relative; display: block; overflow: hidden; aspect-ratio: 1200 / 630; border-radius: 18px; background: var(--board);
  box-shadow: 0 0 0 1px rgb(10 22 40 / .06), 0 22px 40px -30px rgb(10 22 40 / .55); }
.bl-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.bl-card__body { display: grid; gap: 8px; padding: 16px 2px 0; }
.bl-card__tag { justify-self: start; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--deep); }
.bl-card__tag:first-letter { text-transform: uppercase; }
.bl-card__title { margin: 0; font: 600 19px/1.3 var(--font-text); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; transition: color .2s ease; }
.bl-card__excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bl-card__meta { font-size: 13px; color: color-mix(in oklab, var(--muted) 80%, white); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .bl-card:hover .bl-card__cover img { scale: 1.035; }
  .bl-card:hover .bl-card__title { color: #1f7a4d; }
}
.bl-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 18px; }

/* la prima, grande: copertina a sinistra, testo a destra */
.bl-feature .bl-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: center; }
.bl-feature .bl-card__cover { border-radius: 22px; }
.bl-feature .bl-card__body { padding: 0; gap: 12px; }
.bl-feature .bl-card__title { font-size: clamp(26px, 1.6vw + 14px, 38px); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; }
.bl-feature .bl-card__excerpt { font-size: 17px; -webkit-line-clamp: 4; }

.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.2vw, 48px) clamp(20px, 2.4vw, 32px);
  padding-top: clamp(28px, 3vw, 44px); border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* tablet: la prima va in colonna, copertina sopra e testo sotto */
@media (max-width: 899px) {
  .bl-feature .bl-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .bl-feature .bl-card__title { max-width: 24ch; }
}

.bl-empty { display: grid; justify-items: start; gap: var(--s-5); padding: var(--s-6) 0; font-size: 18px; color: var(--muted); }

/* telefono: la prima resta grande, le altre diventano un elenco compatto (copertina piccola a sinistra) */
@media (max-width: 639px) {
  main > .bl-hero { padding-top: calc(var(--nav) + 36px); padding-bottom: 20px; }
  .bl-hero h1 { font-size: 40px; line-height: 1.04; }
  .bl-lead { font-size: 16.5px; margin-top: 14px; }
  .bl-chips { flex-wrap: nowrap; overflow-x: auto; margin: 22px calc(-1 * var(--gut)) 0; padding: 2px var(--gut) 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - 28px), transparent); }
  .bl-chips::-webkit-scrollbar { display: none; }
  .bl-chip { height: 34px; padding: 0 13px; font-size: 13.5px; }
  main > .bl-list { padding-top: 12px; }
  .bl-list .wrap { gap: 24px; }
  .bl-feature .bl-card { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bl-feature .bl-card__body { padding-top: 16px; gap: 8px; }
  .bl-feature .bl-card__title { font-size: 25px; }
  .bl-feature .bl-card__excerpt { font-size: 15.5px; -webkit-line-clamp: 3; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 4px; }
  .bl-grid .bl-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .bl-grid .bl-card__cover { border-radius: 12px; margin-top: 3px; }
  .bl-grid .bl-card__body { padding: 0; gap: 5px; }
  .bl-grid .bl-card__title { font-size: 16.5px; line-height: 1.3; }
  .bl-grid .bl-card__excerpt { display: none; }
  .bl-grid .bl-card__tag { font-size: 12px; }
  .bl-grid .bl-card__meta { font-size: 12.5px; }
}

/* ================================================================ l'articolo */
.post__head { padding: calc(var(--nav) + clamp(40px, 5vw, 72px)) 0 clamp(24px, 3vw, 36px); position: relative; }
.post__head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 80% at 10% 0%, rgb(60 179 113 / .11), transparent 70%);
}
.post__head .wrap, .post__cover, .post__layout { max-width: 1080px; margin-inline: auto; }
.post__head .wrap > * { max-width: 860px; }
.post__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s-5); font-size: 14px; color: var(--muted); }
.post__crumbs a { color: var(--muted); transition: color .2s ease; }
.post__crumbs a:first-letter { text-transform: uppercase; }
.post__crumbs a:hover { color: var(--ink); }
.post__crumbs a:last-child { color: var(--deep); font-weight: 500; }
.post__title { font-size: clamp(34px, 2.6vw + 20px, 58px); line-height: 1.06; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.post__lead { margin-top: var(--s-5); font-size: clamp(18px, .5vw + 16px, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.post__meta { display: flex; align-items: center; gap: 12px; margin-top: var(--s-6); }
.post__av img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 18px -10px rgb(10 22 40 / .6); }
.post__by { display: grid; line-height: 1.35; }
.post__by b { font-weight: 600; font-size: 15px; }
.post__by small { font-size: 13.5px; color: var(--muted); }

/* la copertina, appoggiata sul quaderno */
.post__cover { margin-top: var(--s-4); padding: clamp(10px, 1.4vw, 18px); border-radius: 28px;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 39px, rgb(208 69 59 / .45) 39px, rgb(208 69 59 / .45) 41px, transparent 41px),
    linear-gradient(var(--sq) 1px, transparent 1px), linear-gradient(90deg, var(--sq) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px; background-position: 0 0, -1px -1px, -1px -1px;
  box-shadow: 0 0 0 1px rgb(10 22 40 / .06), 0 30px 60px -44px rgb(10 22 40 / .5); }
.post__cover img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 18px; box-shadow: 0 22px 44px -26px rgb(10 22 40 / .55); }

/* testo e indice */
.post__layout { display: grid; grid-template-columns: minmax(0, var(--read)); justify-content: center; padding: clamp(36px, 5vw, 64px) 0 clamp(64px, 7vw, 104px); }
@media (min-width: 1100px) {
  .post__layout.has-toc { grid-template-columns: 240px minmax(0, var(--read)); column-gap: clamp(40px, 5vw, 80px); justify-content: space-between; align-items: start; }
  .post__layout.has-toc .post__toc { position: sticky; top: calc(var(--nav) + 28px); }
}

/* l'indice dell'articolo, scritto a mano su un foglio a righe */
.post__toc { margin: 0 0 var(--s-6); padding: 18px 20px 16px 46px; border-radius: 18px; position: relative;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 30px, rgb(208 69 59 / .45) 30px, rgb(208 69 59 / .45) 32px, transparent 32px),
    repeating-linear-gradient(transparent 0 31px, rgb(47 93 168 / .16) 31px 32px);
  background-position: 0 0, 0 10px;
  box-shadow: 0 0 0 1px rgb(10 22 40 / .06), 0 20px 40px -32px rgb(10 22 40 / .45); }
.post__toc summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font: 700 25px/32px var(--hand); color: var(--pen-red); }
.post__toc summary::-webkit-details-marker { display: none; }
.post__toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate .25s ease, translate .25s ease; }
.post__toc[open] summary::after { rotate: 225deg; translate: 0 3px; }
.post__toc ol { margin: 4px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.post__toc li { counter-increment: toc; }
.post__toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); padding: 0; font: 600 19px/32px var(--hand); color: #26324a; transition: color .2s ease; }
.post__toc a::before { content: counter(toc) "."; color: var(--pen-blue); }
.post__toc a:hover { color: var(--pen-blue); }
.post__toc a.is-here { color: var(--pen-blue); }
@media (min-width: 1100px) {
  .post__layout.has-toc .post__toc { margin: 0; }
  .post__toc summary { cursor: default; pointer-events: none; }
  .post__toc summary::after { display: none; }
}

/* ---------------------------------------------------------------- il testo */
.post__prose { font-size: 18px; line-height: 1.75; color: #1d2735; overflow-wrap: break-word; }
.post__prose > * + * { margin-top: 1.15em; }
.post__prose :is(h1, h2) { margin-top: 2.2em; font: 600 clamp(25px, .8vw + 19px, 31px)/1.2 var(--font-text); letter-spacing: -0.025em; color: var(--ink); scroll-margin-top: calc(var(--nav) + 24px); text-wrap: balance; }
.post__prose h3 { margin-top: 1.9em; font: 600 21px/1.3 var(--font-text); letter-spacing: -0.015em; color: var(--ink); scroll-margin-top: calc(var(--nav) + 24px); }
.post__prose h4 { margin-top: 1.6em; font: 600 18px/1.35 var(--font-text); color: var(--ink); }
.post__prose :is(h1, h2, h3, h4) + * { margin-top: .6em; }
.post__prose > :first-child { margin-top: 0; }
.post__prose strong { font-weight: 600; color: var(--ink); }
.post__prose a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgb(60 179 113 / .7); text-decoration-thickness: 2px; text-underline-offset: 3px;
  transition: text-decoration-color .2s ease, color .2s ease; }
.post__prose a:hover { color: #1f7a4d; text-decoration-color: var(--mint); }
.post__prose :is(ul, ol) { padding-left: 1.6em; }
.post__prose ul { list-style: none; }
.post__prose ul > li { position: relative; }
.post__prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.post__prose ol { list-style: decimal; }
.post__prose ol > li::marker { color: var(--deep); font-weight: 600; }
.post__prose li + li { margin-top: .45em; }
.post__prose li > :is(ul, ol) { margin-top: .45em; }
/* la citazione: un foglio del quaderno con il margine rosso */
.post__prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 18px 22px 18px 52px; border-radius: 16px;
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 32px, rgb(208 69 59 / .45) 32px, rgb(208 69 59 / .45) 34px, transparent 34px);
  box-shadow: 0 0 0 1px rgb(10 22 40 / .06); color: #26324a; font-size: 17.5px; }
.post__prose blockquote > * + * { margin-top: .7em; }
.post__prose code { font-family: var(--font-mono); font-size: .86em; padding: .12em .38em; border-radius: 6px; background: #f1f4f8; color: var(--ink); }
.post__prose pre { overflow-x: auto; padding: 16px 18px; border-radius: 14px; background: var(--board); color: #e6efe8; font-size: 14.5px; line-height: 1.6; }
.post__prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.post__prose img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgb(10 22 40 / .06), 0 20px 40px -30px rgb(10 22 40 / .5); }
.post__prose hr { border: 0; height: 14px; margin: 2.4em auto; width: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14'%3E%3Cpath d='M3 8 C 25 3, 45 12, 62 7 S 100 3, 117 8' fill='none' stroke='%233cb371' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
/* le tabelle: scorrono di lato dentro la loro cornice, mai la pagina */
.post__prose .blog-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.post__prose table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.post__prose th { text-align: left; padding: 12px 16px; background: #f4f6fa; font-weight: 600; color: var(--ink); white-space: nowrap; }
.post__prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; min-width: 8.5em; }
.post__prose td:first-child { font-weight: 500; color: var(--ink); }
.post__prose tbody tr:nth-child(even) td { background: #fafbfc; }

.post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-7); }
.post__tags a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: #f4f6fa; color: var(--muted); font-size: 14px; font-weight: 500;
  transition: background-color .2s ease, color .2s ease; }
.post__tags a:hover { background: var(--mint-light); color: #1f7a4d; }

/* in fondo: due righe su Tutoro, sulla lavagna */
.post__cta { position: relative; margin-top: var(--s-8); padding: clamp(26px, 3.4vw, 40px); border-radius: 24px; overflow: hidden;
  background-color: var(--board); color: var(--chalk);
  background-image: radial-gradient(70% 90% at 0% 0%, rgb(255 255 255 / .06), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='300' fill='none' stroke='%23eef4ee' stroke-opacity='.08' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M300 60 q40 -70 80 0'/%3E%3Cpath d='M290 70 H400 M340 90 V0'/%3E%3Cpath d='M40 240 h30 m-15 -15 v30 M100 240 h24'/%3E%3Ccircle cx='360' cy='230' r='26'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 0, right -20px bottom -20px; }
.post__cta-hand { margin: 0 0 4px; font: 600 24px/1.1 var(--hand); color: #9fe3bd; transform: rotate(-2deg); transform-origin: left; }
.post__cta h2 { margin: 0; font: 500 clamp(26px, 1.2vw + 18px, 34px)/1.12 var(--font-display); letter-spacing: -0.03em; color: #fff; }
.post__cta p:not(.post__cta-hand) { margin-top: 12px; max-width: 52ch; font-size: 16.5px; line-height: 1.55; color: #c3d1c7; }
.post__cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px; }
.post__cta-link { color: #fff; font-weight: 500; font-size: 15px; text-decoration: underline; text-decoration-color: rgb(238 244 238 / .4); text-underline-offset: 4px; }
.post__cta-link:hover { text-decoration-color: #fff; }

/* continua a leggere */
main > .post-related { padding: clamp(56px, 6vw, 88px) 0 clamp(72px, 8vw, 112px); background: #f6f8fb; border-top: 1px solid var(--line); }
.post-related .wrap { max-width: 1180px; margin-inline: auto; }
.post-related h2 { font-size: clamp(28px, 1.4vw + 18px, 40px); letter-spacing: -0.03em; font-weight: 500; margin-bottom: clamp(24px, 3vw, 36px); }
.post-related .bl-grid { border-top: 0; padding-top: 0; }

@media (max-width: 639px) {
  .post__head { padding-top: calc(var(--nav) + 28px); padding-bottom: 18px; }
  .post__crumbs { margin-bottom: 14px; font-size: 13.5px; }
  .post__title { font-size: 31px; line-height: 1.1; letter-spacing: -0.03em; }
  .post__lead { font-size: 17px; margin-top: 14px; }
  .post__meta { margin-top: 18px; }
  .post__cover { padding: 8px; border-radius: 20px; background-image: linear-gradient(var(--sq) 1px, transparent 1px), linear-gradient(90deg, var(--sq) 1px, transparent 1px); background-size: 16px 16px, 16px 16px; }
  .post__cover img { border-radius: 13px; }
  .post__layout { padding: 28px 0 56px; }
  .post__toc { padding: 12px 16px 10px 42px; }
  .post__toc summary { font-size: 23px; }
  .post__toc a { font-size: 18px; }
  .post__prose { font-size: 17px; line-height: 1.7; }
  .post__prose :is(h1, h2) { font-size: 23px; margin-top: 1.9em; }
  .post__prose h3 { font-size: 19px; }
  .post__prose blockquote { padding: 14px 16px 14px 44px; background-image: linear-gradient(90deg, transparent 26px, rgb(208 69 59 / .45) 26px, rgb(208 69 59 / .45) 28px, transparent 28px); font-size: 16.5px; }
  .post__prose table { font-size: 14.5px; }
  .post__prose :is(th, td) { padding: 10px 12px; }
  .post__cta { margin-top: 40px; border-radius: 20px; }
  .post-related .bl-grid { gap: 0; }
}

@media print {
  .nav, footer.closing, .post__cta, .post-related, .post__toc { display: none !important; }
  .post__head { padding-top: 0; }
}

