/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colori */
  --color-primary: #1d1d1f;
  --color-secondary: #86868b;
  --color-accent: #3d6849;
  --color-accent-light: #4a7c59;
  --color-white: #ffffff;
  --color-bg-light: #fbfbfd;
  --color-bg-card: rgba(255, 255, 255, 0.8);
  --color-border: rgba(0, 0, 0, 0.08);

  /* Nuovi colori per il bottone chat */
  --color-chat-blue-dark: #007aff;
  --color-chat-blue-light: #5ac8fa;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 80px;
  --spacing-xxl: 120px;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  --font-size-hero: clamp(48px, 7vw, 80px);
  --font-size-h1: clamp(40px, 5vw, 56px);
  --font-size-h2: clamp(32px, 4vw, 44px);
  --font-size-h3: clamp(24px, 3vw, 32px);
  --font-size-body: 17px;
  --font-size-small: 14px;

  /* Effects */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --blur-glass: blur(20px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-sm) var(--spacing-md);
  gap: var(--spacing-md);
}

.logo-text h1 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--color-primary);
}

.logo-center,
.logo-right {
  flex-shrink: 0;
}

.logo-center {
  order: -1;
}

.logo-image {
  height: 80px;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: var(--transition-fast);
  position: relative;
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-smooth);
}

nav a:hover::after {
  width: 100%;
}

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

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-fast);
}

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

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

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

.nav-mobile-extras {
  display: none;
}

.btn-prenota-header {
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  color: var(--color-white);
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: -0.2px;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-prenota-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-prenota-header:hover::before {
  left: 100%;
}

.btn-prenota-header:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xxl) 0 var(--spacing-xl);
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 30% 50%,
    rgba(61, 104, 73, 0.1) 0%,
    transparent 50%
  );
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: var(--spacing-md);
  letter-spacing: -2px;
  color: var(--color-primary);
}

.hero-subtitle-small {
  font-size: 0.6em; /* 60% of the parent font size */
  font-weight: 400;
  display: block; /* Ensures it sits nicely on its own line */
  margin-top: 0.2em;
}

.credentials {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
  letter-spacing: -0.3px;
}

.description {
  font-size: var(--font-size-body);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  color: var(--color-secondary);
  max-width: 540px;
}

.btn-prenota-hero {
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  color: var(--color-white);
  border: none;
  padding: 18px 48px;
  font-size: var(--font-size-body);
  font-weight: 600;
  border-radius: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
  letter-spacing: -0.2px;
}

.btn-prenota-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
}

.hero-image {
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-image img {
  width: 150%;
  max-width: 150%;
  height: auto;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  display: block;
}

.signature {
  margin-top: var(--spacing-lg);
}

.signature-image {
  width: auto;
  max-width: 500px;
  height: auto;
  display: block;
  filter: brightness(0);
}

/* === TRATTAMENTI SECTION === */
.trattamenti {
  background-color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-xxl);
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: var(--font-size-h1);
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
  letter-spacing: -1.5px;
}

.section-subtitle {
  font-size: var(--font-size-body);
  font-weight: 400;
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--spacing-xl);
  color: var(--color-secondary);
  line-height: 1.7;
}

.trattamenti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.trattamento-card {
  text-align: center;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.trattamento-card:hover {
  transform: translateY(-8px);
}

.trattamento-image {
  margin-top: var(--spacing-sm);
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.trattamento-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  transition: var(--transition-smooth);
  display: block;
}

.trattamento-card:hover .trattamento-image img {
  box-shadow: var(--shadow-md);
}

.trattamento-card h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-primary);
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.cta-center {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.btn-prenota-section {
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  color: var(--color-white);
  border: none;
  padding: 18px 48px;
  font-size: var(--font-size-body);
  font-weight: 600;
  border-radius: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: -0.2px;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.25);
}

.btn-prenota-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.35);
}

/* === METODO SECTION === */
.metodo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: var(--spacing-lg) 0 var(--spacing-xxl);
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.metodo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 100%
  );
  opacity: 0.95;
}

.metodo-title {
  font-size: var(--font-size-h2);
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.4;
  margin-bottom: var(--spacing-xl);
  letter-spacing: -0.5px;
  position: relative;
  z-index: 1;
}

.metodo-illustration {
  max-width: 100%;
  width: 100%;
  margin: 0 auto var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.illustration-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.metodo-signature {
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.metodo-signature .signature-image {
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.metodo .processo-grid {
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.metodo .processo-card {
  background: rgba(255, 255, 255, 0.95);
}

.metodo .processo-card:hover {
  background: rgba(255, 255, 255, 1);
}

/* === PROCESSO SECTION === */
.processo {
  background-color: var(--color-bg-light);
  padding: var(--spacing-xxl) 0;
  position: relative;
  z-index: 10;
  display: none;
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.processo-card {
  background: var(--color-bg-card);
  backdrop-filter: var(--blur-glass);
  padding: var(--spacing-lg);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.processo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.processo-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  letter-spacing: -0.5px;
  min-height: 60px;
}

.processo-divider {
  display: none;
}

.processo-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.processo-card p:last-child {
  margin-bottom: 0;
}

/* === RECENSIONI SECTION === */
.recensioni {
  background-color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-xxl);
  position: relative;
  z-index: 10;
}

.recensioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.recensione-card {
  background: var(--color-bg-light);
  padding: var(--spacing-md);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
}

.recensione-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.recensione-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-light)
  );
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
}

.avatar-placeholder-img,
.avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder-img {
  background-color: #e9ecef;
  border: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #adb5bd;
}

.user-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}

.recensioni-count {
  font-size: 13px;
  color: var(--color-secondary);
}

.stars {
  color: #ffa500;
  font-size: 16px;
  margin-bottom: var(--spacing-xs);
}

.recensione-date {
  font-size: 13px;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-sm);
}

.recensione-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.recensione-risposta {
  background-color: var(--color-white);
  padding: var(--spacing-sm);
  border-radius: 12px;
  margin-top: var(--spacing-sm);
  display: flex;
  gap: var(--spacing-sm);
  border-left: 3px solid var(--color-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.risposta-avatar .avatar-placeholder-img,
.risposta-avatar .avatar-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.risposta-autore {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.risposta-date {
  font-size: 12px;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-xs);
}

.risposta-text {
  font-size: 14px;
  color: var(--color-primary);
  line-height: 1.5;
}

/* === MAPPA E CONTATTI === */
.mappa-contatti {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 100%
  );
  position: relative;
  z-index: 10;
  padding-bottom: var(--spacing-xl); /* Added bottom padding for space below map */
}

.mappa-header {
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-lg); /* Reduced top padding */
  text-align: center;
}

.mappa-header h2 {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: -0.3px;
}

.mappa-container {
  background-color: var(--color-white);
  padding: 0;
  position: relative;
  max-width: 1200px;
  margin: 0 auto; /* Removed bottom margin, using padding on parent instead */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.mappa-container iframe {
  display: block;
  width: 100%;
}

.contatti-footer {
  padding: var(--spacing-xl) var(--spacing-md) var(--spacing-sm); /* Reduced bottom padding */
  text-align: center;
}

.contatti-footer h2 {
  font-size: var(--font-size-h1);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: -1.5px;
  margin-bottom: var(--spacing-lg);
}

.contatti-info {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-white);
}

.contatti-col {
  flex: 1;
  text-align: left;
}

.contatti-col p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
  font-weight: 300;
  opacity: 0.95;
}

.contatti-col strong {
  font-weight: 500;
}

.contatti-highlight {
  font-size: 20px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.contatti-col a {
  color: var(--color-white);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.contatti-col a:hover {
  opacity: 0.8;
}

.contatti-divider {
  width: 1px;
  height: 100px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* === FOOTER === */
.footer {
  background: linear-gradient(
    135deg,
    var(--color-accent) 0%,
    var(--color-accent-light) 100%
  );
  padding: var(--spacing-md) var(--spacing-md);
  text-align: center;
  color: var(--color-white);
  margin-top: 0;
  border-top: none;
}

.footer-info {
  font-size: 14px;
  margin-bottom: var(--spacing-xs);
  font-weight: 300;
  opacity: 0.9;
}

.footer-info a {
  color: var(--color-white);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.footer-info a:hover {
  opacity: 0.7;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.8;
}

/* === SOCIAL ICONS === */
.social-icons {
  position: fixed;
  left: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  z-index: 999;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.social-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none;
  outline: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* === CHAT BUTTON === */
.chat-button {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  z-index: 999;
}

.btn-chat {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark),
    var(--color-chat-blue-light)
  );
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35); /* Updated shadow color */
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-chat img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.btn-chat:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 122, 255, 0.45); /* Updated shadow color */
}

/* === FLOATING ACTION BUTTON (Mobile Only) === */
.floating-action-button {
  display: none; /* Hidden by default */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--spacing-sm) var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 40%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 998;
  pointer-events: none; /* Allow clicks to pass through the container */
}

.btn-prenota-floating {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  color: var(--color-white);
  border: none;
  padding: 18px 24px;
  font-size: var(--font-size-body);
  font-weight: 600;
  border-radius: 28px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
  transition: var(--transition-smooth);
  pointer-events: auto; /* Make the button clickable */
}

.btn-prenota-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.45);
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  nav ul {
    gap: var(--spacing-md);
  }

  .trattamenti-grid,
  .processo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  :root {
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;
  }

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md); /* Increased top/bottom padding */
    gap: var(--spacing-sm);
    position: relative; /* For absolute positioning of child */
  }

  .logo-center {
    order: initial; /* Reset order for mobile */
  }

  .logo-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }

  .hamburger {
    display: flex;
    /* order: 3; is no longer needed */
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
    padding-bottom: var(--spacing-xl);
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: var(--spacing-md);
  }

  nav a {
    display: block;
    padding: var(--spacing-md);
    font-size: var(--font-size-body);
  }

  nav a.active {
    color: var(--color-accent);
    opacity: 1;
    font-weight: 600;
  }

  .nav-mobile-extras {
    display: block;
    padding: var(--spacing-lg) var(--spacing-md);
    border-top: 2px solid var(--color-border);
    margin-top: var(--spacing-md);
  }

  .nav-social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-top: var(--spacing-sm);
  }

  .nav-social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    transition: var(--transition-fast);
    flex-shrink: 0;
    line-height: 0;
    padding: 0;
    margin: 0;
  }

  .nav-social-icon:hover {
    transform: translateY(-3px);
  }

  .nav-social-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    opacity: 1;
    visibility: visible;
    max-width: 40px;
    max-height: 40px;
    margin: 0;
    padding: 0;
  }

  .logo-right,
  .btn-prenota-header {
    display: none;
  }

  .social-icons {
    display: none;
  }

  .chat-button {
    display: block;
  }

  .header-content {
    gap: var(--spacing-sm);
  }

  .logo-image {
    height: 50px;
  }

  .logo-text h1 {
    font-size: 12px;
  }

  .hero {
    padding: calc(var(--spacing-xl) + 60px) 0 var(--spacing-lg);
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .hero-text h2 {
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.1;
  }

  .credentials {
    font-size: 16px;
  }

  .description {
    margin-bottom: var(--spacing-md); /* Reduced margin */
  }

  .hero-image {
    order: -1;
    height: 35vh; /* Set height relative to viewport */
    border-radius: 16px; /* Move border-radius to container */
    overflow: hidden; /* Hide overflowing image parts */
  }

  .hero-image img {
    width: 100%;
    max-width: 100%;
    height: 100%; /* Fill the container */
    object-fit: cover; /* Crop image to fit without distortion */
    border-radius: 0; /* Remove from image itself */
  }

  .signature-image {
    max-width: 280px;
    margin: 0 auto; /* Center the image */
  }

  .btn-prenota-hero {
    width: 100%;
    padding: 16px 32px;
  }

  .btn-prenota-hero,
  .btn-prenota-mobile,
  .cta-center {
    display: none;
  }

  .trattamenti-grid,
  .processo-grid,
  .recensioni-grid {
    grid-template-columns: 1fr;
  }

  .contatti-info {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    align-items: center;
  }

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

  .contatti-divider {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }

  .chat-button {
    bottom: 120px; /* Move up to clear floating button */
    right: var(--spacing-sm);
  }

  .btn-chat {
    width: 56px;
    height: 56px;
  }

  .floating-action-button {
    display: block; /* Show on mobile */
  }

  .footer {
    padding-bottom: 120px; /* To clear the floating action button */
  }
}

@media (max-width: 480px) {
  .logo-text h1 {
    font-size: 10px;
  }

  .logo-image {
    height: 40px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .signature-image {
    max-width: 220px;
  }
}

/* === SCROLL REVEAL (Optional Enhancement) === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Effetto staggered per titoli e sottotitoli */
.reveal.active .section-title {
  animation: fadeInUp 0.8s ease-out;
}

.reveal.active .section-subtitle {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.reveal.active .metodo-title {
  animation: fadeInUp 0.8s ease-out;
}

.reveal.active .mappa-header h2 {
  animation: fadeInUp 0.8s ease-out;
}

/* Ritardi scaglionati per le card */
.reveal.active .trattamento-card:nth-child(1),
.reveal.active .processo-card:nth-child(1),
.reveal.active .recensione-card:nth-child(1) {
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.reveal.active .trattamento-card:nth-child(2),
.reveal.active .processo-card:nth-child(2),
.reveal.active .recensione-card:nth-child(2) {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.reveal.active .trattamento-card:nth-child(3),
.reveal.active .processo-card:nth-child(3),
.reveal.active .recensione-card:nth-child(3) {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.reveal.active .trattamento-card:nth-child(4),
.reveal.active .processo-card:nth-child(4) {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.reveal.active .trattamento-card:nth-child(5) {
  animation: fadeInUp 0.8s ease-out 0.5s both;
}

.reveal.active .trattamento-card:nth-child(6) {
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Animazione per la mappa */
.reveal.active .mappa-container {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.reveal.active .contatti-info {
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* === APPUNTAMENTO SECTION === */
.appuntamento {
  background-color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-xxl); /* Reduced top padding */
  position: relative;
  z-index: 10;
}

.appuntamento-subtitle {
  text-align: center;
  color: var(--color-secondary);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
}

.appuntamento-subtitle a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: var(--transition-fast);
}

.appuntamento-subtitle a:hover {
  color: var(--color-primary);
}

.appuntamento-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .appuntamento-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* Left Column */
.contatti-diretti h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
}

.contatto-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.contatto-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contatto-icon img {
  width: 100%;
  height: auto;
}

.contatto-text p {
  font-size: 15px;
  color: var(--color-primary);
  line-height: 1.5;
}

/* Right Column - Form */
.appuntamento-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-row {
  display: flex;
  gap: var(--spacing-md);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--color-primary);
  transition: var(--transition-fast);
  background-color: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-chat-blue-light);
  box-shadow: 0 0 0 3px rgba(90, 200, 250, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-invia {
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  align-self: flex-start;
  margin-top: var(--spacing-sm);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  width: 100%;
}

.btn-invia:hover {
  transform: translateY(-2px);
}

/* Fix for button links converted from button elements */
.btn-prenota-header,
.btn-prenota-hero,
.btn-prenota-section,
.btn-prenota-mobile,
.btn-prenota-floating {
  text-decoration: none !important;
  text-align: center;
  display: inline-block;
}

.btn-prenota-mobile,
.btn-prenota-floating {
  display: block;
}

/* Fix for Metodo section button visibility */
.metodo .cta-center {
  position: relative;
  z-index: 2;
}

/* === CHAT POPUP === */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 100px;
  right: var(--spacing-md);
  width: 350px;
  max-width: calc(100% - 32px);
  background-color: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: slideUpFade 0.3s ease-out;
  border: 1px solid var(--color-border);
}

.chat-popup.active {
  display: block;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-popup-header {
  background: linear-gradient(
    135deg,
    var(--color-chat-blue-dark) 0%,
    var(--color-chat-blue-light) 100%
  );
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-white);
}

.chat-popup-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.close-popup {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.close-popup:hover {
  opacity: 1;
}

.chat-popup-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.popup-form .form-group {
  margin-bottom: 12px;
}

.popup-form label {
  font-size: 13px;
  margin-bottom: 4px;
}

.popup-form input,
.popup-form textarea {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
}

.popup-form textarea {
  min-height: 80px;
}

.popup-form .btn-invia {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  font-size: 15px;
}

@media (max-width: 480px) {
  .chat-popup {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
  }

  .chat-popup-body {
    padding: 16px;
  }
}

@media (max-width: 768px), (max-width: 1024px) and (orientation: portrait) {
  .btn-prenota-header,
  .btn-prenota-hero {
    display: none !important;
  }
}

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem 2rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10000;
  display: none; /* Hidden by default, shown via JS */
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.cookie-content p {
  margin: 0;
  font-size: 0.9rem;
  color: #333;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.btn-cookie-settings,
.btn-cookie-accept {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-cookie-settings {
  background-color: transparent;
  border: 1px solid #ced4da;
  color: #495057;
}

.btn-cookie-settings:hover {
  background-color: #e9ecef;
}

.btn-cookie-accept {
  background-color: #0071e3;
  color: white;
}

.btn-cookie-accept:hover {
  background-color: #005bb5;
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10001;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.cookie-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #212529;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
}

.cookie-modal-body {
  padding: 1.5rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f3f5;
}

.cookie-option:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cookie-option-info h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #212529;
}

.cookie-option-info p {
  margin: 0;
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.4;
  padding-right: 1rem;
}

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

.btn-save-settings {
  background-color: #000;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-save-settings:hover {
  background-color: #333;
}

/* === TOGGLE SWITCH === */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Chat Button Transition */
.chat-button {
    transition: bottom 0.4s ease;
}

.chat-button.shifted {
    bottom: 180px !important;
}

/* Disabled state */
input:disabled + .slider {
  background-color: #e9ecef;
  cursor: not-allowed;
}

input:disabled:checked + .slider {
  background-color: #adb5bd;
}

/* === FAQ SECTION === */
.faq-section {
    padding: 120px 0 80px; /* Top padding to account for fixed header */
    background-color: var(--color-white);
    flex: 1; /* Expand to fill space */
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-lg);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 24px;
    font-weight: 300; /* Matched to Chi Sono title */
    color: #4a4a4a;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 2px; /* Matched to Chi Sono title */
}

.faq-answer {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary); /* Matched to Chi Sono text */
    font-weight: 400; /* Matched to Chi Sono text */
}

.faq-answer a {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 20px;
    }
}

/* === CHI SONO PAGE === */
.chi-sono-section {
    padding: 140px 0 80px;
    background-color: var(--color-white);
    flex: 1; /* Expand to fill space */
}

.chi-sono-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Balanced columns */
    gap: var(--spacing-xxl);
    align-items: center;
    max-width: 1200px; /* Increased from 1000px to match container */
    margin: 0 auto;
}

.chi-sono-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.chi-sono-title-mobile {
    display: none;
    font-size: 32px;
    font-weight: 300;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chi-sono-title-desktop {
    font-size: 48px;
    font-weight: 300;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-lg);
}

.chi-sono-image-container {
    width: 100%; /* Full width of the column */
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chi-sono-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block; /* Removes bottom whitespace */
}

.chi-sono-text p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 400; /* Increased from 300 */
}

@media (max-width: 900px) {
    .chi-sono-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .chi-sono-title-desktop {
        display: none;
    }

    .chi-sono-title-mobile {
        display: block;
    }

    .chi-sono-image-container {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

/* === PRIVACY POLICY PAGE === */
.privacy-section {
    padding: 140px 0 80px;
    background-color: var(--color-white);
    flex: 1;
}

.privacy-title {
    font-size: 36px;
    font-weight: 300;
    color: #4a4a4a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto 0 0; /* Align left */
}

.privacy-content h3 {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.privacy-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.privacy-content ul {
    list-style-type: disc;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--color-secondary);
}

.privacy-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
    font-weight: 400;
}
