/* Finanza Informale — a course app whose lessons are written steps on a roadmap (reference: animations.dev, css-for-js.dev: the course UI is the product) */
:root { --navy: #0B1B3F; --navy2: #122753; --navy3: #1B3468; --yellow: #FFE600; --yellow-dk: #D9C300; --ink: #0A1329; --muted: #5B6480; --line: #E3E6EF; --paper: #F4F5F9; --white: #fff; --on-dark: rgba(255,255,255,.72);
  --display: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Instrument Sans', system-ui, sans-serif; --mono: 'Azeret Mono', ui-monospace, monospace; --ease: cubic-bezier(.16, 1, .3, 1); --top: 56px; }
* { box-sizing: border-box; } html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; overflow: hidden; }
a { color: inherit; } button { font: inherit; } [hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy); } :focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* app shell */
.app { display: grid; grid-template-columns: 300px minmax(0, 1fr) 320px; grid-template-rows: var(--top) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.top { grid-column: 1 / -1; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 8px; } .logo i { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; } .logo i::before { content: ''; width: 8px; height: 8px; border: 3px solid var(--navy); border-radius: 50%; } .logo b { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 6px 10px; } .search input { flex: 1; background: transparent; border: 0; color: #fff; font: 14px var(--body); min-width: 0; } .search input::placeholder { color: rgba(255,255,255,.45); } .search input:focus { outline: none; } .search kbd { font: 11px var(--mono); color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.25); border-radius: 4px; padding: 1px 5px; }
.top .sp { flex: 1; } .top a.wa { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--on-dark); } .top a.wa:hover { color: #fff; }
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; overflow: hidden; } .lang button { appearance: none; border: 0; background: transparent; color: #fff; font: 600 11px var(--mono); padding: 6px 9px; cursor: pointer; } .lang button.is-on { background: var(--yellow); color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 8px; border: 1.5px solid var(--yellow); background: var(--yellow); color: var(--navy); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), background .2s; } .btn:hover { transform: translateY(-1px); } .btn--ghost { background: transparent; color: inherit; border-color: currentColor; } .btn--dark { background: var(--navy); border-color: var(--navy); color: #fff; } .btn--wide { width: 100%; } .btn--sm { padding: 6px 10px; font-size: 13px; }

/* sidebar */
.side { background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 0 80px; }
.side h6 { margin: 12px 16px 6px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.course { border-top: 1px solid var(--line); }
.chead { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; cursor: pointer; background: transparent; border: 0; width: 100%; text-align: left; color: inherit; } .chead:hover { background: var(--paper); } .course.is-open .chead { background: var(--paper); }
.ring { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--yellow) calc(var(--p, 0) * 1%), var(--line) 0); display: grid; place-items: center; } .ring::after { content: ''; width: 24px; height: 24px; border-radius: 50%; background: #fff; } .ring i { position: absolute; font: 700 9px var(--mono); }
.chead b { font-family: var(--display); font-weight: 700; font-size: 14px; display: block; line-height: 1.2; } .chead small { color: var(--muted); font-size: 12px; } .chead .pr { font: 600 12px var(--mono); color: var(--navy); }
.lessons { display: none; padding: 0 0 8px; } .course.is-open .lessons { display: block; }
.les { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 16px 8px 22px; width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; font-size: 13px; border-left: 3px solid transparent; }
.les:hover { background: var(--paper); } .les.is-on { background: #FFF8B8; border-left-color: var(--yellow-dk); } .les .n { font: 11px var(--mono); color: var(--muted); } .les .t { line-height: 1.25; } .les .d { font: 11px var(--mono); color: var(--muted); white-space: nowrap; } .les.is-done .n { color: var(--yellow-dk); } .les .lk { color: var(--muted); font-size: 11px; } .les.is-free .lk { color: var(--yellow-dk); font-weight: 700; }
.side .live { padding: 8px 16px; display: grid; gap: 8px; } .live .ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; font-size: 13px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; } .live .ev b { font: 700 12px var(--mono); color: var(--navy); } .live .ev small { display: block; color: var(--muted); font-size: 12px; }
.side .freebies { padding: 4px 16px 12px; display: grid; gap: 6px; } .freebies a { font-size: 13px; text-decoration: none; padding: 8px 10px; border-radius: 8px; background: var(--paper); display: flex; justify-content: space-between; } .freebies a:hover { background: #FFF8B8; }

/* main */
.main { overflow-y: auto; padding: 20px 24px 60px; }
.crumb { font: 11px var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 2px 8px; } .crumb span { white-space: nowrap; }
/* roadmap + reader: the lessons are written steps, not videos */
.route { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; margin: 6px 0 18px; max-width: 760px; }
.route::before { content: ''; position: absolute; left: 10%; right: 10%; top: 17px; height: 2px; background: var(--line); }
.stage { position: relative; background: transparent; border: 0; padding: 0 4px; cursor: pointer; text-align: center; color: inherit; display: grid; justify-items: center; gap: 4px; align-content: start; }
.stage .sn { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font: 600 12px var(--mono); position: relative; z-index: 1; transition: transform .25s var(--ease); }
.stage b { font-family: var(--display); font-size: 14px; line-height: 1.15; } .stage small { font: 11px var(--mono); color: var(--muted); }
.stage .pb { width: 64%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .stage .pb i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--yellow-dk); }
.stage:hover .sn { transform: translateY(-2px); } .stage.is-on .sn { background: var(--navy); border-color: var(--navy); color: var(--yellow); } .stage.is-cart .sn { border-color: var(--yellow-dk); }
.track { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 12px; margin-bottom: 16px; max-width: 760px; }
.track h6 { margin: 0 0 12px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.nodes { display: flex; align-items: flex-start; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; }
.node { flex: 1 0 58px; background: transparent; border: 0; cursor: pointer; color: inherit; display: grid; justify-items: center; gap: 6px; position: relative; padding: 0 2px; align-content: start; }
.node + .node::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: var(--line); } .node.is-done + .node::before { background: var(--yellow-dk); }
.node span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font: 600 11px var(--mono); position: relative; z-index: 1; }
.node em { font-style: normal; font-size: 10.5px; line-height: 1.2; color: var(--muted); max-width: 100%; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.node.is-free span { border-color: var(--yellow-dk); } .node.is-done span { background: var(--yellow); border-color: var(--yellow-dk); } .node.is-on span { background: var(--navy); border-color: var(--navy); color: var(--yellow); transform: scale(1.12); } .node.is-on em { color: var(--ink); font-weight: 600; } .node.is-lock span { color: var(--muted); }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px 26px; max-width: 760px; }
.lesson .k { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .badge { padding: 2px 8px; border-radius: 999px; background: var(--paper); } .badge.free { background: var(--yellow); color: var(--navy); } .badge.done { background: var(--navy); color: var(--yellow); }
.lesson h1 { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.02; margin: 0 0 10px; } .lesson .lead { font-size: 18px; line-height: 1.45; color: #2A3350; margin: 0 0 18px; max-width: 60ch; }
.lesson h2 { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.lesson .pts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: p; } .lesson .pts li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-weight: 600; } .lesson .pts li::before { counter-increment: p; content: counter(p); width: 22px; height: 22px; border-radius: 50%; background: var(--paper); font: 600 11px/22px var(--mono); text-align: center; }
.lesson .body p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.65; max-width: 64ch; }
.lesson .ex { background: #FFF8B8; border-left: 4px solid var(--yellow-dk); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; } .lesson .ex h2 { margin: 0 0 6px; color: #6B5F00; } .lesson .ex p { margin: 0; font: 14px/1.6 var(--mono); }
.todo { display: grid; gap: 8px; } .todo label { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; } .todo input { width: 18px; height: 18px; accent-color: var(--navy); margin: 2px 0 0; } .todo label.is-ok { background: var(--paper); color: var(--muted); text-decoration: line-through; }
.lesson .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; } .lesson .acts small { color: var(--muted); font-size: 12px; }
.skel { display: grid; gap: 10px; margin: 6px 0 18px; } .skel i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--line), #EEF0F6); } .skel i:nth-child(3n) { width: 82%; } .skel i:nth-child(4n) { width: 64%; }
.wall { border-radius: 12px; padding: 18px 20px; background: var(--navy); color: #fff; } .wall b { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; display: block; margin-bottom: 4px; } .wall p { margin: 0 0 12px; color: var(--on-dark); font-size: 14px; max-width: 52ch; } .wall .row { display: flex; gap: 8px; flex-wrap: wrap; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 12px; max-width: 760px; } .next b { font-family: var(--display); font-size: 15px; display: block; } .next small { color: var(--muted); font-size: 12px; }
.teach { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 24px; max-width: 760px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; } .teach .av { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 800; } .teach b { font-family: var(--display); display: block; } .teach p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* rail */
.rail { background: #fff; border-left: 1px solid var(--line); overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.cart { border: 1.5px solid var(--navy); border-radius: 12px; padding: 14px; display: grid; gap: 10px; } .cart h6 { margin: 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.cart .it { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; align-items: center; } .cart .it button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; } .cart .empty { font-size: 13px; color: var(--muted); }
.cart .tot { border-top: 1px dashed var(--line); padding-top: 10px; display: grid; gap: 2px; } .cart .tot b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; white-space: nowrap; } .cart .save { text-align: left; } .cart .tot s { color: var(--muted); font-size: 13px; margin-left: 6px; } .cart .save { font: 11px var(--mono); color: var(--yellow-dk); }
.rail .card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; font-size: 13px; } .rail .card b { font-family: var(--display); font-size: 15px; } .rail .card .seat { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; } .rail .card .seat i { display: block; height: 100%; background: var(--yellow); width: var(--w, 0); } .rail .card small { color: var(--muted); }
.rail .fine { font-size: 11px; color: var(--muted); line-height: 1.6; } .rail .fine a { color: inherit; }

/* mobile */
.tabbar { display: none; }
@media (max-width: 1000px) {
  .app { grid-template-columns: 1fr; grid-template-rows: var(--top) minmax(0, 1fr) 56px; }
  .side, .rail { position: fixed; left: 0; right: 0; top: var(--top); bottom: 56px; z-index: 30; transform: translateY(calc(100% + 80px)); transition: transform .4s var(--ease); border: 0; } .side.is-open, .rail.is-open { transform: none; }
  .search { display: none; } .top a.wa { display: none; } .top { gap: 8px; padding: 0 10px; } .logo b { font-size: 15px; white-space: nowrap; } .logo i { width: 22px; height: 22px; } #top-buy { font-size: 12px; padding: 7px 10px; white-space: nowrap; } @media (max-width: 480px) { .logo b { display: none; } } .lang button { padding: 5px 7px; }
  .main { padding: 14px 14px 40px; }
  .tabbar { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.1); } .tabbar button { background: transparent; border: 0; color: rgba(255,255,255,.7); font: 600 12px var(--mono); padding: 8px; cursor: pointer; } .tabbar button.is-on { color: var(--yellow); }
  .next { grid-template-columns: 1fr; } .lesson { padding: 20px 16px 20px; } .lesson .lead { font-size: 16.5px; } .lesson .body p { font-size: 16px; } .stage small, .stage .pb { display: none; } .stage b { font-size: 12px; } .track { padding: 12px 12px 10px; }
}
html.static .stage .sn, html.static .btn, html.static .side, html.static .rail { transition: none !important; }
/* privacy page */
.doc { max-width: 46em; margin: 0 auto; padding: 40px 20px; font-size: 15px; } .doc h1 { font-family: var(--display); font-size: 32px; letter-spacing: -.03em; margin: 0 0 16px; } .doc h3 { font-family: var(--display); font-size: 18px; margin: 20px 0 6px; } .doc p { color: var(--muted); } body.docpage { overflow: auto; }

/* logo files (sites/_brand/build.py) */
.logo img { height: 32px; width: auto; display: block; }

/* teacher portrait (media/francesco-marinucci.jpg, from his X profile) */
.teach img.av { display: block; object-fit: cover; flex: none; }

/* == legal == cookie banner + seller block (generated by sites/_legal/gen.py; the banner look comes from _legal/cookie-styles.css) */
.ck { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 400px; font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; }
.ck, .ck * { box-sizing: border-box; } .ck .ck-k { display: block; } .ck .ck-t, .ck .ck-p { margin: 0; } .ck .b { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ck button, .ck a.more { cursor: pointer; text-decoration: none; line-height: 1.2; margin: 0; }
/* banner: francesco-marinucci */
.ck { --ck-bottom: 66px; left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); max-width: none; background: var(--navy); color: #fff; border-radius: 12px; padding: 12px 14px 12px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 18px; align-items: center; box-shadow: 0 24px 50px -20px rgba(11,27,63,.7), 0 0 0 1px rgba(255,255,255,.12); font-family: var(--body); }
.ck .ck-k { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); margin-bottom: 3px; } .ck .ck-t b { font: 800 16px/1.2 var(--display); letter-spacing: -.02em; } .ck .ck-p { font-size: 12.5px; color: var(--on-dark); }
.ck .b { grid-column: 2; grid-row: 1 / span 3; margin: 0; } .ck button { border-radius: 8px; padding: 9px 13px; font: 700 13px/1 var(--display); border: 1.5px solid var(--yellow); } .ck .ok { background: var(--yellow); color: var(--navy); } .ck .no { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); } .ck .more { font: 600 11px var(--mono); color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
@media (max-width: 760px) { .ck { grid-template-columns: 1fr; } .ck .b { grid-column: 1; grid-row: auto; margin-top: 10px; } }

@media (max-width: 600px) { .ck { left: 10px; right: 10px; bottom: var(--ck-bottom, 10px); width: auto; max-width: none; transform: none; } }
.seller { font-size: 12.5px; line-height: 1.6; color: inherit; padding: 22px 24px 26px; border-top: 1px solid rgba(128,128,128,.35); letter-spacing: 0; text-transform: none; font-family: inherit; }
.seller-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.seller b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 4px; font-weight: 700; }
.seller a { color: inherit; } .seller address { font-style: normal; } .seller strong { font-weight: 700; }
.seller.panel { display: none; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9998; background: #fff; color: #111; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); max-width: 940px; margin: 0 auto; border-top: 0; padding: 24px 26px 22px; }
.seller.panel:target { display: block; }
.seller .x { position: absolute; top: 6px; right: 12px; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px 8px; }
.ck-page .st { padding: 10px 14px; border: 1px solid rgba(128,128,128,.4); border-radius: 8px; margin: 10px 0 14px; font-weight: 700; } .ck-page .b { display: flex; gap: 8px; flex-wrap: wrap; } .ck-page button { font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 760px) { table.lgl-t, table.lgl-t tbody, table.lgl-t tr, table.lgl-t td { display: block; width: auto; } table.lgl-t thead { display: none; } table.lgl-t tr { padding: 10px 0; border-bottom: 1px solid rgba(128,128,128,.35); } table.lgl-t td { border: 0 !important; padding: 2px 0 !important; overflow-wrap: anywhere; } table.lgl-t td::before { content: attr(data-l) ": "; font-weight: 700; } }
table.lgl-t code { overflow-wrap: anywhere; }
.lead-note.lead-note { font-size: 12px; line-height: 1.5; margin: 0; letter-spacing: 0; text-transform: none; font-weight: 400; font-style: normal; text-align: left; max-width: 62ch; } .lead-note.lead-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) { .seller-in { grid-template-columns: 1fr; } .seller.panel { left: 8px; right: 8px; bottom: 8px; max-height: 80dvh; overflow: auto; } }
