/* Ciclobottega – pagina Ruote custom (si appoggia allo stile blueprint di ricellaggio.css). */
.rw .s-wire--thin { stroke: #bfe4ff; stroke-width: 1.4; }
.rw .rcl-todo { font-size: .8em; }
.rw-ph { display: grid; place-items: center; width: 100%; height: 100%; min-height: 140px; border: 1px dashed #d4a017; background: #fff8e1; color: #7a4b00; font-weight: 700; border-radius: 10px; }

/* Configuratore */
.rw-conf__ui { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); margin-top: 2rem; align-items: start; }
.rw-conf__view { position: sticky; top: calc(var(--cb-header-h) + 1rem); background: var(--bp, #071a2f) radial-gradient(ellipse at 50% 45%, rgba(143, 208, 255, .18), transparent 70%); border-radius: 22px; aspect-ratio: 1; overflow: hidden; }
.rw-conf__canvas { position: absolute; inset: 0; }
.rw-conf__canvas canvas { display: block; }
.rw-conf__fallback { position: absolute; inset: 8%; display: grid; place-items: center; transition: opacity .4s; }
.rw-conf.is-3d .rw-conf__fallback, [data-rw-conf].is-3d .rw-conf__fallback { opacity: 0; pointer-events: none; }
.rw-conf__disc { position: absolute; left: 0; right: 0; bottom: .6rem; margin: 0; text-align: center; font-size: .75rem; color: #8fb3d6; }
.rw-wheel2d { width: 100%; height: 100%; }
.w-tire { fill: none; stroke: #15171a; stroke-width: 20; }
.w-rim { fill: none; stroke: var(--rim); stroke-width: 9; transition: stroke .3s; }
.w-spokes line { stroke: var(--spk); stroke-width: 1.4; transition: stroke .3s; }
.w-hub { fill: var(--hub); stroke: #0b0d11; stroke-width: 2; transition: fill .3s; }
.w-axle { fill: #c9ced6; }
.rw-conf__form { display: grid; gap: 1.1rem; }
.rw-conf__form fieldset { border: 0; padding: 0; margin: 0; }
.rw-conf__form legend { font-weight: 800; margin-bottom: .55rem; }
.rw-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.rw-chip { position: relative; }
.rw-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rw-chip span, .rw-chip--btn { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--cb-line); border-radius: 999px; font-weight: 700; font-size: .9rem; background: #fff; cursor: pointer; }
.rw-chip input:checked + span, .rw-chip--btn[aria-selected="true"] { background: var(--cb-ink); color: #fff; border-color: var(--cb-ink); }
.rw-chip--btn span { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.rw-chip input:focus-visible + span { outline: 3px solid var(--cb-orange); outline-offset: 2px; }
.rw-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.rw-sw { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem .35rem .4rem; border: 1px solid var(--cb-line); border-radius: 999px; background: #fff; font-size: .85rem; font-weight: 600; cursor: pointer; }
.rw-sw::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.rw-sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rw-sw:has(input:checked) { border-color: var(--cb-ink); box-shadow: 0 0 0 2px var(--cb-ink); }
.rw-sw:has(input:focus-visible) { outline: 3px solid var(--cb-orange); }
.rw-summary { background: var(--cb-sand); border-radius: 14px; padding: .9rem 1rem; }
.rw-summary p { margin: .3rem 0 0; font-size: .92rem; }
.rw-chip--btn[aria-pressed="true"] { background: var(--cb-ink); color: #fff; border-color: var(--cb-ink); }

/* Configuratore a passi */
.rw-conf__form fieldset[hidden] { display: none; }
.rw-conf__form legend { display: flex; align-items: center; gap: .5rem; }
.rw-step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--cb-orange); color: #fff; font-size: .8rem; font-weight: 800; flex: none; }
.rw-chips--sub { margin-top: .5rem; }
.rw-chips--sub .rw-chip span { padding: .35rem .75rem; font-size: .82rem; font-weight: 600; }
.rw-chips:empty, .rw-opts:empty { display: none; }
.rw-opts { display: grid; gap: .45rem; }
.rw-opts--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rw-opt { position: relative; display: block; cursor: pointer; }
.rw-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rw-opt > span { display: grid; gap: .15rem; padding: .65rem .85rem; border: 1px solid var(--cb-line); border-radius: 12px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.rw-opt strong { font-size: .92rem; }
.rw-opt small { color: #5b6270; font-size: .8rem; line-height: 1.35; }
.rw-opt input:checked + span { border-color: var(--cb-ink); box-shadow: 0 0 0 2px var(--cb-ink); }
.rw-opt input:focus-visible + span { outline: 3px solid var(--cb-orange); outline-offset: 2px; }
.rw-conf__form .rcl-note { margin: .45rem 0 0; }
.rw-conf__warn { margin: 0; padding: .75rem 1rem; border-radius: 12px; background: #fff4e6; border: 1px solid #ffc078; font-size: .9rem; }
.rw-conf__form [data-rw-use]:disabled { opacity: .45; cursor: not-allowed; }

/* Cerchi divisi per materiale */
.rw-matsel { margin: .5rem 0 1.25rem; }
.rw-matgroup + .rw-matgroup { margin-top: 1.75rem; }
.rw-matgroup__t { margin: 0 0 .75rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; }
.rw-matgroup[hidden] { display: none; }

/* Raggi */
.rw-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.rw-compare__item { margin: 0; background: var(--bp, #071a2f); color: #e8f3ff; border-radius: 18px; padding: 1.25rem; }
.rw-compare__item svg { width: 100%; height: auto; }
.rw-compare__item figcaption { margin-top: .75rem; color: #b9d8f5; font-size: .95rem; }
.rw-compare__item strong { color: #fff; display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.f-flange { fill: #3a1708; stroke: #ff7a3d; stroke-width: 2; }
.f-hole { fill: #071a2f; stroke: #ff7a3d; stroke-width: 1.5; }
.f-spoke { fill: none; stroke: #bfe4ff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; }
.rw-anim.is-on .f-spoke { animation: rw-draw 1.4s cubic-bezier(.2, .7, .2, 1) forwards; }
.rw-straight.is-on .f-spoke { animation-delay: .25s; }
@keyframes rw-draw { to { stroke-dashoffset: 0; } }
.rw-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.rw-types article { background: #fff; border: 1px solid var(--cb-line); border-radius: 16px; padding: 1.2rem; }
.rw-types svg { width: 100%; height: 50px; }
.f-spoke-fill { fill: #13406e; }
.rw-types h3 { font-size: 1.05rem; margin: .5rem 0 .3rem; }
.rw-types p { margin: 0; color: var(--cb-muted); font-size: .92rem; }

/* Mozzi */
.rw-std { margin-top: 2rem; background: var(--bp, #071a2f); color: #e8f3ff; border-radius: 20px; padding: clamp(1rem, 3vw, 1.75rem); }
.rw-std__tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.rw-std__tabs button { font: 800 .9rem var(--cb-font); padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgba(143, 208, 255, .35); background: transparent; color: #e8f3ff; cursor: pointer; }
.rw-std__tabs button[aria-selected="true"] { background: var(--cb-orange); border-color: var(--cb-orange); }
.rw-std__svg { width: 100%; height: auto; margin-top: 1rem; }
.f-drop { fill: #2b313b; stroke: #8fd0ff; }
.f-hubbody { fill: #3a1708; stroke: #ff7a3d; stroke-width: 2; }
.f-axle { fill: #c9ced6; }
.f-dimtxt { fill: #9fd3ff; font: 700 14px var(--cb-font); }
.rw-std__desc { margin: .5rem 0 0; color: #b9d8f5; }
.rw-brakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.rw-brakes article { border: 1px solid var(--cb-line); border-radius: 16px; padding: 1.2rem; }
.rw-brakes svg { width: 64px; height: 64px; }
.f-ring { fill: #e8eef5; stroke: #13406e; stroke-width: 3; }
.f-ring--off { stroke-dasharray: 6 5; fill: none; }
.f-bolt { fill: #ec4913; }
.f-spline { fill: none; stroke: #ec4913; stroke-width: 5; stroke-dasharray: 3 3; }
.rw-brakes h3 { font-size: 1.05rem; margin: .5rem 0 .3rem; }
.rw-brakes p { margin: 0; color: var(--cb-muted); font-size: .92rem; }

/* Prodotti BOONE */
.rw-sub { margin: 2.5rem 0 1rem; font-size: 1.25rem; }
.rw-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.rw-product { background: #fff; border: 1px solid var(--cb-line); border-radius: 16px; padding: 1rem; display: flex; flex-direction: column; }
.rw-product[hidden] { display: none; }
.rw-product__img { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; background: #fff; border-radius: 10px; overflow: hidden; }
.rw-product__img img { width: 100%; height: 100%; object-fit: contain; }
.rw-product__sec { position: absolute; right: 6px; bottom: 6px; width: 38%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--cb-line); background: #fff; }
.rw-product h4 { font-size: 1rem; margin: .75rem 0 .5rem; }
.rw-product dl { margin: 0; display: grid; gap: .25rem; font-size: .85rem; }
.rw-product dl div { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px dashed var(--cb-line); padding-bottom: .2rem; }
.rw-product dt { color: var(--cb-muted); }
.rw-product dd { margin: 0; font-weight: 700; text-align: right; }
.rw-product__use { margin: .6rem 0 0; font-size: .82rem; color: var(--cb-muted); }

/* Cerchi */
.rw-rimsel__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; margin-top: 1.5rem; align-items: center; }
.rw-section { margin: 0; background: var(--bp, #071a2f); border-radius: 18px; padding: 1rem; }
.rw-section svg { width: 100%; height: auto; }
.rw-section figcaption { color: #8fb3d6; font-size: .8rem; text-align: center; }
.f-profile { fill: rgba(19, 64, 110, .7); stroke: #8fd0ff; stroke-width: 2; }
.rw-bars { margin: 0; display: grid; gap: .8rem; }
.rw-bars dt { font-weight: 700; font-size: .9rem; margin-bottom: .3rem; }
.rw-bars dd { margin: 0; height: 10px; border-radius: 6px; background: var(--cb-line); overflow: hidden; }
.rw-bars dd span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #0b5cad, var(--cb-orange)); transition: width .5s cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 900px) {
	.rw-conf__ui, .rw-rimsel__body, .rw-compare { grid-template-columns: 1fr; }
	.rw-conf__view { position: relative; top: 0; max-width: 420px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .f-spoke { stroke-dashoffset: 0; animation: none !important; } .rw-bars dd span { transition: none; } }
