/* Brand pages, shared home palette */
html body .detail .c78-brand-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,1.4vw,16px);width:100%;margin:12px auto 24px}
html body .detail .c78-brand-tile{position:relative;overflow:hidden;isolation:isolate;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;aspect-ratio:1;text-align:center;padding:clamp(8px,1.4vw,18px);background:#EDF0F3!important;border:1px solid #D5DAE0;border-radius:17px;color:#161616!important;text-decoration:none!important;font-size:clamp(14px,1.7vw,22px);font-weight:700;line-height:1.2;overflow-wrap:anywhere;box-shadow:0 3px 9px #202d4010;transition:transform .2s,box-shadow .2s;min-width:0}
.c78-brand-tile img{width:65%;height:50%;object-fit:contain;display:block}
html body .detail .c78-brand-page{grid-column:1/-1;display:block;width:100%;min-width:0}
html body .detail .c78-brand-page .catalog-products{display:block;width:100%;padding:0;background:transparent!important;box-sizing:border-box}
html body .detail .c78-brand-back{display:inline-block;margin:12px 0 22px;padding:12px 16px;border:1px solid #D5DAE0;border-radius:10px;background:#F8F9FB;color:#161616;text-decoration:none}
.c78-brand-crumb{font-size:14px;color:#414852;margin-bottom:12px;text-align:center}.c78-brand-crumb a{color:#161616!important}
html body .detail .c78-brand-page .catalog-product{scroll-margin-top:110px}
html body .detail .c78-brand-tile:focus-visible, .c78-brand-back:focus-visible{outline:2px solid #64748b;outline-offset:3px}
@media(max-width:999px){html body .detail .c78-brand-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(hover:hover) and (pointer:fine){html body .detail .c78-brand-tile:hover{transform:translateY(-3px);box-shadow:0 7px 17px #202d4018}}
@media(prefers-reduced-motion:reduce){html body .detail .c78-brand-tile{transition:none!important;transform:none!important}}

html body .detail .c78-brand-tile img.c78-device-brand-logo{width:88%;height:65%;object-fit:contain;display:block;flex:0 1 65%;min-height:0;max-width:100%;margin:0 auto;}

html body .detail .c78-brand-tile img.c78-device-brand-logo{width:88%;height:88%;flex:0 1 88%;object-fit:contain;margin:auto;}

/* Sollevamento delle marche in tutte le categorie, come in home. */
html body .detail .c78-brand-tile {cursor:pointer;transition:transform .22s ease,box-shadow .22s ease!important;}
@media (any-hover:hover) {
 html body .detail .c78-brand-tile:hover,
 html body main .detail .bn-brands > a:hover,
 html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]) > details:not([open]) > summary:hover {
  transform:translateY(-7px)!important;
  box-shadow:0 14px 26px #07173726!important;
 }
}
@media (prefers-reduced-motion:reduce) {
 html body .detail .c78-brand-tile {transition:none!important;}
 html body .detail .c78-brand-tile:hover,
 html body main .detail .bn-brands > a:hover,
 html body main .detail :is(.parts-reference,.pod-brands,[data-catalog-container]) > details:not([open]) > summary:hover {transform:none!important;transition:none!important;}
}

html body .detail .c78-brand-tile img.c78-category-brand-logo{width:94%;height:88%;object-fit:contain;display:block;flex:0 1 88%;min-height:0;max-width:100%;margin:0 auto;}

/* Centra solo la prima riga incompleta, senza alterare la misura dei quadrati. */
@media (min-width:1000px){
 html body .detail .c78-brand-grid{grid-template-columns:repeat(8,minmax(0,1fr));}
 html body .detail .c78-brand-grid > .c78-brand-tile{grid-column:span 2;}
 html body .detail .c78-brand-grid > .c78-brand-tile:first-child:nth-last-child(1){grid-column:4 / span 2;}
 html body .detail .c78-brand-grid > .c78-brand-tile:first-child:nth-last-child(2){grid-column:3 / span 2;}
 html body .detail .c78-brand-grid > .c78-brand-tile:first-child:nth-last-child(3){grid-column:2 / span 2;}
}
@media (max-width:999px){
 html body .detail .c78-brand-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 html body .detail .c78-brand-grid > .c78-brand-tile{grid-column:span 2;}
 html body .detail .c78-brand-grid > .c78-brand-tile:only-child{grid-column:2 / span 2;}
}

/* Dispositivi: griglia prodotti, prezzo esterno e animazioni condivise con le marche. */
html body .detail .c78-device-product-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:clamp(8px,1.4vw,16px);width:100%;margin:12px auto 24px;align-items:start}
html body .detail .c78-device-product{grid-column:span 2;min-width:0;margin:0;padding:0;scroll-margin-top:110px}
html body .detail .c78-device-product-tile{width:100%;padding:clamp(6px,1vw,12px);gap:5px;justify-content:center;container-type:inline-size}
html body .detail .c78-device-product-tile img{width:90%;height:65%;min-height:0;flex:0 1 65%;object-fit:contain;display:block;margin:0 auto}
html body .detail .c78-device-product-name{font-size:clamp(11px,1.1vw,15px);line-height:1.15;overflow-wrap:anywhere;max-width:100%;min-height:0}
html body .detail .c78-device-product-price{margin:6px 0 0;text-align:center;font-size:19px;line-height:1.3;font-weight:700;color:#161616}
@media(min-width:1000px){
 html body .detail .c78-device-product-grid{grid-template-columns:repeat(8,minmax(0,1fr));}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(1){grid-column:4 / span 2;}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(2){grid-column:3 / span 2;}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(3){grid-column:2 / span 2;}
}
@media(min-width:701px) and (max-width:999px){
 html body .detail .c78-device-product-grid{grid-template-columns:repeat(8,minmax(0,1fr));}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(1){grid-column:4 / span 2;}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(2){grid-column:3 / span 2;}
 html body .detail .c78-device-product-grid > .c78-device-product:first-child:nth-last-child(3){grid-column:2 / span 2;}
}
@media(max-width:700px){
 html body .detail .c78-device-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
 html body .detail .c78-device-product-grid > .c78-device-product:only-child{grid-column:2 / span 2;}
 html body .detail .c78-device-product-name{font-size:clamp(11px,3.3vw,15px)}
}
html body .detail .c78-device-product-name{flex:0 0 auto;font-size:clamp(10px,9cqi,15px)}

/* Intestazione pagine marca: nasconde solo il percorso, conserva il sottotitolo. */
html body .detail .c78-category-heading > .c78-brand-crumb{display:none!important;}
