/* ==========================================================================
   FITNESS CENTER - STYLESHEET
   Clean, Athletic, Single Font (Plus Jakarta Sans), Max-Width 1560px
   ========================================================================== */

:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #fda4af;
  --navy: #0f172a;
  --dark: #111827;
  --dark-light: #1f2937;
  --dark-card: #182234;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
  --accent-green: #22c55e;
  --accent-green-dark: #16a34a;
  --accent-orange: #f97316;
  --accent-orange-dark: #ea580c;
  --accent-cyan: #06b6d4;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: #ffffff;
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* Strict Container Max Width */
.container {
  width: 100%;
  max-width: 1560px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ==========================================================================
   TOPBAR & NAVBAR (Matching cover.jpg)
   ========================================================================== */
.topbar {
  background: #0b1120;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
}

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

.topbar-left span i, .topbar-right a i {
  color: var(--primary);
  margin-right: 6px;
}

.topbar-wa {
  color: #22c55e !important;
  font-weight: 700;
}

.topbar-wa i {
  color: #22c55e !important;
}

.navbar-header {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #111827;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-icon-link {
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.15rem;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav-icon-link:hover {
  background: var(--gray-100);
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  line-height: 1.2;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-success {
  background: var(--accent-green);
  color: #ffffff;
}

.btn-success:hover {
  background: var(--accent-green-dark);
}

.btn-orange {
  background: var(--accent-orange);
  color: #ffffff;
}

.btn-orange:hover {
  background: var(--accent-orange-dark);
}

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--dark);
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}

.btn-outline-dark:hover {
  background: var(--gray-100);
  color: var(--dark);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO SLIDER (Matching cover.jpg exactly with bench press woman & spotter)
   ========================================================================== */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
}

.hero-slide {
  position: relative;
  min-height: 520px;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* Diagonal translucent lower bar matching cover.jpg */
.hero-diagonal-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(178deg, rgba(255, 255, 255, 0.0) 0%, rgba(255, 255, 255, 0.45) 100%);
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  color: #ffffff;
  padding: 40px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-eyebrow {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
}

.hero-nav-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-nav-prev { left: 24px; }
.hero-nav-next { right: 24px; }

/* ==========================================================================
   HEADLINE SECTION (Matching cover.jpg "LOREM IPSUM...")
   ========================================================================== */
.section-headline-intro {
  padding: 56px 0 36px;
  text-align: center;
}

.section-head-title {
  font-size: 1.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #111827;
  margin-bottom: 12px;
}

.section-head-desc {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 840px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   MAIN 3-CARDS ROW (Matching cover.jpg: Cycling, Functional, Personal Training)
   ========================================================================== */
.features-triplet-section {
  padding-bottom: 70px;
}

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

.triplet-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.triplet-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.triplet-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.triplet-card:hover .triplet-thumb img {
  transform: scale(1.05);
}

.triplet-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(17, 24, 39, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.triplet-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.triplet-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.triplet-sub {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.triplet-desc {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.triplet-footer {
  margin-top: auto;
}

/* ==========================================================================
   SLIM PHOTOGRAPHIC PAGE HERO BANNER (Inner Pages)
   "stretto ma con uno sfondo"
   ========================================================================== */
.page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px 0 44px;
  margin-bottom: 36px;
  color: #ffffff;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.84) 0%, rgba(17, 24, 39, 0.75) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumbs {
  padding: 0 0 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero .breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition);
}

.page-hero .breadcrumbs a:hover {
  color: var(--primary-light);
}

.page-hero .breadcrumbs span {
  margin: 0 7px;
  color: rgba(255, 255, 255, 0.45);
}

.page-hero .breadcrumbs strong {
  color: #ffffff;
  font-weight: 700;
}

.page-hero-title {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.page-hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   PRICING PLANS (Toggle mensile / annuale)
   ========================================================================== */
.plans-section {
  padding: 60px 0 80px;
  background: #f8fafc;
}

.plans-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 40px;
}

.plans-toggle-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.switch-toggle {
  position: relative;
  width: 54px;
  height: 28px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: 0.3s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch-toggle input:checked + .switch-slider {
  background-color: var(--primary);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(26px);
}

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

.plan-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plan-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 16px;
  border-radius: 20px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  min-height: 42px;
}

.plan-price-wrap {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.plan-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features-list li {
  font-size: 0.92rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.plan-features-list li i {
  color: var(--accent-green);
  margin-top: 4px;
}

/* ==========================================================================
   PRODUCTS & E-COMMERCE GRID (prodotti.php)
   ========================================================================== */
.products-section {
  padding: 40px 0 70px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-100);
}

.product-thumb-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-wrap img {
  transform: scale(1.06);
}

.product-badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dark);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-title a:hover {
  color: var(--primary);
}

.product-rating {
  font-size: 0.8rem;
  color: #f59e0b;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.price-current {
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
}

.price-old {
  font-size: 0.88rem;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 6px;
}

.btn-add-cart {
  background: var(--dark);
  color: #ffffff;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary);
  transform: scale(1.1);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (prodotto.php)
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  margin-bottom: 60px;
}

.product-detail-img-box {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  position: relative;
}

.product-detail-img-box img {
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  font-size: 0.9rem;
}

.nutrition-table th, .nutrition-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.nutrition-table th {
  background: var(--gray-100);
  font-weight: 800;
  color: var(--dark);
}

/* ==========================================================================
   GALLERY PAGE (gallery.php)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ==========================================================================
   INTERACTIVE BMI & CALORIE CALCULATOR
   ========================================================================== */
.calculator-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
  color: #ffffff;
}

.calculator-card {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 36px;
  backdrop-filter: blur(8px);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.calc-input-wrap label {
  font-size: 0.85rem;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: #cbd5e1;
}

.calc-input-wrap input, .calc-input-wrap select {
  width: 100%;
  padding: 12px 14px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
}

.calc-result-box {
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  margin-top: 20px;
  display: none;
}

/* ==========================================================================
   OFF-CANVAS CART DRAWER
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 90vw;
  height: 100%;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-600);
  line-height: 1;
}

.cart-drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 4px;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #111827;
}

.cart-item-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--primary);
}

.cart-item-qty {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cart-shipping-note {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--gray-400);
}

.cart-empty-state i {
  font-size: 3rem;
  margin-bottom: 14px;
}

/* ==========================================================================
   MODAL PASS PROVA 1 GIORNO
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 36px 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-400);
}

.modal-header-icon {
  width: 56px;
  height: 56px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

/* Toast */
.toast-notify {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--dark);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  display: none;
  border-left: 4px solid var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #0b1120;
  color: #94a3b8;
  padding-top: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #ffffff;
}

.footer-heading {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.footer-links, .footer-hours, .footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-contact-info li i {
  color: var(--primary);
  margin-right: 8px;
  width: 16px;
}

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  font-size: 0.82rem;
  color: #64748b;
}

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

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .triplet-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }
  .navbar-container {
    height: 70px;
  }
  .brand-logo img {
    height: 42px;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1000;
  }
  .nav-menu.open {
    left: 0;
  }
  .mobile-toggle {
    display: block;
  }
  .btn-nav-cta {
    display: none;
  }
  .hero-slide {
    min-height: 420px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   SEMANTIC LAYOUT & RESPONSIVE GRID CLASSES (Replaces inline styles)
   ========================================================================== */
.fitness-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.fitness-story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.fitness-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.fitness-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fitness-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.fitness-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  margin-bottom: 50px;
}

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

@media (max-width: 992px) {
  .fitness-story-grid,
  .fitness-contacts-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .fitness-pillars-grid,
  .fitness-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fitness-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .fitness-pillars-grid,
  .fitness-services-grid,
  .fitness-stats-grid,
  .fitness-team-grid,
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* Comprehensive Mobile Polish (360px - 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  /* Ensure tap targets are comfortable */
  button, .btn, .nav-link, a.btn {
    min-height: 42px;
  }
  
  /* Prevent font clipping on smaller devices */
  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;
  }
  
  /* Tables wrapper for smooth touch scrolling */
  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 480px) {
  /* Single column cards for small phones */
  .grid-2col-responsive,
  .grid-3col-responsive,
  .grid-4col-responsive,
  .grid-split-responsive,
  .grid-split-rev-responsive {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Full width forms and buttons */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    width: 100% !important;
    box-sizing: border-box;
  }
}
