/* ==========================================================================
   WebCar Rewards — presenza pubblica (Step 11.1)
   Blocco homepage + landing /rewards/ + vetrina /rewards/store/.
   Sistema colori approvato (campione-colori.html): notte #0a1526,
   elettrico #38b6ff, CTA accesa a testo scuro. Nessun linguaggio bancario.
   ========================================================================== */

:root {
  --rw-notte: #0a1526;
  --rw-notte-2: #10223f;
  --rw-elettrico: #38b6ff;
  --rw-inchiostro-su-acceso: #06121f;
  --rw-ink: #14213d;
  --rw-muted: #68748b;
  --rw-paper: #f5f7fb;
  --rw-line: #dfe4ed;
}

/* --------------------------------------------------------------------------
   1. Wallet dimostrativo (condiviso: home + hero landing).
   Saldo PURAMENTE illustrativo, mai dato cliente.
   -------------------------------------------------------------------------- */
.rw-wallet-demo {
  position: relative;
  max-width: 330px;
  margin: 0 auto;
  padding: 24px 22px 18px;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(23, 48, 92, 0.92), rgba(8, 18, 36, 0.96));
  border: 1px solid rgba(56, 182, 255, 0.28);
  box-shadow: 0 28px 70px rgba(3, 12, 28, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: #fff;
}
.rw-wallet-demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: radial-gradient(120px 60px at 82% 0%, rgba(56, 182, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.rw-wallet-demo > small {
  display: block;
  font-size: 10px;
  letter-spacing: 2.4px;
  color: rgba(255, 255, 255, 0.66);
}
.rw-wallet-balance {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 2px;
}
.rw-wallet-balance b {
  font-size: 46px;
  line-height: 1;
  letter-spacing: -1px;
}
.rw-wallet-balance span {
  font-size: 15px;
  font-weight: 700;
  color: var(--rw-elettrico);
}
.rw-wallet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.rw-wallet-chips li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 11px;
}
.rw-wallet-demo > p {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   2. Banner homepage — barra orizzontale sottile che introduce Rewards
   prima di WebCar Twin/Concierge. Stessa logica visiva della striscia
   "Quanto vale?": copy a sinistra, fotografia che sfuma da destra.
   -------------------------------------------------------------------------- */
.home-rewards {
  padding: 28px 0 6px;
}
.home-rewards-strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px 30px;
  min-height: 108px;
  background: linear-gradient(90deg, #0a1526 0%, #10305e 48%, #1663e0 88%, #38b6ff 118%);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-rewards-strip:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(10, 21, 38, 0.25);
}
.home-rewards-copy {
  display: grid;
  gap: 4px;
  z-index: 2;
  max-width: 56ch;
}
.home-rewards-copy small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #9fd5ff;
}
.home-rewards-copy strong {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.3px;
}
.home-rewards-copy > span {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.home-rewards-parity-pill {
  z-index: 2;
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  white-space: nowrap;
}
.home-rewards-cta {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--rw-ink);
  background: #fff;
  border-radius: 10px;
  padding: 13px 22px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.home-rewards-strip:hover .home-rewards-cta {
  background: var(--rw-elettrico);
  color: var(--rw-inchiostro-su-acceso);
}
/* la fotografia entra da destra e sfuma nel gradiente, come la striscia usato:
   mobilità + valore, la coupé blu elettrico del sistema colori */
.home-rewards-foto {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 34%;
  background: image-set(url("assets/premium/strada-libera-1200.webp") type("image/webp"), url("assets/premium/strada-libera.jpg") type("image/jpeg")) center 60% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
  opacity: 0.95;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .home-rewards-strip {
    flex-wrap: wrap;
    padding: 22px;
    gap: 14px;
  }
  .home-rewards-foto {
    display: none;
  }
  .home-rewards-parity-pill {
    margin-left: 0;
  }
}
.home-rewards-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.6px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(56, 182, 255, 0.35);
  border-radius: 999px;
  padding: 7px 14px;
}
.home-rewards-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rw-elettrico);
  box-shadow: 0 0 12px var(--rw-elettrico);
}
.home-rewards-parity {
  margin: 0 0 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}
.home-rewards-parity b {
  color: #fff;
  font-size: 14px;
}
.home-rewards-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.rw-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.rw-cta.is-accesa {
  background: var(--rw-elettrico);
  color: var(--rw-inchiostro-su-acceso);
  box-shadow: 0 16px 44px rgba(56, 182, 255, 0.35);
}
.rw-cta.is-accesa:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(56, 182, 255, 0.45);
}
.rw-cta.is-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.rw-cta.is-ghost:hover {
  border-color: rgba(56, 182, 255, 0.7);
  background: rgba(56, 182, 255, 0.1);
}
/* --------------------------------------------------------------------------
   3. Pagine pubbliche /rewards/ e /rewards/store/ — impianto comune.
   -------------------------------------------------------------------------- */
.rwp-hero {
  background: linear-gradient(175deg, var(--rw-notte) 0%, #10305e 62%, #1b5aa4 100%);
  color: #fff;
  padding: 118px 0 64px;
  overflow: hidden;
}
.rwp-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.rwp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.8px;
}
.rwp-hero h1 em {
  font-style: normal;
  color: var(--rw-elettrico);
}
.rwp-hero-lead {
  margin: 0 0 22px;
  max-width: 54ch;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.84);
}
.rwp-hero .home-rewards-parity {
  margin-bottom: 26px;
}
.rwp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: var(--rw-inchiostro-su-acceso);
  background: var(--rw-elettrico);
  border-radius: 999px;
  padding: 6px 13px;
}
@media (min-width: 900px) {
  .rwp-hero {
    padding: 138px 0 84px;
  }
  .rwp-hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

.rwp-section {
  padding: 56px 0;
}
.rwp-section.is-paper {
  background: var(--rw-paper);
}
.rwp-section.is-notte {
  background: linear-gradient(160deg, var(--rw-notte), var(--rw-notte-2));
  color: #fff;
}
.rwp-heading {
  max-width: 640px;
  margin-bottom: 34px;
}
.rwp-heading small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: #2a6fd6;
  margin-bottom: 10px;
}
.rwp-section.is-notte .rwp-heading small {
  color: var(--rw-elettrico);
}
.rwp-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--rw-ink);
}
.rwp-section.is-notte .rwp-heading h2 {
  color: #fff;
}
.rwp-heading p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--rw-muted);
}
.rwp-section.is-notte .rwp-heading p {
  color: rgba(255, 255, 255, 0.72);
}

/* Come funziona — 4 passi */
.rwp-steps {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: rwp-step;
}
.rwp-steps li {
  position: relative;
  counter-increment: rwp-step;
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 18px;
  padding: 22px 20px 20px 20px;
  box-shadow: 0 14px 40px rgba(13, 39, 86, 0.06);
}
.rwp-steps li::before {
  content: "0" counter(rwp-step);
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--rw-elettrico);
  margin-bottom: 10px;
}
.rwp-steps strong {
  display: block;
  font-size: 16px;
  color: var(--rw-ink);
  margin-bottom: 6px;
}
.rwp-steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--rw-muted);
}
@media (min-width: 760px) {
  .rwp-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .rwp-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* I 4 modi per ottenere Coin */
.rwp-ways {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rwp-ways li {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 18px;
  padding: 24px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rwp-ways li:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 182, 255, 0.55);
  box-shadow: 0 20px 50px rgba(13, 39, 86, 0.1);
}
.rwp-ways i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(56, 182, 255, 0.16), rgba(12, 85, 217, 0.12));
  margin-bottom: 14px;
}
.rwp-ways svg {
  width: 21px;
  height: 21px;
  stroke: #1663e0;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rwp-ways strong {
  display: block;
  font-size: 16.5px;
  color: var(--rw-ink);
  margin-bottom: 7px;
}
.rwp-ways p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--rw-muted);
}
@media (min-width: 760px) {
  .rwp-ways {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .rwp-ways {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 1 Coin = 1 € */
.rwp-value-panel {
  display: grid;
  gap: 22px;
  background: linear-gradient(150deg, var(--rw-notte), #123c6e);
  color: #fff;
  border-radius: 24px;
  padding: 36px 26px;
  text-align: center;
}
.rwp-value-panel b {
  display: block;
  font-size: clamp(34px, 6vw, 54px);
  letter-spacing: -1px;
  line-height: 1;
}
.rwp-value-panel b em {
  font-style: normal;
  color: var(--rw-elettrico);
}
.rwp-value-panel p {
  margin: 0 auto;
  max-width: 56ch;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
}

/* Wallet spiegato: Disponibili / In arrivo */
.rwp-wallet-cards {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rwp-wallet-cards li {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 18px;
  padding: 24px 22px;
}
.rwp-wallet-cards b {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
}
.rwp-wallet-cards li:first-child b {
  color: #0b6b46;
  background: rgba(13, 166, 120, 0.12);
}
.rwp-wallet-cards li:last-child b {
  color: #8a5a00;
  background: rgba(255, 176, 32, 0.16);
}
.rwp-wallet-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--rw-muted);
}
@media (min-width: 760px) {
  .rwp-wallet-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Invito accesso / registrazione */
.rwp-access {
  display: grid;
  gap: 14px;
}
.rwp-access article {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
}
.rwp-access h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--rw-ink);
}
.rwp-access p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--rw-muted);
}
.rwp-access .rw-cta.is-accesa {
  box-shadow: 0 12px 34px rgba(56, 182, 255, 0.28);
}
.rwp-access .rw-cta.is-scura {
  background: var(--rw-notte-2);
  color: #fff;
}
.rwp-access .rw-cta.is-scura:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 21, 38, 0.35);
}
@media (min-width: 760px) {
  .rwp-access {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */
.rwp-faq {
  display: grid;
  gap: 10px;
  max-width: 780px;
}
.rwp-faq details {
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 14px;
  padding: 0 18px;
}
.rwp-faq details[open] {
  border-color: rgba(56, 182, 255, 0.55);
}
.rwp-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rw-ink);
}
.rwp-faq summary::-webkit-details-marker {
  display: none;
}
.rwp-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 19px;
  font-weight: 600;
  color: #1663e0;
}
.rwp-faq details[open] summary::after {
  content: "−";
}
.rwp-faq details p {
  margin: 0;
  padding: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--rw-muted);
}

/* --------------------------------------------------------------------------
   4. Rewards Store — vetrina pubblica (discovery, nessuna redemption).
   -------------------------------------------------------------------------- */
.rws-avviso {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: rgba(56, 182, 255, 0.09);
  border: 1px solid rgba(56, 182, 255, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--rw-ink);
}
.rws-avviso b {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.8px;
  color: var(--rw-inchiostro-su-acceso);
  background: var(--rw-elettrico);
  border-radius: 999px;
  padding: 5px 11px;
}
.rws-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
body.wc-premium .rws-cats li {
  font-size: 12.5px;
  font-weight: 700;
  color: #14213d;
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 999px;
  padding: 8px 15px;
}

/* Le categorie sono superfici chiare anche quando vivono in una sezione notte. */
body.wc-premium .rwp-section.is-notte .rws-cats li {
  color: #14213d;
}
.rws-grid {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.rws-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--rw-line);
  border-radius: 18px;
  padding: 22px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.rws-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 182, 255, 0.5);
  box-shadow: 0 20px 50px rgba(13, 39, 86, 0.09);
}
.rws-card > small {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #2a6fd6;
}
.rws-card h3 {
  margin: 0;
  font-size: 17px;
  color: var(--rw-ink);
}
.rws-card > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.58;
  color: var(--rw-muted);
}
.rws-tagli {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.rws-tagli li {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--rw-notte-2);
  background: rgba(56, 182, 255, 0.13);
  border-radius: 9px;
  padding: 6px 11px;
}
.rws-stato {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #8a5a00;
  background: rgba(255, 176, 32, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
}
.rws-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1663e0;
  text-decoration: none;
}
.rws-card-cta:hover {
  text-decoration: underline;
}
@media (min-width: 700px) {
  .rws-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .rws-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rws-doppio {
  display: grid;
  gap: 14px;
}
.rws-doppio article {
  border-radius: 20px;
  padding: 28px 24px;
}
.rws-doppio article:first-child {
  background: #fff;
  border: 1px solid var(--rw-line);
}
.rws-doppio article:last-child {
  background: linear-gradient(150deg, var(--rw-notte), #123c6e);
  color: #fff;
}
.rws-doppio h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.rws-doppio article:first-child h3 {
  color: var(--rw-ink);
}
.rws-doppio p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
}
.rws-doppio article:first-child p {
  color: var(--rw-muted);
}
.rws-doppio article:last-child p {
  color: rgba(255, 255, 255, 0.78);
}
@media (min-width: 860px) {
  .rws-doppio {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   5. Accessibilità e movimento.
   -------------------------------------------------------------------------- */
.home-rewards a:focus-visible,
.rwp-hero a:focus-visible,
.rwp-section a:focus-visible,
.rwp-faq summary:focus-visible,
.rws-card a:focus-visible {
  outline: 3px solid var(--rw-elettrico);
  outline-offset: 3px;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .rw-cta,
  .home-rewards-strip,
  .rwp-ways li,
  .rws-card {
    transition: none;
  }
  .rw-cta:hover,
  .home-rewards-strip:hover,
  .rwp-ways li:hover,
  .rws-card:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Rewards Store pubblico (Step 15.2): schede dei SINGOLI prodotti.
   Visual brand-neutral (monogramma + nome), mai loghi non verificati.
   -------------------------------------------------------------------------- */
.rws-filtri {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}
.rws-filtri button {
  border: 1px solid var(--rw-line);
  background: #fff;
  color: var(--rw-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font: 600 12.5px/1 inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rws-filtri button:hover {
  color: var(--rw-ink);
  border-color: rgba(56, 182, 255, 0.55);
}
.rws-filtri button.is-active {
  background: var(--rw-notte);
  border-color: var(--rw-notte);
  color: #fff;
}
.rws-card.rws-prodotto {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.rws-visual {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  text-align: center;
  padding: 18px 16px;
}
.rws-visual b {
  font-size: 30px;
  letter-spacing: 2px;
  opacity: 0.95;
}
.rws-visual span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  opacity: 0.85;
}
.rws-visual[data-tone="sky"] { background: linear-gradient(135deg, #1c64d8, #123c8f); }
.rws-visual[data-tone="ember"] { background: linear-gradient(135deg, #d8541c, #8f2a12); }
.rws-visual[data-tone="royal"] { background: linear-gradient(135deg, #4338ca, #1e1b4b); }
.rws-visual[data-tone="rose"] { background: linear-gradient(135deg, #be3a63, #6d1d3a); }
.rws-visual[data-tone="steel"] { background: linear-gradient(135deg, #33475f, #101d2e); }
.rws-visual[data-tone="plum"] { background: linear-gradient(135deg, #7c3aed, #3b1673); }
.rws-visual[data-tone="teal"] { background: linear-gradient(135deg, #0d9488, #064e46); }
.rws-visual[data-tone="sand"] { background: linear-gradient(135deg, #b07d2b, #6b4712); }
.rws-visual[data-tone="forest"] { background: linear-gradient(135deg, #15803d, #0a3d1f); }
.rws-visual[data-tone="navy"] { background: linear-gradient(135deg, #0b2d62, #061a38); }
.rws-visual[data-tone="night"] { background: linear-gradient(135deg, #0b2d62, #1c64d8); }
.rws-visual[data-tone="ink"] { background: linear-gradient(135deg, #16181d, #04050a); }

/* ------------------------------------------------------------------ */
/* WebCar Essentials — foto prodotto, badge IN ARRIVO, banner linea    */
/* ------------------------------------------------------------------ */
.rws-visual.is-photo {
  min-height: 0;
  aspect-ratio: 4 / 3;
  padding: clamp(9px, 1.15vw, 14px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.98) 0 36%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(145deg, #f9fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid rgba(10, 21, 38, 0.07);
}
.rws-visual.is-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.rws-stato.is-arrivo {
  color: #0b2d62;
  background: rgba(28, 100, 216, 0.14);
}
.rws-card-nota {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0b2d62;
  letter-spacing: 0.4px;
}
@media (max-width: 620px) {
  .rws-visual.is-photo {
    aspect-ratio: 5 / 4;
    padding: 10px;
  }
}
.rws-essentials .container { max-width: 1160px; }
.rws-essentials-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0c0f16;
  color: #fff;
  border: 1px solid rgba(122, 162, 224, 0.14);
  box-shadow: 0 26px 60px rgba(4, 10, 24, 0.32);
}
.rws-essentials-foto {
  position: relative;
  height: 100%;
}
.rws-essentials-foto img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  /* leggero polish fotografico: piu' luce e materia, mai patine */
  filter: brightness(1.05) saturate(1.06) contrast(1.02);
}
/* raccordo morbido tra fotografia e pannello testuale: niente taglio netto */
.rws-essentials-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 15, 22, 0) 58%, rgba(12, 15, 22, 0.55) 86%, #0c0f16 100%);
  pointer-events: none;
}
.rws-essentials-testo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 34px 38px 34px 30px;
}
/* accento freddo discreto dietro al testo: profondita' senza peso */
.rws-essentials-testo::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -70px;
  width: 300px;
  height: 300px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(28, 100, 216, 0.16), transparent 70%);
  pointer-events: none;
}
.rws-essentials-testo .rws-stato { position: static; }
/* badge su pannello scuro: testo chiaro, mai navy su navy */
.rws-essentials-testo .rws-stato.is-arrivo {
  color: #d9e6ff;
  background: rgba(28, 100, 216, 0.38);
}
.rws-essentials-testo small {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: #9fb6d8;
}
.rws-essentials-testo h2,
.rws-essentials-testo h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  color: #fff;
}
.rws-essentials-testo p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #c9d6ea;
}
@media (max-width: 860px) {
  .rws-essentials-banner { grid-template-columns: 1fr; }
  .rws-essentials-foto img { min-height: 200px; max-height: 260px; }
  .rws-essentials-testo { padding: 24px 22px 28px; }
  /* impilato: il raccordo passa dal lato destro al bordo inferiore */
  .rws-essentials-foto::after {
    background: linear-gradient(180deg, rgba(12, 15, 22, 0) 55%, rgba(12, 15, 22, 0.6) 86%, #0c0f16 100%);
  }
}
.rws-prodotto-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px;
  flex: 1;
}
.rws-prodotto-body h3 {
  margin: 0;
  font-size: 17px;
}
.rws-prodotto-body p {
  margin: 0;
  font-size: 13px;
  color: var(--rw-muted);
  line-height: 1.55;
}
.rws-stato.is-live {
  color: #0b6b46;
  background: rgba(13, 166, 120, 0.12);
}

/* ==========================================================================
   UI VISUAL FIX MASTER — 9 agosto 2026
   Superfici Rewards premium, immagini editoriali e stati accessibili.
   Nessuna regola modifica economia, Wallet, API o checkout.
   ========================================================================== */

.rwp-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 30%, rgba(52, 124, 255, 0.24), transparent 36%),
    linear-gradient(145deg, #071321 0%, var(--rw-notte) 44%, #123b76 100%);
}

.rwp-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto -12vw -46% 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(56, 182, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 78px rgba(56, 182, 255, 0.025), 0 0 0 156px rgba(56, 182, 255, 0.018);
  pointer-events: none;
}

.rwp-hero-visual,
.rwp-store-hero-visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(150, 202, 255, 0.18);
  border-radius: 24px;
  background: #07111f;
  box-shadow: 0 34px 84px rgba(1, 8, 22, 0.48);
}

.rwp-hero-visual {
  min-height: 470px;
}

.rwp-hero-visual::after,
.rwp-store-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(3, 10, 22, 0.42));
  pointer-events: none;
}

.rwp-hero-visual picture,
.rwp-store-hero-visual,
.rwp-store-hero-visual img {
  display: block;
}

.rwp-hero-visual picture,
.rwp-hero-visual picture img,
.rwp-store-hero-visual img {
  width: 100%;
  height: 100%;
}

.rwp-hero-visual picture {
  position: absolute;
  inset: 0;
}

.rwp-hero-visual picture img,
.rwp-store-hero-visual img {
  object-fit: cover;
}

.rwp-hero-visual picture img {
  object-position: 64% center;
}

.rwp-store-hero-visual img {
  object-position: 68% center;
}

.rwp-hero-visual .rw-wallet-demo {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 22px;
  width: min(290px, calc(100% - 44px));
  margin: 0;
  padding: 18px 18px 14px;
  background: rgba(8, 20, 39, 0.9);
  border-color: rgba(111, 192, 255, 0.38);
  box-shadow: 0 22px 55px rgba(1, 8, 22, 0.42);
}

.rwp-hero-visual .rw-wallet-balance b {
  font-size: 38px;
}

.rwp-store-hero-visual {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  align-self: center;
}

.home-rewards-strip {
  min-height: 132px;
  padding-right: min(39vw, 520px);
  background: linear-gradient(98deg, #071321 0%, #0a1b34 43%, #123f87 100%);
  border: 1px solid rgba(93, 168, 255, 0.28);
  box-shadow: 0 18px 48px rgba(8, 24, 51, 0.18);
}

.home-rewards-strip::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 19, 33, 0) 46%, rgba(7, 19, 33, 0.08) 70%, rgba(7, 19, 33, 0.28) 100%);
  pointer-events: none;
}

.home-rewards-foto {
  width: 48%;
  background-image: image-set(
    url("assets/premium/rewards-wallet-banner-photo-20260809-v3-1000.webp") type("image/webp"),
    url("assets/premium/rewards-wallet-banner-photo-20260809-v3.jpg") type("image/jpeg")
  );
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 32%);
}

.home-rewards-copy {
  max-width: 48ch;
}

.home-rewards-copy > span {
  color: rgba(239, 246, 255, 0.82);
}

.rws-filtri {
  gap: 10px;
  margin-bottom: 24px;
}

.rws-filtri button {
  min-height: 42px;
  border-color: #cfd9e7;
  background: #fff;
  color: #33415c;
  box-shadow: 0 6px 18px rgba(10, 21, 38, 0.045);
  font-weight: 700;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.rws-filtri button:hover:not(:disabled) {
  color: #0a3d8f;
  border-color: #5f9bea;
  background: #eef5ff;
  transform: translateY(-1px);
}

.rws-filtri button:focus-visible {
  outline: 3px solid var(--rw-elettrico);
  outline-offset: 3px;
}

.rws-filtri button.is-active,
.rws-filtri button[aria-pressed="true"] {
  border-color: #0f4fbf;
  background: #0f4fbf;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 79, 191, 0.24);
}

.rws-filtri button:disabled {
  cursor: not-allowed;
  border-color: #dde3ec;
  background: #eef1f5;
  color: #8793a6;
  box-shadow: none;
  opacity: 1;
}

@media (max-width: 899px) {
  .rwp-hero-visual {
    min-height: 390px;
  }

  .rwp-store-hero-visual {
    min-height: 300px;
  }

  .home-rewards-strip {
    padding-right: 22px;
    background: #071321;
  }

  .home-rewards-foto {
    display: block;
    width: 100%;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), #000 58%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.18), #000 58%);
  }

  .home-rewards-copy {
    max-width: 60ch;
  }
}

@media (max-width: 560px) {
  .rwp-hero {
    padding-top: 104px;
  }

  .rwp-hero-visual {
    min-height: 350px;
    border-radius: 18px;
  }

  .rwp-hero-visual picture img {
    object-position: 62% center;
  }

  .rwp-hero-visual .rw-wallet-demo {
    left: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .rwp-store-hero-visual {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    border-radius: 18px;
  }

  .rwp-store-hero-visual img {
    object-position: 68% center;
  }

  .home-rewards-strip {
    min-height: 210px;
    align-content: flex-end;
  }

  .home-rewards-foto {
    background-position: 62% center;
    opacity: 0.38;
  }

  .home-rewards-copy > span {
    font-size: 13px;
  }

  .home-rewards-cta {
    width: 100%;
    justify-content: space-between;
  }
}
.rws-tagli.is-prodotto li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rws-tagli.is-prodotto li b {
  color: var(--rw-notte);
}
.rws-tagli.is-prodotto li.is-off {
  opacity: 0.45;
}
.rws-prodotto .rws-card-cta {
  margin-top: auto;
  padding-top: 8px;
}

/* PERF: la foto della barra Rewards parte quando la barra si avvicina al viewport (vedi webcar-premium.js) */
html.js .home-rewards-foto:not(.wc-bg-ready) { background-image: none; }
