/* ═══════════════════════════════════════════
   GYM TO HIT (G2H) — style.css
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;700&display=swap');

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:  #0a0a0a;
  --dark:   #111111;
  --card:   #1a1a1a;
  --red:    #e8220a;
  --red2:   #ff3d22;
  --white:  #f2ede8;
  --grey:   #777777;
  --font-h: 'Bebas Neue', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── TIPOGRAFIA ── */
.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

h2 span {
  color: var(--red);
}

.body-text {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(242, 237, 232, 0.78);
  line-height: 1.8;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 5%;
}

section {
  padding: 88px 0;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.96) 60%, transparent);
}

#header .logo img {
  height: 52px;
  width: auto;
}

#header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

#header nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,232,0.7);
  transition: color 0.2s;
}

#header nav a:hover {
  color: var(--red);
}

/* Hamburger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* Menu mobile overlay */
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

#mobile-nav.open {
  display: flex;
}

#mobile-nav a {
  font-family: var(--font-h);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--white);
  transition: color 0.2s;
}

#mobile-nav a:hover {
  color: var(--red);
}

#mobile-nav .close-btn {
  position: absolute;
  top: 24px;
  right: 5%;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

/* ══════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.18, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
}

/* Hero content */
.hero-content {
  position: absolute;
  bottom: 13%;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  padding: 0 5%;
}

.hero-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 4px 48px rgba(0,0,0,0.6);
  margin-bottom: 22px;
}

.hero-title span {
  color: var(--red);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(242,237,232,0.85);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 42px;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: var(--red2);
}

/* Slider controls */
.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  background: rgba(232,34,10,0.75);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slide-prev { left: 20px; }
.slide-next { right: 20px; }

.slide-prev:hover,
.slide-next:hover {
  background: var(--red);
}

.slide-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(242,237,232,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.dot.active {
  background: var(--red);
  transform: scale(1.5);
}

/* ══════════════════════════════════════════
   STRIP SCORREVOLE
══════════════════════════════════════════ */
#strip {
  background: var(--red);
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
}

.strip-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.strip-track span {
  font-family: var(--font-h);
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #fff;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   COS'È G2H
══════════════════════════════════════════ */
#cose {
  background: var(--dark);
}

.cose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cose-img-wrap {
  position: relative;
}

.cose-img-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cose-text .body-text {
  margin-bottom: 32px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--card);
  border: 1px solid rgba(232,34,10,0.3);
  color: rgba(242,237,232,0.85);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.pill:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ══════════════════════════════════════════
   PER CHI
══════════════════════════════════════════ */
#perchi {
  background: var(--black);
}

.perchi-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 52px;
}

.perchi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.perchi-card {
  background: var(--card);
  padding: 30px 24px;
  border-left: 3px solid var(--card);
  transition: border-color 0.25s, background 0.25s;
}

.perchi-card:hover {
  border-color: var(--red);
  background: #202020;
}

.perchi-card .icon {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.perchi-card p {
  font-size: 0.93rem;
  color: rgba(242,237,232,0.75);
  line-height: 1.6;
}

.perchi-note {
  margin-top: 36px;
  text-align: center;
  font-family: var(--font-h);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.perchi-note span {
  color: var(--red);
}

/* ══════════════════════════════════════════
   GALLERY VERTICALE
══════════════════════════════════════════ */
#gallery {
  background: var(--dark);
}

.gallery-head {
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 2 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ══════════════════════════════════════════
   BENEFICI
══════════════════════════════════════════ */
#benefici {
  background: var(--black);
}

.benefici-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.benefici-list {
  border-top: 1px solid rgba(242,237,232,0.1);
}

.bene-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(242,237,232,0.1);
}

.bene-num {
  font-family: var(--font-h);
  font-size: 1.9rem;
  color: var(--red);
  min-width: 44px;
  line-height: 1.1;
  padding-top: 2px;
}

.bene-text {
  font-size: 0.97rem;
  color: rgba(242,237,232,0.8);
  line-height: 1.65;
  padding-top: 4px;
}

.bene-text strong {
  color: var(--white);
  font-weight: 600;
}

.benefici-quote {
  background: var(--card);
  border-top: 4px solid var(--red);
  padding: 44px 38px;
  position: sticky;
  top: 120px;
}

.benefici-quote blockquote {
  font-family: var(--font-h);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 22px;
}

.benefici-quote blockquote span {
  color: var(--red);
}

.benefici-quote p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(242,237,232,0.6);
  line-height: 1.75;
}

/* ══════════════════════════════════════════
   OPEN DAY
══════════════════════════════════════════ */
#openday {
  background: var(--red);
  padding: 88px 0;
}

.openday-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

#openday .label {
  color: rgba(255,255,255,0.65);
}

#openday h2 {
  color: #fff;
}

#openday .body-text {
  color: rgba(255,255,255,0.85);
}

.od-list {
  border-top: 1px solid rgba(255,255,255,0.25);
}

.od-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.od-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  margin-top: 8px;
}

.od-item p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════ */
#contatti {
  background: var(--dark);
}

.contatti-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.contatti-inner h2 {
  margin-bottom: 16px;
}

.contatti-inner .body-text {
  margin-bottom: 52px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  background: var(--card);
  border: 1px solid rgba(242,237,232,0.1);
  padding: 32px 40px;
  min-width: 210px;
  transition: border-color 0.25s;
}

.contact-card:hover {
  border-color: var(--red);
}

.cc-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cc-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.cc-val {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.cc-val a {
  transition: color 0.2s;
}

.cc-val a:hover {
  color: var(--red);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer {
  background: var(--black);
  border-top: 1px solid rgba(242,237,232,0.07);
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

#footer .logo img {
  height: 38px;
  opacity: 0.65;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--grey);
  letter-spacing: 0.05em;
}

.footer-brand {
  font-family: var(--font-h);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--red);
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .cose-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cose-img-wrap {
    order: -1;
  }

  .cose-img-wrap img {
    aspect-ratio: 16 / 9;
  }

  .perchi-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .perchi-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefici-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .benefici-quote {
    position: static;
  }

  .openday-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 640px) {
  section {
    padding: 64px 0;
  }

  #header nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .perchi-cards {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-card {
    min-width: unset;
  }

  #footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .slide-prev,
  .slide-next {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}
@media (max-width: 640px) {
  #hero {
    height: auto;
  }

  .slides-track {
    height: 56vw;
  }

  .slide img {
    object-position: center top;
  }

  .slide-overlay {
    display: none;
  }

  .hero-content {
    position: static;
    transform: none;
    background: var(--dark);
    padding: 28px 5% 36px;
    text-align: center;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .slide-prev,
  .slide-next {
    top: 28vw;
  }

  .slide-dots {
    bottom: auto;
    top: calc(56vw - 28px);
  }
}
