/* ===== RE.VITA DESIGN TOKENS & STYLE VOLANTINO ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

:root {
  /* Palette Volantino */
  --color-medica: #0097b2;
  /* Azzurro Acqua */
  --color-medica-dark: #00778c;
  --color-medica-light: #e6f5f7;
  --color-medica-border: rgba(0, 151, 178, 0.28);

  --color-fitness: #bb835e;
  /* Terra di Rame */
  --color-fitness-dark: #9c6542;
  --color-fitness-light: #fbf5f0;
  --color-fitness-border: rgba(187, 131, 94, 0.28);

  /* Primary Aliases */
  --primary: #0097b2;
  /* Parte Medica */
  --primary-dark: #00778c;
  --primary-light: #e6f5f7;
  --accent: #bb835e;
  /* Parte Fitness */
  --accent-warm: #bb835e;
  --accent-dark: #9c6542;
  --accent-light: #fbf5f0;

  /* Neutrals & Sfondo */
  --bg: #F8FAFB;
  --bg-warm: #FBF8F5;
  /* Tonalità calda volantino */
  --white: #ffffff;
  --text: #2D3748;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 151, 178, 0.08);
  --shadow-warm: 0 6px 24px rgba(187, 131, 94, 0.12);
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;

  /* Tipografia Montserrat */
  --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  color: var(--primary-dark);
  letter-spacing: -0.015em;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.font-light,
.fw-light {
  font-family: var(--font-base) !important;
  font-weight: 300 !important;
}

.font-regular,
.fw-regular {
  font-family: var(--font-base) !important;
  font-weight: 400 !important;
}

.font-medium,
.fw-medium {
  font-family: var(--font-base) !important;
  font-weight: 500 !important;
}

.font-semibold,
.fw-semibold {
  font-family: var(--font-base) !important;
  font-weight: 600 !important;
}

.font-bold,
.fw-bold {
  font-family: var(--font-base) !important;
  font-weight: 700 !important;
}

/* Colori Testo Specifici */
.text-medica {
  color: var(--color-medica) !important;
}

.text-fitness {
  color: var(--color-fitness) !important;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

section[id] {
  scroll-margin-top: 110px;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--primary-dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-title.fitness {
  color: var(--color-fitness-dark);
}

.section-sub {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 48px;
  max-width: 680px;
  line-height: 1.7;
}

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

.text-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.2px;
}

/* Azzurro Acqua (Medica) */
.btn-primary,
.btn-medica {
  background: var(--color-medica);
  color: #fff;
}

.btn-primary:hover,
.btn-medica:hover {
  background: var(--color-medica-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 151, 178, 0.35);
}

/* Terra di Rame (Fitness) */
.btn-accent,
.btn-fitness {
  background: var(--color-fitness);
  color: #fff;
}

.btn-accent:hover,
.btn-fitness:hover {
  background: var(--color-fitness-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(187, 131, 94, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-outline-primary,
.btn-outline-medica {
  background: transparent;
  color: var(--color-medica);
  border: 2px solid var(--color-medica);
}

.btn-outline-primary:hover,
.btn-outline-medica:hover {
  background: var(--color-medica);
  color: #fff;
}

.btn-outline-fitness {
  background: transparent;
  color: var(--color-fitness);
  border: 2px solid var(--color-fitness);
}

.btn-outline-fitness:hover {
  background: var(--color-fitness);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-fitness);
  font-weight: var(--fw-bold);
}

.btn-white:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-white-medica {
  background: #fff;
  color: var(--color-medica);
  font-weight: var(--fw-bold);
}

.btn-white-medica:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ===== PILL BADGES DUAL COLOR ===== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.5px;
}

.badge-medica {
  background: var(--color-medica-light);
  color: var(--color-medica);
  border: 1px solid var(--color-medica-border);
}

.badge-fitness {
  background: var(--color-fitness-light);
  color: var(--color-fitness);
  border: 1px solid var(--color-fitness-border);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-medica), var(--color-fitness));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: var(--fw-bold);
  font-size: 18px;
  font-family: var(--font-base);
}

.logo-text {
  font-family: var(--font-base);
  font-size: 22px;
  font-weight: var(--fw-bold);
  color: var(--primary-dark);
  transition: color var(--transition);
  letter-spacing: -0.5px;
}

.navbar.scrolled .logo-text {
  color: var(--primary-dark);
}

.logo-sub {
  font-family: var(--font-base);
  font-size: 10px;
  font-weight: var(--fw-medium);
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.navbar.scrolled .logo-sub {
  color: var(--muted);
}

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

.nav-item {
  position: relative;
  padding: 10px 0;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.navbar.scrolled .nav-link {
  color: var(--text);
}

.nav-link:hover,
.nav-link.active,
.nav-item.is-open .nav-link {
  color: var(--color-medica);
  background: rgba(0, 151, 178, 0.08);
}

.nav-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover .nav-link svg,
.nav-item.is-open .nav-link svg {
  transform: rotate(180deg);
}

/* Dropdown Menu Container */
.dropdown {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 280px;
  padding: 8px;
  z-index: 1000;
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

/* Invisible Bridge: covers any gap so the cursor never leaves the hover zone */
.dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
}

/* Show Dropdown on Hover or Active State */
.nav-item:hover .dropdown,
.nav-item.is-open .dropdown,
.dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  border-radius: 8px;
  transition: all 0.18s ease;
}

/* Medica Dropdown (Centro Medico) */
.dropdown a:hover,
.dropdown.dropdown-medica a:hover {
  background: var(--color-medica-light);
  color: var(--color-medica);
  transform: translateX(4px);
}

/* Fitness Dropdown (Corsi) */
.dropdown.dropdown-fitness a:hover {
  background: var(--color-fitness-light);
  color: var(--color-fitness);
  transform: translateX(4px);
}

/* Dropdown Headers & Dividers */
.dropdown-header {
  padding: 8px 12px 3px;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dropdown-header.medica {
  color: var(--color-medica-dark);
}

.dropdown-header.fitness {
  color: var(--color-fitness-dark);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* Highlighted Team Cards in Dropdown */
.dropdown a.dropdown-highlight-medica {
  background: rgba(0, 151, 178, 0.06);
  border: 1px solid rgba(0, 151, 178, 0.18);
  margin-top: 4px;
  font-weight: var(--fw-semibold);
}

.dropdown a.dropdown-highlight-medica:hover {
  transform: translateX(4px);
}

.dropdown a.dropdown-highlight-medica:hover small,
.dropdown a.dropdown-highlight-medica:hover .dropdown-arrow {}

.dropdown a.dropdown-highlight-fitness {
  background: rgba(187, 131, 94, 0.06);
  border: 1px solid rgba(187, 131, 94, 0.18);
  margin-top: 4px;
  font-weight: var(--fw-semibold);
}

.dropdown a.dropdown-highlight-fitness:hover {
  transform: translateX(4px);
}

.dropdown a.dropdown-highlight-fitness:hover small,
.dropdown a.dropdown-highlight-fitness:hover .dropdown-arrow {}

.dropdown-highlight-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown-highlight-content strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.25;
}

.dropdown-highlight-content small {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-normal);
  color: var(--muted);
  margin-top: 2px;
}

.dropdown-arrow {
  font-size: 12px;
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-left: 8px;
}

.dropdown a:hover .dropdown-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.nav-cta {
  margin-left: 12px;
  padding: 10px 22px;
  background: var(--color-fitness);
  color: #fff;
  border-radius: 50px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--color-fitness-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(187, 131, 94, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.navbar.scrolled .hamburger span {
  background: var(--text);
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px 24px 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .mobile-cta {
  margin-top: 20px;
  display: block;
  text-align: center;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: #08141d;
  padding: 120px 24px 70px;
  box-sizing: border-box;
}

.hero-bg {
  display: none;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg,
      rgba(8, 20, 29, 0.60) 0%,
      rgba(0, 151, 178, 0.22) 55%,
      rgba(187, 131, 94, 0.22) 100%) !important;
}

.hero-center-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  padding: 0;
  margin: auto 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 151, 178, 0.45) !important;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  margin-bottom: 24px;
  color: #fff;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--color-medica);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1
  }

  50% {
    transform: scale(1.4);
    opacity: 0.7
  }
}

.hero-title {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 960px;
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 6px 36px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff;
}

.hero-title em.medica {
  color: var(--color-medica);
  font-style: normal;
}

.hero-title em.fitness {
  color: var(--color-fitness);
  font-style: normal;
}

.hero-desc {
  text-align: center;
  margin: 0 auto 38px;
  max-width: 780px;
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

.hero-btns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 100%;
}

.btn-hero {
  font-size: clamp(16px, 1.2vw, 19px) !important;
  padding: 18px 40px !important;
  min-width: 230px;
  border-radius: 50px;
  font-family: var(--font-base) !important;
  font-weight: var(--fw-bold) !important;
  letter-spacing: 0.4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-hero.btn-medica {
  background: var(--color-medica);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 151, 178, 0.42);
}

.btn-hero.btn-medica:hover {
  background: var(--color-medica-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 151, 178, 0.65);
}

.btn-hero.btn-fitness {
  background: var(--color-fitness);
  color: #fff;
  box-shadow: 0 10px 28px rgba(187, 131, 94, 0.42);
}

.btn-hero.btn-fitness:hover {
  background: var(--color-fitness-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(187, 131, 94, 0.65);
}

.btn-hero.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.btn-hero.btn-outline:hover {
  background: rgba(255, 255, 255, 0.26);
  border-color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(255, 255, 255, 0.25);
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s, transform 0.25s;
  animation: indicatorBounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: #ffffff;
}

.scroll-indicator svg {
  width: 18px;
  height: 18px;
}

/* ===== HERO SPLIT VECTOR SHARP ===== */
.hero-split-section {
  position: relative;
  margin-top: 100px;
  height: calc(100vh - 100px);
  min-height: 520px;
  max-height: 820px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  overflow: hidden;
  background-color: #f2efec;
  box-sizing: border-box;
}

/* Colonna Sinistra (Salute Cura e Benessere) */
.hero-split-left {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  background-color: #f2efec;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 4%;
  box-sizing: border-box;
}

.hero-split-left-inner {
  width: 100%;
  max-width: 680px;
}

.hero-split-title {
  font-family: var(--font-base);
  font-size: clamp(48px, 5.4vw, 84px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: #3b2015;
  text-transform: uppercase;
  margin: 0 0 28px 0;
}

.hero-split-desc {
  font-family: var(--font-base);
  font-size: clamp(16px, 1.3vw, 21px);
  font-weight: 400;
  line-height: 1.65;
  color: #4e4038;
  margin: 0;
  max-width: 560px;
}

/* Colonna Destra (Area Fitness & Area Medica) */
.hero-split-right {
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.hero-split-card {
  flex: 1 1 50%;
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 24px;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-split-card.card-medica {
  background-color: #0097b2;
}

.hero-split-card.card-fitness {
  background-color: #bb835e;
}

.hero-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-svg-icon {
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dumbbell-icon {
  width: clamp(75px, 6.8vw, 110px);
  height: auto;
  max-height: 58px;
}

.hero-team-icon {
  width: clamp(85px, 7.8vw, 125px);
  height: auto;
  max-height: 98px;
}

.hero-split-card:hover .hero-svg-icon {
  transform: scale(1.04);
}

.hero-card-title {
  font-family: var(--font-base);
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.hero-card-title-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hero-card-title-link:hover {
  opacity: 0.9;
  color: #ffffff;
}

.hero-card-subtitle {
  font-family: var(--font-base);
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 24px 0;
  max-width: 520px;
}

/* Pill CTA Buttons */
.hero-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  border-radius: 50px;
  font-family: var(--font-base);
  font-size: clamp(13.5px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  min-width: 240px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-medica-pill {
  background-color: #62b7c6;
  color: #124d57;
}

.btn-medica-pill:hover {
  background-color: #74c5d3;
  color: #0b3d45;
}

.btn-fitness-pill {
  background-color: #d4b6a1;
  color: #55331f;
}

.btn-fitness-pill:hover {
  background-color: #e0c5b2;
  color: #422513;
}

/* Responsive Tablet & Mobile */
@media (max-width: 900px) {
  .hero-split-section {
    height: auto;
    min-height: auto;
    max-height: none;
    flex-direction: column;
    margin-top: 72px;
  }

  .hero-split-left {
    flex: none;
    width: 100%;
    height: auto;
    padding: 56px 24px 44px;
    text-align: center;
    align-items: center;
  }

  .hero-split-left-inner {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
  }

  .hero-split-title {
    font-size: clamp(38px, 8.5vw, 56px);
    margin-bottom: 22px;
  }

  .hero-split-desc {
    font-size: 16.5px;
    margin: 0 auto;
    max-width: 520px;
  }

  .hero-split-right {
    flex: none;
    width: 100%;
    height: auto;
  }

  .hero-split-card {
    flex: none;
    height: auto;
    padding: 50px 20px;
    min-height: 280px;
  }

  .hero-dumbbell-icon {
    width: 80px;
    max-height: 48px;
  }

  .hero-team-icon {
    width: 90px;
    max-height: 82px;
  }

  .hero-card-title {
    font-size: 30px;
  }

  .hero-card-subtitle {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .hero-card-btn {
    padding: 13px 38px;
    font-size: 14px;
  }
}

/* ===== NAVBAR BUTTONS (AREA PERSONALE & AREE CLIENTI) ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 50px;
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
  line-height: 1;
}

.nav-btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Two-line stacked buttons for REVITA Medical & Fitness */
.nav-btn-stacked {
  padding: 6px 14px 7px;
  border-radius: 18px;
  gap: 8px;
}

.nav-btn-stacked .nav-btn-icon {
  width: 16px;
  height: 16px;
}

.nav-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.nav-btn-title {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.3px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nav-btn-sub {
  font-size: 9.5px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 2px;
}

/* Staff button */
.nav-btn-staff {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-btn-staff:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  transform: translateY(-1px);
  color: var(--text);
}

.navbar.scrolled .nav-btn-staff {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text);
}

.navbar.scrolled .nav-btn-staff:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--text);
}

/* Area Medica button */
.nav-btn-medica {
  background: linear-gradient(135deg, var(--color-medica) 0%, #00b4d8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 12px rgba(0, 151, 178, 0.3);
}

.nav-btn-medica:hover {
  background: linear-gradient(135deg, var(--color-medica-dark) 0%, var(--color-medica) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(0, 151, 178, 0.5);
  color: #ffffff;
}

.navbar.scrolled .nav-btn-medica {
  border: none;
  box-shadow: 0 3px 12px rgba(0, 151, 178, 0.3);
}

/* Area Palestra / Fitness button */
.nav-btn-fitness {
  background: linear-gradient(135deg, var(--color-fitness) 0%, #d49a70 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 3px 12px rgba(187, 131, 94, 0.3);
}

.nav-btn-fitness:hover {
  background: linear-gradient(135deg, var(--color-fitness-dark) 0%, var(--color-fitness) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(187, 131, 94, 0.5);
  color: #ffffff;
}

.navbar.scrolled .nav-btn-fitness {
  border: none;
  box-shadow: 0 3px 12px rgba(187, 131, 94, 0.3);
}

/* Backward compatibility for any other buttons */
.nav-btn-clienti {
  background: linear-gradient(135deg, var(--color-medica) 0%, #00b4d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 3px 12px rgba(0, 151, 178, 0.35);
}

@media (max-width: 1200px) and (min-width: 993px) {
  .nav-actions {
    gap: 6px;
    margin-left: 6px;
  }

  .nav-btn {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  .nav-btn-stacked {
    padding: 5px 9px 6px;
    gap: 6px;
  }

  .nav-btn-title {
    font-size: 11px;
  }

  .nav-btn-sub {
    font-size: 8.5px;
  }

  .nav-btn-icon {
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 992px) {
  .nav-actions {
    display: none !important;
  }
}

/* ===== DIVISORE BRAND ANIMATO VOLANTINO ===== */
.video-divider {
  height: 6px;
  background: linear-gradient(90deg, #0097b2 0%, #bb835e 50%, #0097b2 100%);
  background-size: 200% 100%;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ===== SEZIONI VIDEO (medico + palestra) ===== */
.video-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.video-section .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.video-overlay-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ===== SEZIONI VIDEO: OVERLAYS & SCHEDE GLASS AD ALTO CONTRASTO ===== */
.video-overlay-medico,
.video-overlay-left {
  background: radial-gradient(circle at center, rgba(10, 30, 44, 0.45) 0%, rgba(5, 18, 28, 0.82) 100%),
    linear-gradient(135deg, rgba(0, 151, 178, 0.35) 0%, rgba(5, 18, 28, 0.75) 100%) !important;
}

.video-overlay-fitness,
.video-overlay-right {
  background: radial-gradient(circle at center, rgba(28, 18, 12, 0.45) 0%, rgba(18, 10, 6, 0.82) 100%),
    linear-gradient(135deg, rgba(187, 131, 94, 0.35) 0%, rgba(18, 10, 6, 0.75) 100%) !important;
}

/* Scheda centrale Glassmorphism per leggibilità assoluta del testo */
.video-card-glass {
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  border-radius: 24px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  position: relative;
  z-index: 2;
  transition: transform var(--transition), box-shadow var(--transition);
}

.video-card-glass.medica {
  background: rgba(7, 24, 36, 0.82);
  border: 1px solid rgba(0, 151, 178, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 151, 178, 0.15);
}

.video-card-glass.fitness {
  background: rgba(24, 14, 8, 0.82);
  border: 1px solid rgba(187, 131, 94, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(187, 131, 94, 0.15);
}

.video-card-glass:hover {
  transform: translateY(-4px);
}

/* Tag Badge */
.video-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 12px;
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.video-tag.medica {
  background: rgba(0, 151, 178, 0.25);
  border: 1px solid rgba(0, 151, 178, 0.5);
  color: #5ce1e6;
}

.video-tag.fitness {
  background: rgba(187, 131, 94, 0.25);
  border: 1px solid rgba(187, 131, 94, 0.5);
  color: #f3ba90;
}

/* Titoli ad altissima visibilità */
.video-card-title {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(28px, 4.2vw, 44px) !important;
  line-height: 1.2 !important;
  color: #FFFFFF !important;
  margin-bottom: 18px !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

.highlight-medica {
  color: #5ce1e6 !important;
  text-shadow: 0 0 24px rgba(0, 151, 178, 0.6);
}

.highlight-fitness {
  color: #f3ba90 !important;
  text-shadow: 0 0 24px rgba(187, 131, 94, 0.6);
}

/* Descrizione nitida e leggibile */
.video-card-desc {
  font-family: var(--font-base);
  font-weight: 400 !important;
  font-size: 16.5px !important;
  line-height: 1.75 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  max-width: 620px;
  margin: 0 auto 30px !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Pulsanti */
.video-card-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.video-card-btns .btn {
  backdrop-filter: blur(8px);
}

/* Pill tags in basso */
.video-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition);
}

.pill-item.medica {
  background: rgba(0, 151, 178, 0.22);
  border: 1px solid rgba(0, 151, 178, 0.45);
  color: #e0f7fa;
}

.pill-item.fitness {
  background: rgba(187, 131, 94, 0.22);
  border: 1px solid rgba(187, 131, 94, 0.45);
  color: #fdf5ef;
}

.pill-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

/* Backward compatibility per .video-content se usato altrove */
.video-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 580px;
  padding: 48px;
}

.video-content h2 {
  color: #ffffff !important;
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7), 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

.video-content p {
  font-family: var(--font-base);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== SEZIONE: LA NOSTRA VISIONE DI SALUTE (3 PILASTRI VOLANTINO) ===== */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.vision-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vision-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-medica);
}

.vision-card.fitness::before {
  background: var(--color-fitness);
}

.vision-card:hover,
.vision-card.fitness:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.vision-card:hover .vision-icon-wrap,
.vision-icon-wrap:hover {
  transform: none;
}

.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.vision-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  background: var(--color-medica-light);
  color: var(--color-medica);
}

.vision-icon-wrap svg {
  width: 38px;
  height: 38px;
}

.vision-card.fitness .vision-icon-wrap {
  background: var(--color-fitness-light);
  color: var(--color-fitness);
}

.vision-card h3 {
  font-size: 20px;
  color: var(--color-medica-dark);
  margin-bottom: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.vision-card.fitness h3 {
  color: var(--color-fitness-dark);
}

.vision-card p {
  color: var(--muted);
  font-size: 15px;
  font-weight: var(--fw-light);
  line-height: 1.7;
}

/* ===== SEZIONE: UN PERCORSO MULTIDISCIPLINARE (VOLANTINO) ===== */
.path-section {
  background: var(--bg-warm);
}

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

@media (max-width: 992px) {
  .path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.path-step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(187, 131, 94, 0.15);
  position: relative;
  transition: var(--transition);
}

.path-step-card:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: rgba(187, 131, 94, 0.15);
}

.path-step-card:hover .step-pill,
.step-pill:hover {
  transform: none;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--color-medica);
  color: var(--color-medica);
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 18px;
  margin-bottom: 18px;
  background: var(--color-medica-light);
}

.path-step-card:nth-child(3) .step-pill,
.path-step-card:nth-child(4) .step-pill {
  border-color: var(--color-fitness);
  color: var(--color-fitness);
  background: var(--color-fitness-light);
}

.path-step-title {
  font-size: 17px;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 10px;
}

.path-step-desc {
  font-size: 14px;
  color: var(--muted);
  font-weight: var(--fw-light);
  line-height: 1.6;
}

/* 3 Valori Volantino (Soluzioni in continua evoluzione, sinergia, su misura) */
.values-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

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

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-medica-light);
  color: var(--color-medica);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-title {
  font-size: 15px;
  font-weight: var(--fw-bold);
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.value-desc {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: var(--fw-light);
  line-height: 1.6;
}

/* ===== CARDS STANDARD ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 151, 178, 0.12);
}

.card.fitness:hover {
  box-shadow: 0 16px 40px rgba(187, 131, 94, 0.15);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-medica), var(--color-fitness));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: #fff;
  font-size: 24px;
}

.card-title {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card.fitness .card-title {
  color: var(--color-fitness-dark);
}

.card-text {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-body .btn {
  margin-top: auto !important;
}

.card-link {
  font-family: var(--font-base);
  color: var(--color-medica);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}

.card.fitness .card-link {
  color: var(--color-fitness);
}

.card-link:hover {
  color: var(--color-fitness-dark);
  gap: 10px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.service-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: default;
  border: 1px solid var(--border);
}

.service-item:hover {
  background: var(--color-medica);
  color: #fff;
  transform: translateY(-4px);
  border-color: var(--color-medica);
}

.service-item:hover .service-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.service-item:hover .service-name {
  color: #fff;
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--color-medica-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 20px;
  color: var(--color-medica);
  transition: var(--transition);
}

.service-name {
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}

/* Service Card Medico Specialistico (da volantino) */
.specialty-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-medica);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 151, 178, 0.15);
}

.specialty-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  min-height: 56px;
}

.specialty-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-medica-light);
  color: var(--color-medica);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.specialty-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-medica-dark);
}

.specialty-subtitle {
  font-size: 12.5px;
  color: var(--color-medica);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specialty-points {
  margin-top: 8px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  /* Assorbe dinamicamente le differenze di lunghezza */
}

.specialty-point {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.specialty-point strong {
  color: var(--color-medica-dark);
  font-weight: var(--fw-semibold);
}

.specialty-point span {
  color: var(--muted);
  font-weight: var(--fw-light);
}

/* Pulsante allineato al fondo della card */
.specialty-card .btn,
.btn-specialty {
  margin-top: auto !important;
  width: 100% !important;
  justify-content: center !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
  text-align: center !important;
}

/* ===== REVIEWS ===== */
.reviews-section {
  background: #0B1924;
  color: #fff;
}

.reviews-section .section-title {
  color: #fff;
}

.reviews-section .section-sub {
  color: rgba(255, 255, 255, 0.75);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 28px;
}

.review-stars {
  color: var(--color-fitness);
  font-size: 18px;
  margin-bottom: 14px;
}

.review-text {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 18px;
  font-style: italic;
}

.review-author {
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  color: var(--color-medica);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: linear-gradient(135deg, #bb835e 0%, #9c6542 100%) !important;
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band.medica {
  background: linear-gradient(135deg, #00778c 0%, #0097b2 100%) !important;
}

.cta-band h2 {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
  color: #fff;
}

.cta-band p {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  font-size: 18px;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== HOURS & CONTACT BOX ===== */
.hours-section {
  background: var(--white);
}

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

.hours-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.hours-table table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table th {
  background: var(--color-medica);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hours-table th:last-child {
  background: var(--color-fitness);
}

.hours-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  font-size: 15px;
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr:hover td {
  background: rgba(0, 151, 178, 0.04);
}

.hours-table .closed {
  color: var(--muted);
}

.contact-info-box {
  padding: 32px;
  background: linear-gradient(135deg, var(--color-medica) 0%, var(--color-medica-dark) 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 151, 178, 0.25);
}

.contact-info-box.warm {
  background: var(--bg-warm);
  border: 1px solid rgba(187, 131, 94, 0.25);
  color: var(--text);
  box-shadow: var(--shadow-warm);
}

.contact-info-box.warm .contact-info-label {
  color: var(--color-fitness-dark);
  opacity: 0.9;
}

.contact-info-box.warm .contact-info-value a {
  color: var(--text);
}

.contact-info-box.warm .contact-info-icon {
  background: var(--color-fitness-light);
  color: var(--color-fitness);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.contact-info-value {
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  font-size: 16px;
}

.contact-info-value a {
  color: #fff;
  transition: color var(--transition);
}

.contact-info-value a:hover {
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.footer {
  background: #0F2231;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-desc {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 16px 0 24px;
}

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

.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--color-medica);
  color: #fff;
}

.footer-title {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 16px;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.footer-links a {
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 13px;
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--color-fitness);
}

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #00778c 0%, #0097b2 55%, #bb835e 100%) !important;
  color: #fff;
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page-hero.medica {
  background: linear-gradient(rgba(0, 110, 130, 0.78), rgba(0, 80, 96, 0.88)), url('/images/immagine-sfondo-centro-medico.jpg') center/cover no-repeat !important;
}

.page-hero.fitness {
  background: linear-gradient(rgba(140, 85, 50, 0.78), rgba(105, 60, 32, 0.88)), url('/images/immagine-sfondo-centro-fitness.jpg') center/cover no-repeat !important;
}

.page-hero.contatti {
  background: linear-gradient(135deg, rgba(0, 110, 130, 0.82) 0%, rgba(140, 85, 50, 0.82) 100%), url('/images/immagine-sfondo-contatti.jpg') center/cover no-repeat !important;
}

.page-hero h1 {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.9);
}

.page-hero p {
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  font-size: 18px;
  opacity: 1;
  max-width: 720px;
  line-height: 1.7;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.9);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-family: var(--font-base);
  font-weight: var(--fw-semibold);
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.breadcrumb a {
  color: #ffffff;
}

.breadcrumb a:hover {
  color: #fff;
}

/* ===== TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.team-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 151, 178, 0.12);
}

.team-card-avatar {
  flex-shrink: 0;
}

.team-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top;
}

.team-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 24px;
}

.team-name {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-base);
  color: var(--color-fitness);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.team-role.medica {
  color: var(--color-medica);
}

.team-bio {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.team-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.team-card-btn-open {
  white-space: nowrap;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.form-label {
  display: block;
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-medica);
  box-shadow: 0 0 0 4px rgba(0, 151, 178, 0.12);
}

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

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  color: var(--muted);
}

.form-check input {
  margin-top: 3px;
  accent-color: var(--color-medica);
}

.form-success {
  display: none;
  background: var(--color-medica-light);
  border: 1px solid var(--color-medica);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--color-medica-dark);
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  margin-top: 16px;
}

.form-success.show {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== PRENOTA PAGE ===== */
.prenota-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}

.prenota-card {
  background: var(--white);
  border-radius: 20px;
  padding: 44px 36px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.prenota-card:hover {
  border-color: var(--color-medica);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 151, 178, 0.15);
}

.prenota-card.fitness:hover {
  border-color: var(--color-fitness);
  box-shadow: 0 24px 48px rgba(187, 131, 94, 0.15);
}

.prenota-card.fitness {
  border-color: transparent;
}

.prenota-card-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prenota-card-icon svg {
  width: 56px;
  height: 56px;
  color: var(--color-medica);
}

.prenota-card.fitness .prenota-card-icon svg {
  color: var(--color-fitness);
}

.prenota-card h2 {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 28px;
  color: var(--color-medica-dark);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.prenota-card.fitness h2 {
  color: var(--color-fitness-dark);
}

.prenota-card p.prenota-card-desc {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prenota-list {
  text-align: left;
  margin: 0 0 32px 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.prenota-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-base);
  font-size: 14.5px;
  display: grid;
  grid-template-columns: 20px minmax(185px, 215px) 1fr;
  align-items: baseline;
  column-gap: 8px;
  min-height: 60px;
  box-sizing: border-box;
}

.prenota-list li:last-child {
  border-bottom: none;
}

.prenota-list li::before {
  content: "✓";
  color: var(--color-medica);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  align-self: flex-start;
  margin-top: 2px;
}

.prenota-card.fitness .prenota-list li::before {
  color: var(--color-fitness);
}

.prenota-item-title {
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.35;
}

.prenota-item-desc {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-weight: var(--fw-light);
  line-height: 1.4;
}

.prenota-sep {
  color: var(--muted);
  flex-shrink: 0;
}

.prenota-desc-text {
  flex: 1;
}

.prenota-card .btn.prenota-btn {
  width: 100%;
  justify-content: center;
  font-size: 15.5px;
  padding: 16px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 680px) {
  .prenota-list li {
    grid-template-columns: 20px 1fr;
    min-height: auto;
    row-gap: 3px;
    padding: 10px 0;
  }

  .prenota-item-title {
    grid-column: 2;
  }

  .prenota-item-desc {
    grid-column: 2;
    font-size: 13.5px;
  }
}

/* ===== COURSE CATEGORIES (VOLANTINO: BASSO, MEDIO, ALTO IMPATTO) ===== */
.impact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-fitness-light);
  color: var(--color-fitness-dark);
  font-size: 12px;
  font-weight: var(--fw-bold);
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid var(--color-fitness-border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-bar {
  width: 3px;
  background: rgba(187, 131, 94, 0.3);
  border-radius: 2px;
}

.signal-bar:nth-child(1) {
  height: 4px;
}

.signal-bar:nth-child(2) {
  height: 8px;
}

.signal-bar:nth-child(3) {
  height: 12px;
}

.signal-bar.active {
  background: var(--color-fitness);
}

.corsi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.corso-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.corso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(187, 131, 94, 0.15);
  border-color: var(--color-fitness-border);
}

.corso-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.corso-tag {
  display: inline-block;
  background: var(--color-fitness-light);
  color: var(--color-fitness-dark);
  font-family: var(--font-base);
  font-size: 12px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid var(--color-fitness-border);
  align-self: flex-start;
}

.corso-title {
  font-family: var(--font-base);
  font-weight: var(--fw-bold);
  font-size: 18px;
  color: var(--color-fitness-dark);
  margin-bottom: 8px;
  line-height: 1.35;
  min-height: 48px;
  /* Garantisce allineamento uniforme anche con titoli a 2 righe */
  display: flex;
  align-items: flex-start;
}

.corso-text {
  font-family: var(--font-base);
  font-weight: var(--fw-light);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
  flex-grow: 1;
  /* Assorbe le differenze di lunghezza del testo */
}

.corso-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(187, 131, 94, 0.25);
  margin-top: auto;
}

.corso-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-prenota-corso,
.corso-body .btn {
  margin-top: auto !important;
  width: 100% !important;
  justify-content: center !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
}

/* ===== SEZIONE DIFESA PERSONALE AD HOC ===== */
.difesa-instructor-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(187, 131, 94, 0.25);
  box-shadow: 0 12px 36px rgba(187, 131, 94, 0.1);
  padding: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .difesa-instructor-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
    text-align: center;
  }

  .difesa-instructor-role {
    justify-content: center;
  }
}

.difesa-instructor-media {
  position: relative;
  text-align: center;
}

.difesa-instructor-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(187, 131, 94, 0.2);
  border: 3px solid rgba(187, 131, 94, 0.25);
}

.difesa-instructor-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-fitness);
  color: #fff;
  font-size: 11px;
  font-weight: var(--fw-bold);
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(187, 131, 94, 0.4);
}

.difesa-instructor-content h3 {
  font-size: 26px;
  font-weight: var(--fw-bold);
  color: var(--color-fitness-dark);
  margin-bottom: 6px;
}

.difesa-instructor-role {
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--color-fitness);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.difesa-instructor-bio {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 12px;
  font-weight: var(--fw-light);
}

.difesa-quote {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--color-fitness-light);
  border-left: 4px solid var(--color-fitness);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--color-fitness-dark);
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

/* Griglia Obiettivi e Programma */
.difesa-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .difesa-details-grid {
    grid-template-columns: 1fr;
  }
}

.difesa-box {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(187, 131, 94, 0.18);
  padding: 32px;
  box-shadow: var(--shadow);
}

.difesa-box-title {
  font-size: 19px;
  font-weight: var(--fw-bold);
  color: var(--color-fitness-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.difesa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.difesa-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  font-weight: var(--fw-light);
}

.difesa-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-fitness);
  font-weight: var(--fw-bold);
  font-size: 15px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
}

.animate-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-family: var(--font-base);
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: indicatorBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes indicatorBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ===== LOGHI ===== */
.navbar-logo-img {
  height: 74px;
  width: auto;
  margin-top: -2px;
  margin-bottom: 2px;
  transition: filter 0.3s ease;
  filter: none;
}

.navbar.scrolled .navbar-logo-img {
  filter: none;
}

.footer-logo-img {
  height: 55px;
  width: auto;
  opacity: 0.95;
  margin-bottom: 20px;
  display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .prenota-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 992px) {
  .navbar-inner {
    height: 72px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .navbar-logo-img {
    height: 44px;
    max-height: 44px;
    width: auto;
    max-width: 180px;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
}

@media (max-width: 768px) {

  /* Layout generale */
  .section {
    padding: 44px 0;
  }

  .container {
    padding: 0 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Navbar mobile compatta senza overflow */
  .navbar-inner {
    height: 72px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }

  .navbar-logo {
    flex-shrink: 0;
    max-width: calc(100% - 60px);
  }

  .navbar-logo-img {
    height: 40px;
    max-height: 40px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-actions {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-cta {
    display: none !important;
  }

  .mobile-menu {
    top: 72px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    padding: 16px 20px 32px;
    box-sizing: border-box;
  }

  /* Hero: nessun sormontamento elementi */
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 100px;
    padding-bottom: 44px;
    display: block;
  }

  .hero-center-content {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 6px 14px;
    margin-bottom: 18px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-center-content .hero-title {
    font-size: clamp(24px, 7vw, 38px);
    line-height: 1.2;
    margin-bottom: 16px;
    word-break: break-word;
  }

  .hero-center-content .hero-desc {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 340px;
    margin: 20px auto 0;
    width: 100%;
  }

  .btn-hero {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 15px 22px !important;
    font-size: 15px !important;
  }

  /* Scroll indicator nascosto su mobile per evitare collisioni */
  .scroll-indicator {
    display: none !important;
  }

  /* Page hero (pagine interne) */
  .page-hero {
    padding: 96px 0 40px;
  }

  .page-hero h1 {
    font-size: clamp(24px, 6.5vw, 34px);
    word-break: break-word;
  }

  .page-hero p {
    font-size: 14.5px;
    line-height: 1.6;
  }

  .section-title {
    font-size: clamp(22px, 6vw, 30px);
    word-break: break-word;
  }

  .section-sub {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  /* Video sezioni & Glass Cards mobile */
  .video-section {
    height: auto;
    min-height: auto;
    padding: 50px 0;
  }

  .video-card-glass {
    padding: 32px 20px;
    border-radius: 20px;
    max-width: 100%;
  }

  .video-card-title {
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .video-card-desc {
    font-size: 15px !important;
    line-height: 1.65 !important;
    margin-bottom: 24px !important;
  }

  .video-card-btns {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    gap: 12px;
    margin-bottom: 24px;
  }

  .video-card-btns .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  .video-card-pills {
    gap: 8px;
  }

  .pill-item {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* Vision cards & Specialty cards */
  .vision-card {
    padding: 28px 20px;
  }

  .specialty-card {
    padding: 22px 16px;
  }

  .specialty-points {
    margin-bottom: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
  }

  .service-item {
    padding: 14px 10px;
  }

  .service-name {
    font-size: 12.5px;
  }

  /* Tabelle orari & contatti */
  .hours-table th,
  .hours-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .contact-info-box {
    padding: 24px 18px;
  }

  /* Griglie generiche */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cards-grid,
  .team-grid,
  .corsi-grid {
    grid-template-columns: 1fr;
  }

  /* Barra modalità tecnica mobile */
  .tech-access-bar {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    font-size: 11px !important;
    padding: 8px 14px !important;
    justify-content: center !important;
    max-width: calc(100% - 24px) !important;
    width: auto !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
  }
}

/* ===== SPECIALTY & REAL DOCTORS STYLES ===== */
.specialty-doctors-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-medica-light);
  color: var(--color-medica-dark);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.specialty-service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: var(--text);
}

.specialty-service-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
  line-height: 1.45;
}

.specialty-service-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-medica);
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
}

.team-card-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f0f9fa 0%, #e0f2f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-medica);
  border-bottom: 1px solid var(--border);
}

.team-card-initials {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--color-medica);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 14px rgba(0, 151, 178, 0.25);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.team-card-avatar-spec {
  font-size: 11.5px;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-medica-dark);
}

/* ── WhatsApp Integration ────────────────────────────────────────── */
.social-link.social-whatsapp:hover {}

.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.floating-actions-container>* {
  pointer-events: auto;
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
}

.whatsapp-float-btn {
  background: #25D366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

.whatsapp-float-btn:hover {
  background: #20ba59;
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.prenota-float-btn {
  background: linear-gradient(135deg, #0097b2 0%, #00778c 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 15px;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(0, 151, 178, 0.42), 0 2px 8px rgba(0, 0, 0, 0.12);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.2s ease;
}

.prenota-float-btn:hover {
  background: linear-gradient(135deg, #008299 0%, #00667a 100%);
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 151, 178, 0.55), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.prenota-float-btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.wa-lbl-short {
  display: none;
}

.wa-lbl-full {
  display: inline;
}

.has-tech-bar .floating-actions-container {
  bottom: 80px;
}

@media (max-width: 640px) {
  .floating-actions-container {
    bottom: 16px;
    right: 16px;
    gap: 8px;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
  }

  .has-tech-bar .floating-actions-container {
    bottom: 64px !important;
  }

  .whatsapp-float-btn,
  .prenota-float-btn {
    padding: 8px 12px 8px 10px;
    font-size: 11.5px;
    gap: 6px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .whatsapp-float-btn svg {
    width: 18px;
    height: 18px;
  }

  .prenota-float-btn svg {
    width: 17px;
    height: 17px;
  }

  .wa-lbl-full {
    display: none;
  }

  .wa-lbl-short {
    display: inline;
  }
}