/* Native Enfold menu behaviour; full-width grid, up to eight category columns. */
@media(min-width:990px){
#top #header .afr-products-megamenu .avia_mega_div{position:fixed!important;left:0!important;right:0!important;top:var(--afr-mega-top,calc(var(--af-menu-top) + var(--af-menu-height)))!important;transform:none!important;width:100%!important;box-sizing:border-box;max-height:calc(100dvh - var(--afr-mega-top,100px));overflow:auto;margin:0!important;padding:16px 28px 18px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,0) 65%),rgba(23,62,68,.90);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);border:0;border-top:2px solid #ffc900;box-shadow:0 18px 32px #0003;grid-template-columns:repeat(var(--afr-mega-columns,6),minmax(0,1fr));gap:20px}
#top #header .afr-products-megamenu .avia_mega_div[style*="display: block"]{display:grid!important}
#top #header .afr-products-megamenu .avia_mega_div>.sub-menu{display:contents!important}
#top #header .afr-products-megamenu .avia_mega_div>.sub-menu>li{width:auto!important;float:none;padding:0 12px 0 0;border:0;border-right:1px solid #ffffff24;margin:0!important;min-width:0}
#top #header .afr-products-megamenu li.avia_mega_hr{display:none!important}
#top #header .afr-products-megamenu .mega_menu_title{display:block;margin:0 0 8px;padding:0;font-size:15px;font-weight:700;line-height:1.3;letter-spacing:0}
#top #header .afr-products-megamenu .mega_menu_title a{padding:0 0 6px!important;color:#ffc900!important;display:block;font-size:15px;line-height:1.3;background:none!important;overflow-wrap:anywhere}
#top #header .afr-products-megamenu .sub-menu .sub-menu{position:static;display:block;visibility:visible;width:auto;margin:0;background:none;box-shadow:none;opacity:1}
#top #header .afr-products-megamenu .afr-mega-product>a{display:flex!important;align-items:center;gap:8px;padding:5px 4px!important;min-height:44px;line-height:1.3;font-size:14px;color:#fff;background:transparent;white-space:normal;border:0;transition:background .15s,color .15s}
#top #header .afr-products-megamenu .afr-mega-product>a:hover,#top #header .afr-products-megamenu .afr-mega-product>a:focus-visible{background:#ffffff0c;color:#ffc900}
#top #header .afr-products-megamenu .afr-mega-product .avia-bullet{display:none}
#top #header .afr-products-megamenu .afr-menu-product-image{width:34px;height:34px;object-fit:contain;flex:none;background:#fff;border-radius:3px;padding:2px;margin:0}
#top #header .afr-mega-compact .afr-mega-product>a{min-height:27px;padding:4px 4px!important}
#top #header .afr-mega-preview-enabled .avia_mega_div>.sub-menu:last-of-type>li:last-child{border-right:0}
#top #header .afr-mega-preview-enabled .avia_mega_div{grid-template-columns:repeat(var(--afr-mega-columns,6),minmax(0,1fr)) 164px}
#top #header .afr-mega-preview{position:relative;grid-column:calc(var(--afr-mega-columns,6) + 1);grid-row:1;align-self:start;width:164px;height:184px;margin:0;border-left:1px solid #ffffff24;padding-left:16px;pointer-events:none;opacity:0;transition:opacity .15s}
#top #header .afr-mega-preview.is-visible{opacity:1}
#top #header .afr-mega-preview img{display:block;width:100%;height:100%;object-fit:contain;background:transparent;border:0;border-radius:0;padding:0;box-sizing:border-box}
}
@media(min-width:1600px){#top #header .afr-products-megamenu .avia_mega_div{padding-left:40px;column-gap:24px}}
#top #av-burger-menu-ul .afr-menu-product-image{width:34px;height:34px;object-fit:contain;background:#fff;border-radius:3px;margin-right:12px;vertical-align:middle}
@media(max-width:989.98px){.afr-mega-preview{display:none!important}}
@media(prefers-reduced-motion:reduce){#top #header .afr-products-megamenu .afr-mega-product>a,#top #header .afr-mega-preview{transition:none}}
/* Adaptive layout keeps each series intact and its original reading order. */
@media(min-width:990px){
#top #header .afr-mega-adaptive .avia_mega_div{grid-template-columns:repeat(var(--afr-mega-columns,6),minmax(0,1fr));gap:20px}
#top #header .afr-mega-adaptive[data-afr-preview-mode="side"] .avia_mega_div{grid-template-columns:repeat(var(--afr-mega-columns,6),minmax(0,1fr)) 164px}
#top #header .afr-mega-adaptive[data-afr-preview-mode="none"] .afr-mega-preview{display:none}
#top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column{display:block!important;position:static!important;width:auto!important;float:none!important;margin:0!important;padding:0 12px 0 0;border:0;border-right:1px solid #ffffff24;min-width:0;background:none!important}
#top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column:last-of-type{border-right:0}
#top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column>.afr-mega-category{display:block!important;padding:0!important;border:0!important;margin:0 0 20px!important;width:100%!important;float:none!important}
#top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column>.afr-mega-category:last-child{margin-bottom:0!important}
#top #header .afr-mega-adaptive .afr-mega-product>a{overflow-wrap:anywhere}
}
@media(min-width:1600px){#top #header .afr-mega-adaptive .avia_mega_div{column-gap:24px}}
@media(max-width:989.98px){
#top #header #av-burger-menu-ul .afr-touch-grid{background:#173e44;margin:0 20px;padding:18px 20px 24px;display:grid!important;grid-template-columns:repeat(var(--afr-touch-columns,1),minmax(0,1fr));gap:22px;border-top:2px solid #ffc900;box-sizing:border-box}
#top #header #av-burger-menu-ul .afr-touch-grid[hidden],#top #header #av-burger-menu-ul .afr-touch-category>ul[hidden]{display:none!important}
#top #header #av-burger-menu-ul .afr-touch-grid>.afr-mega-column{display:block!important;position:static!important;opacity:1!important;visibility:visible!important;margin:0!important;padding:0!important;width:auto!important;min-width:0}
#top #header #av-burger-menu-ul .afr-touch-category{display:block!important;opacity:1!important;visibility:visible!important;margin:0 0 18px!important;padding:0!important;min-width:0}
#top #header #av-burger-menu-ul .afr-touch-category>a{color:#ffc900!important;font-size:16px!important;line-height:1.35!important;font-weight:600;padding:12px 28px 12px 0!important;min-height:44px;height:auto;border-bottom:1px solid #ffffff28;overflow-wrap:anywhere}
#top #header #av-burger-menu-ul .afr-touch-category>ul{display:block!important;position:static!important;opacity:1!important;visibility:visible!important;margin:0!important;padding:6px 0 0!important}
#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product{display:block!important;opacity:1!important;visibility:visible!important;padding:0!important;margin:0!important}
#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product>a{display:flex!important;align-items:center;gap:10px;min-height:44px;padding:7px 0!important;font-size:16px!important;line-height:1.35!important;height:auto;color:#fff!important;border:0;overflow-wrap:anywhere}
#top #header #av-burger-menu-ul .afr-touch-grid .afr-menu-product-image{width:34px;height:34px;flex:none;margin:0;object-fit:contain;padding:2px;background:#fff;border-radius:3px}
#top #header #av-burger-menu-ul .afr-touch-grid .avia-bullet{display:none!important}
#top #header #av-burger-menu-ul .afr-touch-grid .av-submenu-indicator{right:0;left:auto;top:50%;margin-top:-9px;color:#ffc900}
#top #header #av-burger-menu-ul .afr-touch-grid a:focus-visible{outline:2px solid #ffc900;outline-offset:2px}
#top #header #av-burger-menu-ul .afr-touch-grid a:hover{color:#ffc900}
#top #header #av-burger-menu-ul .afr-touch-overview{grid-column:1/-1;grid-row:1;padding:6px 0!important;font-size:16px!important;line-height:1.35!important;min-height:44px;color:#fff!important;border-bottom:1px solid #ffffff28;text-decoration:underline;text-underline-offset:4px}
#top #header #av-burger-menu-ul .afr-touch-category .av-cloned-title>a{padding:12px 0!important;min-height:44px;font-size:15px!important;line-height:1.35!important;color:#ffc900;border:0;text-decoration:underline;text-underline-offset:4px}
#top #header #av-burger-menu-ul .afr-touch-category .av-cloned-title>ul{display:none!important}
}

@media(max-width:989.98px){
#top #header #av-burger-menu-ul .afr-touch-grid{gap:8px;padding:10px 18px 18px}
#top #header #av-burger-menu-ul .afr-touch-category{margin-bottom:4px!important}
#top #header #av-burger-menu-ul .afr-touch-category>a[aria-expanded="true"] .av-submenu-indicator{transform:rotate(180deg)}
}


#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product>a:hover,
#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product>a:focus-visible{color:#ffc900!important}

@media(min-width:990px){#top #header .afr-mega-subject-images .afr-mega-preview img{padding:0}}

@media(min-width:990px){
#top #header .afr-mega-adaptive .mega_menu_title{min-height:var(--afr-mega-title-height,0px);box-sizing:border-box}
#top #header .afr-mega-adaptive .mega_menu_title a{overflow-wrap:normal;word-break:normal}
}


@media(min-width:990px){#top #header .afr-mega-subject-images .afr-mega-preview img[src*="rabotti-menu-acciaio-"]{height:auto;max-height:184px;aspect-ratio:auto;background:transparent;padding:0}}

@media(min-width:990px){#top #header .afr-products-megamenu:not(.afr-mega-interaction-open) .avia_mega_div{visibility:hidden!important;pointer-events:none!important;opacity:0!important}}

@media(min-width:990px){
#top #header .afr-mega-dismiss{position:absolute;top:1px;right:23px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:2px 5px;border:0;background:transparent;color:#ffffffb8;box-shadow:none;font:400 11px/1.2 Archivo,sans-serif;cursor:pointer;z-index:3}
#top #header .afr-mega-dismiss span{font:300 20px/1 Archivo,sans-serif}
#top #header .afr-mega-dismiss:hover,#top #header .afr-mega-dismiss:focus-visible{color:#ffc900}
#top #header .afr-mega-dismiss:focus-visible{outline:2px solid #ffc900;outline-offset:0}
#top #header .afr-mega-preview{margin-top:14px}
}
@media(max-width:989.98px){#top #header .afr-mega-dismiss{display:none}}

/* One series per column, plus the native product preview; mobile below the header breakpoint. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .avia_mega_div{padding-inline:20px;column-gap:12px}
 #top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column{padding-right:8px}
 #top #header .afr-mega-adaptive .mega_menu_title,#top #header .afr-mega-adaptive .mega_menu_title a{font-size:14px}
 #top #header .afr-mega-adaptive .afr-mega-product>a{font-size:13px}
}

@media(min-width:990px){
 #top #header .afr-mega-adaptive[data-afr-preview-mode="side"] .avia_mega_div{grid-template-columns:repeat(calc(var(--afr-mega-columns,8) + 1),minmax(0,1fr))}
 #top #header .afr-mega-adaptive .afr-mega-preview{width:100%;box-sizing:border-box;padding:0 8px 0 0;border-left:0;border-right:1px solid transparent}
}
@media(min-width:990px){#top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column:last-of-type{border-right:1px solid transparent}}

/* Preview heading and separator share the eight category columns' geometry. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column:last-of-type{border-right-color:#ffffff24}
 #top #header .afr-mega-adaptive .afr-mega-preview{margin-top:0;height:auto;align-self:stretch;opacity:1;border-right-color:transparent}
 #top #header .afr-mega-adaptive .afr-mega-preview .mega_menu_title{font-size:14px;font-weight:700;color:#ffc900;line-height:1.3;padding:0 0 6px;margin:0 0 8px}
 #top #header .afr-mega-adaptive .afr-mega-preview img{height:184px;opacity:0;transition:opacity .15s}
 #top #header .afr-mega-adaptive .afr-mega-preview.is-visible img{opacity:1}
}
/* Reserve a separate top row for the close control above all nine headings. */
@media(min-width:990px){#top #header .afr-mega-adaptive .avia_mega_div{padding-top:26px}}

/* Decorative technical placeholder: same footprint as the preview, no extra request or script. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .afr-mega-preview::after{content:"";position:absolute;top:calc(50% - 10px);transform:translateY(-50%);left:0;width:calc(100% - 9px);height:184px;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20140%20184%22%20fill%3D%22none%22%3E%3Cg%20transform%3D%22translate%280%20-2%29%22%20stroke%3D%22%23c6d5d4%22%20stroke-width%3D%220.85%22%20stroke-linecap%3D%22square%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20opacity%3D%220.36%22%20d%3D%22M21%2048v-7h7m84%200h7v7M21%20136v7h7m84%200h7v-7%22%2F%3E%3Cpath%20opacity%3D%220.51%22%20d%3D%22m43%2080%2027-15%2027%2015v32l-27%2015-27-15Zm0%200%2027%2016%2027-16M70%2096v31%22%2F%3E%3Cpath%20opacity%3D%220.36%22%20d%3D%22m52%2080%2018-10%2018%2010-18%2010Z%22%2F%3E%3Cellipse%20opacity%3D%220.44%22%20cx%3D%2283.5%22%20cy%3D%22103%22%20rx%3D%225.3%22%20ry%3D%228%22%20transform%3D%22rotate%2830%2083.5%20103%29%22%2F%3E%3Cpath%20opacity%3D%220.32%22%20d%3D%22m50%2095%2013%207m-13-2%2013%207m-13-2%208%204%22%2F%3E%3Cpath%20opacity%3D%220.23%22%20stroke-dasharray%3D%222%204%22%20d%3D%22M70%2051v14m0%2062v14M28%2096h15m54%200h15M43%20112l27-16%2027%2016%22%2F%3E%3Cpath%20opacity%3D%220.29%22%20d%3D%22M65%2054h10m-5-5v10M65%20138h10m-5-5v10M36%2077v36m-3-33h6m-6%2032h6M44%20131l23%2013m-23-16v6m23%207v6M102%2079h10v12%22%2F%3E%3Ccircle%20opacity%3D%220.35%22%20cx%3D%22112%22%20cy%3D%2294%22%20r%3D%222%22%2F%3E%3Ccircle%20opacity%3D%220.29%22%20cx%3D%2270%22%20cy%3D%2296%22%20r%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center/contain no-repeat;pointer-events:none;opacity:1;transition:opacity .15s}
 #top #header .afr-mega-adaptive .afr-mega-preview.is-visible::after{opacity:0}
}
@media(prefers-reduced-motion:reduce){#top #header .afr-mega-adaptive .afr-mega-preview::after{transition:none}}

/* Category hover highlights the technical placeholder; single-product categories use their photo. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .afr-mega-preview::after{transition:opacity .15s,filter .18s}
 #top #header .afr-mega-adaptive .afr-mega-preview:hover::after,#top #header .afr-mega-adaptive .afr-mega-preview.is-category-hover::after{filter:brightness(2.1) drop-shadow(0 0 .5px #ffffff80)}
}
@media(prefers-reduced-motion:reduce){#top #header .afr-mega-adaptive .afr-mega-preview::after{transition:none}}

/* Keep wrapped names together and let labels use the available column width. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .avia_mega_div>.afr-mega-column,
 #top #header .afr-mega-adaptive .afr-mega-preview{padding-right:3px}
 #top #header .afr-mega-adaptive .afr-mega-product>a{padding:4px 0!important;line-height:1.25!important}
 #top #header .afr-mega-adaptive .mega_menu_title,
 #top #header .afr-mega-adaptive .mega_menu_title a{line-height:1.18!important}
 #top #header .afr-mega-adaptive .afr-mega-preview::after{width:calc(100% - 4px)}
}

/* The preview caption offers visual feedback without becoming a navigation link. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .afr-mega-preview figcaption{pointer-events:none;cursor:default;text-decoration:none}
 #top #header .afr-mega-adaptive .afr-mega-preview figcaption:hover,#top #header .afr-mega-adaptive .afr-mega-preview figcaption:focus-visible{text-decoration:none}
}
/* Preview title stays level with category headings, above the image. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .afr-mega-preview{display:flex;flex-direction:column;align-items:stretch}
 #top #header .afr-mega-adaptive .afr-mega-preview img{order:1;flex:none;object-position:center top}
 #top #header .afr-mega-adaptive .afr-mega-preview .mega_menu_title{order:0;margin:0 0 8px;padding:0 0 6px}
}

/* Lists determine the panel height; the preview fills the space they provide. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive .avia_mega_div{height:auto;min-height:0;padding-bottom:10px;}
 #top #header .afr-mega-adaptive .afr-mega-preview{display:grid;grid-template-rows:auto minmax(0,1fr);grid-template-columns:minmax(0,1fr);min-height:0;}
 #top #header .afr-mega-adaptive .afr-mega-preview figcaption{grid-area:1/1;}
 #top #header .afr-mega-adaptive .afr-mega-preview img,#top #header .afr-mega-adaptive .afr-mega-preview::after{position:absolute;grid-area:2/1;inset:0;width:100%;height:100%;max-height:none;min-height:0;transform:none;object-fit:contain;object-position:center;}
}


/* One typeface and size across the desktop menu; hierarchy uses weight and colour. */
@media(min-width:990px){
 #top #header .afr-mega-adaptive :is(.mega_menu_title,.mega_menu_title a,.afr-mega-product>a){font-family:archivo,Helvetica,Arial,sans-serif;font-size:14px!important;}
 #top #header .afr-mega-adaptive :is(.mega_menu_title,.mega_menu_title a){font-weight:700;color:#ffc900!important;}
 #top #header .afr-mega-adaptive .afr-mega-product>a{font-size:13px!important;font-weight:400;}
}

/* Desktop: approved +3px for mega titles and products; ordinary submenus share product size. */
@media(min-width:990px){
#top #header .afr-mega-adaptive :is(.mega_menu_title,.mega_menu_title a){font-size:17px!important}
#top #header .afr-mega-adaptive .afr-mega-product>a,#top #header .afr-mega-adaptive .afr-mega-product>a .avia-menu-text{font-size:16px!important}
#top #header .av-main-nav>li:not(.afr-products-megamenu)>.sub-menu>li>a,#top #header .av-main-nav>li:not(.afr-products-megamenu)>.sub-menu>li>a .avia-menu-text{font-size:16px!important;line-height:1.4}
}

/* Static preview area: hover only brightens the decorative drawing. */
@media(min-width:990px){#top #header .afr-mega-adaptive .afr-mega-preview{pointer-events:auto;cursor:default}}

/* All burger product areas: one accordion section at a time. */
#top #header #av-burger-menu-ul .afr-touch-grid{display:block!important}
#top #header #av-burger-menu-ul .afr-touch-grid>.afr-mega-column{width:100%!important;float:none!important;padding:0!important}
#top #header #av-burger-menu-ul .afr-touch-category{width:100%!important;margin:0!important;border-bottom:1px solid #ffffff24}
#top #header #av-burger-menu-ul .afr-touch-category>a{font-size:22px!important;min-height:48px!important;padding:12px 0!important;line-height:1.3!important}
#top #header #av-burger-menu-ul .afr-touch-category>ul[hidden]{display:none!important}
#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product>a{display:flex!important;align-items:center;gap:12px;font-size:18px!important;line-height:1.35!important;min-height:48px!important;padding:6px 0!important}
#top #header #av-burger-menu-ul .afr-touch-category .afr-mega-product img{display:block!important;width:40px!important;height:40px!important;object-fit:contain;flex:none;margin:0!important}

#top #header #av-burger-menu-ul .afr-touch-category>a{background:transparent!important;text-decoration:none!important;color:#fff!important;font-weight:700!important}
#top #header #av-burger-menu-ul .afr-touch-category>a[aria-expanded=true]{color:#ffc900!important}
