/* ==========================================================================
   ELITE FIT CLUB • Authentic Luxury Fitness Club
   Matching online webdemo.cloud template 305 & cover.jpg
   Fonts: Century Gothic / Montserrat / Arial
   Zero Emojis • Pure Scalable SVGs
   ========================================================================== */

:root {
  --bg-body: #08090b;
  --bg-darker: #040506;
  --bg-surface: #101216;
  --bg-card: #14171d;
  --bg-hover: #1a1e26;

  --primary: #d946ef;
  --primary-hover: #c026d3;
  --primary-glow: #e879f9;

  --text-main: #ffffff;
  --text-body: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --border-color: #232730;
  --border-subtle: #1a1e24;

  --font-heading: 'Century Gothic', 'Montserrat', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: 'Montserrat', 'Century Gothic', -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  --container-max: 1480px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --transition: all 0.25s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 92%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   TOP BAR (Clean, non-AI, elegant line)
   ========================================================================== */
.site-topbar {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 8px 0;
}

.topbar-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar-item a:hover {
  color: var(--text-main);
}

.topbar-wa {
  color: #22c55e;
  font-weight: 600;
}

.topbar-wa:hover {
  color: #4ade80;
}

@media (max-width: 768px) {
  .topbar-hide-mobile {
    display: none !important;
  }
}

/* ==========================================================================
   SITE HEADER (1:1 with cover.jpg • Centered Logo + Centered Menu)
   ========================================================================== */
.site-header {
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0 10px;
  position: relative;
  z-index: 100;
}

.header-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.brand-logo-main {
  display: inline-block;
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.brand-logo-main:hover {
  transform: scale(1.02);
}

.brand-logo-img {
  height: 72px;
  width: auto;
  display: block;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  padding: 4px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 8px;
}

@media (max-width: 900px) {
  .header-mobile-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg-darker);
    padding: 16px 0;
    margin-top: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    gap: 14px;
  }
  .main-navigation.is-open {
    display: flex;
  }
}

/* ==========================================================================
   HERO SLIDER (Hero image anchored to top to show face)
   ========================================================================== */
.hero-slider-section {
  position: relative;
  width: 100%;
  min-height: 480px;
  background: #000;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 10%;
  display: block;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(8, 9, 11, 0.94) 0%, rgba(8, 9, 11, 0.58) 42%, rgba(8, 9, 11, 0.35) 100%);
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding: 48px 0;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d1d5db;
  margin-bottom: 24px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-nav-dots {
  position: absolute;
  bottom: 18px;
  right: 5%;
  z-index: 10;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  border: 0;
  transition: var(--transition);
}

.hero-dot.is-active {
  background: var(--primary);
  transform: scale(1.2);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

@media (max-width: 768px) {
  .hero-slider-section {
    min-height: 420px;
  }
  .hero-arrow {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.7);
  }
  .hero-arrow-prev {
    left: 10px;
  }
  .hero-arrow-next {
    right: 10px;
  }
  .hero-slide-bg {
    object-position: 50% 8%;
  }
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-content-wrap {
    padding: 36px 0;
  }
}

/* ==========================================================================
   BUTTONS (Clean, authentic, professional)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: #4b5563;
}

.btn-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-whatsapp {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

.btn-whatsapp:hover {
  background: #16a34a;
  border-color: #16a34a;
}

/* ==========================================================================
   SECTION ABOUT (1:1 with cover.jpg • Thin Uppercase + Heavy Bold)
   ========================================================================== */
.about-section {
  background: #000000;
  padding: 48px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.about-header {
  max-width: 860px;
  margin: 0 auto;
}

.about-subline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: #ffffff;
  margin-bottom: 2px;
  line-height: 1.1;
}

.about-headline {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.1;
}

.about-desc {
  font-size: 1.08rem;
  color: #9ca3af;
  line-height: 1.65;
  margin-bottom: 24px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  text-align: left;
  margin-top: 28px;
}

.about-feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 22px 24px;
  border-radius: var(--radius-sm);
}

.about-feature-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.about-feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.about-feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .about-subline {
    font-size: 1.5rem;
    letter-spacing: 4px;
  }
  .about-headline {
    font-size: 2.2rem;
  }
  .about-desc {
    font-size: 1rem;
  }
}

/* ==========================================================================
   PROMO FLYER & FORM SECTION (content_id_19412)
   ========================================================================== */
.flyer-section {
  background: var(--bg-body);
  padding: 44px 0;
  border-bottom: 1px solid var(--border-color);
}

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

@media (max-width: 960px) {
  .flyer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.flyer-media-wrap {
  text-align: center;
}

.flyer-media-img {
  max-width: 90%;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.flyer-form-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 6px;
}

.form-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: #08090b;
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.form-privacy input {
  margin-top: 4px;
}

/* ==========================================================================
   COURSES SECTION (content_id_19295)
   ========================================================================== */
.courses-section {
  padding: 48px 0 40px;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
}

.section-title-large {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  margin-bottom: 10px;
}

.section-subtitle-text {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.courses-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.course-item-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.course-item-card:hover {
  transform: translateY(-4px);
  border-color: #4b5563;
}

.course-thumb-box {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.course-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-item-card:hover .course-thumb-box img {
  transform: scale(1.05);
}

.course-thumb-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 2px;
  border-left: 2px solid var(--primary);
}

.course-body-box {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.course-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   SERVICES ROW (Sala attrezzi, PT, Nutrizionista, etc.)
   ========================================================================== */
.services-section {
  padding: 44px 0 36px;
  background: var(--bg-body);
  border-bottom: 1px solid var(--border-color);
}

.services-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card-clean {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.service-card-clean:hover {
  border-color: var(--primary);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PHOTO GALLERY SECTION
   ========================================================================== */
.gallery-section {
  padding: 44px 0 36px;
  background: #000;
  border-bottom: 1px solid var(--border-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.gallery-item {
  position: relative;
  height: 240px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #111;
}

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

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

/* ==========================================================================
   SITE FOOTER (content_id_19130 • Centered Logo 20123.jpg, Napoli details)
   ========================================================================== */
.site-footer {
  background: var(--bg-darker);
  padding: 44px 0 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand-logo {
  max-width: 140px;
  margin-bottom: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.08);
}

.whatsapp-floating svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}


/* Responsive Layout Grid Utilities (Auto-migrated from inline styles) */
.grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.grid-split-responsive {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.grid-split-rev-responsive {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
}
.grid-3col-responsive {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.grid-4col-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .grid-4col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3col-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
  }
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  h1, .hero-title, .page-hero-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem) !important;
    line-height: 1.25 !important;
  }
  h2, .section-title, .shelf-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }
  
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
}
