/* ============================================================
   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) {
  .js .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .js .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; }
}

/* ============================================================
   V2 — DVR con AI, icone, nuovi componenti
   ============================================================ */

:root {
  --navy-950: #081726;
  --navy-900: #0c2238;
  --navy-800: #12314f;
  --color-ai:       #f5b83d;   /* il segno dell'AI: la scintilla dei comandi dell'app */
  --color-ai-soft:  #fff6e0;
  --color-ai-ink:   #7a5200;
  --color-green:    #5e9a1c;   /* il verde del logo */
  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --radius-xl: 18px;
}

h1, h2, h3, .section-title, .hero__title, .page-hero__title,
.feature-block__title, .cta-band__title {
  font-family: var(--font-display);
  letter-spacing: -.02em;
}
.section-title { font-weight: 800; }
.section { padding: 5rem 0; }
@media (max-width: 768px) {
  .section { padding: 3.25rem 0; }
  .section-title { font-size: var(--font-size-2xl); }
}

/* --- Icone (Material Symbols, le stesse dell'app) ---------- */
.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  overflow: hidden;
  max-width: 1em;
  flex-shrink: 0;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga';
}
.icon-tile {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f2fa;
  color: var(--color-primary);
  flex-shrink: 0;
}
.icon-tile--ai     { background: var(--color-ai-soft); color: var(--color-ai-ink); }
.icon-tile--orange { background: #fdebd9; color: var(--color-accent-dark); }
.icon-tile--green  { background: #e9f4dc; color: #3f6d10; }
.icon-tile--dark   { background: rgba(255,255,255,.1); color: var(--color-ai); }

/* Le icone dentro i componenti esistenti */
.problem-item__icon, .feature-item__icon, .module-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f2fa;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0;
}
.benefit-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  color: var(--color-ai);
}
.benefit-card__icon .ms { font-size: 28px; }
.benefit-card { text-align: left; }
.access-card__icon .ms { font-size: 56px; color: var(--color-accent); }

/* --- Pulsanti ---------------------------------------------- */
.btn { border-radius: 10px; }
.btn .ms { font-size: 20px; }
.btn-primary { box-shadow: 0 6px 18px rgba(230,126,34,.28); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.0625rem; }
.btn-ghost { border-width: 1.5px; border-color: rgba(255,255,255,.35); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary-light);
}
.link-arrow .ms { font-size: 18px; transition: transform var(--transition); }
.link-arrow:hover .ms { transform: translateX(3px); }

/* --- Navbar ------------------------------------------------- */
.navbar { background: rgba(255,255,255,.94); backdrop-filter: blur(10px); }
.navbar__inner { height: 68px; }
.navbar__logo { display: flex; align-items: center; }
.navbar__link-ai {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text) !important;
  font-weight: 600 !important;
}
.navbar__link-ai .ms { font-size: 17px; color: var(--color-ai); }
.navbar__links a.btn-primary,
.navbar__links a.btn-primary:hover { color: #fff; }
@media (max-width: 960px) {
  .navbar__links { gap: var(--space-sm); }
  .navbar__cta { margin-left: 0; padding: .6rem 1rem; }
}
@media (max-width: 768px) { .navbar__links { top: 68px; } }

/* --- Hero AI ------------------------------------------------ */
.hero--ai {
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(46,134,193,.38) 0%, transparent 62%),
    radial-gradient(620px 380px at 6% 96%, rgba(245,184,61,.14) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
}
.hero--ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero--ai .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 3.5rem; }
.hero--ai .hero__title { font-size: 3.1rem; font-weight: 800; line-height: 1.08; }
.hero--ai .hero__title em { color: var(--color-ai); display: inline; }
.hero--ai .hero__subtitle { max-width: 540px; }
.hero--ai .hero__pill { border-color: rgba(245,184,61,.45); background: rgba(245,184,61,.1); color: #ffe2a3; }
.hero--ai .hero__pill .ms { font-size: 16px; color: var(--color-ai); }
.hero__trust { font-size: .8125rem; color: rgba(255,255,255,.62); margin-top: 14px; }
.hero__trust a { color: #ffe2a3; text-decoration: underline; text-underline-offset: 3px; }

.hero-stage { position: relative; width: 100%; padding: 26px 0 64px 28px; }
.hero-stage .app-window {
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
}
.hero-stage .app-window img { width: 100%; height: auto; }

/* La proposta dell'AI, disegnata: è il gesto che il sito racconta */
.ai-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 300px;
  background: #fff;
  color: var(--color-text);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  border-top: 3px solid var(--color-ai);
}
.ai-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .875rem;
  margin-bottom: 10px;
}
.ai-card__head .ms { font-size: 18px; color: var(--color-ai); }
.ai-card__head small { margin-left: auto; font-family: var(--font-base); font-weight: 500; font-size: .6875rem; color: var(--color-text-muted); }
.ai-card__score {
  display: inline-block;
  background: #c62828;
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.ai-card__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: var(--color-text);
  padding: 4px 0;
}
.ai-card__row .ms { font-size: 17px; color: var(--color-primary); }
.ai-card__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ai-card__btn {
  font-size: .72rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.ai-card__btn--go { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.float-chip {
  position: absolute;
  top: 0;
  right: -6px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-text);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .75rem;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.float-chip small { display: block; font-weight: 500; color: var(--color-text-muted); font-size: .6875rem; }
.float-chip .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.float-chip .ms { font-size: 19px; }

@media (max-width: 1040px) {
  .hero--ai .hero__title { font-size: 2.6rem; }
}
@media (max-width: 900px) {
  .hero--ai { padding: 3.5rem 0 4rem; }
  .hero--ai .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero--ai .hero__visual { display: flex; }
  .hero--ai .hero__title { font-size: 2.25rem; }
  .hero-stage { padding: 0 0 0 0; }
  .float-chip { display: none; }
  .ai-card { position: relative; width: auto; margin: -28px 16px 0; }
}
@media (max-width: 480px) {
  .hero--ai .hero__title { font-size: 1.875rem; }
}

/* --- Il principio: l'AI propone, il consulente decide ------- */
.principle {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr);
  gap: 3.5rem;
  align-items: center;
}
.principle__title { font-size: 2.25rem; font-weight: 800; line-height: 1.12; }
.principle__title span { color: var(--color-accent); }
.principle__text { color: var(--color-text-muted); font-size: var(--font-size-lg); margin-top: var(--space-sm); line-height: 1.65; }
.principle__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.principle__item {
  display: flex;
  gap: 14px;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.principle__item strong { display: block; font-size: .975rem; margin-bottom: 3px; }
.principle__item p { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.55; }
@media (max-width: 900px) {
  .principle { grid-template-columns: 1fr; gap: 2rem; }
  .principle__title { font-size: 1.75rem; }
}
@media (max-width: 560px) { .principle__list { grid-template-columns: 1fr; } }

/* --- Le fasi in home --------------------------------------- */
.section--ink {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
}
.section--ink .section-title { color: #fff; }
.section--ink .section-label { color: var(--color-ai); }
.section--ink .section-subtitle { color: rgba(255,255,255,.75); }
.phase-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: fase;
}
.phase-card {
  counter-increment: fase;
  position: relative;
  padding: 1.5rem 1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.phase-card:hover { background: rgba(255,255,255,.09); border-color: rgba(245,184,61,.45); transform: translateY(-3px); }
.phase-card::before {
  content: counter(fase, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.phase-card__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: #fff; margin: 6px 0 10px; }
.phase-card__ai {
  display: flex;
  gap: 8px;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.82);
  line-height: 1.55;
}
.phase-card__ai .ms { font-size: 17px; color: var(--color-ai); margin-top: 2px; }
.phase-shot { margin-top: 3rem; }
.phase-cta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
@media (max-width: 900px) { .phase-rail { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .phase-rail { grid-template-columns: 1fr; } }

/* --- Schermate dell'app ------------------------------------- */
.shot { margin: 0; }
.shot .app-window { box-shadow: 0 24px 60px rgba(12,34,56,.18), 0 4px 14px rgba(12,34,56,.08); }
.shot img { width: 100%; height: auto; cursor: zoom-in; }
.shot--crop .shot__view { max-height: 430px; overflow: hidden; position: relative; }
.shot--crop .shot__view::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 100%);
  pointer-events: none;
}
.shot figcaption {
  font-size: .8125rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-align: center;
}
.section--ink .shot figcaption { color: rgba(255,255,255,.6); }
.shot--phone img { max-width: 440px; margin: 0 auto; }

/* Il menu resta in alto: «sticky» vale dentro il contenitore, quindi lo si dà al contenitore */
#site-header { position: sticky; top: 0; z-index: 100; min-height: 69px; background: #fff; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8,23,38,.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #fff; }

/* --- I moduli di valore ------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.vcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.vcard:hover { box-shadow: 0 18px 44px rgba(12,34,56,.12); transform: translateY(-4px); border-color: #c5d6e6; }
.vcard__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700; color: var(--color-text); }
.vcard__text { font-size: .9375rem; color: var(--color-text-muted); line-height: 1.6; }
.vcard__gain {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--color-border);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.vcard__gain .ms { font-size: 18px; color: var(--color-green); margin-top: 1px; }
.vcard--feature {
  grid-column: span 2;
  background:
    radial-gradient(520px 280px at 100% 0%, rgba(245,184,61,.2) 0%, transparent 65%),
    linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-color: transparent;
  color: #fff;
}
.vcard--feature .vcard__title { color: #fff; font-size: 1.5rem; }
.vcard--feature .vcard__text { color: rgba(255,255,255,.8); max-width: 520px; }
.vcard--feature .vcard__gain { border-top-color: rgba(255,255,255,.18); color: #fff; }
.vcard--feature .vcard__gain .ms { color: var(--color-ai); }
.vcard--feature .link-arrow { color: #ffe2a3; }
.vcard__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-ai-ink);
  background: var(--color-ai);
  border-radius: 999px;
  padding: 4px 11px;
}
.vcard__badge .ms { font-size: 14px; }
@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .value-grid { grid-template-columns: 1fr; }
  .vcard--feature { grid-column: auto; }
}

/* I moduli alla pari: stessa misura, il DVR si distingue per il colore */
.vcard--feature { grid-column: auto; }
.vcard--feature .vcard__title { font-size: 1.1875rem; }
.vcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vcard__list { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.vcard__list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  line-height: 1.45;
}
.vcard__list li::before {
  content: '';
  position: absolute;
  left: 2px; top: .5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.vcard--feature .vcard__list li { color: rgba(255,255,255,.9); }
.vcard--feature .vcard__list li::before { background: var(--color-ai); }
.vcard .link-arrow { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: var(--font-size-sm); }
.vcard--feature .link-arrow { border-top-color: rgba(255,255,255,.16); }

/* La barra dei moduli in fondo all'hero: quanti sono, a colpo d'occhio */
.module-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 4rem;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
}
.module-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  background: rgba(12,34,56,.72);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background var(--transition);
}
.module-bar__item:hover { background: rgba(46,134,193,.35); }
.module-bar__item .ms { font-size: 22px; color: rgba(255,255,255,.75); }
.module-bar__item small { display: block; font-weight: 400; font-size: .6875rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.module-bar__item--ai .ms { color: var(--color-ai); }
@media (max-width: 1040px) { .module-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px)  { .module-bar { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; } }

/* --- Dove sono: voce del menu attiva e percorso -------------- */
.navbar__links a:not(.btn) { position: relative; padding: 6px 0; }
.navbar__links a.active:not(.btn) { color: var(--color-primary) !important; font-weight: 700 !important; }
.navbar__links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
}
@media (max-width: 768px) {
  .navbar__links a:not(.btn) { padding: .625rem 0; }
  .navbar__links a.active:not(.btn)::after { left: -12px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.75);
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  transition: background var(--transition), color var(--transition);
}
.crumbs a:hover { background: rgba(255,255,255,.12); color: #fff; }
.crumbs a .ms { font-size: 16px; }
.crumbs > .ms { font-size: 18px; color: rgba(255,255,255,.4); }
.crumbs .page-hero__label { margin-bottom: 0; color: #fff; letter-spacing: .06em; }
.page-hero--ai .crumbs .page-hero__label { color: var(--color-ai); }

/* --- Video -------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 980px; margin: 0 auto; }
.video-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.video-card:hover { box-shadow: 0 18px 44px rgba(12,34,56,.14); transform: translateY(-4px); }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-900); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,23,38,0) 45%, rgba(8,23,38,.45) 100%); }
.video-card__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform var(--transition);
}
.video-card:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); }
.video-card__play .ms { font-size: 36px; }
.video-card__body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-card__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent-dark); }
.video-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; color: var(--color-text); }
.video-card__text { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.55; }
.video-card .link-arrow { margin-top: auto; padding-top: 12px; font-size: var(--font-size-sm); }
.video-grid--3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
.video-grid--1 { grid-template-columns: 1fr; max-width: 560px; }
@media (max-width: 900px) { .video-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .video-grid, .video-grid--3 { grid-template-columns: 1fr; } }

/* --- Per chi ------------------------------------------------ */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.audience__card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--color-border);
}
.audience__card h3 { font-size: 1.125rem; margin: 14px 0 8px; }
.audience__card p { font-size: .9375rem; color: var(--color-text-muted); line-height: 1.6; }
.audience__card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.audience__card li { display: flex; gap: 8px; font-size: var(--font-size-sm); }
.audience__card li .ms { font-size: 17px; color: var(--color-green); margin-top: 2px; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr; } }

/* --- Pagina DVR con AI: le fasi ----------------------------- */
.page-hero--ai {
  background:
    radial-gradient(800px 420px at 85% 0%, rgba(46,134,193,.36) 0%, transparent 62%),
    radial-gradient(520px 320px at 0% 100%, rgba(245,184,61,.13) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 50%, var(--navy-800) 100%);
  padding: 5rem 0;
}
.page-hero--ai .page-hero__label { color: var(--color-ai); display: inline-flex; align-items: center; gap: 6px; }
.page-hero--ai .page-hero__label .ms { font-size: 17px; }
.page-hero--ai .page-hero__title { font-size: 2.75rem; font-weight: 800; max-width: 820px; line-height: 1.1; }
.page-hero--ai .page-hero__title em { font-style: normal; color: var(--color-ai); }
@media (max-width: 768px) { .page-hero--ai .page-hero__title { font-size: 2rem; } }

.phase-nav {
  position: sticky;
  top: 68px;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.phase-nav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.phase-nav__inner::-webkit-scrollbar { display: none; }
.phase-nav a {
  white-space: nowrap;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.phase-nav a:hover { color: var(--color-primary); border-color: var(--color-primary-light); background: #f0f7ff; }
.phase-nav a b { color: var(--color-accent); margin-right: 5px; font-weight: 800; }

.phase {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3.5rem;
  align-items: center;
  scroll-margin-top: 130px;
}
.phase--reverse .phase__media { order: -1; }
.phase__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.phase__title { font-size: 1.875rem; font-weight: 800; line-height: 1.15; margin-bottom: 12px; }
.phase__text { color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.duo { display: grid; gap: 10px; }
.duo__box { border-radius: var(--radius-lg); padding: 14px 16px; font-size: .9375rem; line-height: 1.55; }
.duo__box h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-base);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.duo__box h4 .ms { font-size: 17px; }
.duo__box--ai { background: var(--color-ai-soft); border: 1px solid #f3dfa9; }
.duo__box--ai h4 { color: var(--color-ai-ink); }
.duo__box--you { background: #eef5fb; border: 1px solid #cfe0ee; }
.duo__box--you h4 { color: var(--color-primary); }
.duo__box ul { display: flex; flex-direction: column; gap: 4px; }
.duo__box li { padding-left: 14px; position: relative; }
.duo__box li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45; }
.phase + .phase { margin-top: 5.5rem; }
@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; gap: 1.75rem; }
  .phase--reverse .phase__media { order: 0; }
  .phase + .phase { margin-top: 3.5rem; }
  .phase__title { font-size: 1.5rem; }
}

/* --- Nota sull'attivazione dell'AI -------------------------- */
.note-ai {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-ai-soft);
  border: 1px solid #f3dfa9;
  color: #4a3500;
  font-size: .9375rem;
  line-height: 1.6;
}
.note-ai strong { color: #2f2200; }
.note-ai a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.note-ai .ms { color: var(--color-ai-ink); margin-top: 2px; }

/* --- Domande ------------------------------------------------ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 0 1.25rem;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--color-primary-light); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--color-text-muted); padding-bottom: 1.15rem; line-height: 1.7; font-size: .9375rem; }

/* --- Prima/dopo, CTA, footer -------------------------------- */
.before-after th .ms { font-size: 20px; vertical-align: -4px; margin-right: 6px; }
.section--warm { background: #fbfaf7; border-top: none; }
.cta-band {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(230,126,34,.28) 0%, transparent 65%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 100%);
  padding: 5rem 0;
}
.cta-band__title { font-weight: 800; }
.cta-band__text { color: rgba(255,255,255,.78); }
.cta-band__note { font-size: var(--font-size-sm); color: rgba(255,255,255,.6); margin-top: 1.25rem; }
.cta-band__note a { color: #ffe2a3; text-decoration: underline; text-underline-offset: 3px; }
.footer { background: var(--navy-950); }
.footer__logo { height: 56px; width: auto; margin-bottom: var(--space-sm); background: #fff; border-radius: 10px; padding: 4px 8px; }
.page-hero { background: linear-gradient(150deg, var(--navy-900) 0%, var(--color-primary) 100%); padding: 4.5rem 0; }
.page-hero__title { font-weight: 800; }

/* ============================================================
   V3 — Profondità: fotografie, livelli, luce
   ============================================================ */

:root {
  --shadow-soft: 0 2px 6px rgba(12,34,56,.05), 0 14px 40px rgba(12,34,56,.09);
  --shadow-lift: 0 6px 16px rgba(12,34,56,.08), 0 30px 70px rgba(12,34,56,.18);
  --radius-2xl: 26px;
}
body { background: #fbfcfe; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent-dark);
}
.section-label::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--color-accent); }
.section-header--center .section-label::after { content: ''; width: 26px; height: 2px; border-radius: 2px; background: var(--color-accent); }
.section--ink .section-label, .section--dark .section-label { color: var(--color-ai) !important; }
.section--ink .section-label::before, .section--ink .section-label::after,
.section--dark .section-label::before, .section--dark .section-label::after { background: var(--color-ai); }
.section-title { font-size: 2.5rem; line-height: 1.12; }
.section-title em, .feature-block__title em { font-style: normal; color: var(--color-accent); }
.section-header { margin-bottom: 3.25rem; }
@media (max-width: 768px) { .section-title { font-size: 1.875rem; } }

/* Fondi con una trama leggera al posto del colore pieno */
.section--alt {
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(46,134,193,.10) 0%, transparent 60%),
    linear-gradient(180deg, #eef5fb 0%, #f6f9fc 100%);
}
.section--sky {
  background:
    radial-gradient(700px 380px at 0% 100%, rgba(230,126,34,.08) 0%, transparent 60%),
    linear-gradient(180deg, #f3f8fd 0%, #eaf2f9 100%);
}

/* --- Hero: fotografia e interfaccia insieme ----------------- */
.hero--ai { padding: 4.5rem 0 0; }
.hero--ai .hero__inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero--ai .hero__title { font-size: 3.35rem; }
.hero-art { position: relative; width: 100%; max-width: 540px; margin-left: auto; padding: 18px 0 70px 56px; }
.hero-art::before {
  content: '';
  position: absolute;
  right: -34px; top: -8px;
  width: 210px; height: 210px;
  border-radius: 50%;
  border: 1.5px dashed rgba(245,184,61,.5);
}
.hero-art::after {
  content: '';
  position: absolute;
  left: 18px; bottom: 26px;
  width: 150px; height: 150px;
  background-image: radial-gradient(rgba(255,255,255,.35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}
.hero-art__photo {
  position: relative;
  z-index: 1;
  border-radius: 30px 30px 30px 120px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 50px 110px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
}
.hero-art__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-art__photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(8,23,38,0) 35%, rgba(8,23,38,.72) 100%);
}
.hero-art .ai-card { z-index: 3; left: 0; bottom: 14px; width: 310px; }
.hero-art .float-chip { z-index: 3; top: 58px; right: -26px; }
.hero-art .float-chip--doc { top: auto; bottom: 150px; right: -40px; }
@keyframes galleggia { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .float-chip { animation: galleggia 6s ease-in-out infinite; }
  .hero-art .float-chip--doc { animation-delay: -3s; }
}
.module-bar { margin-top: 3.5rem; transform: translateY(50%); margin-bottom: 0; box-shadow: 0 24px 60px rgba(8,23,38,.35); background: rgba(255,255,255,.14); }
.module-bar__item { background: #0f2a45; padding: 20px 16px; }
.module-bar__item:hover { background: #17406a; }
.hero--ai + .section { padding-top: 8.5rem; }
@media (max-width: 1040px) {
  .hero--ai .hero__title { font-size: 2.7rem; }
  .hero-art .float-chip { right: -6px; }
  .hero-art .float-chip--doc { right: -6px; }
}
@media (max-width: 900px) {
  .hero--ai { padding-top: 3rem; }
  .hero-art { margin: 0 auto; padding: 0 0 20px; max-width: 460px; }
  .hero-art::before, .hero-art::after { display: none; }
  .hero-art__photo { aspect-ratio: 4 / 3.4; border-radius: 24px; }
  .hero-art .ai-card { position: relative; width: auto; margin: -70px 14px 0; bottom: auto; }
  .hero-art .float-chip { display: none; }
  .module-bar { transform: none; margin: 2.5rem 0 3rem; }
  .hero--ai + .section { padding-top: 3.5rem; }
}

/* --- I moduli: una fotografia per ciascuno ------------------ */
.vcard { padding: 0; overflow: hidden; gap: 0; box-shadow: var(--shadow-soft); border-color: #e3eaf2; border-radius: 22px; }
.vcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.vcard__photo { position: relative; height: 168px; overflow: hidden; }
.vcard__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vcard:hover .vcard__photo img { transform: scale(1.06); }
.vcard__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,56,.05) 30%, rgba(12,34,56,.55) 100%); }
.vcard__photo .icon-tile {
  position: absolute;
  left: 22px; bottom: -22px;
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 24px rgba(12,34,56,.22);
}
.vcard__photo .icon-tile .ms { font-size: 27px; }
.vcard__photo .vcard__badge { position: absolute; right: 16px; top: 16px; z-index: 2; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.vcard__body { display: flex; flex-direction: column; gap: 10px; padding: 38px 24px 22px; flex: 1; }
.vcard--feature { background: linear-gradient(165deg, #0c2238 0%, #143a5e 100%); }
.vcard--feature .vcard__photo .icon-tile { background: var(--color-ai); color: #3b2800; }
.vcard--feature .vcard__photo::after { background: linear-gradient(180deg, rgba(12,34,56,.1) 20%, rgba(12,34,56,.85) 100%); }

/* --- Il principio: fotografia con l'interfaccia sopra ------- */
.principle { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4.5rem; }
.principle__art { position: relative; padding: 0 30px 44px 0; }
.principle__art > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 26px 26px 110px 26px; box-shadow: var(--shadow-lift); }
.principle__art::before {
  content: '';
  position: absolute;
  left: -22px; top: -22px;
  width: 58%; height: 62%;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(230,126,34,.22), rgba(245,184,61,.12));
  z-index: -1;
}
.principle__art .ai-card { right: 0; left: auto; bottom: 0; width: 280px; box-shadow: var(--shadow-lift); }
.principle__list { grid-template-columns: 1fr; gap: 0; margin-top: 1.75rem; }
.principle__item { border: none; border-top: 1px solid var(--color-border); border-radius: 0; background: none; padding: 1.1rem 0; }
.principle__item:last-child { border-bottom: 1px solid var(--color-border); }
.principle__title { font-size: 2.6rem; }
@media (max-width: 900px) {
  .principle { gap: 3rem; }
  .principle__art { padding: 0 0 30px; }
  .principle__art::before { display: none; }
  .principle__art .ai-card { position: relative; margin: -60px 14px 0; width: auto; }
}

/* --- Le fasi: una fonderia sullo sfondo ---------------------- */
.section--ink { position: relative; overflow: hidden; }
.section--photo::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--sfondo) center / cover no-repeat;
  opacity: .22;
  filter: saturate(.7);
}
.section--photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,34,56,.92) 0%, rgba(12,34,56,.55) 45%, rgba(12,34,56,.95) 100%);
}
.section--photo > .container { position: relative; z-index: 1; }
.phase-rail { gap: 1.1rem; }
.phase-card {
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.phase-card::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), #f39c12);
  color: #fff;
  font-size: .9375rem;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(230,126,34,.4);
}
.phase-card__title { margin-top: 14px; font-size: 1.1875rem; }
.phase-shot .app-window { box-shadow: 0 50px 120px rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; }

/* --- Fotografie delle sezioni: cornice e forma -------------- */
.photo-visual { position: relative; padding: 0 0 26px 26px; }
.photo-visual::before {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 62%; height: 66%;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(26,82,118,.16), rgba(46,134,193,.07));
}
.photo-visual::after {
  content: '';
  position: absolute;
  right: -18px; top: -18px;
  width: 120px; height: 120px;
  background-image: radial-gradient(rgba(230,126,34,.5) 1.6px, transparent 1.6px);
  background-size: 15px 15px;
  z-index: 0;
}
.feature-img { position: relative; z-index: 1; height: 400px; border-radius: 26px 26px 26px 100px; box-shadow: var(--shadow-lift); }
.feature-block--reverse .photo-visual { padding: 0 26px 26px 0; }
.feature-block--reverse .photo-visual::before { left: auto; right: 0; }
.feature-block--reverse .photo-visual::after { right: auto; left: -18px; }
.feature-block--reverse .feature-img { border-radius: 26px 26px 100px 26px; }
.feature-block { gap: 4.5rem; }
.feature-block__title { font-size: 2.125rem; line-height: 1.15; font-weight: 800; }
.feature-block__list li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e9f4dc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%233f6d10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
  margin-top: 0;
}
.feature-block__list li { font-size: .9375rem; align-items: center; gap: 12px; }
.photo-chip {
  position: absolute;
  z-index: 2;
  left: -6px; top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lift);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-text);
}
.photo-chip small { display: block; font-weight: 500; font-size: .72rem; color: var(--color-text-muted); }
.feature-block--reverse .photo-chip { left: auto; right: -6px; }
.shot .app-window { border-radius: 16px; box-shadow: var(--shadow-lift); }
@media (max-width: 768px) {
  .photo-visual { display: block; padding: 0; margin-top: 1.5rem; }
  .photo-visual::before, .photo-visual::after { display: none; }
  .feature-img, .feature-block--reverse .feature-img { height: 240px; border-radius: 20px; }
  .photo-chip { display: none; }
}

/* --- Fascia fotografica -------------------------------------- */
.band-photo { position: relative; overflow: hidden; color: #fff; padding: 7rem 0; background: var(--navy-900); }
.band-photo::before { content: ''; position: absolute; inset: 0; background: var(--sfondo) center 30% / cover no-repeat; }
.band-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,23,38,.96) 0%, rgba(8,23,38,.82) 42%, rgba(8,23,38,.25) 100%);
}
.band-photo .container { position: relative; z-index: 1; }
.band-photo__inner { max-width: 620px; }
.band-photo__title { font-size: 2.6rem; font-weight: 800; line-height: 1.12; color: #fff; }
.band-photo__title em { font-style: normal; color: var(--color-ai); }
.band-photo__text { font-size: var(--font-size-lg); color: rgba(255,255,255,.82); margin: 1.1rem 0 2rem; line-height: 1.65; }
.band-photo__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.band-photo__stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--color-ai); line-height: 1; }
.band-photo__stat span { font-size: var(--font-size-sm); color: rgba(255,255,255,.75); }
@media (max-width: 768px) {
  .band-photo { padding: 4rem 0; }
  .band-photo::after { background: rgba(8,23,38,.86); }
  .band-photo__title { font-size: 1.9rem; }
}

/* --- Per chi: una fotografia per ciascuno -------------------- */
.audience__card { padding: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow-soft); border-color: #e3eaf2; transition: box-shadow var(--transition), transform var(--transition); }
.audience__card:hover { box-shadow: var(--shadow-lift); transform: translateY(-5px); }
.audience__photo { position: relative; height: 200px; }
.audience__photo img { width: 100%; height: 100%; object-fit: cover; }
.audience__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,34,56,0) 40%, rgba(12,34,56,.7) 100%); }
.audience__photo h3 { position: absolute; left: 24px; bottom: 16px; z-index: 1; margin: 0; color: #fff; font-size: 1.3rem; }
.audience__body { padding: 20px 24px 24px; }

/* --- Testate delle pagine interne: fotografia a destra ------- */
.page-hero { position: relative; overflow: hidden; padding: 5rem 0; }
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
  background: var(--foto, none) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  opacity: .5;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 12% 100%, rgba(245,184,61,.14) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__title { font-size: 2.75rem; line-height: 1.1; max-width: 700px; }
.page-hero__subtitle { max-width: 600px; }
@media (max-width: 768px) {
  .page-hero::before { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
  .page-hero__title { font-size: 2rem; }
}

/* --- Schede e riquadri: ombre e bordi più morbidi ------------ */
.problem-item, .feature-item { border-radius: 18px; border-color: #e3eaf2; box-shadow: var(--shadow-soft); padding: 1.6rem; transition: box-shadow var(--transition), transform var(--transition); }
.problem-item:hover, .feature-item:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.feature-item__title { font-family: var(--font-display); font-size: 1.0625rem; color: var(--color-text); }
.feature-item__tag { background: #fdebd9; color: var(--color-accent-dark); }
.before-after { border-radius: 22px; box-shadow: var(--shadow-lift); border: none; }
.before-after th { padding: 1.1rem 1.5rem; font-family: var(--font-display); }
.before-after td { padding: 1rem 1.5rem; font-size: .9375rem; }
.before-after th:last-child { background: linear-gradient(135deg, var(--navy-800), var(--color-primary)); }
.benefit-card { border-radius: 20px; background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.steps { gap: 1rem; }
.step { background: #fff; border-radius: 18px; box-shadow: var(--shadow-soft); padding: 1.6rem 1.2rem; }
.step::after { right: -14px; z-index: 1; color: var(--color-accent); }
.step__number { background: linear-gradient(135deg, var(--color-accent), #f39c12); box-shadow: 0 8px 20px rgba(230,126,34,.35); border-radius: 14px; }
.section--feature .step { background: rgba(255,255,255,.08); box-shadow: none; }
.video-card { box-shadow: var(--shadow-soft); border-radius: 22px; }
.faq details { border-radius: 16px; box-shadow: var(--shadow-soft); border-color: #e3eaf2; }

/* --- CTA finale con fotografia -------------------------------- */
.cta-band { position: relative; overflow: hidden; padding: 6rem 0; }
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../img/hero-bg.jpg') center 40% / cover no-repeat;
  opacity: .2;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band__title { font-size: 2.6rem; max-width: 760px; margin-left: auto; margin-right: auto; }
@media (max-width: 768px) { .cta-band__title { font-size: 1.9rem; } }
/* Correzioni dopo la prima resa */
.module-bar { transform: none; margin: 3.5rem 0 4rem; }
.hero--ai + .section { padding-top: 5rem; }
.vcard__photo { overflow: visible; }
.vcard__photo img { display: block; }
.vcard__body { position: relative; z-index: 1; background: #fff; }
.vcard--feature .vcard__body { background: linear-gradient(180deg, #10304d 0%, #143a5e 100%); }
.vcard__photo .icon-tile { z-index: 3; }
.vcard:hover .vcard__photo img { transform: none; }
.principle__art > img { height: auto; }
.audience__photo img, .vcard__photo img { height: 100%; }

/* Le fotografie di sfondo stanno in un elemento vero: l'indirizzo si scrive nella pagina */
.bg-foto { position: absolute; inset: 0; background-size: cover; background-position: center; background-repeat: no-repeat; }
.section--photo::before, .band-photo::before, .page-hero::before { display: none; }
.section--photo > .bg-foto { opacity: .5; filter: saturate(.8); }
.section--photo::after { background: linear-gradient(180deg, rgba(12,34,56,.94) 0%, rgba(12,34,56,.6) 40%, rgba(12,34,56,.72) 70%, rgba(12,34,56,.97) 100%); }
.shot.phase-shot { margin-top: 3.5rem; }
.band-photo > .bg-foto { background-position: center 30%; }
.page-hero > .bg-foto {
  left: auto;
  width: 58%;
  opacity: .5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
@media (max-width: 768px) {
  .page-hero > .bg-foto { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
}

.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: var(--space-sm); }
.footer__brand img { height: 62px; background: #fff; border-radius: 14px; padding: 5px 9px; }
.footer__brand .footer__brand-name { margin: 0; }
