/* ==========================================================================
   DOTT.SSA ALESSIA LUISI — PSICOLOGA
   Design System & Styling
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  /* Color Palette */
  --sage-900: #1b3024;
  --sage-800: #2a4737;
  --sage-700: #385b48;
  --sage-600: #466e58;
  --sage-500: #57856c;
  --sage-300: #a4c4b2;
  --sage-200: #cde0d5;
  --sage-100: #eaf2ed;
  --sage-50: #f4f8f5;

  --terracotta-700: #9f492b;
  --terracotta-600: #be5935;
  --terracotta-500: #d46b45;
  --terracotta-300: #f0a78c;
  --terracotta-100: #fae8e0;
  --terracotta-50: #fdf5f2;

  --sand-100: #f7f3ed;
  --sand-50: #fcfbf8;
  --warm-white: #ffffff;

  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;

  /* Typography Tokens */
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 41, 59, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(42, 71, 55, 0.08);
  --shadow-lg: 0 16px 36px -6px rgba(42, 71, 55, 0.12);
  --shadow-warm: 0 12px 30px -4px rgba(212, 107, 69, 0.15);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--sand-50);
  color: var(--slate-800);
}

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

body {
  font-family: var(--font-sans);
  line-height: 1.68;
  font-weight: 400;
  color: var(--slate-700);
  background-color: var(--sand-50);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  color: var(--sage-900);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--slate-600);
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--slate-700);
}

a {
  color: var(--sage-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--terracotta-600);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: 860px;
}

.section-py {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-py-sm {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

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

.text-sage {
  color: var(--sage-700);
}

.text-terracotta {
  color: var(--terracotta-600);
}

/* Section Headers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background-color: var(--sage-100);
  color: var(--sage-800);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag.terracotta {
  background-color: var(--terracotta-100);
  color: var(--terracotta-700);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: var(--slate-600);
}

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--sage-700);
  color: var(--warm-white);
  box-shadow: 0 4px 14px rgba(56, 91, 72, 0.25);
}

.btn-primary:hover {
  background-color: var(--sage-800);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(56, 91, 72, 0.3);
}

.btn-terracotta {
  background-color: var(--terracotta-500);
  color: var(--warm-white);
  box-shadow: 0 4px 14px rgba(212, 107, 69, 0.28);
}

.btn-terracotta:hover {
  background-color: var(--terracotta-600);
  color: var(--warm-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 107, 69, 0.35);
}

.btn-secondary {
  background-color: var(--warm-white);
  color: var(--sage-800);
  border-color: var(--sage-200);
}

.btn-secondary:hover {
  background-color: var(--sage-50);
  border-color: var(--sage-500);
  color: var(--sage-900);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--sage-800);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  background-color: var(--sage-100);
  color: var(--sage-900);
}

.btn-sm {
  font-size: 0.86rem;
  padding: 0.55rem 1.1rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.announcement-bar {
  background-color: var(--sage-800);
  color: var(--sage-100);
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-bar span.pill {
  background-color: rgba(255, 255, 255, 0.16);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin-right: 0.45rem;
  font-weight: 600;
  color: var(--warm-white);
}

.announcement-bar a {
  color: #f7d2c4;
  text-decoration: underline;
  margin-left: 0.4rem;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(252, 251, 248, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 91, 72, 0.08);
  transition: all var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--sage-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta-600);
  font-weight: 600;
  margin-top: 0.15rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate-700);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta-500);
  transition: width var(--transition-fast);
}

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--slate-800);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  background: radial-gradient(circle at 80% 20%, rgba(212, 107, 69, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(87, 133, 108, 0.09) 0%, transparent 60%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

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

.hero-quote-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--warm-white);
  border: 1px solid var(--sage-200);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--sage-800);
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-quote-badge svg {
  color: var(--terracotta-500);
}

.hero-title {
  margin-bottom: 0.85rem;
  color: var(--sage-900);
}

.hero-title span.highlight {
  color: var(--terracotta-600);
  font-style: italic;
}

.hero-title-prefix {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta-600);
  margin-bottom: 0.4rem;
}

.hero-author-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  color: var(--sage-800);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--slate-700);
  margin-bottom: 1.8rem;
}

.hero-credo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--sage-800);
  border-left: 3px solid var(--terracotta-500);
  padding-left: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(56, 91, 72, 0.12);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--slate-600);
}

.trust-item svg {
  color: var(--sage-600);
  flex-shrink: 0;
}

/* Hero Media / Visual Card */
.hero-visual {
  position: relative;
}

.hero-card-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: var(--warm-white);
  padding: 0.75rem;
  border: 1px solid rgba(56, 91, 72, 0.1);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-floating-pill {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sage-200);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 280px;
}

.hero-floating-pill .pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--sage-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage-700);
  flex-shrink: 0;
}

.hero-floating-pill .pill-text {
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--slate-800);
}

.hero-floating-pill .pill-sub {
  font-size: 0.74rem;
  color: var(--slate-600);
  font-weight: 400;
}

/* ==========================================================================
   Sezione: Accoglienza & Ascolto ("Creiamo lo spazio")
   ========================================================================== */
.accoglienza-section {
  background-color: var(--warm-white);
  border-top: 1px solid rgba(56, 91, 72, 0.08);
  border-bottom: 1px solid rgba(56, 91, 72, 0.08);
  position: relative;
  overflow: hidden;
}

/* Delicate ambient glows */
.accoglienza-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(212, 107, 69, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.accoglienza-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(87, 133, 108, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.accoglienza-container {
  max-width: 960px;
  position: relative;
  z-index: 1;
}

.accoglienza-header {
  max-width: 720px;
  margin: 0 auto 2.8rem;
}

.accoglienza-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.accoglienza-divider span {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sage-300));
}

.accoglienza-divider span:last-child {
  background: linear-gradient(90deg, var(--sage-300), transparent);
}

.accoglienza-divider i {
  color: var(--terracotta-500);
  font-size: 0.95rem;
  opacity: 0.85;
}

/* 2-Column Grid on Desktop, Sequential List on Mobile */
.accoglienza-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  margin-bottom: 2.2rem;
}

/* Item Card */
.accoglienza-item-card {
  background-color: var(--sand-50);
  border: 1px solid rgba(56, 91, 72, 0.12);
  border-radius: var(--radius-md);
  padding: 2rem 1.85rem;
  box-shadow: 0 4px 16px -2px rgba(42, 71, 55, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
  position: relative;
}

.accoglienza-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage-300);
  background-color: var(--warm-white);
}

/* Card Header (Icon badge + Step pill) */
.accoglienza-card-head {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.accoglienza-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 1px solid var(--sage-200);
  transition: all var(--transition-base);
}

.accoglienza-item-card:hover .accoglienza-icon-badge {
  background-color: var(--terracotta-100);
  color: var(--terracotta-600);
  border-color: var(--terracotta-300);
  transform: scale(1.06);
}

/* Text inside card */
.accoglienza-card-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--slate-700);
  margin-bottom: 0;
  font-weight: 400;
}

/* Highlight Quote Banner (Paragraph 5) */
.accoglienza-quote-banner {
  background: linear-gradient(135deg, rgba(234, 242, 237, 0.8) 0%, rgba(253, 245, 242, 0.85) 100%);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  margin-top: 1rem;
}

.accoglienza-quote-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  background-color: var(--warm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--terracotta-500);
  font-size: 1.25rem;
  border: 1px solid rgba(212, 107, 69, 0.25);
  box-shadow: 0 4px 12px rgba(212, 107, 69, 0.12);
}

.accoglienza-quote-text {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.62rem);
  font-weight: 600;
  color: var(--sage-900);
  line-height: 1.45;
  margin: 0 auto;
  max-width: 780px;
}

.accoglienza-quote-action {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Mobile & Tablet Optimizations */
@media (max-width: 768px) {
  .accoglienza-header {
    margin-bottom: 1.85rem;
  }

  .accoglienza-list-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  /* List item appearance on mobile */
  .accoglienza-item-card {
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: var(--warm-white);
    border: 1px solid var(--slate-200);
    border-left: 4.5px solid var(--sage-500);
    box-shadow: 0 2px 10px rgba(30, 41, 59, 0.04);
  }

  /* Alternating warm visual cadence for list scanability */
  .accoglienza-item-card:nth-child(2) {
    border-left-color: var(--terracotta-500);
  }

  .accoglienza-item-card:nth-child(3) {
    border-left-color: var(--sage-600);
  }

  .accoglienza-item-card:nth-child(4) {
    border-left-color: var(--terracotta-600);
  }

  .accoglienza-card-head {
    margin-bottom: 0.85rem;
  }

  .accoglienza-icon-badge {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 10px;
  }

  .accoglienza-card-content p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--slate-800);
  }

  .accoglienza-quote-banner {
    padding: 1.65rem 1.25rem;
    margin-top: 0.5rem;
    border-radius: var(--radius-md);
  }

  .accoglienza-quote-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  .accoglienza-quote-text {
    font-size: 1.18rem;
    line-height: 1.45;
  }

  .accoglienza-quote-action {
    margin-top: 1.25rem;
  }

  .accoglienza-quote-action .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Triad of Life Transitions (LIVELLO 2)
   ========================================================================== */
.transitions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.transition-card {
  background-color: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(56, 91, 72, 0.1);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.transition-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sage-300);
}

.card-icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background-color var(--transition-fast);
}

.transition-card:hover .card-icon-wrap {
  background-color: var(--terracotta-100);
  color: var(--terracotta-700);
}

.transition-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.transition-card p {
  font-size: 0.95rem;
  color: var(--slate-600);
  flex-grow: 1;
}

.target-badge {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta-600);
  margin-bottom: 0.5rem;
}

/* Problem tags / Issues cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.problem-chip {
  background-color: var(--warm-white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.problem-chip:hover {
  background-color: var(--sage-100);
  border-color: var(--sage-300);
  color: var(--sage-900);
  transform: translateY(-2px);
}

/* ==========================================================================
   Services Section (I 5 SERVIZI)
   ========================================================================== */
.services-section {
  background-color: var(--sand-100);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid rgba(56, 91, 72, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

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

.service-card .service-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--terracotta-500);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--slate-200);
}

.meta-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  background-color: var(--sage-50);
  color: var(--sage-800);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   Step-by-Step: "Cosa accade nel primo colloquio?"
   ========================================================================== */
.first-session-section {
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--sand-50) 100%);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.step-box {
  background-color: var(--warm-white);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--sage-200);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--terracotta-500);
  color: var(--warm-white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.step-box h4 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--sage-900);
}

.step-box p {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 0;
}

/* ==========================================================================
   Lo Studio a Forte dei Marmi & Modalità
   ========================================================================== */
.studio-section {
  background-color: var(--warm-white);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.studio-gallery {
  position: relative;
}

.studio-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16/10;
}

.studio-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate-700);
}

.feature-pill .check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Modalità 3 cards */
.modalities-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.modality-box {
  background-color: var(--sand-50);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  text-align: center;
  flex: 1 1 280px;
  max-width: 340px;
}

.modality-box h4 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.15rem;
}

.modality-box p {
  font-size: 0.88rem;
  color: var(--slate-600);
  margin-bottom: 0;
}

/* ==========================================================================
   Detraibilità Sanitaria 19% & Trasparenza
   ========================================================================== */
.tax-deduction-banner {
  background: linear-gradient(135deg, var(--sage-800) 0%, var(--sage-900) 100%);
  color: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4.5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 4rem 0;
}

.tax-banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.tax-banner-text h3 {
  color: var(--warm-white);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1rem;
}

.tax-banner-text p {
  color: var(--sage-100);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.tax-points {
  list-style: none;
}

.tax-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: #d1e4d9;
  margin-bottom: 0.5rem;
}

.tax-points li svg {
  color: var(--terracotta-300);
  flex-shrink: 0;
}

.tax-badge-card {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.tax-percent {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #f7d2c4;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.tax-badge-card span.sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-100);
  display: block;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
  background-color: var(--sand-50);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin: 3rem auto 0;
}

.faq-item {
  background-color: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--sage-300);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 1.25rem 1.6rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--sage-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  color: var(--terracotta-500);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.6rem 1.4rem;
  font-size: 0.96rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* ==========================================================================
   Contact & Booking Form Section
   ========================================================================== */
.contact-section {
  background-color: var(--warm-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-top: 3rem;
}

.contact-info-card {
  background-color: var(--sand-50);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--sage-200);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.contact-info-item .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--sage-100);
  color: var(--sage-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--slate-900);
}

.contact-info-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.booking-form {
  background-color: var(--warm-white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow-md);
}

.booking-form.compact-form {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  text-align: left;
  border-color: rgba(56, 91, 72, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.booking-form.compact-form .form-group {
  margin-bottom: 1rem;
}

.booking-form.compact-form .form-control,
.booking-form.compact-form .form-textarea {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
}

.booking-form.compact-form .radio-pill label {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--slate-800);
  background-color: var(--sand-50);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--sage-600);
  background-color: var(--warm-white);
  box-shadow: 0 0 0 3px rgba(87, 133, 108, 0.15);
}

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

.radio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.radio-pill {
  position: relative;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-pill label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--sand-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0;
}

.radio-pill input[type="radio"]:checked+label {
  background-color: var(--sage-700);
  color: var(--warm-white);
  border-color: var(--sage-700);
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.4;
  margin-top: 1rem;
}

/* Modal Confirmation */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-content {
  background-color: var(--warm-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: fadeIn 0.3s ease;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background-color: var(--sage-100);
  color: var(--sage-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: #2d7a52;
  color: #ffffff;
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(27, 48, 36, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all var(--transition-base);
}

.floating-whatsapp:hover {
  background-color: #246644;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 48, 36, 0.25);
}

.floating-whatsapp .wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.floating-whatsapp .wa-pulse {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background-color: var(--terracotta-500);
  border: 2px solid #ffffff;
  pointer-events: none;
}

/* ==========================================================================
   Footer Deontologico
   ========================================================================== */
.site-footer {
  background-color: var(--slate-900);
  color: #94a3b8;
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand .brand-name {
  color: var(--warm-white);
  font-size: 1.5rem;
}

.footer-brand .brand-sub {
  color: var(--terracotta-300);
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-title {
  font-family: var(--font-sans);
  color: var(--warm-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--warm-white);
}

.deontological-box {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #94a3b8;
}

.deontological-box strong {
  color: #cbd5e1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #94a3b8 !important;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--warm-white) !important;
}

/* ==========================================================================
   Concise Home Components
   ========================================================================== */
.concise-intro-card {
  background-color: var(--warm-white);
  border: 1px solid var(--sage-200);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.concise-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-style: italic;
  color: var(--sage-900);
  line-height: 1.4;
  margin: 1.5rem auto 1.8rem;
  max-width: 760px;
}

.quick-cta-box {
  background-color: var(--sand-100);
  border: 1px solid rgba(56, 91, 72, 0.12);
  color: var(--slate-800);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.8rem, 4vw, 3.5rem);
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.quick-cta-box h2 {
  color: var(--sage-900);
  margin-bottom: 1rem;
}

.quick-cta-box p {
  color: var(--slate-600);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.2rem;
}

.quick-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.reassurance-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(56, 91, 72, 0.1);
  font-size: 0.88rem;
  color: var(--slate-600);
}

.reassurance-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
/* ==========================================================================
   Booking Section Grid & MioDottore Calendar
   ========================================================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}

.booking-text-col {
  padding-top: 0.5rem;
}

.booking-calendar-col {
  width: 100%;
}

.booking-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 320px;
  margin-bottom: 2rem;
}

.booking-reassurance {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  justify-content: flex-start;
  gap: 1.2rem;
}

#prenota {
  padding-bottom: clamp(2.5rem, 4.5vw, 3.8rem);
}

.miodottore-widget-container {
  width: 100%;
  min-height: 560px;
  position: relative;
  background: transparent;
}

.miodottore-widget-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 560px;
  border: none !important;
  display: block;
  background: transparent !important;
}

@media (max-width: 992px) {
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .booking-cta-buttons {
    max-width: 100%;
  }

  .booking-reassurance {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .miodottore-widget-container,
  .miodottore-widget-container iframe {
    min-height: 520px;
  }
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {

  .hero-grid,
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-visual {
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-card-wrapper {
    max-width: 320px;
    margin: 0 auto;
    padding: 0.65rem;
  }

  .transitions-grid,
  .steps-container,
  .modalities-row {
    grid-template-columns: 1fr;
  }

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

  .tax-banner-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 72px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--warm-white);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    gap: 1rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-visual {
    max-width: 280px;
  }

  .hero-card-wrapper {
    max-width: 260px;
    padding: 0.55rem;
  }

  .hero-floating-pill {
    position: static;
    margin-top: 0.85rem;
    max-width: 100%;
    padding: 0.65rem 0.9rem;
  }

  .hero-floating-pill .pill-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .hero-floating-pill .pill-text {
    font-size: 0.8rem;
  }

  .hero-floating-pill .pill-sub {
    font-size: 0.72rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-whatsapp span.wa-text {
    display: none;
  }

  .floating-whatsapp {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .floating-whatsapp .wa-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .floating-whatsapp .wa-pulse {
    top: 2px;
    right: 2px;
  }
}

@media (max-width: 480px) {
  .hero-visual {
    max-width: 240px;
  }

  .hero-card-wrapper {
    max-width: 220px;
    padding: 0.45rem;
    border-radius: var(--radius-md);
  }

  .hero-image {
    border-radius: calc(var(--radius-md) - 4px);
  }
}