/* ==========================================================================
   PassoSolido - Studio di Recupero Funzionale, Mobilità & Benessere Miofasciale
   Esperto Responsabile: Riccardo Giordano (Massaggiatore, Esperto in Trattamenti di Recupero Funzionale)
   Metodo Ufficiale: Snodo Libero - Mobilità Articolare & Flessibilità
   Piena Conformità Legale Italiana (GDPR, Garante Privacy 2021, Codice del Consumo D.lgs. 206/2005)
   Google Ads Soft Medical Compliance
   ========================================================================== */

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

:root {
  /* Palette Colori PassoSolido: Slate Navy, Kinetic Copper Amber & Mineral Bio-Teal */
  --primary-dark: #09111c;
  --primary: #0f1d2f;
  --primary-hover: #172a43;
  --primary-light: #233e61;
  --primary-soft: #eef4fb;
  --primary-border: #cbdceb;

  --accent: #d46b08;
  --accent-hover: #b55403;
  --accent-light: #ea580c;
  --accent-soft: #fff7ed;
  --accent-border: #fed7aa;
  --accent-glow: rgba(212, 107, 8, 0.2);

  --teal: #0f766e;
  --teal-hover: #115e59;
  --teal-soft: #f0fdfa;
  --teal-border: #99f6e4;

  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-alt: #f1f5f9;
  --bg-dark: #0a1320;
  --bg-dark-card: #132238;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-focus: #0f1d2f;

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.11);
  --shadow-accent: 0 10px 25px rgba(212, 107, 8, 0.22);

  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-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;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

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

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

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

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

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  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;
}

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

/* ==========================================================================
   Header & Nav
   ========================================================================== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-dark);
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  position: relative;
  box-shadow: 0 4px 10px rgba(15, 29, 47, 0.2);
}

.brand-logo-icon::after {
  content: "";
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

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

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

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

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

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

.nav-cta {
  background: var(--accent);
  color: #ffffff !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-accent);
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4f9 100%);
  padding: 70px 0 60px;
  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-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.hero h1 {
  font-size: 46px;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 20px;
  color: var(--primary-dark);
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
  text-decoration: none;
}

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

.btn-primary:hover,
.btn-accent:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #c2410c 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 107, 8, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

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

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

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

.hero-badge-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-badge-item:hover {
  border-color: var(--primary-border);
  transform: translateX(3px);
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

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

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

/* ==========================================================================
   Sections General
   ========================================================================== */
.section {
  padding: 70px 0;
}

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

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

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

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
  transition: background 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.pillar-card:hover::before {
  background: var(--accent);
}

.pillar-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
  margin-bottom: 12px;
}

.pillar-title {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

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

.pillar-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.pillar-list li {
  font-size: 13.5px;
  color: var(--text-main);
  padding: 5px 0 5px 20px;
  position: relative;
}

.pillar-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   Expert Profile Card
   ========================================================================== */
.expert-profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.expert-avatar-box {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.expert-avatar-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.expert-avatar-box strong {
  font-size: 20px;
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.expert-title-sub {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
  line-height: 1.4;
}

.expert-exp {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(212, 107, 8, 0.25);
  color: #ffd8a8;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.expert-meta {
  padding: 40px;
}

.expert-role {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.expert-bio h3 {
  font-size: 26px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.expert-bio p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==========================================================================
   Certifications Structured Text Boxes
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.cert-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.cert-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.cert-body-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.cert-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.cert-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Services Cards (servizi.html)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  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);
  box-shadow: var(--shadow-accent);
}

.highlight-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

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

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

.service-title {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

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

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

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

.service-features li {
  font-size: 13.5px;
  color: var(--text-main);
  padding: 7px 0 7px 24px;
  position: relative;
  line-height: 1.45;
}

.service-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

/* ==========================================================================
   4-Field Lead Order Form (Directive C)
   ========================================================================== */
.lead-form-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 680px;
  margin: 50px auto 0;
  box-shadow: var(--shadow-lg);
}

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

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

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

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

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

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

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

select.form-control {
  cursor: pointer;
}

.form-assurance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* ==========================================================================
   Blog Magazine Cards (Directive D: Clickable Cards)
   ========================================================================== */
.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);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--bg-alt);
  transition: transform 0.4s ease;
}

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

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

.blog-card-meta {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 18px;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 12px;
  font-weight: 700;
}

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

.blog-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover .blog-card-link {
  color: var(--accent);
  transform: translateX(4px);
}

/* ==========================================================================
   Article Detail Page
   ========================================================================== */
.article-header {
  background: linear-gradient(180deg, #f8fafc 0%, #edf4f9 100%);
  padding: 50px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.article-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.article-header-meta span.tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid var(--accent-border);
}

.article-header h1 {
  font-size: 38px;
  color: var(--primary-dark);
  max-width: 860px;
  margin: 0 auto 16px;
  line-height: 1.25;
}

.article-author-lead {
  font-size: 15px;
  color: var(--text-muted);
}

.article-content {
  max-width: 780px;
  margin: 50px auto;
  font-size: 16px;
  line-height: 1.8;
  color: #1e293b;
}

.article-content h2 {
  font-size: 26px;
  color: var(--primary-dark);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.article-content h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin: 28px 0 12px;
}

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

.article-content ul,
.article-content ol {
  margin: 0 0 24px 24px;
}

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

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

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

.article-image-box figcaption {
  padding: 10px 16px;
  background: var(--bg-alt);
  font-size: 12.5px;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
  border-top: 1px solid var(--border);
}

.article-quote-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 16px;
  font-style: italic;
  color: var(--primary-dark);
}

.article-cta-box {
  background: #ffffff;
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 50px 0 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.article-cta-box h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.article-cta-box p {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 20px;
}

/* ==========================================================================
   Footer (Mandatory on ALL Pages - Directive F)
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 60px 0 30px;
  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.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
}

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

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

.footer-col h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

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

.footer-col p strong {
  color: #f1f5f9;
}

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

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

.footer-col ul li a {
  font-size: 13.5px;
  color: #94a3b8;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

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

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

/* ==========================================================================
   Cookie Consent Banner (Garante Privacy 10 Giugno 2021)
   ========================================================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  z-index: 9999;
}

.cookie-banner.show {
  display: block;
}

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

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

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

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

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

/* ==========================================================================
   Legal Content Layout (privacy, termini, cookie, resi, spedizioni)
   ========================================================================== */
.legal-wrapper {
  max-width: 820px;
  margin: 50px auto 70px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

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

.legal-last-update {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 30px;
  display: block;
}

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

.legal-section h2 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.legal-section p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.legal-section li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.55;
}

/* ==========================================================================
   Contact Page Layout
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-info-text p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .mobile-toggle {
    display: block;
  }

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

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

  .hero h1 {
    font-size: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

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

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