/* Stile comune "mappa della metro" (home, homelab e via via le altre pagine). Si carica dopo style.css; le pagine hanno body class="mp" */

@font-face{font-family:"Hanken Grotesk";src:url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hanken Grotesk";src:url("/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- Colori: foglio della mappa (chiaro) e mappa notturna (scuro) ---------- */
/* Ogni palette del selettore dà il colore alla linea L (il mio percorso); H e S prendono due colori vicini */
:root{
  --font:"Hanken Grotesk",system-ui,sans-serif;
  --teal:var(--teal-d);--blue:var(--blue-d);--violet:var(--violet-d);--amber:var(--amber-d);--rose:var(--rose-d);
  --teal-d:#4cc9b0;--blue-d:#7aa2f7;--violet-d:#b392f0;--amber-d:#f2b84b;--rose-d:#f47c9a;
  --teal-l:#0b7a68;--blue-l:#3a5bd9;--violet-l:#6f42c1;--amber-l:#b45309;--rose-l:#c2255c;
  --ll:var(--teal);--lh:var(--blue);--ls:var(--rose);
  --bg:#121a21;--panel:#18222b;--line:#2a3843;--text:#e7edf1;--muted:#9fadb7;--on-line:#121a21;
}
:root[data-accent="blue"]{--ll:var(--blue);--lh:var(--teal);--ls:var(--amber)}
:root[data-accent="violet"]{--ll:var(--violet);--lh:var(--teal);--ls:var(--amber)}
:root[data-accent="amber"]{--ll:var(--amber);--lh:var(--blue);--ls:var(--rose)}
:root[data-accent="rose"]{--ll:var(--rose);--lh:var(--teal);--ls:var(--blue)}

@media (prefers-color-scheme: light){
  :root:not([data-mode="dark"]){
    --teal:var(--teal-l);--blue:var(--blue-l);--violet:var(--violet-l);--amber:var(--amber-l);--rose:var(--rose-l);
    --bg:#f3f5f4;--panel:#ffffff;--line:#d3dad7;--text:#14191c;--muted:#4c585e;--on-line:#ffffff;
  }
}
:root[data-mode="light"]{
  --teal:var(--teal-l);--blue:var(--blue-l);--violet:var(--violet-l);--amber:var(--amber-l);--rose:var(--rose-l);
  --bg:#f3f5f4;--panel:#ffffff;--line:#d3dad7;--text:#14191c;--muted:#4c585e;--on-line:#ffffff;
}
:root[data-mode="dark"]{
  --teal:var(--teal-d);--blue:var(--blue-d);--violet:var(--violet-d);--amber:var(--amber-d);--rose:var(--rose-d);
  --bg:#121a21;--panel:#18222b;--line:#2a3843;--text:#e7edf1;--muted:#9fadb7;--on-line:#121a21;
}

/* ---------- Base ---------- */
.mp{font-family:var(--font);font-size:17px;line-height:1.6;font-feature-settings:"tnum" 0}
.mp ::selection{background:var(--ll);color:var(--on-line)}
.mp{scrollbar-color:var(--line) var(--bg)}
.mp a{color:var(--text);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--text) 35%,transparent);text-decoration-thickness:1.5px;text-underline-offset:4px}
.mp a:hover{text-decoration-color:currentColor}
.mp :focus-visible{outline:3px solid var(--text);outline-offset:3px;border-radius:3px}
.mp .wrap{max-width:1240px;padding:0 24px}

/* intestazione */
.mp header.top{background:var(--bg);backdrop-filter:none;-webkit-backdrop-filter:none;border-bottom:1px solid var(--line)}
.mp header.top .wrap{max-width:1240px;height:64px}
.mp .logo{font-family:var(--font);font-weight:800;font-size:1.15rem;letter-spacing:-.01em;text-decoration:none}
.mp .logo span{color:var(--ll)}
.mp nav a{color:var(--muted);text-decoration:none;font-size:.95rem;font-weight:500}
.mp nav a:hover{color:var(--text)}
.mp nav a.nav-cl{color:var(--muted)}
.mp .lang{font-family:var(--font);font-weight:600}
.mp .lang a{text-decoration:none}
.mp nav{display:flex;flex-wrap:wrap;gap:4px 20px}
.mp nav a{margin:0}
@media (max-width:640px){.mp header.top .wrap{height:auto;padding-top:12px;padding-bottom:12px}.mp header.top .right{gap:10px 14px}.mp nav{gap:2px 14px;font-size:.9rem}}

/* bottoni */
.mp .btn{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border-radius:999px;border:2px solid var(--text);background:transparent;color:var(--text);font-weight:700;font-size:1rem;text-decoration:none;transition:background-color .2s ease,color .2s ease}
.mp .btn:hover{transform:none;filter:none;background:var(--text);color:var(--bg)}
.mp .btn.primary{background:var(--ll);border-color:var(--ll);color:var(--on-line)}
.mp .btn.primary:hover{background:var(--text);border-color:var(--text);color:var(--bg)}
.mp .btn:active{transform:translateY(1px)}

/* dischi delle linee (H, S, L) */
.b-h,.b-s,.b-l{display:inline-flex;align-items:center;justify-content:center;flex:none;width:1.7em;height:1.7em;border-radius:50%;font-style:normal;font-weight:800;font-size:.8em;line-height:1;color:var(--on-line)}
.b-h{background:var(--lh)}.b-s{background:var(--ls)}.b-l{background:var(--ll)}

/* ---------- La mappa ---------- */
.mp .map{max-width:1240px;margin:0 auto;padding:16px 24px 8px;border:0}
.map-frame{position:relative;container-type:inline-size}
.map-svg{display:block;width:100%;height:auto;overflow:visible}
.map-svg .track,.map-svg .future{fill:none;stroke-width:11;stroke-linecap:round;stroke-linejoin:round}
.ln-h .track{stroke:var(--lh)}.ln-s .track{stroke:var(--ls)}.ln-l .track{stroke:var(--ll)}
.map-svg .future{stroke:var(--ll);stroke-dasharray:16 14;opacity:.6}
.map-svg .badge circle{stroke:var(--bg);stroke-width:4}
.map-svg .badge text{font:800 18px var(--font);fill:var(--on-line)}
.b-h circle,.badge.b-h circle{fill:var(--lh)}.badge.b-s circle{fill:var(--ls)}.badge.b-l circle{fill:var(--ll)}
.map-svg .st{text-decoration:none;cursor:pointer}
.map-svg .st circle{fill:var(--bg);stroke-width:5;transition:r .2s cubic-bezier(.16,1,.3,1),stroke-width .2s}
.ln-h .st circle{stroke:var(--lh)}.ln-s .st circle{stroke:var(--ls)}.ln-l .st circle{stroke:var(--ll)}
.map-svg .st.next circle{stroke-dasharray:5 4}
.map-svg .today rect{fill:var(--bg);stroke:var(--text);stroke-width:6}
.map-svg .sname{font:650 17px var(--font);fill:var(--text)}
.map-svg .sname.big{font-size:24px;font-weight:800}
.map-svg .ssub{font:500 13.5px var(--font);fill:var(--muted)}
.map-svg .st:hover circle,.map-svg .st:focus-visible circle{r:12;stroke-width:6}
.map-svg .st:hover .sname,.map-svg .st:focus-visible .sname{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.map-svg .st:focus-visible{outline:none}
.map-svg .st:focus-visible circle{stroke:var(--text);stroke-width:7;r:13}
/* passando su una fermata, la sua linea resta e le altre si spengono */
.map-svg .ln{transition:opacity .25s ease}
.map-svg:has(.ln-h .st:is(:hover,:focus-visible)) .ln:not(.ln-h),
.map-svg:has(.ln-s .st:is(:hover,:focus-visible)) .ln:not(.ln-s),
.map-svg:has(.ln-l .st:is(:hover,:focus-visible)) .ln:not(.ln-l){opacity:.16}

/* titolo della mappa, nell'angolo libero in alto a destra */
.map .title{position:absolute;left:66.5%;top:0;width:32%}
.map h1{font-family:var(--font);font-size:clamp(2.4rem,4.1cqw,4rem);font-weight:850;line-height:.95;letter-spacing:-.035em;color:var(--text);text-wrap:balance}
.map .role{margin-top:1cqw;font-size:clamp(.95rem,1.35cqw,1.15rem);line-height:1.45;color:var(--muted);max-width:30ch;text-wrap:pretty}
.map .cta{margin-top:1.4cqw;gap:10px}

/* sotto la mappa: avviso con l'ultima versione (changelog.js) e suggerimento */
.under{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px;margin-top:10px}

.mp .cl-pill{margin:0;border-color:var(--line);background:var(--panel);text-decoration:none;font-size:13.5px}
.mp .cl-pill-v{font-family:var(--font);font-weight:800;background:var(--ll);color:var(--on-line)}
.mp .cl-pill-go{color:var(--text)}

/* legenda */
.map .legend{position:absolute;left:1.5%;bottom:3%;display:grid;gap:6px;list-style:none;font-weight:650;font-size:.92rem;padding:10px 16px;border:1.5px solid var(--line);border-radius:10px;background:var(--bg)}
.map .legend li{display:flex;align-items:center;gap:8px}
.hint{color:var(--muted);font-size:13.5px}
@media (hover:none){.hint{display:none}}

/* le linee si disegnano una volta all'apertura */
@media (prefers-reduced-motion:no-preference){
  .map-svg .track{stroke-dasharray:1;animation:draw 1.5s cubic-bezier(.16,1,.3,1) both}
  .map-svg .ln-h .track{animation-delay:.15s}
  .map-svg .ln-s .track{animation-delay:.3s}
  .map-svg .future{animation:fade .6s ease 1.2s both}
}
@keyframes draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes fade{from{opacity:0}to{opacity:.6}}

/* ---------- Telefono: la mappa diventa tre linee in verticale ---------- */
.strips{display:none}
@media (max-width:860px){
  .mp .map{padding-top:36px}
  .map-svg,.map .legend,.hint{display:none}
  .mp .map{display:flex;flex-direction:column}
  .under{order:3;margin-top:32px}
  .map .title{position:static;width:auto}
  .map h1{font-size:clamp(2.4rem,12vw,4rem)}
  .map .role{margin-top:12px;font-size:1.08rem}
  .map .cta{margin-top:20px}
  .strips{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));margin-top:36px}
  .strip-n{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.1rem;margin-bottom:8px}
  .strip{list-style:none;position:relative;padding-left:40px}
  .strip li{position:relative}
  .strip li::after{content:"";position:absolute;left:-30px;top:0;bottom:0;width:8px;background:var(--c)}
  .strip li:first-child::after{top:22px}
  .strip li:last-child::after{bottom:auto;height:22px}
  .strip li.next::after{background:repeating-linear-gradient(var(--c) 0 8px,transparent 8px 14px);opacity:.7}
  .strip li::before{content:"";position:absolute;z-index:1;left:-37px;top:12px;width:22px;height:22px;border-radius:50%;background:var(--bg);border:5px solid var(--c);box-sizing:border-box}
  .strip li.x::before{left:-40px;top:9px;width:28px;height:28px;border:6px solid var(--text)}
  .strip li.next::before{border-style:dashed}
  .strip li.t a b{display:inline-flex;align-items:center;gap:8px}
  .strip li.t .b-l{font-size:.7em}
  .strip a{display:flex;flex-direction:column;justify-content:center;min-height:46px;padding:4px 0;text-decoration:none}
  .strip a b{font-weight:700}
  .strip a span{font-size:13.5px;color:var(--muted)}
  .s-l{--c:var(--ll)}.s-h{--c:var(--lh)}.s-s{--c:var(--ls)}
}

/* ---------- Sezioni ---------- */
.mp section{padding:72px 0;border-top:1px solid var(--line)}
.mp main > .map{border-top:0}
.mp h2{font-family:var(--font);font-size:clamp(2rem,3.4vw,2.8rem);font-weight:850;letter-spacing:-.03em;line-height:1.05;text-transform:none;color:var(--text);margin:0 0 36px}
.mp h3{font-weight:800;letter-spacing:-.01em}
.mp h2 .b-l{font-size:.42em;margin-right:14px;vertical-align:.35em}

/* progetti: ogni progetto è la tabella di una fermata, con la barra del colore della sua linea */
.line-card{display:grid;gap:22px 40px;padding-top:22px;border-top:8px solid var(--c)}
.line-card.l-h{--c:var(--lh)}.line-card.l-s{--c:var(--ls)}
.line-card .thumb{position:relative;display:block;aspect-ratio:16/10;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--bg)}
.line-card .thumb canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.line-card .thumb .label{position:absolute;right:10px;bottom:8px;z-index:2;font:600 .72rem var(--font);padding:3px 9px;border-radius:999px;background:var(--panel);border:1px solid var(--line);color:var(--muted)}
.line-card h3{display:flex;align-items:center;gap:12px;font-size:1.5rem;margin-bottom:10px}
.line-card h3 a{text-decoration:none}
.line-card h3 a:hover{text-decoration:underline}
.line-card .body > p{max-width:62ch;color:var(--muted)}
.line-card .stack{margin-top:12px;font-size:.92rem;font-weight:600;color:var(--text)}
.line-card .links{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:14px;font-weight:700}
@media (min-width:760px){.l-h{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center}.l-h .thumb{aspect-ratio:16/9}}
.pair{display:grid;gap:56px 40px;margin-top:56px}
@media (min-width:760px){.pair{grid-template-columns:1fr 1fr}}
.mp .board{margin-top:56px;border:2px dashed var(--line);border-radius:12px;padding:20px 24px}
.mp .board p{color:var(--muted);font-size:1rem}
.mp .board .cta{margin-top:0}

/* percorso: la linea L in verticale, dalla prossima fermata al diploma */
.route{list-style:none;padding-left:52px;max-width:720px}
.route li{position:relative;padding:0 0 34px}
.route li::after{content:"";position:absolute;left:-34px;top:0;bottom:0;width:9px;background:var(--ll)}
.route li:first-child::after{top:16px}
.route li:last-child::after{bottom:auto;height:16px}
.route li.next::after{background:repeating-linear-gradient(var(--ll) 0 10px,transparent 10px 18px);opacity:.7}
.route li::before{content:"";position:absolute;z-index:1;left:-42px;top:4px;width:25px;height:25px;border-radius:50%;background:var(--bg);border:6px solid var(--ll);box-sizing:border-box}
.route li.next::before{border-style:dashed}
.route li.x::before{left:-45px;top:1px;width:31px;height:31px;border:7px solid var(--text)}
.route h3{font-size:1.5rem;line-height:1.3}
.route .where{font-weight:600}
.route .when{color:var(--muted);font-size:.95rem;font-variant-numeric:tabular-nums}
.route li > p:not(.where):not(.when){margin-top:8px;max-width:60ch;color:var(--muted)}
.route li.next h3{color:var(--muted)}

/* chi sono + competenze come legenda della mappa */
.about .cols{display:grid;gap:40px 64px}
@media (min-width:860px){.about .cols{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
.about .text p{font-size:1.12rem;line-height:1.7;max-width:62ch}
.about .text p + p{margin-top:18px}
.skills-legend{padding:24px 26px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.skills-legend h3{font-size:1.15rem;margin-bottom:14px}
.skills-legend .grp{display:flex;align-items:center;gap:10px;font-weight:800;margin:16px 0 6px}
.skills-legend .grp:first-of-type{margin-top:0}
.skills-legend ul{list-style:none}
.skills-legend li{display:flex;align-items:center;gap:12px;padding:3px 0}
.skills-legend li::before{content:"";flex:none;width:13px;height:13px;border-radius:50%;border:3.5px solid var(--c);box-sizing:border-box}
.skills-legend ul:nth-of-type(1){--c:var(--ll)}.skills-legend ul:nth-of-type(2){--c:var(--lh)}

/* contatti */
.contact-h .mail{display:inline-block;font-size:clamp(1.5rem,5vw,4rem);font-weight:850;letter-spacing:-.03em;line-height:1.1;text-decoration-thickness:3px;text-underline-offset:8px;overflow-wrap:anywhere}
.contact-h .links{display:flex;flex-wrap:wrap;gap:8px 28px;margin-top:24px;font-weight:700;font-size:1.05rem}

.mp footer{border-top:1px solid var(--line);padding:28px 0 96px;color:var(--muted);font-size:.9rem}
.mp footer .wrap{max-width:1240px}

/* ---------- Ko-fi e consigli (in comune con le altre pagine) ---------- */
/* icone disegnate al posto dei glifi */
.mp .consigli-ico,.mp .cl-pill-go{display:inline-block;font-size:0;width:16px;height:16px;background:currentColor;-webkit-mask:var(--ico) center/contain no-repeat;mask:var(--ico) center/contain no-repeat}
.mp .consigli-ico{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E")}
.mp .cl-pill-go{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E")}
/* in home stavano sopra la mappa e i titoli: diventano due dischi a destra, sopra la chat */
.mp .kofi,.mp .consigli{left:auto;right:max(16px,env(safe-area-inset-right,0px))}
.mp .kofi{bottom:calc(max(20px,env(safe-area-inset-bottom,0px)) + 74px)}
.mp .consigli{bottom:calc(max(20px,env(safe-area-inset-bottom,0px)) + 126px)}
.mp .kofi-btn,.mp .consigli-btn{width:46px;height:46px;padding:0;justify-content:center;border-radius:50%}
.mp .kofi-txt,.mp .consigli-txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mp .kofi-panel,.mp .consigli-panel{left:auto;right:0}

/* ---------- Pagine interne (homelab, peonies, cat, changelog) ---------- */
.mp nav a.active{color:var(--text);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px;text-decoration-color:var(--ll)}
.page-head{padding:64px 0 8px}
.page-head h1{display:flex;align-items:center;gap:18px;font-size:clamp(2.4rem,6vw,4rem);font-weight:850;letter-spacing:-.035em;line-height:1}
.page-head h1 .b-h,.page-head h1 .b-s,.page-head h1 .b-l{font-size:.36em}
.page-head .lead{margin-top:18px;font-size:1.12rem;color:var(--muted);max-width:52ch}
.mp p.big{font-size:1.12rem;line-height:1.7;max-width:64ch}

/* la linea della pagina: indice con le fermate */
.linebar{position:relative;display:flex;align-items:flex-start;gap:14px;margin:40px 0 8px;--c:var(--lh)}
.linebar.l-s{--c:var(--ls)}.linebar.l-l{--c:var(--ll)}
.linebar > i{margin-top:2px;font-size:1rem;width:34px;height:34px}
.linebar ol{flex:1;display:flex;list-style:none;position:relative;min-width:0}
.linebar ol::before{content:"";position:absolute;left:0;right:0;top:15px;height:9px;border-radius:999px;background:var(--c)}
.linebar li{flex:1 1 auto;position:relative;min-width:0}
.linebar a b{white-space:nowrap}
.linebar li::before{content:"";position:absolute;z-index:1;left:50%;top:7px;width:25px;height:25px;margin-left:-12.5px;border-radius:50%;background:var(--bg);border:6px solid var(--c);box-sizing:border-box;transition:transform .2s cubic-bezier(.16,1,.3,1)}
.linebar li.x::before{width:44px;height:28px;margin-left:-22px;top:5.5px;border-radius:999px;border-color:var(--text)}
.linebar a{display:flex;flex-direction:column;align-items:center;text-align:center;padding:44px 4px 4px;text-decoration:none;line-height:1.25}
.linebar a b{font-weight:650;font-size:17px;text-wrap:balance}
.linebar li.here::before{width:31px;height:31px;margin-left:-15.5px;top:4px;border:7px solid var(--text)}
.linebar li.here a b{font-weight:800}
.linebar a{transition:opacity .2s ease}
.linebar ol:has(a:hover) li:not(:hover) a{opacity:.45}
.linebar a span{font-size:13.5px;color:var(--muted);margin-top:3px}
.linebar li:hover::before,.linebar li:focus-within::before{transform:scale(1.25)}
.linebar a:hover b,.linebar a:focus-visible b{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
/* scorrendo, la linea resta in alto, compatta, e segna la fermata della sezione che leggi */
@media (min-width:861px){
  .linebar{position:sticky;top:64px;z-index:4;background:var(--bg)}
  .linebar.stuck{border-bottom:1px solid var(--line);padding-top:8px;padding-bottom:4px}
  .linebar.stuck a{padding-top:38px}
  .linebar.stuck a span{display:none}
  .mp section[id]{scroll-margin-top:131px}
}
@media (max-width:860px){
  .linebar a b{white-space:normal}
  .linebar{flex-direction:column;gap:10px}
  .linebar ol{flex-direction:column;padding-left:40px}
  .linebar ol::before{display:none}
  .linebar li::after{content:"";position:absolute;left:-30px;top:0;bottom:0;width:8px;background:var(--c)}
  .linebar li:first-child::after{top:22px}
  .linebar li:last-child::after{bottom:auto;height:22px}
  .linebar li::before{left:-37px;top:12px;margin-left:0}
  .linebar li.x::before{left:-45px;width:38px;height:24px;top:11px;margin-left:0}
  .linebar li.here::before{left:-40px;top:9px;width:28px;height:28px;margin-left:0}
  .linebar a{flex-direction:row;align-items:baseline;gap:10px;text-align:left;padding:10px 0;min-height:46px}
}

/* scheda tecnica */
.specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:0 40px;max-width:900px}
.specs div{display:flex;flex-direction:column;padding:14px 0;border-top:2px solid var(--line)}
.specs dt{font-size:.9rem;color:var(--muted);font-weight:600}
.specs dd{font-size:1.5rem;font-weight:800;font-variant-numeric:tabular-nums}

/* percorso con diramazioni (architettura) */
.route.l-h li::after{background:var(--lh)}
.route.l-h li::before{border-color:var(--lh)}
.route.l-h li.x::before{border-color:var(--text)}
.route li.ix::before{left:-48px;top:5px;width:38px;height:24px;border-radius:999px;border:6px solid var(--text)}
.route.l-h li.next::after{background:repeating-linear-gradient(var(--lh) 0 10px,transparent 10px 18px)}
.route li > p{margin-top:4px;max-width:60ch;color:var(--muted)}
.route .branches{list-style:none;display:flex;flex-wrap:wrap;gap:10px 12px;margin-top:14px;max-width:760px}
.route .branches li{display:flex;align-items:center;gap:10px;padding:7px 14px 7px 10px;border:2px solid var(--line);border-radius:999px;font-weight:600;font-size:.95rem}
.route .branches li::before{content:"";position:static;flex:none;width:12px;height:12px;border-radius:50%;border:3.5px solid var(--lh);background:var(--bg);box-sizing:border-box}
.route .branches li::after{display:none}

/* stack come legenda della mappa: un solo riquadro, gruppi in colonne */
.key-panel{columns:3 18rem;column-gap:48px;padding:28px 32px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.key-panel .grp{break-inside:avoid;padding-bottom:22px}
.key-panel h3{font-size:1.12rem;margin-bottom:8px}
.key-panel ul{list-style:none}
.key-panel li{position:relative;padding:3px 0 3px 24px;line-height:1.45}
.key-panel li::before{content:"";position:absolute;left:0;top:.6em;width:13px;height:13px;border-radius:50%;border:3.5px solid var(--c,var(--lh));box-sizing:border-box}

.contact-h .big + .mail{margin-top:20px}
.contact-h .cta{margin-top:28px}

/* peonies, cat, changelog (2.12.0) */
.linebar li.here a b{font-weight:800}
.specs.text{max-width:none;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.specs.text dd{font-size:1.12rem;font-weight:600;line-height:1.5}
/* numeri come fermate in fila */
.mp .facts.stops{display:flex;flex-wrap:wrap;gap:0;position:relative;padding-top:8px}
.mp .facts.stops .fact{position:relative;flex:1 1 140px;display:flex;flex-direction:column;align-items:flex-start;padding:40px 16px 8px 0;background:none;border:0;border-radius:0}
.mp .facts.stops .fact::before{content:"";position:absolute;left:0;right:0;top:15px;height:9px;background:var(--ls)}
.mp .facts.stops .fact:first-child::before{left:6px;border-radius:999px 0 0 999px}
.mp .facts.stops .fact:last-child::before{border-radius:0 999px 999px 0}
.mp .facts.stops .fact::after{content:"";position:absolute;left:0;top:7px;width:25px;height:25px;border-radius:50%;background:var(--bg);border:6px solid var(--ls);box-sizing:border-box}
.mp .facts.stops b{font-size:1.5rem;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;color:var(--text)}
.mp .facts.stops span{color:var(--muted);font-size:13.5px;font-weight:500}
/* riquadro-legenda a due colonne (cat: cosa si fa) */
.key-panel.two{columns:2 20rem}
.key-panel.two p{color:var(--muted);max-width:52ch}
.key-panel .grp > h3 + p{margin-top:2px}
/* changelog: gli altri changelog come diramazioni della linea S */
.others{list-style:none;display:grid;gap:12px;max-width:760px}
.others a{display:grid;grid-template-columns:auto 1fr;gap:2px 14px;align-items:baseline;padding:14px 18px;border:2px solid var(--line);border-radius:12px;text-decoration:none}
.others a::before{content:"";grid-row:span 3;align-self:center;width:18px;height:18px;border-radius:50%;border:5px solid var(--ls);box-sizing:border-box}
.others a:hover{border-color:var(--ls)}
.others b{font-weight:800;font-size:1.12rem}
.others span{color:var(--muted)}
.others em{font-style:normal;font-weight:700;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1.5px}
.mp .page-head .cta{margin-top:24px}
.mp p.note{margin-top:18px;color:var(--muted)}
.mp section .lead + .lead{margin-top:14px}
.mp p.lead{font-size:1.12rem;line-height:1.7;max-width:64ch}
.mp .facts.stops b{font-family:var(--font)}
/* changelog: le versioni come fermate sulla linea S */
.mp .cl-sum b{font-family:var(--font);font-weight:800}
.mp .cl-filter button{font-family:var(--font);font-size:.95rem;font-weight:600;min-height:40px;padding:0 16px;border:2px solid var(--line);background:transparent;color:var(--text)}
.mp .cl-filter button[aria-pressed="true"]{background:var(--text);border-color:var(--text);color:var(--bg)}
.mp .cl-v{padding:0 0 30px 34px;margin-left:12px;border-left:9px solid var(--ls)}
.mp .cl-v.cl-end{border-left-color:transparent;padding-bottom:4px;background:linear-gradient(var(--ls),var(--ls)) 0 0/9px 16px no-repeat;background-origin:border-box}
.mp .cl-v::before{left:-17px;top:2px;width:25px;height:25px;border-radius:50%;background:var(--bg);border:6px solid var(--ls);box-sizing:border-box;box-shadow:none}
.mp .cl-v.cl-grande::before,.mp .cl-v.cl-media::before,.mp .cl-v.cl-prima::before{background:var(--bg)}
.mp .cl-v.cl-first::before{left:-20px;top:-1px;width:31px;height:31px;border:7px solid var(--text)}
.mp .cl-head h2{font-size:1.5rem;font-weight:800;margin:0;letter-spacing:-.01em}
.mp .cl-head h2 a{text-decoration:none}
.mp .cl-head h2 a:hover{text-decoration:underline}
.mp .cl-tag,.mp .cl-now{font-family:var(--font);font-size:13.5px;font-weight:650;color:var(--muted);border-color:var(--line)}
.mp .cl-grande .cl-tag,.mp .cl-media .cl-tag,.mp .cl-prima .cl-tag{color:var(--text);border-color:var(--ls)}
.mp .cl-now{background:var(--ls);border-color:var(--ls);color:var(--on-line)}
.mp .cl-date{font-size:13.5px}
.mp .cl-list li::before{content:"";top:.72em;width:7px;height:7px;border-radius:50%;background:var(--ls)}
.mp .cl-list code{font-family:var(--font);font-weight:600}
/* sulle pagine "ti trovi qui" la linea non resta in alto: sotto c'è la vetrina del progetto */
@media (min-width:861px){.linebar.fixed-here{position:static}}
.mp .stage-cap,.mp .scroll-hint{font-family:var(--font);font-size:13.5px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* revisione 2.12.0 */
.mp .pw{border-top:0}
.linebar.fixed-here{margin-bottom:40px}
.mp .scroll-hint{margin-top:0;margin-bottom:8px}
/* cat, cosa si fa: legenda con gli anelli della linea S */
.key-panel.two{--c:var(--ls)}
.key-panel.two h3{position:relative;padding-left:24px}
.key-panel.two h3::before{content:"";position:absolute;left:0;top:.42em;width:13px;height:13px;border-radius:50%;border:3.5px solid var(--c);box-sizing:border-box}
.key-panel.two h3 + p{padding-left:24px}
/* changelog: gli altri changelog come diramazioni della linea S */
.others{position:relative;padding-left:46px;gap:0}
.others li{position:relative}
.others li::after{content:"";position:absolute;left:-34px;top:0;bottom:0;width:9px;background:var(--ls)}
.others li:first-child::after{top:24px}
.others li:last-child::after{bottom:auto;height:24px}
.others a{display:block;padding:10px 0 14px;border:0;border-radius:0}
.others a::before{content:"";position:absolute;z-index:1;left:-42px;top:12px;width:25px;height:25px;border-radius:50%;border:6px solid var(--ls);background:var(--bg);box-sizing:border-box}
.others a b,.others a span,.others a em{display:block}
.others a:hover b{text-decoration:underline;text-underline-offset:4px}
/* in numeri, sul telefono: una linea in verticale */
@media (max-width:860px){
  .mp .facts.stops{flex-direction:column;padding-left:40px}
  .mp .facts.stops .fact{flex:none;flex-direction:row;align-items:baseline;gap:10px;padding:10px 0}
  .mp .facts.stops .fact::before{left:-30px;right:auto;top:0;bottom:0;width:8px;height:auto;border-radius:0}
  .mp .facts.stops .fact:first-child::before{left:-30px;top:22px;border-radius:0}
  .mp .facts.stops .fact:last-child::before{bottom:auto;height:22px;border-radius:0}
  .mp .facts.stops .fact::after{left:-37px;top:12px}
}
