/* =========================================================
   NutraBrand unified layer for Massimo Pellegrino website
   Applies the same visual language used in /nutrabrand/.
   Loaded after the existing page styles to preserve structure.
   ========================================================= */
:root {
  --blue: #1e3a5f;
  --blue-2: #2f5d8a;
  --cta: #3a86ff;
  --bg: #f8fafc;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #dce5f2;
  --shadow: 0 24px 70px rgba(30, 58, 95, 0.12);
  --radius: 28px;
  --page-bg-a: #f8fafc;
  --page-bg-b: #eef5ff;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(238, 245, 255, 0.88), transparent 34%),
    linear-gradient(135deg, var(--page-bg-a), var(--page-bg-b));
  background-attachment: fixed;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.bg-1,
body.bg-2,
body.bg-3 { background-color: transparent; }

section {
  padding: clamp(64px, 9vw, 116px) 0 !important;
}

.container { width: min(1180px, calc(100% - 32px)); }

.navbar {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none;
  transform: translateX(-50%);
  opacity: 1;
  animation: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.navbar.navbar--scrolled {
  border-color: rgba(30, 58, 95, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 46px rgba(30, 58, 95, 0.12);
}

.navbar .nav-container { width: 100%; }
.nav-logo img { height: 38px; filter: none; }
.navbar.navbar--scrolled .nav-logo img { transform: none; filter: none; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  margin-left: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a:last-child {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
  color: var(--card);
  background: var(--blue);
}

.nav-menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 44px;
  text-align: center;
}

.mobile-menu {
  top: 82px;
  left: 16px;
  right: 16px;
  width: auto;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu--open,
.mobile-menu.menu-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  margin-bottom: 6px;
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--blue);
  background: var(--bg);
  font-size: 1rem;
  font-weight: 750;
}

.hero {
  min-height: 100vh;
  padding: 148px max(16px, calc((100vw - 1180px) / 2)) 92px !important;
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(238, 245, 255, 0.88)),
    url('../img/hero.jpg') center / cover no-repeat;
  animation: none;
}
.hero::before { display: none; }
.hero-inner { max-width: 1180px; }
.hero-kicker,
.blog-kicker,
.micro-hero-label,
.about-kicker,
.offer-label {
  color: var(--cta) !important;
  letter-spacing: 0.08em;
  font-weight: 850;
}
.hero-kicker {
  border: 1px solid rgba(58, 134, 255, 0.16);
  background: rgba(58, 134, 255, 0.08);
}
.hero-title {
  max-width: 1060px;
  color: var(--blue);
  font-size: clamp(3.4rem, 7.2vw, 6.8rem);
  font-weight: 850;
  letter-spacing: 0;
}
.highlight { color: var(--cta); font-weight: 850; letter-spacing: 0; }
.hero-subtitle {
  max-width: 820px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.5vw, 1.36rem);
  line-height: 1.68;
}

.btn-primary,
.blog-cta-button,
.blog-article-cta-button,
.contact-send-button,
.about-bio-button,
.value-cta,
.work-slide-button,
.pulse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 15px 26px;
  color: var(--card) !important;
  background: linear-gradient(135deg, #4778ff, #1f58c9) !important;
  box-shadow: 0 20px 38px rgba(58, 100, 220, 0.22);
  font-weight: 800;
  text-decoration: none;
}
.btn-link,
.btn-secondary {
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 999px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.06);
  font-weight: 800;
}

.hero-path-card,
.offer-item,
.value-proof-card,
.pulse-module,
.pulse-card,
.orientami-card,
.orientami-step2-inner,
.orientami-step3-box-container,
.about-how,
.about-bio,
.contact-block,
.blog-card-link,
.blog-article-body-inner,
.blog-article-sources .blog-article-body-inner,
.blog-cta-inner,
.blog-article-cta-inner {
  border: 1px solid rgba(30, 58, 95, 0.08) !important;
  border-radius: var(--radius) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: var(--shadow) !important;
}

.section-title,
.value-title,
.micro-hero-title,
.pulse-title,
.orientami-title,
.about-title,
.about-bio-title,
.contact-question,
.blog-title,
.blog-card-title,
.blog-article-title,
.blog-cta-title,
.blog-article-cta-title {
  color: var(--blue) !important;
  letter-spacing: 0;
  font-weight: 850;
}
.section-title { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.section-subtitle,
.value-subtitle,
.micro-hero-sub,
.pulse-subtitle,
.orientami-subtitle,
.about-subtitle,
.about-bio-text,
.blog-card-excerpt,
.blog-cta-text,
.blog-article-subtitle,
.blog-article-body p,
.blog-article-cta-text { color: var(--muted) !important; }

.value-image img,
.blog-article-cover-image,
.work-slide-image { border-radius: var(--radius); }
.work-horizontal { background: transparent; }
.work-slide::before { background: linear-gradient(90deg, rgba(30, 58, 95, 0.76), rgba(30, 58, 95, 0.18)); }

.footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: var(--blue) !important;
  color: rgba(255, 255, 255, 0.78);
}
.footer a,
.footer button { color: #ffffff !important; }

.cookie-banner {
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}
.cookie-btn-primary { background: var(--blue); box-shadow: none; }
.cookie-preferences-toggle { color: var(--blue); font-weight: 800; }

#back-to-top {
  border-color: rgba(30, 58, 95, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-menu-toggle { display: block; }
  .hero-paths { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 56px 0 !important; }
  .navbar { top: 10px; width: min(100% - 24px, 1180px); padding: 8px 10px; }
  .nav-logo img { height: 32px; }
  .hero { min-height: auto; padding: 118px 16px 70px !important; }
  .hero-title { font-size: clamp(2.55rem, 12vw, 4rem); line-height: 1.08; }
  .highlight { font-size: inherit; line-height: inherit; }
  .hero-subtitle { font-size: 1.05rem; font-weight: 600; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .btn-primary,
  .btn-link,
  .btn-secondary { width: 100%; text-align: center; }
  .section-title { font-size: clamp(2rem, 10vw, 3rem); }
  .cookie-banner-inner { align-items: stretch; }
  .cookie-banner-buttons { width: 100%; }
}


.nav-logo a {
  display: flex;
  align-items: center;
}

.legal-page {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 72px) 0;
}

.legal-container {
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.legal-container h1,
.legal-container h2 {
  color: var(--blue);
  letter-spacing: 0;
}

.legal-container h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-container h2 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.legal-container p,
.legal-container li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-container a {
  color: var(--blue);
  font-weight: 800;
}

/* =========================================================
   Home refinement pass
   Stronger section-level overrides for the personal homepage.
   These rules align spacing, cards and internal grids with Nutrabrand.
   ========================================================= */
.home-page main,
body:not(.legal-page) main {
  overflow: hidden;
}

.home-page section,
body:not(.legal-page) section {
  opacity: 1;
  transform: none;
}

.value,
.offer,
.pulse,
.orientami,
.about-section,
.contact {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(34px, 6vw, 76px) auto;
  border: 0 !important;
  border-radius: var(--radius) !important;
  padding: clamp(58px, 7vw, 92px) clamp(22px, 4vw, 44px) !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: none !important;
  overflow: visible;
}

.value::before,
.pulse::before,
.orientami::before {
  display: none;
}

.section-divider {
  display: none;
}

.section-title {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(54px, 7vw, 96px) auto 14px;
  text-align: left;
}

.section-subtitle {
  width: min(1180px, calc(100% - 32px));
  max-width: 760px;
  margin: 0 auto clamp(26px, 5vw, 52px);
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

.micro-hero {
  padding: 0 !important;
  margin: 0 0 clamp(28px, 4vw, 46px) !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.micro-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.micro-hero-title,
.pulse-title,
.orientami-title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 1.04;
}

.micro-hero-sub,
.pulse-subtitle,
.orientami-subtitle {
  max-width: 760px;
  margin: 0 auto clamp(26px, 4vw, 46px);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 600;
  line-height: 1.65;
}

/* Value */
.value-heading {
  max-width: 900px;
  margin-bottom: clamp(34px, 5vw, 54px);
}

.value-title {
  font-size: clamp(2.35rem, 5.4vw, 5.2rem);
  line-height: 1.06;
}

.value-title span {
  color: var(--cta);
  font-weight: 850;
}

.value-subtitle {
  margin-top: 22px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 600;
}

.value-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.value-image {
  min-height: 520px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.value-text-block {
  gap: 16px;
}

.value-proof-card {
  min-height: 0;
  padding: clamp(22px, 3vw, 30px);
}

.value-proof-card h3,
.about-step-title,
.offer-item h3 {
  color: var(--blue) !important;
  letter-spacing: 0;
}

.value-cta-box {
  margin-top: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

/* Offer */
.offer {
  padding-top: clamp(46px, 6vw, 76px) !important;
}

.offer-intro {
  margin-bottom: clamp(26px, 4vw, 44px);
  opacity: 1;
  transform: none;
}

.offer-tagline {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  font-weight: 650;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offer-wide {
  grid-column: 1 / -1;
}

.offer-wide,
.offer-half {
  flex: none;
}

.offer-item {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 4vw, 40px);
}

.offer-icon {
  color: var(--cta);
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.offer-item h3 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.offer-item p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.62;
}

.offer-footer {
  margin-top: clamp(28px, 5vw, 48px);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 650;
  opacity: 1;
  transform: none;
}

/* Pulse + Orientami */
.pulse,
.orientami {
  padding-top: clamp(58px, 7vw, 92px) !important;
  padding-bottom: clamp(58px, 7vw, 92px) !important;
}

.pulse-container,
.orientami-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.pulse-module,
.orientami-step2-inner,
.orientami-step3-box-container {
  width: min(100%, 920px);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(24px, 4vw, 42px);
}

.pulse-input-box {
  max-width: 840px;
  margin-bottom: clamp(28px, 4vw, 46px);
  border: 1px solid rgba(30, 58, 95, 0.08) !important;
  border-image: none !important;
  border-radius: 22px;
  padding: clamp(18px, 3vw, 30px);
  background: #fbfdff;
  box-shadow: none;
}

.pulse-textarea {
  min-height: 138px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: none;
  font-size: 1rem;
}

.pulse-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pulse-card {
  width: auto;
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
}

.orientami-grid,
.orientami-step2-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.orientami-card,
.orientami-option {
  min-height: 180px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 22px;
  padding: 24px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(30, 58, 95, 0.06);
}

/* About: fixes the "Come lavoro" block alignment. */
.about-section {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.about-wrapper {
  width: 100%;
  max-width: 1180px;
  padding: 0;
  gap: 18px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: stretch;
}

.about-how,
.about-bio {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid rgba(30, 58, 95, 0.08) !important;
  border-radius: var(--radius) !important;
  padding: clamp(26px, 4vw, 42px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow) !important;
}

.about-title {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
}

.about-subtitle {
  max-width: 720px;
  margin-bottom: clamp(24px, 4vw, 36px);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  font-weight: 600;
}

.about-steps {
  gap: 14px;
}

.about-step {
  gap: 16px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 20px;
  padding: 18px;
  background: #fbfdff;
  transform: none !important;
}

.about-step-number {
  width: 40px;
  height: 40px;
  color: var(--card);
  border: 0;
  background: var(--cta);
  box-shadow: none;
}

.about-step-title {
  margin-bottom: 6px;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.about-step-text,
.about-bio-text,
.about-bio-role {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.64;
}

.about-photo {
  min-height: 300px;
  height: auto;
  aspect-ratio: 1.05 / 1;
  margin-bottom: 24px;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 24px;
  background-color: #eef5ff;
  background-image: url('../img/massp.png');
  background-size: cover;
  box-shadow: none;
  opacity: 1;
  transform: none;
  animation: none !important;
}

.about-photo.in-view,
.about-photo:hover {
  opacity: 1;
  transform: none;
  animation: none !important;
}

.about-bio-title {
  margin-bottom: 6px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.about-bio-role {
  margin-bottom: 20px;
  font-weight: 800;
}

.about-bio-button {
  width: fit-content;
  margin-top: auto;
}

/* Contact */
.contact {
  display: block;
  width: min(1180px, calc(100% - 32px));
  justify-content: initial;
  border-radius: var(--radius) !important;
}

.contact-wrapper {
  width: min(100%, 900px);
  text-align: center;
}

.contact .micro-hero {
  margin-bottom: clamp(28px, 4vw, 42px) !important;
}

.contact-block {
  width: 100%;
  margin: 0 auto 16px;
  padding: clamp(22px, 3vw, 30px);
}

.contact-question {
  margin-bottom: 22px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.contact-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

.contact-choice {
  width: auto;
  height: auto;
  min-height: 76px;
  border-radius: 18px;
  color: var(--blue);
  background: #fbfdff;
  box-shadow: none;
  border: 1px solid var(--border);
}

.contact-choice:hover,
.contact-choice.active,
.contact-choice.selected {
  border-color: var(--cta);
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.14);
  transform: translateY(-2px);
}

.contact-step-2,
.contact-final {
  margin-top: 16px;
}

.contact-slider {
  height: 10px;
  background: #edf2f8;
}

.contact-slider-progress {
  height: 10px;
  background: var(--cta);
}

.contact-slider::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid var(--cta);
}

.contact-send-button {
  width: fit-content;
}

/* Work spacing */
.work-section-title {
  margin-top: clamp(44px, 7vw, 84px);
}

.work-section-subtitle {
  margin-bottom: 24px;
}

.work-horizontal {
  width: min(1180px, calc(100% - 32px));
  height: auto;
  margin: 0 auto clamp(34px, 6vw, 76px);
  padding: 0 !important;
  overflow: visible;
}

.work-track {
  gap: 18px;
  height: auto;
  overflow-x: auto;
  padding: 8px 0 18px;
}

.work-slide {
  width: min(78vw, 720px);
  min-width: min(78vw, 720px);
  max-width: min(78vw, 720px);
  height: 520px;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: none !important;
}

.work-slide.in-view {
  transform: none !important;
  box-shadow: var(--shadow);
}

.work-slide-inner {
  width: 100%;
  padding: 0 clamp(22px, 4vw, 44px);
}

@media (max-width: 980px) {
  .value,
  .offer,
  .pulse,
  .orientami,
  .about-section,
  .contact {
    width: min(100% - 24px, 1180px);
    margin: 28px auto;
    padding: 42px 20px !important;
  }

  .value-grid,
  .about-wrapper {
    grid-template-columns: 1fr;
  }

  .about-wrapper {
    gap: 16px;
  }

  .pulse-results,
  .orientami-grid,
  .orientami-step2-options,
  .contact-choices,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .value-image {
    min-height: 360px;
  }

  .work-slide {
    width: min(88vw, 520px);
    min-width: min(88vw, 520px);
    max-width: min(88vw, 520px);
    height: 420px;
  }
}

@media (max-width: 620px) {
  .section-title,
  .section-subtitle {
    width: min(100% - 24px, 1180px);
    margin-left: auto;
    margin-right: auto;
  }

  .value,
  .offer,
  .pulse,
  .orientami,
  .about-section,
  .contact {
    padding: 34px 16px !important;
  }

  .value-title,
  .about-title,
  .micro-hero-title,
  .pulse-title,
  .orientami-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .about-how,
  .about-bio,
  .pulse-module,
  .orientami-step2-inner,
  .orientami-step3-box-container,
  .contact-block {
    padding: 20px !important;
    border-radius: 22px !important;
  }

  .about-step {
    flex-direction: column;
  }

  .about-photo {
    min-height: 260px;
  }

  .work-slide {
    height: 380px;
  }
}


/* =========================================================
   Typography tightening pass
   Smaller, cleaner text scale after removing repeated headings.
   ========================================================= */
.hero-title {
  max-width: 920px;
  font-size: clamp(2.75rem, 5.6vw, 5.25rem) !important;
  line-height: 1.08 !important;
}

.highlight {
  font-size: inherit !important;
}

.hero-subtitle {
  max-width: 760px;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  line-height: 1.65 !important;
}

.hero-path-card strong {
  font-size: 1.05rem !important;
}

.hero-path-card p {
  font-size: 0.92rem !important;
}

.value-title,
.section-title,
.micro-hero-title,
.about-title {
  font-size: clamp(2rem, 4.2vw, 4rem) !important;
  line-height: 1.08 !important;
}

.contact-question {
  font-size: clamp(1.45rem, 2.4vw, 2.05rem) !important;
}

.work-slide-title {
  font-size: clamp(1.8rem, 3vw, 2.7rem) !important;
}

.work-slide-desc {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem) !important;
}

.offer-item h3,
.value-proof-card h3,
.about-step-title,
.pulse-card-title,
.orientami-card-title {
  font-size: clamp(1.12rem, 1.7vw, 1.45rem) !important;
}

.offer-item p,
.value-proof-card p,
.about-step-text,
.about-bio-text,
.orientami-card-text,
.pulse-card-text,
.micro-hero-sub,
.section-subtitle,
.value-subtitle {
  font-size: clamp(0.92rem, 1.1vw, 1.03rem) !important;
}

.pulse-module,
.orientami-grid {
  margin-top: 0 !important;
}

.pulse-info-wrapper {
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 3.15rem) !important;
  }

  .value-title,
  .section-title,
  .micro-hero-title,
  .about-title {
    font-size: clamp(1.85rem, 8vw, 2.55rem) !important;
  }

  .hero-subtitle {
    font-size: 0.98rem !important;
  }
}

/* =========================================================
   About section refinement
   Removes the double lower background, reduces title scale,
   and shows the bio image fully without cropping.
   ========================================================= */
.about-section {
  background: transparent !important;
  box-shadow: none !important;
  padding-top: clamp(40px, 6vw, 72px) !important;
  padding-bottom: clamp(40px, 6vw, 72px) !important;
}

.about-wrapper {
  gap: clamp(16px, 2.4vw, 28px);
}

.about-how,
.about-bio {
  box-shadow: 0 16px 42px rgba(30, 58, 95, 0.08) !important;
}

.about-title {
  max-width: 620px;
  font-size: clamp(1.65rem, 2.7vw, 2.55rem) !important;
  line-height: 1.12 !important;
}

.about-subtitle {
  max-width: 640px;
  margin-bottom: 24px;
}

.about-photo {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background-color: #f3f8ff;
  background-image: url('../img/massp.png');
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@media (max-width: 980px) {
  .about-section {
    padding-top: 34px !important;
    padding-bottom: 34px !important;
  }

  .about-title {
    font-size: clamp(1.55rem, 6vw, 2.25rem) !important;
  }

  .about-photo {
    aspect-ratio: 16 / 11;
  }
}

/* Header remains dimensionally stable while scrolling. */
.navbar,
.navbar.navbar--scrolled,
.nav-logo img,
.navbar.navbar--scrolled .nav-logo img {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  transform: translateX(-50%) !important;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.nav-logo img,
.navbar.navbar--scrolled .nav-logo img {
  height: 38px !important;
  width: auto !important;
}

@media (max-width: 768px) {
  .navbar,
  .navbar.navbar--scrolled {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .nav-logo img,
  .navbar.navbar--scrolled .nav-logo img {
    height: 32px !important;
  }
}

/* Final header lock: no scroll effect and no child transform. */
.navbar,
.navbar.navbar--scrolled {
  position: fixed !important;
  top: 18px !important;
  left: 50% !important;
  width: min(1180px, calc(100% - 32px)) !important;
  padding: 10px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(248, 250, 252, 0.78) !important;
  box-shadow: none !important;
  transform: translateX(-50%) !important;
  transition: none !important;
}

.navbar .nav-container,
.navbar.navbar--scrolled .nav-container {
  transform: none !important;
  transition: none !important;
}

.nav-logo,
.nav-logo a,
.nav-logo img,
.navbar.navbar--scrolled .nav-logo,
.navbar.navbar--scrolled .nav-logo a,
.navbar.navbar--scrolled .nav-logo img {
  transform: none !important;
  transition: none !important;
}

.nav-logo img,
.navbar.navbar--scrolled .nav-logo img {
  height: 38px !important;
  width: auto !important;
  max-width: none !important;
}

.nav-links,
.nav-links a,
.navbar.navbar--scrolled .nav-links,
.navbar.navbar--scrolled .nav-links a {
  transform: none !important;
  transition: none !important;
}

@media (max-width: 768px) {
  .navbar,
  .navbar.navbar--scrolled {
    top: 10px !important;
    width: min(100% - 24px, 1180px) !important;
    padding: 8px 10px !important;
  }

  .nav-logo img,
  .navbar.navbar--scrolled .nav-logo img {
    height: 32px !important;
  }
}

/* Larger stable header logo. */
.nav-logo img,
.navbar.navbar--scrolled .nav-logo img {
  height: 50px !important;
}

@media (max-width: 768px) {
  .nav-logo img,
  .navbar.navbar--scrolled .nav-logo img {
    height: 40px !important;
  }
}

/* Mobile: flatter surfaces, no heavy shadows. */
@media (max-width: 768px) {
  .hero-path-card,
  .offer-item,
  .value-proof-card,
  .pulse-module,
  .pulse-card,
  .orientami-card,
  .orientami-option,
  .orientami-step2-inner,
  .orientami-step3-box-container,
  .about-how,
  .about-bio,
  .about-step,
  .contact-block,
  .blog-card-link,
  .blog-article-body-inner,
  .blog-article-sources .blog-article-body-inner,
  .blog-cta-inner,
  .blog-article-cta-inner,
  .value-image,
  .work-slide,
  .legal-container,
  .cookie-banner,
  .navbar,
  .navbar.navbar--scrolled {
    box-shadow: none !important;
  }

  .btn-primary,
  .blog-cta-button,
  .blog-article-cta-button,
  .contact-send-button,
  .about-bio-button,
  .value-cta,
  .work-slide-button,
  .pulse-button,
  .btn-link,
  .btn-secondary {
    box-shadow: none !important;
  }
}


/* =========================================================
   Editorial dark hero inspired by the provided reference,
   adapted to the Massimo Pellegrino / Nutrabrand palette.
   ========================================================= */
.hero {
  display: flex !important;
  align-items: center !important;
  min-height: 100svh !important;
  padding: 118px max(16px, calc((100vw - 1180px) / 2)) 64px !important;
  color: #eaf2ff;
  background:
    radial-gradient(circle at 50% 30%, rgba(58, 134, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 76%, rgba(47, 93, 138, 0.2), transparent 34%),
    linear-gradient(180deg, #081a30 0%, #0d2340 48%, #102a4a 100%) !important;
  overflow: hidden;
}

.hero::before,
.hero::after {
  display: none !important;
}

.hero-inner {
  width: min(1180px, 100%);
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  margin: 0 auto clamp(32px, 5vw, 62px);
  color: #bcd7ff !important;
  border-color: rgba(188, 215, 255, 0.22) !important;
  background: rgba(188, 215, 255, 0.08) !important;
}

.hero-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(118px, 16vw, 220px);
  height: clamp(58px, 8vw, 104px);
  margin: 0 auto clamp(10px, 2vw, 20px);
  border: 2px solid rgba(188, 215, 255, 0.55);
  border-radius: 999px;
  color: #cfe2ff;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.hero-title-display {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: none !important;
  margin: 0 auto;
  color: #cfe2ff !important;
  text-transform: uppercase;
  letter-spacing: -0.065em;
  line-height: 0.78 !important;
}

.hero-title-small {
  display: block;
  color: #8fbfff;
  font-size: clamp(1.3rem, 3.4vw, 3.2rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.hero-title-small:first-child {
  justify-self: start;
  margin-left: clamp(6px, 11vw, 160px);
  margin-bottom: -0.03em;
}

.hero-title-small-end {
  justify-self: end;
  margin-top: -0.04em;
  margin-right: clamp(6px, 10vw, 142px);
}

.hero-title-main {
  display: block;
  color: #d7ecff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", Inter, system-ui, sans-serif;
  font-size: clamp(4.35rem, 14.6vw, 14.3rem) !important;
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.78;
  transform: scaleX(0.86);
  transform-origin: center;
  text-wrap: balance;
}

.hero-title-main-alt {
  color: #9bc9ff;
  font-size: clamp(3.35rem, 11.3vw, 11.5rem) !important;
  font-style: italic;
  margin-top: -0.04em;
}

.hero-subtitle {
  max-width: 760px !important;
  margin: clamp(26px, 4vw, 46px) auto 0 !important;
  color: rgba(234, 242, 255, 0.76) !important;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem) !important;
  line-height: 1.68 !important;
}

.hero-paths {
  max-width: 980px;
  margin: clamp(26px, 4vw, 44px) auto 0;
}

.hero-path-card {
  text-align: left;
  border-color: rgba(188, 215, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #eaf2ff !important;
}

.hero-path-card strong {
  color: #ffffff;
}

.hero-path-card p {
  color: rgba(234, 242, 255, 0.72) !important;
}

.hero-actions {
  justify-content: center;
}

.hero .btn-link {
  color: #eaf2ff !important;
  border-color: rgba(188, 215, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto !important;
    padding: 104px 16px 54px !important;
  }

  .hero-kicker {
    margin-bottom: 28px;
  }

  .hero-symbol {
    width: 112px;
    height: 54px;
  }

  .hero-title-display {
    letter-spacing: -0.045em;
    line-height: 0.86 !important;
  }

  .hero-title-main {
    font-size: clamp(3rem, 18vw, 5.8rem) !important;
    transform: scaleX(0.9);
    line-height: 0.84;
  }

  .hero-title-main-alt {
    font-size: clamp(2.45rem, 14.5vw, 4.8rem) !important;
  }

  .hero-title-small {
    font-size: clamp(1rem, 6vw, 1.9rem);
  }

  .hero-title-small:first-child,
  .hero-title-small-end {
    justify-self: center;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-subtitle {
    margin-top: 24px !important;
  }
}


/* Hero text-only variant + support section. */
.hero-text-only {
  min-height: 88svh !important;
  padding-bottom: 92px !important;
}

.hero-text-only .hero-inner {
  display: grid;
  place-items: center;
}

.hero-text-only .hero-title-display {
  margin-top: 40px;
}

.hero-text-only .hero-title-main {
  font-size: clamp(4.2rem, 14vw, 14rem) !important;
}

.hero-text-only .hero-title-main-alt {
  font-size: clamp(3.6rem, 12vw, 12.2rem) !important;
}

.hero-support {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(28px, 5vw, 70px) auto;
  padding: clamp(28px, 5vw, 54px) !important;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.hero-support-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.hero-support .hero-kicker {
  margin: 0 0 18px;
}

.hero-support-title {
  width: auto !important;
  max-width: 620px;
  margin: 0 0 16px !important;
  color: var(--blue) !important;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 850;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-support-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

.hero-support .hero-subtitle {
  max-width: 620px !important;
  margin: 0 !important;
  color: var(--muted) !important;
}

.hero-support .hero-actions {
  justify-content: flex-start;
}

.hero-support .hero-paths {
  grid-template-columns: 1fr;
  margin: 0;
}

.hero-support .hero-path-card {
  color: var(--text) !important;
  border-color: rgba(30, 58, 95, 0.08) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.hero-support .hero-path-card strong {
  color: var(--blue);
}

.hero-support .hero-path-card p {
  color: var(--muted) !important;
}

.hero-support .btn-link {
  color: var(--blue) !important;
  border-color: rgba(30, 58, 95, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 900px) {
  .hero-support-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-text-only {
    min-height: 72svh !important;
    padding-top: 108px !important;
    padding-bottom: 58px !important;
  }

  .hero-text-only .hero-title-main {
    font-size: clamp(3.1rem, 18vw, 6.1rem) !important;
  }

  .hero-text-only .hero-title-main-alt {
    font-size: clamp(2.75rem, 15vw, 5.2rem) !important;
  }

  .hero-support {
    width: min(100% - 24px, 1180px);
    padding: 24px 18px !important;
  }
}

/* Final hero essentials: kicker + one CTA, mobile-safe header toggle. */
.hero-text-only .hero-inner {
  gap: clamp(18px, 3vw, 34px);
}

.hero-kicker-main {
  margin: 0 auto !important;
}

.hero-actions-main {
  margin-top: clamp(12px, 2vw, 24px) !important;
}

.hero-actions-main .btn-primary {
  min-width: 164px;
}

.nav-menu-toggle {
  border: 1px solid var(--border);
  appearance: none;
  -webkit-appearance: none;
}

@media (max-width: 768px) {
  .hero-text-only .hero-inner {
    gap: 18px;
  }

  .hero-kicker-main {
    max-width: 92%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
  }

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

/* =========================================================
   Lead form on personal website
   Same diagnostic structure as Nutrabrand, adapted to this site's palette.
   ========================================================= */
.value,
.about-section,
.lead-contact-section {
  border-color: rgba(58, 134, 255, 0.16) !important;
}

.lead-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(680px, 1.38fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.lead-contact-section .contact-intro {
  position: sticky;
  top: 110px;
  text-align: left;
}

.eyebrow,
.form-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid rgba(58, 134, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cta);
  background: rgba(58, 134, 255, 0.08);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-contact-section .contact-intro h2 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.lead-contact-section .contact-intro p {
  max-width: 520px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.6fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: var(--radius);
  background: var(--card);
}

.form-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(28px, 4vw, 40px);
  color: var(--card);
  background: linear-gradient(145deg, var(--blue), var(--blue-2));
}

.form-aside h3 {
  max-width: 330px;
  margin: 0;
  color: var(--card);
  font-size: clamp(1.6rem, 2.2vw, 2.15rem);
  line-height: 1.08;
}

.form-aside p,
.form-aside li,
.form-aside .form-kicker {
  color: rgba(255, 255, 255, 0.78);
}

.form-aside .form-kicker {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.form-aside p {
  margin: 18px 0 0;
  line-height: 1.65;
}

.form-aside ul {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.form-aside li {
  position: relative;
  padding-left: 22px;
}

.form-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cta);
}

.lead-form {
  min-width: 0;
  padding: clamp(24px, 4vw, 34px);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.step-title {
  color: var(--blue);
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.progress-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 0.86rem;
  font-weight: 850;
}

.progress-steps span.is-active {
  color: var(--card);
  border-color: var(--cta);
  background: var(--cta);
}

.progress-track {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f8;
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: var(--cta);
  transition: width 220ms ease;
}

.form-step {
  display: none;
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.form-step.is-active {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-field {
  grid-column: 1 / -1;
}

.form-step-note {
  margin: 0;
  border: 1px solid rgba(58, 134, 255, 0.16);
  border-radius: 16px;
  padding: 13px 14px;
  color: var(--blue);
  background: rgba(58, 134, 255, 0.07);
  font-size: 0.92rem;
  font-weight: 850;
}

legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lead-form label,
.lead-form .field-group {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--text);
  background: #fbfdff;
  outline: none;
}

.lead-form textarea {
  min-height: 142px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--cta);
  background: var(--card);
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.14) !important;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-row label {
  display: flex;
  flex: 1;
  min-width: 120px;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  background: #fbfdff;
}

.choice-row input,
.privacy-field input {
  width: auto;
  min-height: auto;
  accent-color: var(--cta);
}

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.privacy-field {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(58, 134, 255, 0.16);
  border-radius: 16px;
  padding: 14px 15px;
  color: var(--muted) !important;
  background: rgba(58, 134, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.45;
}

.privacy-field a {
  color: var(--blue);
  font-weight: 850;
}

.form-message {
  display: none;
}

.submit-note {
  display: none;
  margin: 18px 0 0;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 850;
}

.lead-form.is-last-step .submit-note {
  display: block;
}

.form-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.form-buttons .btn-primary,
.form-buttons .btn-link {
  flex: 1;
}

.form-back,
.form-submit {
  display: none;
}

@media (max-width: 1100px) {
  .lead-contact-section {
    grid-template-columns: 1fr;
  }

  .lead-contact-section .contact-intro {
    position: static;
  }

  .form-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-step.is-active,
  .checkbox-row {
    grid-template-columns: 1fr;
  }

  .form-buttons {
    flex-direction: column;
  }
}

/* =========================================================
   Conversion and section emphasis pass
   Moves offer heading inside its box, gives key sections a clearer
   rhythm, and keeps the contact form always reachable.
   ========================================================= */
.offer-heading-box {
  max-width: 880px;
  margin: 0 0 clamp(28px, 5vw, 48px);
}

.offer-heading-box .section-title,
.offer-heading-box .section-subtitle {
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

.offer-heading-box .section-title {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
}

.offer-heading-box .section-subtitle {
  max-width: 760px;
  margin-bottom: 18px !important;
}

.offer-heading-box .offer-tagline {
  max-width: 680px;
  margin: 0;
  text-align: left;
}

.value {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(232, 242, 255, 0.86)) !important;
}

.offer {
  background:
    linear-gradient(135deg, rgba(241, 247, 255, 0.96), rgba(255, 255, 255, 0.74)) !important;
}

.about-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(238, 245, 255, 0.68)) !important;
}

.lead-contact-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 134, 255, 0.14), transparent 32%),
    linear-gradient(135deg, rgba(232, 242, 255, 0.96), rgba(255, 255, 255, 0.82)) !important;
}

.floating-contact-cta {
  position: fixed;
  right: 96px;
  bottom: 32px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #4778ff, #1f58c9);
  box-shadow: 0 18px 38px rgba(58, 100, 220, 0.24);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.floating-contact-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .offer-heading-box .section-title,
  .offer-heading-box .section-subtitle,
  .offer-heading-box .offer-tagline {
    text-align: left !important;
  }

  .floating-contact-cta {
    left: 12px;
    right: 12px;
    bottom: 76px;
    width: auto;
    min-height: 50px;
    box-shadow: none;
  }

  body {
    padding-bottom: 132px;
  }
}


/* =========================================================
   Background rhythm aligned with Nutrabrand
   Alterna pannelli chiari e blocchi blu per dare profondita allo scroll.
   ========================================================= */
body:not(.legal-page) {
  background:
    radial-gradient(circle at 18% 12%, rgba(238, 245, 255, 0.88), transparent 34%),
    linear-gradient(135deg, var(--page-bg-a), var(--page-bg-b)) !important;
  background-attachment: fixed;
  transition: background 260ms linear;
}

.hero-support {
  background:
    radial-gradient(circle at 82% 18%, rgba(58, 134, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 255, 0.9)) !important;
  box-shadow: 0 24px 70px rgba(30, 58, 95, 0.1) !important;
}

.value {
  background:
    radial-gradient(circle at 82% 20%, rgba(58, 134, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #eef5ff) !important;
  box-shadow: 0 24px 70px rgba(30, 58, 95, 0.1) !important;
}

.offer {
  color: var(--card);
  background:
    radial-gradient(circle at 20% 18%, rgba(58, 134, 255, 0.36), transparent 30%),
    linear-gradient(135deg, var(--blue), var(--blue-2)) !important;
  box-shadow: 0 30px 90px rgba(30, 58, 95, 0.18) !important;
}

.offer .section-title,
.offer .section-subtitle,
.offer .offer-tagline,
.offer .offer-footer {
  color: var(--card) !important;
}

.offer .section-subtitle,
.offer .offer-tagline,
.offer .offer-footer {
  color: rgba(255, 255, 255, 0.78) !important;
}

.offer .offer-item {
  background: rgba(255, 255, 255, 0.96) !important;
}

.pulse {
  background:
    radial-gradient(circle at 12% 18%, rgba(58, 134, 255, 0.14), transparent 32%),
    linear-gradient(135deg, #f7f9fc, #eef5ff) !important;
  box-shadow: 0 24px 70px rgba(30, 58, 95, 0.08) !important;
}

.work-section-title,
.work-section-subtitle {
  position: relative;
  z-index: 1;
}

.work-section-title {
  margin-top: clamp(64px, 8vw, 112px) !important;
}

.work-horizontal {
  background: transparent !important;
}

.orientami {
  color: var(--card);
  background:
    linear-gradient(135deg, #162b47 0%, var(--blue) 48%, var(--blue-2) 100%) !important;
  box-shadow: 0 30px 90px rgba(30, 58, 95, 0.18) !important;
}

.orientami .micro-hero-label,
.orientami .micro-hero-title,
.orientami .micro-hero-sub {
  color: var(--card) !important;
}

.orientami .micro-hero-sub {
  color: rgba(255, 255, 255, 0.78) !important;
}

.orientami .orientami-card,
.orientami .orientami-option,
.orientami .orientami-step2-inner,
.orientami .orientami-step3-box-container {
  background: rgba(255, 255, 255, 0.96) !important;
}

.about-section {
  background: transparent !important;
  box-shadow: none !important;
}

.lead-contact-section {
  background:
    radial-gradient(circle at 18% 18%, rgba(58, 134, 255, 0.16), transparent 26%),
    linear-gradient(135deg, var(--blue), var(--blue-2)) !important;
  box-shadow: 0 30px 90px rgba(30, 58, 95, 0.18) !important;
}

.lead-contact-section .contact-intro,
.lead-contact-section .contact-intro h2,
.lead-contact-section .contact-intro p,
.lead-contact-section .contact-intro strong,
.lead-contact-section .eyebrow {
  color: var(--card) !important;
}

.lead-contact-section .contact-intro p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.lead-contact-section .eyebrow {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.lead-contact-section .form-shell {
  background: rgba(255, 255, 255, 0.96) !important;
}

@media (max-width: 768px) {
  .hero-support,
  .value,
  .offer,
  .pulse,
  .orientami,
  .about-section,
  .lead-contact-section {
    box-shadow: none !important;
  }

  body:not(.legal-page) {
    background-attachment: scroll;
  }
}


/* =========================================================
   Work funnel section
   Trasforma i progetti in scenari problema/soluzione leggibili.
   ========================================================= */
.work-section-title {
  max-width: 980px;
}

.work-section-subtitle {
  max-width: 860px;
}

.work-track {
  scroll-padding-left: 0;
}

.work-slide::after {
  background:
    linear-gradient(
      to top,
      rgba(15, 23, 42, 0.94) 0%,
      rgba(15, 23, 42, 0.88) 38%,
      rgba(15, 23, 42, 0.58) 68%,
      rgba(15, 23, 42, 0.22) 100%
    ) !important;
}

.work-slide-inner {
  max-width: 800px;
}

.work-slide-title {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.85rem, 3vw, 3rem) !important;
  font-weight: 780 !important;
}

.work-slide-desc {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1rem, 1.28vw, 1.16rem) !important;
  line-height: 1.62 !important;
}

.work-slide-desc strong {
  color: #ffffff;
  font-weight: 850;
}

.work-slide-button {
  border-radius: 999px !important;
  padding: 14px 24px !important;
  font-weight: 800 !important;
}

.work-final-cta {
  padding: 70px 0 110px;
  text-align: center;
}

.work-final-cta .container {
  max-width: 900px;
  padding: 34px;
  border-radius: 28px;
  background: #111827;
  color: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.work-final-cta p {
  margin: 0 auto 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.55;
}

.work-final-cta .btn-primary {
  margin-right: 0;
}

@media (max-width: 980px) {
  .work-slide-title {
    font-size: clamp(1.55rem, 6vw, 2.45rem) !important;
  }

  .work-slide-desc {
    font-size: 0.98rem !important;
  }
}

@media (max-width: 768px) {
  .work-final-cta {
    padding: 50px 0 80px;
  }

  .work-final-cta .container {
    width: min(100% - 24px, 900px);
    padding: 26px 22px;
    border-radius: 24px;
  }

  .work-final-cta .btn-primary {
    width: 100%;
    text-align: center;
  }

  .work-slide {
    height: 500px;
  }

  .work-slide-inner {
    padding: 0 20px !important;
  }
}


/* =========================================================
   Work cases grid
   Sezione statica ad alto impatto: niente immagini, niente slider.
   ========================================================= */
.work-cases-section {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(54px, 8vw, 110px) auto;
  border-radius: var(--radius);
  padding: clamp(58px, 7vw, 92px) clamp(20px, 4vw, 44px) !important;
  background:
    radial-gradient(circle at 82% 12%, rgba(58, 134, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 245, 255, 0.78)) !important;
  box-shadow: none !important;
}

.work-cases-container {
  width: 100%;
}

.work-cases-heading {
  max-width: 920px;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.work-cases-section .work-section-title,
.work-cases-section .work-section-subtitle {
  width: auto !important;
  max-width: 860px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left;
}

.work-cases-section .work-section-title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.work-cases-section .work-section-subtitle {
  margin-bottom: 0 !important;
}

.work-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-case-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(30, 58, 95, 0.07);
}

.work-case-featured {
  border-color: rgba(58, 134, 255, 0.28);
  background:
    radial-gradient(circle at 86% 16%, rgba(58, 134, 255, 0.16), transparent 34%),
    linear-gradient(135deg, #ffffff, #eef5ff);
  box-shadow: 0 24px 70px rgba(30, 58, 95, 0.12);
}

.work-case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.work-case-number {
  color: rgba(30, 58, 95, 0.34);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.work-case-category {
  border: 1px solid rgba(58, 134, 255, 0.16);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--cta);
  background: rgba(58, 134, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-case-card h3 {
  margin: 0 0 24px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.work-case-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 12px;
  margin-bottom: 26px;
}

.work-case-state {
  border-radius: 20px;
  padding: 18px;
}

.work-case-state span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-case-state p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.52;
}

.work-case-before {
  border: 1px solid rgba(107, 114, 128, 0.16);
  background: #f3f5f8;
}

.work-case-before span {
  color: #6b7280;
}

.work-case-before p {
  color: #4b5563;
}

.work-case-after {
  border: 1px solid rgba(58, 134, 255, 0.22);
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.1), rgba(238, 245, 255, 0.98));
}

.work-case-after span {
  color: var(--cta);
}

.work-case-after p {
  color: var(--blue);
  font-weight: 750;
}

.work-case-cta {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  padding: 13px 20px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #4778ff, #1f58c9);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(58, 100, 220, 0.2);
}

.work-case-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.work-cases-section .work-final-cta {
  margin-top: clamp(28px, 5vw, 52px);
  padding: 0;
  text-align: center;
}

.work-cases-section .work-final-cta {
  border-radius: 28px;
  padding: 34px;
  background: #111827;
  color: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.work-cases-section .work-final-cta p {
  margin: 0 auto 24px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
  line-height: 1.55;
}

.work-cases-section .work-final-cta .btn-primary {
  margin-right: 0;
}

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

@media (max-width: 768px) {
  .work-cases-section {
    width: min(100% - 24px, 1180px);
    margin: 34px auto;
    padding: 42px 18px !important;
    box-shadow: none !important;
  }

  .work-case-card {
    border-radius: 24px;
    padding: 22px;
    box-shadow: none;
  }

  .work-case-compare {
    grid-template-columns: 1fr;
  }

  .work-case-cta,
  .work-cases-section .work-final-cta .btn-primary {
    width: 100%;
    text-align: center;
  }

  .work-cases-section .work-final-cta {
    padding: 26px 22px;
    border-radius: 24px;
  }
}


/* Blog article cleanup: testo e fonti senza sfondo/card. */
.blog-article-body-inner,
.blog-article-sources .blog-article-body-inner {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.blog-article-sources {
  background: transparent !important;
}

.blog-article-body .data-highlight {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
}


/* Mobile refinement: CTA fisso più discreto e hero personale a piena altezza. */
@media (max-width: 768px) {
  .hero-text-only {
    min-height: 100svh !important;
  }

  .floating-contact-cta {
    left: 12px;
    right: auto;
    bottom: 14px;
    width: auto;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.92;
    box-shadow: none;
  }

  body {
    padding-bottom: 74px;
  }
}


/* Blog article lists: allineamento coerente con la colonna di testo. */
.blog-article-body-inner ul,
.blog-article-body-inner ol {
  max-width: 760px;
  margin: 0 0 1.6rem;
  padding-left: 1.35rem;
  list-style-position: outside;
}

.blog-article-body-inner li {
  margin: 0 0 0.62rem;
  padding-left: 0.18rem;
  color: var(--muted);
  line-height: 1.7;
}

.blog-article-body-inner li::marker {
  color: var(--cta);
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .blog-article-body-inner ul,
  .blog-article-body-inner ol {
    padding-left: 1.1rem;
  }

  .blog-article-body-inner li {
    padding-left: 0.08rem;
  }
}


/* =========================================================
   Business-first system hero
   Hero riposizionata su diagnosi, sistema e crescita operativa.
   ========================================================= */
.hero-system {
  display: flex !important;
  align-items: center !important;
  min-height: 100svh !important;
  padding: 132px max(16px, calc((100vw - 1180px) / 2)) 82px !important;
  color: #eaf2ff;
  background:
    radial-gradient(circle at 78% 30%, rgba(58, 134, 255, 0.22), transparent 32%),
    radial-gradient(circle at 12% 82%, rgba(188, 215, 255, 0.11), transparent 30%),
    linear-gradient(180deg, #081a30 0%, #0d2340 48%, #102a4a 100%) !important;
  overflow: hidden;
}

.hero-system-inner {
  display: grid;
  width: min(1180px, 100%);
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: center;
  margin: 0 auto;
  text-align: left;
}

.hero-system-copy {
  max-width: 760px;
}

.hero-system .hero-kicker-main {
  margin: 0 0 clamp(24px, 4vw, 40px) !important;
}

.hero-system-title {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 6.3vw, 6.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-system-title span {
  display: block;
  margin-top: 0.08em;
  color: #9bc9ff;
}

.hero-system-subtitle {
  max-width: 720px;
  margin: clamp(24px, 3.4vw, 36px) 0 0;
  color: rgba(234, 242, 255, 0.78);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.72;
}

.hero-system .hero-actions-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: clamp(28px, 4vw, 42px) !important;
}

.hero-system .btn-primary,
.hero-system .btn-link {
  min-height: 52px;
}

.hero-system .btn-link {
  color: #eaf2ff !important;
  border-color: rgba(188, 215, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.hero-system-microcopy {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(234, 242, 255, 0.58);
  font-size: 0.95rem;
  line-height: 1.58;
}

.hero-system-visual {
  position: relative;
  min-height: clamp(360px, 42vw, 520px);
}

.system-map {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  border: 1px solid rgba(188, 215, 255, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(188, 215, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(188, 215, 255, 0.07) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 42px 42px;
  box-shadow: inset 0 0 80px rgba(58, 134, 255, 0.08);
}

.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(188, 215, 255, 0.14);
  border-radius: 50%;
}

.system-map::after {
  inset: 33%;
  border-color: rgba(58, 134, 255, 0.24);
}

.system-node,
.system-core {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #eaf2ff;
  white-space: nowrap;
}

.system-node {
  min-height: 40px;
  border: 1px solid rgba(188, 215, 255, 0.18);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
}

.system-core {
  top: 50%;
  left: 50%;
  width: 132px;
  height: 132px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(155, 201, 255, 0.42);
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.9), rgba(31, 88, 201, 0.9));
  box-shadow: 0 28px 70px rgba(58, 134, 255, 0.24);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node-site { top: 15%; left: 13%; }
.node-content { top: 22%; right: 10%; }
.node-funnel { right: 8%; bottom: 24%; }
.node-tools { bottom: 13%; left: 18%; }
.node-process { top: 48%; left: 4%; }

.system-node::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #9bc9ff;
  box-shadow: 0 0 18px rgba(155, 201, 255, 0.9);
}

@media (max-width: 980px) {
  .hero-system-inner {
    grid-template-columns: 1fr;
  }

  .hero-system-visual {
    min-height: 320px;
  }

  .system-map {
    margin-right: auto;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-system {
    min-height: 100svh !important;
    padding: 106px 16px 48px !important;
  }

  .hero-system-inner {
    gap: 28px;
  }

  .hero-system-title {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
    line-height: 1.02;
  }

  .hero-system-subtitle {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-system .hero-actions-main,
  .hero-system .hero-actions-main .btn-primary,
  .hero-system .hero-actions-main .btn-link {
    width: 100%;
  }

  .hero-system-visual {
    min-height: 230px;
  }

  .system-map {
    width: min(100%, 360px);
    border-radius: 26px;
    background-size: 34px 34px;
  }

  .system-node {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .system-core {
    width: 96px;
    height: 96px;
    font-size: 0.72rem;
  }
}


/* Hero refinement: proporzioni più premium e CTA dentro il viewport. */
@media (min-width: 981px) {
  .hero-system {
    align-items: center !important;
    padding-top: clamp(104px, 11vh, 124px) !important;
    padding-bottom: clamp(54px, 7vh, 72px) !important;
  }

  .hero-system-inner {
    grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.74fr);
    gap: clamp(42px, 5.8vw, 76px);
  }

  .hero-system-title {
    max-width: 720px;
    font-size: clamp(3.25rem, 5.15vw, 5.6rem);
    line-height: 1.01;
  }

  .hero-system-subtitle {
    max-width: 660px;
    margin-top: clamp(20px, 2.8vw, 30px);
    font-size: clamp(1rem, 1.12vw, 1.14rem);
    line-height: 1.64;
  }

  .hero-system .hero-actions-main {
    margin-top: clamp(22px, 3vw, 32px) !important;
  }

  .hero-system-microcopy {
    margin-top: 12px;
  }

  .hero-system-visual {
    min-height: 0;
    align-self: center;
  }

  .system-map {
    width: min(100%, 430px);
    margin-top: 18px;
  }

  .system-core {
    width: 112px;
    height: 112px;
    font-size: 0.78rem;
  }

  .system-node {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.74rem;
  }

  .floating-contact-cta {
    opacity: 0.78;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero-system-title {
    font-size: clamp(3rem, 4.55vw, 4.9rem);
  }

  .hero-system-subtitle {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero-system .hero-kicker-main {
    margin-bottom: 22px !important;
  }

  .system-map {
    width: min(100%, 360px);
  }

  .hero-system .btn-primary,
  .hero-system .btn-link {
    min-height: 48px;
  }
}


/* Hero recomposition: headline full-width, contenuto e visual separati. */
.hero-system {
  align-items: center !important;
  padding-top: clamp(118px, 13vh, 148px) !important;
  padding-bottom: clamp(72px, 9vh, 104px) !important;
}

.hero-system-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  grid-template-areas:
    "heading heading"
    "copy visual";
  gap: clamp(26px, 4.2vw, 54px) clamp(46px, 7vw, 96px);
  align-items: center;
}

.hero-system-heading {
  grid-area: heading;
  max-width: 1040px;
}

.hero-system-copy {
  grid-area: copy;
  max-width: 660px;
}

.hero-system-visual {
  grid-area: visual;
  min-height: 0;
  align-self: start;
}

.hero-system-title {
  max-width: 1040px;
  font-size: clamp(3.4rem, 5.45vw, 6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-system-title span {
  margin-top: 0.02em;
}

.hero-system-subtitle {
  max-width: 650px;
  margin-top: 0;
  font-size: clamp(1rem, 1.08vw, 1.13rem);
  line-height: 1.64;
}

.hero-system .hero-actions-main {
  margin-top: clamp(22px, 3vw, 30px) !important;
}

.system-map {
  width: min(100%, 380px);
  margin-top: 0;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero-system {
    padding-top: 104px !important;
    padding-bottom: 54px !important;
  }

  .hero-system-inner {
    gap: 18px clamp(42px, 6vw, 76px);
  }

  .hero-system-title {
    max-width: 980px;
    font-size: clamp(3rem, 4.75vw, 5.15rem);
  }

  .hero-system-subtitle {
    max-width: 620px;
    line-height: 1.56;
  }

  .system-map {
    width: min(100%, 330px);
  }
}

@media (max-width: 980px) {
  .hero-system-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "copy"
      "visual";
  }

  .hero-system-heading,
  .hero-system-copy {
    max-width: 760px;
  }

  .system-map {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .hero-system {
    padding-top: 108px !important;
    padding-bottom: 56px !important;
  }

  .hero-system-inner {
    gap: 24px;
  }

  .hero-system-title {
    font-size: clamp(2.55rem, 11vw, 4rem);
    line-height: 1.02;
  }

  .hero-system-visual {
    min-height: 0;
  }

  .system-map {
    width: min(100%, 330px);
  }
}


/* Hero headline final scale adjustment. */
.hero-system-title {
  font-size: clamp(3rem, 4.75vw, 5.25rem);
  line-height: 1.02;
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero-system-title {
    font-size: clamp(2.75rem, 4.15vw, 4.55rem);
  }
}

@media (max-width: 768px) {
  .hero-system-title {
    font-size: clamp(2.25rem, 9.8vw, 3.55rem);
  }
}


/* Hero headline full-width adjustment. */
.hero-system-heading,
.hero-system-title {
  width: 100%;
  max-width: none;
}

.hero-system-title {
  text-wrap: balance;
}


/* =========================================================
   System diagnosis section
   Diagnosi del caos digitale moderno, non sezione servizi.
   ========================================================= */
.system-diagnosis {
  width: min(1180px, calc(100% - 32px));
  margin: clamp(42px, 7vw, 96px) auto;
  border-radius: var(--radius);
  padding: clamp(58px, 7vw, 94px) clamp(22px, 5vw, 64px) !important;
  background:
    radial-gradient(circle at 86% 14%, rgba(58, 134, 255, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.84)) !important;
  box-shadow: 0 24px 70px rgba(30, 58, 95, 0.08) !important;
}

.system-diagnosis-container {
  width: 100%;
}

.system-diagnosis-header {
  max-width: 960px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.system-diagnosis-title {
  max-width: 900px;
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.55rem, 5vw, 5rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: 0;
}

.system-diagnosis-title span {
  display: block;
  color: var(--cta);
}

.system-diagnosis-intro {
  max-width: 860px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.35vw, 1.22rem);
  line-height: 1.72;
}

.system-diagnosis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.diagnosis-block {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.86);
}

.diagnosis-block-featured {
  border-color: rgba(58, 134, 255, 0.24);
  background:
    radial-gradient(circle at 92% 16%, rgba(58, 134, 255, 0.13), transparent 30%),
    rgba(255, 255, 255, 0.94);
}

.diagnosis-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--cta);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.diagnosis-block h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.diagnosis-block p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.diagnosis-block strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.48;
  font-weight: 800;
}

.system-diagnosis-close {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin-top: clamp(22px, 4vw, 42px);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 38px);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.diagnosis-flow {
  display: grid;
  gap: 10px;
}

.diagnosis-flow span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 850;
}

.diagnosis-flow span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9bc9ff;
}

.system-diagnosis-close p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  line-height: 1.68;
}

.system-diagnosis-close .btn-primary {
  width: fit-content;
  margin-top: 22px;
  background: #ffffff !important;
  color: var(--blue) !important;
  box-shadow: none;
}

@media (max-width: 900px) {
  .system-diagnosis-grid,
  .system-diagnosis-close {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .system-diagnosis {
    width: min(100% - 24px, 1180px);
    margin: 28px auto;
    padding: 42px 18px !important;
    box-shadow: none !important;
  }

  .system-diagnosis-title {
    font-size: clamp(2.15rem, 10vw, 3.2rem);
  }

  .diagnosis-block,
  .system-diagnosis-close {
    border-radius: 22px;
  }

  .system-diagnosis-close .btn-primary {
    width: 100%;
  }
}


/* Homepage strategic refactor: sezioni da Aree di lavoro al footer. */
.system-areas {
  padding: 120px 0 110px;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(239, 246, 255, 0.76));
}

.system-areas-container,
.work-cases-container {
  max-width: 1180px;
}

.system-areas-heading {
  max-width: 850px;
  margin-bottom: 42px;
}

.system-areas .section-title,
.system-cases-section .section-title {
  margin-top: 10px;
  color: #0f172a;
  text-align: left;
}

.system-areas .section-subtitle,
.system-cases-section .section-subtitle {
  max-width: 780px;
  margin: 16px 0 0;
  text-align: left;
  color: #475569;
}

.system-map-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
}

.system-map-panel span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 18px;
  background: rgba(239, 246, 255, 0.92);
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.system-map-panel span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -11px;
  width: 12px;
  height: 1px;
  background: rgba(37, 99, 235, 0.34);
}

.system-areas-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.system-area-card {
  grid-column: span 3;
  min-height: 245px;
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.08);
}

.system-area-featured {
  grid-column: span 6;
  display: grid;
  grid-template-columns: auto 0.9fr 1.1fr;
  align-items: center;
  gap: 22px;
  min-height: 170px;
  background: #10233d;
  color: #fff;
}

.system-area-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-weight: 900;
  font-size: 0.78rem;
}

.system-area-featured .system-area-number {
  margin-bottom: 0;
  background: rgba(147, 197, 253, 0.18);
  color: #bfdbfe;
}

.system-area-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.12;
}

.system-area-featured h3,
.system-area-featured p {
  color: #fff;
}

.system-area-card p {
  margin: 0;
  color: #526173;
  font-size: 1rem;
  line-height: 1.65;
}

.system-area-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.system-areas-close {
  max-width: 790px;
  margin: 34px 0 0;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.55;
}

.system-cases-section {
  background: transparent !important;
  padding: 120px 0 90px;
}

.work-case-context,
.work-case-impact {
  margin: 0 0 18px;
  color: #536170;
  font-size: 0.98rem;
  line-height: 1.55;
}

.work-case-impact {
  margin-top: 20px;
  margin-bottom: 24px;
  color: #27364a;
}

.work-case-impact strong {
  color: #0f172a;
}

.work-case-state span {
  letter-spacing: 0.08em;
}

.work-case-after {
  border-color: rgba(37, 99, 235, 0.22) !important;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(219, 234, 254, 0.72)) !important;
}

.work-case-after p {
  color: #17345f !important;
  font-weight: 650;
}

.work-case-before {
  background: #f6f7f9 !important;
}

.system-method-section {
  padding: 115px 0;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.62), rgba(248, 250, 252, 0.94));
}

.system-method-section .about-wrapper {
  align-items: stretch;
}

.system-method-section .about-how,
.system-method-section .about-bio {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.system-method-section .about-title,
.system-method-section .about-bio-title {
  color: #0f172a;
}

.system-method-section .about-step {
  align-items: flex-start;
  border-color: rgba(15, 23, 42, 0.07);
  background: rgba(248, 250, 252, 0.92);
}

.system-method-section .about-step-number {
  flex: 0 0 auto;
  background: #2563eb;
  color: #fff;
}

.lead-contact-section .contact-intro {
  max-width: 860px;
}

.lead-contact-section .contact-intro h2 {
  max-width: 800px;
}

.site-footer-premium {
  padding: 60px 0 44px;
  background: #071827 !important;
}

.site-footer-premium .footer-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 28px;
}

.footer-brand-block strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 1.08rem;
}

.footer-brand-block p,
.site-footer-premium .footer-text,
.footer-links-block span {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.footer-links-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer-premium .footer-text {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-premium .footer-link,
.site-footer-premium .footer-cookie-btn {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 700;
}

.site-footer-premium .footer-cookie-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (max-width: 900px) {
  .system-map-panel,
  .system-areas-grid,
  .system-area-featured,
  .site-footer-premium .footer-container {
    grid-template-columns: 1fr;
  }

  .system-map-panel span:not(:last-child)::after {
    display: none;
  }

  .system-area-card,
  .system-area-featured {
    grid-column: auto;
  }

  .footer-links-block {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .system-areas,
  .system-cases-section,
  .system-method-section {
    padding: 72px 0;
  }

  .system-area-card {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
    box-shadow: none;
  }

  .system-area-number {
    margin-bottom: 18px;
  }

  .system-map-panel {
    padding: 10px;
    border-radius: 22px;
  }

  .system-map-panel span {
    min-height: 48px;
  }

  .work-case-context,
  .work-case-impact {
    font-size: 0.94rem;
  }

  .site-footer-premium {
    padding: 46px 0 36px;
  }
}


/* Hero conversion additions: ICP subtitle, low-friction Calendly CTA, social proof. */
.hero-icp-subtitle {
  max-width: 980px;
  margin: clamp(16px, 2vw, 24px) 0 0;
  color: rgba(219, 234, 254, 0.82);
  font-size: clamp(1.05rem, 1.55vw, 1.42rem);
  line-height: 1.45;
  font-weight: 650;
}

.hero-social-proof {
  max-width: 820px;
  margin: 4px 0 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 700;
}

.hero-system .btn-calendly {
  border: 1px solid rgba(147, 197, 253, 0.58) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}

.hero-system .btn-calendly:hover {
  border-color: rgba(191, 219, 254, 0.88) !important;
  background: rgba(255, 255, 255, 0.09) !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .hero-icp-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-social-proof {
    font-size: 0.82rem;
  }

  .hero-system .btn-calendly {
    width: 100%;
    min-height: 48px;
    text-align: center;
  }
}


/* Footer reorganization: blocchi chiari e gerarchia pulita. */
.site-footer-premium .footer-premium-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.site-footer-premium .footer-brand-block {
  max-width: 560px;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  gap: clamp(24px, 4vw, 52px);
  justify-self: end;
  width: min(100%, 620px);
}

.footer-info-column {
  display: grid;
  gap: 10px;
  align-content: start;
  color: rgba(255, 255, 255, 0.64);
}

.footer-column-label {
  margin-bottom: 4px;
  color: rgba(147, 197, 253, 0.88) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-info-column .footer-link,
.footer-info-column span:not(.footer-column-label),
.footer-info-column .footer-cookie-btn {
  justify-self: start;
  text-align: left;
  line-height: 1.35;
}

.footer-info-column .footer-cookie-btn {
  margin-top: 2px;
}

.footer-bottom-row {
  grid-column: 1 / -1;
  margin-top: 18px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer-premium .footer-bottom-row .footer-text {
  padding-top: 0;
  border-top: 0;
  text-align: center;
}

.site-footer-premium .footer-links-block {
  display: none;
}

@media (max-width: 900px) {
  .site-footer-premium .footer-premium-grid,
  .footer-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-info-grid {
    justify-self: stretch;
    gap: 24px;
  }

  .site-footer-premium .footer-bottom-row .footer-text {
    text-align: left;
  }
}


/* Footer alignment fix: griglia a colonne con start coerenti. */
.site-footer-premium .footer-premium-grid {
  grid-template-columns: minmax(360px, 1.35fr) minmax(260px, 0.9fr) minmax(210px, 0.65fr) !important;
  column-gap: clamp(48px, 7vw, 120px) !important;
  row-gap: 34px;
  align-items: start;
}

.site-footer-premium .footer-brand-block {
  max-width: 640px;
  justify-self: start;
}

.footer-info-grid {
  display: contents !important;
}

.footer-info-column {
  justify-self: start;
  width: 100%;
  min-width: 0;
}

.footer-info-column .footer-link,
.footer-info-column span:not(.footer-column-label),
.footer-info-column .footer-cookie-btn {
  justify-self: start;
  text-align: left;
}

.footer-bottom-row {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 980px) {
  .site-footer-premium .footer-premium-grid {
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
  }

  .footer-info-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
  }
}


/* Editorial footer inspired layout: columns, large wordmark, clean legal bar. */
.footer-editorial.site-footer-premium {
  padding: 0 !important;
  background: #071827 !important;
  overflow: hidden;
}

.footer-editorial-inner {
  padding: clamp(64px, 8vw, 110px) 0 0;
}

.footer-editorial-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.65fr) minmax(150px, 0.75fr) minmax(250px, 1fr) minmax(360px, 1.45fr);
  gap: clamp(34px, 5vw, 86px);
  align-items: start;
}

.footer-editorial-column,
.footer-editorial-about {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-editorial .footer-column-label {
  margin-bottom: 10px;
  color: #dbeafe !important;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-editorial .footer-link,
.footer-editorial-column span:not(.footer-column-label),
.footer-editorial .footer-cookie-btn {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  font-weight: 650 !important;
  line-height: 1.35;
  text-decoration: none;
}

.footer-editorial .footer-link:hover,
.footer-editorial .footer-cookie-btn:hover {
  color: #ffffff !important;
}

.footer-editorial .footer-cookie-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-editorial-about p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.05rem, 1.35vw, 1.34rem);
  line-height: 1.48;
  font-weight: 500;
}

.footer-wordmark {
  margin-top: clamp(58px, 8vw, 110px);
  margin-left: -0.08em;
  margin-bottom: -0.16em;
  color: #ffffff;
  font-size: clamp(4.4rem, 14vw, 16rem);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: -0.055em;
  white-space: nowrap;
  text-transform: none;
}

.footer-legal-bar {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  color: #0f172a;
}

.footer-legal-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-legal-inner p {
  margin: 0;
  color: #475569;
  font-size: 0.96rem;
  font-weight: 650;
}

.footer-legal-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 56px);
}

.footer-legal-inner .footer-link {
  color: #334155 !important;
  font-size: 0.96rem;
  font-weight: 700 !important;
  text-decoration: none;
}

@media (max-width: 980px) {
  .footer-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-editorial-about {
    grid-column: 1 / -1;
  }

  .footer-wordmark {
    font-size: clamp(3.2rem, 17vw, 8rem);
    white-space: normal;
    line-height: 0.9;
    letter-spacing: -0.045em;
  }

  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 22px 0;
  }
}

@media (max-width: 620px) {
  .footer-editorial-inner {
    padding-top: 54px;
  }

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

  .footer-wordmark {
    margin-top: 48px;
    font-size: clamp(3rem, 20vw, 5.8rem);
  }

  .footer-legal-inner nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* Footer wordmark refinement: grande ma controllato, senza overflow aggressivo. */
.footer-editorial-inner {
  padding-top: clamp(58px, 7vw, 92px) !important;
}

.footer-editorial-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-wordmark {
  width: 100%;
  margin-top: clamp(46px, 6vw, 74px) !important;
  margin-left: 0 !important;
  margin-bottom: -0.06em !important;
  font-size: clamp(3.8rem, 10.6vw, 10.8rem) !important;
  line-height: 0.86 !important;
  letter-spacing: -0.045em !important;
  white-space: nowrap;
  text-align: center;
}

.footer-legal-bar {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.footer-legal-inner {
  min-height: 70px !important;
  padding-right: clamp(88px, 10vw, 160px);
}

@media (max-width: 980px) {
  .footer-wordmark {
    font-size: clamp(3rem, 14vw, 7.4rem) !important;
    margin-bottom: -0.03em !important;
    white-space: normal;
    text-align: left;
  }

  .footer-legal-inner {
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .footer-wordmark {
    font-size: clamp(2.7rem, 17vw, 4.8rem) !important;
    line-height: 0.92 !important;
  }
}


/* Minimal footer reset: versione pulita e coerente con il sito. */
.footer-minimal {
  padding: 56px 0 0 !important;
  background: #071827 !important;
  color: #ffffff;
}

.footer-minimal-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 0.8fr) minmax(180px, 0.65fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  padding-bottom: 42px;
}

.footer-minimal-brand strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
}

.footer-minimal-brand p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 550;
}

.footer-minimal-column {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.footer-minimal-column > span {
  margin-bottom: 4px;
  color: rgba(147, 197, 253, 0.9);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-minimal .footer-link,
.footer-minimal small,
.footer-minimal .footer-cookie-btn {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 0.94rem;
  line-height: 1.35;
  font-weight: 650 !important;
  text-decoration: none;
}

.footer-minimal .footer-link:hover,
.footer-minimal .footer-cookie-btn:hover {
  color: #ffffff !important;
}

.footer-minimal .footer-cookie-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.footer-minimal-bottom {
  min-height: 64px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-minimal-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 600;
}

@media (max-width: 820px) {
  .footer-minimal-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* Minimal footer alignment tweaks. */
.footer-minimal-brand,
.footer-minimal-brand strong,
.footer-minimal-brand p {
  text-align: left;
}

.footer-minimal-bottom {
  justify-content: center;
}

.footer-minimal-bottom p {
  width: 100%;
  text-align: center;
}


/* Hero narrative regroup: subtitles stay together below the headline. */
.hero-message-stack {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin-top: clamp(16px, 2vw, 24px);
}

.hero-message-stack .hero-icp-subtitle,
.hero-message-stack .hero-system-subtitle {
  margin: 0;
}

.hero-message-stack .hero-system-subtitle {
  max-width: 760px;
  color: rgba(226, 232, 240, 0.74);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.48;
  font-weight: 560;
}

.hero-system-inner {
  row-gap: clamp(18px, 2.6vw, 34px) !important;
}

.hero-system-copy {
  align-self: start;
}

.hero-system .hero-actions-main {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .hero-message-stack {
    gap: 8px;
    margin-top: 14px;
  }

  .hero-message-stack .hero-system-subtitle {
    font-size: 0.98rem;
    line-height: 1.48;
  }
}


/* Hero two-column regroup: testo compatto a sinistra, visual affiancato. */
@media (min-width: 981px) {
  .hero-system-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.62fr) !important;
    grid-template-areas:
      "heading visual"
      "copy visual" !important;
    column-gap: clamp(48px, 6vw, 92px) !important;
    row-gap: clamp(22px, 3vw, 34px) !important;
    align-items: center !important;
  }

  .hero-system-heading {
    max-width: 860px !important;
  }

  .hero-message-stack {
    max-width: 620px !important;
  }

  .hero-message-stack .hero-icp-subtitle {
    max-width: 620px !important;
  }

  .hero-message-stack .hero-system-subtitle {
    max-width: 560px !important;
  }

  .hero-system-copy {
    max-width: 620px !important;
  }

  .hero-system-visual {
    align-self: center !important;
    justify-self: center !important;
  }

  .system-map {
    width: min(100%, 420px) !important;
  }
}


/* Hero headline restore: titolo full-width, solo contenuto sotto in due colonne. */
@media (min-width: 981px) {
  .hero-system-inner {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.62fr) !important;
    grid-template-areas:
      "heading heading"
      "copy visual" !important;
    column-gap: clamp(48px, 6vw, 92px) !important;
    row-gap: clamp(18px, 2.4vw, 30px) !important;
  }

  .hero-system-heading {
    max-width: none !important;
    width: 100% !important;
  }

  .hero-system-title {
    max-width: none !important;
    width: 100% !important;
  }

  .hero-message-stack {
    max-width: 680px !important;
  }
}


/* Hero system map readability fix: evita sovrapposizione tra core e nodi. */
.hero-system .system-map {
  width: min(100%, 440px) !important;
  aspect-ratio: 1 / 1;
}

.hero-system .system-core {
  width: 112px !important;
  height: 112px !important;
  font-size: 0.86rem !important;
  z-index: 3;
}

.hero-system .system-node {
  z-index: 2;
  min-width: 116px;
  justify-content: flex-start;
  font-size: 0.78rem !important;
  background: rgba(255, 255, 255, 0.1);
}

.hero-system .node-site {
  top: 14% !important;
  left: 8% !important;
}

.hero-system .node-content {
  top: 18% !important;
  right: 4% !important;
}

.hero-system .node-process {
  top: 47% !important;
  left: 0 !important;
}

.hero-system .node-funnel {
  right: 1% !important;
  bottom: 28% !important;
}

.hero-system .node-tools {
  bottom: 13% !important;
  left: 12% !important;
}

@media (max-width: 768px) {
  .hero-system .system-map {
    width: min(100%, 330px) !important;
  }

  .hero-system .system-core {
    width: 92px !important;
    height: 92px !important;
    font-size: 0.74rem !important;
  }

  .hero-system .system-node {
    min-width: 92px;
    font-size: 0.68rem !important;
    padding: 8px 10px;
  }
}


/* Hero system map final layout: nodi distanziati dal core e cache-bust CSS attivo. */
.hero-system-visual .system-map {
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  overflow: visible !important;
  margin-inline: auto !important;
}

.hero-system-visual .system-core {
  width: 96px !important;
  height: 96px !important;
  font-size: 0.78rem !important;
  line-height: 1 !important;
  z-index: 5 !important;
}

.hero-system-visual .system-node {
  min-width: 122px !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  font-size: 0.78rem !important;
  justify-content: flex-start !important;
  z-index: 3 !important;
  backdrop-filter: blur(14px);
}

.hero-system-visual .node-site {
  top: 12% !important;
  left: 5% !important;
  right: auto !important;
  bottom: auto !important;
}

.hero-system-visual .node-content {
  top: 15% !important;
  right: 2% !important;
  left: auto !important;
  bottom: auto !important;
}

.hero-system-visual .node-process {
  top: 49% !important;
  left: -2% !important;
  right: auto !important;
  bottom: auto !important;
}

.hero-system-visual .node-funnel {
  top: 49% !important;
  right: -2% !important;
  left: auto !important;
  bottom: auto !important;
}

.hero-system-visual .node-tools {
  top: auto !important;
  right: auto !important;
  bottom: 10% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

@media (max-width: 768px) {
  .hero-system-visual .system-map {
    width: min(100%, 320px) !important;
    max-width: 320px !important;
  }

  .hero-system-visual .system-core {
    width: 78px !important;
    height: 78px !important;
    font-size: 0.68rem !important;
  }

  .hero-system-visual .system-node {
    min-width: 96px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.64rem !important;
  }

  .hero-system-visual .node-site {
    top: 10% !important;
    left: 2% !important;
  }

  .hero-system-visual .node-content {
    top: 14% !important;
    right: 0 !important;
  }

  .hero-system-visual .node-process {
    top: 48% !important;
    left: -1% !important;
  }

  .hero-system-visual .node-funnel {
    top: 48% !important;
    right: -1% !important;
  }

  .hero-system-visual .node-tools {
    bottom: 8% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}


/* Hero system map definitive fix: griglia reale, nessuna sovrapposizione possibile. */
.hero-system-visual .system-map {
  display: grid !important;
  grid-template-columns: minmax(92px, 1fr) minmax(88px, 0.78fr) minmax(92px, 1fr) !important;
  grid-template-rows: minmax(76px, 1fr) minmax(96px, 1fr) minmax(76px, 1fr) !important;
  gap: clamp(10px, 2.2vw, 18px) !important;
  align-items: center !important;
  justify-items: center !important;
  width: min(100%, 460px) !important;
  max-width: 460px !important;
  padding: clamp(26px, 4vw, 42px) !important;
  overflow: hidden !important;
}

.hero-system-visual .system-map::before,
.hero-system-visual .system-map::after {
  pointer-events: none;
  z-index: 0 !important;
}

.hero-system-visual .system-node,
.hero-system-visual .system-core {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
}

.hero-system-visual .system-node {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 148px !important;
  min-height: 42px !important;
  padding: 0 14px !important;
  font-size: clamp(0.66rem, 1vw, 0.78rem) !important;
  justify-content: flex-start !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(188, 215, 255, 0.22) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}

.hero-system-visual .system-core {
  grid-column: 2 !important;
  grid-row: 2 !important;
  width: clamp(86px, 9vw, 108px) !important;
  height: clamp(86px, 9vw, 108px) !important;
  font-size: clamp(0.68rem, 1vw, 0.8rem) !important;
  z-index: 3 !important;
}

.hero-system-visual .node-site {
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
  align-self: end !important;
}

.hero-system-visual .node-content {
  grid-column: 3 !important;
  grid-row: 1 !important;
  justify-self: end !important;
  align-self: end !important;
}

.hero-system-visual .node-process {
  grid-column: 1 !important;
  grid-row: 2 !important;
  justify-self: start !important;
}

.hero-system-visual .node-funnel {
  grid-column: 3 !important;
  grid-row: 2 !important;
  justify-self: end !important;
}

.hero-system-visual .node-tools {
  grid-column: 2 !important;
  grid-row: 3 !important;
  justify-self: center !important;
  align-self: start !important;
}

@media (max-width: 768px) {
  .hero-system-visual .system-map {
    width: min(100%, 330px) !important;
    max-width: 330px !important;
    grid-template-columns: minmax(82px, 1fr) minmax(74px, 0.72fr) minmax(82px, 1fr) !important;
    grid-template-rows: 68px 86px 68px !important;
    padding: 22px !important;
    gap: 8px !important;
  }

  .hero-system-visual .system-node {
    max-width: 112px !important;
    min-height: 34px !important;
    padding: 0 9px !important;
    font-size: 0.61rem !important;
  }

  .hero-system-visual .system-node::before {
    width: 6px !important;
    height: 6px !important;
    margin-right: 6px !important;
  }

  .hero-system-visual .system-core {
    width: 72px !important;
    height: 72px !important;
    font-size: 0.62rem !important;
  }
}


/* Hero final spacing: evita sovrapposizione header/kicker e compatta l'area visual. */
.hero-system {
  padding-top: clamp(168px, 15vh, 190px) !important;
  padding-bottom: clamp(70px, 8vh, 96px) !important;
  align-items: flex-start !important;
}

.hero-system .hero-kicker-main {
  position: relative;
  z-index: 1;
  margin-bottom: clamp(22px, 2.6vw, 34px) !important;
}

@media (min-width: 981px) {
  .hero-system-inner {
    row-gap: clamp(28px, 3.4vw, 46px) !important;
    align-items: start !important;
  }

  .hero-system-copy {
    padding-top: 0 !important;
  }

  .hero-system-visual {
    min-height: auto !important;
    align-self: start !important;
    padding-top: clamp(10px, 1.2vw, 18px) !important;
  }

  .hero-system-visual .system-map {
    width: min(100%, 400px) !important;
    max-width: 400px !important;
  }
}

@media (max-width: 768px) {
  .hero-system {
    padding-top: 112px !important;
    padding-bottom: 58px !important;
  }
}


/* Hero content layout: headline piena, poi copy e mappa in due colonne. */
@media (min-width: 981px) {
  .hero-system-inner {
    grid-template-areas:
      "heading heading"
      "copy visual" !important;
    row-gap: clamp(22px, 2.8vw, 36px) !important;
  }

  .hero-system-heading {
    max-width: none !important;
  }

  .hero-system-copy {
    max-width: 650px !important;
    align-self: start !important;
  }

  .hero-system-copy .hero-message-stack {
    max-width: 620px !important;
    margin-top: 0 !important;
    gap: 12px !important;
  }

  .hero-system-copy .hero-actions-main {
    margin-top: clamp(26px, 3vw, 34px) !important;
  }

  .hero-system-copy .hero-social-proof {
    max-width: 620px !important;
  }

  .hero-system-visual {
    align-self: start !important;
    padding-top: 4px !important;
  }

  .hero-system-visual .system-map {
    width: min(100%, 380px) !important;
    max-width: 380px !important;
  }
}

@media (max-width: 768px) {
  .hero-system-copy .hero-message-stack {
    margin-top: 0 !important;
  }
}


/* Hero map alignment polish: nodi uniformi e simmetrici rispetto al core. */
.hero-system-visual .system-map {
  grid-template-columns: 132px 1fr 132px !important;
  grid-template-rows: 82px 108px 82px !important;
  gap: 12px 18px !important;
  place-items: center !important;
}

.hero-system-visual .system-node {
  width: 132px !important;
  max-width: 132px !important;
  min-height: 42px !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 12px !important;
  text-align: center !important;
}

.hero-system-visual .system-node::before {
  flex: 0 0 7px !important;
  width: 7px !important;
  height: 7px !important;
  margin-right: 0 !important;
}

.hero-system-visual .system-core {
  width: 104px !important;
  height: 104px !important;
  justify-self: center !important;
  align-self: center !important;
}

.hero-system-visual .node-site,
.hero-system-visual .node-process {
  justify-self: end !important;
}

.hero-system-visual .node-content,
.hero-system-visual .node-funnel {
  justify-self: start !important;
}

.hero-system-visual .node-tools {
  justify-self: center !important;
}

@media (max-width: 768px) {
  .hero-system-visual .system-map {
    grid-template-columns: 96px 1fr 96px !important;
    grid-template-rows: 64px 82px 64px !important;
    gap: 8px !important;
  }

  .hero-system-visual .system-node {
    width: 96px !important;
    max-width: 96px !important;
    min-height: 34px !important;
    gap: 6px !important;
    padding: 0 7px !important;
  }

  .hero-system-visual .system-core {
    width: 74px !important;
    height: 74px !important;
  }
}


/* Hero visual replacement: flusso frammentazione -> sistema -> chiarezza. */
.hero-system-visual .hero-system-flow {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(188, 215, 255, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(188, 215, 255, 0.065) 1px, transparent 1px),
    linear-gradient(0deg, rgba(188, 215, 255, 0.065) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 42px 42px;
  box-shadow: inset 0 0 80px rgba(58, 134, 255, 0.08);
  overflow: hidden;
}

.hero-system-visual .hero-system-flow::before {
  content: "";
  position: absolute;
  inset: 22% 18%;
  border: 1px solid rgba(155, 201, 255, 0.16);
  border-radius: 999px;
  pointer-events: none;
}

.hero-system-visual .flow-cluster {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.hero-system-visual .flow-cluster span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(188, 215, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(234, 242, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.hero-system-visual .flow-cluster span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #9bc9ff;
  box-shadow: 0 0 18px rgba(155, 201, 255, 0.8);
}

.hero-system-visual .flow-cluster-fragmented {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.hero-system-visual .flow-core-card {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, 260px);
  min-height: 136px;
  margin: 0 auto 28px;
  border: 1px solid rgba(155, 201, 255, 0.42);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.96), rgba(31, 88, 201, 0.96));
  box-shadow: 0 28px 70px rgba(58, 134, 255, 0.22);
  text-align: center;
}

.hero-system-visual .flow-core-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-system-visual .flow-core-card strong {
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.hero-system-visual .flow-cluster-clear {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-system-visual .flow-cluster-clear span {
  justify-content: center;
  background: rgba(155, 201, 255, 0.11);
  border-color: rgba(155, 201, 255, 0.24);
}

@media (max-width: 768px) {
  .hero-system-visual .hero-system-flow {
    width: min(100%, 330px);
    padding: 22px;
    border-radius: 28px;
  }

  .hero-system-visual .flow-cluster-fragmented,
  .hero-system-visual .flow-cluster-clear {
    grid-template-columns: 1fr;
  }

  .hero-system-visual .flow-cluster span {
    min-height: 38px;
    font-size: 0.72rem;
  }

  .hero-system-visual .flow-core-card {
    min-height: 112px;
    margin-bottom: 22px;
  }
}


/* Hero visual v2: pannello diagnostico premium, meno didascalico. */
.hero-system-visual .hero-diagnostic-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(116px, 0.72fr) minmax(112px, 1fr);
  gap: 18px;
  align-items: center;
  width: min(100%, 430px);
  min-height: 360px;
  margin-inline: auto;
  padding: 34px;
  border: 1px solid rgba(188, 215, 255, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 50%, rgba(58, 134, 255, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(188, 215, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(188, 215, 255, 0.06) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: auto, 42px 42px, 42px 42px, auto;
  box-shadow: inset 0 0 80px rgba(58, 134, 255, 0.08);
  overflow: hidden;
}

.hero-system-visual .hero-diagnostic-panel::before,
.hero-system-visual .hero-diagnostic-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 201, 255, 0.35), transparent);
  pointer-events: none;
}

.hero-system-visual .hero-diagnostic-panel::before {
  left: 24%;
}

.hero-system-visual .hero-diagnostic-panel::after {
  right: 24%;
}

.hero-system-visual .diagnostic-column {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
}

.hero-system-visual .diagnostic-label {
  margin-bottom: 4px;
  color: rgba(155, 201, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-system-visual .diagnostic-column-right .diagnostic-label {
  text-align: right;
}

.hero-system-visual .diagnostic-item {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(234, 242, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.hero-system-visual .diagnostic-item::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
}

.hero-system-visual .is-friction {
  border: 1px dashed rgba(248, 113, 113, 0.28);
  background: rgba(255, 255, 255, 0.055);
}

.hero-system-visual .is-friction::before {
  background: rgba(248, 113, 113, 0.86);
  box-shadow: 0 0 18px rgba(248, 113, 113, 0.35);
}

.hero-system-visual .is-clear {
  justify-content: flex-end;
  border: 1px solid rgba(155, 201, 255, 0.22);
  background: rgba(155, 201, 255, 0.105);
}

.hero-system-visual .is-clear::before {
  order: 2;
  margin: 0 0 0 8px;
  background: #9bc9ff;
  box-shadow: 0 0 18px rgba(155, 201, 255, 0.65);
}

.hero-system-visual .diagnostic-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin-inline: auto;
  border: 1px solid rgba(155, 201, 255, 0.44);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(58, 134, 255, 0.96), rgba(31, 88, 201, 0.98));
  box-shadow: 0 28px 70px rgba(58, 134, 255, 0.22);
  text-align: center;
}

.hero-system-visual .diagnostic-core span {
  color: #fff;
  font-size: 1.06rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-system-visual .diagnostic-core strong {
  max-width: 82px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 850;
  line-height: 1.25;
}

@media (max-width: 768px) {
  .hero-system-visual .hero-diagnostic-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 330px);
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }

  .hero-system-visual .hero-diagnostic-panel::before,
  .hero-system-visual .hero-diagnostic-panel::after {
    display: none;
  }

  .hero-system-visual .diagnostic-core {
    width: 104px;
    height: 104px;
    order: 2;
  }

  .hero-system-visual .diagnostic-column-left {
    order: 1;
  }

  .hero-system-visual .diagnostic-column-right {
    order: 3;
  }

  .hero-system-visual .diagnostic-column-right .diagnostic-label {
    text-align: left;
  }

  .hero-system-visual .is-clear {
    justify-content: flex-start;
  }

  .hero-system-visual .is-clear::before {
    order: 0;
    margin: 0 8px 0 0;
  }
}


/* Hero centered reference: grande headline, griglia sottile, CTA e proof row. */
.hero-system-centered {
  min-height: 100svh !important;
  padding-top: clamp(150px, 17vh, 190px) !important;
  padding-bottom: clamp(74px, 10vh, 116px) !important;
  align-items: flex-start !important;
  color: #eaf2ff;
  background:
    radial-gradient(circle at 50% 18%, rgba(58, 134, 255, 0.24), transparent 30%),
    linear-gradient(90deg, rgba(188, 215, 255, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(188, 215, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #081a30 0%, #0d2340 54%, #102a4a 100%) !important;
  background-size: auto, 46px 46px, 46px 46px, auto !important;
}

.hero-system-centered .hero-system-inner {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-areas:
    "heading"
    "copy" !important;
  justify-items: center !important;
  align-items: start !important;
  gap: clamp(18px, 2.4vw, 28px) !important;
  max-width: 1180px !important;
  text-align: center !important;
}

.hero-system-centered .hero-system-heading {
  max-width: 1120px !important;
  width: 100% !important;
  text-align: center !important;
}

.hero-system-centered .hero-kicker-main {
  display: inline-flex !important;
  margin: 0 0 clamp(24px, 3vw, 34px) !important;
}

.hero-system-centered .hero-system-title {
  position: relative;
  max-width: 1120px !important;
  width: 100% !important;
  margin-inline: auto !important;
  color: #ffffff;
  font-size: clamp(3.3rem, 7vw, 7.25rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.015em !important;
  text-align: center !important;
}

.hero-system-centered .hero-system-title::after {
  content: "";
  display: block;
  width: min(70%, 720px);
  height: 5px;
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #62d6a8 12%, #9bc9ff 88%, transparent);
  opacity: 0.9;
}

.hero-system-centered .hero-system-title span {
  color: #9bc9ff !important;
}

.hero-system-centered .hero-system-copy {
  display: grid !important;
  justify-items: center !important;
  max-width: 900px !important;
  width: 100% !important;
  text-align: center !important;
}

.hero-system-centered .hero-icp-subtitle {
  max-width: 820px !important;
  margin: 0 auto !important;
  color: rgba(234, 242, 255, 0.72) !important;
  font-size: clamp(1.05rem, 1.45vw, 1.28rem) !important;
  font-weight: 560 !important;
  line-height: 1.62 !important;
}

.hero-system-centered .hero-actions-main {
  justify-content: center !important;
  margin-top: clamp(28px, 3.3vw, 38px) !important;
  gap: 14px !important;
}

.hero-system-centered .hero-actions-main .btn-primary,
.hero-system-centered .hero-actions-main .btn-link {
  min-height: 54px !important;
  border-radius: 999px !important;
}

.hero-system-centered .hero-actions-main .btn-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(188, 215, 255, 0.32) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-system-centered .hero-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 0;
  justify-content: center;
  align-items: center;
  margin-top: clamp(34px, 4vw, 52px);
  color: rgba(234, 242, 255, 0.58);
  font-size: 0.9rem;
  font-weight: 650;
}

.hero-system-centered .hero-proof-row span {
  padding: 0 clamp(18px, 2.8vw, 34px);
  border-right: 1px solid rgba(188, 215, 255, 0.16);
  line-height: 1.25;
}

.hero-system-centered .hero-proof-row span:last-child {
  border-right: 0;
}

.hero-system-centered .hero-proof-row strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 900;
}

@media (max-width: 768px) {
  .hero-system-centered {
    min-height: 100svh !important;
    padding-top: 116px !important;
    padding-bottom: 64px !important;
    background-size: auto, 34px 34px, 34px 34px, auto !important;
  }

  .hero-system-centered .hero-system-title {
    font-size: clamp(3rem, 14.5vw, 4.9rem) !important;
    line-height: 0.94 !important;
  }

  .hero-system-centered .hero-system-title::after {
    width: 86%;
    height: 4px;
  }

  .hero-system-centered .hero-actions-main,
  .hero-system-centered .hero-actions-main .btn-primary,
  .hero-system-centered .hero-actions-main .btn-link {
    width: 100% !important;
  }

  .hero-system-centered .hero-proof-row {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
    text-align: center;
  }

  .hero-system-centered .hero-proof-row span {
    padding: 0;
    border-right: 0;
  }
}


/* Hero title scale: riduzione headline del 20%. */
.hero-system-centered .hero-system-title {
  font-size: clamp(2.64rem, 5.6vw, 5.8rem) !important;
}

@media (max-width: 768px) {
  .hero-system-centered .hero-system-title {
    font-size: clamp(2.4rem, 11.6vw, 3.92rem) !important;
  }
}


/* FAQ homepage: accordion accessibile prima del footer. */
.faq-section {
  padding: clamp(82px, 10vw, 130px) 0;
  background: transparent;
}

.faq-container {
  max-width: 980px;
}

.faq-header {
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: center;
}

.faq-header .section-title {
  margin: 12px auto 0;
  color: #16223a;
}

.faq-accordion {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(22, 34, 58, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  color: #16223a;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(58, 134, 255, 0.1);
  color: #2f6fee;
  font-size: 1.2rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  background: rgba(58, 134, 255, 0.18);
  transform: rotate(180deg);
}

.faq-item summary:focus-visible {
  outline: 3px solid rgba(58, 134, 255, 0.35);
  outline-offset: 4px;
}

.faq-item p {
  margin: 0;
  padding: 0 28px 26px;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.72;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 64px 0 82px;
  }

  .faq-item {
    border-radius: 18px;
  }

  .faq-item summary {
    padding: 20px;
    gap: 14px;
  }

  .faq-item summary::after {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .faq-item p {
    padding: 0 20px 22px;
  }
}


/* Section spacing normalization: spazi verticali uniformi tra le sezioni della homepage. */
:root {
  --mp-section-padding-y: clamp(88px, 9vw, 122px);
  --mp-section-padding-y-mobile: 68px;
}

.hero-system-centered {
  margin-bottom: 0 !important;
}

.system-diagnosis,
.offer.system-areas,
.work-cases-section,
.about-section.system-method-section,
.contact.lead-contact-section,
.faq-section {
  margin-block: 0 !important;
  padding-top: var(--mp-section-padding-y) !important;
  padding-bottom: var(--mp-section-padding-y) !important;
}

.section-divider {
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.work-cases-section .work-final-cta {
  margin-top: clamp(42px, 5vw, 64px) !important;
  margin-bottom: 0 !important;
}

.contact.lead-contact-section + .faq-section,
.faq-section + .footer-minimal {
  margin-top: 0 !important;
}

.footer-minimal {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .system-diagnosis,
  .offer.system-areas,
  .work-cases-section,
  .about-section.system-method-section,
  .contact.lead-contact-section,
  .faq-section {
    padding-top: var(--mp-section-padding-y-mobile) !important;
    padding-bottom: var(--mp-section-padding-y-mobile) !important;
  }

  .work-cases-section .work-final-cta {
    margin-top: 38px !important;
  }
}


/* Section spacing refinements: più aria su Diagnosi, meno gap prima del Metodo. */
.system-diagnosis {
  padding-top: clamp(118px, 11vw, 156px) !important;
  padding-bottom: clamp(118px, 11vw, 156px) !important;
}

.offer.system-areas {
  padding-top: clamp(104px, 10vw, 136px) !important;
}

.work-cases-section {
  padding-bottom: clamp(54px, 6vw, 76px) !important;
}

.work-cases-section .work-final-cta {
  margin-bottom: 0 !important;
}

.about-section.system-method-section {
  padding-top: clamp(54px, 6vw, 76px) !important;
}

.faq-header .section-title {
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .system-diagnosis {
    padding-top: 86px !important;
    padding-bottom: 86px !important;
  }

  .offer.system-areas {
    padding-top: 78px !important;
  }

  .work-cases-section {
    padding-bottom: 44px !important;
  }

  .about-section.system-method-section {
    padding-top: 44px !important;
  }
}


/* Section spacing final pass: Diagnosi come card compatta e stacchi esterni controllati. */
.system-diagnosis {
  margin: clamp(56px, 6vw, 84px) auto !important;
  padding: clamp(54px, 6vw, 78px) clamp(22px, 5vw, 64px) !important;
}

.system-diagnosis-header {
  margin-bottom: clamp(28px, 4vw, 44px) !important;
}

.system-diagnosis-close {
  margin-top: clamp(24px, 3vw, 34px) !important;
}

.offer.system-areas {
  padding-top: clamp(78px, 8vw, 104px) !important;
}

.work-cases-section {
  padding-bottom: clamp(28px, 3vw, 42px) !important;
}

.about-section.system-method-section {
  padding-top: clamp(32px, 4vw, 48px) !important;
}

@media (max-width: 768px) {
  .system-diagnosis {
    margin: 44px auto !important;
    padding: 44px 18px !important;
  }

  .system-diagnosis-header {
    margin-bottom: 30px !important;
  }

  .offer.system-areas {
    padding-top: 64px !important;
  }

  .work-cases-section {
    padding-bottom: 28px !important;
  }

  .about-section.system-method-section {
    padding-top: 30px !important;
  }
}


/* Aree di lavoro: colore kicker e allineamento heading. */
.system-areas .value-kicker {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.system-areas-heading {
  width: 100% !important;
  max-width: 780px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
}

.system-areas .section-title,
.system-areas .section-subtitle {
  margin-left: 0 !important;
  padding-left: 0 !important;
  transform: none !important;
}


/* Hero underline requested update. */
.hero-system-centered .hero-system-title::after {
  content: "";
  display: block;
  width: min(70%, 720px);
  height: 5px;
  margin: clamp(14px, 1.8vw, 20px) auto 0;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, #ffffff 12%, #9bc9ff 88%, transparent);
  opacity: 0.9;
}


/* Hero cleanup: proof row rimossa dal markup, nessuno spazio residuo. */
.hero-system-centered .hero-proof-row {
  display: none !important;
  margin: 0 !important;
}


/* PageSpeed: freccia back-to-top senza librerie icone esterne. */
#back-to-top span {
  display: block;
  color: inherit;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1;
  transform: translateY(-1px);
}


/* About image: usa il logo invece della foto mp1.png. */
.about-photo {
  background-image: url('../img/massp.png') !important;
  background-size: clamp(140px, 36%, 220px) auto !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #f3f8ff !important;
}


/* About image: usa massp.png nella bio. */
.about-photo {
  background-image: url('../img/massp.png') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Homepage SEO/conversion layer: problemi concreti e approfondimenti editoriali leggeri. */
.home-problems,
.home-insights {
  padding: clamp(78px, 8vw, 112px) 0;
}

.home-problems {
  background: transparent;
}

.home-problems-container,
.home-insights-container {
  max-width: 1180px;
}

.home-problems-header,
.home-insights-header {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.home-problems-grid,
.home-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-problem-card,
.home-insight-card {
  min-height: 100%;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(22, 34, 58, 0.1);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.06);
}

.home-problem-card h3,
.home-insight-card h3 {
  margin: 0 0 12px;
  color: #16223a;
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-problem-card p,
.home-insight-card p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-problem-card a,
.home-insight-card a {
  display: inline-flex;
  color: #2f6fee;
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
}

.home-problem-card a:hover,
.home-insight-card a:hover {
  text-decoration: underline;
}

.home-insights {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.78), rgba(255, 255, 255, 0));
}

.home-insight-card.home-insight-pillar {
  background: #16223a;
  border-color: rgba(255, 255, 255, 0.1);
}

.home-insight-card.home-insight-pillar span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(155, 201, 255, 0.16);
  color: #9bc9ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-insight-card.home-insight-pillar h3 {
  color: #ffffff;
}

.home-insight-card.home-insight-pillar p {
  color: rgba(255, 255, 255, 0.72);
}

.home-insight-card.home-insight-pillar a {
  color: #9bc9ff;
}

@media (max-width: 1024px) {
  .home-problems-grid,
  .home-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-problems,
  .home-insights {
    padding: 64px 0;
  }

  .home-problems-grid,
  .home-insights-grid {
    grid-template-columns: 1fr;
  }

  .home-problem-card,
  .home-insight-card {
    padding: 22px;
    border-radius: 20px;
    box-shadow: none;
  }
}


/* Approfondimenti homepage: versione più compatta per non trasformare la home in blog. */
.home-insights {
  padding-top: clamp(64px, 7vw, 92px) !important;
  padding-bottom: clamp(64px, 7vw, 92px) !important;
}

.home-insights-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px !important;
  margin-bottom: clamp(26px, 3.5vw, 38px) !important;
}

.home-insights-header .value-kicker {
  grid-column: 1 / -1;
  width: fit-content;
}

.home-insights-header .section-title {
  margin: 0 !important;
  max-width: 620px;
  font-size: clamp(2.45rem, 5vw, 4.35rem) !important;
  line-height: 0.96 !important;
}

.home-insights-header .section-subtitle {
  margin: 0 !important;
  max-width: 560px;
  font-size: clamp(1rem, 1.35vw, 1.2rem) !important;
  line-height: 1.55 !important;
}

.home-insights-grid {
  align-items: stretch;
}

.home-insight-card {
  padding: clamp(20px, 2vw, 28px) !important;
  border-radius: 22px !important;
  min-height: 300px;
}

.home-insight-card h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.5rem) !important;
  line-height: 1.12 !important;
}

.home-insight-card p {
  font-size: clamp(0.94rem, 1.15vw, 1.05rem) !important;
  line-height: 1.55 !important;
}

.home-insight-card.home-insight-pillar span {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .home-insights-header {
    display: block;
  }

  .home-insights-header .value-kicker {
    margin-bottom: 18px;
  }

  .home-insights-header .section-title {
    font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    margin-bottom: 18px !important;
  }

  .home-insight-card {
    min-height: auto;
  }
}


/* Problemi homepage: sezione più compatta e commerciale, non hero secondaria. */
.home-problems {
  padding-top: clamp(54px, 6vw, 82px) !important;
  padding-bottom: clamp(64px, 7vw, 96px) !important;
}

.home-problems-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1180px !important;
  margin-bottom: clamp(26px, 3.5vw, 38px) !important;
}

.home-problems-header .value-kicker {
  grid-column: 1 / -1;
  width: fit-content;
}

.home-problems-header .section-title {
  margin: 0 !important;
  max-width: 680px;
  font-size: clamp(2.45rem, 5vw, 4.25rem) !important;
  line-height: 0.98 !important;
}

.home-problems-header .section-subtitle {
  margin: 0 !important;
  max-width: 560px;
  font-size: clamp(1rem, 1.3vw, 1.16rem) !important;
  line-height: 1.55 !important;
}

.home-problem-card {
  min-height: 250px;
  padding: clamp(20px, 2vw, 26px) !important;
  border-radius: 22px !important;
}

.home-problem-card h3 {
  font-size: clamp(1.02rem, 1.35vw, 1.28rem) !important;
  line-height: 1.12 !important;
}

.home-problem-card p {
  font-size: clamp(0.94rem, 1.08vw, 1.02rem) !important;
  line-height: 1.55 !important;
}

@media (max-width: 768px) {
  .home-problems {
    padding-top: 58px !important;
    padding-bottom: 64px !important;
  }

  .home-problems-header {
    display: block;
  }

  .home-problems-header .value-kicker {
    margin-bottom: 18px;
  }

  .home-problems-header .section-title {
    font-size: clamp(2.25rem, 10.5vw, 3.2rem) !important;
    margin-bottom: 18px !important;
  }

  .home-problem-card {
    min-height: auto;
  }
}


/* Approfondimenti homepage: override finale contro padding ereditati troppo ampi. */
.home-insights {
  padding-top: clamp(28px, 4vw, 52px) !important;
  padding-bottom: clamp(58px, 6vw, 84px) !important;
}

.home-insights-header {
  margin-bottom: clamp(20px, 3vw, 30px) !important;
}

.home-insights-grid {
  gap: clamp(14px, 1.6vw, 20px) !important;
}

.home-insight-card {
  min-height: 270px !important;
}

@media (max-width: 768px) {
  .home-insights {
    padding-top: 36px !important;
    padding-bottom: 58px !important;
  }
}


/* Home cluster sections: integrazione finale con ritmo sezioni esistente. */
.system-diagnosis {
  margin-bottom: 0 !important;
}

.system-diagnosis + .home-problems,
.about-section.system-method-section + .home-insights {
  margin-top: 0 !important;
}

.about-section.system-method-section {
  padding-bottom: clamp(48px, 5vw, 68px) !important;
}

.home-problems,
.home-insights {
  padding-top: clamp(44px, 5vw, 64px) !important;
  padding-bottom: clamp(56px, 6vw, 76px) !important;
}

.home-problems-header,
.home-insights-header {
  display: grid !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.68fr) !important;
  align-items: end !important;
  gap: clamp(24px, 4vw, 56px) !important;
  max-width: 1120px !important;
  margin-bottom: clamp(22px, 3vw, 30px) !important;
}

.home-problems-header .value-kicker,
.home-insights-header .value-kicker {
  grid-column: 1 / -1 !important;
  margin-bottom: 0 !important;
  width: fit-content !important;
}

.home-problems-header .section-title,
.home-insights-header .section-title {
  max-width: 580px !important;
  margin: 0 !important;
  font-size: clamp(2.25rem, 4.1vw, 3.55rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.home-problems-header .section-subtitle,
.home-insights-header .section-subtitle {
  max-width: 520px !important;
  margin: 0 !important;
  font-size: clamp(0.98rem, 1.18vw, 1.08rem) !important;
  line-height: 1.5 !important;
}

.home-problems-grid,
.home-insights-grid {
  gap: 16px !important;
}

.home-problem-card,
.home-insight-card {
  min-height: 220px !important;
  padding: 22px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.045) !important;
}

.home-problem-card h3,
.home-insight-card h3 {
  margin-bottom: 10px !important;
  font-size: clamp(1rem, 1.25vw, 1.18rem) !important;
  line-height: 1.12 !important;
}

.home-problem-card p,
.home-insight-card p {
  margin-bottom: 16px !important;
  font-size: 0.94rem !important;
  line-height: 1.48 !important;
}

.home-problem-card a,
.home-insight-card a {
  font-size: 0.9rem !important;
}

.home-insight-card.home-insight-pillar span {
  margin-bottom: 14px !important;
  padding: 5px 9px !important;
  font-size: 0.72rem !important;
}

.contact.lead-contact-section {
  padding-top: clamp(64px, 7vw, 90px) !important;
}

@media (max-width: 1024px) {
  .home-problems-header,
  .home-insights-header {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}

@media (max-width: 768px) {
  .about-section.system-method-section {
    padding-bottom: 44px !important;
  }

  .home-problems,
  .home-insights {
    padding-top: 42px !important;
    padding-bottom: 52px !important;
  }

  .home-problems-header,
  .home-insights-header {
    display: block !important;
    margin-bottom: 22px !important;
  }

  .home-problems-header .value-kicker,
  .home-insights-header .value-kicker {
    margin-bottom: 16px !important;
  }

  .home-problems-header .section-title,
  .home-insights-header .section-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    margin-bottom: 14px !important;
  }

  .home-problem-card,
  .home-insight-card {
    min-height: auto !important;
    padding: 20px !important;
    box-shadow: none !important;
  }
}


/* NAV UPPERCASE PUBLIC SITE */
.nav-links a,
.mobile-menu a {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Homepage conversion layer: Digital Checkup più visibile senza perdere tono premium. */
.hero-system-centered .hero-checkup-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2f6fee 0%, #5f9cff 100%) !important;
  box-shadow: 0 18px 54px rgba(47, 111, 238, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.hero-system-centered .hero-checkup-primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.24) 44%, transparent 58%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.hero-system-centered .hero-checkup-primary:hover::after {
  transform: translateX(120%);
}

.hero-system-centered .hero-checkup-microcopy {
  margin: 14px 0 0 !important;
  color: rgba(234, 242, 255, 0.7) !important;
  font-size: 0.95rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.hero-system-centered .hero-checkup-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(20px, 2.4vw, 30px);
  max-width: 880px;
}

.hero-system-centered .hero-checkup-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
  color: rgba(234, 242, 255, 0.82);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(188, 215, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 760;
}

.hero-system-centered .hero-checkup-trust span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #9bc9ff;
  box-shadow: 0 0 0 4px rgba(155, 201, 255, 0.12);
}

.checkup-bridge {
  padding: clamp(26px, 4vw, 42px) 0 !important;
  background: #eef5ff;
}

.checkup-bridge-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  max-width: 1120px;
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 18%, rgba(155, 201, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(8, 26, 48, 0.96), rgba(18, 49, 90, 0.94));
  border: 1px solid rgba(188, 215, 255, 0.18);
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.18);
}

.checkup-bridge-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(155, 201, 255, 0.14);
  color: #9bc9ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checkup-bridge h2 {
  max-width: 740px;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.checkup-bridge p {
  max-width: 720px;
  margin: 0;
  color: rgba(234, 242, 255, 0.72);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.56;
}

.checkup-bridge-action {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: min(100%, 280px);
}

.checkup-bridge-action .btn-primary {
  white-space: nowrap;
  border-radius: 999px;
  background: #ffffff !important;
  color: #102a4a !important;
  box-shadow: 0 18px 50px rgba(47, 111, 238, 0.22) !important;
}

.checkup-bridge-action span {
  color: rgba(234, 242, 255, 0.62);
  font-size: 0.86rem;
  font-weight: 750;
  text-align: right;
}

.system-diagnosis-close .btn-primary,
.work-final-cta .btn-primary,
.about-bio-button {
  box-shadow: 0 14px 38px rgba(47, 111, 238, 0.24) !important;
}

@media (max-width: 768px) {
  .hero-system-centered {
    padding-top: 104px !important;
    padding-bottom: 52px !important;
  }

  .hero-system-centered .hero-icp-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }

  .hero-system-centered .hero-actions-main {
    margin-top: 24px !important;
  }

  .hero-system-centered .hero-checkup-microcopy {
    font-size: 0.88rem !important;
  }

  .hero-system-centered .hero-checkup-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-system-centered .hero-checkup-trust span {
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.76rem;
    text-align: center;
  }

  .checkup-bridge {
    padding: 22px 0 34px !important;
  }

  .checkup-bridge-inner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    border-radius: 24px;
  }

  .checkup-bridge-action {
    justify-items: stretch;
  }

  .checkup-bridge-action .btn-primary {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  .checkup-bridge-action span {
    text-align: center;
  }
}

/* Prima/Dopo: evidenza maggiore sull'impatto percepito. */
.work-case-impact {
  position: relative;
  display: block;
  margin: 22px 0 24px !important;
  padding: 16px 18px 16px 20px;
  border-radius: 18px;
  color: #17345f !important;
  background: linear-gradient(135deg, rgba(47, 111, 238, 0.1), rgba(155, 201, 255, 0.18));
  border: 1px solid rgba(47, 111, 238, 0.18);
  box-shadow: inset 4px 0 0 rgba(47, 111, 238, 0.72);
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.work-case-impact::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2f6fee;
  box-shadow: 0 0 0 6px rgba(47, 111, 238, 0.1);
}

.work-case-impact strong {
  display: block;
  margin-bottom: 4px;
  color: #102a4a !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-case-featured .work-case-impact {
  background: linear-gradient(135deg, rgba(47, 111, 238, 0.14), rgba(255, 255, 255, 0.72));
  border-color: rgba(47, 111, 238, 0.26);
}

@media (max-width: 768px) {
  .work-case-impact {
    padding: 15px 16px;
    border-radius: 16px;
    font-size: 0.96rem !important;
  }

  .work-case-impact::before {
    top: 15px;
    right: 16px;
  }
}

/* Homepage optimization: Digital Checkup come funnel principale, senza cambiare posizionamento premium. */
.hero-system-centered .hero-ai-summary {
  max-width: 860px;
  margin: 14px auto 0 !important;
  color: rgba(234, 242, 255, 0.86) !important;
  font-size: clamp(0.98rem, 1.28vw, 1.12rem) !important;
  line-height: 1.56 !important;
  font-weight: 640 !important;
}

.home-checkup {
  padding: clamp(58px, 7vw, 92px) 0 !important;
  background: linear-gradient(180deg, rgba(238, 245, 255, 0.94), rgba(248, 251, 255, 0.78));
}

.home-checkup-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1180px;
}

.home-checkup-copy .section-title {
  max-width: 720px !important;
  margin: 14px 0 16px !important;
  font-size: clamp(2.25rem, 4.4vw, 4rem) !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.home-checkup-copy .section-subtitle {
  max-width: 650px !important;
  margin: 0 !important;
  font-size: clamp(1rem, 1.25vw, 1.16rem) !important;
  line-height: 1.58 !important;
}

.home-checkup-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  max-width: 680px;
}

.home-checkup-features span,
.checkup-findings-grid span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #17345f;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 111, 238, 0.14);
  font-size: 0.88rem;
  font-weight: 820;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.home-checkup-features span::before,
.checkup-findings-grid span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6fee;
  box-shadow: 0 0 0 4px rgba(47, 111, 238, 0.1);
}

.home-checkup-actions,
.home-final-checkup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.home-checkup-actions .btn-primary,
.home-final-checkup-actions .btn-primary {
  border-radius: 999px;
}

.home-checkup-actions .btn-link,
.home-final-checkup-actions .btn-link {
  border-radius: 999px;
  color: #102a4a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.home-checkup-note,
.home-final-checkup-note {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 780;
}

.home-checkup-preview {
  display: flex;
  justify-content: center;
}

.checkup-preview-card {
  width: min(100%, 420px);
  padding: 26px;
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 12%, rgba(155, 201, 255, 0.24), transparent 32%),
    linear-gradient(145deg, #081a30 0%, #132b4b 100%);
  border: 1px solid rgba(188, 215, 255, 0.2);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
}

.preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: rgba(234, 242, 255, 0.62);
  font-weight: 800;
}

.preview-topline strong {
  color: #9bc9ff;
  font-size: 1.1rem;
}

.preview-score-ring {
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  margin: 26px auto;
  border-radius: 50%;
  background: conic-gradient(#5f9cff 0 78%, rgba(255, 255, 255, 0.13) 78% 100%);
  position: relative;
}

.preview-score-ring::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #10233f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.preview-score-ring span {
  position: relative;
  color: #ffffff;
  font-size: 3.1rem;
  font-weight: 900;
}

.preview-bars {
  display: grid;
  gap: 13px;
}

.preview-bars div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: center;
  color: rgba(234, 242, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 760;
}

.preview-bars strong {
  color: #ffffff;
}

.preview-bars i {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5f9cff var(--bar), rgba(255, 255, 255, 0.12) var(--bar));
}

.preview-priority {
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(155, 201, 255, 0.12);
  border: 1px solid rgba(155, 201, 255, 0.18);
  color: #d9eaff;
  font-weight: 820;
  font-size: 0.9rem;
}

.checkup-findings {
  padding: clamp(22px, 3vw, 34px) 0 clamp(54px, 6vw, 82px) !important;
  background: transparent;
}

.checkup-findings-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  max-width: 1180px;
}

.checkup-findings-heading h2 {
  margin: 12px 0 0;
  color: #16223a;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.checkup-findings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-final-checkup {
  padding: clamp(68px, 8vw, 104px) 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 156, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%) !important;
}

.home-final-checkup-inner {
  max-width: 960px;
  text-align: center;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(22, 34, 58, 0.08);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
}

.home-final-checkup-inner .value-kicker {
  margin-inline: auto;
}

.home-final-checkup h2 {
  max-width: 780px;
  margin: 16px auto;
  color: #16223a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.home-final-checkup p {
  max-width: 720px;
  margin-inline: auto;
  color: #64748b;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.6;
}

.home-final-checkup-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .home-checkup-inner,
  .checkup-findings-inner {
    grid-template-columns: 1fr;
  }

  .home-checkup-preview {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .hero-system-centered .hero-ai-summary {
    font-size: 0.92rem !important;
  }

  .home-checkup {
    padding: 48px 0 62px !important;
  }

  .home-checkup-copy .section-title {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
  }

  .home-checkup-actions,
  .home-final-checkup-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-checkup-actions .btn-primary,
  .home-checkup-actions .btn-link,
  .home-final-checkup-actions .btn-primary,
  .home-final-checkup-actions .btn-link {
    width: 100%;
    text-align: center;
  }

  .checkup-preview-card {
    padding: 22px;
    border-radius: 24px;
  }

  .preview-score-ring {
    width: 150px;
    height: 150px;
  }

  .preview-score-ring span {
    font-size: 2.6rem;
  }

  .checkup-findings {
    padding-top: 12px !important;
  }

  .checkup-findings-grid,
  .home-checkup-features {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.home-final-checkup.lead-contact-section {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  border-color: transparent !important;
}

