/* Header Inghilterra 2026. Tutti gli stili sono limitati a #ri-header. */
#ri-header{font-family:Arial,Helvetica,sans-serif;font-size:15px;position:relative;z-index:1000;background:#fff;color:#181818;line-height:1.4}
#ri-header *{box-sizing:border-box}
#ri-header a,#ri-header a:visited{color:inherit;text-decoration:none;font-weight:500}
#ri-header a:hover{color:#a8792d}
#ri-header .ri-promo{background:#a8792d;color:#fff;text-align:center;padding:9px 15px;font-weight:700;letter-spacing:.06em;font-size:12px}
#ri-header .ri-top{background:#151515;color:#fff;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px max(22px,calc((100vw - 1440px)/2))}
#ri-header .ri-logo{background:#fff;border-radius:5px;padding:5px 12px;display:flex;align-items:center;flex-shrink:0}
#ri-header .ri-logo img{display:block;width:235px;max-width:100%;height:65px;object-fit:contain}
#ri-header .ri-top-actions{display:flex;align-items:center;gap:28px}
#ri-header .ri-top-actions>a{color:#fff;font-weight:600}
#ri-header details{position:relative}
#ri-header summary{cursor:pointer;list-style:none;user-select:none}
#ri-header summary::-webkit-details-marker{display:none}
#ri-header .ri-translate>summary{display:flex;align-items:center;justify-content:center;border:1px solid #555;border-radius:8px;padding:9px 12px;font-size:16px;font-weight:bold;color:#fff}
#ri-header .ri-translate-panel{position:absolute;right:0;top:calc(100% + 10px);background:#fff;border:1px solid #ddd;border-radius:10px;min-width:180px;padding:12px;box-shadow:0 12px 32px #0002;color:#111;z-index:20}
#ri-header .ri-navigation{display:flex;align-items:center;gap:25px;padding:15px max(22px,calc((100vw - 1440px)/2));border-bottom:1px solid #e8e8e8;background:#fff}
#ri-header .ri-nav-links,#ri-header .ri-icons{display:flex;align-items:center;gap:22px;flex-shrink:0}
#ri-header .ri-nav-links>details>summary{font-weight:700;padding:10px 2px;white-space:nowrap}
#ri-header .ri-nav-links>details>summary span{color:#a8792d;font-size:19px;margin-left:4px}
#ri-header .ri-search{flex:1;min-width:160px;max-width:850px;margin:0 auto}
#ri-header #searchBar{float:none!important;display:block!important;width:100%!important;margin:0!important;padding:0!important;position:static!important}
#ri-header #searchForm{position:relative!important;display:flex!important;width:100%!important;margin:0!important;padding:0!important;height:48px!important;background:#f5f5f5;border:1px solid #dedede;border-radius:28px;overflow:hidden}
#ri-header #searchText{flex:1!important;width:100%!important;height:100%!important;min-width:0!important;padding:0 55px 0 20px!important;border:0!important;outline:none!important;background:transparent!important;color:#222!important;font:15px Arial,Helvetica,sans-serif!important;box-shadow:none!important;float:none!important}
#ri-header #searchForm input[type=submit]{position:absolute!important;right:0!important;top:0!important;width:50px!important;height:100%!important;border:0!important;border-radius:0!important;cursor:pointer;background-color:transparent!important;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23222222" stroke-width="2" stroke-linecap="round"%3E%3Ccircle cx="10.8" cy="10.8" r="6.8"/%3E%3Cpath d="m16 16 5 5"/%3E%3C/svg%3E')!important;background-position:center!important;background-repeat:no-repeat!important;float:none!important}
#ri-header .ri-icon{display:inline-flex;align-items:center;justify-content:center;width:38px;height:42px;position:relative}
#ri-header .ri-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#ri-header .ri-cart-count{position:absolute;top:0;right:-5px;min-width:18px;height:18px;border-radius:20px;background:#a8792d;color:white;text-align:center;font-size:11px;font-weight:bold;line-height:18px;padding:0 4px}
#ri-header .ri-mega{position:absolute;top:calc(100% + 10px);left:0;width:min(1080px,calc(100vw - 40px));max-height:min(70vh,650px);overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:27px;background:#fff;box-shadow:0 14px 40px #0003;border:1px solid #ddd;border-radius:12px;z-index:25}
#ri-header .ri-category-name{display:block;font-weight:700!important;color:#161616!important;border-bottom:2px solid #bd8d3e;padding-bottom:8px;margin-bottom:9px}
#ri-header .ri-category ul{margin:0!important;padding:0!important;list-style:none!important;display:block!important;position:static!important;background:transparent!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important}
#ri-header .ri-category li{display:block!important;margin:0!important;padding:0!important;float:none!important;width:auto!important;background:none!important;border:0!important}
#ri-header .ri-category li a{display:block!important;font-size:13px!important;line-height:1.5!important;height:auto!important;padding:5px 0!important;color:#444!important}
#ri-header .ri-site-menu-panel{position:absolute;top:calc(100% + 10px);left:0;width:300px;max-height:70vh;overflow:auto;background:#fff;border:1px solid #ddd;border-radius:12px;padding:12px;box-shadow:0 14px 40px #0003;z-index:26}
#ri-header .ri-site-menu-panel .Menu{position:static!important;display:block!important;width:100%!important;height:auto!important;float:none!important;background:none!important;border:0!important;box-shadow:none!important;overflow:visible!important;padding:0!important;margin:0!important}
#ri-header .ri-site-menu-panel .Menu>.close_icons898{display:none!important}
#ri-header .ri-site-menu-panel .Menu ul{position:static!important;display:block!important;width:100%!important;height:auto!important;max-width:none!important;float:none!important;background:#fff!important;box-shadow:none!important;list-style:none!important;padding:0!important;margin:0!important;border:0!important;opacity:1!important;visibility:visible!important;transform:none!important}
#ri-header .ri-site-menu-panel .Menu li{position:relative!important;display:block!important;width:100%!important;height:auto!important;float:none!important;line-height:normal!important;margin:0!important;padding:0!important;border:0!important;background:none!important}
#ri-header .ri-site-menu-panel .Menu li>a,#ri-header .ri-site-menu-panel .Menu li>form>input{display:block!important;width:100%!important;height:auto!important;text-align:left!important;font:14px Arial,Helvetica,sans-serif!important;color:#222!important;background:#fff!important;padding:11px 12px!important;border:0!important;cursor:pointer!important;line-height:1.4!important}
#ri-header .ri-site-menu-panel .Menu li>a:hover,#ri-header .ri-site-menu-panel .Menu li>form>input:hover{background:#f7f1e8!important;color:#8b641f!important}
#ri-header .ri-site-menu-panel .Menu li.has-sub>ul{padding-left:14px!important;background:#f8f8f8!important}
#ri-header .ri-site-menu-panel .Menu li.has-sub>ul a{font-size:13px!important;background:#f8f8f8!important}
#ri-header .ri-site-menu-panel .Menu li.has-sub>a:after{display:none!important}
#ri-header .ri-site-menu-panel .Menu form{margin:0!important}
@media(max-width:950px){#ri-header .ri-mega{grid-template-columns:repeat(3,minmax(0,1fr))}#ri-header .ri-navigation{gap:15px}#ri-header .ri-logo img{width:190px;height:55px}}
@media(max-width:700px){#ri-header .ri-promo{font-size:10px;padding:8px}#ri-header .ri-top{padding:10px 14px}#ri-header .ri-logo img{width:145px;height:43px}#ri-header .ri-logo{padding:4px 7px}#ri-header .ri-top-actions{gap:12px;font-size:13px}#ri-header .ri-navigation{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 14px 14px}#ri-header .ri-nav-links{grid-column:1;grid-row:1;gap:20px}#ri-header .ri-icons{grid-column:2;grid-row:1;gap:8px}#ri-header .ri-search{grid-column:1 / -1;grid-row:2;width:100%;max-width:none}#ri-header #searchForm{height:44px!important}#ri-header .ri-mega{width:calc(100vw - 28px);grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:17px;left:0;max-height:65vh}#ri-header .ri-site-menu-panel{width:min(300px,calc(100vw - 28px))}}
@media(max-width:420px){#ri-header .ri-mega{grid-template-columns:1fr}#ri-header .ri-top-actions{gap:8px}#ri-header .ri-logo img{width:125px}}

/* V3: proporzioni più compatte e ricerca a larghezza piena. */
#ri-header .ri-promo{padding:7px 14px;font-size:11px;letter-spacing:.035em}
#ri-header .ri-top{min-height:0;padding-top:7px;padding-bottom:7px}
#ri-header .ri-logo{padding:3px 9px;border-radius:4px}
#ri-header .ri-logo img{width:190px;height:48px}
#ri-header .ri-top-actions{gap:22px}
#ri-header .ri-translate>summary{padding:6px 9px;border-radius:6px}
#ri-header .ri-navigation{padding-top:9px;padding-bottom:9px;gap:30px}
#ri-header .ri-nav-links{gap:25px}
#ri-header .ri-search{flex:1 1 auto;min-width:0;max-width:none;margin:0 20px}
#ri-header div#searchBar{float:none!important;width:100%!important;max-width:none!important;min-width:0!important;display:block!important;position:relative!important;left:auto!important;right:auto!important}
#ri-header div#searchBar.Focus{width:100%!important;max-width:none!important;left:auto!important;right:auto!important;position:relative!important}
#ri-header #searchForm{height:46px!important;top:0!important;max-width:none!important}
#ri-header #searchText{font-weight:400!important}
#ri-header #searchForm input[type=submit]{display:block!important;background-size:21px!important}
#ri-header .ri-icons{gap:16px}
#ri-header .ri-icon{width:35px;height:38px}
#ri-header .ri-icon svg{width:23px;height:23px}
@media(max-width:950px){#ri-header .ri-logo img{width:170px;height:43px}#ri-header .ri-navigation{gap:15px}#ri-header .ri-search{margin:0 4px}}
@media(max-width:700px){#ri-header .ri-promo{padding:7px 10px}#ri-header .ri-top{padding:7px 14px}#ri-header .ri-logo img{width:142px;height:38px}#ri-header .ri-navigation{padding:9px 14px 12px}#ri-header .ri-search{width:100%;margin:0;min-width:0}#ri-header #searchForm{height:44px!important}}
@media(max-width:420px){#ri-header .ri-logo img{width:125px;height:34px}#ri-header .ri-top-actions{gap:9px}}

/* V4: marchio originale convertito in bianco/oro, senza riquadro; selettore con bandiera IT. */
#ri-header .ri-logo{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
#ri-header .ri-logo img{width:265px!important;height:auto!important;max-height:68px!important;object-fit:contain!important}
#ri-header .ri-top{padding-top:7px!important;padding-bottom:7px!important}
#ri-header .ri-translate>summary{gap:7px!important;padding:7px 10px!important;min-height:38px!important}
#ri-header .ri-flag-it{display:inline-block;width:25px;height:17px;flex:0 0 auto;border-radius:3px;background:linear-gradient(to right,#009246 0 33.333%,#fff 33.333% 66.666%,#ce2b37 66.666% 100%);box-shadow:0 0 0 1px #ffffff55}
#ri-header .ri-lang-label{font-size:13px;font-weight:700;color:#fff}
#ri-header .ri-lang-arrow{font-size:18px;line-height:1;color:#fff}
#ri-header #searchForm{background:#f7f7f7!important;border-color:#c9c9c9!important}
#ri-header #searchForm input[type=submit]{background-color:#bf8b2f!important;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round"%3E%3Ccircle cx="10.8" cy="10.8" r="6.8"/%3E%3Cpath d="m16 16 5 5"/%3E%3C/svg%3E')!important;background-size:24px!important}
#ri-header .ri-search{margin:0 15px!important}
@media(max-width:950px){#ri-header .ri-logo img{width:220px!important;max-height:56px!important}}
@media(max-width:700px){#ri-header .ri-logo img{width:165px!important;max-height:45px!important}#ri-header .ri-search{margin:0!important}#ri-header .ri-top-actions{gap:12px!important}}
@media(max-width:420px){#ri-header .ri-logo img{width:137px!important;max-height:39px!important}#ri-header .ri-translate>summary{padding:6px!important}#ri-header .ri-flag-it{width:21px;height:15px}#ri-header .ri-lang-label{font-size:11px}}


/* V5: logo compatto, recensioni centrali, ricerca centrata con storico e focus oro. */
#ri-header .ri-top{position:relative;min-height:68px!important;padding-top:6px!important;padding-bottom:6px!important}
#ri-header .ri-logo img{width:218px!important;max-height:54px!important;height:auto!important}
#ri-header .ri-reviews{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;gap:12px;color:#fff!important;font-size:15px;font-weight:700!important;white-space:nowrap}
#ri-header .ri-reviews-text{text-decoration:underline;text-underline-offset:3px}
#ri-header .ri-reviews-stars{color:#d49b24;font-size:19px;letter-spacing:1px;line-height:1}
#ri-header .ri-navigation{display:grid!important;grid-template-columns:minmax(170px,1fr) minmax(320px,2.8fr) minmax(110px,1fr);align-items:center;gap:22px!important}
#ri-header .ri-nav-links{justify-self:start}
#ri-header .ri-search{width:100%!important;max-width:1000px!important;margin:0!important;justify-self:center;position:relative;min-width:0;z-index:15}
#ri-header .ri-icons{justify-self:end}
#ri-header #searchForm{height:50px!important;background:#fff!important;border:1.5px solid #c9c9c9!important;border-radius:30px!important;transition:border-color .18s ease,box-shadow .18s ease;overflow:hidden!important}
#ri-header .ri-search:focus-within #searchForm,#ri-header .ri-search.ri-search-open #searchForm{border-color:#c99522!important;box-shadow:0 0 0 2px rgba(201,149,34,.17),0 0 17px rgba(201,149,34,.28)!important}
#ri-header #searchText{padding-left:22px!important;padding-right:65px!important;font-size:16px!important}
#ri-header #searchForm input[type=submit]{width:58px!important;background-color:#fff!important;background-image:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="25" height="25" viewBox="0 0 24 24" fill="none" stroke="%23191919" stroke-width="2" stroke-linecap="round"%3E%3Ccircle cx="10.8" cy="10.8" r="6.8"/%3E%3Cpath d="m16 16 5 5"/%3E%3C/svg%3E')!important}
#ri-header .ri-search-suggestions[hidden],#ri-header .ri-search-empty[hidden]{display:none!important}
#ri-header .ri-search-suggestions{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:100;background:#fff;border-radius:12px;border:1px solid #e7e1d6;border-bottom:4px solid #c99522;box-shadow:0 16px 35px rgba(0,0,0,.2);padding:20px 25px 16px;max-height:min(470px,65vh);overflow-y:auto;color:#171717}
#ri-header .ri-search-suggestions-title{font-weight:700;text-decoration:underline;text-decoration-color:#c99522;text-decoration-thickness:3px;text-underline-offset:4px;margin:0 0 14px;font-size:15px}
#ri-header .ri-search-history{list-style:none!important;padding:0!important;margin:0!important;max-height:310px;overflow-y:auto}
#ri-header .ri-search-history li{margin:0!important;padding:0!important;list-style:none!important}
#ri-header .ri-search-term{width:100%;display:block;text-align:left;border:0;background:transparent;padding:8px 3px;font-size:15px;line-height:1.4;color:#181818;cursor:pointer;font-family:inherit}
#ri-header .ri-search-term:hover,#ri-header .ri-search-term:focus-visible{background:#fff8e9;outline:0}
#ri-header .ri-search-empty{color:#666;padding:14px 0}
#ri-header .ri-search-suggestions-footer{display:flex;justify-content:center;padding-top:14px}
#ri-header #ri-clear-history{font:600 14px Arial,Helvetica,sans-serif;background:#fff;border:1px solid #999;border-radius:22px;padding:9px 19px;cursor:pointer;color:#222}
#ri-header #ri-clear-history:hover{border-color:#c99522;background:#fff9eb}
@media(max-width:1050px){#ri-header .ri-top{justify-content:space-between}#ri-header .ri-reviews{position:static;transform:none;font-size:12px;gap:6px}#ri-header .ri-reviews-stars{font-size:14px}#ri-header .ri-logo img{width:175px!important}#ri-header .ri-navigation{grid-template-columns:auto minmax(180px,1fr) auto;gap:14px!important}}
@media(max-width:700px){#ri-header .ri-top{min-height:0!important;display:grid;grid-template-columns:1fr auto;gap:6px 10px}#ri-header .ri-logo img{width:143px!important;max-height:43px!important}#ri-header .ri-reviews{position:static;grid-column:1/-1;grid-row:2;justify-self:center;transform:none;white-space:normal;text-align:center}#ri-header .ri-top-actions{grid-column:2;grid-row:1}#ri-header .ri-navigation{grid-template-columns:1fr auto!important;gap:10px!important}#ri-header .ri-nav-links{grid-column:1;grid-row:1}#ri-header .ri-icons{grid-column:2;grid-row:1}#ri-header .ri-search{grid-column:1/-1;grid-row:2;width:100%!important}#ri-header .ri-search-suggestions{padding:16px;max-height:55vh}#ri-header .ri-search-history{max-height:240px}}
@media(max-width:380px){#ri-header .ri-reviews{font-size:11px}#ri-header .ri-reviews-stars{font-size:12px}#ri-header .ri-logo img{width:123px!important}}


/* V6: un solo menu di suggerimenti, quello del catalogo (jQuery UI). */
#ri-header .ri-search{z-index:1010!important}
#ri-header .ri-search:focus-within #searchForm,
#ri-header .ri-search.ri-search-open #searchForm{border-color:#c99522!important;box-shadow:0 0 0 2px rgba(201,149,34,.17),0 0 17px rgba(201,149,34,.28)!important}
/* jQuery UI monta il menu fuori dall'header, in fondo al documento. */
body ul.ui-autocomplete.ri-catalog-results{
  box-sizing:border-box!important;
  right:auto!important;
  max-height:min(440px,60vh)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  background:#fff!important;
  border:1px solid #e6e0d5!important;
  border-bottom:4px solid #c99522!important;
  border-radius:0 0 14px 14px!important;
  box-shadow:0 18px 36px rgba(0,0,0,.18)!important;
  padding:10px 12px!important;
  z-index:10020!important;
  list-style:none!important;
}
body ul.ui-autocomplete.ri-catalog-results .ui-menu-item{list-style:none!important;margin:0!important;padding:0!important}
body ul.ui-autocomplete.ri-catalog-results .ui-menu-item a{display:block!important;padding:10px 12px!important;border-radius:7px!important;line-height:1.45!important;white-space:normal!important;color:#252525!important;text-decoration:none!important}
body ul.ui-autocomplete.ri-catalog-results .ui-menu-item a.ui-state-focus,
body ul.ui-autocomplete.ri-catalog-results .ui-menu-item a.ui-state-active,
body ul.ui-autocomplete.ri-catalog-results .ui-menu-item a:hover{background:#fff5df!important;color:#171717!important;border-color:#d6a444!important}
@media(max-width:700px){body ul.ui-autocomplete.ri-catalog-results{max-height:52vh!important;padding:7px!important}}

/* V7: account con nome e logout; layout mobile compatto e senza sovrapposizioni. */
#ri-header .ri-account{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:72px;max-width:135px;gap:0;line-height:1.15}
#ri-header .ri-account .ri-icon{height:31px;width:38px;flex-shrink:0}
#ri-header .ri-account-name{display:block;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:11px;font-weight:600;color:#242424}
#ri-header .ri-logout{margin:0;padding:0;line-height:1}
#ri-header .ri-logout button{background:none;border:0;padding:3px 5px;color:#946719;cursor:pointer;font:600 11px Arial,Helvetica,sans-serif;text-decoration:underline}
#ri-header .ri-logout button:hover{color:#614209}
#ri-header .ri-icons{align-items:center}
@media(max-width:700px){
  #ri-header .ri-promo{font-size:10px;line-height:1.3;padding:7px 9px}
  #ri-header .ri-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;align-items:center;gap:7px 8px!important;padding:9px 12px!important;min-height:0!important}
  #ri-header .ri-logo{grid-column:1;grid-row:1;min-width:0}
  #ri-header .ri-logo img{width:min(42vw,156px)!important;max-height:44px!important;height:auto!important}
  #ri-header .ri-top-actions{grid-column:2;grid-row:1;gap:10px!important;font-size:12px;justify-self:end}
  #ri-header .ri-top-actions>a{white-space:nowrap}
  #ri-header .ri-translate>summary{min-height:33px!important;padding:5px 7px!important}
  #ri-header .ri-reviews{grid-column:1/-1!important;grid-row:2!important;justify-self:center;position:static!important;transform:none!important;font-size:12px!important;gap:7px!important;white-space:normal}
  #ri-header .ri-reviews-stars{font-size:14px!important;white-space:nowrap}
  #ri-header .ri-navigation{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;gap:9px 8px!important;padding:9px 12px 12px!important}
  #ri-header .ri-nav-links{grid-column:1!important;grid-row:1!important;gap:18px!important;min-width:0}
  #ri-header .ri-nav-links>details>summary{font-size:14px!important;padding:8px 0!important}
  #ri-header .ri-icons{grid-column:2!important;grid-row:1!important;gap:12px!important;justify-self:end;align-items:center}
  #ri-header .ri-account{min-width:52px;max-width:100px}
  #ri-header .ri-account-name{max-width:96px;font-size:10px}
  #ri-header .ri-icon{width:32px;height:35px}
  #ri-header .ri-icon svg{width:23px;height:23px}
  #ri-header .ri-search{grid-column:1/-1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important}
  #ri-header #searchForm{height:44px!important}
  #ri-header .ri-mega{position:fixed!important;top:auto!important;left:12px!important;right:12px!important;width:calc(100vw - 24px)!important;max-height:60vh!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:16px!important}
  #ri-header .ri-site-menu-panel{left:0!important;width:min(310px,calc(100vw - 24px))!important;max-height:60vh!important}
}
@media(max-width:440px){
  #ri-header .ri-top-actions{gap:7px!important}
  #ri-header .ri-top-actions>a{font-size:11px}
  #ri-header .ri-logo img{width:min(39vw,140px)!important}
  #ri-header .ri-flag-it{width:20px;height:14px}
  #ri-header .ri-translate>summary{gap:4px!important}
  #ri-header .ri-reviews{font-size:11px!important}
  #ri-header .ri-reviews-stars{font-size:12px!important;letter-spacing:0}
  #ri-header .ri-nav-links{gap:13px!important}
  #ri-header .ri-icons{gap:8px!important}
  #ri-header .ri-account{max-width:74px;min-width:46px}
  #ri-header .ri-account-name{max-width:72px}
  #ri-header .ri-mega{grid-template-columns:1fr!important}
}
