/* FILE: assets/renuwo-b2b.css — restyling portale B2B Renuwo (caricato DOPO renuwo.css e catalog-responsive.css). */
:root {
    --rw-green: #33e6a3; --rw-green-600: #14c489; --rw-green-700: #0b8a60; --rw-mint-50: #ecfdf6; --rw-mint-100: #d4f8e8;
    --rw-deep: #0c3a2c; --rw-deeper: #081a13; --rw-ink: #151a2d; --rw-text: #3c4256; --rw-muted: #5f6b7a;
    --rw-line: #dde5ea; --rw-bg: #eef5fa; --rw-card: #fff; --rw-radius: 14px;
    --rw-shadow: 0 10px 30px -14px rgba(8, 26, 19, .28);
    --rw-font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
body.rw { font-family: var(--rw-font); color: var(--rw-text); background: var(--rw-bg); font-size: 16px; line-height: 1.55; margin: 0; }
body.rw main { min-height: 50vh; }
body.rw h1, body.rw h2, body.rw h3, body.rw h4 { color: var(--rw-ink); text-transform: none; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
body.rw a { color: inherit; }
.rw-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.rw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rw a:focus-visible, .rw button:focus-visible, .rw input:focus-visible, .rw select:focus-visible, .rw summary:focus-visible { outline: 3px solid #0b8a60; outline-offset: 2px; }

/* Pulsanti */
.rw-btn, .rw-btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem; border-radius: 999px; font: 700 1rem/1.2 var(--rw-font); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; box-sizing: border-box; }
.rw-btn { background: var(--rw-green); color: var(--rw-deeper) !important; box-shadow: 0 6px 16px -8px rgba(20, 196, 137, .8); }
.rw-btn:hover { background: #4df0b3; transform: translateY(-1px); }
.rw-btn[disabled], .rw-btn.is-disabled { background: #e3e8ec; color: #8a96a3 !important; box-shadow: none; cursor: not-allowed; transform: none; }
.rw-btn-outline { background: #fff; color: var(--rw-ink) !important; border-color: var(--rw-ink); }
.rw-btn-outline:hover { background: var(--rw-mint-50); }
.rw-btn-sm { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }
.rw-btn-block { width: 100%; }
.rw-btn-light { border-color: #fff; background: transparent; color: #fff !important; }
.rw-btn-light:hover { background: rgba(255, 255, 255, .12); }
.rw-icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Header */
.rw-header { background: #fff; border-bottom: 1px solid var(--rw-line); position: sticky; top: 0; z-index: 60; }
.rw-header .rw-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.rw-logo img { display: block; height: 52px; width: auto; }
.rw-nav { display: flex; gap: 1.6rem; margin-left: 1rem; flex: 1; }
.rw-nav a { text-decoration: none; font-weight: 600; color: var(--rw-ink); padding: .4rem 0; border-bottom: 3px solid transparent; }
.rw-nav a:hover, .rw-nav a.is-active { border-color: var(--rw-green); }
.rw-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.rw-user { font-weight: 600; font-size: .92rem; color: var(--rw-muted) !important; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-cart { position: relative; padding-left: 1rem; padding-right: 1rem; }
.rw-cart b { background: var(--rw-green); color: var(--rw-deeper); min-width: 22px; height: 22px; border-radius: 99px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 5px; }
.rw-burger { display: none; }
.rw-mobile-nav { display: none; }

/* Barra punti */
.rw-points { background: var(--rw-deeper); color: #fff; }
.rw-points .rw-wrap { display: flex; align-items: center; gap: 1.2rem; min-height: 50px; font-size: .92rem; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.rw-points a { text-decoration: none; color: #fff; }
.rw-points b { color: var(--rw-green); }
.rw-points .rw-lvl { background: rgba(255, 255, 255, .16); border-radius: 99px; padding: .15rem .75rem; font-weight: 700; font-size: .8rem; }
.rw-points .rw-points-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.rw-points .rw-btn { min-height: 34px; padding: .3rem 1rem; font-size: .88rem; }
.rw-points-prog { width: 110px; height: 6px; background: rgba(255, 255, 255, .2); border-radius: 99px; overflow: hidden; }
.rw-points-prog span { display: block; height: 100%; background: var(--rw-green); }

/* Hero */
.rw-hero { margin: 18px auto; background: linear-gradient(135deg, #f3f8fb, #e5eef4); border-radius: 22px; overflow: hidden; }
.rw-hero .rw-wrap { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.rw-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1.02; }
.rw-hero h1 em { font-style: normal; color: var(--rw-green-600); display: block; }
.rw-hero p { font-size: 1.12rem; max-width: 34rem; margin: 1.2rem 0 1.6rem; color: var(--rw-ink); }
.rw-hero-cta { display: flex; flex-direction: column; gap: .8rem; max-width: 22rem; }
.rw-hero-img { display: flex; justify-content: center; }
.rw-hero-img img { width: 100%; max-width: 560px; height: auto; display: block; }

/* Servizi */
.rw-services { background: #fff; border-radius: var(--rw-radius); box-shadow: var(--rw-shadow); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 2.5rem; }
.rw-service { display: flex; align-items: center; gap: 1rem; padding: 1.3rem 1.6rem; }
.rw-service + .rw-service { border-left: 1px solid var(--rw-line); }
.rw-service img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.rw-service h3 { font-size: 1.15rem; margin-bottom: .15rem; }
.rw-service p { margin: 0; font-size: .95rem; }

/* Sezioni */
.rw-section { padding: 1rem 0 2.2rem; }
.rw-section-head { margin-bottom: 1.4rem; }
.rw-section-head h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; }
.rw-section-head p { margin: .4rem 0 0; font-size: 1.05rem; }
.rw-promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.rw-card { background: #fff; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); box-shadow: var(--rw-shadow); padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; position: relative; }
.rw-badge { display: inline-block; background: var(--rw-mint-100); color: var(--rw-green-700); font-weight: 700; font-size: .85rem; padding: .2rem .8rem; border-radius: 99px; width: fit-content; }
.rw-badge-off { background: #e8ecef; color: #5b6672; }
.rw-card-img { display: grid; place-items: center; height: 190px; margin: .4rem 0; }
.rw-card-img img { max-width: 100%; max-height: 190px; object-fit: contain; }
.rw-card h3 { font-size: 1.15rem; font-weight: 800; }
.rw-card h3 a { text-decoration: none; }
.rw-card .rw-config { font-size: .93rem; margin: 0; color: var(--rw-text); }
.rw-price { font-size: 1.55rem; font-weight: 800; color: var(--rw-ink); }
.rw-price small { font-size: .85rem; font-weight: 500; color: var(--rw-muted); margin-left: .25rem; }
.rw-strike { text-decoration: line-through; color: var(--rw-muted); font-size: .95rem; margin-left: .4rem; font-weight: 500; }
.rw-stock { font-size: .9rem; color: var(--rw-muted); margin: 0; }
.rw-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.2rem 0 2rem; }
.rw-why > div { background: #fff; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); padding: 1.1rem 1.2rem; display: flex; gap: .9rem; }
.rw-why .rw-icon { width: 42px; height: 42px; color: var(--rw-green-700); }
.rw-why h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.rw-why p { margin: 0; font-size: .9rem; }
.rw-cta { background: linear-gradient(135deg, var(--rw-deep), #0a2a20); color: #fff; border-radius: 20px; padding: 2rem 2.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.rw-cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.rw-cta p { margin: .4rem 0 0; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.rw-cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Footer */
.rw-footer { background: #fff; border-top: 1px solid var(--rw-line); margin-top: 2rem; }
.rw-footer .rw-wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; padding-top: 1.4rem; padding-bottom: 1.4rem; }
.rw-footer img { height: 44px; width: auto; }
.rw-footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; flex: 1; }
.rw-footer nav a { text-decoration: none; font-weight: 500; font-size: .93rem; }
.rw-footer small { color: var(--rw-muted); }

/* Pagine */
.rw-page { padding-top: 2rem; padding-bottom: 3rem; }
.rw-page h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
.rw-sub { margin: .4rem 0 1.4rem; font-size: 1.05rem; color: var(--rw-muted); }
.rw-panel { background: #fff; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); box-shadow: var(--rw-shadow); padding: 1.4rem; }
.rw-panel h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.rw-alert { border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1rem; font-weight: 600; background: #fdecec; color: #8a1f1f; border: 1px solid #f3c2c2; }
.rw-alert.is-ok { background: var(--rw-mint-50); color: #0b6b4b; border-color: #bdeed8; }
.rw-alert.is-warn { background: #fff7e0; color: #7a5a00; border-color: #f1dc9a; }
.rw-breadcrumb { font-size: .92rem; color: var(--rw-muted); margin-bottom: 1rem; }
.rw-breadcrumb a { text-decoration: none; }
.rw-breadcrumb strong { color: var(--rw-ink); }
.rw-field { margin-bottom: 1rem; }
.rw-field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--rw-ink); }
.rw-field input, .rw-field select, .rw-field textarea, .rw-input { width: 100%; min-height: 46px; border: 1.5px solid #c9d4dc; border-radius: 10px; padding: .65rem .9rem; font: 500 1rem var(--rw-font); color: var(--rw-ink); background: #fff; box-sizing: border-box; }
.rw-field textarea { min-height: 100px; resize: vertical; }

/* Auth */
.rw-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; }
.rw-auth-side h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; margin: 1.2rem 0 2rem; }
.rw-auth-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
.rw-auth-list li { display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: 1.15rem; color: var(--rw-ink); }
.rw-auth-list .rw-ico-box { width: 54px; height: 54px; border-radius: 14px; background: var(--rw-mint-100); display: grid; place-items: center; color: var(--rw-ink); flex: none; }
.rw-auth-card { background: #fff; border-radius: 18px; box-shadow: var(--rw-shadow); padding: 2rem; }
.rw-auth-card h2 { font-size: 2.2rem; font-weight: 800; }
.rw-auth-card .rw-sub { margin-bottom: 1.2rem; }
.rw-link { color: var(--rw-green-700) !important; font-weight: 700; }

/* Tab account */
.rw-tabs { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.rw-tab { text-decoration: none; padding: .55rem 1.3rem; border: 2px solid var(--rw-ink); border-radius: 99px; font-weight: 700; color: var(--rw-ink); background: #fff; }
.rw-tab.is-active { background: var(--rw-green); border-color: var(--rw-green); color: var(--rw-deeper); }
.rw-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.rw-loyalty { background: var(--rw-deep); color: #e8fff5; border-radius: var(--rw-radius); padding: 1.4rem; }
.rw-loyalty h2 { color: #fff; }
.rw-loyalty .rw-bigtxt { color: var(--rw-green); font-size: 2.4rem; font-weight: 800; }
.rw-prog { height: 12px; background: rgba(255, 255, 255, .18); border-radius: 99px; overflow: hidden; margin: .5rem 0; }
.rw-prog span { display: block; height: 100%; background: var(--rw-green); border-radius: 99px; }
.rw-kv { display: grid; grid-template-columns: 8rem 1fr; gap: .5rem 1rem; margin: 0 0 1.2rem; }
.rw-kv dt { color: var(--rw-muted); } .rw-kv dd { margin: 0; font-weight: 600; color: var(--rw-ink); }
.rw-missions { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.rw-mission { border: 1px solid var(--rw-line); border-radius: 12px; padding: .9rem; background: #fff; }
.rw-mission h3 { font-size: .98rem; display: flex; justify-content: space-between; gap: .5rem; }
.rw-mission .rw-points-chip { background: var(--rw-mint-100); color: var(--rw-green-700); border-radius: 99px; padding: 0 .55rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.rw-mission p { margin: .4rem 0; font-size: .9rem; }
.rw-mission .rw-prog { background: #e3ebef; height: 8px; } .rw-mission .rw-prog span { background: var(--rw-green-600); }
.rw-mission small { color: var(--rw-muted); display: flex; justify-content: space-between; }
.rw-mission.is-done { background: var(--rw-mint-50); }
.rw-coupon { border: 2px dashed var(--rw-green-600); border-radius: 12px; padding: 1rem; background: #fff; }
.rw-coupon .rw-code { display: flex; gap: .6rem; align-items: center; margin: .5rem 0; }
.rw-coupon code { background: #eef5f1; padding: .5rem .8rem; border-radius: 8px; font-weight: 700; letter-spacing: .05em; }
.rw-redeem-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid var(--rw-line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; background: #fff; }
.rw-redeem-row small { display: block; color: var(--rw-muted); }

/* Ordini */
.rw-status { display: inline-block; padding: .25rem .9rem; border-radius: 99px; font-weight: 700; font-size: .88rem; background: #e8ecef; color: #3c4656; }
.rw-status.is-ok { background: var(--rw-mint-100); color: #0b6b4b; }
.rw-status.is-bad { background: #fdecec; color: #8a1f1f; }
.rw-filter-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: .8rem; margin-bottom: 1.2rem; }
.rw-order-card { border: 1px solid var(--rw-line); border-radius: 12px; background: #fff; margin-bottom: 1rem; overflow: hidden; }
.rw-order-head { display: flex; align-items: center; gap: 1.2rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--rw-line); flex-wrap: wrap; }
.rw-order-head strong { font-size: 1.25rem; color: var(--rw-ink); }
.rw-order-body { display: grid; grid-template-columns: 110px 1fr 240px; gap: 1.2rem; padding: 1rem 1.2rem; align-items: center; }
.rw-order-body img, .rw-thumb { width: 100%; max-width: 110px; height: 80px; object-fit: contain; }
.rw-order-body h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.rw-order-body p { margin: .2rem 0; font-size: .92rem; }
.rw-order-total strong { display: block; font-size: 1.5rem; color: var(--rw-ink); }
.rw-order-total small { color: var(--rw-muted); }
.rw-more { margin: .6rem 0 0; }
.rw-more summary { cursor: pointer; border: 1px solid var(--rw-line); border-radius: 10px; padding: .55rem .9rem; font-weight: 600; list-style: none; }
.rw-more ul { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .92rem; }
.rw-more li { padding: .35rem 0; border-top: 1px solid var(--rw-line); display: flex; justify-content: space-between; gap: 1rem; }
.rw-table { width: 100%; border-collapse: collapse; }
.rw-table th { text-align: left; font-size: .88rem; padding: .7rem; background: #eff4f7; }
.rw-table td { padding: .8rem .7rem; border-top: 1px solid var(--rw-line); vertical-align: middle; }
.rw-table .num { text-align: right; white-space: nowrap; }
.rw-prod-cell { display: flex; gap: .9rem; align-items: center; }
.rw-prod-cell small { color: var(--rw-muted); display: block; }
.rw-steps { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; margin: 1.2rem 0 .6rem; }
.rw-step { text-align: center; position: relative; font-weight: 700; color: var(--rw-ink); }
.rw-step i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto .4rem; border-radius: 50%; border: 2px solid #aab7c1; background: #fff; position: relative; z-index: 1; font-style: normal; }
.rw-step.is-done i { background: var(--rw-green-600); border-color: var(--rw-green-600); color: #fff; }
.rw-step + .rw-step::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 3px; background: #c9d4dc; }
.rw-step.is-done + .rw-step.is-done::before { background: var(--rw-green-600); }
.rw-step small { display: block; font-weight: 500; color: var(--rw-muted); }
.rw-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1.4rem; align-items: start; }
.rw-summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.rw-summary-row.is-total { background: var(--rw-mint-100); border-radius: 10px; padding: .7rem .8rem; font-weight: 800; color: var(--rw-ink); font-size: 1rem; margin: .5rem 0; }
.rw-summary-row.is-total span:last-child { white-space: nowrap; }
.rw-note { font-size: .88rem; color: var(--rw-muted); }
.rw-info-box { background: #eef3f6; border-radius: 10px; padding: .8rem 1rem; font-size: .93rem; margin: .8rem 0; }

/* Carrello */
.rw-cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 1.4rem; align-items: start; }
.rw-cart-line { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; }
.rw-cart-line + .rw-cart-line { border-top: 1px solid var(--rw-line); margin-top: 1.2rem; padding-top: 1.2rem; }
.rw-cart-line img { width: 150px; height: 120px; object-fit: contain; }
.rw-cart-line h3 { font-size: 1.3rem; } .rw-cart-line h3 a { text-decoration: none; }
.rw-cart-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 600; margin: .5rem 0; font-size: .95rem; }
.rw-cart-meta .ok::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #2dc96f; margin-right: .4rem; }
.rw-cart-bottom { display: flex; gap: 2rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.rw-cart-bottom small { display: block; color: var(--rw-muted); }
.rw-cart-bottom .rw-amount { font-size: 1.4rem; font-weight: 800; color: var(--rw-ink); }
.rw-stepper { display: inline-flex; align-items: center; border: 1.5px solid #c9d4dc; border-radius: 10px; overflow: hidden; background: #fff; }
.rw-stepper button, .rw-stepper input { height: 44px; border: 0; background: #fff; font: 700 1.1rem var(--rw-font); color: var(--rw-ink); }
.rw-stepper button { width: 42px; cursor: pointer; } .rw-stepper button:disabled { color: #b4bec7; cursor: not-allowed; }
.rw-stepper input { width: 52px; text-align: center; -moz-appearance: textfield; appearance: textfield; padding: 0; }
.rw-stepper input::-webkit-outer-spin-button, .rw-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rw-linkbtn { background: none; border: 0; color: var(--rw-ink); text-decoration: underline; font: 600 1rem var(--rw-font); cursor: pointer; padding: 0; }
.rw-reward-box { background: var(--rw-mint-50); border: 1px solid #bdeed8; border-radius: 12px; padding: 1rem; margin-top: 1rem; }
.rw-reward-box select { width: 100%; min-height: 44px; border-radius: 10px; border: 1.5px solid #c9d4dc; padding: .5rem; font: 500 1rem var(--rw-font); }
.rw-reward-box h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.rw-sticky { position: sticky; top: 96px; }

/* Catalogo */
.rw-catalog { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 1.6rem; align-items: start; padding: 1.8rem 0 3rem; }
.rw-filters { background: #fff; border: 1px solid var(--rw-line); border-radius: var(--rw-radius); box-shadow: var(--rw-shadow); padding: 1rem 1.1rem; position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow: auto; }
.rw-filters-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.rw-filters-head h2 { font-size: 1.5rem; }
.rw-fgroup { border-top: 1px solid var(--rw-line); padding: .6rem 0; }
.rw-fgroup > summary { list-style: none; cursor: pointer; font-weight: 800; color: var(--rw-ink); display: flex; justify-content: space-between; padding: .3rem 0; }
.rw-fgroup > summary::after { content: '⌄'; font-weight: 400; }
.rw-fgroup[open] > summary::after { content: '⌃'; }
.rw-fgroup .side-check, .rw-fgroup .rw-check { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .97rem; cursor: pointer; }
.rw-fgroup .side-check small { margin-left: auto; color: var(--rw-muted); }
.rw-fgroup input[type=checkbox], .rw-fgroup input[type=radio] { width: 20px; height: 20px; accent-color: #0b8a60; flex: none; }
.rw-grades { display: flex; gap: .5rem; flex-wrap: wrap; }
.rw-grades .grade-chip, .rw-grades label { cursor: pointer; }
.rw-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rw-price-inputs input, .rw-fgroup select { width: 100%; min-height: 42px; border: 1.5px solid #c9d4dc; border-radius: 10px; padding: .4rem .7rem; font: 500 .95rem var(--rw-font); background: #fff; box-sizing: border-box; }
.rw-fgroup .category-tree { max-height: 340px; overflow: auto; }
.rw-fgroup .category-search input { width: 100%; min-height: 40px; border: 1.5px solid #c9d4dc; border-radius: 10px; padding: .4rem .7rem; margin-bottom: .5rem; box-sizing: border-box; font: 500 .95rem var(--rw-font); }
.rw-legend p { display: flex; gap: .6rem; margin: .3rem 0; font-size: .9rem; } .rw-legend b { min-width: 2rem; }
.rw-toolbar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.rw-search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: .6rem; background: #fff; border: 1.5px solid #c9d4dc; border-radius: 12px; padding: 0 .9rem; min-height: 48px; }
.rw-search input { border: 0; outline: 0; flex: 1; font: 500 1rem var(--rw-font); background: transparent; min-height: 44px; }
.rw-toggle { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; }
.rw-toggle input { width: 22px; height: 22px; accent-color: #0b8a60; }
.rw-sort { display: flex; align-items: center; gap: .6rem; font-size: .92rem; }
.rw-sort select { min-height: 46px; border: 1.5px solid #c9d4dc; border-radius: 12px; padding: 0 .8rem; font: 500 1rem var(--rw-font); background: #fff; }
.rw-viewsw { display: inline-flex; border: 1.5px solid #c9d4dc; border-radius: 12px; overflow: hidden; background: #fff; }
.rw-viewsw a { display: grid; place-items: center; width: 46px; height: 44px; text-decoration: none; }
.rw-viewsw a.active { background: var(--rw-mint-100); }
.rw-list-head, .rw-row { display: grid; grid-template-columns: 90px minmax(230px, 1fr) 96px 86px 128px 172px; gap: .9rem; align-items: center; }
.rw-list-head { background: #fff; border: 1px solid var(--rw-line); border-radius: 12px; padding: .7rem 1rem; font-weight: 700; font-size: .9rem; color: var(--rw-ink); margin-bottom: .7rem; }
.rw-row { background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; box-shadow: var(--rw-shadow); padding: .8rem 1rem; margin-bottom: .8rem; }
.rw-row .rw-img img { width: 100%; max-height: 90px; object-fit: contain; display: block; }
.rw-row h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .2rem; } .rw-row h3 a { text-decoration: none; }
.rw-row .rw-config { font-size: .88rem; margin: 0 0 .2rem; }
.rw-row .rw-codes { font-size: .78rem; color: var(--rw-muted); margin: 0; word-break: break-word; }
.rw-pill { display: inline-block; background: var(--rw-mint-100); color: #0b6b4b; border-radius: 99px; padding: .25rem .9rem; font-weight: 800; }
.rw-pill.is-off { background: #e8ecef; color: #4d5864; }
.rw-cell small { display: block; color: var(--rw-muted); font-size: .8rem; }
.rw-cell strong { color: var(--rw-ink); }
.rw-cell-price strong { font-size: 1.5rem; display: block; line-height: 1.1; }
.rw-buy { display: flex; flex-direction: column; gap: .5rem; }
.rw-buy .rw-stepper { align-self: flex-start; }
.rw-buy .rw-btn { font-size: .92rem; padding: .55rem .8rem; }
.rw-sep { display: flex; align-items: center; gap: 1rem; margin: 1.6rem 0 1rem; }
.rw-sep h2 { font-size: 1.4rem; white-space: nowrap; } .rw-sep::after { content: ''; flex: 1; height: 1px; background: var(--rw-line); }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.rw-grid .rw-row { display: flex; flex-direction: column; align-items: stretch; margin: 0; gap: .6rem; }
.rw-grid .rw-img img { max-height: 160px; }
.rw-row-off { opacity: .92; }
.rw-pager { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.4rem 0; }
.rw-pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid #c9d4dc; background: #fff; text-decoration: none; font-weight: 700; }
.rw-pager a.active { background: var(--rw-green); border-color: var(--rw-green); }
.rw-toast { position: fixed; top: 96px; right: 20px; z-index: 80; display: flex; align-items: center; gap: .8rem; background: #fff; border: 1.5px solid var(--rw-green-600); border-radius: 12px; padding: .8rem 1rem; box-shadow: var(--rw-shadow); font-weight: 700; max-width: min(92vw, 380px); }
.rw-toast.is-error { border-color: #d64545; color: #8a1f1f; }
.rw-toast[hidden] { display: none; }
.rw-toast button { background: none; border: 0; font-size: 1.3rem; cursor: pointer; line-height: 1; color: inherit; }
.rw-empty { text-align: center; padding: 3rem 1rem; background: #fff; border-radius: var(--rw-radius); border: 1px dashed #b9c7d1; }

/* Scheda prodotto */
.rw-product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6rem; align-items: start; }
.rw-gallery-main { display: grid; place-items: center; background: #fff; min-height: 380px; border-radius: 12px; }
.rw-gallery-main img { max-width: 100%; max-height: 420px; object-fit: contain; }
.rw-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: .7rem; margin-top: .9rem; }
.rw-thumbs button { border: 2px solid var(--rw-line); background: #fff; border-radius: 10px; padding: .3rem; cursor: pointer; height: 78px; }
.rw-thumbs button.is-active { border-color: var(--rw-green); }
.rw-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.rw-product h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.rw-product .rw-config { font-size: 1.05rem; margin: .5rem 0 1rem; color: var(--rw-muted); }
.rw-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; font-size: .92rem; color: var(--rw-muted); margin-bottom: 1rem; }
.rw-grade { background: var(--rw-green); color: var(--rw-deeper); font-weight: 800; border-radius: 99px; padding: .25rem .9rem; }
.rw-product .rw-bigprice { font-size: 2.6rem; font-weight: 800; color: var(--rw-ink); line-height: 1; }
.rw-facts { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 1rem 0; font-size: .95rem; }
.rw-facts span { display: inline-flex; align-items: center; gap: .5rem; }
.rw-buyline { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1rem 0; }
.rw-buyline .rw-btn { flex: 1; min-width: 200px; }
.rw-specs { width: 100%; border-collapse: collapse; border: 1px solid var(--rw-line); border-radius: 10px; overflow: hidden; }
.rw-specs th, .rw-specs td { text-align: left; padding: .7rem 1rem; border-top: 1px solid var(--rw-line); }
.rw-specs th { width: 34%; color: var(--rw-ink); background: #f6f9fb; }
.rw-support { display: flex; gap: 1rem; align-items: center; }
.rw-support .rw-icon { width: 54px; height: 54px; padding: 10px; background: var(--rw-mint-100); border-radius: 12px; color: var(--rw-green-700); box-sizing: border-box; }
.rw-ptabs [role=tablist] { display: flex; gap: .6rem; flex-wrap: wrap; border-bottom: 2px solid var(--rw-line); padding-bottom: .8rem; margin-bottom: 1rem; }
.rw-ptabs [role=tab] { border: 2px solid var(--rw-line); background: #fff; border-radius: 99px; padding: .5rem 1.2rem; font: 700 1rem var(--rw-font); cursor: pointer; color: var(--rw-ink); }
.rw-ptabs [role=tab][aria-selected=true] { background: var(--rw-green); border-color: var(--rw-green); }

/* Contatti */
.rw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.rw-contact-card { display: flex; flex-direction: column; gap: 1rem; }
.rw-contact-card header { display: flex; gap: 1rem; align-items: center; }
.rw-contact-card .rw-icon { width: 56px; height: 56px; padding: 12px; border-radius: 14px; background: var(--rw-mint-100); color: var(--rw-green-700); box-sizing: border-box; }
.rw-quick { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rw-quick strong { font-size: 1.1rem; color: var(--rw-ink); }

/* Ordine ricevuto */
.rw-received { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.2rem; }
.rw-received .rw-check-big { width: 84px; height: 84px; border: 5px solid var(--rw-green); border-radius: 50%; display: grid; place-items: center; color: var(--rw-green-600); flex: none; }
.rw-order-meta { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.rw-order-meta b { font-size: 1.4rem; color: var(--rw-ink); }
.rw-reward-lines > div { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--rw-line); }
.rw-reward-lines > div:first-child { border-top: 0; }

/* Responsive */
@media (max-width: 1180px) {
    .rw-list-head { display: none; }
    .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; }
    .rw-row .rw-cell, .rw-row .rw-buy { grid-column: auto; }
    .rw-row .rw-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .rw-row .rw-buy .rw-btn { flex: 1; min-width: 170px; }
    .rw-catalog { grid-template-columns: 1fr; }
    .rw-filters { position: static; max-height: none; }
}
@media (max-width: 960px) {
    .rw-nav { display: none; }
    .rw-burger { display: block; margin-left: auto; }
    .rw-burger > summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--rw-ink); border-radius: 12px; }
    .rw-mobile-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rw-line); padding: .6rem 20px 1rem; box-shadow: var(--rw-shadow); }
    .rw-mobile-nav a { display: block; padding: .7rem 0; font-weight: 600; text-decoration: none; border-top: 1px solid var(--rw-line); }
    .rw-header .rw-wrap { gap: .8rem; min-height: 68px; }
    .rw-actions .rw-user, .rw-actions .rw-hide-sm { display: none; }
    .rw-hero .rw-wrap, .rw-auth, .rw-product, .rw-cart-grid, .rw-detail-grid, .rw-grid-2, .rw-contact-grid { grid-template-columns: 1fr; }
    .rw-services, .rw-promo-grid, .rw-why { grid-template-columns: 1fr; }
    .rw-service + .rw-service { border-left: 0; border-top: 1px solid var(--rw-line); }
    .rw-hero-img { order: -1; }
    .rw-sticky { position: static; }
    .rw-filter-row { grid-template-columns: 1fr; }
    .rw-order-body { grid-template-columns: 90px 1fr; } .rw-order-total { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .rw-wrap { padding: 0 14px; }
    .rw-logo img { height: 42px; }
    .rw-row { grid-template-columns: 80px 1fr; } .rw-row .rw-cell { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
    .rw-cart-line { grid-template-columns: 90px 1fr; } .rw-cart-line img { width: 90px; height: 80px; }
    .rw-kv { grid-template-columns: 1fr; gap: .1rem; } .rw-kv dd { margin-bottom: .6rem; }
    .rw-points-prog { display: none; }
    .rw-table { display: block; overflow-x: auto; }
    .rw-auth-card { padding: 1.3rem; }
}
.rw-step i .rw-icon { width: 16px; height: 16px; stroke-width: 3; }
.rw-h2 { font-size: 1.6rem; margin: 1.4rem 0 .8rem; font-weight: 800; }
.rw-big { width: 56px; height: 56px; color: var(--rw-green-700); }
.rw-tabs button.rw-tab { font: 700 1rem var(--rw-font); cursor: pointer; }
.rw-tabs .rw-tab span { font-weight: 500; opacity: .75; margin-left: .3rem; }
/* Registrazione e 404 nel nuovo stile */
.registration-page .auth, .registration-page .card-form { font-family: var(--rw-font); }
.registration-page .btn { display: inline-flex; justify-content: center; min-height: 46px; align-items: center; border-radius: 999px; background: var(--rw-green); color: var(--rw-deeper); font-weight: 700; border: 0; padding: .7rem 1.4rem; cursor: pointer; }

body.rw .rw-loyalty h2, body.rw .rw-cta h2 { color: #fff; }
.rw-loyalty .rw-bigtxt { line-height: 1.1; }
.rw-detail-grid > *, .rw-cart-grid > *, .rw-grid-2 > *, .rw-product > *, .rw-catalog > * { min-width: 0; }
.rw-filters-sum { display: none; }
@media (max-width: 1180px) {
    .rw-filters-sum { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font: 800 1.3rem var(--rw-font); color: var(--rw-ink); list-style: none; }
    .rw-filters-sum::-webkit-details-marker { display: none; }
    .rw-filters-all:not([open]) .rw-filters-head { display: none; }
    .rw-redeem-row, .rw-order-head { flex-wrap: wrap; }
}
.rw-auth > *, .rw-contact-grid > * { min-width: 0; }

/* ===== Taratura sulle immagini di riferimento: contenitore piu' largo, testi e spazi piu' generosi ===== */
.rw-wrap { max-width: 1560px; padding-left: clamp(20px, 2.6vw, 44px); padding-right: clamp(20px, 2.6vw, 44px); }
body.rw { font-size: 17px; line-height: 1.6; }
.rw-header .rw-wrap { min-height: 88px; gap: 2rem; }
.rw-logo img { height: 60px; }
.rw-nav { gap: 2.2rem; margin-left: 1.5rem; }
.rw-nav a { font-size: 1.12rem; padding: .5rem 0; }
.rw-user { font-size: 1rem; }
.rw-actions .rw-btn-sm, .rw-actions .rw-btn-outline { min-height: 46px; padding: .5rem 1.3rem; font-size: 1rem; }
.rw-points .rw-wrap { min-height: 58px; font-size: 1.02rem; }
.rw-points .rw-btn { min-height: 40px; font-size: 1rem; }
.rw-btn, .rw-btn-outline { min-height: 52px; font-size: 1.06rem; padding: .8rem 1.7rem; }
.rw-btn-sm { min-height: 44px; font-size: 1rem; padding: .5rem 1.25rem; }

/* Home */
.rw-hero { margin: 24px 0; border-radius: 26px; }
.rw-hero .rw-wrap { padding-top: 3.2rem; padding-bottom: 3.2rem; gap: 3rem; }
.rw-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.rw-hero p { font-size: 1.3rem; max-width: 38rem; margin: 1.6rem 0 2rem; line-height: 1.55; }
.rw-hero-cta { max-width: 25rem; gap: 1rem; }
.rw-service { padding: 1.7rem 2.2rem; gap: 1.4rem; }
.rw-service img { width: 78px; height: 78px; }
.rw-service h3 { font-size: 1.4rem; } .rw-service p { font-size: 1.05rem; }
.rw-section { padding: 1.4rem 0 2.8rem; }
.rw-section-head h2 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
.rw-section-head p { font-size: 1.2rem; }
.rw-promo-grid { gap: 1.6rem; }
.rw-card { padding: 1.4rem 1.5rem; gap: .65rem; }
.rw-card-img { height: 230px; }
.rw-card-img img { max-height: 230px; }
.rw-card h3 { font-size: 1.4rem; line-height: 1.25; }
.rw-card .rw-config { font-size: 1.02rem; }
.rw-price { font-size: 1.95rem; }
.rw-price small { font-size: 1rem; }
.rw-badge { font-size: .95rem; padding: .3rem 1rem; }
.rw-why { gap: 1.2rem; margin: 1.5rem 0 2.4rem; }
.rw-why > div { padding: 1.4rem 1.5rem; gap: 1.1rem; }
.rw-why .rw-icon { width: 52px; height: 52px; }
.rw-why h3 { font-size: 1.18rem; } .rw-why p { font-size: 1.02rem; }
.rw-cta { padding: 2.6rem 3rem; }
.rw-cta h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); } .rw-cta p { font-size: 1.3rem; }
.rw-footer .rw-wrap { padding-top: 1.8rem; padding-bottom: 1.8rem; }
.rw-footer img { height: 54px; } .rw-footer nav a { font-size: 1rem; }

/* Pagine interne */
.rw-page { padding-top: 2.6rem; padding-bottom: 3.6rem; }
.rw-page h1, .rw-results > h1 { font-size: clamp(2.4rem, 3.8vw, 3.2rem); }
.rw-sub { font-size: 1.2rem; margin: .6rem 0 1.8rem; }
.rw-panel { padding: 1.9rem 2rem; }
.rw-panel h2 { font-size: 1.6rem; }
.rw-field label { font-size: 1.02rem; } .rw-field input, .rw-field select, .rw-field textarea, .rw-input { min-height: 52px; font-size: 1.05rem; }
.rw-tab { font-size: 1.05rem; padding: .7rem 1.6rem; }
.rw-auth { gap: 4rem; padding: 4rem 0; } .rw-auth-card { padding: 2.6rem; } .rw-auth-card h2 { font-size: 2.6rem; }
.rw-auth-side h1 { font-size: clamp(2.6rem, 4.4vw, 3.8rem); } .rw-auth-list li { font-size: 1.3rem; } .rw-auth-list .rw-ico-box { width: 64px; height: 64px; }

/* Catalogo */
.rw-catalog { grid-template-columns: 310px minmax(0, 1fr); gap: 2rem; padding-top: 2.2rem; }
.rw-filters { padding: 1.4rem 1.5rem; }
.rw-filters-head h2 { font-size: 1.75rem; }
.rw-fgroup { padding: .9rem 0; } .rw-fgroup > summary { font-size: 1.1rem; }
.rw-fgroup .side-check, .rw-fgroup .rw-check { font-size: 1.05rem; padding: .4rem 0; }
.rw-toolbar { gap: 1.2rem; margin: 1.3rem 0 1.5rem; }
.rw-search { min-height: 56px; border-radius: 14px; } .rw-search input { font-size: 1.05rem; }
.rw-sort select { min-height: 56px; font-size: 1.05rem; } .rw-viewsw a { width: 54px; height: 54px; }
.rw-list-head, .rw-row { grid-template-columns: 120px minmax(200px, 1fr) 115px 100px 140px 300px; gap: 1.1rem; }
.rw-list-head { padding: 1rem 1.4rem; font-size: 1rem; }
.rw-row { padding: 1.2rem 1.4rem; margin-bottom: 1.1rem; border-radius: 16px; }
.rw-row .rw-img img { max-height: 110px; }
.rw-row h3 { font-size: 1.28rem; line-height: 1.25; margin-bottom: .35rem; }
.rw-row .rw-config { font-size: 1rem; } .rw-row .rw-codes { font-size: .86rem; }
.rw-cell { font-size: 1.02rem; }
.rw-cell-price strong { font-size: 1.7rem; }
.rw-pill { font-size: 1.02rem; padding: .3rem 1rem; }
.rw-buy { flex-direction: row; align-items: center; flex-wrap: wrap; gap: .7rem; }
.rw-buy .rw-btn { flex: 1; min-width: 170px; font-size: 1rem; white-space: nowrap; }
.rw-stepper button, .rw-stepper input { height: 48px; } .rw-stepper button { width: 44px; } .rw-stepper input { width: 54px; }
.rw-sep h2 { font-size: 1.6rem; }

/* Scheda prodotto, carrello, ordini */
.rw-product { gap: 2rem; }
.rw-product h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.rw-product .rw-bigprice { font-size: 3rem; }
.rw-facts { font-size: 1.05rem; gap: 1rem 2rem; }
.rw-gallery-main { min-height: 460px; }
.rw-cart-grid { gap: 2rem; grid-template-columns: 1fr 420px; }
.rw-cart-line { grid-template-columns: 190px 1fr; gap: 1.6rem; } .rw-cart-line img { width: 190px; height: 150px; }
.rw-cart-line h3 { font-size: 1.6rem; } .rw-cart-meta { font-size: 1.05rem; }
.rw-cart-bottom .rw-amount { font-size: 1.6rem; }
.rw-summary-row { padding: .5rem 0; font-size: 1.08rem; } .rw-summary-row.is-total { font-size: 1.12rem; }
.rw-detail-grid { gap: 2rem; grid-template-columns: 1fr 420px; }
.rw-order-head strong { font-size: 1.5rem; } .rw-order-body { padding: 1.3rem 1.5rem; gap: 1.6rem; grid-template-columns: 150px 1fr 280px; }
.rw-order-body h3 { font-size: 1.3rem; } .rw-order-total strong { font-size: 1.8rem; }
.rw-table td, .rw-table th { padding: 1rem .9rem; font-size: 1.02rem; }

@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 110px minmax(220px, 1fr) 110px 100px 140px 300px; gap: 1rem; } }
@media (max-width: 1180px) {
    .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; }
    .rw-row .rw-buy { grid-column: 1 / -1; }
    .rw-catalog { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .rw-header .rw-wrap { min-height: 72px; } .rw-logo img { height: 46px; }
    .rw-cart-grid, .rw-detail-grid { grid-template-columns: 1fr; }
    .rw-order-body { grid-template-columns: 90px 1fr; }
    .rw-panel { padding: 1.4rem; }
}
@media (max-width: 560px) { body.rw { font-size: 16px; } .rw-card-img { height: 190px; } .rw-cart-line { grid-template-columns: 90px 1fr; } .rw-cart-line img { width: 90px; height: 80px; } }

/* ===== Proporzioni fluide: tutto scala con la larghezza della finestra, come nei riferimenti ===== */
html { font-size: clamp(16px, 1.04vw, 21px); }
body.rw { font-size: 1rem; }
.rw-wrap { max-width: 1900px; padding-left: clamp(16px, 2.2vw, 44px); padding-right: clamp(16px, 2.2vw, 44px); }
.rw-hero .rw-wrap { grid-template-columns: .92fr 1.08fr; }
.rw-hero-img img { max-width: none; width: 100%; }
.rw-hero p { max-width: 36rem; }
.rw-hero-cta { max-width: 21rem; }
.rw-logo img { height: 3.6rem; }
.rw-header .rw-wrap { min-height: 5.4rem; }
.rw-service img { width: 4.8rem; height: 4.8rem; }
.rw-card-img { height: 14rem; } .rw-card-img img { max-height: 14rem; }
.rw-catalog { grid-template-columns: 17.5rem minmax(0, 1fr); }
.rw-list-head, .rw-row { grid-template-columns: 8rem minmax(14rem, 1fr) 8rem 6.8rem 9.5rem 19rem; gap: 1.2rem; }
.rw-row .rw-img img { max-height: 7rem; }
.rw-cart-grid, .rw-detail-grid { grid-template-columns: 1fr 25rem; }
.rw-cart-line { grid-template-columns: 11.5rem 1fr; } .rw-cart-line img { width: 11.5rem; height: 9rem; }
.rw-order-body { grid-template-columns: 9rem 1fr 17rem; }
.rw-gallery-main { min-height: 28rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 7rem minmax(12rem, 1fr) 7rem 6rem 8.5rem 17rem; } }
@media (max-width: 1180px) { html { font-size: 16px; } .rw-catalog { grid-template-columns: 1fr; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } .rw-hero .rw-wrap { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .rw-cart-grid, .rw-detail-grid { grid-template-columns: 1fr; } .rw-order-body { grid-template-columns: 90px 1fr; } .rw-logo img { height: 46px; } }
@media (max-width: 560px) { .rw-cart-line { grid-template-columns: 90px 1fr; } .rw-cart-line img { width: 90px; height: 80px; } }

/* ===== Rifinitura UX: gerarchia titolo/configurazione, colonne che non sbordano, hero entro la prima schermata ===== */
html { font-size: clamp(16px, .96vw, 19px); }
.rw-row h3 { font-size: 1.22rem; font-weight: 800; }
.rw-row .rw-config { font-size: .96rem; color: var(--rw-muted); line-height: 1.45; }
.rw-card h3 { font-size: 1.3rem; } .rw-card .rw-config { color: var(--rw-muted); }
.rw-cart-line .rw-config, .rw-product .rw-config { color: var(--rw-muted); }
.rw-list-head, .rw-row { grid-template-columns: 6.5rem minmax(0, 1fr) 6.6rem 5.6rem 8.4rem 19rem; gap: 1.1rem; }
.rw-buy { flex-wrap: nowrap; gap: .6rem; }
.rw-buy .rw-btn { flex: 1 1 auto; min-width: 0; padding-left: .8rem; padding-right: .8rem; white-space: nowrap; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 6rem minmax(0, 1fr) 6.2rem 5.4rem 8rem 18rem; gap: 1rem; } }
.rw-hero .rw-wrap { padding-top: 2.2rem; padding-bottom: 2.2rem; align-items: center; }
.rw-hero h1 { font-size: clamp(2.6rem, 3.8vw, 4.4rem); }
.rw-hero-img img { width: auto; max-width: 100%; max-height: min(62vh, 34rem); margin-left: auto; }
.rw-hero-img { justify-content: flex-end; }
@media (max-width: 1180px) { .rw-row .rw-buy { flex-wrap: wrap; } .rw-hero-img img { margin: 0 auto; max-height: 50vh; } .rw-list-head { display: none; } }

/* Rifinitura finale elenco catalogo */
.rw-list-head, .rw-row { grid-template-columns: 6.5rem minmax(0, 1fr) 6.8rem 6.4rem 8.6rem 20.5rem; gap: 1.2rem; }
.rw-list-head span { white-space: nowrap; }
.rw-buy .rw-btn { padding-left: 1rem; padding-right: 1rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 6rem minmax(0, 1fr) 6.4rem 6rem 8rem 19.5rem; gap: 1rem; } }
@media (max-width: 1180px) { .rw-list-head { display: none; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } }

/* Rifinitura pagine account/ordini */
.rw-missions { grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 1.1rem; }
.rw-mission { padding: 1.1rem 1.2rem; }
.rw-mission h3 { font-size: 1.05rem; align-items: flex-start; }
.rw-mission p { font-size: .98rem; } .rw-mission small { font-size: .88rem; }
.rw-mission .rw-points-chip { font-size: .85rem; padding: .1rem .6rem; align-self: flex-start; }
.rw-panel > h2:first-child { margin-bottom: 1.1rem; }
.rw-order-card + .rw-order-card { margin-top: 1.2rem; }
.rw-filter-row { margin-top: 1.2rem; }
.rw-kv { grid-template-columns: 9rem 1fr; gap: .7rem 1.2rem; font-size: 1.02rem; }
.rw-field { margin-bottom: 1.2rem; } .rw-field label { margin-bottom: .45rem; }
.rw-prod-cell small { font-size: .92rem; line-height: 1.45; }
.rw-prod-cell strong { font-size: 1.1rem; }
.rw-breadcrumb { font-size: 1rem; margin-bottom: 1.2rem; }
.rw-status { font-size: .95rem; padding: .3rem 1rem; }
.rw-note { font-size: .95rem; }
.rw-table th { font-size: .95rem; }
.rw-order-body p { font-size: 1rem; } .rw-order-total small { font-size: .9rem; }
.rw-quick strong { font-size: 1.15rem; }

/* ===== Catalogo v3: sidebar ad accordion, chip filtri, carrello a icona, scala tipografica unica ===== */
:root { --t-xs: .8rem; --t-sm: .875rem; --t-base: .95rem; --t-md: 1.05rem; --t-lg: 1.25rem; --t-xl: 1.9rem; }
.rw-fgroup > summary svg, .rw-filters-sum svg, .rw-node-toggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform .18s; }
.rw-catalog { grid-template-columns: 18.5rem minmax(0, 1fr); gap: 1.8rem; }
.rw-filters { padding: .5rem 1.1rem 1rem; border-radius: 16px; font-size: var(--t-base); line-height: 1.4; }
.rw-filters-sum { display: none; }
.rw-filters-head { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0 .5rem; margin: 0; }
.rw-filters-head h2 { font-size: var(--t-lg); font-weight: 800; }
.rw-link { color: var(--rw-green-700); font-weight: 600; font-size: var(--t-sm); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.rw-link:hover { text-decoration: underline; }
.rw-fgroup { border-top: 1px solid var(--rw-line); padding: 0; }
.rw-fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 0; font: 700 var(--t-base)/1.3 var(--rw-font); color: var(--rw-ink); }
.rw-fgroup > summary::-webkit-details-marker { display: none; }
.rw-fgroup > summary::after, .rw-fgroup[open] > summary::after { content: none; }
.rw-fgroup > summary svg { color: var(--rw-muted); }
.rw-fgroup[open] > summary svg { transform: rotate(180deg); }
.rw-fgroup > summary:hover { color: var(--rw-green-700); }
.rw-fbody { padding: 0 0 1rem; }
.rw-tree-search { position: relative; margin-bottom: .6rem; }
.rw-tree-search svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); width: 1rem; height: 1rem; fill: none; stroke: var(--rw-muted); stroke-width: 2; }
.rw-tree-search input { width: 100%; box-sizing: border-box; min-height: 2.5rem; padding: .4rem .8rem .4rem 2.2rem; border: 1.5px solid #cfd9e0; border-radius: 10px; font: 500 var(--t-base) var(--rw-font); background: #f7fafc; }
.rw-tree-search input:focus { outline: none; border-color: var(--rw-green-600); background: #fff; box-shadow: 0 0 0 3px rgba(51, 230, 163, .25); }
.rw-tree { max-height: 22rem; overflow: auto; margin: 0 -.4rem; padding: 0 .4rem; scrollbar-width: thin; position: relative; }
.rw-tree-list { list-style: none; margin: 0; padding: 0; }
.rw-tree-list .rw-tree-list { margin-left: .85rem; padding-left: .15rem; border-left: 1px solid var(--rw-line); }
.rw-children[hidden] { display: none; }
.rw-node.is-hidden { display: none; }
.rw-tree.is-searching .rw-children[hidden] { display: block; }
.rw-tree-all, .rw-node-link { display: block; text-decoration: none; color: var(--rw-text); font: 500 var(--t-base)/1.3 var(--rw-font); padding: .5rem .6rem; border-radius: 8px; }
.rw-tree-all { font-weight: 700; color: var(--rw-ink); margin-bottom: .15rem; }
.rw-node-row { display: flex; align-items: center; gap: .1rem; border-radius: 8px; }
.rw-node-link { flex: 1; min-width: 0; padding: .5rem .5rem; }
.rw-node-toggle, .rw-node-spacer { width: 1.8rem; height: 1.8rem; flex: none; display: inline-grid; place-items: center; }
.rw-node-toggle { background: none; border: 0; cursor: pointer; color: var(--rw-muted); border-radius: 8px; padding: 0; }
.rw-node-toggle:hover { background: var(--rw-mint-100); color: var(--rw-green-700); }
.rw-node-toggle svg { transform: rotate(-90deg); }
.rw-node.is-open > .rw-node-row > .rw-node-toggle svg { transform: rotate(0); }
.rw-node-row:hover, .rw-tree-all:hover { background: #f1f6f9; }
.rw-node-link:hover { color: var(--rw-ink); }
.rw-node.in-path > .rw-node-row > .rw-node-link { color: var(--rw-ink); font-weight: 700; }
.rw-node.is-current > .rw-node-row { background: var(--rw-mint-100); box-shadow: inset 3px 0 0 var(--rw-green-600); }
.rw-node.is-current > .rw-node-row > .rw-node-link, .rw-tree-all.is-current { color: var(--rw-deep); font-weight: 800; }
.rw-tree-all.is-current { background: var(--rw-mint-100); box-shadow: inset 3px 0 0 var(--rw-green-600); }
.rw-opt { display: flex; align-items: center; gap: .65rem; padding: .4rem .2rem; font: 500 var(--t-base)/1.3 var(--rw-font); color: var(--rw-text); cursor: pointer; border-radius: 8px; }
.rw-opt:hover { background: #f1f6f9; }
.rw-opt input { width: 1.1rem; height: 1.1rem; accent-color: var(--rw-green-700); flex: none; margin: 0; }
.rw-opt small { margin-left: auto; color: var(--rw-muted); font-size: var(--t-xs); font-weight: 600; }
.rw-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.rw-chip { position: relative; }
.rw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rw-chip span { display: inline-grid; place-items: center; min-width: 2.8rem; height: 2.4rem; padding: 0 .8rem; border: 1.5px solid #cfd9e0; border-radius: 10px; font: 700 var(--t-base) var(--rw-font); color: var(--rw-ink); cursor: pointer; background: #fff; box-sizing: border-box; }
.rw-chip span:hover { border-color: var(--rw-green-600); }
.rw-chip input:checked + span { background: var(--rw-deep); border-color: var(--rw-deep); color: #fff; }
.rw-chip input:focus-visible + span { outline: 3px solid rgba(51, 230, 163, .5); outline-offset: 1px; }
.rw-legend-box { margin-top: .7rem; font-size: var(--t-sm); color: var(--rw-muted); }
.rw-legend-box > summary { cursor: pointer; font-weight: 600; color: var(--rw-green-700); list-style: none; }
.rw-legend-box > summary::-webkit-details-marker { display: none; }
.rw-legend-box dl { margin: .5rem 0 0; display: grid; grid-template-columns: 2.4rem 1fr; gap: .3rem .5rem; }
.rw-legend-box dt { font-weight: 800; color: var(--rw-ink); } .rw-legend-box dd { margin: 0; }
.rw-price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.rw-price-inputs input, .rw-fbody select { width: 100%; box-sizing: border-box; min-height: 2.5rem; padding: .4rem .7rem; border: 1.5px solid #cfd9e0; border-radius: 10px; font: 500 var(--t-base) var(--rw-font); background: #fff; }
.rw-price-inputs input:focus, .rw-fbody select:focus { outline: none; border-color: var(--rw-green-600); box-shadow: 0 0 0 3px rgba(51, 230, 163, .25); }
.rw-hint { font-size: var(--t-sm); color: var(--rw-muted); margin: .4rem 0 0; padding-top: .8rem; border-top: 1px solid var(--rw-line); }
.rw-title { font-size: var(--t-xl); }
.rw-count { font-size: var(--t-base); color: var(--rw-muted); margin: .2rem 0 0; }
.rw-active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1.1rem; }
.rw-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .5rem .3rem .8rem; border-radius: 999px; background: var(--rw-mint-100); color: var(--rw-deep); font: 600 var(--t-sm)/1.2 var(--rw-font); text-decoration: none; border: 1px solid rgba(11, 138, 96, .25); }
.rw-tag em { font-style: normal; font-weight: 500; opacity: .75; }
.rw-tag svg { width: 1.1rem; height: 1.1rem; padding: .15rem; box-sizing: border-box; border-radius: 50%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.rw-tag:hover { background: #b9f1d6; } .rw-tag:hover svg { background: var(--rw-deep); stroke: #fff; }
.rw-clear { margin-left: .3rem; }
.rw-toolbar { font-size: var(--t-base); }
.rw-toolbar select, .rw-search input { font: 500 var(--t-base) var(--rw-font); }
.rw-list-head { font-size: var(--t-sm); font-weight: 700; }
.rw-main h3 { font-size: var(--t-md); font-weight: 700; line-height: 1.25; }
.rw-config { font-size: var(--t-base); } .rw-codes { font-size: var(--t-xs); }
.rw-cell { font-size: var(--t-base); } .rw-cell-price strong { font-size: var(--t-lg); } .rw-cell-price small { font-size: var(--t-xs); }
.rw-list-head, .rw-row { grid-template-columns: 6.5rem minmax(0, 1fr) 6.8rem 6.4rem 8.6rem 12.5rem; gap: 1.2rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 6rem minmax(0, 1fr) 6.4rem 6rem 8rem 12rem; gap: 1rem; } }
@media (max-width: 1180px) { .rw-list-head { display: none; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } }
.rw-buy { flex-direction: row; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: .6rem; }
.rw-cartbtn { width: 3rem; height: 3rem; flex: none; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 12px; background: var(--rw-green); color: var(--rw-deeper); cursor: pointer; box-shadow: 0 6px 16px -8px rgba(20, 196, 137, .8); transition: transform .12s, background .12s; }
.rw-cartbtn svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-cartbtn:hover:not(:disabled) { background: #5cf0b8; transform: translateY(-1px); }
.rw-cartbtn:focus-visible { outline: 3px solid var(--rw-deep); outline-offset: 2px; }
.rw-cartbtn:disabled { background: #e5ecf0; color: #9aa8b3; box-shadow: none; cursor: not-allowed; }
.rw-cartbtn.is-done { background: var(--rw-deep); color: var(--rw-green); }
.rw-cartbtn.is-busy { opacity: .6; }
.rw-grid .rw-buy { justify-content: space-between; }
@media (max-width: 1180px) {
    .rw-catalog { grid-template-columns: 1fr; }
    .rw-filters { position: static; max-height: none; padding-top: .8rem; }
    .rw-filters-sum { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font: 800 var(--t-lg) var(--rw-font); color: var(--rw-ink); list-style: none; }
    .rw-filters-sum::-webkit-details-marker { display: none; }
    .rw-filters-all[open] .rw-filters-sum svg { transform: rotate(180deg); }
    .rw-row .rw-buy { grid-column: 1 / -1; justify-content: space-between; }
    .rw-tree { max-height: 16rem; }
}

/* ===== Header v3: navigazione centrata, Promozioni evidenziata, menu Profilo ===== */
.rw-nav { justify-content: center; align-items: center; margin-left: 0; gap: 2rem; }
.rw-nav a.rw-nav-promo { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .5rem 1.15rem; border-bottom: 0; border-radius: 999px; color: var(--rw-deeper); font-weight: 700; background: linear-gradient(120deg, #33e6a3, #7bf2c6 45%, #33e6a3); background-size: 200% 100%; box-shadow: 0 6px 18px -8px rgba(20, 196, 137, .9); overflow: hidden; animation: rwPromoFlow 5s ease-in-out infinite; transition: transform .15s, box-shadow .15s; }
.rw-nav a.rw-nav-promo::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: rwPromoShine 3.6s ease-in-out infinite; }
.rw-nav a.rw-nav-promo svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-nav a.rw-nav-promo:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(20, 196, 137, 1); }
@keyframes rwPromoFlow { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes rwPromoShine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .rw-nav a.rw-nav-promo, .rw-nav a.rw-nav-promo::after { animation: none; } }
.rw-profile { position: relative; }
.rw-profile > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.rw-profile > summary::-webkit-details-marker { display: none; }
.rw-profile > summary svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-profile > summary .rw-caret { width: .95rem; height: .95rem; transition: transform .18s; }
.rw-profile[open] > summary .rw-caret { transform: rotate(180deg); }
.rw-profile[open] > summary { background: var(--rw-mint-50); }
.rw-profile-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 15rem; background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(8, 26, 19, .35); padding: .4rem; z-index: 80; animation: rwMenuIn .14s ease-out; }
.rw-profile-menu a { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: 9px; color: var(--rw-ink); font: 600 .95rem/1.2 var(--rw-font); text-decoration: none; }
.rw-profile-menu a svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rw-profile-menu a:hover { background: var(--rw-mint-50); }
.rw-profile-menu a.is-out { margin-top: .3rem; border-top: 1px solid var(--rw-line); border-radius: 0 0 9px 9px; color: #b42318; }
.rw-profile-menu a.is-out svg { stroke: #b42318; }
@keyframes rwMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1180px) { .rw-nav { display: none; } }

/* ===== Catalogo v4: colonne compatte a destra, stepper piccolo, attributi verdi, paginazione ===== */
.rw-list-head, .rw-row { grid-template-columns: 5.5rem minmax(0, 1fr) 5.2rem 5.6rem 7rem 9.6rem; gap: .9rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 5rem minmax(0, 1fr) 5rem 5.4rem 6.8rem 9.4rem; gap: .8rem; } }
@media (max-width: 1180px) { .rw-list-head { display: none; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } }
.rw-stepper { border-radius: 8px; border-width: 1.3px; }
.rw-stepper button, .rw-stepper input { height: 2.15rem; font-size: .95rem; }
.rw-stepper button { width: 1.8rem; }
.rw-stepper input { width: 2.3rem; }
.rw-cartbtn { width: 2.5rem; height: 2.5rem; border-radius: 10px; }
.rw-cartbtn svg { width: 1.25rem; height: 1.25rem; }
.rw-buy { gap: .45rem; }
.rw-config { color: var(--rw-green-700); font-weight: 600; }
.rw-pager { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin: 1rem 0; }
.rw-pager a { min-width: 2.5rem; height: 2.5rem; padding: 0 .4rem; box-sizing: border-box; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid #cfd9e0; background: #fff; text-decoration: none; font: 700 var(--t-base) var(--rw-font); color: var(--rw-ink); }
.rw-pager a:hover { border-color: var(--rw-green-600); background: var(--rw-mint-50); }
.rw-pager a.active { background: var(--rw-green); border-color: var(--rw-green); color: var(--rw-deeper); }
.rw-pager .rw-pg-arrow svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.rw-pager .rw-pg-arrow.is-next svg { transform: rotate(-90deg); }
.rw-pg-info { margin-left: auto; color: var(--rw-muted); font-size: var(--t-sm); }
.rw-pager-top { margin: 0 0 1rem; }

/* Paginazione compatta a destra */
.rw-pager { justify-content: flex-end; gap: .3rem; }
.rw-pager a { min-width: 1.9rem; height: 1.9rem; padding: 0 .3rem; border-radius: 8px; border-width: 1.2px; font-size: .82rem; }
.rw-pager .rw-pg-arrow svg { width: .9rem; height: .9rem; }
.rw-pg-info { order: -1; margin: 0 .5rem 0 0; font-size: var(--t-xs); }

/* Barra paginazione e intestazione colonne fisse durante lo scorrimento */
.rw-pager-top { position: sticky; top: var(--rw-hdr, 5rem); z-index: 41; background: var(--rw-bg); margin: 0; padding: .5rem 0; }
.rw-list-head { position: sticky; top: calc(var(--rw-hdr, 5rem) + var(--rw-pg, 0px)); z-index: 40; box-shadow: 0 6px 12px -8px rgba(8, 26, 19, .25); }
@media (max-width: 1180px) { .rw-pager-top { position: static; } }

/* Filtri selezionati al posto del titolo */
.rw-active-top { min-height: 2.2rem; margin: .2rem 0 1rem; }
.rw-active-top .rw-count { margin: 0 0 0 auto; font-size: var(--t-sm); color: var(--rw-muted); }

/* Quantità: campo numerico semplice nell'elenco */
.rw-qty { display: inline-block; }
.rw-qty input { width: 3.6rem; height: 2.5rem; box-sizing: border-box; text-align: center; border: 1.5px solid #cfd9e0; border-radius: 10px; background: #fff; font: 700 1rem var(--rw-font); color: var(--rw-ink); padding: 0 .3rem; -moz-appearance: textfield; appearance: textfield; }
.rw-qty input::-webkit-outer-spin-button, .rw-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rw-qty input:focus { outline: none; border-color: var(--rw-green-600); box-shadow: 0 0 0 3px rgba(51, 230, 163, .25); }
.rw-qty input:disabled { background: #f1f5f8; color: #9aa8b3; }
.rw-list-head, .rw-row { grid-template-columns: 5.5rem minmax(0, 1fr) 5.2rem 5.6rem 7rem 7rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 5rem minmax(0, 1fr) 5rem 5.4rem 6.8rem 6.8rem; } }
@media (max-width: 1180px) { .rw-list-head { display: none; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } }

/* ===== Carrello minimale e responsive ===== */
.rw-cart2-head { display: flex; align-items: baseline; gap: .8rem; margin-bottom: 1rem; }
.rw-cart2-head h1 { font-size: 1.6rem; }
.rw-cart2-count { color: var(--rw-muted); font-size: .9rem; font-weight: 600; }
.rw-cart2-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1.4rem; align-items: start; }
.rw-cart2-lines { background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; padding: .3rem 1rem .8rem; }
.rw-cart2-line { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto 5.8rem 2rem; gap: .8rem; align-items: center; padding: .8rem 0; }
.rw-cart2-line + .rw-cart2-line { border-top: 1px solid var(--rw-line); }
.rw-cart2-img { width: 3.6rem; height: 3.6rem; display: grid; place-items: center; border-radius: 10px; background: #f4f8fb; overflow: hidden; }
.rw-cart2-img img { width: 100%; height: 100%; object-fit: contain; }
.rw-cart2-img svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--rw-green-700); stroke-width: 1.8; }
.rw-cart2-info h2 { font-size: .95rem; font-weight: 700; line-height: 1.3; margin: 0; }
.rw-cart2-info h2 a { color: var(--rw-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rw-cart2-sub { margin: .2rem 0 0; font-size: .78rem; color: var(--rw-muted); }
.rw-cart2-warn { margin: .3rem 0 0; font-size: .8rem; color: #8a5a00; background: #fff6df; border-radius: 8px; padding: .3rem .5rem; }
.rw-cart2-qty { margin: 0; }
.rw-cart2-total { text-align: right; font-size: 1rem; white-space: nowrap; }
.rw-cart2-rm { margin: 0; }
.rw-cart2-rm button { width: 2rem; height: 2rem; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; color: var(--rw-muted); }
.rw-cart2-rm button:hover { background: #fdecea; color: #b42318; }
.rw-cart2-rm svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.rw-cart2-more { display: inline-block; margin-top: .6rem; }
.rw-cart2-sum { position: sticky; top: calc(var(--rw-hdr, 5rem) + 1rem); background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; padding: 1rem 1.1rem; }
.rw-cart2-rows { margin: 0 0 .8rem; }
.rw-cart2-rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .92rem; }
.rw-cart2-rows dt { color: var(--rw-text); } .rw-cart2-rows dt small { color: var(--rw-muted); font-weight: 500; }
.rw-cart2-rows dd { margin: 0; font-weight: 700; color: var(--rw-ink); white-space: nowrap; }
.rw-cart2-rows .rw-cart2-free { color: var(--rw-green-700); }
.rw-cart2-rows .is-total { border-top: 1px solid var(--rw-line); margin-top: .4rem; padding-top: .7rem; font-size: 1.1rem; }
.rw-cart2-ship { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .9rem; padding: .6rem .7rem; border-radius: 10px; background: var(--rw-mint-50); color: var(--rw-deep); font-size: .82rem; font-weight: 600; line-height: 1.35; }
.rw-cart2-ship svg { width: 1.1rem; height: 1.1rem; flex: none; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: .05rem; }
.rw-cart2-pay { border: 0; padding: 0; margin: 0 0 .9rem; }
.rw-cart2-pay legend { font-size: .82rem; font-weight: 700; color: var(--rw-ink); padding: 0; margin-bottom: .2rem; }
.rw-cart2-pay .rw-opt { align-items: flex-start; font-size: .88rem; }
.rw-cart2-pay .rw-opt input { margin-top: .15rem; }
.rw-cart2-cond { display: block; color: var(--rw-muted); font-weight: 500; font-size: .76rem; margin-top: .1rem; }
.rw-cart2-field { display: block; margin: 0 0 .8rem; font-size: .82rem; font-weight: 700; color: var(--rw-ink); }
.rw-cart2-field select { width: 100%; margin-top: .25rem; min-height: 2.4rem; border: 1.5px solid #cfd9e0; border-radius: 10px; padding: 0 .6rem; font: 500 .9rem var(--rw-font); background: #fff; box-sizing: border-box; }
.rw-cart2-notes { margin: 0 0 .9rem; font-size: .85rem; }
.rw-cart2-notes summary { cursor: pointer; color: var(--rw-green-700); font-weight: 600; }
.rw-cart2-notes textarea { width: 100%; margin-top: .4rem; box-sizing: border-box; border: 1.5px solid #cfd9e0; border-radius: 10px; padding: .5rem .6rem; font: 500 .88rem var(--rw-font); }
.rw-cart2-sum .rw-btn { min-height: 2.9rem; font-size: 1rem; }
.rw-cart2-fine { margin: .5rem 0 0; text-align: center; font-size: .72rem; color: var(--rw-muted); line-height: 1.35; }

@media (max-width: 900px) {
    .rw-cart2-grid { grid-template-columns: 1fr; }
    .rw-cart2-sum { position: static; }
}
@media (max-width: 560px) {
    .rw-cart2 { padding-left: 16px; padding-right: 16px; }
    .rw-cart2-lines { padding: .2rem .8rem .7rem; }
    .rw-cart2-line { grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty total"; row-gap: .5rem; column-gap: .7rem; }
    .rw-cart2-img { grid-area: img; width: 3rem; height: 3rem; align-self: start; }
    .rw-cart2-info { grid-area: info; }
    .rw-cart2-rm { grid-area: rm; align-self: start; }
    .rw-cart2-qty { grid-area: qty; }
    .rw-cart2-total { grid-area: total; align-self: center; }
    .rw-cart2-total { text-align: right; }
}

.rw-shipnote { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 .9rem; font-size: .85rem; font-weight: 600; color: var(--rw-deep); }
.rw-shipnote svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Mobile first: catalogo compatto, filtri a scomparsa evidenti, righe prodotto leggibili ===== */
@media (max-width: 760px) {
    .rw-catalog { gap: .8rem; padding-top: 1rem; }
    /* Filtri: pulsante ben visibile (icona + contatore) che apre/chiude il pannello */
    .rw-filters { padding: 0; border-radius: 14px; max-height: none; overflow: visible; }
    .rw-filters-sum { padding: .85rem 1rem; font-size: 1rem; font-weight: 700; border-radius: 14px; min-height: 3rem; }
    .rw-filters-sum::before { content: ''; width: 1.2rem; height: 1.2rem; margin-right: .6rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center / contain no-repeat; }
    .rw-filters-sum > span { flex: 1; }
    .rw-filters-all[open] > .rw-filters-sum { border-bottom: 1px solid var(--rw-line); border-radius: 14px 14px 0 0; background: var(--rw-mint-50); }
    .rw-filters-all > *:not(summary) { margin-left: 1rem; margin-right: 1rem; }
    .rw-filters-head { display: none; }
    .rw-fgroup > summary { min-height: 3rem; }
    .rw-opt { min-height: 2.75rem; }
    .rw-chip span { min-width: 3rem; height: 2.75rem; }
    .rw-tree { max-height: 14rem; }
    .rw-node-link { padding: .7rem .5rem; } .rw-node-toggle, .rw-node-spacer { width: 2.4rem; height: 2.4rem; }
    .rw-filters-all[open] { padding-bottom: .6rem; }

    /* Barra strumenti: ricerca a tutta larghezza, poi ordinamento e disponibili affiancati */
    .rw-active-top { margin: 0 0 .6rem; gap: .4rem; }
    .rw-active-top .rw-count { order: -1; width: 100%; margin: 0 0 .2rem; }
    .rw-shipnote { font-size: .8rem; margin: 0 0 .6rem; }
    .rw-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0 0 .8rem; }
    .rw-toolbar .rw-search { grid-column: 1 / -1; }
    .rw-toolbar .rw-sort > span { display: none; }
    .rw-toolbar .rw-sort select { width: 100%; min-height: 2.9rem; }
    .rw-toolbar .rw-toggle { min-height: 2.9rem; padding: 0 .8rem; background: #fff; border: 1.5px solid #cfd9e0; border-radius: 12px; justify-content: flex-start; }
    .rw-viewsw { display: none; }
    .rw-search input { min-height: 2.9rem; }

    /* Paginazione: indietro / Pagina X di Y / avanti */
    .rw-pager, .rw-pager-top { justify-content: center; gap: .6rem; margin: .4rem 0 .8rem; position: static; padding: 0; background: none; }
    .rw-pager a:not(.rw-pg-arrow) { display: none; }
    .rw-pager a { min-width: 2.75rem; height: 2.75rem; }
    .rw-pager .rw-pg-arrow:not(.is-next) { order: 1; } .rw-pager .rw-pg-info { order: 2; margin: 0; font-size: .85rem; } .rw-pager .rw-pg-arrow.is-next { order: 3; }

    /* Scheda prodotto in elenco */
    .rw-row { display: flex; flex-wrap: wrap; gap: .5rem .8rem; padding: .8rem; margin-bottom: .7rem; }
    .rw-row .rw-img { flex: 0 0 4.2rem; width: 4.2rem; height: 4.2rem; }
    .rw-row .rw-main { flex: 1 1 calc(100% - 5.2rem); min-width: 0; }
    .rw-row .rw-main h3 { font-size: .95rem; }
    .rw-row .rw-cell { flex: 1 1 0; min-width: 0; text-align: left; font-size: .82rem; }
    .rw-row .rw-cell .rw-sr { position: static; width: auto; height: auto; clip: auto; display: block; font-size: .68rem; color: var(--rw-muted); text-transform: uppercase; letter-spacing: .03em; }
    .rw-row .rw-cell-price strong { font-size: 1.1rem; }
    .rw-row .rw-buy { flex: 1 1 100%; justify-content: stretch; gap: .6rem; }
    .rw-row .rw-qty input { width: 4.4rem; height: 2.9rem; }
    .rw-row .rw-cartbtn { flex: 1; width: auto; height: 2.9rem; border-radius: 12px; }
    .rw-sep { margin: 1rem 0 .6rem; } .rw-sep h2 { font-size: 1.1rem; }

    /* Carrello: titolo completo leggibile */
    .rw-cart2-info h2 a { -webkit-line-clamp: 3; }
    .rw-cart2-rm button { width: 2.5rem; height: 2.5rem; }
    .rw-cart2-sum .rw-btn { min-height: 3.1rem; }
}
@media (max-width: 760px) {
    .rw-row .rw-cell .rw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rw-row .rw-cell { flex: 0 0 auto; display: flex; align-items: center; white-space: nowrap; }
    .rw-row .rw-cell:nth-of-type(1) { color: var(--rw-muted); }
    .rw-row .rw-cell-price { margin-left: auto; flex-direction: column; align-items: flex-end; gap: 0; }
    .rw-row .rw-cell-price small { font-size: .7rem; }
    .rw-row .rw-pill { padding: .15rem .6rem; font-size: .8rem; white-space: nowrap; }
    .rw-toolbar .rw-toggle span { font-size: .85rem; white-space: nowrap; }
    .rw-toolbar .rw-sort select { font-size: .85rem; padding-left: .6rem; padding-right: .3rem; }
    .rw-row .rw-main .rw-codes { font-size: .72rem; }
}

/* Sconti quantità */
.rw-discnote { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .9rem; padding: .6rem .8rem; border-radius: 10px; background: var(--rw-mint-50); border: 1px solid rgba(11, 138, 96, .2); color: var(--rw-deep); font-size: .85rem; line-height: 1.4; }
.rw-discnote svg { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: .1rem; }
.rw-cart2-disc { margin: 0 0 .9rem; padding: .7rem .8rem; border-radius: 12px; background: var(--rw-mint-50); border: 1px solid rgba(11, 138, 96, .2); }
.rw-cart2-disc-t { display: flex; align-items: center; gap: .45rem; margin: 0 0 .3rem; font-size: .85rem; font-weight: 800; color: var(--rw-deep); }
.rw-cart2-disc-t svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-cart2-disc-on { margin: 0 0 .4rem; font-size: .95rem; font-weight: 800; color: var(--rw-green-700); }
.rw-cart2-disc-on small { font-weight: 500; color: var(--rw-muted); font-size: .75rem; }
.rw-cart2-hint { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .45rem 0; border-top: 1px dashed rgba(11, 138, 96, .25); font-size: .8rem; line-height: 1.35; color: var(--rw-text); }
.rw-cart2-hint small { color: var(--rw-muted); }
.rw-hintbtn { flex: none; min-height: 2.4rem; padding: 0 .8rem; border: 0; border-radius: 999px; background: var(--rw-green); color: var(--rw-deeper); font: 800 .82rem var(--rw-font); cursor: pointer; white-space: nowrap; }
.rw-hintbtn:hover { background: #5cf0b8; }

/* Gamification: promemoria a comparsa */
.gm-remind { position: fixed; left: 1rem; bottom: 1rem; z-index: 85; display: flex; gap: .7rem; align-items: flex-start; width: min(21rem, calc(100vw - 2rem)); padding: .8rem .9rem; background: var(--rw-deeper); color: #fff; border-radius: 14px; border-left: 4px solid var(--rw-green); box-shadow: 0 16px 36px -12px rgba(8, 26, 19, .55); opacity: 0; transform: translateY(1rem); transition: opacity .35s, transform .35s; }
.gm-remind.is-in { opacity: 1; transform: none; }
.gm-remind[hidden] { display: none; }
.gm-remind-ico svg { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--rw-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gm-remind-body { flex: 1; min-width: 0; display: grid; gap: .2rem; font-size: .82rem; line-height: 1.3; }
.gm-remind-body strong { font-size: .88rem; } .gm-remind-body span { color: #cfe9de; }
.gm-remind-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; margin: .2rem 0; }
.gm-remind-bar span { display: block; height: 100%; background: var(--rw-green); }
.gm-remind-body a { color: var(--rw-green); font-weight: 700; text-decoration: none; }
.gm-remind > button { flex: none; width: 2rem; height: 2rem; margin: -.3rem -.4rem 0 0; border: 0; background: transparent; color: #cfe9de; font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 8px; }
.gm-remind > button:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) { .gm-remind { left: .6rem; right: .6rem; bottom: .6rem; width: auto; } }

/* Vantaggi in una riga: pillole discrete, dettaglio sconti a comparsa */
.rw-perks { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .9rem; }
.rw-perk { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.1rem; padding: 0 .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--rw-line); color: var(--rw-deep); font: 600 .8rem/1 var(--rw-font); }
.rw-perk svg { width: 1rem; height: 1rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rw-perk-disc { padding: 0; background: var(--rw-mint-100); border-color: rgba(11, 138, 96, .25); }
.rw-perk-disc > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.1rem; padding: 0 .8rem; border-radius: 999px; }
.rw-perk-disc > summary::-webkit-details-marker { display: none; }
.rw-perk-disc > summary .rw-caret { width: .85rem; height: .85rem; transition: transform .18s; }
.rw-perk-disc[open] > summary .rw-caret { transform: rotate(180deg); }
.rw-perk-pop { position: absolute; left: 0; top: calc(100% + .45rem); z-index: 70; width: min(21rem, calc(100vw - 2rem)); padding: .9rem 1rem; background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(8, 26, 19, .35); color: var(--rw-text); font-weight: 500; animation: rwMenuIn .14s ease-out; }
.rw-perk-head { margin: 0 0 .5rem; font-weight: 800; color: var(--rw-ink); font-size: .9rem; }
.rw-perk-row { display: flex; align-items: center; gap: .7rem; padding: .4rem 0; font-size: .85rem; line-height: 1.3; }
.rw-perk-row b { flex: none; min-width: 3.2rem; text-align: center; padding: .25rem .4rem; border-radius: 8px; background: var(--rw-green); color: var(--rw-deeper); font-size: .95rem; font-weight: 800; }
.rw-perk-foot { margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--rw-line); font-size: .76rem; color: var(--rw-muted); line-height: 1.4; }

/* Suggerimento sconto sulla riga del prodotto */
.rw-cart2-lhint { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .45rem; padding: .35rem .5rem .35rem .7rem; border-radius: 10px; background: var(--rw-mint-100); font-size: .78rem; line-height: 1.3; color: var(--rw-deep); }
.rw-cart2-lhint > span { display: flex; align-items: center; gap: .4rem; }
.rw-cart2-lhint svg { width: .95rem; height: .95rem; flex: none; fill: none; stroke: var(--rw-green-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-cart2-lhint .rw-hintbtn { min-height: 2rem; padding: 0 .7rem; }
.rw-cart2-disc-more { margin: .35rem 0 0; font-size: .76rem; color: var(--rw-muted); }

/* Prezzo originale barrato e prezzo scontato */
.rw-cart2-total { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.rw-cart2-was { font-size: .74rem; font-weight: 500; color: var(--rw-muted); }
.rw-cart2-now { color: var(--rw-green-700); font-weight: 800; }
.rw-cart2-sub s { color: var(--rw-muted); }

/* Quantità: numero con - e + che compaiono al passaggio/selezione (sempre visibili su touch) */
.rw-qty { position: relative; display: inline-block; }
.rw-qty input { width: 4.6rem; padding: 0 1.4rem; }
.rw-qty-b { position: absolute; top: 1px; bottom: 1px; width: 1.4rem; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--rw-green-700); font: 700 1.05rem/1 var(--rw-font); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; z-index: 1; }
.rw-qty-minus { left: 1px; border-radius: 9px 0 0 9px; } .rw-qty-plus { right: 1px; border-radius: 0 9px 9px 0; }
.rw-qty:hover .rw-qty-b, .rw-qty:focus-within .rw-qty-b { opacity: 1; }
.rw-qty-b:hover { background: var(--rw-mint-100); }
.rw-qty-b:active { background: var(--rw-green); }
.rw-qty:has(input:disabled) .rw-qty-b { display: none; }
@media (hover: none) { .rw-qty-b { opacity: 1; } }
.rw-list-head, .rw-row { grid-template-columns: 5.5rem minmax(0, 1fr) 5.2rem 5.6rem 7rem 8rem; }
@media (max-width: 1500px) { .rw-list-head, .rw-row { grid-template-columns: 5rem minmax(0, 1fr) 5rem 5.4rem 6.8rem 8rem; } }
@media (max-width: 1180px) { .rw-list-head { display: none; } .rw-row { grid-template-columns: 96px minmax(0, 1fr) 1fr; } }
@media (max-width: 760px) { .rw-row .rw-qty input { width: 5rem; } .rw-row .rw-qty-b { width: 1.6rem; } }
/* Carrello: prezzo singolo prima della quantità */
.rw-cart2-line { grid-template-columns: 3.6rem minmax(0, 1fr) 6.4rem auto 5.8rem 2rem; }
.rw-cart2-unit { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; text-align: right; }
.rw-cart2-unit s { font-size: .74rem; color: var(--rw-muted); }
.rw-cart2-unit b { font-size: .95rem; color: var(--rw-ink); }
.rw-cart2-unit small { font-size: .68rem; color: var(--rw-muted); }
@media (max-width: 560px) {
    .rw-cart2-line { grid-template-columns: 3rem minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img unit total" "img qty qty"; }
    .rw-cart2-unit { grid-area: unit; align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; gap: 0 .4rem; align-self: center; }
    .rw-cart2-unit small { flex-basis: 100%; }
    .rw-cart2-qty { grid-area: qty; }
}

/* ===== Scheda prodotto minimale ===== */
.rw-pd-page .rw-breadcrumb { font-size: .85rem; margin-bottom: .9rem; color: var(--rw-muted); }
.rw-pd-page .rw-breadcrumb a { color: var(--rw-green-700); font-weight: 700; text-decoration: none; }
.rw-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.rw-pd-gallery { position: sticky; top: calc(var(--rw-hdr, 5rem) + 1rem); }
.rw-pd-main { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--rw-line); border-radius: 16px; overflow: hidden; padding: 1rem; box-sizing: border-box; }
.rw-pd-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rw-pd-main svg { width: 4rem; height: 4rem; fill: none; stroke: var(--rw-green-700); stroke-width: 1.4; }
.rw-pd-gallery .rw-thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; }
.rw-pd-info { background: #fff; border: 1px solid var(--rw-line); border-radius: 16px; padding: 1.3rem 1.4rem; }
.rw-pd-info h1 { font-size: 1.35rem; line-height: 1.3; font-weight: 800; }
.rw-pd-info .rw-config { margin: .5rem 0 0; color: var(--rw-green-700); font-weight: 600; font-size: .95rem; }
.rw-pd-ids { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .7rem 0 1rem; font-size: .78rem; color: var(--rw-muted); }
.rw-pd-ids .rw-grade { padding: .15rem .6rem; border-radius: 999px; background: var(--rw-mint-100); color: var(--rw-deep); font-weight: 700; }
.rw-pd-priceblock { padding: .9rem 0; border-top: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); margin-bottom: 1rem; }
.rw-pd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0; }
.rw-pd-price strong { font-size: 2rem; font-weight: 800; color: var(--rw-ink); letter-spacing: -.02em; }
.rw-pd-price small { color: var(--rw-muted); font-weight: 600; font-size: .85rem; }
.rw-pd-price s { color: var(--rw-muted); font-size: .95rem; }
.rw-pd-price.is-ask { font-size: 1.3rem; font-weight: 800; color: var(--rw-ink); }
.rw-pd-avail { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 0; font-size: .88rem; color: var(--rw-text); }
.rw-pd-avail .rw-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--rw-green-600); flex: none; }
.rw-pd-avail.is-out .rw-dot { background: #b4bec7; }
.rw-pd-buy { display: flex; gap: .7rem; align-items: center; margin: .2rem 0 .8rem; }
.rw-pd-buy .rw-qty input { width: 5.2rem; height: 3.1rem; font-size: 1.1rem; }
.rw-pd-buy .rw-qty-b { width: 1.6rem; font-size: 1.2rem; }
.rw-pd-add { flex: 1; min-height: 3.1rem; font-size: 1.02rem; }
.rw-pd-sub { display: flex; flex-direction: column; gap: .3rem; margin: .4rem 0 0; font-size: .78rem; color: var(--rw-muted); }
.rw-pd-sub a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .85rem; }
.rw-pd-sub svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; }
.rw-pd-details { margin-top: 1.4rem; background: #fff; border: 1px solid var(--rw-line); border-radius: 16px; padding: .4rem 1.4rem 1.2rem; }
.rw-pd-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: .6rem 0 0; }
.rw-pd-specs > div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--rw-line); font-size: .9rem; }
.rw-pd-specs dt { color: var(--rw-muted); } .rw-pd-specs dd { margin: 0; font-weight: 600; color: var(--rw-ink); text-align: right; }
.rw-pd-desc { margin-top: 1rem; line-height: 1.65; font-size: .92rem; }
.rw-pbar { display: none; }
@media (max-width: 900px) {
    .rw-pd { grid-template-columns: 1fr; gap: 1rem; }
    .rw-pd-gallery { position: static; }
    .rw-pd-main { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
    .rw-pd-page { padding-bottom: 5.5rem; }
    .rw-pd-info { padding: 1rem; } .rw-pd-info h1 { font-size: 1.15rem; }
    .rw-pd-price strong { font-size: 1.7rem; }
    .rw-pd-specs { grid-template-columns: 1fr; }
    .rw-pd-details { padding: .3rem 1rem 1rem; }
    .rw-pd-buy .rw-pd-add { display: none; }
    .rw-pd-buy .rw-qty { flex: 1; } .rw-pd-buy .rw-qty input { width: 100%; }
    .rw-pbar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rw-line); box-shadow: 0 -10px 24px -14px rgba(8, 26, 19, .35); }
    .rw-pbar-price { display: flex; flex-direction: column; line-height: 1.15; } .rw-pbar-price strong { font-size: 1.2rem; } .rw-pbar-price small { font-size: .7rem; color: var(--rw-muted); }
    .rw-pbar .rw-btn { min-height: 3rem; padding: 0 1.6rem; }
    body:has(.rw-pbar) .gm-remind { bottom: 5.4rem; }
}

/* Attributi in verde anche nell'elenco */
.rw-row .rw-config, .rw-card .rw-config { color: var(--rw-green-700); font-weight: 600; }

.rw-cart2-got { display: flex; align-items: center; gap: .4rem; margin: .35rem 0 0; font-size: .78rem; font-weight: 600; color: var(--rw-green-700); }
.rw-cart2-got svg { width: .95rem; height: .95rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rw-cart2-disc-on { line-height: 1.35; }

.rw-cart2-av { color: var(--rw-green-700); font-weight: 600; }
.rw-cart2-av.is-max { color: #b45309; }

/* Carrello: stato di aggiornamento */
.rw-cart2-status { display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; padding: .25rem .7rem; border-radius: 999px; background: var(--rw-mint-100); color: var(--rw-deep); font-size: .8rem; font-weight: 700; }
.rw-cart2-status::before { content: ''; width: .85rem; height: .85rem; border: 2px solid var(--rw-green-600); border-top-color: transparent; border-radius: 50%; animation: rwSpin .7s linear infinite; }
@keyframes rwSpin { to { transform: rotate(360deg); } }
.rw-cart2-line.is-updating { opacity: .55; position: relative; }
.rw-cart2-line.is-updating::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--rw-green), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: rwBar 1s linear infinite; }
@keyframes rwBar { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.rw-cart2.is-busy .rw-cart2-sum { opacity: .6; pointer-events: none; transition: opacity .15s; }
.rw-cart2.is-busy .rw-cart2-sum .rw-btn { pointer-events: none; }

/* Banner promozioni nella home */
.rw-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; margin: 0 0 1.6rem; }
.rw-banner { display: flex; align-items: center; gap: 1.2rem; padding: 1.4rem 1.5rem; border-radius: 18px; background: linear-gradient(120deg, var(--rw-deeper), var(--rw-deep)) center / cover; color: #fff; box-shadow: var(--rw-shadow); min-height: 11rem; }
.rw-banner-pct { flex: none; display: grid; place-items: center; width: 5.6rem; height: 5.6rem; border-radius: 16px; background: var(--rw-green); color: var(--rw-deeper); font-weight: 800; font-size: 1.7rem; }
.rw-banner-body h3 { margin: 0 0 .3rem; color: #fff; font-size: 1.3rem; line-height: 1.2; }
.rw-banner-body p { margin: 0 0 .5rem; color: #d7efe4; font-size: .92rem; }
.rw-banner-body .rw-banner-cond { font-size: .78rem; color: #a9d8c3; }
.rw-banner .rw-btn { margin-top: .3rem; min-height: 2.6rem; }
@media (max-width: 560px) { .rw-banner { flex-direction: column; align-items: flex-start; } }

/* ===== Megamenu Catalogo (CSS puro: hover, tastiera, tocco su desktop) ===== */
.rw-mega { position: static; display: inline-flex; }
.rw-mega-trigger { display: inline-flex; align-items: center; gap: .35rem; }
.rw-mega-trigger .rw-caret { width: .9rem; height: .9rem; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .18s; }
.rw-mega:hover .rw-caret, .rw-mega:focus-within .rw-caret { transform: rotate(180deg); }
.rw-mega-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--rw-line); box-shadow: 0 24px 40px -18px rgba(8, 26, 19, .35); padding: 1.4rem 0 1.2rem; z-index: 70; animation: rwMenuIn .14s ease-out; }
.rw-mega:hover .rw-mega-panel, .rw-mega:focus-within .rw-mega-panel { display: block; }
.rw-mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1.2rem 2rem; max-height: 62vh; overflow: auto; }
.rw-mega-fam { display: block; padding-bottom: .4rem; margin-bottom: .4rem; border-bottom: 2px solid var(--rw-green); font-weight: 800; font-size: 1rem; color: var(--rw-ink); text-decoration: none; }
.rw-mega-col ul { list-style: none; margin: 0; padding: 0; }
.rw-mega-col li a { display: block; padding: .3rem 0; color: var(--rw-text); text-decoration: none; font-size: .92rem; font-weight: 500; }
.rw-mega-col li a:hover, .rw-mega-fam:hover { color: var(--rw-green-700); }
.rw-mega-more { color: var(--rw-green-700) !important; font-weight: 700 !important; }
.rw-mega-all { display: inline-block; margin-top: 1rem; color: var(--rw-green-700); font-weight: 800; text-decoration: none; }
.rw-nav .rw-mega-fam { padding: 0 0 .4rem; border-bottom: 2px solid var(--rw-green); font-size: 1rem; }
.rw-nav .rw-mega-col li a { padding: .3rem 0; border-bottom: 0; font-size: .92rem; font-weight: 500; }
.rw-nav .rw-mega-all, .rw-nav .rw-mega-more { padding: 0; border-bottom: 0; font-size: .95rem; }
/* Menu mobile: accordion */
.rw-mnav-cat > summary, .rw-mnav-fam > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; padding: .8rem 0; font-weight: 700; }
.rw-mnav-cat > summary::-webkit-details-marker, .rw-mnav-fam > summary::-webkit-details-marker { display: none; }
.rw-mnav-cat .rw-caret { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform .18s; }
.rw-mnav-cat[open] > summary .rw-caret, .rw-mnav-fam[open] > summary .rw-caret { transform: rotate(180deg); }
.rw-mnav-fam { margin-left: .8rem; border-left: 2px solid var(--rw-line); padding-left: .8rem; }
.rw-mnav-fam a, .rw-mnav-cat > a { display: block; padding: .55rem 0; }
.rw-mnav-all { color: var(--rw-green-700); font-weight: 700; }
/* Catalogo: percorso e sottocategorie al posto dell'albero nella sidebar */
.rw-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: .85rem; color: var(--rw-muted); }
.rw-crumbs a { color: var(--rw-green-700); font-weight: 700; text-decoration: none; } .rw-crumbs strong { color: var(--rw-ink); }
.rw-subcats { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .9rem; }
.rw-subcats a { padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid #cfd9e0; background: #fff; color: var(--rw-ink); font-weight: 600; font-size: .85rem; text-decoration: none; }
.rw-subcats a:hover { border-color: var(--rw-green-600); background: var(--rw-mint-50); }
@media (max-width: 760px) { .rw-subcats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; } .rw-subcats a { white-space: nowrap; } }
.rw-mega-wrap { display: block; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* ===== Megamenu v2: colonna famiglie a sinistra, categorie a destra, ponte per il passaggio del mouse ===== */
.rw-mega-trigger { position: relative; }
.rw-mega-trigger::after { content: ''; position: absolute; left: -2.5rem; right: -2.5rem; top: 100%; height: 3.2rem; } /* ponte: il pannello non si chiude muovendo il mouse verso il basso */
.rw-mm { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 75; padding-top: 0; animation: rwMenuIn .16s ease-out; }
.rw-mega:hover .rw-mm, .rw-mega:focus-within .rw-mm { display: block; }
.rw-mm-inner { position: relative; display: grid; grid-template-columns: 17rem minmax(0, 1fr) 14rem; max-width: 1240px; margin: 0 auto; background: #fff; border: 1px solid var(--rw-line); border-top: 3px solid var(--rw-green); border-radius: 0 0 20px 20px; box-shadow: 0 30px 60px -24px rgba(8, 26, 19, .45); overflow: hidden; min-height: 21rem; }
.rw-mm-rail { list-style: none; margin: 0; padding: .8rem; background: #f4f9f7; border-right: 1px solid var(--rw-line); display: flex; flex-direction: column; gap: .15rem; }
.rw-mm-fam { position: static; }
.rw-nav .rw-mm-famlink { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem .9rem; border-radius: 12px; border-bottom: 0; font-size: .98rem; font-weight: 700; color: var(--rw-ink); text-decoration: none; transition: background .12s, color .12s; }
.rw-mm-arrow { width: .95rem; height: .95rem; fill: none; stroke: currentColor; stroke-width: 2.4; transform: rotate(-90deg); opacity: .5; }
.rw-mm-fam:hover > .rw-mm-famlink, .rw-mm-fam:focus-within > .rw-mm-famlink { background: #fff; color: var(--rw-green-700); box-shadow: 0 6px 16px -10px rgba(8, 26, 19, .45); }
.rw-mm-fam:hover .rw-mm-arrow, .rw-mm-fam:focus-within .rw-mm-arrow { opacity: 1; }
/* contenuto di ogni famiglia: occupa la colonna centrale; di default si vede la prima famiglia */
.rw-mm-content { display: none; position: absolute; left: 17rem; right: 14rem; top: 0; bottom: 0; padding: 1.3rem 1.6rem; overflow: auto; background: #fff; }
.rw-mm-fam:hover > .rw-mm-content, .rw-mm-fam:focus-within > .rw-mm-content { display: block; }
.rw-mm-rail:not(:has(.rw-mm-fam:hover)):not(:has(.rw-mm-fam:focus-within)) .rw-mm-fam:first-child > .rw-mm-content { display: block; }
.rw-mm-rail:not(:has(.rw-mm-fam:hover)):not(:has(.rw-mm-fam:focus-within)) .rw-mm-fam:first-child > .rw-mm-famlink { background: #fff; color: var(--rw-green-700); }
.rw-mm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--rw-line); }
.rw-mm-head h3 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.rw-nav .rw-mm-all { padding: 0; border-bottom: 0; font-size: .9rem; font-weight: 800; color: var(--rw-green-700); text-decoration: none; white-space: nowrap; }
.rw-mm-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 1.1rem 1.6rem; }
.rw-nav .rw-mm-cat { display: block; padding: .15rem 0 .35rem; border-bottom: 0; font-size: .98rem; font-weight: 700; color: var(--rw-ink); text-decoration: none; }
.rw-nav .rw-mm-cat:hover { color: var(--rw-green-700); }
.rw-mm-col ul { list-style: none; margin: 0; padding: 0; }
.rw-nav .rw-mm-col li a { display: block; padding: .22rem 0; border-bottom: 0; font-size: .86rem; font-weight: 500; color: var(--rw-muted); text-decoration: none; }
.rw-nav .rw-mm-col li a:hover { color: var(--rw-green-700); padding-left: .25rem; }
.rw-mm-empty { color: var(--rw-muted); }
.rw-mm-side { grid-column: 3; padding: 1.4rem 1.2rem; background: linear-gradient(160deg, var(--rw-deeper), var(--rw-deep)); color: #fff; display: flex; flex-direction: column; gap: .8rem; justify-content: flex-end; }
.rw-mm-side p { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.rw-nav .rw-mm-side .rw-btn { border-bottom: 0; padding: .5rem 1rem; text-align: center; }
.rw-nav .rw-mm-promo { display: inline-flex; align-items: center; gap: .4rem; padding: 0; border-bottom: 0; color: var(--rw-green); font-weight: 700; font-size: .9rem; text-decoration: none; }
.rw-mm-promo svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1180px) { .rw-mm { display: none !important; } }

/* ===== Top bar scorrevole (max 40 px) ===== */
.rw-topbar { height: 36px; max-height: 40px; overflow: hidden; display: flex; align-items: center; font-size: .8rem; font-weight: 600; letter-spacing: .01em; position: relative; z-index: 65; }
.rw-topbar-dark { background: #081a13; color: #d7efe4; } .rw-topbar-green { background: var(--rw-green); color: var(--rw-deeper); } .rw-topbar-light { background: var(--rw-mint-50); color: var(--rw-deep); border-bottom: 1px solid #cfeede; }
.rw-topbar-track { display: flex; width: max-content; animation: rwTicker 38s linear infinite; }
.rw-topbar-slow .rw-topbar-track { animation-duration: 60s; } .rw-topbar-fast .rw-topbar-track { animation-duration: 22s; }
.rw-topbar:hover .rw-topbar-track, .rw-topbar:focus-within .rw-topbar-track { animation-play-state: paused; }
.rw-topbar-set { display: flex; flex: none; align-items: center; }
.rw-topbar-set > * { display: inline-flex; align-items: center; padding: 0 1.6rem; white-space: nowrap; color: inherit; text-decoration: none; position: relative; }
.rw-topbar-set > *::after { content: ''; position: absolute; right: -.15rem; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; transform: translateY(-50%); }
.rw-topbar-set > a:hover { text-decoration: underline; }
@keyframes rwTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 760px) { .rw-topbar { height: 34px; font-size: .76rem; } }
@media (prefers-reduced-motion: reduce) { .rw-topbar-track { animation: none; } .rw-topbar-set[aria-hidden=true] { display: none; } .rw-topbar { justify-content: center; } }
/* Badge promozione sui prodotti */
.rw-promo-tag { display: inline-flex; align-items: center; gap: .3rem; margin: .1rem 0 .2rem; padding: .15rem .6rem; border-radius: 999px; background: #fff1cc; color: #8a5a00; font-size: .74rem; font-weight: 800; }
.rw-promo-tag svg { width: .85rem; height: .85rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Suggerimento «passa al modello superiore» */
.rw-row { position: relative; }
.rw-upg { position: relative; margin-top: .4rem; }
.rw-upg-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .7rem; border: 1.5px dashed var(--rw-green-600); border-radius: 999px; background: var(--rw-mint-50); color: var(--rw-deep); font: 700 .76rem var(--rw-font); cursor: pointer; animation: rwUpgIn .25s ease-out; }
.rw-upg-chip:hover { background: var(--rw-mint-100); }
.rw-upg-pop { display: none; position: absolute; left: 0; top: calc(100% + .4rem); z-index: 30; width: min(21rem, calc(100vw - 2rem)); padding: .9rem 1rem; background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(8, 26, 19, .4); }
.rw-upg:hover .rw-upg-pop, .rw-upg.is-open .rw-upg-pop, .rw-upg:focus-within .rw-upg-pop { display: block; }
.rw-upg-pop strong { display: block; font-size: .9rem; color: var(--rw-ink); }
.rw-upg-pop p { margin: .4rem 0 .2rem; font-weight: 700; color: var(--rw-green-700); font-size: .85rem; }
.rw-upg-pop small { display: block; color: var(--rw-muted); line-height: 1.3; }
.rw-upg-actions { display: flex; gap: .5rem; margin-top: .7rem; }
.rw-upg-actions .rw-btn, .rw-upg-actions .rw-btn-outline { min-height: 2.3rem; padding: 0 .9rem; font-size: .82rem; }
@keyframes rwUpgIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ===== Carrello: sconti chiari + riepilogo sotto ===== */
.rw-cart2-grid { grid-template-columns: 1fr !important; }
.rw-cart2-sum { position: static !important; }
.rw-cart2-sum form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem 1.6rem; align-items: start; }
.rw-cart2-sum form > input[type=hidden] { display: none; }
.rw-cart2-sumL { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.rw-cart2-sumR { grid-column: 2; grid-row: 1; min-width: 0; }
.rw-cart2-sumM { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.rw-cart2-sumB { grid-column: 2; grid-row: 2; align-self: end; }
.rw-cart2-sumM:empty { display: none; }
.rw-cart2-subrow { display: flex; justify-content: space-between; gap: 1rem; padding: .15rem 0 .15rem .8rem; font-size: .82rem; color: var(--rw-muted); }
.rw-cart2-subrow dt { font-weight: 500; } .rw-cart2-subrow dd { margin: 0; white-space: nowrap; }
.rw-cart2-bd { margin: .5rem 0 0; padding: .6rem .75rem; border-radius: 10px; background: var(--rw-mint-50); border: 1px solid rgba(11, 138, 96, .22); font-size: .8rem; max-width: 30rem; }
.rw-cart2-bd.is-excl { background: #fff8e6; border-color: #f0d28a; }
.rw-cart2-bd.is-cap { background: #fff8e6; border-color: #f0d28a; }
.rw-bd-t { display: flex; align-items: center; gap: .4rem; margin: 0 0 .35rem; font-weight: 700; color: var(--rw-deep); }
.rw-bd-t svg { width: .95rem; height: .95rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-bd-t strong { color: var(--rw-green-700); }
.rw-cart2-bd ul { list-style: none; margin: 0; padding: 0; }
.rw-cart2-bd li { display: flex; justify-content: space-between; gap: .8rem; padding: .12rem 0; }
.rw-cart2-bd li.is-on { color: var(--rw-ink); font-weight: 600; }
.rw-cart2-bd li.is-off { color: var(--rw-muted); text-decoration: line-through; }
.rw-cart2-bd li.is-off small { text-decoration: none; display: inline-block; }
.rw-bd-note { margin: .4rem 0 0; padding-top: .4rem; border-top: 1px dashed rgba(0, 0, 0, .15); color: #6b4a00; line-height: 1.4; }
.rw-cart2-bd:not(.is-excl):not(.is-cap) .rw-bd-note { color: var(--rw-muted); }
@media (max-width: 860px) {
    .rw-cart2-sum form { grid-template-columns: 1fr; }
    .rw-cart2-sumL, .rw-cart2-sumR, .rw-cart2-sumM, .rw-cart2-sumB { grid-column: 1; grid-row: auto; }
    .rw-cart2-sumR { order: 1; } .rw-cart2-sumL { order: 2; } .rw-cart2-sumM { order: 3; } .rw-cart2-sumB { order: 4; }
}

.rw-cart2-disc-warn { margin: .2rem 0 .4rem; padding: .5rem .65rem; border-radius: 8px; background: #fff8e6; border: 1px solid #f0d28a; color: #6b4a00; font-size: .8rem; line-height: 1.4; }

/* ===== Carrello minimal: pillole + piccoli popup ===== */
.rw-cart2-bd { display: none !important; }
.rw-bd { position: relative; display: inline-block; vertical-align: middle; margin-top: .35rem; }
.rw-bd-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .35rem .15rem .55rem; border: 0; border-radius: 999px; background: var(--rw-mint-100, #dff7ec); color: var(--rw-green-700); font: 700 .78rem var(--rw-font); cursor: pointer; }
.rw-bd-pill svg { width: .8rem; height: .8rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-bd-pill small { font-weight: 600; font-size: .7rem; opacity: .85; }
.rw-bd-pill i, .rw-bd-i { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: rgba(0,0,0,.08); font: 700 .68rem/1 Georgia, serif; font-style: italic; }
.rw-bd-i { border: 0; cursor: pointer; color: var(--rw-muted); width: 1.25rem; height: 1.25rem; }
.rw-bd.is-excl .rw-bd-pill, .rw-bd.is-cap .rw-bd-pill { background: #fff1cc; color: #8a5a00; }
.rw-bd-pop { display: none; position: absolute; left: 0; top: calc(100% + .35rem); z-index: 40; width: min(19rem, calc(100vw - 2rem)); padding: .8rem .9rem; background: #fff; border: 1px solid var(--rw-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(8, 26, 19, .16); font-size: .8rem; line-height: 1.4; color: var(--rw-text); text-align: left; }
.rw-bd.is-open .rw-bd-pop { display: block; }
@media (hover: hover) { .rw-bd:hover .rw-bd-pop { display: block; } }
.rw-bd-pop strong { display: block; margin-bottom: .35rem; color: var(--rw-ink); font-size: .84rem; }
.rw-bd-pop ul { list-style: none; margin: 0 0 .3rem; padding: 0; }
.rw-bd-pop li { display: flex; justify-content: space-between; gap: .8rem; padding: .1rem 0; }
.rw-bd-pop li.is-on { color: var(--rw-ink); font-weight: 600; } .rw-bd-pop li.is-off { color: var(--rw-muted); text-decoration: line-through; }
.rw-bd-pop p { margin: .35rem 0 0; color: var(--rw-muted); }
.rw-bd-pop p b { color: var(--rw-ink); }
/* righe prodotto piu leggere */
.rw-cart2-lines { border: 0; background: transparent; padding: 0; }
.rw-cart2-line { background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .6rem; }
.rw-cart2-line + .rw-cart2-line { border-top: 1px solid var(--rw-line); }
.rw-cart2-sub { font-size: .74rem; }
.rw-cart2-lhint { margin-top: .35rem; }
/* riga sconti del riepilogo */
.rw-cart2-disc { background: transparent; border: 0; padding: 0; margin: 0 0 .6rem; }
.rw-disc-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rw-disc-t { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 800; color: var(--rw-deep); }
.rw-disc-t svg { width: .95rem; height: .95rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-dchip { display: inline-flex; gap: .3rem; align-items: center; padding: .18rem .6rem; border-radius: 999px; background: var(--rw-mint-100, #dff7ec); color: var(--rw-deep); font-size: .78rem; font-weight: 600; }
.rw-dchip b { color: var(--rw-green-700); } .rw-dchip small { color: #8a5a00; font-weight: 700; }
.rw-disc-chips .rw-bd { margin-top: 0; }
.rw-disc-chips .rw-bd-pop { left: auto; right: 0; }
.rw-cart2-sum { border: 0; background: transparent; padding: .4rem 0 0; box-shadow: none; }
.rw-cart2-sum form { background: #fff; border: 1px solid var(--rw-line); border-radius: 14px; padding: 1rem 1.2rem; }
.rw-cart2-ship { background: transparent; padding: 0; color: var(--rw-muted); font-size: .78rem; }
.rw-cart2-sumM { gap: .6rem 1.4rem; }
.rw-cart2-pay { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.rw-cart2-pay legend { float: left; margin: 0 .5rem 0 0; }
@media (max-width: 700px) {
    .rw-bd-pop { position: fixed; left: 1rem; right: 1rem; top: auto; bottom: 1rem; width: auto; z-index: 90; box-shadow: 0 -6px 40px rgba(8, 26, 19, .3); }
    .rw-disc-chips .rw-bd-pop { left: 1rem; right: 1rem; }
}

/* ===== Coupon nel carrello ===== */
.rw-cpn { min-width: 0; }
.rw-cpn-t { display: flex; align-items: center; gap: .4rem; margin: 0 0 .4rem; font-size: .82rem; font-weight: 800; color: var(--rw-ink); }
.rw-cpn-t svg { width: .95rem; height: .95rem; fill: none; stroke: var(--rw-green-700); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rw-cpn-in { display: flex; gap: .4rem; }
.rw-cpn-in input { flex: 1; min-width: 0; min-height: 2.3rem; border: 1.5px solid #cfd9e0; border-radius: 10px; padding: 0 .7rem; font: 600 .85rem var(--rw-font); text-transform: uppercase; }
.rw-cpn-in input::placeholder { text-transform: none; font-weight: 500; color: var(--rw-muted); }
.rw-cpn-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.rw-cpn-chip { border: 1.5px dashed var(--rw-green-600); background: var(--rw-mint-50); color: var(--rw-deep); border-radius: 999px; padding: .25rem .75rem; font: 700 .78rem var(--rw-font); cursor: pointer; }
.rw-cpn-chip:hover { background: var(--rw-mint-100, #dff7ec); }
.rw-cpn-chip.is-off { opacity: .55; border-style: solid; }
.rw-cpn-chip small { font-weight: 600; }
.rw-cpn-on { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .45rem .7rem; border-radius: 10px; background: var(--rw-mint-100, #dff7ec); font-size: .84rem; color: var(--rw-deep); }
.rw-cpn-x { border: 0; background: transparent; color: var(--rw-muted); font: 600 .78rem var(--rw-font); text-decoration: underline; cursor: pointer; }
.rw-cpn-warn { margin: .4rem 0 0; font-size: .78rem; color: #8a5a00; }

/* ===== Filtri catalogo: giacenza a tendina, gradi piu piccoli ===== */
.rw-fselect { width: 100%; height: 2.3rem; padding: 0 2rem 0 .7rem; border: 1.5px solid #cfd9e0; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .6rem center / 1rem; -webkit-appearance: none; appearance: none; font: 600 .88rem var(--rw-font); color: var(--rw-ink); cursor: pointer; }
.rw-fselect:focus { outline: 0; border-color: var(--rw-green-600); box-shadow: 0 0 0 3px rgba(51, 230, 163, .25); }
.rw-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.rw-chips .rw-chip { background: none; padding: 0; border-radius: 0; display: block; }
.rw-chips .rw-chip span { min-width: 2.1rem; height: 1.9rem; padding: 0 .5rem; border-radius: 8px; font-size: .8rem; }
@media (max-width: 760px) { .rw-chips .rw-chip span { min-width: 2.3rem; height: 2.15rem; font-size: .85rem; } .rw-fselect { height: 2.6rem; } }
