/* Varianti grafiche derivate dai quattro concept approvati. */
:root {
  --ink: oklch(22% 0.115 283);
  --ink-soft: oklch(35% 0.07 283);
  --purple: oklch(48% 0.16 315);
  --purple-deep: oklch(34% 0.14 306);
  --lime: oklch(83% 0.19 121);
  --lime-soft: oklch(92% 0.105 121);
  --sky: oklch(91% 0.035 245);
  --sky-soft: oklch(96% 0.018 245);
  --paper: oklch(99% 0.006 265);
  --line: oklch(84% 0.028 255);
  --muted: oklch(49% 0.035 276);
}

body {
  text-rendering: optimizeLegibility;
}

.site-header,
.hero,
.quick-flow,
.section,
.site-footer {
  transition: background-color .35s ease, color .35s ease;
}

.concept-switcher {
  max-width: calc(100vw - 20px);
  border: 1px solid oklch(100% 0 0 / .12);
}

.concept-switcher strong {
  min-width: 13rem;
  text-align: center;
}

.concept-switcher a {
  flex: 0 0 auto;
}

.concept-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  padding: .5rem .8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.concept-kicker::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--lime);
}

.hero-copy {
  position: relative;
  z-index: 5;
}

.hero h1 {
  text-wrap: balance;
}

.hero .lead {
  max-width: 50ch;
}

.flow-demo {
  isolation: isolate;
}

.flow-demo.art-directed {
  background-repeat: no-repeat;
  background-color: transparent;
  overflow: hidden;
}

.flow-demo.art-directed > * {
  display: none;
}

/* 01 Ponte operativo: luce diurna, email -> messaggio, meccanica evidente. */
.theme-1 {
  --paper: oklch(99% 0.004 250);
  --sky: oklch(92% 0.038 242);
  --sky-soft: oklch(96% 0.022 242);
  --purple: oklch(49% 0.17 319);
  --ink: oklch(22% 0.11 278);
}

.theme-1 .topbar {
  background: var(--ink);
}

.theme-1 .site-header {
  background: oklch(99% 0.006 250 / .97);
}

.theme-1 .hero {
  min-height: 720px;
  background:
    radial-gradient(circle at 78% 44%, oklch(97% 0.012 245 / .94) 0 15%, transparent 35%),
    linear-gradient(115deg, oklch(96% 0.02 245), oklch(88% 0.055 240));
}

.theme-1 .hero::before {
  inset: auto -8% -42% 28%;
  height: 68%;
  background: oklch(99% 0.006 250 / .68);
}

.theme-1 .hero__grid {
  grid-template-columns: .86fr 1.14fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.theme-1 .hero h1 {
  color: var(--ink);
  font-size: clamp(3.4rem, 6.3vw, 6.15rem);
}

.theme-1 .hero h1 span {
  color: var(--purple);
}

.theme-1 .flow-demo {
  min-height: 510px;
}

.theme-1 .mail-window {
  border: 1px solid oklch(88% 0.02 245);
}

.theme-1 .phone {
  border-color: oklch(24% 0.095 270);
}

.theme-1 .flow-line,
.theme-1 .flow-badge {
  background: var(--lime);
}

.theme-1 .quick-flow {
  background: var(--paper);
}

.theme-1 .flow-step {
  position: relative;
  padding-right: 1.2rem;
}

.theme-1 .flow-step:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -.4rem;
  top: .1rem;
  color: var(--lime);
  font-size: 2.3rem;
  font-weight: 800;
}

.theme-1 #che-cosa-e,
.theme-1 .activation,
.theme-1 .use-cases {
  background: var(--sky-soft);
}

.theme-1 .how,
.theme-1 .reseller {
  background: var(--ink);
}

.theme-1 .feature-callout,
.theme-1 .wa2bot {
  background: var(--purple);
}

/* 02 Segnale in movimento: ufficio serale, rete di moduli, flusso luminoso. */
.theme-2 {
  --paper: oklch(97% 0.012 278);
  --ink: oklch(17% 0.105 285);
  --ink-soft: oklch(30% 0.095 292);
  --purple: oklch(46% 0.18 310);
  --purple-deep: oklch(29% 0.15 298);
  --sky: oklch(91% 0.036 250);
  --sky-soft: oklch(95% 0.02 250);
  --line: oklch(72% 0.05 288);
}

.theme-2 .topbar,
.theme-2 .site-header,
.theme-2 .hero,
.theme-2 .how,
.theme-2 .reseller,
.theme-2 .site-footer {
  background: var(--ink);
  color: var(--paper);
}

.theme-2 .brand {
  padding: .25rem .6rem;
  border-radius: 12px;
  background: oklch(98% 0.01 250);
}

.theme-2 .hero {
  min-height: 760px;
  background:
    radial-gradient(circle at 28% 24%, oklch(45% 0.17 309 / .35), transparent 42%),
    var(--ink);
}

.theme-2 .hero::before {
  inset: -25% 44% -20% -8%;
  height: auto;
  border-radius: 50%;
  border: 86px solid oklch(48% 0.18 310 / .32);
  background: transparent;
  transform: rotate(-18deg);
}

.theme-2 .hero__grid {
  grid-template-columns: .82fr 1.18fr;
}

.theme-2 .hero h1 {
  color: var(--paper);
  font-size: clamp(3.6rem, 6.6vw, 6.6rem);
}

.theme-2 .hero h1 span,
.theme-2 .hero .eyebrow {
  color: var(--lime);
}

.theme-2 .hero .lead,
.theme-2 .hero .microcopy {
  color: oklch(88% 0.025 285);
}

.theme-2 .flow-demo.art-directed {
  min-height: 560px;
  border-radius: 34px 0 34px 34px;
  background-image:
    linear-gradient(90deg, var(--ink) 0, transparent 28%),
    url("assets/02-segnale-in-movimento.png");
  background-size: auto 100%, 1200px auto;
  background-position: center center, right -67px;
  box-shadow: 0 34px 90px oklch(8% 0.08 286 / .7);
}

.theme-2 .hero .button.ghost {
  color: var(--paper);
  box-shadow: inset 0 0 0 2px oklch(97% 0.012 278 / .38);
}

.theme-2 .quick-flow {
  background: oklch(27% 0.135 302);
  color: var(--paper);
  border: 0;
}

.theme-2 .quick-flow p,
.theme-2 .how p,
.theme-2 .reseller p {
  color: oklch(86% 0.026 285);
}

.theme-2 #che-cosa-e,
.theme-2 .video-wall,
.theme-2 .use-cases,
.theme-2 .editoria {
  background: oklch(20% 0.115 290);
  color: var(--paper);
}

.theme-2 .what__copy,
.theme-2 .what__copy p,
.theme-2 .section-head p,
.theme-2 .benefit-row p,
.theme-2 .use-case p {
  color: oklch(82% 0.03 285);
}

.theme-2 .benefit-row,
.theme-2 .use-case {
  border-color: oklch(92% 0.02 285 / .18);
}

.theme-2 .activation {
  background: oklch(35% 0.15 307);
  color: var(--paper);
}

.theme-2 .feature-callout,
.theme-2 .wa2bot {
  background: oklch(42% 0.17 311);
}

.theme-2 .integrate__grid {
  color: var(--ink);
}

.theme-2 .editoria .book {
  background: oklch(26% 0.12 294);
  color: var(--paper);
}

.theme-2 .editoria .book:nth-child(2) {
  background: oklch(35% 0.15 307);
}

.theme-2 .editoria .book p,
.theme-2 .editoria .book__meta {
  color: oklch(84% 0.025 285);
}

/* 03 Conversazioni che lavorano: persone e casi reali al centro. */
.theme-3 {
  --paper: oklch(99% 0.008 318);
  --sky: oklch(93% 0.034 242);
  --sky-soft: oklch(97% 0.016 318);
  --purple: oklch(48% 0.17 321);
  --purple-deep: oklch(36% 0.15 313);
  --ink: oklch(22% 0.10 283);
}

.theme-3 .site-header {
  background: oklch(99% 0.008 318 / .97);
}

.theme-3 .hero {
  min-height: 760px;
  background:
    radial-gradient(circle at 15% 18%, oklch(92% 0.045 241), transparent 38%),
    var(--paper);
}

.theme-3 .hero::before {
  inset: auto auto -38% -14%;
  width: 58%;
  height: 74%;
  background: oklch(91% 0.05 240);
}

.theme-3 .hero__grid {
  grid-template-columns: .74fr 1.26fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.theme-3 .hero h1 {
  color: var(--purple);
  font-size: clamp(3.25rem, 5.7vw, 5.9rem);
}

.theme-3 .hero h1 span {
  color: var(--ink);
}

.theme-3 .flow-demo.art-directed {
  min-height: 590px;
  border-radius: 70px 0 70px 70px;
  background-image: url("assets/03-conversazioni-che-lavorano.png");
  background-size: 1450px auto;
  background-position: right -74px;
  box-shadow: 0 28px 75px oklch(22% 0.10 283 / .18);
}

.theme-3 .button {
  background: var(--purple);
  color: var(--paper);
  box-shadow: 0 14px 34px oklch(48% 0.17 321 / .26);
}

.theme-3 .button.secondary {
  background: var(--ink);
}

.theme-3 .quick-flow {
  background: var(--purple);
  color: var(--paper);
}

.theme-3 .quick-flow p {
  color: oklch(92% 0.02 318);
}

.theme-3 #che-cosa-e,
.theme-3 .activation,
.theme-3 .use-cases {
  background: var(--sky-soft);
}

.theme-3 .benefit-row:nth-child(odd) {
  margin-left: 7%;
}

.theme-3 .how {
  background: var(--purple-deep);
}

.theme-3 .use-cases__grid {
  grid-template-columns: .7fr 1.3fr;
}

.theme-3 .use-case-list {
  position: relative;
}

.theme-3 .use-case-list::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 2rem;
  bottom: 2rem;
  width: 2px;
  background: var(--lime);
}

.theme-3 .use-case {
  position: relative;
  grid-template-columns: 58px 1fr auto;
  padding-left: 0;
}

.theme-3 .use-case b:first-child {
  z-index: 1;
  border: 2px solid var(--lime);
  background: var(--paper);
}

.theme-3 .reseller {
  background: var(--purple);
}

.theme-3 .partner-card,
.theme-3 .book:nth-child(2) {
  background: var(--ink);
}

/* 04 Home completa: impaginazione tipografica, split azzurro/viola. */
.theme-4 {
  --paper: oklch(99% 0.006 268);
  --sky: oklch(90% 0.045 245);
  --purple: oklch(47% 0.15 314);
  --ink: oklch(20% 0.115 282);
}

.theme-4 .hero {
  background: linear-gradient(90deg, var(--sky) 0 56%, var(--purple) 56%);
}

.theme-4 .hero::before {
  inset: auto -10% -44% 46%;
  height: 72%;
  background: oklch(83% 0.19 121);
}

.theme-4 .hero h1 {
  font-size: clamp(3.4rem, 6.9vw, 6.9rem);
}

.theme-4 .flow-demo {
  border-radius: 46% 54% 38% 62% / 44% 42% 58% 56%;
  background: oklch(20% 0.115 282 / .14);
}

.theme-4 .quick-flow,
.theme-4 .how,
.theme-4 .reseller {
  background: var(--ink);
  color: var(--paper);
}

.theme-4 .quick-flow p {
  color: oklch(86% 0.025 282);
}

.theme-4 .use-cases {
  background: var(--sky);
}

@media (max-width: 980px) {
  .theme-2 .menu {
    color: var(--ink);
  }

  .theme-1 .hero__grid,
  .theme-2 .hero__grid,
  .theme-3 .hero__grid,
  .theme-4 .hero__grid,
  .theme-3 .use-cases__grid {
    grid-template-columns: 1fr;
  }

  .theme-1 .flow-demo,
  .theme-4 .flow-demo {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .theme-2 .flow-demo.art-directed,
  .theme-3 .flow-demo.art-directed {
    width: min(100%, 760px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .concept-switcher strong {
    display: block;
    min-width: 0;
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .concept-switcher a {
    width: 38px;
    height: 38px;
  }

  .concept-kicker {
    font-size: .68rem;
  }

  .theme-1 .flow-step:not(:last-child)::after {
    display: none;
  }

  .theme-2 .flow-demo.art-directed,
  .theme-3 .flow-demo.art-directed {
    min-height: 390px;
    border-radius: 28px;
  }

  .theme-2 .flow-demo.art-directed {
    background-size: auto 100%, 1050px auto;
    background-position: center center, right -59px;
  }

  .theme-3 .flow-demo.art-directed {
    background-size: 960px auto;
    background-position: right -49px;
  }

  .theme-3 .benefit-row:nth-child(odd) {
    margin-left: 0;
  }

  .theme-3 .use-case {
    grid-template-columns: 48px 1fr;
  }

  .theme-4 .hero {
    background: linear-gradient(180deg, var(--sky) 0 60%, var(--purple) 60%);
  }
}

