/* Landing workshop-progettazione-agentica.
   Valori dal Figma «Webflow V.2.0 – Conflux» (eIL7JmS1kKvGh3MKcQIwQQ), frame 174:82229, letti
   via MCP Figma (get_design_context): Servizi/Secondary-Hero, Kpi, Section title + cardgroup-3col,
   Card-Steps, Text Content, Body Container-Cta. Pagina 1440, contenuto 1160, gutter 140.
   Asset (bokeh hero, particelle «Dot bkg», arco CTA, Dot System, Linear shapes, icone bottone)
   scaricati dal file Figma in img/. File esterno: passa la CSP style-src 'self'. */
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
[hidden] {
  display: none !important;
}

:root {
  /* color/* del file Figma */
  --bg-dark: #0c1623; /* color/background/dark */
  --bg-light: #131f2e; /* color/background/light */
  --pearl: #fbfbfb; /* color/text/primary-softpearl */
  --secondary: #b8bcc0; /* color/text/secondary */
  --terziary: #545e69; /* color/text/terziary */
  --primary: #0a45fa; /* color/primary/default */
  --ultra-light: #6e91fb; /* color/primary/ultra-light */
  --accent: #ff0066;
  --field: rgba(251, 251, 251, 0.2);
  --line: rgba(251, 251, 251, 0.12);
  /* radius/* */
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg-dark);
}
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--pearl);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: 100%;
  max-width: calc(1160px + 2 * 140px);
  margin: 0 auto;
  padding-left: max(16px, min(140px, 7vw), env(safe-area-inset-left, 0px));
  padding-right: max(16px, min(140px, 7vw), env(safe-area-inset-right, 0px));
}
.wrap.narrow {
  max-width: calc(860px + 2 * 140px);
}
:focus-visible {
  outline: 2px solid var(--ultra-light);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Textsize/Tiny: Roboto Medium 12, tracking .6px, maiuscolo, secondary */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 24px;
}
/* Heading/H2 75/1.2 · Textsize/Display Light 64/1.22 · Textsize/Large 22/1.5 */
.h2 {
  font-size: clamp(36px, 5.2vw, 75px);
  line-height: 1.2;
}
.display {
  font-size: clamp(34px, 4.45vw, 64px);
  font-weight: 300;
  line-height: 1.22;
  max-width: 925px;
}
.subhead {
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
  max-width: 498px;
  margin: 32px 0 0 auto;
}
.note {
  margin-top: 32px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--secondary);
  max-width: 760px;
}

/* bottoni (Buttons): pearl con icona scura, outline 1px pearl 40% con icona chiara, radius/lg 16 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 8px 8px;
  border-radius: var(--r-lg);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.25s;
}
.btn img {
  width: 35px;
  height: 35px;
  flex: none;
}
.btn--pearl {
  background: var(--pearl);
  color: var(--bg-dark);
}
.btn--pearl:hover {
  background: #fff;
}
.btn--outline {
  color: var(--pearl);
  border-color: rgba(251, 251, 251, 0.4);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--pearl);
}
.btn--s {
  padding: 8px 16px;
  font-size: 14px;
}
button.btn--pearl {
  padding: 14px 24px;
}
.btn:disabled {
  opacity: 0.7;
  cursor: progress;
}
@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
  }
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
}

/* hero (Servizi/Secondary-Hero): bokeh + gradiente verso background/dark */
.hero {
  position: relative;
  min-height: 797px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 25.89% 0 0 0;
  background: linear-gradient(
    to bottom,
    rgba(19, 31, 46, 0),
    var(--bg-dark) 85%
  );
}
.topbar {
  padding-top: 40px;
  padding-bottom: 24px;
}
.topbar .logo img {
  width: 182px;
  height: auto;
}
.hero__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding-top: 24px;
  padding-bottom: 96px;
}
.hero__icon {
  width: clamp(160px, 31vw, 455px);
  height: auto;
  flex: none;
}
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 632px;
  min-width: 0;
}
.chip {
  display: inline-block;
  background: var(--pearl);
  color: var(--bg-dark);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1;
  padding: 8px 16px;
  border-radius: var(--r-xl);
}
.hero h1 {
  font-size: clamp(38px, 4.7vw, 68px);
  line-height: 1.3;
}
.hero__lede {
  font-size: clamp(18px, 1.67vw, 24px);
  line-height: 1.5;
  max-width: 612px;
}
@media (max-width: 900px) {
  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .hero__icon {
    width: 160px;
  }
  .hero {
    min-height: 0;
  }
}

/* menu sticky (Sticky/Menu): background/light, radius/md, h 56 */
.menu {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg-dark);
  padding: 24px max(16px, min(40px, 3vw));
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 21;
  background: var(--bg-dark);
}
.menu__bar {
  max-width: 1328px;
  margin: 0 auto;
  height: 56px;
  background: var(--bg-light);
  border-radius: var(--r-md);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px 0 24px;
}
.menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}
.menu li a {
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--pearl);
}
.menu li a:hover {
  color: var(--ultra-light);
}
.menu li a.menu__cta {
  display: inline-block;
  background: var(--primary);
  color: var(--pearl);
  font-size: 16px;
  line-height: 1.3;
  padding: 12px 24px;
  border-radius: var(--r-md);
}
.menu li a.menu__cta:hover {
  background: #2258fb;
  color: var(--pearl);
}
@media (max-width: 760px) {
  .menu ul li:not(:last-child) {
    display: none;
  }
}

/* particelle «Dot bkg» / «Bkg image»: immagine ruotata in mix-blend lighten ai bordi */
.dots {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: lighten;
  background: url("img/dots-1440.webp") center / cover no-repeat;
}
.dots--left {
  left: -280px;
  top: 30%;
  width: 760px;
  height: 480px;
  transform: rotate(90deg);
}
.dots--left-top {
  left: -460px;
  top: -160px;
  width: 760px;
  height: 480px;
  transform: rotate(-75deg);
}
@media (max-width: 900px) {
  .dots {
    opacity: 0.45;
  }
}

/* KPI (Kpi- Chi siamo): titolo 68, numeri Heading/H1 80/1.1 + unità 42/1.2, didascalia 16 */
.kpi {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9.4vw, 136px);
  background: var(--bg-dark);
}
.kpi__inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 64px;
  align-items: flex-start;
}
.kpi__title {
  font-size: clamp(36px, 4.7vw, 68px);
  line-height: 1.3;
  flex: 0 0 411px;
}
.kpi__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  flex: 1;
  max-width: 640px;
}
.kpi__stats dt {
  line-height: 1.1;
  white-space: nowrap;
}
.num {
  font-size: clamp(48px, 5.55vw, 80px);
  line-height: 1.1;
}
.unit {
  font-size: clamp(26px, 2.9vw, 42px);
  line-height: 1.2;
  margin-left: 0.2em;
}
.kpi__stats dd {
  font-size: 16px;
  line-height: 1.3;
  margin-top: 4px;
}
@media (max-width: 900px) {
  .kpi__inner {
    flex-direction: column;
    gap: 40px;
  }
  .kpi__title {
    flex: none;
  }
}

/* sezioni: padding 136 sopra, alternanza background/dark e background/light */
.section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 9.4vw, 136px);
  background: var(--bg-dark);
}
.section--light {
  background: var(--bg-light);
}
.section > .wrap {
  position: relative;
  z-index: 1;
}

/* card (Atom-Card / Card-Steps): radius/lg, padding 32, numero 24 bold ultra-light, titolo Huge bold 46/1.25, testo Large 22/1.5 secondary */
.cards {
  display: grid;
  gap: 24px;
  margin-top: 64px;
  padding: 0;
  list-style: none;
}
.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--bg-dark);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.card--light {
  background: var(--bg-light);
}
.card__n {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ultra-light);
}
.card__title {
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.25;
}
.card__title--m {
  font-size: clamp(26px, 2.5vw, 36px);
}
.card__text,
.card__list {
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
  color: var(--secondary);
}
.card__list {
  padding-left: 1.1em;
  display: grid;
  gap: 8px;
}
@media (max-width: 1000px) {
  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .cards--2,
  .cards--3 {
    grid-template-columns: 1fr;
  }
}

/* Text Content: titolo Display a sinistra (706) + testo 22 opacity .7 a destra (444) */
.maintext {
  display: flex;
  gap: 10px 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.maintext .display {
  flex: 0 1 706px;
}
.maintext p {
  flex: 0 1 444px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
  opacity: 0.7;
}
@media (max-width: 900px) {
  .maintext {
    flex-direction: column;
  }
  .maintext .display,
  .maintext p {
    flex: none;
  }
}

/* Card-Steps larghe: Linear shapes 190 + testo, gap 42, background/light */
.steps {
  list-style: none;
  padding: 0;
  margin-top: 96px;
  display: grid;
  gap: 24px;
}
.step {
  background: var(--bg-light);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  gap: 42px;
  align-items: flex-start;
}
.step img {
  width: clamp(96px, 13.2vw, 190px);
  height: auto;
  flex: none;
}
.step > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 755px;
  min-width: 0;
}
.step__n {
  font-size: clamp(30px, 2.9vw, 42px);
  font-weight: 700;
  line-height: 1.22;
}
.step__title {
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 700;
  line-height: 1.5;
}
.step__text {
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.5;
  margin-top: 16px;
}
@media (max-width: 680px) {
  .step {
    flex-direction: column;
    gap: 20px;
  }
}

/* prezzo come KPI */
.price {
  margin-top: 48px;
  display: grid;
  gap: 8px;
}
.price__note {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--secondary);
  max-width: 640px;
}

/* form: campi su pearl 20% come .text-field del sito */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}
.field--full {
  grid-column: 1 / -1;
}
label,
legend {
  font-size: 16px;
  line-height: 1.3;
}
label small {
  color: var(--secondary);
}
legend {
  padding: 0;
  margin-bottom: 12px;
}
input[type="text"],
input[type="email"],
input[type="url"] {
  font: inherit;
  font-size: 16px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--field);
  color: var(--pearl);
  width: 100%;
  transition: border-color 0.3s;
}
input::placeholder {
  color: var(--secondary);
}
input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover {
  border-color: rgba(251, 251, 251, 0.25);
}
input[aria-invalid="true"] {
  border-color: var(--accent);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}
.choices label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--secondary);
}
input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--secondary);
}
.check input {
  margin-top: 2px;
  flex: none;
}
.check a {
  color: var(--pearl);
}
.form__foot {
  gap: 16px;
  margin-top: 8px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  font-size: 15px;
  color: var(--secondary);
  min-height: 1em;
}
.status.err {
  color: var(--pearl);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-dark);
  font-size: 18px;
  line-height: 1.5;
}
.msg .addr {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.msg code {
  font-family: var(--font);
  font-size: 20px;
  user-select: all;
}
@media (max-width: 680px) {
  .form {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: auto;
  }
}

/* FAQ */
.faq {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.5;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--ultra-light);
  font-size: 28px;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details p {
  padding-bottom: 24px;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--secondary);
  max-width: 760px;
}

/* CTA (Body Container-Cta): arco di particelle in lighten + gradiente, Dot System in basso a sinistra */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 787px;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
}
/* il blend sta sul contenitore: con z-index:-1 il contenitore faceva da stacking context e
   l'immagine si fondeva su un fondo trasparente, lasciando i neri della foto visibili */
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  mix-blend-mode: lighten;
}
.cta__dots,
.cta__content {
  z-index: 1;
}
.cta__content {
  position: relative;
}
.cta__bg img {
  width: 100%;
  object-fit: cover;
  /* Figma: foto alta 1226px con top:-527px su 789px → si vede la metà inferiore, dove sta l'arco */
  object-position: 50% 100%;
  /* Figma: -scale-y + rotate(-177.97deg) = specchio orizzontale; la rotazione di 2° lasciava
     angoli neri scoperti, quindi resta solo lo specchio */
  transform: scaleX(-1) translateY(-200px);
  height: 100%;
}
.cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 22, 35, 0), var(--bg-dark));
}
.cta__dots {
  position: absolute;
  left: 67px;
  bottom: -60px;
  width: 120px;
  height: 240px;
  transform: rotate(90deg);
  transform-origin: center;
  opacity: 0.9;
}
.cta__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: 120px;
}
.cta h2 {
  font-size: clamp(38px, 5.55vw, 80px);
  line-height: 1.1;
  max-width: 1122px;
}
.cta p {
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02em;
  max-width: 1000px;
}
.cta .ctas {
  justify-content: center;
}
@media (max-width: 680px) {
  .cta {
    min-height: 0;
  }
  .cta__dots {
    display: none;
  }
}

/* footer */
.footer {
  background: var(--bg-light);
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.5;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px;
}
.footer__inner p {
  max-width: 640px;
}
.footer__links {
  display: flex;
  gap: 24px;
}
.footer a {
  color: var(--secondary);
}
.footer a:hover {
  color: var(--pearl);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* telefono: KPI in una colonna, particelle laterali solo dove non coprono il testo */
@media (max-width: 520px) {
  .kpi__stats { grid-template-columns: 1fr; }
  .dots--left-top { display: none; }
}
