/* ══════════════════════════════════════════════════════════════
   Home – restyling 2026 (widget in inc/elementor-widgets/home-widgets.php)
   Misure dall'anteprima di Marika: contenitore max 1980px, gutter 50px (10px mobile).
   ══════════════════════════════════════════════════════════════ */
.rsc, .rcs {
    max-width: 2080px; /* 1980 + 50+50 di margine, come i contenitori Elementor */
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    line-height: normal;
    color: #fff;
}
.rsc { padding-top: 72px; padding-bottom: 56px; }
.rcs { padding-top: 24px; padding-bottom: 72px; }
@media (max-width: 767px) {
    .rsc, .rcs { padding-left: 10px; padding-right: 10px; }
}
.rhome__h2 {
    margin: 0;
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 700 !important;
    font-size: 44px !important;
    line-height: normal !important;
    letter-spacing: .08em !important;
    text-transform: uppercase;
    color: #fff;
}
.rhome__btn {
    align-self: center;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 32px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    color: #fff !important;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}
.rhome__btn:hover { background: #fff; color: #000 !important; }

/* ── Shop by category ── */
.rsc__ancora { display: block; height: 0; }
.rsc__tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.rsc__tab {
    min-height: 44px;
    padding: 0 24px !important;
    border-radius: 999px !important;
    border: 1.5px solid #fff !important;
    background: transparent !important;
    color: #fff !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    width: auto !important;
}
.rsc__tab.is-on, .rsc__tab[aria-selected="true"] { background: #fff !important; color: #000 !important; }
.rsc__box {
    background: #111;
    border: 1px solid #1E1E1E;
    border-radius: 20px;
    padding: clamp(16px, 3vw, 40px) 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}
@media (max-width: 767px) { .rsc__box { padding-left: 10px; padding-right: 10px; } }
.rsc__panel[hidden] { display: none !important; }

/* ── Componi il tuo setup ── */
.rcs__wrap { display: flex; flex-wrap: wrap; gap: 20px; }
.rcs__media {
    flex: 999 1 520px;
    min-width: 0;
    position: relative;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
}
.rcs__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.rcs__lista { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.rcs__item {
    display: flex;
    gap: 16px;
    align-items: center;
    background: #000;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    padding: 14px;
}
.rcs__thumb { flex-shrink: 0; display: block; }
.rcs__thumb img { width: 112px; height: 112px !important; border-radius: 12px; object-fit: cover; display: block; }
.rcs__info { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.rcs__nome { font-family: Orbitron, sans-serif; font-size: 17px; letter-spacing: .1em; color: #fff !important; text-decoration: none !important; text-transform: uppercase; }
.rcs__cat { font-size: 12px; letter-spacing: .06em; color: #BDBDBD; text-transform: uppercase; }
.rcs__prezzo { font-size: 18px; }
.rcs__prezzo .woocommerce-price-suffix { display: block; font-size: 12px; color: #BDBDBD; margin: 2px 0 0; } /* "(IVA escl.)" a capo */
.rcs__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 18px !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #000 !important;
    border: 0 !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 12px !important;
    font-weight: 500;
    letter-spacing: .08em;
    text-decoration: none !important;
    cursor: pointer;
    width: auto !important;
}
.rcs__btn:hover { opacity: .85; }
.rcs__btn.is-loading { opacity: .6; pointer-events: none; }
.rcs__nota { font-size: 14px; letter-spacing: .04em; color: #BDBDBD; text-align: center; padding-top: 4px; }
@media (max-width: 767px) {
    .rcs__media { min-height: 320px; flex-basis: 100%; }
    .rcs__thumb img { width: 84px; height: 84px !important; }
}

/* ── Black Friday (visibile solo con body.rome-bf-promo-on, vedi black-friday.js) ── */
.rbf {
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    letter-spacing: normal;
    line-height: normal;
    margin-top: 16px;
}
.rbf::before, .rbf::after { content: ""; position: absolute; left: 0; right: 0; height: 60%; pointer-events: none; z-index: 1; }
.rbf::before { top: 0; background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(255,255,255,.34) 0, rgba(255,255,255,.12) 45%, transparent 80%); }
.rbf::after { bottom: 0; background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255,255,255,.34) 0, rgba(255,255,255,.12) 45%, transparent 80%); }
.rbf__in {
    position: relative;
    z-index: 2;
    max-width: 2080px; /* 1980 + 50+50 di margine, come i contenitori Elementor */
    margin: 0 auto;
    padding: 22px 50px 14px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 290px;
    gap: 14px 34px;
    align-items: center;
}
.rbf__blk { width: 300px; display: flex; flex-direction: column; align-items: stretch; }
.rbf__fit { display: inline-block; white-space: nowrap; line-height: 1 !important; margin: 0; font-family: Orbitron, sans-serif !important; align-self: flex-start; color: #fff; letter-spacing: normal !important; }
.rbf__h { font-weight: 700 !important; font-size: 34px; }
.rbf__big { font-weight: 900 !important; margin-top: 6px; font-size: 96px; }
.rbf__top { font-family: 'Exo 2', sans-serif !important; font-weight: 500 !important; color: #E6E6E6; text-transform: uppercase; margin-top: 12px; font-size: 15px; }
.rbf__m { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rbf__date { display: flex; align-items: center; gap: 14px; font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.rbf__date i { flex: 1; height: 1px; background: rgba(255,255,255,.4); }
.rbf__date span { text-align: center; }
.rbf__cd { display: flex; gap: 8px; }
.rbf__c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1.5px solid #fff; border-radius: 12px; }
.rbf__c span { font-family: Orbitron, sans-serif; font-size: 22px; font-weight: 500; letter-spacing: .06em; line-height: 1; }
.rbf__c small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #CFCFCF; }
.rbf__r { display: flex; flex-direction: column; gap: 10px; }
.rbf__code {
    position: relative;
    background: transparent !important;
    color: #fff !important;
    border: 1.5px solid #fff !important;
    border-radius: 12px !important;
    padding: 8px 38px 10px !important;
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    transition: background .2s;
    width: auto !important;
}
.rbf__code:hover { background: rgba(255,255,255,.12) !important; }
.rbf__code.is-ok { background: #fff !important; color: #000 !important; }
.rbf__code.is-ok .rbf__l { color: #333; }
.rbf__l { display: block; font-size: 11px; letter-spacing: .2em; color: #9A9A9A; text-transform: uppercase; }
.rbf__v { display: block; margin-top: 4px; font-family: Orbitron, sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .1em; }
.rbf__code svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); opacity: .8; }
.rbf__cta {
    min-height: 40px;
    padding: 0 24px;
    border-radius: 999px;
    background: #fff;
    color: #000 !important;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rbf__cta:hover { background: #D9D9D9; }
.rbf__legal { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.25); font-size: 11.5px; line-height: 1.4; letter-spacing: .03em; color: #BDBDBD; text-align: center; }
@media (max-width: 1000px) {
    .rbf::before, .rbf::after { height: 34%; }
    .rbf__in { grid-template-columns: 1fr; padding: 20px 16px 16px; gap: 16px; }
    .rbf__blk { width: min(100%, 300px); margin: 0 auto; }
    .rbf__fit { align-self: center; }
    .rbf__top { text-align: center; }
    .rbf__date span { font-size: 12px; letter-spacing: .06em; text-wrap: balance; }
    .rbf__legal { text-wrap: balance; }
}
@media (max-width: 700px) {
    .rbf { margin-top: 12px; }
    .rbf__in { padding: 14px 16px 10px; gap: 10px; }
    .rbf__blk { width: min(100%, 210px); }
    .rbf__top { margin-top: 8px; }
    .rbf__m { gap: 8px; }
    .rbf__date span { font-size: 10.5px; letter-spacing: .05em; }
    .rbf__c { padding: 5px 2px; gap: 2px; }
    .rbf__c span { font-size: 17px; }
    .rbf__c small { font-size: 8.5px; letter-spacing: .14em; }
    .rbf__r { flex-direction: row; gap: 8px; }
    .rbf__code { flex: 1.25; padding: 6px 26px 7px 8px !important; }
    .rbf__l { font-size: 8.5px; letter-spacing: .12em; }
    .rbf__v { font-size: 13px; letter-spacing: .06em; margin-top: 2px; }
    .rbf__code svg { right: 7px; width: 13px; height: 13px; }
    .rbf__cta { flex: 1; min-height: 0; padding: 0 6px; font-size: 11px; }
    .rbf__legal { padding-top: 8px; font-size: 9.5px; line-height: 1.35; }
}
