/* =========================
   RESPONSIVE
   Breakpoint Bootstrap: 576 / 768 / 992 / 1200 / 1400.
   Colonne e spazi sono in row/col nell'HTML.
   Qui restano hero, workspace e misure dei titoli.
========================= */

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

/* =========================
   576
========================= */

@media (min-width: 576px) {
  .hero-actions .btn {
    width: auto;
    justify-content: flex-start;
  }

  .win-slot {
    width: min(78%, 360px);
  }
}

/* =========================
   768
========================= */

@media (min-width: 768px) {
  :root {
    --text-hero: clamp(3rem, 7vw, 6.875rem);
  }

  .hero-title .split {
    display: inline;
  }

  .workspace {
    max-width: 560px;
  }

  .workspace-stage {
    display: block;
    height: 500px;
  }

  .crop {
    display: block;
  }

  .win-slot {
    position: absolute;
    width: auto;
  }

  .win-dash,
  .win-ai,
  .win-auto {
    align-self: auto;
  }

  .win-crm { width: 52%; max-width: 260px; top: 20px; left: 16px; z-index: 2; }
  .win-dash { width: 44%; max-width: 220px; top: 16px; right: 16px; z-index: 1; }
  .win-quote { width: 48%; max-width: 248px; top: 168px; left: 12px; z-index: 4; }
  .win-ai { width: 44%; max-width: 228px; top: 186px; right: 16px; z-index: 3; }
  .win-auto { width: 66%; max-width: 310px; top: 386px; left: 16px; bottom: auto; z-index: 2; }
}

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .win-crm .win { transform: rotate(-1deg); }
  .win-dash .win { transform: rotate(0.8deg); }
  .win-quote .win { transform: rotate(0.25deg); }
  .win-ai .win { transform: rotate(-0.4deg); }
  .win-auto .win { transform: rotate(0.5deg); }
}

/* =========================
   992
========================= */

@media (min-width: 992px) {
  .hero-lower {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  .workspace {
    max-width: none;
    margin-left: auto;
    width: 100%;
  }

  .cases-title,
  .doors-title,
  #routes-title,
  .contact-title {
    font-size: clamp(2.2rem, 2.7vw, 3.45rem);
  }
}

@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .workspace-stage {
    animation: workspace-drift 9s ease-in-out infinite alternate;
  }
}

/* =========================
   1200
   Headline a sinistra, workspace a destra
========================= */

@media (min-width: 1200px) {
  :root {
    --text-hero: clamp(4rem, 6.3vw, 5.75rem);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: max-content minmax(280px, 560px);
    column-gap: clamp(28px, 3vw, 64px);
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(8px, 2vh, 24px);
  }

  .hero-grid .kicker {
    grid-column: 1;
    grid-row: 1;
  }

  .hero-title {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-title .l {
    white-space: nowrap;
  }

  .hero-lower {
    display: contents;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 3;
    width: 0;
    min-width: 100%;
    margin-top: clamp(28px, 4vh, 40px);
  }

  .workspace {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 560px;
    margin-left: 0;
  }
}
