@font-face{font-family:Nimbus;src:url("../materiali/sorgenti/font/NimbusSans-Regular.otf") format("opentype");font-display:swap}
@font-face{font-family:Nimbus;src:url("../materiali/sorgenti/font/NimbusSans-Bold.otf") format("opentype");font-weight:700;font-display:swap}
@font-face{font-family:LMMono;src:url("../materiali/sorgenti/font/lmmono10-regular.otf") format("opentype");font-display:swap}
:root{--paper:#f8f6f1;--ink:#253344;--navy:#15283e;--teal:#087c74;--purple:#5146a5;--mint:#72d8c8;--line:#d6dad9;--muted:#657180;--wash:#eeede7;--white:#fff;--radius:8px}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.55 Nimbus,Arial,sans-serif}a{color:var(--teal);text-decoration-thickness:1px;text-underline-offset:4px}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--purple);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-weight:700;color:var(--navy);line-height:1.12}h1{font-size:clamp(38px,4.6vw,68px);letter-spacing:-1.8px}h2{font-size:32px;letter-spacing:-.6px}h3{font-size:23px;letter-spacing:-.3px}img{max-width:100%}button{border:0}main{min-height:65vh}.site-header{height:88px;display:flex;align-items:center;gap:32px;padding:0 5vw;border-bottom:1px solid var(--line);background:var(--paper)}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);text-decoration:none;white-space:nowrap;font-size:25px;letter-spacing:-.7px}.brand strong{font-weight:700;color:var(--teal)}.site-header nav{display:flex;gap:28px;margin-left:auto}.site-header nav a{color:var(--ink);text-decoration:none;font-size:15px}.site-header nav a:hover{color:var(--teal)}.wrap{max-width:1320px;margin:auto;padding:0 4vw}.eyebrow{color:var(--teal);text-transform:uppercase;font-size:12px;letter-spacing:2.1px;font-weight:700;margin-bottom:22px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:25px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:13px 21px;background:var(--teal);color:#fff;border:1px solid var(--teal);border-radius:4px;text-decoration:none;font-size:15px;font-weight:700;line-height:1.3}.button:hover{background:#06635d}.button.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.button.secondary:hover{border-color:var(--teal);background:#eff3ee}.button.small{padding:8px 13px;font-size:14px}.catalogue{padding-bottom:65px}.section-head{display:flex;justify-content:space-between;gap:25px;align-items:flex-end;margin-bottom:25px}.section-head p{color:var(--muted);max-width:550px;margin-bottom:0}.section-head h2{margin-bottom:0}.filter-bar{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:28px;flex-wrap:wrap}.filters,.tabs{display:flex;gap:5px;flex-wrap:wrap}.filters button,.tabs button{padding:9px 17px;background:transparent;color:var(--muted);border-radius:4px;border:1px solid transparent}.filters button[aria-pressed=true],.tabs button[aria-selected=true]{background:var(--navy);color:#fff}.search{display:flex;align-items:center;flex:1;max-width:430px;border-bottom:1px solid var(--muted)}.search input{width:100%;border:0;background:transparent;padding:11px 8px;outline:none;min-width:100px;color:var(--ink)}.search input:focus-visible{outline:2px solid var(--teal);outline-offset:1px}.search span{font-size:23px;margin-right:6px}.result-count{font-size:13px;color:var(--muted);margin-bottom:15px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.module-card{padding:25px 25px 20px;border:1px solid var(--line);background:rgba(255,255,255,.4);border-radius:var(--radius);display:flex;flex-direction:column;min-height:290px;transition:box-shadow .2s,transform .2s}.module-card:hover{box-shadow:0 8px 26px #15283e0c;transform:translateY(-3px)}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.code-tag{font:14px/1 LMMono,monospace;color:var(--teal);letter-spacing:.5px}.card-kind{font-size:11px;letter-spacing:1px;color:var(--muted);text-transform:uppercase}.module-card.project{border-top:3px solid var(--purple)}.module-card h3{max-width:360px;min-height:52px;margin-bottom:15px}.module-card h3 a{color:var(--navy);text-decoration:none}.module-card p{font-size:15px;line-height:1.5;color:#546171;flex:1}.card-foot{border-top:1px solid var(--line);padding-top:16px;display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:13px;color:var(--muted)}.card-foot a{font-weight:700;font-size:14px;text-decoration:none}.resource-band{padding:40px;background:var(--navy);color:#dce5ed;display:grid;grid-template-columns:1fr 1fr;gap:55px;border-radius:var(--radius);margin-bottom:70px}.resource-band h2{color:var(--white)}.resource-band p{max-width:570px}.resource-band a{color:var(--mint)}.resource-links{display:grid;gap:15px;align-content:center}.resource-links a{border-bottom:1px solid #ffffff30;padding:10px 0;text-decoration:none}.site-footer{border-top:1px solid var(--line);padding:35px 5vw;display:flex;justify-content:space-between;gap:30px;font-size:14px;color:var(--muted)}.site-footer strong{color:var(--navy);font-size:20px}.site-footer div:nth-child(2){display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}.site-footer p{margin:7px 0}.site-footer a{text-decoration:none}.breadcrumb{padding:28px 0 24px;font-size:14px;color:var(--muted);display:flex;gap:10px;align-items:center;flex-wrap:wrap}.breadcrumb a{text-decoration:none}.module-head{max-width:1000px;padding-bottom:35px}.module-head h1{font-size:clamp(35px,4.4vw,58px);max-width:1050px}.module-head .lead{font-size:21px;max-width:780px;color:#546171}.cross-nav{display:flex;justify-content:space-between;gap:20px;margin-top:35px;font-size:14px}.viewer{max-width:1600px;margin:0 auto;padding:0 3vw 55px}.reader-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:35px}.reader-sidebar{border-right:1px solid var(--line);padding-right:20px;max-height:calc(100vh - 40px);overflow:auto;position:sticky;top:20px;align-self:start;scrollbar-width:thin}.reader-sidebar h2{font-size:19px;letter-spacing:0;margin-bottom:14px}.reader-sidebar input{width:100%;padding:9px 10px;background:#fff8;border:1px solid var(--line);border-radius:3px;font-size:13px;margin-bottom:14px}.toc-section{font-size:11px;letter-spacing:.9px;color:var(--muted);margin:22px 0 8px;text-transform:uppercase}.toc-link{display:flex;gap:10px;color:#465364;text-decoration:none;font-size:13px;line-height:1.4;padding:8px;border-radius:3px}.toc-link span:first-child{font:11px LMMono,monospace;min-width:23px;padding-top:3px}.toc-link[aria-current=page]{background:#e1eee9;color:#075f59;font-weight:700}.toc-link:hover{background:#e9e9e3}.reader-main{min-width:0}.reader-title{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.reader-title h1{font-size:25px;letter-spacing:-.4px;line-height:1.2;margin-bottom:20px}.reader-title .page-counter{font:13px LMMono,monospace;color:var(--muted);white-space:nowrap}.reader-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}.pager{display:flex;gap:7px;align-items:center}.pager button{background:#fff;border:1px solid var(--line);width:39px;height:38px;border-radius:3px;color:var(--ink);font-size:21px}.slide-frame{border:1px solid var(--line);background:var(--paper);box-shadow:0 8px 25px #15283e09}.slide-frame img{display:block;width:100%;height:auto;aspect-ratio:1.6}.slide-caption{display:flex;justify-content:space-between;gap:20px;font-size:13px;color:var(--muted);margin:13px 0 25px}.study-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:22px;border-top:1px solid var(--line);padding-top:20px}.study-actions p{font-size:13px;color:var(--muted);margin:0}.study-actions button.done{background:var(--teal);color:#fff}.reading{background:#fff9;padding:35px;border:1px solid var(--line);border-radius:6px;font-size:20px;line-height:1.75;overflow-wrap:break-word}.reading p{margin-bottom:24px}.reading .math{overflow-x:auto;background:var(--paper);border-left:3px solid var(--teal);padding:12px 15px;margin:24px 0;font-size:22px}.reading .aside-text{border-top:1px solid var(--line);padding-top:24px}.reading figure{margin:25px auto;max-width:520px}.reading figure img{width:100%;height:auto}.reading figcaption{font-size:15px;color:var(--muted);line-height:1.5}.recall{background:#e9f0e9;border-left:3px solid var(--teal);padding:18px 22px;font-size:17px;line-height:1.6;margin-top:25px}.code-panel{min-width:0}.code-top{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:15px}.code-top select{max-width:100%;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px;flex:1;min-width:200px;color:var(--ink)}pre{background:#112236;color:#def0e8;line-height:1.65;padding:25px;border-radius:6px;overflow:auto;max-height:640px;tab-size:2;font:14px/1.65 LMMono,monospace}code{font-family:LMMono,monospace;font-size:.9em}pre code{font:inherit}.code-note{font-size:15px;color:var(--muted)}.code-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.resources-page{max-width:1050px;padding-top:45px;padding-bottom:70px}.resources-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.resource-card{background:#fff8;border:1px solid var(--line);border-radius:7px;padding:28px}.resource-card h2{font-size:25px}.resource-card ul{padding-left:20px;margin-bottom:0}.resource-card li{margin:12px 0}.resource-card p{color:var(--muted);font-size:16px}.notice,.error,.loading{max-width:900px;margin:55px auto;padding:30px}.notice{border:1px solid var(--line);background:#fff}.empty{padding:45px 0;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:absolute;top:-100px;left:15px;z-index:20;padding:12px;background:#fff}.skip:focus{top:10px}[hidden]{display:none!important}
.brand img{width:38px;height:38px;flex:none}
@media(min-width:1650px){.wrap{padding-left:30px;padding-right:30px}}
@media(max-width:1100px){.site-header{padding:0 4vw;gap:20px}.site-header nav{gap:18px}.cards{gap:15px}.module-card{padding:21px}.reader-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}.reader-sidebar{padding-right:12px}.reading{padding:25px}.reader-title h1{font-size:23px}}
@media(max-width:800px){.cards{grid-template-columns:repeat(2,1fr)}.section-head{align-items:flex-start;flex-direction:column;gap:12px}.resource-band{grid-template-columns:1fr;gap:10px;padding:30px}.site-footer{flex-direction:column;gap:20px}.reader-layout{grid-template-columns:1fr}.reader-sidebar{display:none}.reader-tools{position:sticky;top:0;background:var(--paper);padding:12px 0;z-index:2}.resources-grid{grid-template-columns:1fr}.module-head{padding-bottom:25px}.reader-title h1{font-size:24px}.slide-frame{margin:0}.reading{font-size:19px}.reading .math{font-size:20px}}
@media(max-width:540px){.site-header{height:auto;min-height:98px;padding:15px 5vw;flex-wrap:wrap;gap:15px}.brand{font-size:23px}.brand img{width:31px;height:31px}.site-header nav{width:100%;margin:0;justify-content:space-between;gap:10px}.site-header nav a{font-size:13px}.wrap{padding:0 5vw}.eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:18px}.cards{grid-template-columns:1fr}.module-card{min-height:245px}.module-card h3{min-height:0}.filter-bar{gap:17px}.search{max-width:none;flex-basis:100%}.filters button{padding:8px 13px;font-size:14px}.section-head h2{font-size:29px}.resource-band{padding:25px}.site-footer{padding:28px 5vw}.site-footer div:nth-child(2){gap:15px}.viewer{padding:0 4vw 35px}.breadcrumb{font-size:12px;gap:7px}.reader-title{display:block}.reader-title .page-counter{display:block;margin-bottom:12px}.tabs button{padding:8px 12px;font-size:13px}.reader-tools{gap:8px}.reader-title h1{font-size:22px;margin-bottom:8px}.reading{padding:20px;font-size:18px}.reading .math{font-size:18px;padding:10px 8px}.slide-caption{font-size:11px;gap:10px}.study-actions{align-items:flex-start}.study-actions p{max-width:100%}.module-head h1{font-size:37px;letter-spacing:-.8px}.module-head .lead{font-size:18px}.code-top{display:block}.code-top select{width:100%;margin-bottom:12px}.code-actions{margin:12px 0}pre{padding:17px;font-size:12px}.resource-card{padding:23px}.cross-nav{flex-direction:column}.resource-band h2{font-size:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important}}
