/* IFI V67 - layout responsive condiviso, senza modifiche alla logica applicativa */
:root{--ifi-lime:#c8ff38}html{max-width:100%;scroll-padding-top:88px}body{max-width:100%;overflow-x:clip}img,video,svg,canvas{max-width:100%;height:auto}button,input,select,textarea{font-size:16px;max-width:100%}button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ifi-lime);outline-offset:3px}
/* Intestazione comune alle pagine PHP: vince sulle vecchie regole a 850px */
@media(max-width:900px){
 .ifi-site-sticky .ifi-yellow{display:none!important}
 .ifi-site-sticky .ifi-site-header{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;padding:12px 16px!important;min-height:68px}
 .ifi-site-sticky .ifi-site-header nav,.ifi-site-sticky .ifi-site-header .ifi-header-actions{display:none!important}
 .ifi-site-sticky .ifi-site-header .logo{flex:1 1 auto!important;min-width:0!important;font-size:11px!important;line-height:1.1!important}
 .ifi-site-sticky .ifi-site-header .logo b{font-size:clamp(16px,4.5vw,20px)!important}
 .ifi-site-sticky .ifi-mobile-toggle{display:flex!important;flex:0 0 48px!important;width:48px!important;height:44px!important;margin:0!important;padding:0!important;min-height:44px!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;background:#1b1d1d!important;border:1px solid #69735c!important;border-radius:3px!important;visibility:visible!important;opacity:1!important;z-index:3102!important}
 .ifi-site-sticky .ifi-mobile-toggle span{display:block!important;width:23px!important;height:2px!important;min-height:2px!important;background:#c8ff38!important}
 .ifi-site-sticky .ifi-mobile-menu[hidden]{display:none!important}
 .ifi-site-sticky .ifi-mobile-menu:not([hidden]){display:flex!important;position:fixed!important;inset:var(--ifi-mobile-top,68px) 0 0!important;z-index:3101!important;flex-direction:column!important;overflow-y:auto!important;overscroll-behavior:contain!important;background:#141817!important;padding:18px 22px max(32px,env(safe-area-inset-bottom))!important}
 .ifi-site-sticky .ifi-mobile-menu a{display:block!important;padding:16px 10px!important;color:#f4f5ee!important;border-bottom:1px solid #384037!important;font-size:13px!important;font-weight:900!important}
 .ifi-site-sticky .ifi-mobile-menu .ifi-mobile-auth{background:#c8ff38!important;color:#111!important;text-align:center!important;margin-top:16px!important}
 body.ifi-menu-open{overflow:hidden!important}
}
@media(min-width:901px){.ifi-site-sticky .ifi-mobile-toggle,.ifi-site-sticky .ifi-mobile-menu{display:none!important}}
/* Pagine PHP, formulari e tabelle */
.wrap{width:min(100%,1120px);min-width:0}.card,.grid,.row,.gestori-grid{min-width:0}.grid>* , .gestori-grid>*{min-width:0}.card{overflow-wrap:anywhere}table{max-width:100%}.scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}input[type=checkbox],input[type=radio]{width:auto;min-width:18px;height:18px}input[type=file]{max-width:100%;white-space:normal}pre,code{overflow-wrap:anywhere} .card img,.card video{max-width:100%;height:auto}
@media(max-width:900px){.wrap{padding:26px 18px 80px}.gestori-grid{grid-template-columns:minmax(0,1fr)!important}.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}.row{max-width:100%} .row>*{min-width:0}.card{padding:18px;margin:12px 0}h1{font-size:clamp(38px,9vw,64px);overflow-wrap:break-word}.ifi-site-sticky+main{min-width:0}}
@media(max-width:600px){.wrap{padding:22px 14px 72px}.grid{grid-template-columns:minmax(0,1fr)!important}.gestori-grid{grid-template-columns:minmax(0,1fr)!important}.card{padding:15px;border-radius:5px} .row{align-items:stretch}.row>.btn,.row>button{flex:1 1 auto}table{font-size:12px}th,td{padding:9px 8px} .scroll table{min-width:560px}h1{font-size:clamp(36px,11vw,52px)}button,.btn{min-height:44px}input,select,textarea{min-width:0} }
/* Homepage: scope sotto .ifi-sticky-shell o main per non alterare componenti PHP */
@media(max-width:900px){
 .ifi-sticky-shell header{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:12px!important;min-height:68px!important;padding:12px 16px!important}
 .ifi-sticky-shell header nav,.ifi-sticky-shell header .ifi-header-actions{display:none!important}
 .ifi-sticky-shell header .logo{flex:1 1 auto!important;min-width:0!important}
 .ifi-sticky-shell header .ifi-mobile-toggle{display:flex!important;flex:0 0 48px!important;width:48px!important;height:44px!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:5px!important;background:#1b1d1d!important;border:1px solid #69735c!important;z-index:3102!important}
 .ifi-sticky-shell header .ifi-mobile-toggle span{display:block!important;width:23px!important;height:2px!important;min-height:2px!important;background:#c8ff38!important}
 .ifi-sticky-shell .ifi-mobile-menu:not([hidden]){display:flex!important;position:fixed!important;inset:var(--ifi-mobile-top,68px) 0 0!important;z-index:3101!important;overflow-y:auto!important;flex-direction:column!important;background:#141817!important;padding:18px 22px 36px!important}
 .ifi-sticky-shell .ifi-mobile-menu[hidden]{display:none!important}
 .ifi-sticky-shell .ifi-mobile-menu a{display:block!important;padding:16px 10px!important;border-bottom:1px solid #384037!important;color:#f4f5ee!important;font-weight:900!important;font-size:13px!important}
 .ifi-sticky-shell .ifi-mobile-menu a:last-child{background:#c8ff38!important;color:#111!important;text-align:center!important;margin-top:16px!important}
 .hero,.section{max-width:100%;min-width:0;padding:65px 5vw}.hero{min-height:520px}.hero-art{pointer-events:none}.map-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px}.map-layout #map{width:100%;min-height:400px}.map-layout .results{max-height:370px;overflow:auto}.searchbar{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.searchbar #query{grid-column:1/-1;width:100%}.searchbar #geo{grid-column:1/-1}.ifi-filterbar{display:flex;flex-wrap:wrap;gap:8px}.ifi-filterbar button{min-height:44px}.fields,.tiles{grid-template-columns:minmax(0,1fr)!important}.shop-banner{flex-direction:column!important;align-items:flex-start!important}.ifi-owners-top,.ifi-plan-grid,.tier-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important}
}
@media(max-width:600px){.hero,.section{padding:48px 16px}.hero{min-height:470px}.hero h1{font-size:clamp(48px,12vw,72px)!important}.hero-art{opacity:.09!important}.hero .actions{display:flex;flex-direction:column;align-items:stretch}.hero .actions a{text-align:center}.section h2{font-size:clamp(43px,11vw,62px)}.searchbar{grid-template-columns:repeat(2,minmax(0,1fr))}.searchbar input,.searchbar select,.searchbar button{min-width:0;width:100%;font-size:14px}.map-layout #map{min-height:350px;height:55svh;max-height:520px}.map-layout .results{max-height:340px;padding:15px}.ifi-filterbar button{font-size:11px!important;padding:9px 10px!important}.ifi-filter-help{line-height:1.5}.ifi-owners-top,.ifi-plan-grid,.tier-grid{grid-template-columns:minmax(0,1fr)!important}.shop-banner{padding:22px!important}.venue-photo-viewer{padding:68px 40px!important}.venue-photo-viewer button{width:38px!important;height:44px!important}.venue-photo-prev{left:2px!important}.venue-photo-next{right:2px!important}footer{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
