/* Club Casa e Decoro nel negozio: pagina del programma, regolamento, account, righe di carrello e checkout.
   Colori del marchio (shop.css): rosso --red #a01916, blu notte --ink, bianco. */

.club-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--red, #a01916); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.club-chip .icon { width: 13px; height: 13px; flex: none; }
.club-chip.on-dark { background: #fff; color: var(--red, #a01916); }

/* --- Carrello e checkout ------------------------------------------------ */
.club-line { align-items: center; }
.club-line > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.club-line > span:last-child { white-space: nowrap; }
.club-note { margin: 2px 0 8px; padding: 9px 12px; border-radius: 10px; background: #f7f7f5; border: 1px solid var(--line, #e3e6e6); font-size: 13px; color: var(--muted, #565959); line-height: 1.45; }
div.club-note { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.club-note form { margin: 0; }
.club-note .link-btn { min-height: 40px; padding: 0 2px; }
.club-hint { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 10px; padding: 10px 12px; border-radius: 10px; background: #fdf4f3; border: 1px solid #f1d3d1; color: var(--text, #0f1111); font-size: 13.5px; line-height: 1.45; }
.club-hint .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--red, #a01916); }
.club-hint .text-link { display: inline-block; padding: 2px 0; }
.club-hint strong { white-space: nowrap; }

/* --- Riquadro nell'account ---------------------------------------------- */
.club-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 28px; margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--ink, #131921); color: #fff; }
.club-card h2 { font-size: 26px; margin: 10px 0 6px; color: #fff; overflow-wrap: anywhere; }
.club-card p { margin: 0; color: #e8eaed; }
.club-card strong { color: #fff; }
.club-card-side { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
.club-card-side .btn { align-self: flex-start; min-height: 40px; }
.club-card-spent { font-size: 14px; }

.club-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.club-bar > span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: var(--red, #a01916); }
.club-bar-lg { height: 14px; }
.club-bar-text { margin: 10px 0 0; font-size: 14.5px; }

/* --- Pagina del programma ----------------------------------------------- */
.club-hero { margin-top: 6px; padding: 36px 32px; border-radius: 18px; background: radial-gradient(800px 380px at 88% 0%, rgba(255, 255, 255, .14), transparent 62%), linear-gradient(115deg, #7c1310 0%, #a01916 55%, #b9221c 100%); color: #fff; }
.club-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; margin: 14px 0 12px; color: #fff; letter-spacing: -.02em; }
.club-hero-lead { max-width: 62ch; font-size: 17px; line-height: 1.5; color: #e8eaed; margin: 0; }
.club-hero-range { margin: 16px 0 0; font-size: 18px; color: #fff; }
.club-hero-range strong { color: #fff; font-size: 1.25em; }
.club-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.club-hero-actions .btn { min-height: 44px; }

.club-section { margin-top: 34px; }
.club-section > h2 { font-size: 22px; margin: 0 0 14px; }

.club-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.club-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line, #e3e6e6); border-radius: 14px; background: #fff; min-width: 0; }
.club-steps h3 { font-size: 17px; margin: 0 0 4px; }
.club-steps p { margin: 0; color: var(--muted, #565959); font-size: 14.5px; line-height: 1.45; }
.club-step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red, #a01916); color: #fff; font-weight: 700; }

.club-levels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.club-level { padding: 20px 18px; border: 1px solid var(--line, #e3e6e6); border-radius: 14px; background: #fff; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.club-level.is-mine { border: 2px solid var(--red, #a01916); box-shadow: 0 0 0 4px #f6d3d1; }
.club-level-step { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #565959); }
.club-level h3 { font-size: 21px; margin: 0; overflow-wrap: anywhere; }
.club-level-pct { margin: 4px 0 0; font-size: 40px; line-height: 1; font-weight: 700; color: var(--ink, #131921); letter-spacing: -.02em; }
.club-level-req { margin: 6px 0 0; font-size: 14.5px; }
.club-level-text { margin: 8px 0 0; font-size: 14px; color: var(--muted, #565959); line-height: 1.45; }

.club-conditions ul, .club-details ul, .club-benefits { margin: 0 0 12px; padding-left: 20px; }
.club-conditions li, .club-details li, .club-benefits li { margin-bottom: 8px; line-height: 1.5; }
.club-conditions { padding: 22px; border-radius: 14px; background: #f7f7f5; }
.club-conditions p { margin: 0; }
.club-conditions .text-link, .club-details .text-link { display: inline-block; padding: 9px 0; }
.club-page { padding-bottom: 20px; }

/* --- Regolamento --------------------------------------------------------- */
.club-rules-table { min-width: 0; }
.club-rules h3 { font-size: 17px; margin: 20px 0 6px; }
.club-rules ol { padding-left: 22px; }

/* --- Pagina nell'account ------------------------------------------------- */
.club-status { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px 32px; margin-top: 18px; padding: 26px; border-radius: 18px; background: linear-gradient(115deg, #7c1310 0%, #a01916 60%, #b9221c 100%); color: #fff; }
.club-status h2 { font-size: clamp(26px, 5vw, 36px); margin: 12px 0 0; color: #fff; overflow-wrap: anywhere; }
.club-status-pct { margin: 8px 0 0; font-size: 46px; line-height: 1; font-weight: 700; color: #fff; }
.club-status-pct small { display: block; margin-top: 6px; font-size: 14px; font-weight: 400; color: #e8eaed; }
.club-status-progress { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.club-status .text-link { color: #fff; text-decoration: underline; }
.club-figures { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 14px; }
.club-figures dt { font-size: 13px; color: #c9cdd2; }
.club-figures dd { margin: 2px 0 0; font-size: 24px; font-weight: 700; color: #fff; white-space: nowrap; }
.club-details { margin-top: 6px; }
.club-details summary { cursor: pointer; font-weight: 600; padding: 10px 0; min-height: 40px; }
.club-history { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #e3e6e6); border-radius: 14px; background: #fff; overflow: hidden; }
.club-history li { display: flex; gap: 6px 16px; flex-wrap: wrap; padding: 13px 16px; }
.club-history li + li { border-top: 1px solid var(--line, #e3e6e6); }
.club-history-date { flex: none; width: 92px; color: var(--muted, #565959); font-size: 14px; }
.club-history-text { min-width: 0; flex: 1 1 200px; overflow-wrap: anywhere; }
.club-account { padding-bottom: 20px; }

@media (max-width: 760px) {
  .club-hero { padding: 26px 20px; border-radius: 14px; }
  .club-hero-lead { font-size: 16px; }
  .club-hero-actions .btn { flex: 1 1 100%; }
  .club-steps { grid-template-columns: minmax(0, 1fr); }
  .club-card, .club-status { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .club-levels { grid-template-columns: minmax(0, 1fr); }
  .club-level-pct { font-size: 34px; }
  .club-status-pct { font-size: 40px; }
}

/* --- Targhetta «il tuo prezzo Club Casa e Decoro» (schede e pagina prodotto) -----------
   Nera come la barra del negozio: sopra cosa è (pallino giallo, «Il tuo prezzo Club Casa e Decoro»),
   sotto il prezzo in grande e lo sconto su fondo giallo. Su schede strette la scritta si
   accorcia in «Club Casa e Decoro». */
.club-pill { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; max-width: 100%; padding: 7px 12px 8px; border-radius: 12px; background: var(--red, #a01916); color: #fff; box-shadow: 0 2px 6px rgba(19, 25, 33, .16); line-height: 1.2; }
.club-pill-label { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; flex: none; }
.club-pill.is-promo .club-pill-dot { background: transparent; box-shadow: inset 0 0 0 2px #fff; }
.club-pill-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.club-pill-price { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.club-pill-pct { padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--red, #a01916); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.club-pill-extra { font-size: 12.5px; color: #cfd5da; margin-top: 2px; }
.club-pill-extra strong { color: #fff; }
.club-pill-title { display: none; }
.club-slot-lg .club-pill { width: auto; padding: 12px 18px 13px; border-radius: 16px; gap: 4px; }
.club-slot-lg .club-pill-label { font-size: 12px; }
.club-slot-lg .club-pill-price { font-size: 26px; }
.club-slot-lg .club-pill-pct { font-size: 13px; padding: 2px 9px; }
@container clubslot (max-width: 170px) {
  .club-pill-long { display: none; }
  .club-pill { padding: 6px 9px 7px; }
  .club-pill-row { gap: 5px; flex-wrap: nowrap; }
  .club-pill-price { font-size: 14.5px; }
  .club-pill-pct { font-size: 10.5px; padding: 1px 5px; }
}

/* --- Carrello, carrello a scomparsa e checkout: lo sconto Club Casa e Decoro in evidenza ---- */
.club-save { margin: 6px 0 10px; padding: 11px 14px; border-radius: 12px; background: #fdf4f3; border: 1px solid #efc6c3; }
.club-save-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.club-save-what { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.club-save-level { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.club-save-amount { font-size: 18px; font-weight: 800; white-space: nowrap; color: var(--ink, #131921); }
.club-save-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted, #565959); }
.club-line-price { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 2px; font-size: 14px; }
.club-line-price s { color: var(--muted, #565959); font-size: 13px; }
.club-line-price strong { font-weight: 800; }
.club-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--red, #a01916); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.club-tag .icon { width: 11px; height: 11px; }
.club-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 18px; }
.club-tot s { font-size: 13px; color: var(--muted, #565959); font-weight: 500; }
.club-tot span { font-weight: 800; }
.club-tot small { font-size: 12px; color: var(--green, #007600); font-weight: 700; white-space: nowrap; }
.club-mini { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.club-mini s { font-size: 12px; color: var(--muted, #565959); font-weight: 500; }
.drawer-total.is-club { color: var(--ink, #131921); }
@media (max-width: 720px) {
  .club-tot { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; justify-content: flex-start; }
}

/* --- Regolamento: sommario degli articoli --------------------------------- */
.club-rules-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 12px; }
.club-rules-layout > .prose { margin-top: 0; }
.club-rules-toc { position: sticky; top: 140px; min-width: 0; }
.club-rules-toc details { border: 1px solid var(--line, #e3e6e6); border-radius: 14px; background: #f7f7f5; padding: 6px 14px 10px; }
.club-rules-toc summary { cursor: pointer; font-weight: 700; padding: 8px 0; min-height: 40px; display: flex; align-items: center; }
.club-rules-toc ol { margin: 0; padding-left: 0; list-style: none; font-size: 13.5px; }
.club-rules-toc a { display: block; padding: 6px 0; color: var(--text, #0f1111); overflow-wrap: anywhere; }
.club-rules-toc a:hover { text-decoration: underline; }
.club-rules h2 { scroll-margin-top: 140px; }
@media (max-width: 900px) {
  .club-rules-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .club-rules-toc { position: static; }
  .club-rules-toc details:not([open]) { padding-bottom: 6px; }
}
/* Carrello su telefono: il totale della riga con lo sconto sta sotto i comandi, non sopra «Rimuovi». */
@media (max-width: 900px) {
  .cart-line .tot.club-tot { position: static; grid-column: 2; margin-top: 2px; font-size: 17px !important; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .cart-line:has(.club-tot) .actions { padding-right: 0; }
}

/* Bottoni sul riquadro rosso del club: bianchi col testo rosso, il secondo solo contornato (rosso su rosso non si vede). */
.club-hero .btn:not(.btn-ghost), .club-status .btn:not(.btn-ghost) { background: #fff; border-color: #fff; color: var(--red, #a01916); }
.club-hero .btn:not(.btn-ghost):hover, .club-status .btn:not(.btn-ghost):hover { background: #fdf4f3; border-color: #fdf4f3; color: var(--red-hover, #7f1311); }
.club-hero .btn-ghost, .club-status .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .8); color: #fff; }
.club-hero .btn-ghost:hover, .club-status .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.club-hero .btn:focus-visible, .club-status .btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
