/* ============================================
   AUGE DENTAL CARE - DESIGN SYSTEM
   Vanilla CSS con variabili per palette Verde Salvia
   ============================================ */

/* ============================================
   1. CSS VARIABLES (Design Tokens)
   ============================================ */
:root {
  /* --- Colori Principali (Verde Salvia) --- */
  --color-primary: #7db18b; /* Sage Green - Colore brand principale */
  --color-primary-light: #9bc4a3; /* Sage Green Light - Hover states */
  --color-primary-dark: #5f9169; /* Sage Green Dark - Active states */
  --color-secondary: #eaf0ee; /* Light Sage - Backgrounds alternati */

  /* --- Backgrounds (Premium) --- */
  --color-bg-base: #f5f5f5; /* Grigio chiaro base */
  --color-bg-pearl: #fdfcfb; /* Pearl White - Premium backgrounds */
  --color-bg-subtle: #f9fafb; /* Grigio chiarissimo per sfumature */
  --color-bg-glass: rgba(255, 255, 255, 0.7); /* Glassmorphism background */

  /* --- Testo --- */
  --color-text-primary: #1f2937; /* Grigio antracite scuro - testo principale */
  --color-text-secondary: #6b7280; /* Grigio medio - testo secondario */
  --color-text-light: #9ca3af; /* Grigio chiaro - testo disabilitato */

  /* --- Accent & CTA (Enhanced) --- */
  --color-accent: #c06c5d; /* Oro Sabbia opaco - bottoni importanti */
  --color-accent-hover: #d08577; /* Oro più scuro per hover */
  --color-accent-rich: #e09e91; /* Rich Gold - Premium accents */
  --color-accent-gradient: linear-gradient(135deg, #c06c5d 0%, #d08577 100%);

  /* --- Utility Colors --- */
  --color-error: #ef4444; /* Rosso morbido per errori */
  --color-success: #10b981; /* Verde per successo */
  --color-warning: #f59e0b; /* Arancione per warning */

  /* --- Typography --- */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Font Sizes (Mobile First) */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;

  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* --- Spacing System --- */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */
  --space-4xl: 6rem; /* 96px */

  /* --- Border Radius --- */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.5rem; /* 8px */
  --radius-lg: 0.75rem; /* 12px */
  --radius-xl: 1rem; /* 16px */
  --radius-full: 9999px; /* Completamente arrotondato */

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* --- Transitions (Premium Curves) --- */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* --- Effects --- */
  --blur-glass: 10px; /* Glassmorphism backdrop blur */
  --blur-subtle: 5px; /* Subtle blur effect */

  /* --- Z-Index Scale --- */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* --- Container Max Width --- */
  --container-max-width: 1280px;
  --container-padding: var(--space-md);
}

/* ============================================
   2. CSS RESET & BASE STYLES
   ============================================ */

/* Box sizing reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Custom Text Selection Color */
::selection {
  background-color: var(--color-primary);
  color: #f5f5f5;
}

::-moz-selection {
  background-color: var(--color-primary);
  color: #f5f5f5;
}

/* Custom Scrollbar (Premium) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-subtle);
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ============================================
   IMAGE RESPONSIVE FIX (Aspect Ratio Preservation)
   ============================================ */
/* CRITICAL: Prevents image distortion on mobile while preserving 
   HTML width/height attributes for CLS (Core Web Vitals).
   - height: auto → browser recalculates height proportionally
   - max-width: 100% → prevents overflow on small screens
   - display: block → removes unwanted bottom spacing */
img {
  height: auto;
  max-width: 100%;
  display: block;
}

/* HTML & Body */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  overflow-x: hidden;
  position: relative;
}

/* Texture di carta come sfondo - con contrasto aumentato */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/texture-paper.jpg?v=4");
  background-repeat: repeat;
  background-size: 500px 500px;
  filter: contrast(1.8) brightness(0.95);
  opacity: 0.35;
  mix-blend-mode: soft-light;
  pointer-events: none;
  z-index: 1;
}

/* Assicura che tutto il contenuto rimanga sopra la texture */
.header,
main,
.footer,
.whatsapp-float,
.page-loader {
  position: relative;
  z-index: 10;
}

/* ============================================
   3. TYPOGRAPHY STYLES
   ============================================ */

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

h5,
h6 {
  font-size: var(--font-size-base);
}

/* Paragrafi */
p {
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* Liste */
ul,
ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-sm);
}

/* ============================================
   4. RESPONSIVE TYPOGRAPHY (Desktop)
   ============================================ */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }

  h4 {
    font-size: var(--font-size-xl);
  }
}

/* ============================================
   5. UTILITY CLASSES (Da espandere nelle fasi successive)
   ============================================ */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Sezioni con padding verticale */
.section {
  padding: var(--space-3xl) 0;
}

/* Background alternati */
.bg-white {
  background-color: var(--color-bg-base);
}

.bg-subtle {
  background-color: var(--color-bg-subtle);
}

.bg-secondary {
  background-color: var(--color-secondary);
}

.bg-primary {
  background-color: var(--color-primary);
}

/* Text utilities */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

/* ============================================
   6. BUTTON STYLES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-base);
  border-color: transparent;
  position: relative;
  overflow: hidden;
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Button background container */
.btn-primary::before {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translate(-50%, 0);
  width: max(200%, 10rem);
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background: var(--color-accent-hover);
  transform-origin: center;
  transform: translate(-50%, 0) scale(0);
  transition: transform 1.3s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -2;
}

/* Second layer - lighter gold */
.btn-primary::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translate(-50%, 0);
  width: max(200%, 10rem);
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  background: var(--color-accent-rich);
  transform-origin: center;
  transform: translate(-50%, 0) scale(0);
  transition: transform 1.3s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: 0.1s;
  z-index: -1;
}

/* Text container needs higher z-index */
.btn-primary > * {
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  color: var(--color-bg-base);
  transform: translateY(-2px);
  box-shadow:
    0 8px 16px -4px rgba(197, 160, 101, 0.4),
    0 4px 8px -2px rgba(197, 160, 101, 0.3);
}

.btn-primary:hover::before {
  transform: translate(-50%, 0) scale(1);
}

.btn-primary:hover::after {
  transform: translate(-50%, 0) scale(1);
}

.btn-outline {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.btn-outline:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  transition: left var(--transition-smooth);
  z-index: -1;
}

.btn-secondary:hover {
  color: var(--color-bg-base);
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px -8px rgba(138, 160, 136, 0.5),
    0 6px 12px -4px rgba(138, 160, 136, 0.4);
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondaryHero {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  border-color: var(--color-primary);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.btn-secondaryHero::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-bg-base);
  transition: left var(--transition-smooth);
  z-index: -1;
}

.btn-secondaryHero:hover {
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow:
    0 12px 24px -8px rgba(138, 160, 136, 0.5),
    0 6px 12px -4px rgba(138, 160, 136, 0.4);
}

.btn-secondaryHero:hover::before {
  left: 0;
}

/* Large Button Size Variant */
.btn-lg {
  padding: var(--space-sm) var(--space-lg) !important;
  font-size: var(--font-size-base) !important;
}

/* Mobile Active States for Buttons */
@media (max-width: 768px) {
  /* Remove default tap highlight */
  .btn,
  .btn-primary,
  .btn-secondary {
    -webkit-tap-highlight-color: transparent;
  }

  /* Enhanced Mobile Button Styles - More Visible */
  .btn-primary {
    box-shadow:
      0 6px 16px -4px rgba(197, 160, 101, 0.5),
      0 3px 8px -2px rgba(197, 160, 101, 0.4),
      0 0 0 1px rgba(197, 160, 101, 0.1);
    font-weight: var(--font-weight-bold);
  }

  .btn-secondary,
  .btn-secondaryHero {
    box-shadow:
      0 6px 16px -4px rgba(138, 160, 136, 0.4),
      0 3px 8px -2px rgba(138, 160, 136, 0.3);
    border-width: 2px; /* Thicker border */
    font-weight: var(--font-weight-semibold);
  }

  /* Primary Button Active State */
  .btn-primary:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 4px 8px -2px rgba(197, 160, 101, 0.3);
  }

  .btn-primary:active::before,
  .btn-primary:active::after {
    transform: translate(-50%, 0) scale(1);
    transition-duration: 0.2s;
  }

  /* Secondary Button Active State */
  .btn-secondary:active {
    transform: translateY(0) scale(0.97);
    color: var(--color-bg-base);
    box-shadow: 0 6px 12px -4px rgba(138, 160, 136, 0.4);
  }
  .btn-secondaryHero:active {
    transform: translateY(0) scale(0.97);
    color: var(--color-primary-dark);
    box-shadow: 0 6px 12px -4px rgba(138, 160, 136, 0.4);
  }

  .btn-secondary:active::before,
  .btn-secondaryHero:active::before {
    left: 0;
    transition-duration: 0.2s;
  }
}

/* ============================================
   7. HEADER / NAVBAR STYLES
   ============================================ */

.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1100; /* CRITICAL: Must be higher than overlay (1050) to prevent stacking context issues */
  transition: all var(--transition-base);
}

.navbar {
  padding: var(--space-md) 0;
}

.navbar-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Mobile: raggruppa CTA e hamburger a destra */
@media (max-width: 890px) {
  .navbar-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 0;
  }

  .navbar-logo {
    grid-column: 1;
  }

  .navbar-menu {
    grid-column: 2;
  }

  .navbar-cta {
    grid-column: 3;
  }

  .navbar-toggle {
    grid-column: 4;
  }
}

/* Logo */
.navbar-logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  letter-spacing: var(--letter-spacing-wide);
}

.logo-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.navbar-logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  transition:
    max-height var(--transition-base),
    transform var(--transition-base);
}

.navbar-logo:hover .navbar-logo-img {
  transform: scale(1.1);
}

@media (min-width: 890px) {
  .navbar-logo-img {
    max-height: 60px;
  }
}

/* Navigation Menu (Mobile First - Hidden by default) */
.navbar-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background-color: var(--color-bg-base);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3xl) var(--space-lg);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: right var(--transition-base);
  z-index: calc(var(--z-modal) + 10); /* Sopra l'overlay */
  overflow-y: auto;
}

.navbar-menu.active {
  right: 0;
}

.navbar-item {
  margin: 0;
  position: relative;
  z-index: 1; /* Assicura che i link siano sopra tutto */
}

/* Separatore verticale tra le voci del menu (solo desktop) */
@media (min-width: 890px) {
  .navbar-item:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-weight: 300;
    font-size: 1.5rem;
  }

  /* Rimuove separatore dall'ultimo elemento visibile (Contatti) dato che l'ultimo è la CTA nascosta */
  .navbar-item:nth-last-child(2)::after {
    display: none;
  }
  .navbar-item:last-child::after {
    display: none;
  }
}

.navbar-link {
  display: block;
  padding: var(--space-sm) 0;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  font-size: 0.7rem;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  cursor: pointer;
  pointer-events: auto; /* Forza i link ad essere cliccabili */
}

.navbar-link:hover,
.navbar-link.active {
  color: var(--color-primary);
}

.navbar-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-base);
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 100%;
}

/* Hide CTA button in desktop navbar (only visible in mobile hamburger menu) */
.navbar-item-cta {
  display: none;
}

/* Mobile Active State for Navbar Links - Design Semplificato */
@media (max-width: 889px) {
  .navbar-link {
    -webkit-tap-highlight-color: transparent;
    font-size: 1rem;
    background: transparent;
    color: var(--color-text-primary);
    padding: var(--space-sm) var(--space-sm);
    border-radius: 0;
    margin-bottom: 0;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 500;
  }

  /* Dropdown arrow per indicare menu espandibili */
  .navbar-link-dropdown {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .navbar-link-dropdown i {
    transition: transform 0.3s ease;
  }

  .navbar-dropdown.active .navbar-link-dropdown i {
    transform: rotate(90deg);
  }

  /* Mobile CTA Button in Hamburger Menu */
  .navbar-item-cta {
    display: block;
    margin-top: var(--space-lg);
    border-top: 2px solid #e0e0e0;
    padding-top: var(--space-lg);
  }

  .navbar-link-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 1.125rem;
    background: transparent;
    color: var(--color-accent);
    padding: var(--space-lg);
    border-radius: 8px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    transition: all var(--transition-fast);
  }

  .navbar-link-cta i {
    font-size: 1.25rem;
  }

  .navbar-link-cta:active {
    background: rgba(192, 108, 93, 0.1);
    transform: scale(0.98);
  }

  .navbar-link-cta:hover {
    color: var(--color-accent);
    background: rgba(192, 108, 93, 0.05);
  }

  .navbar-link:hover,
  .navbar-link.active {
    background: #f8f8f8;
    color: var(--color-primary);
  }

  .navbar-link:active {
    background: #f0f0f0;
    transform: scale(0.98);
  }

  .navbar-link:active::after {
    width: 100%;
    background-color: white;
    transition-duration: 0.15s;
  }
}

/* CTA Button */
.navbar-cta {
  display: flex;
  align-items: center;
}

/* Mobile: CTA e hamburger raggruppati a destra */
@media (max-width: 889px) {
  .navbar-wrapper {
    position: relative;
  }

  /* Crea un gruppo per CTA + hamburger */
  .navbar-cta {
    display: flex;
    margin-right: 1.5rem;
  }

  .navbar-cta .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: block;
    position: relative;
    border-radius: 8px;
  }

  .navbar-cta .btn i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    font-size: 1.1rem;
  }

  /* Nasconde il testo in mobile */
  .navbar-cta .btn {
    font-size: 0;
  }
}

/* Desktop: mostra il bottone CTA normale */
@media (min-width: 890px) {
  .navbar-cta {
    display: block;
  }
}

/* Mobile Menu Toggle (Hamburger) */
.navbar-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: calc(var(--z-modal) + 10);
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

/* Hamburger Animation quando il menu è aperto */
.navbar-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Overlay per chiudere il menu mobile */
.navbar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal); /* Sotto il menu che ha z-modal + 10 */
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
}

.navbar-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ============================================
   8. DROPDOWN MENU STYLES
   ============================================ */

/* Dropdown Container */
.navbar-dropdown {
  position: relative;
}

/* Dropdown chevron icon */
.navbar-link-dropdown i {
  font-size: 0.75rem;
  margin-left: var(--space-xs);
  transition: transform var(--transition-base);
}

/* Dropdown Menu (Hidden by default) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: var(--space-sm) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
  margin-top: var(--space-sm);
}

/* Show dropdown on hover (desktop) */
@media (min-width: 890px) {
  .navbar-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar-dropdown:hover .navbar-link-dropdown i {
    transform: rotate(180deg);
  }
}

/* Dropdown Links */
.dropdown-link {
  display: block;
  padding: var(--space-xs) var(--space-md);
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-base);
  position: relative;
}

.dropdown-link:hover,
.dropdown-link.active {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  padding-left: calc(var(--space-lg) + var(--space-xs));
}

/* Mobile dropdown styles */
@media (max-width: 889px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    box-shadow: none;
    background: transparent;
    padding: var(--space-xs) 0 var(--space-xs) var(--space-md);
    min-width: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .navbar-dropdown.active .dropdown-menu {
    max-height: 500px;
  }

  .navbar-dropdown.active .navbar-link-dropdown i {
    transform: rotate(90deg);
  }

  .dropdown-link {
    background: transparent;
    color: var(--color-text-primary);
    padding: var(--space-xs) var(--space-md);
    border-radius: 0;
    margin-bottom: 0;
    font-size: 1rem;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 400;
  }

  .dropdown-link:hover,
  .dropdown-link.active {
    background: #f8f8f8;
    color: var(--color-primary);
    padding-left: calc(var(--space-md) + var(--space-xs));
  }
}

/* ============================================
   9. NAVBAR RESPONSIVE (Desktop)
   ============================================ */
@media (min-width: 890px) {
  .navbar {
    padding: var(--space-lg) 0;
  }

  /* Grid Layout: Auto - Fluid Center - Auto */
  .navbar-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
  }

  .navbar-logo {
    grid-column: 1;
    justify-self: start;
    min-width: max-content;
  }

  .navbar-cta {
    grid-column: 3;
    justify-self: end;
    display: block;
    min-width: max-content;
  }

  /* Menu diventa orizzontale e centrato */
  .navbar-menu {
    grid-column: 2;
    position: static;
    width: 100%;
    height: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    overflow-y: visible;
  }

  .navbar-link {
    font-size: var(--font-size-base);
    padding: var(--space-sm);
    white-space: nowrap;
  }

  /* Nascondi hamburger su desktop */
  .navbar-toggle {
    display: none;
  }
}

/* Intermediate Desktop Breakpoint: Shrink menu items to fit */
@media (min-width: 890px) and (max-width: 1120px) {
  .navbar-menu {
    gap: var(--space-xs);
  }
  .navbar-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
  .navbar-logo-img {
    max-height: 45px;
  }
  .navbar-wrapper {
    gap: var(--space-sm);
  }
}

/* ============================================
   9. FOOTER STYLES
   ============================================ */

.footer {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer Columns - Centered on Mobile */
.footer-col {
  text-align: center;
}

/* Footer Logo */
.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo .logo-text {
  color: var(--color-bg-base);
  font-size: var(--font-size-xl);
}

.footer-logo .logo-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.footer-motto {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

/* Social Links - Centered on Mobile */
.footer-social {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-bg-base);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-base);
}

.social-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-base);
  transform: translateY(-3px);
}

/* Mobile Active State for Social Links */
@media (max-width: 768px) {
  .social-link {
    -webkit-tap-highlight-color: transparent;
    width: 48px; /* Larger */
    height: 48px;
    background-color: var(--color-accent); /* Gold background */
    color: white; /* White icons */
    margin-bottom: 0.5rem;
  }

  .social-link i {
    font-size: 1.25rem; /* Larger icons */
    color: white; /* Ensure white color */
  }

  .social-link:active {
    background-color: var(--color-accent-hover); /* Darker gold on tap */
    transform: scale(0.95);
    box-shadow: 0 0 0 4px rgba(197, 160, 101, 0.2);
  }
}

/* Footer Titles */
.footer-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-bg-base);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--letter-spacing-tight);
}

/* Footer Links - Centered on Mobile */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    text-decoration-color var(--transition-fast);
  display: inline-block;
  position: relative;
  text-underline-offset: 2px;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8); /* Mantiene lo stesso colore */
  transform: translateX(8px); /* Spostamento a destra */
  text-decoration: underline;
  text-decoration-color: var(--color-accent); /* Sottolineatura terracotta */
  text-decoration-thickness: 2px;
}

/* Mobile Active State for Footer Links */
@media (max-width: 768px) {
  .footer-links a {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    font-size: 1rem; /* Slightly larger */
  }

  .footer-links a:active {
    color: var(--color-accent-rich);
    transform: scale(0.98);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Footer Contact - Centered on Mobile */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--line-height-relaxed);
  justify-content: center;
  text-align: left;
}

.footer-contact i {
  color: var(--color-accent);
  width: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

/* Mobile Footer Column Separators */
@media (max-width: 768px) {
  .footer-col {
    position: relative;
    margin-bottom: 0.5rem;
  }

  /* Centered separator line between sections */
  .footer-col:not(:first-child)::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--space-xl));
    left: 50%;
    transform: translateX(-50%);
    width: 80%; /* Larghezza del contenuto */
    max-width: 400px;
    height: 2px;
    background-color: var(--color-primary-dark);
  }
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
  padding-top: var(--space-lg);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-legal p {
  margin: 0;
  line-height: var(--line-height-normal);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--color-accent);
}

.footer-legal-links .separator {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   10. FOOTER RESPONSIVE (Desktop)
   ============================================ */
@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Left align footer columns on tablet and desktop */
  .footer-col {
    text-align: left;
  }

  /* Left align social links on desktop */
  .footer-social {
    justify-content: flex-start;
  }

  /* Left align contact items on desktop */
  .footer-contact li {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ============================================
   11. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh; /* Full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 80px; /* Account for fixed header */
}

.hero-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Vertically center content */
  align-items: center;
  padding-bottom: var(--space-3xl);
}

.hero-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: var(--space-3xl);
}

.hero-label-accent {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.hero-label-primary {
  display: inline-block;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f9169;
  margin-bottom: var(--space-md);
  border-bottom: 2px solid #5f9169;
  padding-bottom: 4px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  color: white;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title .text-accent {
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
}

.btn-outline-white {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-md) var(--space-2xl);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--color-secondary);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Features Bar */
.hero-features {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  gap: var(--space-lg);
  width: 100%;
  max-width: 1000px;
  margin-top: auto; /* Push to bottom if container has height */
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: white;
  font-weight: 500;
  justify-content: center;
}

.feature-icon-wrapper {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(95, 145, 105, 0.4);
}

.hero-feature-divider {
  display: none;
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem; /* Massive on desktop */
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

  .hero-cta {
    flex-direction: row;
  }

  .hero-features {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: 50px; /* Pill shape on desktop */
  }

  .hero-feature-divider {
    display: block;
  }
}

/* ============================================
   12. SECTION HEADERS
   ============================================ */

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--font-size-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

@media (min-width: 768px) {
  .section-title {
    font-size: var(--font-size-4xl);
  }
}

/* ============================================
   13. INTRO SECTION (Text + Image Grid)
   ============================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.intro-content {
  order: 2;
}

.intro-text {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
}

.intro-image {
  order: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .intro-content {
    order: 1;
  }

  .intro-image {
    order: 2;
  }
}

/* ============================================
   14. STAFF CARDS
   ============================================ */

.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.staff-card {
  background: var(--color-bg-glass);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(138, 160, 136, 0.2);
  position: relative;
  transition: all var(--transition-smooth);
}

.staff-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 20px 40px -12px rgba(138, 160, 136, 0.4),
    0 10px 20px -6px rgba(138, 160, 136, 0.3);
  border-color: var(--color-primary);
}

.staff-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.staff-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.staff-card:hover .staff-image::after {
  opacity: 1;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
  filter: grayscale(0%);
}

.staff-card:hover .staff-image img {
  transform: scale(1.1) rotate(1deg);
}

.staff-info {
  padding: var(--space-xl);
}

.staff-name {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.staff-role {
  font-size: var(--font-size-sm);
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
  margin-bottom: var(--space-md);
}

.staff-bio {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .staff-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   15. TREATMENT CARDS (Swiper Slider)
   ============================================ */

.treatments-slider {
  padding: var(--space-lg) 0 var(--space-3xl);
}

.treatment-card {
  background-color: var(--color-bg-base);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.treatment-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px -5px rgba(138, 160, 136, 0.6),
    0 15px 30px -5px rgba(138, 160, 136, 0.5),
    0 5px 15px -3px rgba(138, 160, 136, 0.4);
}

.treatment-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: var(--radius-full);
  color: var(--color-bg-base);
  font-size: var(--font-size-3xl);
}

.treatment-title {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.treatment-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.treatment-link {
  color: var(--color-accent);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.treatment-link:hover {
  gap: var(--space-sm);
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--color-accent);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  background-color: var(--color-primary);
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background-color: var(--color-accent);
  opacity: 1;
}

/* ============================================
   16. TECHNOLOGY GRID
   ============================================ */

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.tech-item {
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--color-bg-base);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tech-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
}

.tech-title {
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.tech-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   17. CERTIFICATIONS GRID
   ============================================ */

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  align-items: center;
  justify-items: center;
}

.cert-item {
  width: 100%;
  max-width: 200px;
  padding: var(--space-lg);
  transition: all var(--transition-base);
}

.cert-item img {
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition-base);
}

.cert-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .certifications-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   18. CONTACT SECTION (Form + Map)
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.contact-form-container {
  background-color: var(--color-bg-base);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

/* Form Styles */
.contact-form {
  margin-bottom: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--color-text-primary);
  background-color: var(--color-bg-subtle);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-base);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Contact Info */
.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-info-item i {
  color: var(--color-accent);
  font-size: var(--font-size-xl);
  width: 30px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.contact-info-item p {
  color: var(--color-text-secondary);
  margin-bottom: 0;
  line-height: var(--line-height-relaxed);
}

.contact-info-item a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-info-item a:hover {
  color: var(--color-accent);
}

/* Google Map */
.contact-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-map {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
  }

  .contact-map {
    height: 100%;
    min-height: 600px;
  }
}

/* Stacked Layout Modifier (Form on top, Map below) */
.contact-wrapper--stacked {
  grid-template-columns: 1fr !important;
  gap: var(--space-2xl);
}

.contact-wrapper--stacked .contact-form-container {
  max-width: 100%;
}

.contact-map--wide {
  height: 400px;
  min-height: 350px;
}

@media (min-width: 768px) {
  .contact-map--wide {
    height: 450px;
  }
}

/* Form Row (2 fields per row on desktop) */
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .form-row .form-group {
    margin-bottom: 0;
  }
}

/* Horizontal Contact Info Cards */
.contact-info--horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .contact-info--horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info--horizontal {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Full-width form group (for Message field) */
.form-group--full {
  margin-bottom: var(--space-lg);
}

.form-group--full textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   19. PAGE HEADER
   ============================================ */

.page-header {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
}

.page-header h1 {
  color: var(--color-bg-base);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
  /* Scale + Fade animation */
  opacity: 0;
  transform: scale(0.95);
  animation: scaleFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-header-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-xl);
  margin-bottom: 0;
  /* Scale + Fade animation with delay */
  opacity: 0;
  transform: scale(0.95);
  animation: scaleFadeIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: var(--font-size-5xl);
  }
}

/* ============================================
   20. VALUES GRID
   ============================================ */

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

.value-card {
  background-color: var(--color-bg-base);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--font-size-3xl);
}

.value-title {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.value-description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   21. GALLERY GRID
   ============================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-xl);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--color-bg-base);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .gallery-item img {
    height: auto;
    aspect-ratio: 16/9;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   22. CTA SECTION
   ============================================ */

.cta-section {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  color: var(--color-bg-base);
}

.cta-title {
  color: var(--color-bg-base);
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.cta-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-accent {
  background-color: var(--color-bg-base);
  color: var(--color-primary);
  border-color: var(--color-bg-base);
}

.btn-accent:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: var(--font-size-4xl);
  }
}

/* ============================================
   23. STAFF CARDS FULL (Staff Page)
   ============================================ */

.staff-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.staff-card-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background-color: var(--color-bg-base);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.staff-card-full:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.staff-card-full .staff-image {
  width: 100%;
  height: 350px;
}

.staff-card-full .staff-info {
  padding: var(--space-2xl);
}

.staff-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.specialty-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-secondary);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

@media (min-width: 768px) {
  .staff-card-full {
    grid-template-columns: 300px 1fr;
  }

  .staff-card-full .staff-image {
    height: 100%;
  }
}

/* ============================================
   24. TREATMENT DETAIL SECTIONS
   ============================================ */

.treatment-detail {
  max-width: 900px;
  margin: 0 auto;
}

.treatment-detail-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: var(--radius-full);
  color: var(--color-bg-base);
  font-size: var(--font-size-4xl);
}

.treatment-detail-title {
  text-align: center;
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.treatment-detail-intro {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: var(--line-height-relaxed);
}

.treatment-detail-content h3 {
  color: var(--color-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.treatment-detail-content ul {
  margin-bottom: var(--space-lg);
}

.treatment-detail-content li {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ============================================
   25. CONTACT INFO CARDS
   ============================================ */

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-info-card {
  background-color: var(--color-bg-base);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.contact-info-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-secondary);
  border-radius: var(--radius-full);
  color: var(--color-primary);
  font-size: var(--font-size-2xl);
}

.contact-info-card h3 {
  font-size: var(--font-size-xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.contact-info-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.contact-info-card a {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.contact-info-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

@media (min-width: 640px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-info-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   26. CONTACT FORM FULL WIDTH
   ============================================ */

.contact-wrapper-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
}

.contact-form-container-full {
  background-color: var(--color-bg-base);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: auto;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-map-full {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .contact-map-full {
    height: 600px;
  }
}

/* ============================================
   27. FAQ SECTION
   ============================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.content-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 100%;
}

@media (max-width: 767px) {
  .content-image,
  .image-overlap .main-image {
    width: 100% !important;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    height: auto;
  }
}

.faq-item {
  background-color: var(--color-bg-base);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  font-size: var(--font-size-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.faq-answer {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   FINE COMPONENTI TUTTE LE PAGINE
   ============================================ */

/* ============================================
   PREMIUM ENHANCEMENTS
   ============================================ */

/* Premium Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-bg-pearl) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.6s ease-out,
    visibility 0.6s ease-out;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loader-logo {
  margin-bottom: 0;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  display: block;
  letter-spacing: 0.15em;
  animation: shineOnce 2s ease-out forwards;
  text-shadow: 0 0 10px rgba(138, 160, 136, 0);
}

/* Responsive: larger text on desktop */
@media (min-width: 768px) {
  .loader-text {
    font-size: 6rem;
  }
}

.loader-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-top: var(--space-md);
  opacity: 0.8;
}

/* Scroll Indicator (Hero Section) */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-full);
  position: relative;
  backdrop-filter: blur(var(--blur-subtle));
  background: rgba(255, 255, 255, 0.1);
}

.scroll-arrow::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

/* Premium Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shineOnce {
  0% {
    transform: scale(1);
    text-shadow: 0 0 10px rgba(138, 160, 136, 0);
    filter: brightness(1);
  }
  40% {
    transform: scale(1.08);
    text-shadow:
      0 0 30px rgba(255, 255, 255, 0.9),
      0 0 60px rgba(138, 160, 136, 0.6),
      0 0 90px rgba(138, 160, 136, 0.4);
    filter: brightness(1.4);
  }
  70% {
    transform: scale(1.02);
    text-shadow:
      0 0 20px rgba(255, 255, 255, 0.6),
      0 0 40px rgba(138, 160, 136, 0.4);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 8px rgba(138, 160, 136, 0.3);
    filter: brightness(1);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes scrollDot {
  0% {
    top: 10px;
    opacity: 1;
  }
  50% {
    top: 25px;
    opacity: 0.5;
  }
  100% {
    top: 10px;
    opacity: 1;
  }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(107, 128, 105, 0.4),
    0 2px 6px rgba(107, 128, 105, 0.3);
  z-index: 1100; /* Above navbar (1060) */
  transition: all var(--transition-smooth);
  text-decoration: none;
  animation: whatsappPulse 2s ease-in-out infinite; /* Pulse on all screens */
}

.whatsapp-float i {
  font-size: 32px;
  background: linear-gradient(
    180deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 50%,
    var(--color-primary-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-primary-dark); /* Fallback */
  transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow:
    0 8px 20px rgba(107, 128, 105, 0.5),
    0 4px 10px rgba(107, 128, 105, 0.4);
}

.whatsapp-float:hover i {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 60px; /* Increased from 55px */
    height: 60px;
  }

  .whatsapp-float i {
    font-size: 30px;
  }

  /* WhatsApp Button Active State */
  .whatsapp-float {
    -webkit-tap-highlight-color: transparent;
  }

  .whatsapp-float:active {
    transform: translateY(0) scale(1.05);
    box-shadow:
      0 4px 12px rgba(107, 128, 105, 0.6),
      0 0 0 6px rgba(138, 160, 136, 0.2);
    animation: none; /* Stop pulse on tap */
  }

  .whatsapp-float:active i {
    color: var(--color-primary-dark);
    transform: scale(1.15);
  }
}

/* WhatsApp Pulse Animation */
@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 6px 16px rgba(107, 128, 105, 0.5),
      0 3px 8px rgba(107, 128, 105, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 8px 20px rgba(107, 128, 105, 0.6),
      0 4px 10px rgba(107, 128, 105, 0.5),
      0 0 0 8px rgba(138, 160, 136, 0.15);
  }
}

/* NOTE: @keyframes shineOnce is defined above at line ~2578 */

/* Scale + Fade In Animation for Page Headers */
@keyframes scaleFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* ============================================
      FOUNDER SPOTLIGHT (Index)
   ============================================ */

.founder-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.founder-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 3/4;
}

.founder-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.founder-image-wrapper:hover img {
  transform: scale(1.03);
}

.founder-quote {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  font-style: italic;
  color: var(--color-text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 4px solid var(--color-accent);
}

.founder-bio {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

.founder-credentials {
  display: list-item;
  list-style: none;
  padding: 0;
  margin-bottom: var(--space-lg);
}

.founder-credentials li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--color-text-primary);
}

.founder-credentials i {
  color: var(--color-primary);
  font-size: 1.1rem;
}

@media (min-width: 992px) {
  .founder-spotlight {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-3xl);
  }
}

/* ============================================
   NEW TREATMENT CARDS (Slider)
   ============================================ */
.treatment-card-new {
  background: var(--color-bg-base);
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.treatment-card-new:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(138, 160, 136, 0.4);
}

.treatment-card-new .card-image-wrapper {
  height: 220px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-secondary);
}

.treatment-card-new .card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.treatment-card-new:hover .card-image-wrapper img {
  transform: scale(1.1);
}

.treatment-card-new .card-content {
  padding: var(--space-xl);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.treatment-card-new .card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
  line-height: 1.3;
}

.treatment-card-new .card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.treatment-card-new .card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-base);
  margin-top: auto;
}

.treatment-card-new .card-cta:hover {
  color: var(--color-accent);
  gap: var(--space-sm);
}

.treatment-card-new .card-cta i {
  font-size: 0.85em;
  transition: transform 0.3s ease;
}

.treatment-card-new:hover .card-cta i {
  transform: translateX(4px);
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
  .treatment-card-new .card-image-wrapper {
    height: 180px;
  }
  .treatment-card-new .card-content {
    padding: var(--space-lg);
  }
  .treatment-card-new .card-title {
    font-size: 1.25rem;
  }
}

/* ============================================
   SLIDER NAVIGATION (External)
   ============================================ */
.slider-relative-wrapper {
  position: relative;
  padding: 0 var(--space-xl); /* Add space for arrows */
}

/* Customize arrows to be outside and circular */
.slider-relative-wrapper .swiper-button-next.custom-arrow,
.slider-relative-wrapper .swiper-button-prev.custom-arrow {
  width: 48px;
  height: 48px;
  background-color: var(--color-bg-base);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.slider-relative-wrapper .swiper-button-next.custom-arrow::after,
.slider-relative-wrapper .swiper-button-prev.custom-arrow::after {
  font-size: 1.1rem;
  font-weight: 700;
}

.slider-relative-wrapper .swiper-button-next.custom-arrow:hover,
.slider-relative-wrapper .swiper-button-prev.custom-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-bg-base);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Position arrows absolutely relative to the wrapper */
.slider-relative-wrapper .swiper-button-next.custom-arrow {
  right: -10px;
}

.slider-relative-wrapper .swiper-button-prev.custom-arrow {
  left: -10px;
}

/* Adjust for mobile: hide external arrows or position them differently */
/* Adjust for mobile: position arrows at the bottom flanking pagination */
@media (max-width: 768px) {
  .treatments-slider {
    padding-bottom: var(--space-3xl); /* Ensure space for bottom controls */
  }

  .slider-relative-wrapper {
    padding: 0;
  }
  .slider-relative-wrapper .swiper-button-next.custom-arrow,
  .slider-relative-wrapper .swiper-button-prev.custom-arrow {
    display: flex;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 20;
    top: auto; /* Remove centering */
    bottom: 5px; /* Align with bottom/pagination */
    margin-top: 0;
    transform: none;
  }

  .slider-relative-wrapper .swiper-button-next.custom-arrow {
    right: 15px;
  }

  .slider-relative-wrapper .swiper-button-prev.custom-arrow {
    left: 15px;
  }
}

/* ============================================
   COOKIE CONSENT PRO (Medical Premium)
   ============================================ */

.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.6); REMOVED BACKDROP */
  /* backdrop-filter: blur(8px); REMOVED BLUR */
  z-index: 9999;
  display: flex;
  align-items: flex-end; /* Align Bottom */
  justify-content: center; /* Center Horizontally */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in-out;
  pointer-events: none; /* Allow clicking through the overlay area */
}

.cookie-overlay.show {
  opacity: 1;
  visibility: visible;
}

.cookie-modal {
  background-color: #ffffff;
  width: 100%; /* Full width or max-width constrained */
  max-width: 100%; /* Occupy full width on mobile/desktop as requested "covers a good part" */
  padding: 3rem 2rem;
  border-radius: 20px 20px 0 0; /* Rounded top only */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  transform: translateY(100%); /* Start from below */
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: auto; /* Re-enable clicks on the modal itself */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .cookie-modal {
    max-width: 800px; /* Constrain on large screens but still "annoying" enough */
    margin-bottom: 0;
    border-radius: 20px 20px 0 0;
  }
}

.cookie-overlay.show .cookie-modal {
  transform: translateY(0);
}

.cookie-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.cookie-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.cookie-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.cookie-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cookie-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

.btn-cookie {
  padding: 0.75rem 1.5rem;
  border-radius: 8px; /* Slightly tighter radius for buttons */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

/* 1. Accetta Tutto - Primary */
.btn-cookie-accept {
  background-color: var(--color-primary);
  color: white;
  border: 2px solid var(--color-primary);
  flex: 2; /* Make it wider */
}

.btn-cookie-accept:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(125, 177, 139, 0.3);
}

/* 2. Solo Necessari - Secondary/Outline */
.btn-cookie-necessary {
  background-color: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  flex: 1;
}

.btn-cookie-necessary:hover {
  background-color: rgba(125, 177, 139, 0.1);
}

/* 3. Rifiuta - Minimal Link style */
.btn-cookie-reject {
  background: none;
  border: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  text-decoration: underline;
  padding: 0.5rem;
  flex: 0;
}

.btn-cookie-reject:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   INTRO SECTION STYLES (for index.html and studio.html)
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Mobile responsive: text before image */
@media (max-width: 767px) {
  .intro-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }

  /* Force text to appear first on mobile */
  .intro-content {
    order: 1;
  }

  /* Force image to appear second on mobile */
  .intro-image {
    order: 2;
    width: 100%;
  }

  .intro-image img {
    width: 100%;
  }
}

/* ============================================
   12. SVG LOADER ANIMATION
   ============================================ */

#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #faf5f4 0%, #f8f0ee 100%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 1.5s ease-out,
    visibility 1.5s ease-out,
    filter 1.5s ease-out,
    transform 1.5s ease-in; /* Zoom during fade */
}

#pageLoader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(40px); /* Intense Cinematic Blur */
  transform: scale(1.1); /* Slight additional zoom on container */
}

#loaderWrapper {
  width: 150px; /* Smaller desktop size */
  height: auto;
  aspect-ratio: 0.76;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Pulse effect overlaps with fill: 1.5s draw + 0.1s pause + start pulse during fill */
  animation: pulseForward 0.6s ease-out 1.8s forwards;
}

@media (max-width: 768px) {
  #loaderWrapper {
    width: 100px; /* Much smaller mobile size */
  }
}

#auge-loader-svg {
  width: 100%;
  height: auto;
  overflow: visible; /* Prevents laser glow clipping */
}

/* LAYER 1: Fill (Sharp, no blur) */
.auge-fill {
  fill: transparent;
  stroke: none; /* No stroke on fill layer */
  filter: none; /* SHARP: No blur/glow on the fill */

  /* Timeline: 0s-1.6s transparent, then fades to green */
  animation: simpleFill 0.8s ease-out 1.6s forwards;
}

/* LAYER 2: Stroke (Laser Glow) */
.auge-stroke {
  fill: transparent;
  stroke: var(--color-primary);
  stroke-width: 1px;
  stroke-miterlimit: 10;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;

  /* Laser Effect: Only on the stroke */
  filter: drop-shadow(0 0 2px var(--color-primary))
    drop-shadow(0 0 5px var(--color-primary));

  /* Timeline: Draws stroked, stays stroked (doesn't fill) */
  animation: drawStroke 1.5s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

/* Animations */
@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes simpleFill {
  from {
    fill: transparent;
  }
  to {
    fill: var(--color-primary);
  }
}

@keyframes pulseForward {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}

@keyframes loaderBreath {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* ============================================
   16. FOOTER BRANDING
   ============================================ */

.footer-logo img {
  width: 150px; /* Default desktop size */
  height: auto;
  display: block;
}

/* Footer Responsive Branding */
@media (max-width: 768px) {
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content on mobile */
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .footer-logo img {
    width: 120px; /* Smaller but visible on mobile */
    max-width: 80%; /* Safety constraint */
  }
}

/* ============================================
   HERO CONTENT CENTERING
   ============================================ */

/* Center all hero content */
.hero-content,
.treatment-hero-content {
  text-align: center;
}

/* Hero labels - centered */
.hero-label-primary,
.hero-label,
.treatment-hero .hero-label {
  display: inline-block;
  text-align: center;
}

/* Hero titles - centered */
.hero-title,
.treatment-hero h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Hero subtitles/paragraphs - centered */
.hero-subtitle,
.treatment-hero p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Hero CTA buttons - centered */
.hero-cta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

/* ============================================
   17. MOBILE UTILITIES
   ============================================ */

/* Button visible only on mobile */
.mobile-directions-btn {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-directions-btn {
        display: inline-flex !important;
        width: 100%;
        margin-top: -1.6rem!important; /* Negative margin to counter grid gap and pull closer to map */
    }
}

/* ============================================
   STEP ICON CONTAINER AND BADGE (Globally Shared)
   ============================================ */
.step-icon-container {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(95, 145, 105, 0.1), rgba(95, 145, 105, 0.2));
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--space-lg);
  position: relative;
  transition: transform 0.3s ease;
}

.step-card:hover .step-icon-container {
  transform: scale(1.05);
}

.step-number-badge {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  border-radius: 50%;
  border: 4px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(95, 145, 105, 0.4);
}
