/* ============================================
   PUBLYMEDICA - DESIGN SYSTEM
   Sito statico HTML/CSS/JS
   ============================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- 2. CSS VARIABLES (design tokens) ---------- */
:root {
  /* Colors */
  --primary: #0B3D5F;
  --primary-dark: #082B45;
  --primary-light: #1A5A85;
  --accent: #E94F37;
  --accent-dark: #C73E28;
  --text: #0F1419;
  --text-secondary: #5A6B78;
  --text-light: #8A9AA8;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --bg-dark: #0B3D5F;
  --border: #E2E8F0;
  --success: #0E9F6E;
  --warning: #F59E0B;

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 880px;

  /* Borders & Shadows */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(11, 61, 95, 0.08);
  --shadow-md: 0 4px 16px rgba(11, 61, 95, 0.10);
  --shadow-lg: 0 12px 40px rgba(11, 61, 95, 0.12);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

h4 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text);
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

em {
  font-style: italic;
}

blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

section {
  padding: var(--space-2xl) 0;
}

section.section-sm {
  padding: var(--space-xl) 0;
}

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

section.section-dark {
  background: var(--bg-dark);
  color: white;
}

section.section-dark h1,
section.section-dark h2,
section.section-dark h3 {
  color: white;
}

section.section-dark p {
  color: rgba(255,255,255,0.85);
}

/* ---------- 5. HEADER & NAVIGATION ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  z-index: -1;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  /* L'immagine logo si adatta automaticamente */
  line-height: 0;
}

.site-header__logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* Su retina/schermi ad alta densità l'immagine resta nitida */
  max-width: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.site-header__logo:hover .site-header__logo-img {
  opacity: 0.85;
}

/* Mobile: riduci leggermente */
@media (max-width: 640px) {
  .site-header__logo-img { height: 30px; }
}

/* Fallback: se per qualche motivo l'img non carica, mostra il testo */
.site-header__logo img {
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav__list a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color var(--transition);
  position: relative;
}

.site-nav__list a:hover {
  color: var(--primary);
}

.site-nav__list a.active {
  color: var(--primary);
  font-weight: 600;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.site-header__cta:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: all var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: all var(--transition);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-open span::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg) var(--space-md);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list li {
    border-bottom: 1px solid var(--border);
  }

  .site-nav__list a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }

  .site-header__cta {
    text-align: center;
    justify-content: center;
    margin-top: var(--space-md);
    padding: 0.85rem 1.25rem;
  }

  .menu-toggle {
    display: flex;
  }
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0;
}

.btn-link::after {
  content: '→';
  transition: transform var(--transition);
}

.btn-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 7. HERO ---------- */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  position: relative;
}

.hero h1 {
  max-width: 18ch;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.hero__credentials {
  margin: var(--space-md) 0 var(--space-lg);
}

.hero__credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  font-size: 0.98rem;
}

.hero__credentials li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.hero__cta-meta {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-top: var(--space-sm);
  width: 100%;
}

/* ---------- 8. TRUST BAR ---------- */
.trust-bar {
  padding: var(--space-lg) 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar__label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.trust-bar__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
  align-items: center;
  justify-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.trust-bar__logos img {
  max-height: 50px;
  max-width: 130px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.trust-bar__logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ============================================
   TRUST BAR — VARIANTE GRID 3×8 (24 loghi)
   Usata sulla home con i loghi reali clienti
   ============================================ */

.trust-bar--grid {
  padding: var(--space-2xl) 0;
}

.trust-bar__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.trust-bar--grid .trust-bar__label {
  margin-bottom: 0.4rem;
}

.trust-bar__count {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.5rem 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  justify-items: center;
}

.trust-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: white;
  border-radius: 10px;
  border: 1px solid rgba(11, 61, 95, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.trust-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.trust-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 61, 95, 0.10);
  border-color: rgba(11, 61, 95, 0.15);
}

.trust-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Tablet: 4 colonne */
@media (max-width: 980px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem 1rem;
  }
}

/* Mobile: 3 colonne */
@media (max-width: 640px) {
  .trust-bar--grid {
    padding: var(--space-xl) 0;
  }
  .trust-bar__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem 0.7rem;
  }
  .trust-logo {
    padding: 0.4rem;
    border-radius: 8px;
  }
  .trust-bar__count {
    font-size: 0.85rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .trust-logo,
  .trust-logo img { transition: none; }
}

/* ---------- 9. CARDS / GRIDS ---------- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.card__icon {
  width: 52px;
  height: 52px;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--primary);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card a.btn-link {
  margin-top: auto;
}

/* ---------- 10. STAT BLOCKS ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.stat {
  text-align: center;
  padding: var(--space-md);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.03em;
}

.stat__label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.section-dark .stat__number { color: white; }
.section-dark .stat__label { color: rgba(255,255,255,0.8); }

/* ---------- 11. METHOD / NUMBERED LIST ---------- */
.method-step {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.method-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.method-step h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}

.method-step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ---------- 12. FAQ ---------- */
.faq {
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) 0;
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform var(--transition);
  font-weight: 300;
}

.faq.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq.is-open .faq__answer {
  max-height: 1000px;
  padding-top: var(--space-sm);
}

.faq__answer p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---------- 13. FORMS ---------- */
.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group label .required {
  color: var(--accent);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text);
  transition: all var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 95, 0.1);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: var(--space-sm);
}

.form-checkbox input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- 14. TEAM CARDS ---------- */
.team-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
}

.team-card__photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--bg-alt);
  margin: 0 auto var(--space-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  text-align: center;
  margin-top: 0;
}

.team-card__role {
  text-align: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.team-card__role-secondary {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
}

.team-card__quote {
  font-style: italic;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  font-size: 0.95rem;
}

/* ---------- 15. CTA SECTION ---------- */
.cta-final {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-final h2 {
  color: white;
  max-width: 22ch;
  margin: 0 auto var(--space-md);
}

.cta-final p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  margin: 0 auto var(--space-lg);
  max-width: 50ch;
}

.cta-final__buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 16. FOOTER ---------- */
.site-footer {
  background: #0A1F2E;
  color: rgba(255,255,255,0.85);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: 0.94rem;
}

.site-footer h4 {
  color: white;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 880px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer ul li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: white;
}

.site-footer__brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.site-footer__bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.site-footer__legal {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.site-footer__disclaimer {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- 16b. CHECK / X LISTS ---------- */
.list-check, .list-x {
  list-style: none !important;
  padding-left: 0 !important;
  margin: var(--space-md) 0;
}
.list-check li, .list-x li {
  list-style: none !important;
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.85rem;
  line-height: 1.6;
}
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.05rem;
}
.list-x li::before {
  content: '✗';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ---------- 17. UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.mt-0 { margin-top: 0 !important; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0 !important; }
.mb-md { margin-bottom: var(--space-md); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.section-header p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

/* ---------- 18. PAGE HERO (subpages) ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, white 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 22ch;
}

.page-hero__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.page-hero__breadcrumb a {
  color: var(--text-secondary);
}

.page-hero__breadcrumb a:hover {
  color: var(--primary);
}

/* ---------- 19. CONTENT (long-form pages) ---------- */
.content-block {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.content-block p,
.content-block ul,
.content-block ol {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.content-block ul,
.content-block ol {
  margin: var(--space-md) 0;
  padding-left: 1.5rem;
}

.content-block ul li,
.content-block ol li {
  margin-bottom: 0.7rem;
  list-style-type: disc;
}

.content-block ol li {
  list-style-type: decimal;
}

.content-block hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

/* ---------- 20. ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
  }

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

/* ---------- 21. RESPONSIVE TWEAKS ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: var(--space-xl) 0; }
  .hero { padding: var(--space-xl) 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ============================================
   22. BLOG — STILE LONG-READ PULITO
   ============================================ */

/* --- Pagina indice blog --- */
.blog-hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, white 100%);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.blog-hero h1 {
  max-width: 22ch;
  margin-bottom: var(--space-sm);
}
.blog-hero p.lead {
  max-width: 60ch;
  margin-bottom: 0;
}

.blog-search {
  margin-top: var(--space-md);
  max-width: 480px;
}
.blog-search input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text);
  transition: all var(--transition);
}
.blog-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 95, 0.1);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-md) 0 var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.blog-filters button {
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.blog-filters button:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.blog-filters button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Featured article card */
.blog-featured {
  background: linear-gradient(135deg, #082B45 0%, #0B3D5F 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
}
@media (max-width: 720px) {
  .blog-featured { grid-template-columns: 1fr; padding: var(--space-lg); }
}
.blog-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: rgba(233, 79, 55, 0.2);
  border: 1px solid rgba(233, 79, 55, 0.4);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  grid-column: 1 / -1;
  width: fit-content;
}
.blog-featured h2 {
  color: white;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}
.blog-featured h2 a {
  color: white;
  text-decoration: none;
}
.blog-featured h2 a:hover {
  color: rgba(255,255,255,0.85);
}
.blog-featured__text { grid-column: 1 / -1; }
.blog-featured p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: var(--space-sm) 0 var(--space-md);
}
.blog-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  align-items: center;
}
.blog-featured__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

/* Articles grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-md);
}
.blog-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card__cluster {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
  width: fit-content;
}
.blog-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}
.blog-card h3 a:hover {
  color: var(--primary);
}
.blog-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 var(--space-md);
  flex-grow: 1;
}
.blog-card__meta {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}
.blog-card__meta span { display: inline-flex; align-items: center; gap: 0.3rem; }

.blog-empty {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  color: var(--text-secondary);
  display: none;
}

/* --- Singolo articolo blog (LONG-READ) --- */
.article-page {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-md);
}
.article-page .article__header {
  padding: var(--space-2xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
}
.article-page .article__breadcrumb {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}
.article-page .article__breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.article-page .article__breadcrumb a:hover { color: var(--primary); }
.article-page .article__cluster {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--bg-alt);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--space-md);
}
.article-page h1.article__title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  max-width: 22ch;
}
.article-page .article__lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 500;
  max-width: 60ch;
  margin: 0 0 var(--space-md);
}
.article-page .article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--text-light);
}
.article-page .article__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.article-page .article__body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
}
.article-page .article__body p {
  margin: 0 0 var(--space-md);
}
.article-page .article__body p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 0.4rem 0.5rem 0 0;
  color: var(--primary);
}
.article-page .article__body h2 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: var(--space-xl) 0 var(--space-md);
  letter-spacing: -0.01em;
}
.article-page .article__body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: var(--space-lg) 0 var(--space-sm);
}
.article-page .article__body strong { font-weight: 700; color: var(--text); }
.article-page .article__body em { font-style: italic; }
.article-page .article__body ul,
.article-page .article__body ol {
  margin: var(--space-sm) 0 var(--space-md);
  padding-left: 1.5rem;
}
.article-page .article__body li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}
.article-page .article__body li { list-style-type: disc; }
.article-page .article__body ol li { list-style-type: decimal; }
.article-page .article__body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.3rem 0 0.3rem var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.08rem;
}
.article-page .article__body hr {
  border: none;
  text-align: center;
  margin: var(--space-xl) 0;
  font-size: 1.2rem;
  letter-spacing: 1rem;
  color: var(--text-light);
}
.article-page .article__body hr::before { content: "···"; }

.article-page .article__footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}
.article-page .article__share {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.article-page .article__share a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}
.article-page .article__share a:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
}

.article-related {
  background: var(--bg-alt);
  padding: var(--space-2xl) 0;
  margin-top: var(--space-2xl);
}
.article-related h2 {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.article-related .blog-grid { max-width: 1100px; margin: 0 auto; padding: 0 var(--space-md); }

/* Mobile: riduci lead e h1 */
@media (max-width: 720px) {
  .article-page .article__body { font-size: 1.05rem; }
  .article-page .article__lead { font-size: 1.12rem; }
  .article-page .article__body p:first-of-type::first-letter {
    font-size: 2.8rem;
  }
}

/* ============================================
   23. BLOG — RAFFINEMENTI GRAFICI
   ============================================ */

/* Hero del blog con elemento atmosferico */
.blog-hero {
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -180px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 61, 95, 0.06) 0%, rgba(11, 61, 95, 0.03) 35%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.blog-hero > .container {
  position: relative;
  z-index: 1;
}
.blog-hero .blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}
.blog-hero .blog-hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

/* Card con icona dedicata e linea cluster colorata */
.blog-card {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--space-md) + 4px);
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cluster-color, var(--primary));
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.blog-card:hover::before {
  transform: scaleX(1);
}

/* Icona del cluster nella card */
.blog-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--cluster-color, var(--primary));
  transition: transform 0.4s ease;
  display: block;
}
.blog-card:hover .blog-card__icon {
  transform: translateY(-2px) scale(1.05);
}

/* Numero progressivo dell'articolo */
.blog-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-light);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.blog-card:hover .blog-card__number {
  opacity: 1;
  color: var(--cluster-color, var(--primary));
}

/* Colori tematici cluster */
.blog-card[data-cluster="A"] { --cluster-color: #0B3D5F; }
.blog-card[data-cluster="B"] { --cluster-color: #6A4C93; }
.blog-card[data-cluster="C"] { --cluster-color: #1B998B; }
.blog-card[data-cluster="D"] { --cluster-color: #2E86AB; }
.blog-card[data-cluster="E"] { --cluster-color: #E94F37; }
.blog-card[data-cluster="F"] { --cluster-color: #C77F32; }
.blog-card[data-cluster="G"] { --cluster-color: #5C9B6E; }
.blog-card[data-cluster="H"] { --cluster-color: #8B5A3C; }

/* Cluster eyebrow nelle card prende il colore del cluster */
.blog-card__cluster {
  background: rgba(11, 61, 95, 0.06);
  color: var(--cluster-color, var(--accent));
}

/* Featured pillar — refinement visuale */
.blog-featured {
  position: relative;
  overflow: hidden;
}
.blog-featured::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.18) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(40%, -40%);
}
.blog-featured::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-40%, 40%);
}
.blog-featured > * { position: relative; z-index: 1; }

/* Sezione filtri con un piccolo refinement */
.blog-filters::before {
  content: 'Argomenti';
  display: block;
  width: 100%;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
}

/* Mobile: aggiustamenti */
@media (max-width: 720px) {
  .blog-card__icon { width: 40px; height: 40px; }
  .blog-card__number { font-size: 0.78rem; }
  .blog-hero::before { width: 400px; height: 400px; right: -100px; top: -80px; }
  .blog-hero::after { display: none; }
}

/* ============================================
   24. PAGINE CLUSTER DEL BLOG
   ============================================ */

.cluster-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5478 100%);
  color: white;
  padding: var(--space-2xl) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}
.cluster-hero[data-cluster="A"] { background: linear-gradient(135deg, #0B3D5F 0%, #1a5478 100%); }
.cluster-hero[data-cluster="B"] { background: linear-gradient(135deg, #6A4C93 0%, #4A3673 100%); }
.cluster-hero[data-cluster="C"] { background: linear-gradient(135deg, #1B998B 0%, #0E7669 100%); }
.cluster-hero[data-cluster="D"] { background: linear-gradient(135deg, #2E86AB 0%, #1A6789 100%); }
.cluster-hero[data-cluster="E"] { background: linear-gradient(135deg, #C13B25 0%, #9F2D1B 100%); }
.cluster-hero[data-cluster="F"] { background: linear-gradient(135deg, #C77F32 0%, #A06425 100%); }
.cluster-hero[data-cluster="G"] { background: linear-gradient(135deg, #5C9B6E 0%, #3F7A50 100%); }
.cluster-hero[data-cluster="H"] { background: linear-gradient(135deg, #8B5A3C 0%, #6B4128 100%); }

.cluster-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cluster-hero > .container { position: relative; z-index: 1; }
.cluster-hero__breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-lg);
}
.cluster-hero__breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.cluster-hero__breadcrumb a:hover { color: white; }
.cluster-hero__breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

.cluster-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-md);
}
.cluster-hero__icon {
  width: 28px;
  height: 28px;
  color: white;
  opacity: 0.95;
}
.cluster-hero h1 { color: white; margin-bottom: var(--space-md); }
.cluster-hero .lead { color: rgba(255,255,255,0.9); max-width: 720px; }

.cluster-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}
.cluster-intro p { margin-bottom: 1.4em; }
.cluster-intro p:last-child { margin-bottom: 0; }

.cluster-articles-title {
  text-align: center;
  font-size: 1.7rem;
  margin: var(--space-xl) 0 var(--space-lg);
  color: var(--primary);
}

.cluster-articles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.cluster-article {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: var(--space-lg);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cluster-article[data-cluster="A"] { border-top: 3px solid #0B3D5F; }
.cluster-article[data-cluster="B"] { border-top: 3px solid #6A4C93; }
.cluster-article[data-cluster="C"] { border-top: 3px solid #1B998B; }
.cluster-article[data-cluster="D"] { border-top: 3px solid #2E86AB; }
.cluster-article[data-cluster="E"] { border-top: 3px solid #E94F37; }
.cluster-article[data-cluster="F"] { border-top: 3px solid #C77F32; }
.cluster-article[data-cluster="G"] { border-top: 3px solid #5C9B6E; }
.cluster-article[data-cluster="H"] { border-top: 3px solid #8B5A3C; }

.cluster-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 61, 95, 0.12);
}

.cluster-article__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.cluster-article h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  padding-right: 60px;
}
.cluster-article h3 a {
  color: var(--text);
  text-decoration: none;
}
.cluster-article h3 a:hover { color: var(--primary); }

.cluster-article p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.cluster-article__link {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.cluster-article__link:hover { color: var(--accent); }

.cluster-back {
  text-align: center;
  margin: var(--space-xl) 0;
}

/* ============================================
   25. ARTICOLI CORRELATI (in fondo agli articoli)
   ============================================ */

.related-articles {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.related-articles__title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.related-article {
  display: block;
  padding: var(--space-md);
  background: var(--bg-light, #fafaf9);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.3s, transform 0.3s;
  border-left: 3px solid var(--primary);
}
.related-article:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(11, 61, 95, 0.08);
}

.related-article__cluster {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.related-article__title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}


/* ============================================
   26. GRIGLIA CLUSTER NELL'INDEX DEL BLOG
   ============================================ */

.blog-clusters-grid {
  margin: var(--space-xl) auto;
  max-width: 1100px;
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(135deg, rgba(11, 61, 95, 0.03) 0%, rgba(233, 79, 55, 0.025) 100%);
  border-radius: 16px;
  border: 1px solid rgba(11, 61, 95, 0.08);
}

.blog-clusters-grid__title {
  text-align: center;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.blog-clusters-grid__lead {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
}

.blog-clusters-grid__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.blog-cluster-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.blog-cluster-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11, 61, 95, 0.1);
  border-color: var(--cluster-color, var(--primary));
}

.blog-cluster-tile[data-cluster="A"] { --cluster-color: #0B3D5F; }
.blog-cluster-tile[data-cluster="B"] { --cluster-color: #6A4C93; }
.blog-cluster-tile[data-cluster="C"] { --cluster-color: #1B998B; }
.blog-cluster-tile[data-cluster="D"] { --cluster-color: #2E86AB; }
.blog-cluster-tile[data-cluster="E"] { --cluster-color: #E94F37; }
.blog-cluster-tile[data-cluster="F"] { --cluster-color: #C77F32; }
.blog-cluster-tile[data-cluster="G"] { --cluster-color: #5C9B6E; }
.blog-cluster-tile[data-cluster="H"] { --cluster-color: #8B5A3C; }

.blog-cluster-tile__icon {
  width: 44px;
  height: 44px;
  color: var(--cluster-color, var(--primary));
  margin-bottom: var(--space-sm);
  transition: transform 0.3s ease;
}
.blog-cluster-tile:hover .blog-cluster-tile__icon {
  transform: scale(1.1);
}

.blog-cluster-tile__name {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.blog-cluster-tile__count {
  font-size: 0.82rem;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 500;
}

@media (max-width: 720px) {
  .blog-clusters-grid {
    padding: var(--space-lg) var(--space-md);
  }
  .blog-clusters-grid__list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }
  .blog-cluster-tile {
    padding: var(--space-md) var(--space-sm);
  }
  .blog-cluster-tile__icon {
    width: 36px;
    height: 36px;
  }
  .blog-cluster-tile__name {
    font-size: 0.88rem;
  }
}

/* ============================================
   27. SEZIONE AUDIT CTA NELLA HOMEPAGE
   ============================================ */

.audit-cta-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, rgba(11, 61, 95, 0.025) 0%, rgba(233, 79, 55, 0.018) 100%);
  position: relative;
  overflow: hidden;
}

.audit-cta-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.audit-cta-section > .container { position: relative; z-index: 1; }

.audit-cta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.audit-cta-text { max-width: 540px; }
.audit-cta-text .eyebrow { color: var(--accent); }
.audit-cta-text h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}
.audit-cta-text .lead {
  margin-bottom: var(--space-lg);
  color: var(--text-light, var(--text-secondary, #5A6B78));
}

.audit-cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.audit-cta-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}
.audit-cta-check {
  flex-shrink: 0;
  margin-top: 2px;
  color: #10B981;
}

.audit-cta-text .btn-accent,
.audit-cta-text .btn.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.95rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.audit-cta-text .btn-accent:hover {
  background: #d4452f;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(233, 79, 55, 0.25);
}

.audit-cta-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-light, var(--text-secondary, #5A6B78));
}

/* Card preview destra */
.audit-cta-preview {
  animation: auditFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.audit-preview-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-xl);
  box-shadow: 0 20px 50px rgba(11, 61, 95, 0.10), 0 4px 12px rgba(11, 61, 95, 0.06);
  border: 1px solid rgba(11, 61, 95, 0.05);
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}

.audit-preview-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}
.audit-preview-card__label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light, var(--text-secondary, #5A6B78));
}
.audit-preview-card__demo-badge {
  background: rgba(233, 79, 55, 0.12);
  color: #c8341d;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  padding: 3px 8px;
  border-radius: 4px;
}

.audit-preview-card__score-block {
  text-align: center;
  padding: var(--space-md) 0 var(--space-lg);
  border-bottom: 1px solid rgba(11, 61, 95, 0.06);
  margin-bottom: var(--space-lg);
}
.audit-preview-card__score {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: #047857;
  margin-bottom: 0.4rem;
  animation: auditScoreCount 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes auditScoreCount {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.audit-preview-card__band {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 0.4rem;
}
.audit-preview-card__score-meta {
  font-size: 0.85rem;
  color: var(--text-light, var(--text-secondary, #5A6B78));
}

.audit-preview-card__bars {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.audit-preview-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.audit-preview-bar__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.audit-preview-bar__pct {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-light, var(--text-secondary, #5A6B78));
}
.audit-preview-bar__track {
  width: 100%;
  height: 7px;
  background: rgba(11, 61, 95, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.audit-preview-bar__fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 100px;
  animation: auditBarFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}
.audit-preview-bar__fill--high { background: #10B981; }
.audit-preview-bar__fill--mid { background: #F59E0B; }

@keyframes auditBarFill {
  from { width: 0%; }
  to { width: var(--target-width, 70%); }
}

/* Mobile: stack verticale, nascondi card preview */
@media (max-width: 860px) {
  .audit-cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .audit-cta-text { max-width: 100%; text-align: left; }
  .audit-cta-preview { display: none; }
}

/* ============================================
   28. CLUSTER EXPLORE BANNER (in fondo agli articoli)
   ============================================ */

.cluster-explore-banner {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-xl);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cluster-explore-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(11, 61, 95, 0.04) 0%, rgba(11, 61, 95, 0.08) 100%);
  border-left: 4px solid var(--primary, #0B3D5F);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
}

/* Bordo sinistro colorato per cluster */
.cluster-explore-banner[data-cluster="A"] .cluster-explore-banner__inner { border-left-color: #0B3D5F; }
.cluster-explore-banner[data-cluster="B"] .cluster-explore-banner__inner { border-left-color: #6A4C93; }
.cluster-explore-banner[data-cluster="C"] .cluster-explore-banner__inner { border-left-color: #1B998B; }
.cluster-explore-banner[data-cluster="D"] .cluster-explore-banner__inner { border-left-color: #2E86AB; }
.cluster-explore-banner[data-cluster="E"] .cluster-explore-banner__inner { border-left-color: #E94F37; }
.cluster-explore-banner[data-cluster="F"] .cluster-explore-banner__inner { border-left-color: #C77F32; }
.cluster-explore-banner[data-cluster="G"] .cluster-explore-banner__inner { border-left-color: #5C9B6E; }
.cluster-explore-banner[data-cluster="H"] .cluster-explore-banner__inner { border-left-color: #8B5A3C; }

.cluster-explore-banner__text {
  flex: 1;
  min-width: 0;
}

.cluster-explore-banner__eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light, #5A6B78);
  margin-bottom: 0.4rem;
}

.cluster-explore-banner__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--text, #0F1419);
  line-height: 1.3;
}

.cluster-explore-banner__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-light, #5A6B78);
  margin: 0;
}

.cluster-explore-banner__cta {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary, #0B3D5F);
  text-decoration: none;
  background: white;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(11, 61, 95, 0.15);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
  white-space: nowrap;
}
.cluster-explore-banner__cta:hover {
  background: var(--primary, #0B3D5F);
  color: white;
  transform: translateY(-1px);
  border-color: var(--primary, #0B3D5F);
}

/* Mobile */
@media (max-width: 640px) {
  .cluster-explore-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
  }
  .cluster-explore-banner__cta {
    align-self: flex-start;
  }
}

/* ============================================
   29. SETTORI - CARD EDITORIALI IDENTITARIE
   ============================================ */

.settori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.settore-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(11, 61, 95, 0.08);
  border-top: 4px solid var(--primary, #0B3D5F);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Palette per settore (coerente col resto del sito) */
.settore-card[data-settore="medici"] { border-top-color: var(--primary, #0B3D5F); }
.settore-card[data-settore="medici"] .settore-card__icon { color: var(--primary, #0B3D5F); }
.settore-card[data-settore="medici"]::before {
  background: radial-gradient(circle at top right, rgba(11, 61, 95, 0.06) 0%, transparent 70%);
}

.settore-card[data-settore="poliambulatori"] { border-top-color: #6A4C93; }
.settore-card[data-settore="poliambulatori"] .settore-card__icon { color: #6A4C93; }
.settore-card[data-settore="poliambulatori"]::before {
  background: radial-gradient(circle at top right, rgba(106, 76, 147, 0.07) 0%, transparent 70%);
}

.settore-card[data-settore="odontoiatrici"] { border-top-color: var(--accent, #E94F37); }
.settore-card[data-settore="odontoiatrici"] .settore-card__icon { color: var(--accent, #E94F37); }
.settore-card[data-settore="odontoiatrici"]::before {
  background: radial-gradient(circle at top right, rgba(233, 79, 55, 0.06) 0%, transparent 70%);
}

.settore-card[data-settore="diagnostici"] { border-top-color: #1B998B; }
.settore-card[data-settore="diagnostici"] .settore-card__icon { color: #1B998B; }
.settore-card[data-settore="diagnostici"]::before {
  background: radial-gradient(circle at top right, rgba(27, 153, 139, 0.07) 0%, transparent 70%);
}

/* Decorazione di sfondo (cerchio gradient ad angolo top-right) */
.settore-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.settore-card > * {
  position: relative;
  z-index: 1;
}

/* Top: icona + target qualitativo */
.settore-card__top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.settore-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.settore-card__target {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light, #5A6B78);
  line-height: 1.35;
}

/* Title */
.settore-card__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: var(--text, #0F1419);
  transition: color 0.25s ease;
}

/* Lead */
.settore-card__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-light, #5A6B78);
  margin: 0 0 1.2rem;
}

/* Challenge bullets */
.settore-card__challenges {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid rgba(11, 61, 95, 0.06);
  padding-top: 1.1rem;
}
.settore-card__challenges li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text, #0F1419);
}
.settore-card__challenges li:last-child { margin-bottom: 0; }
.settore-card__challenges li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 2px;
  background: currentColor;
  opacity: 0.4;
}

/* CTA bottom */
.settore-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 61, 95, 0.06);
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--primary, #0B3D5F);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.25s ease;
}

.settore-card__arrow {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover: la card si solleva, decoration si espande, freccia avanza, titolo cambia colore */
.settore-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(11, 61, 95, 0.10),
              0 4px 12px rgba(11, 61, 95, 0.06);
  border-color: rgba(11, 61, 95, 0.15);
}
.settore-card:hover::before {
  transform: scale(1.3);
}
.settore-card:hover .settore-card__icon {
  transform: scale(1.08) rotate(-3deg);
}
.settore-card[data-settore="medici"]:hover .settore-card__title { color: var(--primary, #0B3D5F); }
.settore-card[data-settore="poliambulatori"]:hover .settore-card__title { color: #6A4C93; }
.settore-card[data-settore="odontoiatrici"]:hover .settore-card__title { color: var(--accent, #E94F37); }
.settore-card[data-settore="diagnostici"]:hover .settore-card__title { color: #1B998B; }
.settore-card:hover .settore-card__arrow {
  transform: translateX(4px);
}

/* CTA color match al settore on hover */
.settore-card[data-settore="medici"]:hover .settore-card__cta { color: var(--primary, #0B3D5F); }
.settore-card[data-settore="poliambulatori"]:hover .settore-card__cta { color: #6A4C93; }
.settore-card[data-settore="odontoiatrici"]:hover .settore-card__cta { color: var(--accent, #E94F37); }
.settore-card[data-settore="diagnostici"]:hover .settore-card__cta { color: #1B998B; }

/* Mobile */
@media (max-width: 768px) {
  .settori-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .settore-card {
    padding: 1.5rem 1.4rem;
  }
  .settore-card__title {
    font-size: 1.25rem;
  }
  .settore-card__icon {
    width: 38px;
    height: 38px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .settore-card,
  .settore-card::before,
  .settore-card__icon,
  .settore-card__arrow,
  .settore-card__title { transition: none; }
}

/* ============================================
   30. METODO - HERO + DIAGRAMMA
   ============================================ */

.metodo-hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EBF0F5 100%);
  position: relative;
  overflow: hidden;
}
.metodo-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(11, 61, 95, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.metodo-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-2xl, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.metodo-hero__text {
  max-width: 580px;
}

.metodo-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-lg);
  max-width: 480px;
}

.metodo-hero-stat {
  background: white;
  border-radius: 10px;
  padding: 1.1rem 0.9rem;
  text-align: center;
  border: 1px solid rgba(11, 61, 95, 0.08);
  border-top: 3px solid var(--primary, #0B3D5F);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.metodo-hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 61, 95, 0.08);
}
.metodo-hero-stat--accent {
  border-top-color: var(--accent, #E94F37);
  background: linear-gradient(135deg, white 0%, rgba(233, 79, 55, 0.04) 100%);
}

.metodo-hero-stat__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  color: var(--primary, #0B3D5F);
  margin-bottom: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.metodo-hero-stat--accent .metodo-hero-stat__num { color: var(--accent, #E94F37); }

.metodo-hero-stat__label {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-light, #5A6B78);
  line-height: 1.3;
}

/* Diagramma SVG */
.metodo-hero__diagram {
  display: flex;
  align-items: center;
  justify-content: center;
}

.metodo-diagram {
  width: 100%;
  max-width: 360px;
  position: relative;
}

.metodo-diagram__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Anelli rotanti lentamente */
.metodo-diagram__ring--outer {
  transform-origin: 160px 160px;
  animation: metodoRingOuter 60s linear infinite;
}
.metodo-diagram__ring--mid {
  transform-origin: 160px 160px;
  animation: metodoRingMid 45s linear infinite reverse;
}
@keyframes metodoRingOuter {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes metodoRingMid {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

/* Anello interno: pulse sottile */
.metodo-diagram__ring--inner {
  animation: metodoRingInner 4s ease-in-out infinite;
}
@keyframes metodoRingInner {
  0%, 100% { stroke-width: 2; opacity: 0.6; }
  50% { stroke-width: 3; opacity: 1; }
}

/* Numero centrale */
.metodo-diagram__center-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 56px;
  fill: var(--accent, #E94F37);
}
.metodo-diagram__center-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 4px;
  fill: var(--text-light, #5A6B78);
}

/* Nodi (6 punti sul cerchio) */
.metodo-diagram__node {
  opacity: 0;
  transform-origin: center;
  animation: metodoNodeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--node-delay, 0s);
}
@keyframes metodoNodeIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.metodo-diagram__node-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 11px;
  fill: var(--primary, #0B3D5F);
  opacity: 0;
  animation: metodoNodeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
}

/* Mobile hero */
@media (max-width: 900px) {
  .metodo-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .metodo-hero__diagram {
    order: -1;
  }
  .metodo-diagram { max-width: 280px; }
  .metodo-hero__stats { max-width: 100%; }
}
@media (max-width: 480px) {
  .metodo-hero-stat { padding: 0.9rem 0.5rem; }
  .metodo-hero-stat__num { font-size: 1.5rem; }
  .metodo-hero-stat__label { font-size: 0.66rem; }
  .metodo-diagram__node-label { font-size: 9px; }
}

/* ============================================
   31. METODO - I 3 FILTRI
   ============================================ */

.metodo-filtri-section {
  background: linear-gradient(135deg, #F5F7FA 0%, #EBF0F5 100%);
}

.metodo-filtri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.metodo-filtro {
  background: white;
  border-radius: 14px;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(11, 61, 95, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Animazione entrata */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  transition-delay: var(--filtro-delay, 0s);
}
.metodo-filtri-section.is-visible .metodo-filtro {
  opacity: 1;
  transform: translateY(0);
}

/* Bordo laterale colorato (semaforo intelligente) */
.metodo-filtro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent, #E94F37);
  border-radius: 14px 0 0 14px;
  transition: width 0.3s ease;
}
.metodo-filtro:hover {
  box-shadow: 0 12px 28px rgba(11, 61, 95, 0.10);
}
.metodo-filtro:hover::before {
  width: 6px;
}

.metodo-filtro__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.metodo-filtro__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--primary, #0B3D5F);
  opacity: 0.18;
  letter-spacing: -0.04em;
}

.metodo-filtro__icon {
  width: 38px;
  height: 38px;
  color: var(--accent, #E94F37);
  flex-shrink: 0;
}

.metodo-filtro__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #0F1419);
  margin: 0 0 0.8rem;
}

.metodo-filtro__desc {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-light, #5A6B78);
  margin: 0 0 1.4rem;
  flex-grow: 1;
}

.metodo-filtro__check {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.9rem;
  background: rgba(11, 61, 95, 0.04);
  border-radius: 6px;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.78rem;
  border-left: 2px solid var(--accent, #E94F37);
}
.metodo-filtro__check span {
  color: var(--text-light, #5A6B78);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}
.metodo-filtro__check strong {
  color: var(--primary, #0B3D5F);
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .metodo-filtri { grid-template-columns: 1fr; }
}

/* ============================================
   32. METODO - TIMELINE 6 MODULI
   ============================================ */

.metodo-moduli-section {
  padding: var(--space-2xl) 0;
  background: white;
  position: relative;
}

.metodo-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 0;
}

/* Linea verticale connessione (track + fill) */
.metodo-timeline__line {
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 30px;
  width: 2px;
  background: rgba(11, 61, 95, 0.12);
  border-radius: 2px;
}
.metodo-timeline__line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--primary, #0B3D5F) 0%, var(--accent, #E94F37) 100%);
  border-radius: 2px;
  transition: height 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.metodo-moduli-section.is-visible .metodo-timeline__line-fill {
  height: 100%;
}

.metodo-modulo {
  position: relative;
  padding-left: 75px;
  margin-bottom: 2.2rem;
  /* Stato iniziale per animazione */
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.metodo-modulo:last-child {
  margin-bottom: 0;
}
.metodo-modulo.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.metodo-modulo__circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(11, 61, 95, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.metodo-modulo.is-visible .metodo-modulo__circle {
  border-color: var(--primary, #0B3D5F);
  background: white;
}

.metodo-modulo--final.is-visible .metodo-modulo__circle {
  border-color: var(--accent, #E94F37);
  background: var(--accent, #E94F37);
}

.metodo-modulo__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: rgba(11, 61, 95, 0.4);
  transition: color 0.4s ease;
}
.metodo-modulo.is-visible .metodo-modulo__num {
  color: var(--primary, #0B3D5F);
}
.metodo-modulo--final.is-visible .metodo-modulo__num {
  color: white;
}

/* Hover sul cerchio */
.metodo-modulo:hover .metodo-modulo__circle {
  transform: scale(1.08);
}

.metodo-modulo__content {
  background: white;
  border: 1px solid rgba(11, 61, 95, 0.08);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 1.3rem 1.5rem;
  transition: border-left-color 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.metodo-modulo.is-visible .metodo-modulo__content {
  border-left-color: var(--primary, #0B3D5F);
}
.metodo-modulo--final.is-visible .metodo-modulo__content {
  border-left-color: var(--accent, #E94F37);
}
.metodo-modulo:hover .metodo-modulo__content {
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(11, 61, 95, 0.06);
}

.metodo-modulo__meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.metodo-modulo__when {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary, #0B3D5F);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metodo-modulo__phase {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light, #5A6B78);
  background: rgba(11, 61, 95, 0.06);
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metodo-modulo__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text, #0F1419);
  line-height: 1.25;
}

.metodo-modulo__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light, #5A6B78);
  margin: 0;
}

@media (max-width: 640px) {
  .metodo-timeline__line { left: 22px; top: 22px; bottom: 22px; }
  .metodo-modulo { padding-left: 60px; }
  .metodo-modulo__circle { width: 46px; height: 46px; }
  .metodo-modulo__num { font-size: 1.1rem; }
  .metodo-modulo__content { padding: 1.1rem 1.2rem; }
}

/* ============================================
   33. METODO - CALLOUT EDITORIALE
   ============================================ */

.metodo-callout-section {
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  padding: var(--space-2xl) 0;
}

.metodo-callout {
  max-width: 880px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 2.2rem 2.4rem;
  position: relative;
  border: 1px solid rgba(11, 61, 95, 0.08);
  box-shadow: 0 16px 40px rgba(11, 61, 95, 0.06);
  overflow: hidden;
}
.metodo-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary, #0B3D5F) 0%, var(--accent, #E94F37) 100%);
}

.metodo-callout__mark {
  width: 48px;
  height: 48px;
  color: var(--accent, #E94F37);
  margin-bottom: 1.2rem;
  opacity: 0.9;
}
.metodo-callout__mark svg { width: 100%; height: 100%; }

.metodo-callout__lead {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #0F1419);
  margin: 0 0 1.4rem;
}
.metodo-callout__lead em {
  font-style: normal;
  color: var(--accent, #E94F37);
  position: relative;
  white-space: nowrap;
}
.metodo-callout__lead em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, #E94F37);
  opacity: 0.2;
  border-radius: 100px;
}

.metodo-callout__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-light, #5A6B78);
  margin-bottom: 1.8rem;
}
.metodo-callout__body p {
  margin: 0 0 1rem;
}
.metodo-callout__body p:last-child {
  margin-bottom: 0;
}
.metodo-callout__body strong {
  color: var(--text, #0F1419);
}

.metodo-callout__timing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 61, 95, 0.08);
}

.metodo-callout__timing-item {
  text-align: center;
  padding: 0.5rem;
}

.metodo-callout__timing-num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--primary, #0B3D5F);
  margin-bottom: 0.4rem;
}

.metodo-callout__timing-label {
  font-size: 0.85rem;
  color: var(--text-light, #5A6B78);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .metodo-callout { padding: 1.7rem 1.5rem; }
  .metodo-callout__lead { font-size: 1.3rem; }
  .metodo-callout__timing {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .metodo-callout__timing-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    text-align: left;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(11, 61, 95, 0.06);
  }
  .metodo-callout__timing-item:last-child { border-bottom: none; }
  .metodo-callout__timing-num { margin-bottom: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .metodo-diagram__ring--outer,
  .metodo-diagram__ring--mid,
  .metodo-diagram__ring--inner,
  .metodo-diagram__node,
  .metodo-diagram__node-label {
    animation: none;
    opacity: 1;
  }
  .metodo-filtro,
  .metodo-modulo,
  .metodo-timeline__line-fill {
    transition: none;
    opacity: 1;
    transform: none;
    height: 100%;
  }
}

/* ============================================
   34. BLOG HERO RIDISEGNATO (override)
   ============================================ */

.blog-hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EBF0F5 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid rgba(11, 61, 95, 0.08);
  position: relative;
  overflow: hidden;
}
/* Reset dei pseudo-elementi vecchi */
.blog-hero::before,
.blog-hero::after {
  display: none;
}

/* Decorazione di sfondo nuova (solo blob blu top-right) */
.blog-hero {
  --hero-blob: radial-gradient(circle, rgba(11, 61, 95, 0.07) 0%, transparent 65%);
}
.blog-hero > .container::before {
  content: '';
  position: absolute;
  top: -250px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: var(--hero-blob);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.blog-hero > .container {
  position: relative;
}

/* Grid 2 colonne */
.blog-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-2xl, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-hero__text {
  max-width: 560px;
}

.blog-hero h1 {
  max-width: 100%;
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.blog-hero p.lead {
  max-width: 100%;
  margin-bottom: var(--space-lg);
}

/* Search field con icona */
.blog-search {
  position: relative;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}
.blog-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-light, #5A6B78);
  pointer-events: none;
  z-index: 1;
}
.blog-search input[type="search"] {
  width: 100%;
  padding: 0.95rem 1.1rem 0.95rem 3rem;
  border: 1px solid rgba(11, 61, 95, 0.15);
  border-radius: 10px;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(11, 61, 95, 0.04);
}
.blog-search input[type="search"]:focus {
  outline: none;
  border-color: var(--primary, #0B3D5F);
  box-shadow: 0 4px 14px rgba(11, 61, 95, 0.10);
}
.blog-search input[type="search"]::placeholder {
  color: var(--text-light, #5A6B78);
}

/* Stat block (3 numeri sotto search) */
.blog-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 480px;
}

.blog-hero-stat {
  background: white;
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  text-align: center;
  border: 1px solid rgba(11, 61, 95, 0.08);
  border-top: 3px solid var(--primary, #0B3D5F);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 61, 95, 0.06);
}
.blog-hero-stat--accent {
  border-top-color: var(--accent, #E94F37);
  background: linear-gradient(135deg, white 0%, rgba(233, 79, 55, 0.04) 100%);
}
.blog-hero-stat__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--primary, #0B3D5F);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.blog-hero-stat--accent .blog-hero-stat__num { color: var(--accent, #E94F37); }
.blog-hero-stat__label {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light, #5A6B78);
  line-height: 1.3;
}

/* ===== STACK CARD VISUAL (lato destro) ===== */

.blog-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.blog-hero-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 380px;
  perspective: 1200px;
}

.blog-hero-stack__card {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 16px 40px rgba(11, 61, 95, 0.10),
              0 4px 12px rgba(11, 61, 95, 0.06);
  border-top: 3px solid var(--cluster-color, var(--primary));
  width: 280px;
  opacity: 0;
  transform: translateY(30px);
  animation: blogCardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Posizionamento delle 3 card sovrapposte */
.blog-hero-stack__card--1 {
  top: 30px;
  right: 0;
  z-index: 3;
  transform: translateY(30px) rotate(-2deg);
  animation-delay: 0.3s;
}
.blog-hero-stack__card--2 {
  top: 90px;
  right: 30px;
  z-index: 2;
  transform: translateY(30px) rotate(2deg);
  animation-delay: 0.15s;
}
.blog-hero-stack__card--3 {
  top: 150px;
  right: 60px;
  z-index: 1;
  transform: translateY(30px) rotate(-1deg);
  animation-delay: 0s;
}

@keyframes blogCardIn {
  to {
    opacity: 1;
  }
}
/* Stati finali per ogni card (rotazione mantenuta) */
.blog-hero-stack__card--1 { animation-name: blogCardIn1; }
.blog-hero-stack__card--2 { animation-name: blogCardIn2; }
.blog-hero-stack__card--3 { animation-name: blogCardIn3; }

@keyframes blogCardIn1 {
  to { opacity: 1; transform: translateY(0) rotate(-2deg); }
}
@keyframes blogCardIn2 {
  to { opacity: 0.95; transform: translateY(0) rotate(2deg); }
}
@keyframes blogCardIn3 {
  to { opacity: 0.85; transform: translateY(0) rotate(-1deg); }
}

/* Hover sulla pila: la card in cima si raddrizza e cresce */
.blog-hero-stack:hover .blog-hero-stack__card--1 {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-hero-stack:hover .blog-hero-stack__card--2 {
  transform: translateY(0) rotate(3deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-hero-stack:hover .blog-hero-stack__card--3 {
  transform: translateY(0) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-hero-stack__cluster {
  display: inline-block;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cluster-color, var(--primary));
  margin-bottom: 0.7rem;
}

.blog-hero-stack__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #0F1419);
  margin-bottom: 0.9rem;
}

.blog-hero-stack__lines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.blog-hero-stack__lines span {
  display: block;
  height: 6px;
  background: rgba(11, 61, 95, 0.08);
  border-radius: 3px;
  width: 100%;
}

.blog-hero-stack__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(11, 61, 95, 0.06);
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.72rem;
  color: var(--text-light, #5A6B78);
}

.blog-hero-stack__pillar {
  background: rgba(233, 79, 55, 0.1);
  color: #c8341d;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.62rem;
}

/* ===== TAG FLUTTUANTI ===== */

.blog-hero-tag {
  position: absolute;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  background: white;
  color: var(--primary, #0B3D5F);
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  box-shadow: 0 6px 16px rgba(11, 61, 95, 0.08);
  border: 1px solid rgba(11, 61, 95, 0.08);
  z-index: 4;
  opacity: 0;
  animation: blogTagFloat 4s ease-in-out infinite, blogTagIn 0.5s ease-out forwards;
}

.blog-hero-tag--1 {
  top: 12px;
  left: 0;
  animation-delay: 0.6s, 0.6s;
}
.blog-hero-tag--2 {
  top: 100px;
  left: -10px;
  color: var(--accent, #E94F37);
  animation-delay: 0.9s, 0.9s;
}
.blog-hero-tag--3 {
  bottom: 60px;
  left: 20px;
  animation-delay: 1.2s, 1.2s;
}
.blog-hero-tag--4 {
  bottom: 0;
  right: 0;
  animation-delay: 1.5s, 1.5s;
}

@keyframes blogTagIn {
  to { opacity: 1; }
}
@keyframes blogTagFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== MOBILE / TABLET ===== */

@media (max-width: 980px) {
  .blog-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-hero__visual {
    min-height: 320px;
    order: -1;
  }
  .blog-hero-stack { max-width: 320px; height: 320px; }
  .blog-hero-stack__card { width: 240px; padding: 1.1rem 1.2rem; }
  .blog-hero-stack__title { font-size: 0.92rem; }
  .blog-hero__text { max-width: 100%; }
  .blog-hero__stats { max-width: 100%; }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }
  .blog-hero__visual { min-height: 280px; }
  .blog-hero-stack { max-width: 280px; height: 280px; }
  .blog-hero-stack__card { width: 220px; padding: 1rem 1.1rem; }
  .blog-hero-stack__card--1 { top: 20px; right: 0; }
  .blog-hero-stack__card--2 { top: 70px; right: 20px; }
  .blog-hero-stack__card--3 { top: 120px; right: 40px; }
  .blog-hero-tag { font-size: 0.7rem; padding: 0.35rem 0.75rem; }
  .blog-hero-stat__num { font-size: 1.3rem; }
  .blog-hero-stat__label { font-size: 0.62rem; }
  .blog-hero-stat { padding: 0.7rem 0.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blog-hero-stack__card,
  .blog-hero-tag {
    animation: none;
    opacity: 1;
  }
  .blog-hero-stack__card--1 { transform: rotate(-2deg); opacity: 1; }
  .blog-hero-stack__card--2 { transform: rotate(2deg); opacity: 0.95; }
  .blog-hero-stack__card--3 { transform: rotate(-1deg); opacity: 0.85; }
}

/* ============================================
   35. SERVIZI HERO RIDISEGNATO
   ============================================ */

.servizi-hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EBF0F5 100%);
  position: relative;
  overflow: hidden;
}
.servizi-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 61, 95, 0.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.servizi-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.servizi-hero > .container {
  position: relative;
  z-index: 1;
}

.servizi-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl, 4rem);
  align-items: center;
}

.servizi-hero__text {
  max-width: 580px;
}

.servizi-hero h1 {
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.servizi-hero p.lead {
  margin-bottom: var(--space-lg);
}

/* Stat block */
.servizi-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 480px;
  margin-bottom: var(--space-md);
}

.servizi-hero-stat {
  background: white;
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  text-align: center;
  border: 1px solid rgba(11, 61, 95, 0.08);
  border-top: 3px solid var(--primary, #0B3D5F);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.servizi-hero-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 61, 95, 0.06);
}
.servizi-hero-stat--accent {
  border-top-color: var(--accent, #E94F37);
  background: linear-gradient(135deg, white 0%, rgba(233, 79, 55, 0.04) 100%);
}
.servizi-hero-stat__num {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--primary, #0B3D5F);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}
.servizi-hero-stat--accent .servizi-hero-stat__num { color: var(--accent, #E94F37); }
.servizi-hero-stat__label {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light, #5A6B78);
  line-height: 1.3;
}

/* CTA arrow link */
.servizi-hero__cta {
  margin-top: 0.5rem;
}
.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--primary, #0B3D5F);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.2s ease;
}
.btn-link-arrow:hover {
  color: var(--accent, #E94F37);
  gap: 0.8rem;
}
.btn-link-arrow span {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-link-arrow:hover span {
  transform: translateY(3px);
}

/* ===== GRIGLIA TILE SERVIZI ===== */
.servizi-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.servizi-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 78px);
  grid-auto-rows: 78px;
  gap: 0.7rem;
  max-width: 360px;
  position: relative;
}

.servizi-tile {
  background: white;
  border-radius: 12px;
  padding: 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(11, 61, 95, 0.08);
  box-shadow: 0 4px 12px rgba(11, 61, 95, 0.04);
  color: var(--primary, #0B3D5F);
  /* Animazione entrata */
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  animation: servTileIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--tile-delay, 0s);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              border-color 0.25s ease;
}

@keyframes servTileIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hover: si solleva e cambia colore */
.servizi-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(11, 61, 95, 0.12);
  border-color: rgba(11, 61, 95, 0.2);
  z-index: 5;
}

/* Tile featured (Sito Web come elemento focale) */
.servizi-tile--featured {
  background: linear-gradient(135deg, var(--primary, #0B3D5F) 0%, #1a5478 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(11, 61, 95, 0.25);
  border-color: var(--primary, #0B3D5F);
}
.servizi-tile--featured:hover {
  box-shadow: 0 12px 28px rgba(11, 61, 95, 0.35);
}

/* Tile categoria strategia: tonalità più calda */
.servizi-tile--strat {
  border-top: 2px solid var(--accent, #E94F37);
}
.servizi-tile--strat .servizi-tile__icon {
  color: var(--accent, #E94F37);
}

/* Offset per spostare visivamente le ultime 2 tile */
.servizi-tile--offset {
  grid-column-start: 2;
}

.servizi-tile__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.servizi-tile:hover .servizi-tile__icon {
  transform: scale(1.15);
}

.servizi-tile__label {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ===== ETICHETTE CATEGORIA FLUTTUANTI ===== */
.servizi-hero-cat-label {
  position: absolute;
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: white;
  padding: 0.45rem 0.95rem;
  border-radius: 100px;
  box-shadow: 0 6px 16px rgba(11, 61, 95, 0.10);
  border: 1px solid rgba(11, 61, 95, 0.08);
  z-index: 6;
  opacity: 0;
  animation: servLabelIn 0.5s ease-out forwards, servLabelFloat 4s ease-in-out infinite;
}

.servizi-hero-cat-label--exe {
  top: -10px;
  left: -20px;
  color: var(--primary, #0B3D5F);
  animation-delay: 0.7s, 0.7s;
}
.servizi-hero-cat-label--strat {
  bottom: -10px;
  right: -20px;
  color: var(--accent, #E94F37);
  animation-delay: 1s, 1s;
}

@keyframes servLabelIn {
  to { opacity: 1; }
}
@keyframes servLabelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ===== MOBILE / TABLET ===== */
@media (max-width: 980px) {
  .servizi-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .servizi-hero__visual {
    order: -1;
    min-height: 380px;
  }
  .servizi-grid-mini {
    grid-template-columns: repeat(4, 64px);
    grid-auto-rows: 64px;
    gap: 0.55rem;
    max-width: 300px;
  }
  .servizi-tile { padding: 0.5rem 0.3rem; }
  .servizi-tile__icon { width: 20px; height: 20px; }
  .servizi-tile__label { font-size: 0.6rem; }
  .servizi-hero__text { max-width: 100%; }
  .servizi-hero__stats { max-width: 100%; }
}

@media (max-width: 640px) {
  .servizi-grid-mini {
    grid-template-columns: repeat(4, 56px);
    grid-auto-rows: 56px;
    gap: 0.45rem;
    max-width: 260px;
  }
  .servizi-tile__icon { width: 18px; height: 18px; }
  .servizi-tile__label { font-size: 0.55rem; }
  .servizi-hero-cat-label {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }
  .servizi-hero-stat__num { font-size: 1.3rem; }
  .servizi-hero-stat__label { font-size: 0.62rem; }
  .servizi-hero-stat { padding: 0.7rem 0.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .servizi-tile,
  .servizi-hero-cat-label {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* ============================================
   COOKIE BANNER GDPR
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: white;
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 16px 48px rgba(11, 61, 95, 0.18),
              0 4px 16px rgba(11, 61, 95, 0.10);
  border: 1px solid rgba(11, 61, 95, 0.08);
  z-index: 9999;
  font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
  /* Stato iniziale: invisibile, scrollato in basso */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner__title {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0F1419);
  margin: 0 0 0.5rem;
}

.cookie-banner__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-light, #5A6B78);
  margin: 0 0 1.1rem;
}

.cookie-banner__text a {
  color: var(--primary, #0B3D5F);
  text-decoration: underline;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  font-family: var(--font-heading, 'Manrope'), sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.65rem 1.3rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  flex: 1;
  min-width: 120px;
}

.cookie-banner__btn--accept {
  background: var(--primary, #0B3D5F);
  color: white;
}
.cookie-banner__btn--accept:hover {
  background: #0a2f4a;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11, 61, 95, 0.20);
}

.cookie-banner__btn--reject {
  background: transparent;
  color: var(--text-light, #5A6B78);
  border: 1px solid rgba(11, 61, 95, 0.15);
}
.cookie-banner__btn--reject:hover {
  background: rgba(11, 61, 95, 0.04);
  color: var(--text, #0F1419);
}

.cookie-banner__btn--customize {
  background: transparent;
  color: var(--primary, #0B3D5F);
  text-decoration: underline;
  flex: 0 0 auto;
  padding: 0.65rem 0.5rem;
}
.cookie-banner__btn--customize:hover {
  color: var(--accent, #E94F37);
}

/* Mobile */
@media (max-width: 600px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 1.2rem 1.3rem;
  }
  .cookie-banner__title { font-size: 0.98rem; }
  .cookie-banner__text { font-size: 0.86rem; }
  .cookie-banner__btn { font-size: 0.86rem; padding: 0.6rem 1rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}
