/* ==========================================================================
   DolcePosture - Centro Benessere Corporeo & Pratiche Posturali
   Specialista: Matteo Rossi (Specialista in Massaggio del Benessere e Pratiche Corporee)
   Offerta Principale: Vitalità Totale - Sistema Esclusivo di Ripristino del Tono Generale e della Leggerezza
   Piena Conformità Legale Italiana (GDPR, Garante Privacy, Codice del Consumo)
   Google Ads Soft Medical Compliance
   ========================================================================== */

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

:root {
  /* Nuova Palette Cromatica DolcePosture: Deep Teal, Warm Ochre & Sand */
  --primary-dark: #0a1f24;
  --primary: #123e45;
  --primary-light: #1c5761;
  --primary-soft: #edf5f5;
  
  --accent-ochre: #d48b38;
  --accent-ochre-hover: #bd7527;
  --accent-ochre-light: #fdf7ee;
  --accent-ochre-border: #edd5b4;

  --bg-main: #f8f6f2;
  --bg-card: #ffffff;
  --bg-alt: #f0ede6;
  --bg-dark: #091a1f;

  --text-main: #182226;
  --text-muted: #4e5d63;
  --text-light: #7c8b91;

  --border: #e2ded5;
  --border-focus: #1c5761;

  --shadow-xs: 0 1px 3px rgba(10, 31, 36, 0.04);
  --shadow-sm: 0 4px 14px rgba(10, 31, 36, 0.06);
  --shadow-md: 0 10px 32px rgba(10, 31, 36, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 31, 36, 0.12);

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

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Outfit', var(--font-sans);
  --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.65;
  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-ochre);
}

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

/* ---------------- Top Announcement Bar ---------------- */
.top-bar {
  background: linear-gradient(90deg, #07171a 0%, #10343a 50%, #07171a 100%);
  color: #dbe6e8;
  font-size: 13px;
  padding: 9px 0;
  text-align: center;
  letter-spacing: 0.25px;
  border-bottom: 1px solid rgba(212, 139, 56, 0.25);
}

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

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

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

.top-bar-badge:first-child::before {
  display: none;
}

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

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

.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-dark) 100%);
  color: var(--accent-ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent-ochre);
  box-shadow: 0 4px 10px rgba(18, 62, 69, 0.15);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-dark);
  letter-spacing: -0.2px;
  line-height: 1.1;
  display: block;
}

.brand-subline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-ochre);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

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

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

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

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-ochre);
  border-radius: var(--radius-full);
}

.nav-cta {
  background: var(--accent-ochre) !important;
  color: #ffffff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full);
  font-size: 13.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(212, 139, 56, 0.25);
  transition: all 0.25s ease !important;
}

.nav-cta:hover {
  background: var(--accent-ochre-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(212, 139, 56, 0.35);
}

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

/* ---------------- Hero Section ---------------- */
.hero {
  padding: 72px 0 64px;
  background: radial-gradient(circle at 85% 15%, rgba(212, 139, 56, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 70%, rgba(18, 62, 69, 0.05) 0%, transparent 50%),
              var(--bg-main);
  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;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(18, 62, 69, 0.15);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

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

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

.hero-offer-highlight strong {
  color: var(--primary-dark);
}

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

/* ---------------- Hero Side Card ---------------- */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

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

.hero-card-header p {
  font-size: 14px;
  color: var(--text-muted);
  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-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-badge-item:hover {
  transform: translateX(4px);
  border-color: var(--accent-ochre);
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

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

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

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(18, 62, 69, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(18, 62, 69, 0.3);
}

.btn-accent {
  background: var(--accent-ochre);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 139, 56, 0.25);
}

.btn-accent:hover {
  background: var(--accent-ochre-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 139, 56, 0.35);
}

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

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

/* ---------------- Sections ---------------- */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

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

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

.section-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-weight: 700;
}

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

/* ---------------- Expert Card Component ---------------- */
.expert-profile-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 40px;
  align-items: center;
}

.expert-avatar-box {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--bg-main) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.expert-avatar-badge {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  background: var(--primary);
  color: var(--accent-ochre);
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid var(--accent-ochre);
  box-shadow: var(--shadow-sm);
}

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

.expert-title-sub {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}

.expert-exp {
  display: inline-block;
  background: var(--accent-ochre-light);
  color: var(--accent-ochre-hover);
  border: 1px solid var(--accent-ochre-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.expert-meta h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.35;
}

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

/* ---------------- Structured Text Credentials ---------------- */
.credential-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.credential-item {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-ochre);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

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

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

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

.vertical-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;
  transition: all 0.25s ease;
  position: relative;
}

.vertical-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-ochre);
}

.vertical-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  align-self: flex-start;
}

.vertical-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--primary-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.vertical-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.vertical-list {
  list-style: none;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 0;
}

.vertical-list li {
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vertical-list li::before {
  content: '✓';
  color: var(--accent-ochre);
  font-weight: bold;
}

/* ---------------- Magazine / Blog Section ---------------- */
.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.25s ease;
  text-decoration: none;
  color: inherit;
}

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

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.35s 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: 12px;
  color: var(--accent-ochre);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

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

.blog-card-excerpt {
  font-size: 14px;
  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: gap 0.2s ease, color 0.2s ease;
}

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

/* ---------------- Services & Universal Offer (servizi.html) ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}

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

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

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

.highlight-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-ochre);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(212, 139, 56, 0.35);
}

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

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

.service-title {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--primary-dark);
  line-height: 1.3;
}

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

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

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

.service-features {
  list-style: none;
  margin-bottom: 28px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.service-features li {
  font-size: 13.5px;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.service-features li::before {
  content: '✓';
  color: var(--accent-ochre);
  font-weight: bold;
  flex-shrink: 0;
}

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

.lead-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-ochre) 100%);
  border-radius: var(--radius-full);
}

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

.lead-form-header h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary-dark);
  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: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

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

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(18, 62, 69, 0.12);
}

.form-assurance {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 18px;
  text-align: center;
}

/* ---------------- Article Pages ---------------- */
.article-header {
  padding: 56px 0 36px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

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

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

.article-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--primary-dark);
  margin: 36px 0 16px;
}

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

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

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

.article-img-box {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

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

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

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

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

.legal-meta {
  font-size: 13.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 28px;
}

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

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

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

.legal-section ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

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

/* ---------------- Footer (Mandatory on ALL Pages) ---------------- */
.site-footer {
  background: var(--bg-dark);
  color: #c7d5d7;
  padding: 64px 0 28px;
  border-top: 3px solid var(--accent-ochre);
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--accent-ochre);
  padding: 18px 24px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  line-height: 1.65;
  color: #adbcc0;
  margin-bottom: 48px;
}

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

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

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

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

.footer-col p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 10px;
  color: #a4b4b8;
}

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

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

.footer-col ul li a {
  font-size: 13.5px;
  color: #b5c4c7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a::before {
  content: '›';
  color: var(--accent-ochre);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(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;
  font-size: 12.5px;
  color: #83979b;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------------- Cookie Banner (Italian Garante 2021) ---------------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
}

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

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

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

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

.cookie-banner-actions button {
  flex: 1;
  padding: 9px 12px;
  font-size: 12.5px;
}

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

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

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

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

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

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

  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 30px;
  }
  
  .section-title {
    font-size: 26px;
  }

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

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