/* ==========================================================================
   CorpoArmonico - Studio di Tecniche Somatiche & Rieducazione Funzionale
   Esperto: Giuseppe Romano (Maestro di Pratiche Somatiche, Operatore del Benessere Corporeo)
   Metodo & Offerta: Sollievo Rapido: Programma Integrato per il Benessere Fisico Immediato
   Conformità: Codice del Consumo (D.lgs. 206/2005), GDPR (Reg. UE 2016/679), Garante Privacy 10/06/2021
   Google Ads Soft Medical Compliance
   ========================================================================== */

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

:root {
  /* Brand Primary Oceanic Palette */
  --primary-dark: #0a192f;
  --primary: #112b4e;
  --primary-medium: #1b3e6c;
  --primary-light: #2b5b99;
  --primary-soft: #edf4fc;
  --primary-glow: rgba(27, 62, 108, 0.16);

  /* Warm Mediterranean Accents */
  --accent-terracotta: #c85a32;
  --accent-terracotta-hover: #ad4824;
  --accent-terracotta-soft: #fdf2ed;
  --accent-terracotta-border: #f7d5c8;

  --accent-amber: #d97706;
  --accent-amber-hover: #b45309;
  --accent-amber-soft: #fffbeb;

  --accent-sage: #2a7258;
  --accent-sage-soft: #edf8f3;
  --accent-sage-border: #c4ebd9;

  /* Neutral Backgrounds & Canvas */
  --bg-page: #fbf9f5;
  --bg-card: #ffffff;
  --bg-subtle: #f3efe6;
  --bg-dark: #09172a;
  --bg-dark-surface: #10243e;

  /* Typography */
  --text-main: #141f2e;
  --text-muted: #4e5f73;
  --text-light: #7b8d9f;
  --text-on-dark: #f5f9fd;
  --text-on-dark-muted: #b9cee3;

  /* Borders & Dividers */
  --border-light: #eae3d6;
  --border-strong: #d2c5b3;
  --border-focus: #1b3e6c;

  /* Elevations & Shadows */
  --shadow-xs: 0 1px 3px rgba(10, 25, 47, 0.04);
  --shadow-sm: 0 4px 14px rgba(10, 25, 47, 0.06);
  --shadow-md: 0 10px 28px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 25, 47, 0.13);
  --shadow-glow: 0 0 28px rgba(200, 90, 50, 0.24);

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 3.6vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + 0.8rem, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.6vw + 0.5rem, 1.65rem); }
h4 { font-size: 1.15rem; font-weight: 600; }

p {
  margin-bottom: 1.15rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--primary-dark);
  font-weight: 600;
}

a {
  color: var(--primary-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

ul, ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

li {
  margin-bottom: 0.45rem;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.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;
  font-weight: 500;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 65%, var(--accent-terracotta) 100%);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(27, 62, 108, 0.25);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  display: block;
}

.brand-subline {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--accent-terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
}

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

.site-nav a {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-medium);
  background: var(--primary-soft);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #dc6942 100%) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: var(--radius-pill) !important;
  box-shadow: 0 4px 14px rgba(200, 90, 50, 0.3) !important;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--accent-terracotta-hover) 0%, #c85a32 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200, 90, 50, 0.4) !important;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light);
  font-size: 1.4rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--primary-dark);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-medium) 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(17, 43, 78, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(17, 43, 78, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-terracotta) 0%, #db6840 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(200, 90, 50, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-terracotta-hover) 0%, #c85a32 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200, 90, 50, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary-medium);
  background: var(--primary-soft);
  color: var(--primary-medium);
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary-medium);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid rgba(27, 62, 108, 0.15);
}

.section-tag-accent {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border-color: var(--accent-terracotta-border);
}

.section {
  padding: 80px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px auto;
}

.section-title-wrap h2 {
  margin-bottom: 14px;
}

.section-title-wrap p {
  font-size: 1.1rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background: radial-gradient(circle at 85% 15%, rgba(200, 90, 50, 0.07) 0%, transparent 45%),
              radial-gradient(circle at 10% 80%, rgba(27, 62, 108, 0.07) 0%, transparent 40%),
              var(--bg-page);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

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

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
  border: 1px solid var(--accent-terracotta-border);
  border-radius: var(--radius-pill);
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 20px;
  font-weight: 800;
}

.highlight-text {
  color: var(--accent-terracotta);
  position: relative;
  display: inline-block;
}

.hero-p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-offer-highlight {
  background: #ffffff;
  border-left: 4px solid var(--accent-terracotta);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  font-size: 0.98rem;
}

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

.hero-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-terracotta) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-card-header h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.hero-card-header p {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

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

.hero-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast);
}

.hero-badge-item:hover {
  transform: translateX(4px);
  background: #ffffff;
  border-color: var(--border-strong);
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-badge-text h4 {
  font-size: 0.96rem;
  margin-bottom: 2px;
  color: var(--primary-dark);
}

.hero-badge-text p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
}

/* ==========================================================================
   Stats / Trust Bar
   ========================================================================== */
.stats-bar {
  background: var(--bg-dark-surface);
  color: #ffffff;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item h3 {
  color: #ffffff;
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-item h3 span {
  color: var(--accent-terracotta);
}

.stat-item p {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

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

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.pillar-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.pillar-1 .pillar-icon-box {
  background: var(--primary-soft);
  color: var(--primary-medium);
}

.pillar-2 .pillar-icon-box {
  background: var(--accent-terracotta-soft);
  color: var(--accent-terracotta);
}

.pillar-3 .pillar-icon-box {
  background: var(--accent-sage-soft);
  color: var(--accent-sage);
}

.pillar-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.pillar-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-page);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Expert Section
   ========================================================================== */
.expert-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.expert-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.expert-frame {
  background: linear-gradient(145deg, var(--primary-soft) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.expert-portrait-box {
  background: #ffffff;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.expert-initials-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-terracotta) 100%);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(17, 43, 78, 0.22);
}

.expert-portrait-box h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.expert-title-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-terracotta);
  background: var(--accent-terracotta-soft);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}

.expert-cert-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cert-chip strong {
  color: var(--primary-dark);
}

.expert-content h2 {
  margin-bottom: 20px;
}

.expert-content p {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.expert-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.expert-highlight-box {
  background: var(--bg-page);
  border-left: 3px solid var(--primary-medium);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.expert-highlight-box h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.expert-highlight-box p {
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Certifications Structured Text Box
   ========================================================================== */
.credentials-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  margin-top: 36px;
}

.credentials-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.credentials-header h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.credential-item {
  padding: 16px;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.credential-item span.inst {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.credential-item h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.credential-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Blog Preview Cards (Entirely clickable: <a class="blog-card">)
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  height: 100%;
}

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

.blog-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.blog-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

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

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--primary-dark);
  transition: color var(--transition-fast);
}

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

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

.blog-card-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-medium);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition-fast);
}

.blog-card:hover .blog-card-link {
  gap: 10px;
  color: var(--accent-terracotta);
}

/* ==========================================================================
   Services Page: 3 Offerings Grid + 4-Field Order Form
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

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

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

.highlight-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-terracotta);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 10px rgba(200, 90, 50, 0.35);
}

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

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

.service-title {
  font-size: 1.35rem;
  line-height: 1.3;
}

.service-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.service-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
}

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

.service-features {
  list-style: none;
  padding-left: 0;
  margin-bottom: 28px;
  flex-grow: 1;
}

.service-features li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-sage);
  font-weight: 800;
}

/* 4-Field Form Container */
.lead-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

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

.lead-form-header h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-medium);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(27, 62, 108, 0.1);
}

.form-legal-note {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   Article & Editorial Template
   ========================================================================== */
.article-header {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}

.article-header h1 {
  font-size: clamp(2rem, 3.2vw + 0.8rem, 2.8rem);
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.article-content {
  padding: 50px 0 80px;
}

.article-body {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-body h2 {
  font-size: 1.7rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 28px 0 12px;
}

.article-img-block {
  margin: 36px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-subtle);
}

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

.article-img-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 16px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  font-style: italic;
}

.article-quote-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary-medium);
  padding: 22px 26px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--primary-dark);
}

.author-bio-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 48px;
  box-shadow: var(--shadow-sm);
}

.author-bio-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-terracotta) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.author-bio-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.author-bio-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Legal Documents Template (Privacy, Termini, Cookie, Resi, Spedizioni)
   ========================================================================== */
.legal-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  margin: 40px auto 80px;
}

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

.legal-section h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.legal-section p, .legal-section li {
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ==========================================================================
   Footer (Mandatory on ALL Pages)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 48px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
}

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col p {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.footer-col strong {
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

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

.footer-col ul li a {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Cookie Banner (Garante Privacy 10 giugno 2021)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 540px;
  background: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 9999;
  display: none;
}

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

.cookie-banner h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

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

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

.cookie-banner-actions .btn {
  padding: 8px 18px;
  font-size: 0.85rem;
}

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

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

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

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

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

  .site-nav a {
    width: 100%;
    padding: 12px;
  }

  .top-bar-inner {
    justify-content: center;
    text-align: center;
  }

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

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

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