/* =========================================================
   MolamIA — AI su misura per le PMI italiane
   Stylesheet principale
   Palette derivata dall'hero (verde petrolio) e dalla foto del falco.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --petrol-deep:   #1d2c2e;   /* sfondo profondo */
  --petrol:        #2b3d40;   /* verde petrolio hero */
  --petrol-soft:   #34494c;   /* superfici elevate */
  --petrol-band:   #233537;   /* fascia intermedia per alternanza sezioni */
  --mist:          #7fa0a3;   /* nebbia / accento freddo */
  --mist-bright:   #a9c6c8;   /* accento chiaro */
  --bone:          #f3f1ea;   /* off-white testo */
  --bone-dim:      #c7cdc9;   /* testo secondario */
  --line:          rgba(243,241,234,0.12);
  --line-soft:     rgba(243,241,234,0.07);

  /* Tipografia */
  --display: 'Inter Tight', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;

  /* Misure */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--body);
  background: var(--petrol-deep);
  color: var(--bone);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--mist); color: var(--petrol-deep); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--mist);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.h-sec { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-top: 22px; }
.lead { color: var(--bone-dim); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 62ch; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.scrolled {
  background: rgba(29,44,46,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  padding-block: 12px;
}
.nav__logo { height: 46px; }
.nav__logo svg, .nav__logo img { height: 100%; width: auto; }
.nav.scrolled .nav__logo { height: 38px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  color: var(--bone-dim); transition: color .2s;
}
.nav__links a:hover { color: var(--bone); }
.nav__right { display: flex; align-items: center; gap: 22px; }

.langswitch { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; }
.langswitch button {
  background: none; border: none; color: var(--bone-dim);
  font-family: var(--display); font-weight: 600; font-size: .8rem;
  padding: 5px 12px; letter-spacing: .04em; transition: all .2s;
}
.langswitch button.active { background: var(--bone); color: var(--petrol-deep); }

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: 100px;
  border: 1px solid transparent; transition: transform .2s, background .2s, color .2s;
}
.btn--solid { background: var(--bone); color: var(--petrol-deep); }
.btn--solid:hover { transform: translateY(-2px); background: #fff; }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--mist); background: rgba(127,160,163,0.1); }
.btn--lg { padding: 16px 34px; font-size: 1.02rem; }

.nav__burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { width: 24px; height: 2px; background: var(--bone); transition: .3s; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100svh; position: relative; display: flex; align-items: center;
  padding-top: 90px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 40%, rgba(52,73,76,0.7) 0%, transparent 60%),
    linear-gradient(180deg, var(--petrol) 0%, var(--petrol-deep) 100%);
}
.hero__hawk {
  position: absolute; right: -2%; top: 50%;
  width: min(54vw, 720px); opacity: .9; pointer-events: none;
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  --px: 0px; --py: 0px; --fy: 0px;
  transform: translateY(-50%) translate(var(--px), calc(var(--py) + var(--fy)));
  animation: floatHawk 9s ease-in-out infinite;
}
.hero__hawk img { width: 100%; object-fit: contain; filter: saturate(.85) contrast(1.02); }
.hero .wrap { margin-left: 0; }
.hero__inner { position: relative; z-index: 2; max-width: 920px; margin-left: 0; margin-right: auto; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 7rem); line-height: .94;
}
.hero h1 span { display: block; }
.hero h1 .dim { color: var(--mist-bright); opacity: .55; }
.hero__sub { margin-top: 30px; max-width: 48ch; color: var(--bone-dim); font-size: clamp(1.08rem, 1.7vw, 1.35rem); }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero__trust {
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--display); font-weight: 500; color: var(--bone-dim);
  max-width: 44ch; font-size: .98rem;
}
.hero__trust strong { color: var(--bone); font-weight: 700; }

@property --fy {
  syntax: '<length>'; inherits: false; initial-value: 0px;
}
@keyframes floatHawk {
  0%,100% { --fy: 0px; }
  50%     { --fy: -16px; }
}

/* =========================================================
   SFIDA
   ========================================================= */
.challenge { background: var(--petrol-deep); }
.challenge__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.challenge h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 700; }
.challenge__body p { color: var(--bone-dim); margin-bottom: 18px; }
.challenge__body p:last-child { color: var(--bone); }

/* =========================================================
   SERVIZI
   ========================================================= */
.services { position: relative; }
.services__watermark {
  position: absolute; top: -150px; right: 2%;
  width: min(32vw, 380px); height: 460px;
  pointer-events: none; z-index: 0;
}
.services__watermark .falco {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
}
/* falco chiaro: visibile solo sopra il confine (nella sezione scura) */
.services__watermark .falco--light {
  filter: brightness(0) invert(1);
  opacity: 0.07;
  clip-path: inset(0 0 calc(100% - 150px) 0);
}
/* falco scuro: visibile solo sotto il confine (nella sezione chiara) */
.services__watermark .falco--dark {
  opacity: 0.05;
  clip-path: inset(150px 0 0 0);
}
.services .wrap { position: relative; z-index: 1; }
.services__head { max-width: 720px; margin-bottom: 56px; }
/* layout a due colonne: mockup a sinistra, card a destra */
.services__layout {
  display: grid; grid-template-columns: 0.7fr 1.6fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.services__visual { display: flex; justify-content: center; align-items: center; }

/* ---- scena AI ricreata: telefono scuro + card fluttuanti + glow ---- */
.aiscene {
  position: relative; width: 100%; max-width: 510px; aspect-ratio: 4/4.6;
  display: flex; align-items: center; justify-content: center;
}
.aiscene__glow {
  position: absolute; inset: 4% 0%;
  background: radial-gradient(58% 52% at 52% 56%, rgba(74,140,108,0.7), rgba(52,86,76,0.35) 50%, transparent 74%);
  filter: blur(10px); z-index: 0; border-radius: 50%;
}
.aiphone {
  position: relative; z-index: 2;
  width: 248px; aspect-ratio: 9/19.2;
  background: linear-gradient(145deg, #2a3638 0%, #0d1413 14%, #0d1413 86%, #313d3f 100%);
  border-radius: 42px; padding: 5px;
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.75),
    0 20px 40px -20px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(169,198,200,0.10);
}
/* riflesso metallico cornice */
.aiphone::before {
  content: ""; position: absolute; inset: 0; border-radius: 42px; pointer-events: none; z-index: 4;
  background: linear-gradient(125deg, rgba(255,255,255,0.18) 0%, transparent 18%, transparent 82%, rgba(255,255,255,0.10) 100%);
}
/* tasti laterali */
.aiphone::after {
  content: ""; position: absolute; right: -2px; top: 130px; width: 2px; height: 56px;
  background: linear-gradient(#3a484a, #1a2424); border-radius: 0 2px 2px 0; z-index: 1;
}
.aiphone__inner {
  position: relative; height: 100%;
  background: linear-gradient(180deg, #131f1e, #0b1413);
  border-radius: 37px; padding: 16px 16px 14px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.6);
}
/* dynamic island */
.aiphone__island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 22px; background: #000; border-radius: 100px; z-index: 5;
}
/* riflesso vetro schermo */
.aiphone__inner::after {
  content: ""; position: absolute; top: 0; left: 0; right: 40%; bottom: 55%;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), transparent 70%);
  pointer-events: none; z-index: 4; border-radius: 37px 0 0 0;
}
.aiphone__statusbar { display: flex; justify-content: space-between; font-size: .56rem; color: var(--bone-dim); margin: 6px 0 22px; letter-spacing: .03em; }
.aiphone__sig { letter-spacing: -1px; }
.aiphone__spark { width: 26px; height: 26px; color: var(--mist-bright); margin-bottom: 12px; }
.aiphone__spark svg { width: 100%; height: 100%; }
.aiphone__q { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.08; color: var(--bone); letter-spacing: -.02em; }
.aiphone__wave {
  flex-grow: 1; margin: 14px -18px; position: relative; overflow: hidden;
  background:
    radial-gradient(100% 70% at 50% 130%, rgba(110,170,135,0.7), rgba(74,140,108,0.2) 50%, transparent 70%);
}
.aiphone__wave::before, .aiphone__wave::after {
  content: ""; position: absolute; left: -15%; right: -15%; height: 60px;
  border-radius: 50%; border-top: 2px solid rgba(169,220,180,0.55);
}
.aiphone__wave::before { bottom: 34%; }
.aiphone__wave::after { bottom: 20%; border-top-color: rgba(169,220,180,0.3); height: 70px; }
.aiphone__prompt {
  display: flex; align-items: center; gap: 6px;
  background: rgba(243,241,234,0.06); border: 1px solid rgba(169,198,200,0.18);
  border-radius: 100px; padding: 6px 6px 6px 14px; margin-top: 6px;
}
.aiphone__prompt span { flex-grow: 1; font-size: .6rem; color: var(--bone-dim); }
.aiphone__go {
  font-family: var(--display); font-weight: 700; font-size: .62rem; color: var(--petrol-deep);
  background: var(--mist-bright); border: none; border-radius: 100px; padding: 6px 12px;
}

/* card fluttuanti */
.aicard {
  position: absolute; z-index: 3;
  background: rgba(20,32,31,0.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(169,198,200,0.18); border-radius: 16px;
  padding: 14px 15px; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
  animation: floatCard 5s ease-in-out infinite;
}
.aicard--portfolio { right: -8%; top: 26%; width: 196px; animation-delay: .2s; }
.aicard--report { left: -8%; top: 52%; width: 144px; animation-delay: 1.4s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.aicard__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.aicard__head > span { font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--bone); line-height: 1.2; }
.aicard__pill { font-size: .56rem; font-weight: 600; color: var(--petrol-deep); background: var(--mist-bright); border-radius: 100px; padding: 4px 9px; white-space: nowrap; }
.aicard__bar { display: flex; gap: 3px; height: 7px; border-radius: 100px; overflow: hidden; margin-bottom: 12px; }
.aicard__bar i { display: block; height: 100%; background: var(--petrol-soft); border-radius: 2px; }
.aicard__bar i:first-child { background: #6f9f86; }
.aicard__rows { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.aicard__rows li { display: flex; justify-content: space-between; font-size: .64rem; color: var(--bone-dim); }
.aicard__rows b { color: var(--bone); font-weight: 700; }
.aicard__rtitle { font-family: var(--display); font-weight: 700; font-size: .78rem; color: var(--bone); display: block; margin-bottom: 12px; line-height: 1.2; }
.aicard__chart { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.aicard__chart i { flex: 1; background: linear-gradient(var(--mist-bright), var(--mist)); border-radius: 3px 3px 0 0; }

/* ---- mockup telefono col chatbot ---- */
.phone {
  width: 290px; max-width: 100%;
  background: #0f1819; border-radius: 38px;
  padding: 12px; position: relative;
  box-shadow: 0 40px 80px -30px rgba(29,44,46,0.55), 0 0 0 1px rgba(29,44,46,0.08);
  border: 1px solid rgba(29,44,46,0.12);
}
.phone__notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #0f1819; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  background: var(--petrol-deep); border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; height: 510px;
}
.phone__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 26px 16px 12px; background: var(--petrol);
  border-bottom: 1px solid rgba(243,241,234,0.08);
}
.phone__avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--petrol-soft);
  display: grid; place-items: center; flex-shrink: 0;
}
.phone__avatar img { width: 20px; height: 20px; }
.phone__title { display: flex; flex-direction: column; line-height: 1.2; }
.phone__name { font-family: var(--display); font-weight: 700; font-size: .92rem; color: var(--bone); }
.phone__status { font-size: .72rem; color: #7bb89a; }
.phone__chat {
  flex-grow: 1; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px;
  overflow: hidden; background:
    radial-gradient(120% 60% at 100% 0%, rgba(52,73,76,0.5), transparent 60%),
    var(--petrol-deep);
}
.bubble {
  max-width: 80%; padding: 9px 13px; border-radius: 15px;
  font-size: .82rem; line-height: 1.35; animation: bubbleIn .4s ease both;
}
.bubble--in { align-self: flex-start; background: var(--petrol-soft); color: var(--bone); border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--mist-bright); color: var(--petrol-deep); border-bottom-right-radius: 4px; font-weight: 500; }
.bubble--in:nth-child(1) { animation-delay: .1s; }
.bubble--out:nth-child(2) { animation-delay: .5s; }
.bubble--in:nth-child(3) { animation-delay: .9s; }
.bubble--out:nth-child(4) { animation-delay: 1.3s; }
.bubble--typing {
  align-self: flex-start; background: var(--petrol-soft); border-bottom-left-radius: 4px;
  display: flex; gap: 4px; padding: 12px 14px; animation-delay: 1.7s;
}
.bubble--typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mist);
  animation: typing 1.2s infinite ease-in-out;
}
.bubble--typing span:nth-child(2) { animation-delay: .2s; }
.bubble--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-3px);} }
.phone__input {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--petrol); border-top: 1px solid rgba(243,241,234,0.08);
}
.phone__input span { flex-grow: 1; font-size: .8rem; color: var(--bone-dim); }
.phone__send {
  width: 32px; height: 32px; border-radius: 50%; background: var(--mist-bright); color: var(--petrol-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.phone__send svg { width: 16px; height: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services__layout .cards { grid-template-columns: repeat(3, 1fr); }
.services__layout .card p { font-size: .8rem; line-height: 1.45; }
.services__layout .card h3 { font-size: 1rem; line-height: 1.15; }
.services__layout .card { padding: 22px 18px; }
/* niente più border-radius per-card: ci pensa overflow:hidden del contenitore */
.card {
  background: var(--petrol); padding: 26px 26px; position: relative;
  transition: background .3s;
}
.services__layout .card { min-height: 0; }
.card:hover { background: var(--petrol-soft); }
.card__icon {
  width: 44px; height: 44px; color: var(--mist-bright);
  margin-bottom: 16px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), color .3s;
}
.card__icon svg { width: 100%; height: 100%; }
.section--light .card__icon svg { width: 28px; height: 28px; }
.card:hover .card__icon { transform: translateY(-4px) scale(1.08); color: var(--bone); }
.card:hover .card__num { color: var(--mist-bright); }
.card h3 { transition: color .2s; }
.card__num {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  color: var(--mist); letter-spacing: .1em; margin-bottom: 0;
}
.section--light .card__icon { color: #5d7a7d; }
.card h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--bone-dim); font-size: .96rem; }

/* =========================================================
   ASSESSMENT — due colonne: testo scuro sx, tool chiaro dx
   ========================================================= */
.tool { background: var(--petrol-deep); color: var(--bone); overflow: hidden; padding-top: clamp(56px, 8vw, 110px); }
.tool__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.tool__intro .eyebrow { color: var(--mist); }
.tool__intro .eyebrow::before { background: var(--mist); }
.tool__intro h2 { color: var(--bone); }
.tool__intro .lead { color: var(--bone-dim); }

.tool__stage {
  background: var(--bone);
  border: 1px solid rgba(29,44,46,0.10);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 48px);
  box-shadow: 0 40px 80px -50px rgba(0,0,0,0.6);
  position: relative;
  min-height: 360px;
}

/* progress bar */
.tool__progress {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 40px;
}
.tool__progress-track {
  flex-grow: 1; height: 5px; background: rgba(29,44,46,0.10);
  border-radius: 100px; overflow: hidden;
}
.tool__progress-fill {
  height: 100%; width: 33%;
  background: linear-gradient(90deg, #5d7a7d, var(--petrol));
  border-radius: 100px; transition: width .5s cubic-bezier(.65,0,.35,1);
}
.tool__progress-label {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  color: #6c8082; letter-spacing: .04em; white-space: nowrap;
}

/* pannelli a step: uno visibile alla volta */
.tool__panes { position: relative; }
.tool__pane { display: none; animation: paneIn .45s cubic-bezier(.16,1,.3,1); }
.tool__pane.active { display: block; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.tool__question {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1;
  color: var(--petrol-deep); margin-bottom: 8px; letter-spacing: -0.01em;
}
.tool__sub { color: #6c8082; font-size: .95rem; margin-bottom: 28px; }

/* opzioni grandi e cliccabili */
.tool__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; border-radius: 14px;
  background: var(--bone); border: 1.5px solid rgba(29,44,46,0.10);
  font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--petrol-deep);
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.opt:hover { transform: translateY(-2px); border-color: #8aa6a8; box-shadow: 0 10px 24px -16px rgba(29,44,46,0.5); }
.opt.active {
  background: var(--petrol); border-color: var(--petrol); color: var(--bone);
}
.opt__check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(29,44,46,0.25);
  display: grid; place-items: center; transition: all .2s;
}
.opt.active .opt__check { background: var(--mist-bright); border-color: var(--mist-bright); }
.opt__check svg { width: 13px; height: 13px; color: var(--petrol-deep); opacity: 0; transition: opacity .2s; }
.opt.active .opt__check svg { opacity: 1; }

/* navigazione step */
.tool__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 14px; }
.tool__back {
  background: none; border: none; color: #6c8082;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 7px; transition: color .2s;
}
.tool__back:hover { color: var(--petrol-deep); }
.tool__back[hidden] { visibility: hidden; display: inline-flex; }
.tool__next {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 100px;
  background: var(--petrol); color: var(--bone); border: none;
  transition: transform .2s, background .2s, opacity .2s;
}
.tool__next:hover:not(:disabled) { transform: translateY(-2px); background: var(--petrol-deep); }
.tool__next:disabled { opacity: .4; cursor: not-allowed; }

/* risultato */
.tool__result { animation: paneIn .5s cubic-bezier(.16,1,.3,1); }
.tool__rtitle {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--petrol-deep);
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.tool__rintro { color: #44585a; margin-bottom: 28px; max-width: 56ch; }
.tool__recs { display: flex; flex-direction: column; gap: 12px; }
.tool-rec {
  display: flex; align-items: center; gap: 18px;
  background: var(--bone); border: 1px solid rgba(29,44,46,0.10);
  border-radius: 14px; padding: 18px 22px;
  position: relative; overflow: hidden;
  animation: recIn .5s cubic-bezier(.16,1,.3,1) both;
}
.tool-rec:nth-child(1) { animation-delay: .05s; }
.tool-rec:nth-child(2) { animation-delay: .13s; }
.tool-rec:nth-child(3) { animation-delay: .21s; }
.tool-rec:nth-child(4) { animation-delay: .29s; }
@keyframes recIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.tool-rec--top { border-color: var(--petrol); background: #eef4f0; }
.tool-rec__icon {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 12px;
  background: #fff; border: 1px solid rgba(29,44,46,0.10); color: #466366;
}
.tool-rec--top .tool-rec__icon { background: var(--petrol); color: var(--bone); border-color: var(--petrol); }
.tool-rec__icon svg { width: 24px; height: 24px; }
.tool-rec__body { flex-grow: 1; min-width: 0; }
.tool-rec__name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--petrol-deep); }
.tool-rec__desc { font-size: .88rem; color: #6c8082; margin-top: 2px; }
.tool-rec__flag {
  font-family: var(--display); font-weight: 700; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--bone); background: var(--petrol);
  padding: 5px 12px; border-radius: 100px; flex-shrink: 0;
}
.tool__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tool__actions .btn--solid { background: var(--petrol); color: var(--bone); }
.tool__actions .btn--solid:hover { background: var(--petrol-deep); }
.tool__actions .btn--ghost { border-color: rgba(29,44,46,0.25); color: var(--petrol-deep); }
.tool__actions .btn--ghost:hover { border-color: var(--petrol); background: rgba(29,44,46,0.04); }

/* =========================================================
   METODO
   ========================================================= */
.method__head { max-width: 760px; margin: 0 0 70px; }
.method h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.section--light .method h2, .method.section--light h2 { color: var(--petrol-deep); }
.method.section--light h2 .dim { color: #9bb0b2; opacity: 1; }
.method.section--light .lead { color: #44585a; margin-inline: auto; }

.steps {
  position: relative;
  max-width: 980px; margin: 0 auto;
  --fill: 0%;
  padding-block: 10px;
}
/* linea centrale base */
.steps::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; transform: translateX(-50%);
  width: 3px; background: rgba(29,44,46,0.12); border-radius: 3px;
}
/* linea centrale che si riempie allo scroll */
.steps::after {
  content: "";
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 3px; height: var(--fill); max-height: 100%;
  background: linear-gradient(var(--petrol), var(--mist));
  border-radius: 3px; transition: height .15s linear;
}

.step {
  position: relative;
  width: 50%;
  padding: 44px 56px 30px;
  box-sizing: border-box;
}
/* dispari a sinistra, pari a destra */
.step:nth-child(odd) { left: 0; text-align: right; }
.step:nth-child(even) { left: 50%; text-align: left; }

/* numero grande come etichetta della tappa, sopra il titolo */
.step__num {
  position: absolute; top: -18px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem); line-height: 1;
  color: rgba(43,61,64,0.13);
  z-index: 0; pointer-events: none;
}
.step:nth-child(odd) .step__num { right: 56px; }
.step:nth-child(even) .step__num { left: 56px; }

/* icona nel cerchio sulla linea centrale */
.step__icon {
  position: absolute; top: 34px;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--bone); border: 2px solid var(--petrol);
  display: grid; place-items: center; color: var(--petrol);
  z-index: 2; transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .35s, color .35s, box-shadow .35s;
}
.step__icon svg { width: 26px; height: 26px; }
.step:nth-child(odd) .step__icon { right: -27px; }
.step:nth-child(even) .step__icon { left: -27px; }
.step:hover .step__icon {
  background: var(--petrol); color: var(--bone);
  transform: scale(1.1) rotate(-4deg);
  box-shadow: 0 12px 26px -12px rgba(29,44,46,0.6);
}

.step__content { position: relative; z-index: 1; }
.step__content h3 { font-size: 1.4rem; font-weight: 700; color: var(--petrol-deep); margin-bottom: 8px; transition: color .25s; }
.step__content p { color: #44585a; font-size: .98rem; }
.step:hover .step__content h3 { color: var(--petrol); }

/* =========================================================
   TEAM
   ========================================================= */
.team { }
.team__head { max-width: 720px; margin-bottom: 56px; }
.team h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.team h2 .dim { color: var(--mist); }
.team__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.member {
  background: var(--petrol-deep); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.member:hover {
  transform: translateY(-6px);
  border-color: rgba(169,198,200,0.4);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.5);
}
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.member__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.member:hover .member__photo img { transform: scale(1.04); }
.member__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, rgba(29,44,46,0.55) 100%);
}
.member__badge {
  font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .06em;
  color: var(--petrol-deep); background: var(--mist-bright);
  padding: 5px 12px; border-radius: 100px; flex-shrink: 0; white-space: nowrap;
}
.member__body { padding: 34px 28px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.member__name-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member h3 { font-size: 1.4rem; font-weight: 700; }
.member__role { color: var(--mist); font-family: var(--display); font-weight: 600; font-size: .95rem; margin: 4px 0 16px; }
.member__bio { color: var(--bone-dim); font-size: .94rem; flex-grow: 1; }
.member__skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--display); font-weight: 500; font-size: .8rem;
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--bone-dim);
}

/* =========================================================
   NETWORK
   ========================================================= */
.network { background: var(--petrol-deep); position: relative; overflow: hidden; }
.network__map {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; z-index: 0;
  opacity: 0.12;
}
.network__map img { width: 92%; height: auto; display: block; }
.network .wrap { position: relative; z-index: 1; }
.network__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,90px); align-items: center; }
.network h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
.network__text { color: var(--bone-dim); margin-top: 22px; max-width: 50ch; }
.stats { display: flex; gap: 38px; margin-top: 38px; flex-wrap: wrap; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.4rem); color: var(--bone); line-height: 1; }
.stat__lab { color: var(--mist); font-size: .9rem; margin-top: 8px; max-width: 16ch; }
.network__skills { display: flex; flex-wrap: wrap; gap: 10px; }
.network__skills .tag { background: var(--petrol-soft); border-color: transparent; color: var(--bone); }

/* =========================================================
   TESTIMONIANZE
   ========================================================= */
.testi { }
.testi__head { max-width: 600px; margin-bottom: 48px; }
.testi h2 { font-size: clamp(2rem,4.4vw,3.2rem); }
.testi__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.quote {
  background: var(--petrol); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; min-height: 240px;
}
.quote__mark { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--mist); line-height: .6; height: 30px; }
.quote__text { color: var(--bone); font-size: 1.05rem; flex-grow: 1; margin: 18px 0 24px; }
.quote__who { display: flex; align-items: center; gap: 14px; }
.quote__logo { width: 44px; height: 44px; border-radius: 8px; background: var(--petrol-soft); display: grid; place-items: center; color: var(--mist); font-family: var(--display); font-weight: 700; }
.quote__name { font-family: var(--display); font-weight: 700; }
.quote__meta { color: var(--bone-dim); font-size: .86rem; }
.quote.is-placeholder .quote__text { color: var(--bone-dim); font-style: italic; }

/* =========================================================
   CONTATTI
   ========================================================= */
.contact { background: var(--petrol-deep); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px,6vw,90px); align-items: start; }
.contact h2 { font-size: clamp(2rem,4.6vw,3.4rem); }
.contact__text { color: var(--bone-dim); margin-top: 22px; max-width: 42ch; }
.contact__direct { margin-top: 34px; font-family: var(--display); }
.contact__direct a { color: var(--mist-bright); font-weight: 600; }

.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  background: #c4dadb;
  border: 1px solid rgba(29,44,46,0.10);
  border-radius: 20px;
  padding: clamp(26px, 3.5vw, 40px);
  box-shadow: 0 30px 60px -45px rgba(0,0,0,0.5);
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--display); font-weight: 600; font-size: .85rem; color: #36504f; }
.field input, .field textarea {
  background: #fff; border: 1px solid rgba(29,44,46,0.15); border-radius: 10px;
  padding: 13px 15px; color: var(--petrol-deep); font-family: var(--body); font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8a9b9c; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(43,61,64,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.form__submit { grid-column: 1 / -1; background: var(--petrol); color: var(--bone); }
.form__submit:hover { background: var(--petrol-deep); }
.form__note { grid-column: 1/-1; font-size: .82rem; color: #506a6b; }
.form__status { grid-column: 1/-1; font-family: var(--display); font-weight: 600; font-size: .95rem; min-height: 1.4em; color: var(--petrol-deep); }
.form__status.ok { color: #2f6b4f; }
.form__status.err { color: #b4534f; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: linear-gradient(180deg, var(--petrol-deep) 0%, #16211f 60%);
  padding-block: 70px 36px; border-top: none;
}
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: clamp(34px,5vw,70px); }
.footer__logo { height: 54px; margin-bottom: 24px; }
.footer__logo svg, .footer__logo img { height: 100%; width: auto; display: block; }
.footer__desc { color: var(--bone-dim); font-size: .94rem; max-width: 40ch; }
.footer__col h4 { font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--bone-dim); font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--bone); }
.footer__data p { color: var(--bone-dim); font-size: .9rem; margin-bottom: 6px; }
.footer__data strong { color: var(--bone); font-weight: 600; }
.footer__bottom {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  color: var(--bone-dim); font-size: .85rem;
}
.footer__legal { display: flex; gap: 22px; }

/* =========================================================
   TEMI SEZIONI — alternanza sfondi nella palette
   .section--light : bianco osso, testo scuro
   .section--mid   : verde petrolio pieno, testo chiaro
   ========================================================= */

/* --- Sezione chiara (bianco osso) --- */
.section--light {
  background: var(--bone);
  color: var(--petrol-deep);
}
.section--light .eyebrow { color: #5d7a7d; }
.section--light .eyebrow::before { background: #5d7a7d; }
.section--light h2,
.section--light h3 { color: var(--petrol-deep); }
.section--light .h-sec { color: var(--petrol-deep); }
.section--light .lead,
.section--light p { color: #44585a; }
.section--light .dim { color: #9bb0b2; opacity: 1; }

/* card servizi su chiaro */
.section--light .cards {
  background: rgba(29,44,46,0.12);
  border-color: rgba(29,44,46,0.12);
}
.section--light .card { background: var(--bone); transition: background .35s ease, box-shadow .35s ease; }
.section--light .card::before {
  content: ""; position: absolute; top: 0; left: 8px; right: 8px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--petrol), var(--mist));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.65,0,.35,1);
}
.section--light .card:hover::before { transform: scaleX(1); }
.section--light .card:hover {
  background: #fff;
  z-index: 2;
}
.section--light .card__num { color: #b3c4c5; transition: color .3s; }
.section--light .card:hover .card__num { color: var(--petrol); }
.section--light .card h3 { color: var(--petrol-deep); }
.section--light .card p { color: #44585a; }

/* icona in contenitore colorato — petrolio pieno a riposo */
.section--light .card__icon {
  width: 48px; height: 48px; padding: 12px;
  border-radius: 12px;
  background: var(--petrol); color: var(--bone);
  display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 10px 22px -12px rgba(29,44,46,0.55);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .35s ease, color .35s ease, box-shadow .35s ease;
}
.section--light .card:hover .card__icon {
  background: var(--petrol-deep); color: var(--mist-bright);
  transform: translateY(-3px) rotate(-4deg) scale(1.08);
  box-shadow: 0 16px 30px -14px rgba(29,44,46,0.7);
}

/* card testimonianze su chiaro */
.section--light .quote {
  background: #fff;
  border-color: rgba(29,44,46,0.12);
}
.section--light .quote__mark { color: #8aa6a8; }
.section--light .quote__text { color: var(--petrol-deep); }
.section--light .quote__logo { background: #e7e3d8; color: #5d7a7d; }
.section--light .quote__name { color: var(--petrol-deep); }
.section--light .quote__meta { color: #6c8082; }
.section--light .quote.is-placeholder .quote__text { color: #6c8082; }

/* --- Sezione media (verde petrolio pieno) --- */
.section--mid { background: var(--petrol); }
.section--mid .member { background: var(--petrol-deep); }

/* --- Sezione salvia chiara (tono "AI su misura") --- */
.section--sage {
  background: #c4dadb;
  color: var(--petrol-deep);
}
.section--sage .eyebrow { color: #466366; }
.section--sage .eyebrow::before { background: #466366; }
.section--sage h2, .section--sage h3 { color: var(--petrol-deep); }
.section--sage .dim { color: #6f9295; opacity: 1; }
.section--sage .lead, .section--sage p { color: #36504f; }
.section--sage .member {
  background: #d5e6e6;
  border-color: rgba(29,44,46,0.10);
}
.section--sage .member__photo::after {
  background: linear-gradient(to bottom, transparent 60%, rgba(29,44,46,0.18) 100%);
}
.section--sage .member__badge { background: var(--petrol); color: var(--bone); }
.section--sage .member__role { color: #466366; }
.section--sage .member__bio { color: #36504f; }
.section--sage .tag { border-color: rgba(29,44,46,0.18); color: #36504f; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2,1fr); }
  .services__layout { grid-template-columns: 1fr; gap: 40px; }
  .aiscene { max-width: 420px; }
  .aicard--portfolio { right: 0; width: 180px; }
  .aicard--report { left: 0; width: 132px; }
  .services__layout .cards { grid-template-columns: repeat(2, 1fr); }
  .team__grid, .testi__grid { grid-template-columns: 1fr 1fr; }
  .challenge__grid, .network__grid, .contact__grid { grid-template-columns: 1fr; }
  .tool__grid { grid-template-columns: 1fr; gap: 32px; }
  /* timeline metodo: collassa a colonna singola */
  .steps::before, .steps::after { left: 22px; }
  .step { width: 100%; left: 0 !important; text-align: left !important; padding: 40px 0 26px 60px; }
  .step:nth-child(odd) .step__num,
  .step:nth-child(even) .step__num { left: 60px; right: auto; }
  .step:nth-child(odd) .step__icon,
  .step:nth-child(even) .step__icon { left: -5px; right: auto; }
}
@media (max-width: 760px) {
  .nav__right .btn--solid { display: none; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: var(--gutter);
    background: var(--petrol-soft); padding: 22px 26px; border-radius: var(--radius);
    border: 1px solid var(--line); gap: 18px;
  }
  .cards, .team__grid, .testi__grid, .form { grid-template-columns: 1fr; }
  .services__layout .cards { grid-template-columns: 1fr; }
  .tool__options { grid-template-columns: 1fr; }
  .hero__hawk { opacity: .4; right: -20%; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .footer__top { grid-template-columns: 1fr; }
}
