/* MB SITE FOOTER RECOVERY 001 · CSS di ripiego. Non altera header, main o CMS.
   Caricato per ultimo: ripristina il footer se quality.css viene ignorato o non servito. */
#site-footer-title.visually-hidden,
.site-footer #site-footer-title {
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
  margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
  clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}
.site-footer,
.site-footer * { box-sizing:border-box; }
.site-footer {
  display:block!important;position:relative!important;isolation:isolate;
  width:100%!important;max-width:none!important;
  margin:0!important;padding:clamp(2.5rem,4.2vw,4.25rem) max(1rem,calc((100% - 1360px)/2)) 1.25rem!important;
  background:#121b20!important;color:#f6f7f7!important;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  line-height:1.5;overflow:visible;
}
.site-footer .site-footer-grid {
  display:grid!important;grid-template-columns:minmax(235px,1.4fr) repeat(3,minmax(0,0.8fr))!important;
  column-gap:clamp(1.1rem,3vw,3.2rem)!important;row-gap:2rem!important;
  align-items:start!important;width:100%;max-width:1360px;margin:0 auto!important;
}
.site-footer .site-footer-identity {min-width:0;max-width:42ch;grid-column:auto!important;}
.site-footer .site-footer-identity img {display:block!important;width:68px!important;max-width:68px!important;height:auto!important;margin:0 0 1rem!important;object-fit:contain;}
.site-footer .site-footer-identity>strong {display:block!important;margin:0 0 .45rem!important;font-size:1.3rem!important;line-height:1.25!important;color:#fff!important;}
.site-footer .site-footer-identity p {margin:.5rem 0 0!important;color:#c7d2d7!important;font-size:.93rem!important;line-height:1.65!important;}
.site-footer .site-footer-grid>nav {display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:.3rem!important;min-width:0!important;margin:0!important;padding:0!important;}
.site-footer .site-footer-grid>nav h3 {display:block!important;margin:0 0 .55rem!important;font-size:.77rem!important;font-weight:750!important;line-height:1.5!important;text-transform:uppercase!important;letter-spacing:.075em!important;color:#aebbc1!important;}
.site-footer .site-footer-grid>nav a {display:inline-flex!important;align-items:center!important;min-height:30px!important;max-width:100%;padding:.12rem 0!important;margin:0!important;color:#fff!important;font-size:.9rem!important;line-height:1.35!important;text-decoration:none!important;overflow-wrap:anywhere;}
.site-footer .site-footer-grid>nav a:hover {text-decoration:underline!important;text-underline-offset:.18em;}
.site-footer a:focus-visible {outline:3px solid #f4d27a!important;outline-offset:3px!important;}
.site-footer .site-footer-bottom {display:flex!important;justify-content:space-between!important;gap:.5rem 2rem!important;
  max-width:1360px;margin:2rem auto 0!important;padding:1rem 0 0!important;border-top:1px solid rgba(255,255,255,.2)!important;
  font-size:.78rem!important;line-height:1.6!important;color:#afbec4!important;}
@media(max-width:980px){
 .site-footer .site-footer-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 .site-footer .site-footer-identity {grid-column:1/-1!important;max-width:62ch;}
}
@media(max-width:600px){
 .site-footer {padding:2.2rem 1rem 1.25rem!important;}
 .site-footer .site-footer-grid {grid-template-columns:1fr!important;row-gap:1.5rem!important;}
 .site-footer .site-footer-identity {grid-column:auto!important;}
 .site-footer .site-footer-grid>nav {padding-top:.8rem!important;border-top:1px solid rgba(255,255,255,.16)!important;}
 .site-footer .site-footer-bottom {flex-direction:column!important;}
}
@media(prefers-reduced-motion:reduce){.site-footer *{scroll-behavior:auto!important}}

/* MB-SUOLO-006 - Ripristino solo della navigazione del sito.
   Rispetta il breakpoint 1460 del file preview.js, senza duplicarne la logica. */
.preview-header,.preview-header *{box-sizing:border-box}
.preview-header{position:relative;z-index:30;background:#f6f5f2;color:#172128;width:100%;max-width:none;overflow:visible}
.preview-header .preview-header-inner{
  display:grid!important;grid-template-columns:minmax(0,300px) minmax(0,1fr)!important;
  align-items:center;gap:clamp(.7rem,1.8vw,1.8rem);
  width:min(100%,1480px);max-width:1480px;min-width:0;
  min-height:88px;margin-inline:auto;padding:14px clamp(1rem,2.4vw,2.25rem)
}
.preview-header .preview-brand{
  display:flex;align-items:center;gap:.75rem;min-width:0;max-width:100%;
  text-decoration:none;color:inherit;line-height:1.12
}
.preview-header .preview-brand>span:last-child{min-width:0;max-width:100%}
.preview-header .preview-brand strong{display:block;font-size:clamp(1.12rem,1.45vw,1.43rem);line-height:1.13;letter-spacing:-.025em}
.preview-header .preview-brand small{display:block;font-size:.75rem;line-height:1.3;color:#56626b;max-width:24ch;white-space:normal}
.preview-header .preview-logo{display:block;flex:0 0 58px;width:58px;max-width:58px;height:auto}
.preview-header .preview-logo img{display:block;width:100%;height:auto;object-fit:contain}
.preview-header .preview-navigation{
  display:flex;align-items:center;justify-content:flex-end;align-content:center;
  min-width:0;max-width:100%;flex-wrap:wrap;gap:.2rem clamp(.35rem,.6vw,.75rem);
  margin:0;padding:0;position:static
}
.preview-header .preview-navigation a{
  display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:38px;
  max-width:100%;padding:.2rem .25rem;text-decoration:none;
  font-size:clamp(.68rem,.55rem + .16vw,.8rem)!important;font-weight:650;line-height:1.2;
  letter-spacing:0;white-space:nowrap;color:inherit
}
.preview-header .preview-navigation a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px}
.preview-header .preview-navigation a:hover{text-decoration:underline;text-underline-offset:4px}
.preview-header .menu-button{display:none;min-width:88px;min-height:44px;border:1px solid #172128;background:transparent;color:#172128;padding:.6rem 1rem;font:inherit;font-weight:700;cursor:pointer}
.preview-header .preview-nav-backdrop[hidden],.preview-header .preview-navigation[hidden]{display:none!important}
.preview-header a:focus-visible,.preview-header button:focus-visible{outline:3px solid #c40018;outline-offset:3px}
@media(max-width:1460px){
 .preview-header .preview-header-inner{display:flex!important;justify-content:space-between;flex-wrap:wrap;min-height:76px;padding-block:.75rem}
 .preview-header .preview-brand{flex:1 1 220px;width:auto}
 body.menu-ready .preview-header .menu-button{display:inline-flex!important;flex:0 0 auto}
 body.menu-ready .preview-header .preview-navigation:not(.is-open){display:none!important}
 body.menu-ready .preview-header .preview-navigation.is-open{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 .8rem;
   position:absolute!important;top:100%!important;left:1rem!important;right:1rem!important;
   width:auto!important;max-width:none!important;max-height:calc(100dvh - 90px);
   overflow-y:auto;overscroll-behavior:contain;background:#fff!important;
   border:1px solid #b4bcc1;padding:.75rem 1rem!important;
   box-shadow:0 12px 30px rgba(20,27,32,.18);z-index:60
 }
 body.menu-ready .preview-header .preview-navigation.is-open a{
   min-height:48px!important;padding:.55rem!important;white-space:normal!important;
   justify-content:flex-start!important;border-bottom:1px solid #dde1e4
 }
 /* In assenza di JS, mantenere navigabili tutti i collegamenti. */
 body:not(.menu-ready) .preview-header .menu-button{display:none!important}
 body:not(.menu-ready) .preview-header .preview-navigation{
   display:flex!important;position:static!important;flex:1 1 100%;justify-content:flex-start;
   flex-wrap:wrap;max-width:100%;gap:.2rem .6rem
 }
 body:not(.menu-ready) .preview-header .preview-navigation[hidden]{display:none!important}
 .preview-header .preview-nav-backdrop:not([hidden]){position:fixed;inset:0;z-index:20;background:rgba(15,20,24,.45)}
 body.menu-open{overflow:hidden}
}
@media(max-width:760px){
 .preview-header .preview-header-inner{padding:.65rem 1rem;gap:.5rem}
 .preview-header .preview-logo{flex-basis:48px;width:48px;max-width:48px}
 .preview-header .preview-brand strong{font-size:1.05rem}
 .preview-header .preview-brand small{font-size:.7rem;max-width:18ch}
 body.menu-ready .preview-header .preview-navigation.is-open{
   position:fixed!important;inset:76px 0 auto 0!important;width:100%!important;
   max-height:calc(100dvh - 76px);border-inline:0;grid-template-columns:1fr!important
 }
}
@media(max-width:390px){
 .preview-header .preview-brand{gap:.45rem;flex-basis:180px}
 .preview-header .menu-button{min-width:76px;padding:.45rem .55rem}
}
/* Il pulsante resta sempre sopra l'overlay del menu aperto. */
.preview-header .menu-button{position:relative;z-index:70}
