/*
 * UniCore | Spazio studenti
 *
 * File: assets/css/front-menu-unicore.css
 * Funzione: Stili per front menu unicore.
 *
 * Copyright © 2026 Davide Giovanni Paolo Di Salvatore.
 * Proprietario di UniCore. Tutti i diritti riservati.
 *
 * Condizioni d’uso del codice e dei materiali originali in LICENSE.md.
 */

body .front-header{position:sticky!important;z-index:100!important;top:0!important;width:100%!important;max-width:none!important;height:78px!important;margin:0!important;padding:0 max(28px,calc((100vw - 1200px)/2))!important;border:0!important;border-bottom:2px solid #183b56!important;border-image:none!important;background:#fff!important;box-shadow:0 7px 24px rgba(20,52,75,.045)!important;backdrop-filter:blur(18px) saturate(145%)!important;transform:translateY(0);transition:transform .32s cubic-bezier(.22,1,.36,1),box-shadow .2s ease!important;will-change:transform}
body .front-header.is-menu-hidden{transform:translateY(calc(-100% - 4px))!important;box-shadow:none!important}
.front-header .landing-brand.unicore-brand{min-width:max-content;gap:10px!important}.front-header .landing-brand.unicore-brand>.site-brand-mark{width:40px!important;height:40px!important;flex-basis:40px!important}.front-header .unicore-wordmark{font-size:23px!important}
.public-brand-group{display:flex;min-width:0;align-items:center;gap:22px}.public-brand-note{position:relative;display:flex;flex-direction:column;padding-left:22px;line-height:1.2}.public-brand-note:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:1px;background:#dbe3e1}.public-brand-note b{color:#14344b;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.public-brand-note small{margin-top:4px;color:#7b8985;font-size:10px;white-space:nowrap}
.front-header nav{display:flex;align-items:center;gap:5px!important;margin-left:auto}.front-header nav>a:not(.button),.front-header .front-nav>a{position:relative;display:inline-flex;min-height:40px;align-items:center;padding:0 13px;border-radius:8px;color:#5d6c68!important;font-size:13px!important;font-weight:650;text-decoration:none;transition:background .18s ease,color .18s ease}.front-header nav>a:not(.button):hover,.front-header .front-nav>a:hover{background:#f0f5f3;color:#14344b!important}.front-header .front-nav>a.is-active{background:#edf5f2;color:#14344b!important}.front-header .front-nav>a.is-active:after{content:"";position:absolute;right:13px;bottom:4px;left:13px;height:2px;border-radius:2px;background:#20c88a}
.front-header .button.button-small{display:inline-flex;min-height:44px;align-items:center;margin-left:8px;padding:0 18px;border:1px solid #14344b;border-radius:10px;background:#14344b;color:#fff;font-size:13px;font-weight:800;box-shadow:none;transition:background .18s ease,border-color .18s ease,transform .18s ease}.front-header .button.button-small:after{content:"↗";margin-left:9px;color:#66e0b5;font-size:12px}.front-header .button.button-small:hover{border-color:#1b4a68;background:#1b4a68;transform:translateY(-1px)}
.front-header .front-nav{margin-right:18px}.front-header .front-account summary{min-height:48px;padding:5px 10px 5px 6px!important;border-color:#d9e1df!important;border-radius:12px!important;box-shadow:none;transition:border-color .18s ease,box-shadow .18s ease}.front-header .front-account summary:hover{border-color:#9aafaa!important;box-shadow:0 6px 18px rgba(20,52,75,.07)}
html[data-theme="dark"] body .front-header{border-bottom-color:#35d69d!important;background:#111a20!important;box-shadow:0 6px 24px rgba(0,0,0,.16)!important}html[data-theme="dark"] .front-header nav>a:not(.button),html[data-theme="dark"] .front-header .front-nav>a{color:#b8c7c2!important}html[data-theme="dark"] .front-header nav>a:not(.button):hover,html[data-theme="dark"] .front-header .front-nav>a:hover,html[data-theme="dark"] .front-header .front-nav>a.is-active{background:#1c2a30!important;color:#fff!important}
html[data-theme="dark"] .public-brand-note:before{background:#34454b}html[data-theme="dark"] .public-brand-note b{color:#fff}html[data-theme="dark"] .public-brand-note small{color:#9cafaa}
@media(max-width:1050px){.public-brand-note{display:none}}
@media(max-width:900px){body .front-header{height:70px!important;padding-inline:18px!important}.front-header .front-nav{display:none}.front-header .landing-brand.unicore-brand>.site-brand-mark{width:37px!important;height:37px!important;flex-basis:37px!important}.front-header .unicore-wordmark{font-size:21px!important}.front-public .front-header nav .public-nav-home{display:none}}
@media(max-width:560px){.front-header .landing-brand.unicore-brand>.site-brand-mark{width:35px!important;height:35px!important;flex-basis:35px!important}.front-header .unicore-wordmark{font-size:19px!important}.front-public .front-header nav>a:not(.button){display:none}.front-header .button.button-small{min-height:40px;margin-left:0;padding:0 14px}.front-header .front-account summary{min-height:42px!important}}
@media(prefers-reduced-motion:reduce){body .front-header,.front-header nav>a,.front-header .button.button-small,.front-header .front-account summary{transition:none!important}}
/* Barra e footer continui durante lo scorrimento, anche su Safari. */
body .front-header,body .front-header.is-menu-hidden{transform:none!important;transition:box-shadow .2s ease!important;will-change:auto!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;backface-visibility:visible!important}
body footer.site-footer{position:relative!important;z-index:1!important;isolation:isolate!important;overflow:hidden!important;transform:none!important;will-change:auto!important;backface-visibility:visible!important;background-attachment:scroll!important}
body footer.site-footer .site-footer-shell{position:relative!important;z-index:2!important;transform:none!important}

/* Il fondo del documento deve proseguire con il footer: evita la fascia chiara e
   gli angoli scoperti quando il browser raggiunge/oltrepassa il fondo pagina. */
html{
    min-height:100%;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    background:#14344b!important;
    overscroll-behavior-y:none;
}
body.front-public,
body.front-authenticated,
body.student-page{
    min-height:100vh;
    margin:0!important;
    padding-bottom:0!important;
    border-radius:0!important;
    overscroll-behavior-y:none;
}
body.front-public>footer.site-footer:last-of-type,
body.front-authenticated>footer.site-footer:last-of-type,
body.student-page>footer.site-footer:last-of-type{
    margin-bottom:0!important;
    border-radius:0!important;
}
