
/* --- static-restore adjustments --- */
.slideshow{position:relative}
.slideshow .slideshow-item{display:none}
.slideshow .slideshow-item.rb-active{display:block}
.inert{cursor:default}
a.item-buy,span.item-buy,span.newsletter-button,span.btn-search-top,span.btn-submit{opacity:.85}
.rb-menu-btn{display:none}
#search form input{font-size:16px}
@media screen and (max-width:1000px){
  .rb-menu-btn{display:block;position:absolute;top:14px;right:14px;z-index:60;width:46px;height:46px;
    background:#fff;border:1px solid #d5d5d5;border-radius:4px;cursor:pointer;padding:11px 10px}
  .rb-menu-btn span{display:block;height:2px;background:#333;margin:4px 0;border-radius:2px}
  .inner-header{position:relative}
  .nav-sublist-header.rb-open .nav-generic{display:block;position:absolute;left:0;right:0;top:64px;
    background:#fff;border:1px solid #d5d5d5;box-shadow:0 6px 22px rgba(0,0,0,.16);z-index:55;padding:6px 0}
  .nav-sublist-header.rb-open .nav-generic ul{display:block;margin:0;padding:0}
  .nav-sublist-header.rb-open .nav-generic li{display:block;float:none;width:100%;border-bottom:1px solid #eee}
  .nav-sublist-header.rb-open .nav-generic li a{display:block;padding:14px 18px;font-size:16px;line-height:20px;color:#222}
  #top .top-left .nav-main-categories li a{display:block;padding:12px 10px;font-size:16px;line-height:20px}
  body{font-size:16px}
  .briciole a,.briciole span{font-size:14px}
}
@media screen and (max-width:767px){
  html,body{overflow-x:clip}
  .item-buy,.button-buy{min-height:44px;line-height:44px}
}

/* --- restore layout repair --- */
.help .need-help{width:100%!important;float:none!important;box-sizing:border-box}
.help{overflow:hidden}
.slideshow-item .slideshow-text,.slideshow .text,.slideshow-item h2,.slideshow-item .caption{
  text-shadow:0 2px 10px rgba(0,0,0,.65),0 1px 3px rgba(0,0,0,.9)}
.slideshow-item a>span,.slideshow-item .box-text{background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,.45) 100%)}
.category{position:relative}
.category::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 40%,rgba(0,0,0,.45) 100%);pointer-events:none;z-index:0}
.category{z-index:0}
/* legibility / mobile-first */
body,.inner-middle p,.inner-middle li,.item-buy-price,.price{font-size:16px}
.briciole a,.briciole span,.footer small,footer li,footer a{font-size:14px}
@media screen and (max-width:767px){
  body,.inner-middle p,.inner-middle li,.content p,.content li,td{font-size:16px;line-height:1.55}
  .nav-main-categories li a,.nav-generic li a,footer nav a{min-height:44px;display:block;font-size:16px}
  .category{font-size:15px;line-height:1.2;padding:8px;word-break:break-word;overflow:hidden}
  .box-categoria,.categorie a{width:50%;box-sizing:border-box}
}

.category{color:#fff}
.category>*{position:relative;z-index:1}

.banner .slideshow-item:first-child:not(.rb-active){display:none}
.banner .slideshow-item.rb-active{display:block}

/* --- product cards: image tier is unrecoverable, keep cards as text tiles --- */
.items-list{display:flex;flex-wrap:wrap;gap:16px;align-items:stretch;float:none}
.items-list .item-buy-wrapper{position:relative!important;float:none!important;
  width:calc(33.333% - 11px);min-width:210px;box-sizing:border-box;border:1px solid #e2e2e2;
  padding:16px;background:#fff;display:flex;flex-direction:column;justify-content:space-between;
  min-height:160px;height:auto!important;margin:0!important;left:auto!important;top:auto!important}
.items-list .item-buy-wrapper .item-details,
.items-list .item-buy-wrapper .item-details-name,
.items-list .item-buy-wrapper .item-name{position:static!important;width:auto!important;
  height:auto!important;left:auto!important;top:auto!important;float:none!important;margin:0!important;padding:0!important}
.items-list .item-buy-name{display:block;font-size:16px;line-height:1.35;font-weight:700;
  color:#1c1c1c;text-decoration:none;padding:6px 0;min-height:44px;width:auto}
.items-list .item-buy-name:hover{text-decoration:underline}
.items-list .item-price{display:block;width:auto!important;margin-top:6px;text-decoration:none}
.items-list .item-buy-price{font-size:20px;font-weight:700;color:#111}
.items-list .item-buy.button-buy{display:inline-block;margin-top:12px;min-height:44px;line-height:44px;
  padding:0 18px;background:#38c6c6;color:#fff;text-align:center;font-size:15px;align-self:flex-start}
.items-list .block-sale-new{position:absolute;top:10px;right:10px;z-index:2}
@media screen and (max-width:900px){.items-list .item-buy-wrapper{width:calc(50% - 8px)}}
@media screen and (max-width:600px){.items-list .item-buy-wrapper{width:100%;min-width:0}}

/* --- product detail: photo tier unrecoverable -> single column --- */
#item.item-buy-wrapper .item-details{width:100%!important;float:none!important;margin-left:0!important;padding-left:0!important}
#item.item-buy-wrapper{min-height:0!important;height:auto!important;display:block}
.descrizione-prodotto .tab-wrapper{display:block}
.descrizione-prodotto [data-tab-rif]{display:inline-block;padding:12px 18px;min-height:44px;box-sizing:border-box;
  cursor:pointer;border:1px solid #ddd;border-bottom:none;background:#f6f6f6;font-weight:700;font-size:15px;margin-right:4px}
.descrizione-prodotto [data-tab-rif].rb-tab-on{background:#fff;border-bottom:1px solid #fff}
.descrizione-prodotto [data-tab]{display:none;border:1px solid #ddd;padding:18px;background:#fff}
.descrizione-prodotto [data-tab].rb-tab-on{display:block}
.descrizione-prodotto [data-tab] p{font-size:16px;line-height:1.6}

/* --- card buy control is dead on a static restore: drop it from listings --- */
.items-list .item-buy.button-buy{display:none!important}
.items-list .item-buy-name{padding-right:52px}
.items-list .block-sale-new{top:12px;right:12px}
/* search row must not collide with the breadcrumb on small screens */
#search,.search-top{position:relative;box-sizing:border-box}
@media screen and (max-width:900px){
  #search form,.search-top form{display:flex;width:100%;box-sizing:border-box}
  #search input[type=text],.search-top input[type=text]{flex:1;min-width:0;font-size:16px;height:44px;box-sizing:border-box}
  #search .btn-search-top,#search span.btn-search-top,.search-top .btn-search-top{position:static!important;flex:0 0 auto;height:44px;line-height:44px;padding:0 14px}
  .briciole{clear:both;margin-top:8px}
}

/* --- product buy row: keep the inert control from overlapping its clearfix --- */
#item .item-acquista{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
#item .item-acquista .item-input-quantita{position:static!important;float:none!important;width:56px;height:52px;
  box-sizing:border-box;text-align:center;font-size:16px;margin:0}
#item .item-acquista .item-buy{position:static!important;float:none!important;display:inline-flex;
  align-items:center;min-height:52px;margin:0}
#item .item-acquista .clear{flex:0 0 100%;height:0;clear:both}


/* accessibility: base palette recolored in source CSS (teal #248280, grey #757575) */
.slideshow-item .leggi,.slideshow-item a span{background:#248280;color:#fff}

/* --- measured contrast fixes (WCAG AA 4.5:1) --- */
.briciole a,.briciole a.home{color:#5f5f5f!important}
.briciole span{color:#4a4a4a!important}
.briciole>span:not(:last-child),.briciole .sep{color:#6b6b6b!important}
.newsletter-box h4,.newsletter-box label,footer .newsletter h4{color:#7fd8d5!important}
.inert,span.inert,.btn-submit.inert,.show.inert{color:#5f5f5f!important}
.html p,.descrizione p,.content p{color:#3d3d3d}
nav a,.nav-generic a,.nav-main-categories a,#top a,header a{color:#4a4a4a}
nav a.selected,.nav-generic a.selected{color:#1b6b69}
.slideshow-item a,.index-banner-inner a,.index-banner-inner a.leggi{color:#fff!important}
h1,h2,h3,h4{color:inherit}
.index-banner-inner h1,.index-banner-inner h3,.index-banner-inner span,
.block-3 h1,.block-3 h3,[class*="chiaro"] h1,[class*="chiaro"] h3,[class*="chiaro"] span,[class*="chiaro"] p{color:#fff!important}
.newsletter-button,.newsletter-button.submit-form,span.newsletter-button{color:#fff!important;background:#0b5f5d!important;min-height:44px;line-height:44px;padding:0 16px;font-size:15px}
.inner.infoline a,.infoline a,.infoline span{color:#454545!important}
#item .item-buy,span.item-buy,.item-buy.inert{color:#fff!important;background:#0b5f5d!important;font-size:14px;padding:0 18px}

/* --- .help was absolutely positioned against a block that no longer exists --- */
.help{position:static!important;display:block!important;clear:both;overflow:hidden;margin:24px 0}
.help .need-help{width:100%!important;box-sizing:border-box;padding:24px 18px}
.blog-section{clear:both;position:relative}
@media screen and (max-width:767px){
  .category{font-size:15px!important;line-height:1.2!important;display:flex!important;
    align-items:flex-end;padding:10px!important;word-break:break-word;overflow:hidden;box-sizing:border-box}
  .help .need-help{font-size:18px!important;padding:20px 16px}
  .help .need-help h4{font-size:20px!important}
  .blog-section{padding:0 4px}
}
