/* ==========================================================================
   VitalMente - Studio di Bio-Riequilibrio Somatico & Decompressione Corporea
   Esperta Responsabile: Chiara Costa (Specialista in Rilassamento Neuromuscolare)
   Metodo Ufficiale: Mente e Corpo - Decompressione Profonda e Rilascio delle Tensioni
   Piena Conformità Legale Italiana (GDPR, Garante Privacy, Codice del Consumo D.lgs. 206/2005)
   Google Ads Soft Medical Compliance
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Palette Colori VitalMente: Nocturne Iris Plum, Calming Somatic Sage & Warm Terracotta */
  --primary-deep: #171226;
  --primary: #271e3d;
  --primary-hover: #372b54;
  --primary-light: #524278;
  --primary-soft: #f4f0f9;
  --primary-glow: rgba(78, 62, 116, 0.15);

  --accent-terracotta: #cb6b44;
  --accent-terracotta-hover: #b45732;
  --accent-terracotta-soft: #fbf1ec;
  --accent-terracotta-border: #f4d4c5;

  --accent-sage: #2a7569;
  --accent-sage-hover: #216056;
  --accent-sage-soft: #ecf6f4;
  --accent-sage-border: #c8e5e0;

  --accent-gold: #c29548;
  --accent-gold-soft: #fbf6ec;

  --bg-main: #fbfaf7;
  --bg-card: #ffffff;
  --bg-surface: #f3f0e9;
  --bg-dark: #120e1e;
  --bg-dark-surface: #1e1830;

  --text-main: #1d182b;
  --text-muted: #4e485e;
  --text-light: #7b748c;
  --text-inverse: #ffffff;

  --border: #e6e2db;
  --border-focus: #372b54;

  --shadow-xs: 0 1px 3px rgba(23, 18, 38, 0.04);
  --shadow-sm: 0 4px 14px rgba(23, 18, 38, 0.06);
  --shadow-md: 0 12px 30px rgba(23, 18, 38, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 18, 38, 0.12);
  --shadow-warm: 0 10px 28px rgba(203, 107, 68, 0.18);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-serif: 'Marcellus', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Headings */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--primary-deep);
  line-height: 1.28;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(24px, 3.2vw, 36px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 12px;
}

h4 {
  font-size: 19px;
  margin-bottom: 10px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #120e1e 0%, #211936 50%, #120e1e 100%);
  color: #d8d2e8;
  font-size: 12.5px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(203, 107, 68, 0.25);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-badge::before {
  content: "•";
  color: var(--accent-terracotta);
  font-size: 16px;
}

.site-header {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-logo:hover {
  color: var(--primary-light);
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #463569 100%);
  color: #f7ede8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(39, 30, 61, 0.2);
  border: 1px solid rgba(203, 107, 68, 0.35);
}

.brand-subline {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-sage);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-terracotta);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-terracotta);
  border-radius: 2px;
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #db7850 100%) !important;
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 3px 12px rgba(203, 107, 68, 0.25);
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(203, 107, 68, 0.35);
  color: #ffffff !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 20px;
  color: var(--primary-deep);
}

/* ==========================================================================
   Buttons & Micro-interactions
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3e2f5f 100%);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #4b3a72 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #e07a51 100%);
  color: #ffffff;
  box-shadow: var(--shadow-warm);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-terracotta-hover) 0%, #cb6b44 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(203, 107, 68, 0.28);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 68px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(203, 107, 68, 0.07) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(42, 117, 105, 0.08) 0%, transparent 50%),
              var(--bg-main);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--accent-sage-soft);
  color: var(--accent-sage);
  border: 1px solid var(--accent-sage-border);
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-p {
  font-size: 17.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
  line-height: 1.72;
}

.hero-offer-highlight {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-soft) 100%);
  border-left: 4px solid var(--accent-terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-xs);
  font-size: 15px;
  color: var(--primary-deep);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-terracotta), var(--accent-sage));
  border-radius: 0 0 4px 4px;
}

.hero-card-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.hero-card-header h3 {
  font-size: 22px;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.hero-card-header p {
  font-size: 14px;
  color: var(--text-light);
}

.hero-badge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.hero-badge-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(78, 62, 116, 0.15);
}

.hero-badge-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--primary-deep);
  font-family: var(--font-sans);
}

.hero-badge-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 68px 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border: 1px solid var(--accent-terracotta-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 16.5px;
}

/* ==========================================================================
   Pillars / Multi-Vertical Grid (Directive A: 3 Verticals)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pillar-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(203, 107, 68, 0.4);
}

.pillar-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent-terracotta);
  margin-bottom: 14px;
  display: block;
}

.pillar-card h3 {
  font-size: 21px;
  color: var(--primary-deep);
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-features {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pillar-features li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pillar-features li::before {
  content: "✓";
  color: var(--accent-sage);
  font-weight: 700;
}

/* ==========================================================================
   Expert Presentation Section
   ========================================================================== */
.expert-profile-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}

.expert-avatar-box {
  text-align: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #ebdff5 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(78, 62, 116, 0.15);
}

.expert-avatar-badge {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #46346b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 34px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 18px rgba(39, 30, 61, 0.25);
  border: 2px solid var(--accent-terracotta);
}

.expert-avatar-box strong {
  display: block;
  font-size: 20px;
  color: var(--primary-deep);
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.expert-title-sub {
  display: block;
  font-size: 13px;
  color: var(--accent-sage);
  font-weight: 600;
  margin-bottom: 10px;
}

.expert-exp {
  display: inline-block;
  background-color: #ffffff;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.expert-meta {
  padding-left: 8px;
}

.expert-role {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-terracotta);
  margin-bottom: 8px;
  display: block;
}

.expert-bio {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.72;
  margin-bottom: 22px;
}

/* Credentials List (Directive E: Structured text credentials) */
.credential-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.credential-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 3px solid var(--accent-sage);
}

.credential-title {
  font-weight: 700;
  color: var(--primary-deep);
  font-size: 14.5px;
  margin-bottom: 4px;
}

.credential-reg {
  font-size: 12.5px;
  color: var(--text-light);
}

/* ==========================================================================
   Services & Offerings Grid (Directive B: 2 Services + 1 Universal Product)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

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

.service-card.highlight {
  border: 2px solid var(--accent-terracotta);
  background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
  box-shadow: var(--shadow-warm);
}

.highlight-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #db7850 100%);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service-header {
  margin-bottom: 18px;
}

.service-type {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-sage);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.service-title {
  font-size: 21px;
  color: var(--primary-deep);
  line-height: 1.35;
}

.service-price {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--primary-deep);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.service-price small {
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-light);
  font-weight: 400;
}

.service-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.service-features {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
  flex-grow: 1;
}

.service-features li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-features li::before {
  content: "✓";
  color: var(--accent-terracotta);
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Lead Order Form (Directive C: Rigorously 4 Fields)
   ========================================================================== */
.lead-form-wrapper {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.lead-form-header h3 {
  font-size: 26px;
  color: var(--primary-deep);
  margin-bottom: 8px;
}

.lead-form-header p {
  font-size: 14.5px;
  color: var(--text-muted);
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-assurance {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ==========================================================================
   Blog & Magazine (Directive D: 3 Articles, clickable cards)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(203, 107, 68, 0.4);
}

.blog-card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: #e4dfd7;
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-category {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-sage);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 18.5px;
  color: var(--primary-deep);
  margin-bottom: 12px;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
  color: var(--accent-terracotta);
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.blog-card-readmore {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Single Layout */
.article-header {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--border);
}

.article-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 22px;
}

.article-content h2 {
  margin-top: 38px;
  margin-bottom: 16px;
  font-size: 26px;
}

.article-content h3 {
  margin-top: 28px;
  margin-bottom: 14px;
  font-size: 21px;
}

.article-content ul, 
.article-content ol {
  margin: 18px 0 24px 24px;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 10px;
}

.article-img-box {
  margin: 34px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.article-img-box img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.article-img-caption {
  padding: 12px 18px;
  background-color: var(--bg-surface);
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ==========================================================================
   Legal Pages Styling (Directive F: GDPR, Garante Privacy, Codice del Consumo)
   ========================================================================== */
.legal-wrapper {
  max-width: 860px;
  margin: 48px auto 68px;
  background-color: var(--bg-card);
  padding: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.legal-wrapper h1 {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--primary-deep);
}

.legal-meta {
  font-size: 13.5px;
  color: var(--text-light);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-section p, 
.legal-section li {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.72;
}

.legal-section ul {
  margin: 12px 0 16px 20px;
}

/* ==========================================================================
   Footer (Mandatory on ALL Pages - Directive F)
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #181328 0%, #100c1c 100%);
  color: #c9c3da;
  padding: 56px 0 28px;
  font-size: 14px;
  border-top: 1px solid rgba(203, 107, 68, 0.3);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent-terracotta);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 38px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #aba3bf;
}

.footer-disclaimer-box strong {
  color: #ffffff;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
  font-family: var(--font-serif);
  letter-spacing: 0.02em;
}

.footer-col p {
  color: #aba3bf;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.65;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  color: #aba3bf;
  font-size: 13.5px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-terracotta);
  padding-left: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: #8c83a1;
}

/* ==========================================================================
   Cookie Banner (Linee Guida Garante Privacy 10 giugno 2021)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.35s ease-out;
}

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

.cookie-banner h4 {
  font-size: 16px;
  color: var(--primary-deep);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.cookie-banner a {
  color: var(--accent-terracotta);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner-actions .btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pillars-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .expert-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .expert-meta {
    padding-left: 0;
  }

  .credential-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    gap: 16px;
  }

  .site-nav.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
    width: 100%;
  }

  .lead-form-wrapper {
    padding: 28px 20px;
  }

  .legal-wrapper {
    padding: 28px 20px;
    margin: 24px 12px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}
