/* ============================================
   FOGLIO DI STILE OTTIMIZZATO & RIPULITO — Dott.ssa Alessia Contessi
   Fisioterapista a Sovere (BG)
   ============================================ */

/* ── 1. VARIABILI & TEMI (ROOT) ── */
:root {
  --ink: #002108;
  --green-deep: #0E6D23;
  --green-sage: #3AAC11;
  --green-lime: #ABC70C;
  --clay: #EED942;
  --yellow-accent: #ECAD0B;

  --bg: #FFFFFF;
  --bg-panel: #F7FAF7;
  --bg-card: #FFFFFF;
  --text-main: #002108;
  --text-muted: rgba(0, 33, 8, 0.85);
  --line: rgba(14, 109, 35, 0.12);
  --line-strong: rgba(14, 109, 35, 0.22);

  --heading-color: var(--green-deep);
  --step-3-num-color: #556B02;

  --shadow-sm: 0 2px 8px rgba(0, 33, 8, 0.05);
  --shadow-md: 0 6px 12px rgba(0, 33, 8, 0.08);
  --shadow-lg: 0 10px 16px rgba(0, 33, 8, 0.12);
  --radius: 12px;
  --radius-lg: 18px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --bg-hero: #F4F8F4;
  --bg-about: #FFFFFF;
  --bg-services: #EFF6EE;
  --bg-why: #FBFDFB;
  --bg-reviews: #F5FAF4;
  --bg-footer: #002108;

  --cursor-color: #ECAD0B;
  --cursor-hover: #0E6D23;

  --btn-glow-sage: 0 2px 7px rgba(58, 172, 17, 0.11);
  --btn-glow-sage-hover: 0 3px 9px rgba(58, 172, 17, 0.16);
}

:root[data-theme="dark"] {
  --bg: #0C100D;
  --bg-panel: #141A16;
  --bg-card: #18201A;
  --text-main: #F2F7F3;
  --text-muted: rgba(242, 247, 243, 0.82);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);

  --heading-color: #F2F7F3;
  --step-3-num-color: var(--green-lime);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);

  --bg-hero: #101512;
  --bg-about: #0C100D;
  --bg-services: #131915;
  --bg-why: #0F1411;
  --bg-reviews: #141A16;
  --bg-footer: #070B08;

  --cursor-color: #ECAD0B;
  --cursor-hover: #0E6D23;

  --btn-glow-sage: 0 2px 7px rgba(58, 172, 17, 0.12);
  --btn-glow-sage-hover: 0 3px 9px rgba(58, 172, 17, 0.19);
}

/* ── 2. RESET & STILI GLOBALI ── */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2.5px solid var(--green-sage);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Sherborne', 'Spectral', serif;
  font-weight: 500;
  margin: 0;
  color: var(--heading-color);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.section-head h2,
.section-title {
  color: var(--heading-color);
}

.section-head h2 em,
.section-title em,
.title-accent {
  color: var(--green-sage);
  font-style: normal;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow-accent);
  font-weight: 700;
  margin-bottom: 16px;
  display: block;
}

/* ── 3. COMPONENTI UTILITY & DECORATIVI ── */
.page-gradient-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 1rem;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  background: linear-gradient(180deg, #0E4D20, #3AAC11, #ABC70C, #ECAD0B, #0E4D20);
  background-size: 100% 200%;
  box-shadow: 1px 0 13px rgba(58, 172, 17, 0.3);
  animation: slideGradient 6s linear infinite;
}

@keyframes slideGradient {
  0% {
    background-position: 0% 0%;
  }

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

.custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  border: 1px solid var(--cursor-color);
  background: color-mix(in srgb, var(--cursor-color) 12%, transparent);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  will-change: transform;
}

.custom-cursor-follower.is-hovering {
  border-color: var(--cursor-hover) !important;
  background: color-mix(in srgb, var(--cursor-hover) 50%, transparent) !important;
  transform: scale(2);
}

.custom-cursor-follower.is-clicking {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  transform: scale(0.9);
}

/* ── 4. HEADER & NAVIGAZIONE (Protetti da Overflow) ── */
header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: none;
  display: flex;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 12px;
}

.header-inner-wrap {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1120px;
  box-sizing: border-box;
  min-width: 0;
}

nav {
  flex: 1;
  min-width: 0;
  pointer-events: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px;
  margin: 0 !important;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1.5px solid var(--line-strong);
  box-shadow: 0 0px 12px rgba(0, 33, 8, 0.1);
  box-sizing: border-box;
  transition: all var(--transition);
  gap: 10px;
}

:root[data-theme="dark"] nav {
  background: rgba(16, 22, 18, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0px 12px rgba(0, 0, 0, 0.3);
}

.nav-left,
.nav-center,
.nav-right {
  min-width: 0;
  flex-shrink: 1;
  display: flex;
  align-items: center;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
}

.logo-symbol {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  position: relative;
  top: 4px;
  transition: transform var(--transition);
  transform: translateY(1px);
}

.logo:hover .logo-symbol {
  transform: scale(1.05) translateY(2px);
}

.nav-center {
  display: flex;
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  font-size: 0.90rem;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
  position: relative;
  padding: 4px 2px;
  white-space: nowrap;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--green-sage);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav ul li a:hover,
nav ul li a.active {
  opacity: 1;
  color: var(--green-sage);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--green-sage);
  color: #FFFFFF !important;
  opacity: 1 !important;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--btn-glow-sage);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-cta-long {
  display: inline;
}

.nav-cta-short {
  display: none;
}

.nav-center-logo-mobile {
  display: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: #32960E;
  box-shadow: var(--btn-glow-sage-hover);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 1px;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 7px);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* Switch Tema Verticale / Orizzontale */
.theme-switch-vertical {
  flex-shrink: 0;
  position: relative;
  z-index: 1100;
  display: flex;
  flex-direction: row;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: 9999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition), opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  height: 44px;
  box-sizing: border-box;
}

:root[data-theme="dark"] .theme-switch-vertical {
  background: rgba(20, 26, 22, 0.88);
  border-color: rgba(255, 255, 255, 0.15);
}

.theme-toggle-vbtn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  gap: 4px;
  position: relative;
  border-radius: 9999px;
  outline: none;
}

.theme-v-pill {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--green-sage);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(58, 172, 17, 0.40);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

:root[data-theme="dark"] .theme-switch-vertical .theme-v-pill {
  transform: translateX(36px);
}

.theme-v-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-main);
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
}

.theme-v-icon svg {
  width: 17px;
  height: 17px;
}

:root:not([data-theme="dark"]) .theme-v-icon.light-icon,
:root[data-theme="dark"] .theme-v-icon.dark-icon {
  color: #FFFFFF;
}

/* ── 5. SEZIONI & HERO ── */
section {
  padding: 96px 0;
  transition: background var(--transition);
  position: relative;
}

.section-head {
  max-width: 62ch;
  margin-bottom: 48px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.4vw, 2.9rem);
  line-height: 1.1;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.55;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 35%, color-mix(in srgb, var(--green-sage) 10%, transparent), transparent),
    radial-gradient(ellipse 50% 50% at 15% 85%, color-mix(in srgb, var(--clay) 8%, transparent), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-logo-img {
  height: auto;
  width: auto;
  max-height: 195px;
  max-width: 300px;
  object-fit: contain;
  display: block;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(0, 33, 8, 0.08));
}

:root[data-theme="dark"] .hero-logo-img {
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.05));
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--yellow-accent);
  background: linear-gradient(135deg, var(--yellow-accent), var(--clay));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: 'Sherborne', 'Spectral', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.1;
  font-style: italic;
  color: var(--yellow-accent);
  background: linear-gradient(135deg, var(--yellow-accent), var(--clay));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 8px;
  margin-bottom: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero p.lede {
  margin-top: 22px;
  font-size: 1.12rem;
  max-width: 48ch;
  color: var(--text-muted);
  line-height: 1.55;
}

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

.page-hero {
  padding: 150px 0 60px;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 75% 25%, color-mix(in srgb, var(--green-sage) 10%, transparent), transparent);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero p.page-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 65ch;
  line-height: 1.55;
}

.page-content-section {
  padding: 80px 0;
}

/* ── 6. BOTTONI & AZIONI DI CONTATTO ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--green-sage);
  color: #FFFFFF !important;
  box-shadow: var(--btn-glow-sage);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-glow-sage-hover);
  background: #32960E;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text-main);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-panel);
  border-color: var(--green-sage);
  color: var(--green-sage) !important;
  transform: translateY(-2px);
}

.btn-contact-action {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}

.btn-contact-call {
  background: var(--green-deep);
  color: #FFFFFF !important;
  box-shadow: 0 2px 7px rgba(14, 109, 35, 0.12);
}

.btn-contact-call:hover {
  background: #0B561B;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(14, 109, 35, 0.18);
}

.btn-contact-wa {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 2px 7px rgba(37, 211, 102, 0.12);
}

.btn-contact-wa:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.18);
}

.btn-contact-doctolib {
  background: #0596DE;
  color: #FFFFFF !important;
  box-shadow: 0 2px 7px rgba(5, 150, 222, 0.12);
}

.btn-contact-doctolib:hover {
  background: #0384C6;
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(5, 150, 222, 0.18);
}

.btn-contact-maps {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text-main);
  transition: all var(--transition);
}

.btn-contact-maps:hover {
  background: var(--bg-panel);
  border-color: var(--green-sage);
  color: var(--green-sage);
}

.site-footer .btn-contact-maps {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.site-footer .btn-contact-maps:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--green-sage) !important;
  color: var(--green-lime) !important;
}

/* ── 7. CARD, ROADMAP & SEZIONI SPECIFICHE ── */
.roadmap-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0E4D20, #3AAC11, #ABC70C, #ECAD0B);
}

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

.roadmap-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.roadmap-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow-accent);
  background: color-mix(in srgb, var(--yellow-accent) 14%, transparent);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 8px;
}

.roadmap-header p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roadmap-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.roadmap-step.step-1 .step-num {
  border: 2px solid var(--green-deep);
  color: var(--green-deep);
  background: color-mix(in srgb, var(--green-deep) 10%, transparent);
}

.roadmap-step.step-1 .step-line {
  flex: 1;
  width: 2px;
  min-height: 22px;
  margin: 4px 0;
  background: linear-gradient(to bottom, var(--green-deep), var(--green-sage));
}

.roadmap-step.step-2 .step-num {
  border: 2px solid var(--green-sage);
  color: var(--green-sage);
  background: color-mix(in srgb, var(--green-sage) 10%, transparent);
}

.roadmap-step.step-2 .step-line {
  flex: 1;
  width: 2px;
  min-height: 22px;
  margin: 4px 0;
  background: linear-gradient(to bottom, var(--green-sage), var(--green-lime));
}

.roadmap-step.step-3 .step-num {
  border: 2px solid var(--green-lime);
  color: var(--step-3-num-color);
  background: color-mix(in srgb, var(--green-lime) 15%, transparent);
}

.roadmap-step.step-3 .step-line {
  flex: 1;
  width: 2px;
  min-height: 22px;
  margin: 4px 0;
  background: linear-gradient(to bottom, var(--green-lime), var(--yellow-accent));
}

.roadmap-step.step-4 .step-num {
  border: 2px solid var(--yellow-accent);
  background: var(--yellow-accent);
  color: #FFFFFF;
}

.step-content h4 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.step-content p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

#chi-siamo {
  background: var(--bg-about);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.about-photo-col {
  position: relative;
}

.about-grid p {
  margin: 0 0 16px;
  color: var(--text-muted);
  line-height: 1.55;
}

.credential {
  border-left: 3px solid var(--green-sage);
  padding-left: 18px;
  margin-top: 28px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.credential strong {
  display: block;
  color: var(--heading-color);
  font-family: 'Sherborne', 'Spectral', serif;
  font-size: 1.15rem;
}

.credential span {
  font-size: 0.95rem;
  color: var(--text-muted);
}

#servizi {
  background: var(--bg-services);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-sage);
}

.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--yellow-accent) 14%, transparent);
  color: var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.service-item:hover .service-icon-wrap {
  transform: scale(1.08);
  background: var(--yellow-accent);
  color: #FFFFFF;
}

.service-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.service-item-body h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
  color: var(--heading-color);
}

.service-item-body p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.studio-gallery-preview {
  margin-top: 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.studio-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.studio-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  box-shadow: var(--shadow-sm);
}

.studio-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.studio-photo-card:hover img {
  transform: scale(1.06);
}

.studio-photo-caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#perche {
  background: var(--bg-why);
}

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

.why-item {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-sage);
}

.why-item .num {
  font-family: 'Sherborne', 'Spectral', serif;
  font-size: 1.3rem;
  color: #FFFFFF;
  font-weight: 600;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--green-sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--btn-glow-sage);
}

.why-item h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
}

.why-item p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

#recensioni {
  background: var(--bg-reviews);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.reviews-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.google-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.google-stars {
  color: #FBBC05;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.google-score {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.google-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── 8. TRATTAMENTI DETTAGLIO ── */
.detail-treatment-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
}

.detail-treatment-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-sage);
}

.detail-treatment-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--yellow-accent) 14%, transparent);
  color: var(--yellow-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-treatment-icon svg {
  width: 38px;
  height: 38px;
}

.detail-treatment-content h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--heading-color);
}

.detail-treatment-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.detail-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--bg-panel);
  color: var(--green-sage);
  border: 1px solid var(--line);
}

/* ── 9. FOOTER & WHATSAPP FLOAT ── */
footer.site-footer {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #002108 !important;
  color: #FFFFFF !important;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

footer.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 85%, rgba(58, 172, 17, 0.12), transparent);
  pointer-events: none;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.footer-info-col h2 {
  color: #FFFFFF !important;
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  margin-bottom: 20px;
}

.footer-info-block {
  margin-bottom: 18px;
}

.footer-info-block h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-lime) !important;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-info-block p {
  margin: 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
}

.footer-hours-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.footer-hours-row span:last-child {
  font-weight: 600;
  color: #FFFFFF;
}

.footer-map-card {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.footer-map-card iframe {
  display: block;
  width: 100%;
  height: 140px;
  border: 0;
}

.footer-cta-card {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 26px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.footer-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green-deep), var(--green-sage), var(--green-lime), var(--yellow-accent));
}

.footer-cta-card h3 {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.footer-cta-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.footer-bottom-legal {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 3px 11px rgba(37, 211, 102, 0.22);
  scale: 1;
  animation: waFloatBob 3.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
  transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, opacity 0.3s ease;
}

@keyframes waFloatBob {

  0%,
  100% {
    translate: 0 0;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  }

  50% {
    translate: 0 -5px;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55), 0 0 0 6px rgba(37, 211, 102, 0.12);
  }
}

.whatsapp-float:hover {
  scale: 1.1;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3) !important;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: #FFFFFF;
}

.whatsapp-float .float-label {
  font-size: 0.92rem;
  font-weight: 600;
}

/* ── 10. TOAST NOTIFICATION ── */
.toast-notification {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: color-mix(in srgb, var(--bg-card) 94%, var(--green-sage, #3AAC11) 6%);
  color: var(--text-main);
  padding: 20px 28px;
  border-radius: 18px;
  border: 1.5px solid color-mix(in srgb, var(--green-sage, #3AAC11) 40%, transparent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 1.02rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  max-width: 480px;
  width: calc(100% - 32px);
  box-sizing: border-box;
}

.toast-notification.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.toast-body svg {
  width: 24px;
  height: 24px;
  color: var(--green-lime, #ABC70C);
  background: color-mix(in srgb, var(--green-lime, #ABC70C) 15%, transparent);
  padding: 8px;
  border-radius: 12px;
  box-sizing: content-box;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.toast-close-btn {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  padding: 6px;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 50%;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.toast-close-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.08);
}

.toast-progress {
  height: 4px;
  background: linear-gradient(90deg, var(--green-sage, #3AAC11), var(--green-lime, #ABC70C));
  border-radius: 9999px;
  width: 100%;
  overflow: hidden;
}

.toast-notification.is-active .toast-progress {
  animation: toastCountdown 10s linear forwards;
}

@keyframes toastCountdown {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* ── 11. CLASSI STRUTTURALI AGGIUNTIVE (Bio, Prenota, Recensioni) ── */
.bio-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 52px;
  align-items: start;
}

.bio-text-col h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.bio-paragraph {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.bio-images-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.bio-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.prenota-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.steps-list-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.step-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-row h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.step-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.practical-info-box {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.practical-box-title {
  color: var(--green-deep);
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.info-row {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.info-row.last {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.info-row strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 4px;
}

.info-row span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.prenota-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.google-review-box-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.google-review-content h3 {
  font-size: 2.3rem;
  color: var(--heading-color);
  margin-bottom: 12px;
}

.google-review-content p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0 0 24px;
}

.verified-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--green-sage) 12%, transparent);
  color: var(--green-sage);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.google-review-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.google-review-widget-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.widget-rating-score {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1;
}

.widget-stars {
  color: #FBBC05;
  font-size: 1.2rem;
  margin: 8px 0;
}

.widget-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.widget-link {
  font-size: 0.88rem;
  color: var(--green-sage);
  font-weight: 600;
  text-decoration: underline;
}

.reviews-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

.reviews-top-banner {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  box-sizing: border-box;
  width: 100%;
}

/* ── 12. MEDIA QUERIES UNIFICATE E OTTIMIZZATE ── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (pointer: coarse),
(hover: none) {
  .custom-cursor-follower {
    display: none !important;
  }
}

/* Schermi intermedi e Mobile (< 920px) */
@media (max-width: 920px) {
  .page-gradient-strip {
    display: none !important;
  }

  header {
    top: 8px !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  nav {
    width: 96% !important;
    max-width: 96% !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 6px 20px !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
  }

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

  .nav-center-logo-mobile {
    order: 1 !important;
    justify-content: flex-start !important;
    display: flex !important;
  }

  .nav-center-logo-mobile .logo-symbol {
    height: 46px !important;
    width: auto !important;
  }

  .nav-left {
    order: 2 !important;
    justify-content: flex-end !important;
  }

  .nav-left .logo {
    display: none !important;
  }

  .nav-center {
    display: contents;
  }

  .nav-cta {
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  .menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-main) !important;
    margin: 3px 0;
    border-radius: 2px;
  }

  #nav-links {
    position: fixed;
    top: 75px;
    right: 16px;
    left: 16px;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    display: none;
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    list-style: none;
    margin: 0;
  }

  #nav-links.open {
    display: flex;
  }

  #nav-links a {
    font-size: 1.05rem;
    padding: 10px 8px;
    display: block;
    width: 100%;
  }

  section {
    padding: 56px 0;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 48px;
  }

  .hero-grid,
  .about-grid,
  .footer-top-grid,
  .bio-main-grid,
  .prenota-main-grid,
  .google-review-box-card {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    width: 100% !important;
  }

  .about-photo-col {
    order: -1;
  }

  .services-list,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .studio-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .bio-mini-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .reviews-info-grid {
    grid-template-columns: 1fr !important;
  }

  .reviews-top-banner {
    padding: 24px 18px !important;
  }

  .detail-treatment-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .nav-cta-long {
    display: none;
  }

  .nav-cta-short {
    display: inline;
  }

  .nav-center-logo-mobile {
    display: flex;
  }

  .theme-switch-vertical {
    top: 20px;
    right: 20px;
  }
}

/* Mobile Stretto (< 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
  }

  .wrap {
    padding: 0 18px;
    width: 100% !important;
  }

  h1 {
    font-size: clamp(2.2rem, 6.5vw, 2.6rem) !important;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  h2 {
    font-size: clamp(1.7rem, 4.8vw, 2.1rem) !important;
    line-height: 1.2;
  }

  p,
  .hero p.lede {
    font-size: 0.98rem !important;
    line-height: 1.5;
  }

  .btn,
  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
    font-size: 0.98rem;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-item,
  .why-item,
  .roadmap-card,
  .detail-treatment-card,
  .studio-gallery-preview {
    padding: 20px 18px;
  }

  img,
  iframe,
  video,
  .studio-photo-card {
    max-width: 100%;
    height: auto;
  }

  .studio-gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
}

/* Mobile Compatto (< 600px) */
@media (max-width: 600px) {
  .theme-switch-vertical {
    position: fixed !important;
    top: auto !important;
    right: 28px !important;
    bottom: calc(28px + 56px + 16px);
    z-index: 991;
    flex-direction: column !important;
    border-radius: 9999px !important;
    height: auto !important;
  }

  .theme-toggle-vbtn {
    flex-direction: column !important;
  }

  :root[data-theme="dark"] .theme-switch-vertical .theme-v-pill {
    transform: translateY(36px) !important;
  }

  .whatsapp-float .float-label {
    display: none;
  }

  .whatsapp-float {
    padding: 12px;
    border-radius: 50%;
  }

  .hero {
    padding: 90px 0 40px;
  }

  section {
    padding: 44px 0;
  }

  .studio-gallery-grid,
  .bio-mini-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-top-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

/* Smartphone Strettissimi (< 480px) */
@media (max-width: 480px) {
  .studio-gallery-grid {
    grid-template-columns: 1fr !important;
  }
}