/* Shared fixes from the desktop and mobile visual audit, 17 October 2026. */
.content-intro>figure.card{margin:0}
main .phase-header{position:static!important;top:auto!important;z-index:auto!important;background:transparent!important;backdrop-filter:none!important;border-bottom:0!important}
@media(min-width:961px){
 .phase-process{grid-template-rows:auto repeat(2,minmax(0,1fr));align-items:stretch}
 .phase-process>.process-phase{display:grid;grid-row:span 3;grid-template-rows:subgrid;min-width:0;padding-bottom:0}
 .phase-process .phase-header{margin:0;min-height:92px}
 .phase-process .phase-steps{display:contents}
 .phase-process .phase-step{border-top:1px solid #d7e0e5;align-content:start;min-width:0}
 .phase-process .phase-step+.phase-step{border-top-color:#e3e9ec}
}
.page-privati #gestione,.page-privati #processo,.page-privati #contatti{background:#f3f6f8}
.page-privati #casistiche,.page-privati #costi-e-domande{background:#fff}
body>.topbar .container.wrap{box-sizing:border-box;max-width:1120px;width:100%;margin-inline:auto;padding:8px 16px;line-height:1.4}
body>.topbar a{color:#fff;text-decoration:underline}
.site-header .container.nav{box-sizing:border-box;display:flex;align-items:center;flex-wrap:nowrap;width:100%;max-width:1560px;margin-inline:auto;padding:8px 24px!important;gap:12px;min-height:68px}
.site-header .brand-wrap{flex-shrink:0}
.site-header .logo-img{height:44px;width:auto;display:block}
.site-header .menu{margin-left:auto}
.site-header .menu>.btn.accent{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:12px;background:#ef7d14;color:#111827;font:inherit;font-size:14px;font-weight:800;line-height:1.1;text-decoration:none;white-space:nowrap}
.site-header .menu>a[aria-current="page"],.site-header .menu>a[data-section-current="true"]{background:#edf3f6;color:#1f3b4d;font-weight:800}
.site-header .mobile-menu-toggle{display:none}
.site-footer .container{box-sizing:border-box;width:100%;max-width:1120px;margin-inline:auto;padding-inline:16px}
.page-legal main{padding-top:40px;padding-bottom:54px}
.page-legal main.container,.page-legal main>.container{box-sizing:border-box;width:100%;max-width:960px;margin-inline:auto;padding-inline:16px}
.page-legal main h1{font-size:38px;line-height:1.15;letter-spacing:-.02em;margin:0 0 20px;color:#1f3b4d}
.page-legal main h2{font-size:22px;line-height:1.3;margin:24px 0 10px;color:#1f3b4d}
.page-legal main .card{padding:24px;border:1px solid #e5e7eb;border-radius:16px;box-shadow:0 8px 22px rgba(31,59,77,.06)}
.page-legal main p,.page-legal main li{font-size:16px;line-height:1.65}
@media(min-width:761px) and (max-width:1100px){
 .site-header .container.nav{flex-wrap:wrap;padding:8px 16px!important;gap:8px}
}
@media(max-width:760px){
 .site-header .container.nav{flex-wrap:wrap;padding:8px 16px!important;gap:8px;min-height:60px}
 .site-header .brand-wrap{flex:0 1 auto;padding-right:0}
 .site-header .mobile-menu-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:auto;min-height:44px;line-height:1.1}
 .site-header .mobile-menu-toggle::before{content:"";display:block;width:14px;height:12px;flex:0 0 14px;background:linear-gradient(currentColor,currentColor) top/100% 2px no-repeat,linear-gradient(currentColor,currentColor) center/100% 2px no-repeat,linear-gradient(currentColor,currentColor) bottom/100% 2px no-repeat}
 .site-header .mobile-menu-toggle[aria-expanded="true"]::before{height:14px;background:linear-gradient(45deg,transparent 43%,currentColor 43%,currentColor 57%,transparent 57%),linear-gradient(-45deg,transparent 43%,currentColor 43%,currentColor 57%,transparent 57%)}
 .site-header .menu{margin-left:0}
 .site-header .menu>.btn.accent{white-space:normal}
 .page-legal main{padding-top:34px;padding-bottom:40px}
 .page-legal main h1{font-size:32px}
 .page-legal main .card{padding:20px}
}
@media(max-width:480px){
 body>.topbar .container.wrap{justify-content:center;padding:6px 12px!important;font-size:11px;gap:4px}
 body>.topbar .wrap>div:first-child{display:none}
 body>.topbar .wrap>div:last-child{text-align:center}
 body>.topbar a{white-space:nowrap}
}
