/* ============================================================
   EVOHSE — Design System
   ============================================================ */

/* --- Custom Properties ------------------------------------ */
:root {
  /* Colors */
  --color-primary:       #1a5276;   /* blu professionale */
  --color-primary-dark:  #154360;
  --color-primary-light: #2e86c1;
  --color-accent:        #e67e22;   /* arancio CTA */
  --color-accent-dark:   #ca6f1e;
  --color-text:          #1c2833;
  --color-text-muted:    #5d6d7e;
  --color-bg:            #ffffff;
  --color-bg-alt:        #e8f2fa;
  --color-bg-dark:       #1a2535;
  --color-border:        #dce3eb;
  --color-success:       #1e8449;

  /* Typography */
  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.375rem;
  --font-size-2xl:  1.75rem;
  --font-size-3xl:  2.25rem;
  --font-size-4xl:  3rem;

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

  /* Layout */
  --container-max: 1140px;
  --radius:        6px;
  --radius-lg:     12px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);

  /* Transitions */
  --transition: 200ms ease;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  width: 100%;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

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

.section {
  padding: var(--space-xl) 0;
}
.section--alt {
  background: var(--color-bg-alt);
}
.section--dark {
  background: var(--color-bg-dark);
  color: #fff;
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-bottom: var(--space-xs);
}
.section-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
}
.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 680px;
}
.section-header {
  margin-bottom: var(--space-lg);
}
.section-header--center {
  text-align: center;
}
.section-header--center .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

/* --- Navbar ----------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--space-md);
}
.navbar__logo {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.02em;
}
.navbar__logo span { color: var(--color-accent); }
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.navbar__links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.navbar__links a:hover,
.navbar__links a.active { color: var(--color-primary); }
.navbar__cta { margin-left: var(--space-sm); }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .navbar__hamburger { display: flex; }
  .navbar__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-md);
  }
  .navbar__links.open { display: flex; }
  .navbar__links a {
    padding: 0.625rem 0;
    font-size: var(--font-size-base);
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .navbar__links a:last-child { border-bottom: none; }
  .navbar__cta { margin-left: 0; margin-top: var(--space-xs); }
}

/* --- Hero ------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--space-2xl) 0;
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
  z-index: 1;
}
/* Pill-label che sostituisce il semplice testo uppercase */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 6px 14px 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  margin-bottom: var(--space-md);
}
.hero__pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f9ca24;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(249,202,36,.25);
}
/* Label plain (fallback / altre sezioni) */
.hero__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-sm);
}
.hero__title {
  font-size: var(--font-size-4xl);
  color: #fff;
  line-height: 1.12;
  margin-bottom: var(--space-md);
}
.hero__title em {
  color: #f9ca24;
  font-style: normal;
  display: block;
}
.hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.82);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.hero__trust {
  font-size: 0.72rem;
  color: rgba(255,255,255,.5);
  margin-top: 10px;
  letter-spacing: .02em;
}
.hero__visual {
  display: flex;
  justify-content: center;
}
.hero__mockup {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(8px);
  width: 100%;
  max-width: 440px;
}
.hero__mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.hero__mockup-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
}
.hero__mockup-bar span:first-child { background: #ff5f57; }
.hero__mockup-bar span:nth-child(2) { background: #febc2e; }
.hero__mockup-bar span:nth-child(3) { background: #28c840; }
.hero__mockup-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.stat-card {
  background: rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: var(--space-sm);
  text-align: center;
}
.stat-card__number {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #f9ca24;
}
.stat-card__label {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.75);
  margin-top: 2px;
}
.hero__mockup-row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.5rem;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.85);
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge--warning { background: #fef3cd; color: #856404; }
.badge--danger  { background: #fde8e8; color: #9b1c1c; }
.badge--ok      { background: #d1fae5; color: #065f46; }

/* Feature chips (moduli principali sotto il CTA) */
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-md);
}
.hero__chip {
  font-size: 0.73rem;
  font-weight: 600;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Hero dashboard — app screenshot */
.hero-dashboard {
  width: 100%;
  max-width: 460px;
  box-shadow: 0 36px 90px rgba(0,0,0,.32), 0 8px 24px rgba(0,0,0,.18);
}
.hero-screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}
.hero__visual::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(46,134,193,.22) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}
.hero__visual > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__title { font-size: var(--font-size-3xl); }
}
@media (max-width: 480px) {
  .hero { padding: var(--space-xl) 0; }
  .hero__title { font-size: var(--font-size-2xl); }
}

/* --- Problem/Solution ------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}
.problem-item {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.problem-item__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.problem-item__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.problem-item__text strong {
  display: block;
  font-size: var(--font-size-base);
  color: var(--color-text);
  margin-bottom: 4px;
}

/* --- Modules Grid ----------------------------------------- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.module-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.module-card__icon {
  font-size: 2.25rem;
  margin-bottom: var(--space-sm);
}
.module-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}
.module-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}
.module-card--highlight {
  border-color: var(--color-primary-light);
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 100%);
}

@media (max-width: 900px) {
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
}

/* --- Feature Block (2 col, alternating) ------------------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.feature-block--reverse .feature-block__visual {
  order: -1;
}
.feature-block__content {}
.feature-block__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}
.feature-block__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.75;
}
.feature-block__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.feature-block__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text);
}
.feature-block__list li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.feature-block__visual {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
}
.feature-block__visual-icon {
  font-size: 4rem;
  opacity: .8;
}
.feature-block__visual-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
}

@media (max-width: 768px) {
  .feature-block { grid-template-columns: 1fr; }
  .feature-block--reverse .feature-block__visual { order: 0; }
}

/* --- Before/After Table ----------------------------------- */
.before-after {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.before-after table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
.before-after th {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-size-base);
  font-weight: 700;
  text-align: left;
}
.before-after th:first-child {
  background: #fdecea;
  color: #922b21;
  width: 50%;
}
.before-after th:last-child {
  background: var(--color-primary);
  color: #fff;
}
.before-after td {
  padding: 0.875rem var(--space-md);
  vertical-align: top;
  border-top: 1px solid var(--color-border);
  line-height: 1.55;
}
.before-after td:first-child {
  background: #fff9f9;
  color: var(--color-text-muted);
}
.before-after td:last-child {
  background: #f0f7ff;
  color: var(--color-text);
  font-weight: 500;
}
.before-after tr:nth-child(even) td:first-child { background: #fff3f2; }
.before-after tr:nth-child(even) td:last-child  { background: #e8f4fd; }

@media (max-width: 600px) {
  .before-after table, .before-after thead, .before-after tbody,
  .before-after th, .before-after td, .before-after tr { display: block; }
  .before-after thead tr { display: none; }
  .before-after td {
    position: relative;
    padding-left: 45%;
  }
  .before-after td::before {
    position: absolute;
    left: var(--space-sm);
    top: 0.875rem;
    width: 40%;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
  }
  .before-after td:first-child::before { content: 'Prima'; color: #922b21; }
  .before-after td:last-child::before  { content: 'Con evoHSE'; color: var(--color-primary); }
}

/* --- Benefits --------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}
.benefit-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}
.benefit-card__icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.benefit-card__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.benefit-card__text {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.7);
  line-height: 1.6;
}

/* --- CTA Band --------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d35400 100%);
  padding: var(--space-xl) 0;
  text-align: center;
  color: #fff;
}
.cta-band__title {
  font-size: var(--font-size-3xl);
  color: #fff;
  margin-bottom: var(--space-sm);
}
.cta-band__text {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.9);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Steps / Process -------------------------------------- */
.steps {
  display: flex;
  gap: 0;
  position: relative;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: var(--space-md);
  position: relative;
}
.step::after {
  content: '→';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-primary-light);
}
.step:last-child::after { display: none; }
.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: var(--font-size-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}
.step__title { font-size: var(--font-size-base); font-weight: 700; margin-bottom: 4px; }
.step__text  { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* --- Feature List (page interne) -------------------------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.feature-item__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.feature-item__icon { font-size: 1.75rem; }
.feature-item__title { font-size: var(--font-size-lg); font-weight: 700; color: var(--color-primary); }
.feature-item__text { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.65; }
.feature-item__tag {
  display: inline-block;
  margin-top: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8f4fd;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  align-self: flex-start;
}

/* --- Contact Form ----------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}
.form-grid .form-full { grid-column: 1 / -1; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}
textarea { min-height: 120px; resize: vertical; }
.form-submit { margin-top: var(--space-sm); }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* --- Page Hero (pagine interne) --------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-xl) 0;
  color: #fff;
}
.page-hero__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: var(--space-xs);
}
.page-hero__title {
  font-size: var(--font-size-3xl);
  color: #fff;
  margin-bottom: var(--space-sm);
  max-width: 760px;
}
.page-hero__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.85);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

/* --- Footer ----------------------------------------------- */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.7);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__brand-name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-xs);
}
.footer__brand-name span { color: var(--color-accent); }
.footer__tagline {
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-md);
  line-height: 1.65;
}
.footer__col-title {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__links a {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* --- Utility ---------------------------------------------- */
.text-center  { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.gap-sm { gap: var(--space-sm); }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }

/* --- Animations ------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   APP MOCKUP COMPONENTS
   ============================================================ */

/* Window chrome */
.app-window {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 64px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.06);
  overflow: hidden;
  width: 100%;
}
.app-window__bar {
  background: #f0f2f5;
  border-bottom: 1px solid var(--color-border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-window__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-window__dot:nth-child(1) { background: #ff5f57; }
.app-window__dot:nth-child(2) { background: #febc2e; }
.app-window__dot:nth-child(3) { background: #28c840; }
.app-window__bar-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-left: 8px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sidebar */
.app-window__layout { display: flex; }
.app-window__sidebar {
  width: 50px;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 6px;
  flex-shrink: 0;
}
.app-window__sidebar-icon {
  width: 30px; height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: default;
  transition: background var(--transition);
}
.app-window__sidebar-icon--active { background: var(--color-accent); }
.app-window__content {
  flex: 1;
  padding: 12px 14px;
  min-width: 0;
}

/* Mockup internal typography */
.mock-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mock-sub {
  font-size: 0.62rem;
  color: var(--color-text-muted);
}

/* Mini stat cards inside mockup */
.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}
.mock-stat {
  background: var(--color-bg-alt);
  border-radius: 6px;
  padding: 7px 8px;
  text-align: center;
}
.mock-stat__num {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 2px;
}
.mock-stat__num--primary { color: var(--color-primary); }
.mock-stat__num--red     { color: #ef4444; }
.mock-stat__num--yellow  { color: #f59e0b; }
.mock-stat__num--green   { color: #22c55e; }
.mock-stat__label {
  font-size: 0.58rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Deadline rows */
.mock-deadline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 5px;
  margin-bottom: 5px;
  border-left: 3px solid;
}
.mock-deadline--urgent  { background: #fef2f2; border-color: #ef4444; }
.mock-deadline--warning { background: #fffbeb; border-color: #f59e0b; }
.mock-deadline--ok      { background: #f0fdf4; border-color: #22c55e; }
.mock-deadline__info { flex: 1; min-width: 0; }
.mock-deadline__title {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-deadline__company {
  font-size: 0.58rem;
  color: var(--color-text-muted);
}
.mock-deadline__date {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Worker rows (formazione) */
.mock-worker-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f2f5;
}
.mock-worker-row:last-of-type { border-bottom: none; }
.mock-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-worker-name {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--color-text);
  min-width: 88px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-progress {
  flex: 1;
  height: 5px;
  background: #e8ecf0;
  border-radius: 999px;
  overflow: hidden;
}
.mock-progress__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .8s ease;
}
.mock-progress__fill--ok      { background: #22c55e; }
.mock-progress__fill--warning { background: #f59e0b; }
.mock-progress__fill--danger  { background: #ef4444; }
.mock-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-dot--ok      { background: #22c55e; }
.mock-dot--warning { background: #f59e0b; }
.mock-dot--danger  { background: #ef4444; }

/* Pills row */
.mock-pills {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
}
.mock-pill--green  { background: #d1fae5; color: #065f46; }
.mock-pill--yellow { background: #fef3cd; color: #856404; }
.mock-pill--red    { background: #fde8e8; color: #9b1c1c; }
.mock-pill--blue   { background: #dbeafe; color: #1e40af; }

/* Portal: document card */
.mock-doc-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 9px 10px;
  margin-bottom: 8px;
}
.mock-doc-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
}
.mock-doc-icon { font-size: 0.9rem; flex-shrink: 0; }
.mock-doc-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-doc-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mock-doc-badge--waiting { background: #fef3cd; color: #856404; }
.mock-doc-badge--done    { background: #d1fae5; color: #065f46; }
.mock-readers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.mock-reader {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Portal: adempimento approval */
.mock-ademp {
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 5px;
  padding: 7px 9px;
  margin-bottom: 7px;
}
.mock-ademp__title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}
.mock-ademp__sub {
  font-size: 0.58rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.mock-btn-row { display: flex; gap: 4px; }
.mock-btn {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  border: none;
  cursor: default;
}
.mock-btn--ok  { background: #d1fae5; color: #065f46; }
.mock-btn--ko  { background: #fde8e8; color: #9b1c1c; }

/* Risk assessment mockup */
.mock-risk-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.mock-risk-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mock-risk-badge--medium { background: #fef3cd; color: #856404; }
.mock-risk-badge--high   { background: #fde8e8; color: #9b1c1c; }
.mock-risk-badge--low    { background: #d1fae5; color: #065f46; }
.mock-risk-dots {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  align-items: center;
}
.mock-risk-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #e8ecf0;
}
.mock-risk-dot--green  { background: #22c55e; }
.mock-risk-dot--yellow { background: #f59e0b; }
.mock-risk-dot--red    { background: #ef4444; }
.mock-bar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.mock-bar-label {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  min-width: 110px;
  white-space: nowrap;
}
.mock-bar {
  flex: 1;
  height: 5px;
  background: #e8ecf0;
  border-radius: 999px;
  overflow: hidden;
}
.mock-bar__fill {
  height: 100%;
  border-radius: 999px;
}
.mock-bar__fill--green  { background: #22c55e; }
.mock-bar__fill--yellow { background: #f59e0b; }
.mock-bar__fill--red    { background: #ef4444; }
.mock-bar-val {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text);
  min-width: 22px;
  text-align: right;
  flex-shrink: 0;
}
.mock-risk-step-row {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.mock-risk-step {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.mock-risk-step--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ============================================================
   BACKGROUND PATTERNS & DECORATORS
   ============================================================ */

.bg-dots {
  background-image: radial-gradient(circle, rgba(26,82,118,.12) 1px, transparent 1px);
  background-size: 22px 22px;
}
.bg-grid {
  background-image:
    linear-gradient(rgba(26,82,118,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,82,118,.07) 1px, transparent 1px);
  background-size: 36px 36px;
}
/* Hero ha un gradiente come background-image: il bg-grid lo sovrascrive.
   Questa regola specifica ripristina il gradiente, sovrappone la griglia
   e aggiunge la foto HSE come sfondo lieve sul fondo. */
.hero.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(135deg, rgba(21,67,96,.83) 0%, rgba(26,82,118,.78) 55%, rgba(46,134,193,.75) 100%),
    url('../img/hero-bg.jpg');
  background-size: 36px 36px, 36px 36px, auto, cover;
  background-position: center, center, center, center top;
  background-color: var(--color-primary-dark);
}

/* Sezione blu media — "La Soluzione" */
.section--feature {
  background: linear-gradient(135deg, #1a3a5c 0%, #1a5276 60%, #2471a3 100%);
  color: #fff;
}
.section--feature h1,
.section--feature h2,
.section--feature h3  { color: #fff; }
.section--feature .section-label    { color: rgba(255,255,255,.6); }
.section--feature .section-subtitle { color: rgba(255,255,255,.82); }
.section--feature .step__number { background: var(--color-accent); color: #fff; }
.section--feature .step__title  { color: #fff; }
.section--feature .step__text   { color: rgba(255,255,255,.75); }
.section--feature .step::after  { color: rgba(255,255,255,.35); }

/* Sezione blu cielo — "Portale Azienda" */
.section--sky {
  background: linear-gradient(180deg, #f0f7ff 0%, #e4f0fa 100%);
}

/* Sezione calda — "Prima/Dopo" */
.section--warm {
  background: #fff7ed;
  border-top: 3px solid var(--color-accent);
}

/* Wave separator at bottom of hero */
.hero-wave {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-lg);
  height: 0;
}
.section-wave {
  display: block;
  width: calc(100% + 2px);
  margin-left: -1px;
  line-height: 0;
  position: relative;
  z-index: 1;
}

/* Colored top bar on module cards */
.module-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-sm);
}
.module-card--highlight::before {
  background: linear-gradient(90deg, var(--color-accent) 0%, #f39c12 100%);
}

/* Floating accent tag (used in feature sections) */
.accent-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 14px 5px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-sm);
}

/* Mockup visual wrapper (replaces generic feature-block__visual) */
.mockup-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.mockup-visual .app-window {
  max-width: 400px;
}
@media (max-width: 768px) {
  .mockup-visual { display: none; }
}

/* Logo in navbar */
.navbar__logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* ============================================================
   FEATURE PHOTOS
   ============================================================ */

/* Hero photo frame con floating badge */
.hero-photo-frame {
  position: relative;
  display: inline-block;
  padding-bottom: 32px; /* spazio per badge che sporge in basso */
}
.hero-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.2);
  border: 3px solid rgba(255,255,255,.2);
  display: block;
}
.hero-photo-badge {
  position: absolute;
  bottom: 0;
  left: -24px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
  min-width: 240px;
  pointer-events: none;
  border-left: 4px solid var(--color-success);
}
.hero-photo-badge__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-success);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(30,132,73,.2);
}
.hero-photo-badge__body { display: flex; flex-direction: column; gap: 1px; }
.hero-photo-badge__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.hero-photo-badge__sub {
  font-size: 0.68rem;
  color: var(--color-text-muted);
}
/* Secondo badge in alto a destra */
.hero-photo-badge--tr {
  bottom: auto;
  top: -16px;
  left: auto;
  right: -20px;
  min-width: 200px;
  border-left: none;
  border-top: 4px solid var(--color-accent);
}
@media (max-width: 900px) {
  .hero-photo-badge { display: none; }
}

.feature-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.photo-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .feature-img { height: 220px; }
  .photo-visual { display: none; }
}
