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

:root {
  --bg-dark: #191919;
  --topbar-h: 40px;
  --navbar-h: 68px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: #fff;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────
   TOPBAR
───────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  transition: top 0.3s ease;
}

.topbar.hidden {
  top: calc(-1 * var(--topbar-h));
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  color: #fff;
  transition: color 0.25s;
}

.topbar-social a svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.topbar-social a.instagram:hover { color: #E1306C; }
.topbar-social a.facebook:hover  { color: #1877F2; }
.topbar-social a.youtube:hover   { color: #FF0000; }

/* ─────────────────────────────────────
   NAVBAR
───────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 199;
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.28);
  background: transparent;
  transition: top 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  top: 0;
  background: #191919;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.navbar-links .sep {
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  padding: 0 4px;
  pointer-events: none;
}

.navbar-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active { opacity: 0.5; }

/* ─────────────────────────────────────
   HERO — VIDEO (home)
───────────────────────────────────── */
.hero-video {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
}

/* ─────────────────────────────────────
   HERO — IMAGE (trainer page)
───────────────────────────────────── */
.hero-img {
  height: 62vh;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

/* ─────────────────────────────────────
   WELCOME
───────────────────────────────────── */
.welcome {
  padding: 96px 24px;
  background-image: url('../image/cover-section-welcome-texture-areacinquantacinque.webp');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.welcome-icon {
  width: 88px;
  height: auto;
  margin: 0 auto 28px;
}

.welcome-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.82);
}

/* ─────────────────────────────────────
   CLASS SECTION
───────────────────────────────────── */
.section-class {
  padding: 88px 24px;
  background-color: var(--bg-dark);
  text-align: center;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 56px;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 60px;
  max-width: 960px;
  margin: 0 auto;
}

.course-item { text-align: center; }

.course-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.course-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.course-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.58);
}

/* ─────────────────────────────────────
   TRAINER — HOME PREVIEW
───────────────────────────────────── */
.section-trainer-home {
  padding: 88px 24px;
  background-image: url('../image/cover-section-welcome-texture-areacinquantacinque.webp');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.trainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
}

.trainer-card { text-align: center; }

.trainer-card-img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 20px;
  filter: grayscale(100%);
}

.trainer-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 5px;
}

.trainer-card-role {
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.58);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.trainer-card-bio {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255,255,255,0.62);
}

/* ─────────────────────────────────────
   TRAINER — FULL PAGE SECTIONS
───────────────────────────────────── */
.trainer-section {
  padding: 80px 24px;
}

.trainer-section.textured {
  background-image: url('../image/cover-section-welcome-texture-areacinquantacinque.webp');
  background-size: cover;
  background-position: center;
}

.trainer-section.dark {
  background-color: var(--bg-dark);
}

.trainer-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.trainer-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top;
  filter: grayscale(100%);
}

.trainer-info { padding-top: 8px; }

.trainer-full-name {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.trainer-full-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.75);
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  background-color: #000;
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
}

.footer-brand-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.95;
  color: rgba(255,255,255,0.58);
}

.footer-col-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.footer-col-text {
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255,255,255,0.58);
}

.footer-col-text a {
  color: rgba(255,255,255,0.58);
  transition: color 0.2s;
}
.footer-col-text a:hover { color: #fff; }

.footer-bottom {
  max-width: 960px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

.footer-copy a {
  color: rgba(255,255,255,0.38);
  transition: color 0.2s;
}

.footer-copy a:hover {
  color: #fff;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.back-to-top:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.back-to-top svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --topbar-h: 36px;
    --navbar-h: 58px;
  }

  .topbar, .navbar { padding: 0 20px; }

  .class-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 380px;
  }

  .trainer-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .trainer-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
