/* ============================================================
   v2 club landing — Black Week hero (club/v2/section/hero-black-week.html.twig),
   loaded only while bw_club.active. The black band on top is css/v2/bw-marquee.css.
   Design (canvas of 2026-11-20): "WO-Landing-club" (1440 desktop: band, then a 560px stage with
   the photo right, text left) and "WO-Landing-club-movil" (390 mobile: band, photo, text), banner
   "semana". Mobile first; desktop from UIkit @m (960px).

   Sizes are the design's pixels times a unit that follows the viewport below the
   design width and stays at 1px above it: --bf-bw-u = min(1px, 100vw / 390) on
   mobile, min(1px, 100vw / 1440) on desktop. A 960px screen gets the 1440 layout
   at 2/3, a 360px phone the 390 one at 92%.
   ============================================================ */

.bf-club-bw {
  --bf-bw-u: min(1px, calc(100vw / 390));
  --bf-bw-gold: #997A00;
  position: relative;
  overflow: hidden;
  background: var(--bf-c-sand);
  color: var(--bf-c-black);
}

/* Euro amounts as in the design ("24,95 €"): amount_of_money glues the sign to the number; a thin
   gap before it, as the home/province hero and the bar (bf-bw--eur, campaign-hero.css). */
.bf-club-bw.bf-bw--eur .currency {
  margin-left: .12em;
}

/* ---- Photo: under the band on mobile (390:195, the design's crop), right column on desktop ---- */

.bf-club-bw__media {
  display: block;
}

.bf-club-bw__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 195;
  max-height: 440px;
  object-fit: cover;
  object-position: 50% 54%;
}

/* ---- Text column ---- */

.bf-club-bw__content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(16 * var(--bf-bw-u));
  padding: calc(24 * var(--bf-bw-u)) 0 calc(26 * var(--bf-bw-u));
}

.bf-club-bw .bf-club-bw__title {
  margin: 0;
  font: 900 calc(66 * var(--bf-bw-u))/.85 var(--bf-font-numeric);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bf-c-black);
}

/* Price card: pack + price + "valued at" | gloves + gift line. The gloves overflow its top edge. */
.bf-club-bw__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  gap: calc(8 * var(--bf-bw-u));
  margin-top: calc(34 * var(--bf-bw-u));
  padding: calc(14 * var(--bf-bw-u)) calc(12 * var(--bf-bw-u));
  background: var(--bf-c-white);
  border-radius: calc(9 * var(--bf-bw-u));
  box-shadow: 0 calc(6 * var(--bf-bw-u)) calc(17 * var(--bf-bw-u)) rgba(0, 0, 0, .08);
}

.bf-club-bw__offer {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--bf-bw-u));
  min-width: 0;
}

/* 21px in the design; our DIN cut is wider, so 19px keeps the Spanish line in its column (es is
   the reference). en needs 18px; it and de are too long for one line: they wrap. */
.bf-club-bw .bf-club-bw__pack {
  margin: 0;
  padding-top: 2px;
  font: 400 calc(19 * var(--bf-bw-u))/.9 var(--bf-font-display);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bf-c-black);
}

@media (max-width: 959px) {
  .bf-v2.language-en-ie .bf-club-bw .bf-club-bw__pack,
  .bf-v2.language-en-us .bf-club-bw .bf-club-bw__pack {
    font-size: calc(18 * var(--bf-bw-u));
  }

  .bf-v2.language-it-it .bf-club-bw .bf-club-bw__pack,
  .bf-v2.language-de-de .bf-club-bw .bf-club-bw__pack {
    white-space: normal;
  }
}

/* VIP ("4+1 clases…", bw_club.sessions_label): the pack line is longer than the design's and would
   push the card past its column (onto the photo on desktop): a smaller pack line. */
.bf-club-bw .bf-club-bw__pack--label {
  font-size: calc(17 * var(--bf-bw-u));
}

/* fr and es-mx: price + "D'une valeur de" / "Con valor de" are 2-5px wider than their column (with
   the euro gap): a tighter price. */
.bf-v2.language-fr-fr .bf-club-bw .bf-club-bw__price,
.bf-v2.language-es-mx .bf-club-bw .bf-club-bw__price {
  letter-spacing: .02em;
}

/* it and de: the gift line's first line ("Guantoni e fasciature", "Handschuhe & Bandagen") is too
   wide for the card, on mobile (the price row overflows) as on desktop (the card runs onto the
   photo): it wraps at about 7.5em. */
.bf-v2.language-it-it .bf-club-bw .bf-club-bw__gift-label,
.bf-v2.language-de-de .bf-club-bw .bf-club-bw__gift-label {
  max-width: 7.5em;
  white-space: normal;
}

.bf-club-bw__pricing {
  display: flex;
  align-items: flex-end;
  gap: calc(6 * var(--bf-bw-u));
  white-space: nowrap;
}

.bf-club-bw .bf-club-bw__price {
  margin: 0;
  font: 900 calc(48 * var(--bf-bw-u))/.85 var(--bf-font-numeric);
  letter-spacing: .04em;
  color: var(--bf-c-black);
}

.bf-club-bw .bf-club-bw__value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(2 * var(--bf-bw-u));
  margin: 0;
  padding-bottom: 2px;
  color: var(--bf-bw-gold);
}

.bf-club-bw__value-label {
  padding-top: 1px;
  font: 400 calc(11 * var(--bf-bw-u))/.9 var(--bf-font-display);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bf-club-bw__value-amount {
  font: 800 calc(21 * var(--bf-bw-u))/.85 var(--bf-font-numeric);
  letter-spacing: .04em;
}

.bf-club-bw__divider {
  flex: 0 0 1px;
  align-self: stretch;
  width: 1px;
  background: var(--bf-c-line-light);
}

.bf-club-bw__gift {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(5 * var(--bf-bw-u));
}

.bf-club-bw__gloves {
  display: block;
  width: auto;
  height: calc(82.8 * var(--bf-bw-u));
  margin-top: calc(-36 * var(--bf-bw-u));
  filter: drop-shadow(0 calc(5 * var(--bf-bw-u)) calc(7 * var(--bf-bw-u)) rgba(0, 0, 0, .18));
}

.bf-club-bw .bf-club-bw__gift-label {
  margin: 0;
  font: 700 calc(13 * var(--bf-bw-u))/1.15 var(--bf-font-body);
  text-align: center;
  white-space: nowrap;
}

/* CTA full width on mobile (480px max on tablets), trial link centred under it. */
.bf-club-bw__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  gap: calc(16 * var(--bf-bw-u));
}

/* DIN Condensed (the design's DIN 700); black with white text on hover, as every Black Week CTA
   (.bf-btn--primary's own hover is black with yellow text). */
.bf-club-bw .bf-club-bw__cta {
  align-self: stretch;
  height: calc(56 * var(--bf-bw-u));
  padding: 0 20px;
  font: 400 calc(26 * var(--bf-bw-u))/.85 var(--bf-font-display);
  letter-spacing: 0;
}

.bf-club-bw .bf-club-bw__cta:focus-visible {
  background: var(--bf-c-black);
  color: var(--bf-c-white);
}

@media (hover: hover) {
  .bf-club-bw .bf-club-bw__cta:hover {
    background: var(--bf-c-black);
    color: var(--bf-c-white);
  }
}

.bf-club-bw .bf-club-bw__trial,
.bf-club-bw .bf-club-bw__trial:hover {
  padding-bottom: 2px;
  font: 400 calc(15 * var(--bf-bw-u))/1.3 var(--bf-font-body);
  color: var(--bf-c-black);
  text-decoration: none;
  border-bottom: 2px solid var(--bf-bw-gold);
}

.bf-club-bw .bf-club-bw__trial b {
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 640px) and (max-width: 959px) {
  .bf-club-bw__actions {
    max-width: 480px;
  }
}

/* ---- Desktop: 560px stage (scaled) under the band, photo on the right 689/1440 of the width ---- */

@media (min-width: 960px) {
  .bf-club-bw {
    --bf-bw-u: min(1px, calc(100vw / 1440));
  }

  .bf-club-bw__stage {
    position: relative;
  }

  .bf-club-bw__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(689 / 1440 * 100%);
  }

  .bf-club-bw__photo {
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    object-position: 50% 50%;
  }

  .bf-club-bw__inner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(560 * var(--bf-bw-u));
  }

  /* The design's 64px left edge, scaled: the container's fixed 48px gutter is taken back (as the
     home hero, campaign-hero.css). */
  .bf-club-bw__content {
    align-items: flex-start;
    gap: calc(24 * var(--bf-bw-u));
    width: calc(663 * var(--bf-bw-u));
    margin-left: calc(64 * var(--bf-bw-u) - var(--bf-gutter-desktop));
    padding: calc(24 * var(--bf-bw-u)) 0;
  }

  .bf-club-bw .bf-club-bw__title {
    font-size: calc(118 * var(--bf-bw-u));
  }

  .bf-club-bw__card {
    align-self: flex-start;
    justify-content: flex-start;
    gap: calc(22 * var(--bf-bw-u));
    margin-top: calc(26 * var(--bf-bw-u));
    padding: calc(20 * var(--bf-bw-u)) calc(24 * var(--bf-bw-u));
    border-radius: calc(16 * var(--bf-bw-u));
    box-shadow: 0 calc(10 * var(--bf-bw-u)) calc(30 * var(--bf-bw-u)) rgba(0, 0, 0, .08);
  }

  .bf-club-bw__offer {
    gap: calc(6 * var(--bf-bw-u));
  }

  .bf-club-bw .bf-club-bw__pack {
    padding-top: 4px;
    font-size: calc(40 * var(--bf-bw-u));
  }

  /* "4 sessioni per appassionarti" is 10px wider than its column at 40px. */
  .bf-v2.language-it-it .bf-club-bw .bf-club-bw__pack {
    font-size: calc(38 * var(--bf-bw-u));
  }

  .bf-club-bw .bf-club-bw__pack--label,
  .bf-v2.language-it-it .bf-club-bw .bf-club-bw__pack--label {
    font-size: calc(34 * var(--bf-bw-u));
  }

  .bf-club-bw__pricing {
    gap: calc(10 * var(--bf-bw-u));
  }

  .bf-club-bw .bf-club-bw__price {
    font-size: calc(91 * var(--bf-bw-u));
  }

  .bf-club-bw .bf-club-bw__value {
    gap: calc(3 * var(--bf-bw-u));
    padding-bottom: 3px;
  }

  .bf-club-bw__value-label {
    padding-top: 2px;
    font-size: calc(22 * var(--bf-bw-u));
  }

  .bf-club-bw__value-amount {
    font-size: calc(39 * var(--bf-bw-u));
  }

  .bf-club-bw__gift {
    gap: calc(7 * var(--bf-bw-u));
  }

  .bf-club-bw__gloves {
    height: calc(128.7 * var(--bf-bw-u));
    margin-top: calc(-56.7 * var(--bf-bw-u));
    filter: drop-shadow(0 calc(7 * var(--bf-bw-u)) calc(11 * var(--bf-bw-u)) rgba(0, 0, 0, .18));
  }

  .bf-club-bw .bf-club-bw__gift-label {
    font-size: calc(20 * var(--bf-bw-u));
  }

  .bf-club-bw__actions {
    flex-direction: row;
    align-self: flex-start;
  }

  .bf-club-bw .bf-club-bw__cta {
    align-self: auto;
    height: calc(60 * var(--bf-bw-u));
    padding: 0 calc(36 * var(--bf-bw-u));
    font-size: calc(28 * var(--bf-bw-u));
  }
}

/* Wide screens: the photo follows the page grid instead of the viewport (same rule as the
   home/province hero, campaign-hero.css): it starts 24px after the 663px text column and ends on
   the grid's right edge, the offset growing from 0 between 1440 and 1520px. */
@media (min-width: 1441px) {
  .bf-club-bw__media {
    left: calc(max(var(--bf-gutter-desktop), (100% - 1360px) / 2) + 703px);
    right: max(0px, min(100% - 1440px, (100% - 1360px) / 2));
    width: auto;
  }
}
