/* Magnifita 13: scoped navigation; does not alter lessons or admin controls. */
.site-header.mf-header{display:flex;align-items:center;flex-wrap:nowrap;gap:24px;position:relative;z-index:30;width:min(1180px,calc(100% - 40px));min-height:88px;height:auto;margin:0 auto;padding:18px 0;border-bottom:1px solid #dbe7ed;background:#fffefb}
.mf-header .mf-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin:0 auto 0 0;max-width:none;order:0;text-decoration:none}
.mf-header .mf-brand strong{display:block;font:700 30px/1.1 Georgia,serif;letter-spacing:-.8px;color:#243e50;white-space:nowrap}
.mf-header .mf-brand small{display:block;margin-top:5px;font:500 10px/1.4 system-ui,sans-serif;letter-spacing:.06em;color:#607887;max-width:none}
.mf-flag{width:25px;height:32px;flex:none;border-radius:5px;background:linear-gradient(90deg,#158751 0 33.33%,#fff 33.33% 66.66%,#d54435 66.66%);box-shadow:0 2px 9px #183e501a}
.mf-header details{padding:0;margin:0;border:0;background:none;position:relative}
.mf-header summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 12px;font:650 14px/1.4 system-ui,sans-serif;color:#294959;border:0;border-radius:12px;background:transparent}
.mf-header summary::-webkit-details-marker{display:none}
.mf-header summary:hover,.mf-header details[open]>summary{background:#edf7fc;color:#086ba9}
.mf-header :is(a,summary):focus-visible{outline:3px solid #db9b26;outline-offset:3px}
.mf-header .mf-main{order:1;flex:0 1 auto}
.mf-header .mf-main>summary{display:none}
.mf-header .mf-nav{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;margin:0;padding:0;width:auto}
.mf-header .mf-nav>a,.mf-header .mf-panel a{border:0;box-shadow:none;background:transparent;display:flex;align-items:center;justify-content:flex-start;min-height:44px;padding:10px 12px;border-radius:10px;color:#294959;text-decoration:none;font:600 14px/1.45 system-ui,sans-serif}
.mf-header .mf-nav>a{white-space:nowrap}
.mf-header .mf-nav>.mf-login{background:#086ba9;color:#fff;padding-inline:20px;margin-left:8px}
.mf-header .mf-panel{position:absolute;z-index:40;top:calc(100% + 10px);left:0;width:252px;max-width:calc(100vw - 40px);padding:8px;background:#fff;border:1px solid #dbe7ed;border-radius:16px;box-shadow:0 14px 36px #1e49621c}
.mf-header details:not([open])>.mf-panel{display:none}
.mf-header .mf-panel a:hover,.mf-header a[aria-current=page],.mf-header .mf-nav>a:not(.mf-login):hover{background:#edf7fc;color:#086ba9}
.mf-header .mf-paths .mf-panel a:last-child{border-top:1px solid #e3edf2;border-radius:0;margin-top:5px}
.mf-header .mf-language{order:2;flex:none}
.mf-header .mf-language>.mf-panel,.mf-header .mf-account>.mf-panel{left:auto;right:0;width:210px}
.mf-header .language-selector{display:grid;gap:3px;padding:0;margin:0;border:0;flex:none}
.mf-header .language-selector a{width:100%;margin:0;border:0;background:none}
.mf-header .language-selector a[aria-current=true]{background:#edf7fc;color:#086ba9}
.mf-header .language-pending{padding:10px;font-size:13px;color:#6a7881}
.mf-user{display:block;padding:10px 12px;overflow-wrap:anywhere;font:600 14px/1.5 system-ui,sans-serif;color:#607887;border-bottom:1px solid #e3edf2}
/* Five compact routes rather than large promotional cards on catalogue pages. */
.learning-paths.learning-path-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.learning-path-buttons .learning-path{display:flex;flex-direction:row;align-items:center;gap:12px;min-height:88px;padding:16px;border:1px solid #d5e4ec;border-radius:16px;background:#fff;box-shadow:0 3px 12px #183e5006;color:#294959}
.learning-path-buttons .path-icon{width:36px;height:36px;border-radius:11px;flex:none}
.learning-path-buttons .path-icon svg{width:23px;height:23px}
.learning-path-buttons .path-content{flex:1;min-width:0;width:auto}
.learning-path-buttons .path-content>strong{margin:0;font:650 14px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
.learning-path-buttons .learning-path.is-current{background:#edf7fc;color:#075c8e;border-color:#499dcc;box-shadow:inset 0 -3px #1682ba}
.learning-path-buttons .path-espressioni,.learning-path-buttons .path-grammatica{--path-color:#086ba9;--path-tint:#e5f5ff}
.learning-path-buttons .path-situazioni{--path-color:#bc452b;--path-tint:#fff0e9}
.learning-path-buttons .path-letture{--path-color:#806000;--path-tint:#ffeb87}
.learning-path-buttons .path-verbi{--path-color:#127970;--path-tint:#e4f5ef}
@media(max-width:1049px){
 .site-header.mf-header{gap:12px;min-height:76px;padding:14px 0}
 .mf-header .mf-brand strong{font-size:27px}
 .mf-header .mf-main{order:3;position:static;flex:none}
 .mf-header .mf-language{order:2}
 .mf-header .mf-main>summary{display:flex;border:1px solid #d5e4ec}
 .mf-header .mf-main:not([open])>.mf-nav{display:none}
 .mf-header .mf-nav{position:absolute;top:calc(100% + 8px);left:0;right:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:12px;width:auto;max-height:75vh;overflow-y:auto;background:#fff;border:1px solid #dbe7ed;border-radius:18px;box-shadow:0 14px 36px #1e49621c}
 .mf-header .mf-nav summary{justify-content:space-between;width:100%}
 .mf-header .mf-nav .mf-panel{position:static;width:auto;max-width:none;border:0;border-radius:10px;box-shadow:none;padding:4px 6px 8px 14px;background:#f6fafc}
 .mf-header .mf-nav>.mf-login{margin:4px 0 0;justify-content:center}
 .learning-paths.learning-path-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:600px){
 .site-header.mf-header{width:calc(100% - 28px);gap:5px}
 .mf-header .mf-brand{gap:8px}
 .mf-header .mf-brand strong{font-size:25px}
 .mf-header .mf-brand small{display:none}
 .mf-flag{width:18px;height:26px}
 .mf-header summary{gap:5px;padding:9px;font-size:13px}
 .mf-header .mf-menu-label{display:none}
 .mf-header .mf-main>summary{width:44px;justify-content:center;font-size:21px}
 .learning-paths.learning-path-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .learning-path-buttons .learning-path{padding:12px;min-height:84px;gap:9px}
 .learning-path-buttons .path-content>strong{font-size:13px}
}
