/* ═══════════════════════════════════════════════════════
   FitExpress — Single Club  |  Poppins · Light
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --y:     #FFD600;
  --yd:    rgba(255,214,0,.18);
  --yl:    rgba(255,214,0,.10);
  --black: #111;
  --light: #F6F6F6;
  --white: #fff;
  --bdr:   rgba(0,0,0,.07);
  --text:  #222;
  --muted: #999;
  --ease:  cubic-bezier(.16,1,.3,1);
  --hh:    80px; /* default; overridden by wp_add_inline_style */
}

.site-main,
.elementor-section-wrap,
#primary,
.page-content,
main.site-main {
  padding-top: 0 !important;
  margin-top:  0 !important;
}
body.elementor-page { padding-top: 0 !important; }

html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }

.club-page {
  background: var(--white);
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
}

/* ── HERO ── */
.club-hero {
  position: relative;
  margin-top: calc(-1.5 * var(--hh));
  height: calc(90vh + var(--hh));
  min-height: 600px;
  display: grid;
  place-items: end;
  overflow: hidden;
}

.club-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 35%;
  transition: transform 10s ease;
}
.club-hero:hover .club-hero__bg { transform: scale(1.02); }

.club-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg,   rgba(0,0,0,.85) 0%, rgba(0,0,0,.50) 45%, rgba(0,0,0,.25) 100%),
    linear-gradient(90deg,  rgba(0,0,0,.55) 0%, transparent 65%);
}

.club-hero__content {
  position: relative; z-index: 2;
  width: 100%;
  padding: var(--hh) 6vw 7vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 2rem;
}

.club-hero__left { max-width: 65%; }

.club-hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--y); margin-bottom: 1rem;
  opacity: 0; animation: up .6s .1s var(--ease) forwards;
}
.club-hero__tag::before {
  content: ''; width: 1.6rem; height: 2px; background: var(--y);
}

.club-hero__title {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-weight: 700; line-height: 1.05;
  color: #fff; letter-spacing: -.02em;
  opacity: 0; animation: up .7s .25s var(--ease) forwards;
}

.club-hero__addr {
  margin-top: 1rem;
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 400;
  color: rgba(255,255,255,.55);
  opacity: 0; animation: up .6s .4s var(--ease) forwards;
}
.club-hero__addr i { color: var(--y); }

.club-hero__actions {
  display: flex; flex-direction: column;
  gap: .7rem; align-items: flex-end;
  opacity: 0; animation: up .6s .5s var(--ease) forwards;
}

/* ── BUTTONS ── */
.btn-y, .btn-wire, .btn-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Poppins', sans-serif;
  font-size: .95rem; font-weight: 600;
  padding: .85rem 1.85rem; border-radius: 40px;
  text-decoration: none; white-space: nowrap;
  transition: all .2s ease; border: none; cursor: pointer;
}
.btn-y   { background: var(--y);  color: var(--black); }
.btn-y:hover { background: #fff; box-shadow: 0 6px 24px rgba(255,214,0,.4); transform: translateY(-2px); }

.btn-wire { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-wire:hover { border-color: var(--y); color: var(--y); }

/* ── INFO STRIP ── */
.club-strip {
  background: var(--black);
  display: flex; overflow-x: auto; scrollbar-width: none;
  padding: 0 6vw;
}
.club-strip::-webkit-scrollbar { display: none; }

.club-strip__item {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 2.2rem 1.1rem 0;
  margin-right: 2.2rem;
  border-right: 1px solid rgba(255,255,255,.07);
  white-space: nowrap; flex-shrink: 0;
}
.club-strip__item:last-child { border-right: none; }

.club-strip__icon {
  width: 32px; height: 32px;
  background: var(--yl); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--y); font-size: .85rem; flex-shrink: 0;
}
.club-strip__lbl {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.35); display: block; margin-bottom: 2px;
}
.club-strip__val { font-size: .9rem; font-weight: 400; color: rgba(255,255,255,.8); }
.club-strip__badge {
  background: var(--y); color: var(--black);
  font-weight: 700; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}

.club-promo-bar__badge--gift {
  background: var(--black);
  color: var(--y);
  display: inline-flex;
  align-items: center;
}
.s-promo__badge--gift {
  background: var(--black);
  color: var(--y);
  display: inline-flex;
  align-items: center;
}
.club-promo-bar {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding: .65rem 6vw;
  display: flex;
  align-items: center;
  gap: .85rem;
  font-family: 'Poppins', sans-serif;
  animation: promoSlide .4s var(--ease) both;
}
@keyframes promoSlide {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0); }
}
.club-promo-bar__badge {
  background: var(--y); color: var(--black);
  font-size: .65rem; font-weight: 800;
  padding: .25rem .7rem; border-radius: 20px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: .04em; text-transform: uppercase;
}
.club-promo-bar__text {
  flex: 1; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.club-promo-bar__label {
  font-size: .8rem; font-weight: 600; color: #111;
}
.club-promo-bar__sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: #ccc; flex-shrink: 0;
}
.club-promo-bar__exp {
  font-size: .75rem; color: #999; font-weight: 400;
}
.club-promo-bar__btn {
  display: inline-flex; align-items: center; gap: .3rem;
  background: #111; color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .72rem; font-weight: 600;
  padding: .42rem 1rem; border-radius: 20px;
  text-decoration: none; white-space: nowrap;
  transition: all .2s; flex-shrink: 0;
  border: none; cursor: pointer; letter-spacing: .01em;
}
.club-promo-bar__btn:hover {
  background: var(--y); color: #111;
}
@media (max-width: 560px) {
  .club-promo-bar { padding: .6rem 1rem; gap: .6rem; }
  .club-promo-bar__sep { display: none; }
  .club-promo-bar__exp { display: none; }
}

/* ── BODY LAYOUT ── */
.club-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4.5rem;
  padding: 4vw 6vw 5vw;
  align-items: start;
}

/* ── EYEBROW ── */
.eyebrow {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--y);
  display: flex; align-items: center; gap: .5rem;
  margin-bottom: .8rem;
}
.eyebrow::before {
  content: ''; width: 1.4rem; height: 2px;
  background: var(--y); border-radius: 2px;
}

/* ── DESCRIZIONE ── */
.club-desc__title {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 700; line-height: 1.15;
  color: var(--black); margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}
.club-desc__title span { color: var(--y); }

.club-desc__body {
  font-size: 1rem; line-height: 1.85;
  color: #555; max-width: 54ch;
}
.club-desc__body p + p { margin-top: .85rem; }

/* ── TITOLI SEZIONE ── */
.club-section-title {
  font-size: 1.25rem; font-weight: 700;
  color: var(--black); margin-bottom: 1rem;
  letter-spacing: -.02em;
}

/* ── ATTREZZATURE ── */
.club-equip { margin-top: 2.5rem; }

.club-equip__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .5rem;
}

.club-feat {
  display: flex; align-items: center; gap: .8rem;
  font-size: .9rem; font-weight: 500; color: var(--black);
  padding: .85rem 1rem;
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.club-feat__icon {
  width: 36px; height: 36px;
  background: var(--yl); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--y); font-size: .9rem; flex-shrink: 0;
}
.club-feat:hover {
  border-color: rgba(255,214,0,.4);
  box-shadow: 0 2px 10px rgba(255,214,0,.1);
  transform: translateY(-1px);
}

/* ── MAPPA ── */
.club-map-section { margin-top: 2.5rem; }

.club-map-wrap {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--bdr);
  height: 320px; position: relative;
}
.club-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

.club-map-wrap__link {
  position: absolute; bottom: .75rem; right: .75rem;
  background: var(--white); color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-size: .7rem; font-weight: 600;
  padding: .4rem .9rem; border-radius: 20px;
  text-decoration: none;
  display: flex; align-items: center; gap: .35rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  transition: background .2s;
}
.club-map-wrap__link:hover { background: var(--y); }

/* ── SIDEBAR ── */
.club-sidebar {
  position: sticky;
  top: calc(var(--hh) + 1.5rem);
  align-self: start;
}

.s-card {
  background: var(--white);
  border: 1px solid var(--bdr);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

.s-card__title {
  font-size: 1.45rem; font-weight: 800;
  color: var(--black); letter-spacing: -.03em;
  margin-bottom: 1.2rem; display: block;
}

.s-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.s-row:last-child { border-bottom: none; padding-bottom: 0; }

.s-icon {
  width: 44px; height: 44px;
  background: var(--yl); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--y); font-size: 1rem; flex-shrink: 0;
}

.s-lbl {
  font-size: .75rem; font-weight: 400; color: #999;
  margin-bottom: 2px; display: block;
}
.s-val {
  font-size: 1rem; font-weight: 500; color: var(--black);
  text-decoration: none; display: block; line-height: 1.4;
  word-break: break-word; overflow-wrap: break-word;
  transition: color .2s;
}
a.s-val:hover { color: var(--y); }

.s-247 {
  font-size: 2.5rem; font-weight: 900;
  color: var(--black); line-height: 1; letter-spacing: -.04em;
}
.s-247-sub {
  font-size: .75rem; font-weight: 400; color: #bbb;
  display: block; margin-top: 3px;
}

/* ── SIDEBAR PROMO CARD — Apple style ── */
.s-promo {
  background: var(--white);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.s-promo::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--y);
}
.s-promo__top {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: .9rem;
}
.s-promo__badge {
  display: inline-flex; align-items: center;
  background: var(--y); color: var(--black);
  font-size: .7rem; font-weight: 800;
  padding: .3rem .8rem; border-radius: 20px;
  letter-spacing: .04em; text-transform: uppercase;
}
.s-promo__exp {
  font-size: .7rem; color: #999; font-weight: 400;
}
.s-promo__label {
  font-size: .95rem; font-weight: 700; color: var(--black);
  margin-bottom: 1rem; line-height: 1.3;
}
.s-promo__link {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%;
  background: var(--black); color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem; font-weight: 600;
  padding: .72rem 1rem; border-radius: 12px;
  text-decoration: none; transition: all .2s;
  letter-spacing: .01em;
}
.s-promo__link:hover {
  background: var(--y); color: var(--black);
  transform: translateY(-1px);
}
.s-promo__link svg { transition: transform .2s; }
.s-promo__link:hover svg { transform: translateX(2px); }

/* CTA */
.s-cta {
  background: var(--black); border-radius: 18px;
  padding: 1.75rem; text-align: center;
  box-shadow: 0 6px 28px rgba(0,0,0,.15);
}
.s-cta__title {
  font-size: 1.8rem; font-weight: 900;
  color: #fff; line-height: 1.05;
  margin-bottom: .35rem; letter-spacing: -.04em;
}
.s-cta__title span { color: var(--y); }
.s-cta__sub {
  font-size: .9rem; color: rgba(255,255,255,.35);
  margin-bottom: 1.25rem;
}
.btn-cta {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--y); color: var(--black);
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1rem;
  padding: .9rem 1.5rem; border-radius: 40px;
  text-decoration: none; transition: all .25s; width: 100%;
}
.btn-cta:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,214,0,.3); }

/* ── GALLERY ── */
.club-gallery { background: var(--light); padding: 4vw 6vw 5vw; }

.club-gallery__head { margin-bottom: 1.75rem; }
.club-gallery__title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--black);
  line-height: 1.1; letter-spacing: -.02em;
}
.club-gallery__title span { color: var(--y); }

.club-gallery__grid {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  gap: 8px;
}
.g-item {
  overflow: hidden; border-radius: 8px;
  position: relative; cursor: pointer;
  grid-column: span 4; aspect-ratio: 4/3;
}
.g-item:nth-child(1) { grid-column: span 8; aspect-ratio: 16/9; }
.g-item:nth-child(6) { grid-column: span 5; aspect-ratio: 16/9; }
.g-item:nth-child(7) { grid-column: span 7; aspect-ratio: 16/9; }

.g-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s var(--ease), filter .4s;
  filter: brightness(.92);
}
.g-item:hover img { transform: scale(1.05); filter: brightness(1); }

.g-item__over {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0); transition: background .3s;
  display: flex; align-items: center; justify-content: center;
}
.g-item:hover .g-item__over { background: rgba(0,0,0,.18); }

.g-item__zoom {
  width: 40px; height: 40px; background: var(--y);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); opacity: 0; transform: scale(.5);
  transition: all .3s var(--ease);
}
.g-item:hover .g-item__zoom { opacity: 1; transform: scale(1); }

/* ── LIGHTBOX ── */
.lb {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.95); z-index: 99999;
  align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.lb.on { display: flex; }
.lb img { max-width: 88vw; max-height: 86vh; object-fit: contain; border-radius: 6px; animation: lbIn .3s var(--ease); }
@keyframes lbIn { from{opacity:0;transform:scale(.96);}to{opacity:1;transform:scale(1);} }

.lb__close, .lb__nav {
  position: absolute; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14); border-radius: 50%;
  color: #fff; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all .2s;
}
.lb__close { top: 1.5rem; right: 1.5rem; width: 42px; height: 42px; font-size: 1.2rem; }
.lb__nav   { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lb__close:hover, .lb__nav:hover { background: var(--y); color: var(--black); border-color: var(--y); }
.lb__prev { left: 2rem; }
.lb__next { right: 2rem; }
.lb__counter {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; font-weight: 500; letter-spacing: .15em; color: rgba(255,255,255,.4);
}

/* ── ANIMAZIONI ── */
@keyframes up {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.rv { opacity:0; transform:translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .club-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .club-sidebar { position: static; top: auto; }
  .club-equip__grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  :root { --hh: 60px; }
  .club-hero { height: calc(92vh + var(--hh)); min-height: 520px; }
  .club-hero__content { grid-template-columns: 1fr; padding-bottom: 5vh; gap: 1.25rem; }
  .club-hero__left { max-width: 100%; }
  .club-hero__actions { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: .6rem; }
  .club-hero__title { font-size: clamp(2rem, 10vw, 3.2rem); }
  .club-strip__item { padding: 1rem 1.5rem 1rem 0; margin-right: 1.5rem; }
  .club-body { padding: 7vw 5vw 8vw; }
  .club-gallery { padding: 7vw 5vw 8vw; }
  .club-equip__grid { grid-template-columns: 1fr 1fr; }
  .club-map-wrap { height: 260px; }
  .g-item, .g-item:nth-child(n) { grid-column: span 12 !important; aspect-ratio: 16/9 !important; }
  .club-gallery__grid { gap: 4px; }
  .s-card { padding: 1.35rem; }
  .s-cta  { padding: 1.5rem; }
  .lb__prev { left: .75rem; }
  .lb__next { right: .75rem; }
}

@media (max-width: 480px) {
  .club-hero__actions { flex-direction: column; }
  .club-equip__grid   { grid-template-columns: 1fr; }
}

/* ── Palinsesto Corsi PDF ──────────────────────────────────── */
.club-palinsesto {
  margin-top: 2rem;
}
.club-palinsesto__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: #111;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.club-palinsesto__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.club-palinsesto__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,214,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFD600;
}
.club-palinsesto__text {
  flex: 1;
  min-width: 0;
}
.club-palinsesto__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.club-palinsesto__sub {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}
.club-palinsesto__arrow {
  flex-shrink: 0;
  color: #FFD600;
  opacity: .6;
  transition: opacity .15s, transform .15s;
}
.club-palinsesto__link:hover .club-palinsesto__arrow {
  opacity: 1;
  transform: translateX(3px);
}