/* ===== HOME PAGE STYLES ===== */

.home-container {
  width: 100%;
  min-height: 100vh;
  padding-top: 0;
  /* Remove top padding to let video reach the top */
}

/* ===== HERO SECTION VIDEO ===== */
.home-hero-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: clip; /* clip taglia visivamente senza creare scroll container */
  display: flex;
  align-items: center;
  background-color: #000;
}

/* Video Background */
.home-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  /* Ensures video covers the whole area */
  z-index: 0;
}

/* Overlay for text readability (similar to Virgin Active) */
.home-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
}

/* Content Container */
.home-hero-content {
  position: relative;
  z-index: 2;
  padding-left: 10%;
  max-width: 800px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero entrance - sempre visibile, nessun opacity:0 iniziale (evita penalità LCP) */
@keyframes heroEntrance {
  from {
    opacity: 0.01; /* valore > 0 per non nascondere l'elemento */
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-entrance {
  animation: heroEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-subtitle-red {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Brand Blue */
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-family: inherit;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 300;
  margin: 0 0 20px 0;
  line-height: 1.1;
  color: #ffffff;
  font-family: inherit;
}

.hero-address {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 15px;
  color: #ffffff;
}

.red-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  border-radius: 50%;
  margin-right: 10px;
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 500px;
  color: #ffffff;
}

/* Call to Action Button */
.hero-cta-btn {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  color: #ffffff;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
  text-align: center;
}

.hero-cta-btn:hover {
  background-color: #0891b2;
  /* Darker blue on hover */
  color: #ffffff;
  transform: translateY(-2px);
}

@media (max-width: 1170px) {
  .home-hero-content {
    padding-left: 5%;
    padding-right: 5%;
  }

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

/* Media Queries per Mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle-red {
    font-size: 1rem;
  }

  .hero-address {
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .home-hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
  }
  
  .hero-promo-wrapper {
    margin-top: 100px;
    gap: 100px;
  }
}

/* Fix size of promotional sections for mobile */
@media (max-width: 700px) {
  .hero-promo-wrapper {
    margin-top: 130px;
    gap: 40px;
  }

  .hero-promo-box {
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
    border-radius: 15px;
  }

  .hero-fitness-title {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .hero-promo-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
  }

  .hero-promo-desc {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .hero-cta-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* --- App Promo Hero Additions --- */
.hero-promo-wrapper {
  max-width: none;
  width: 100%;
  padding-right: 10%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-promo-box {
  position: relative;
  flex: 0 1 auto;
  width: 100%;
  max-width: 450px;
  background: rgba(15, 23, 42, 0.65);
  padding: 35px;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  text-align: left;
}

.hero-promo-badge {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 10;
}

.hero-promo-title {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.3;
}

.hero-promo-desc {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 25px;
}

.hero-fitness-title {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 1374px) {
  .hero-promo-wrapper {
    padding-right: 5%;
    padding-left: 5%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-top: 130px;
  }
  .hero-left-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-address {
    justify-content: center;
  }
  .hero-promo-box {
    max-width: 600px;
    width: 100%;
    padding: 30px;
    height: max-content !important;
    flex: 0 0 auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-promo-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }
  .hero-promo-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
  }
  .hero-fitness-title {
    font-size: 1.4rem;
  }
}

/* ===== HOME STATS SECTION ===== */
.home-stats-section {
  background-color: #F8FAFC;
  /* Sfondo chiaro simile allo screenshot */
  padding: 80px 5%;
  font-family: inherit;
}

.stats-header {
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}

.stats-header h2 {
  font-size: 2.5rem;
  color: #111827;
  /* Testo scuro */
  margin-bottom: 15px;
  font-weight: 700;
}

.stats-header h2 span {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Brand Blue */
}

.stats-header p {
  color: #4B5563;
  /* Grigio per il testo descrittivo */
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.6;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 30px;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  /* Ombra molto leggera */
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  /* Brand Blue */
  margin-bottom: 10px;
}

.stat-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 15px;
}

.stat-desc {
  font-size: 0.95rem;
  color: #6B7280;
  line-height: 1.6;
}

/* Media Queries per Sezione Statistiche */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .home-stats-section {
    padding: 60px 5%;
  }

  .stats-header h2 {
    font-size: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 30px 20px;
  }
}

/* ===== HOME CHOOSE SECTION ===== */
.home-choose-section {
  padding: 100px 5%;
  background: linear-gradient(135deg, #38BDF8 0%, #0ea5e9 100%);
  color: #ffffff;
  font-family: inherit;
}

.choose-container {
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* IMAGE WRAPPER (Left) */
.choose-image-wrapper {
  flex: 1 1;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.choose-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  z-index: 1;
  pointer-events: none;
}

.choose-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.choose-image-wrapper:hover .choose-image {
  transform: scale(1.05);
}

/* CONTENT (Right) */
.choose-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.choose-content h2 {
  font-size: 2.8rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.choose-content h2 span {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: border-box;
  background-clip: initial;
  color: #0f172a;
}

.choose-main-desc {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 35px;
}

.choose-highlight {
  margin-bottom: 35px;
  padding-left: 20px;
  border-left: 4px solid #0f172a;
}

.highlight-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: border-box;
  background-clip: initial;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.choose-highlight p {
  font-size: 1.05rem;
  color: #0f172a;
  font-weight: 500;
  line-height: 1.6;
}

.choose-cta-btn {
  background-color: #0f172a;
  /* Bottone scuro come nello screenshot */
  color: #FFFFFF !important;
  padding: 16px 40px;
  border-radius: 40px;
  /* Forma a pillola */
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

.choose-cta-btn:hover {
  background-color: #111827;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #FFFFFF !important;
}

/* Responsive */
@media (max-width: 1170px) {
  .choose-container {
    flex-direction: column;
    gap: 50px;
  }

  .choose-image-wrapper {
    width: 100%;
    max-width: 700px;
  }

  .choose-content h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 992px) {
  .choose-image-wrapper {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .home-choose-section {
    padding: 70px 5%;
  }

  .choose-content h2 {
    font-size: 2.2rem;
  }

  .choose-main-desc {
    font-size: 1.05rem;
  }
}

/* ===== HOME ROOMS SECTION (Stacked Slider) ===== */
.home-rooms-section {
  padding: 100px 5%;
  background-color: #FFFFFF;
  font-family: inherit;
  contain: layout; /* Isola il layout di questa sezione dal resto della pagina */
}

.rooms-container {
  display: flex;
  align-items: center;
  gap: 100px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 420px; /* Previene layout shift da ridimensionamenti interni */
}

/* TEXT CONTENT (Left) */
.rooms-text-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.rooms-text-content h2 {
  font-size: 2.8rem;
  color: #111827;
  font-weight: 800;
  margin-bottom: 25px;
  line-height: 1.2;
}

.rooms-text-content h2 span {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rooms-main-desc {
  font-size: 1.15rem;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 40px;
}

.rooms-cta-btn {
  background-color: #1F2937;
  color: #FFFFFF !important;
  padding: 16px 40px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

.rooms-cta-btn:hover {
  background-color: #111827;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  color: #FFFFFF !important;
}

/* SLIDER WRAPPER (Right) */
.rooms-slider-wrapper {
  flex: 1.2 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}

.stacked-slider {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  margin-bottom: 50px;
  overflow: hidden; /* Contiene i layer ruotati */
  border-radius: 24px;
}

.stack-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  transition: all 0.4s ease;
}

.layer-blue {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  transform: rotate(6deg) translate(25px, 10px);
  z-index: 1;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
  pointer-events: none; /* Non intercetta mai mouse/touch */
}

.layer-dark {
  background-color: #2D3748;
  transform: rotate(-5deg) translate(-25px, 5px);
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  pointer-events: none; /* Non intercetta mai mouse/touch */
}

.layer-top {
  background-color: #FFFFFF;
  z-index: 3;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 4px solid #0ea5e9;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Controls */
.slider-controls {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #DBEAFE;
  /* Azzurro chiarissimo */
  color: #06B6D4;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-btn:hover {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  color: #FFFFFF;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.slider-btn:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1170px) {
  .rooms-container {
    flex-direction: column;
    gap: 60px;
  }

  .rooms-slider-wrapper {
    width: 100%;
    margin-right: 0;
    margin-top: 30px;
  }

  .stacked-slider {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  /* adjustments for smaller */
}

@media (max-width: 992px) {
  /* adjustments */
}

@media (max-width: 768px) {
  .home-rooms-section {
    padding: 70px 5%;
  }

  .rooms-text-content h2 {
    font-size: 2.2rem;
  }

  .layer-blue {
    transform: rotate(4deg) translate(15px, 10px);
  }

  .layer-dark {
    transform: rotate(-3deg) translate(-15px, 5px);
  }
}

/* ========================================= */
/* --- TRAINERS SECTION --- */
/* ========================================= */
.home-trainers-section {
  padding: 80px 5%;
  background-color: #ffffff;
}

.trainers-header {
  max-width: 1400px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.trainers-header h2 {
  font-size: 2.2rem;
  color: #1e293b;
  font-weight: 300;
  line-height: 1.2;
  margin: 0;
}

.trainers-header h2 strong {
  font-weight: 900;
  display: block;
}

.trainers-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.trainers-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #FFFFFF;
  color: #0284C7;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.trainers-nav-btn:hover {
  background-color: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.trainers-nav-prev {
  left: -20px;
}

.trainers-nav-next {
  right: -20px;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.trainers-scroll-grid {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trainers-scroll-grid::-webkit-scrollbar {
  display: none;
}

.trainer-card {
  flex: 0 0 auto;
  width: 280px;
  height: 280px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  background-color: #f1f5f9;
}

.trainer-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.trainer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.trainer-card:hover .trainer-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.trainer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.trainer-role {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.trainer-name {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0;
}

/* ========================================= */
/* --- FITNESS ONLINE SECTION (HOME) --- */
/* ========================================= */
.home-online-section {
  padding: 80px 5%;
  background-color: #ffffff;
  color: #111827;
}

.online-section-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 60px;
  gap: 60px;
  align-items: center;
}

.online-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 25px;
  color: #111827;
}

.online-desc {
  font-size: 1.15rem;
  color: #4B5563;
  line-height: 1.7;
  margin-bottom: 40px;
}

.online-desc strong {
  color: #111827;
}

.home-online-btn {
  display: inline-block;
  background-color: #1F2937;
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-online-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  background-color: #111827;
  color: #ffffff;
}

.online-image-block {
  position: relative;
}

.online-promo-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1170px) {
  .online-section-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
}

@media (max-width: 992px) {
  /* Altre regole per 992px se necessarie in futuro */
}

@media (max-width: 768px) {
  .home-trainers-section {
    padding: 60px 5%;
  }

  .trainers-header h2 {
    font-size: 1.8rem;
    text-align: center;
  }

  .trainer-card {
    width: 250px;
    height: 250px;
  }

  .home-online-section {
    padding: 60px 5%;
  }

  .online-title {
    font-size: 2.2rem;
  }
}
