/* Leadverso — foglio di stile unico.
   I colori e le misure stanno nelle variabili qui sotto: per cambiare il look
   del sito si parte da li'. */

:root {
  --ink: #10131a;
  --ink-soft: #1b1f29;
  --paper: #f6f3ec;
  --tint: #ece7dc;
  --line: #dcd5c6;
  --muted: #5b606d;
  --accent: #ff5b2e;
  --accent-dark: #e0441a;
  --on-dark: #f6f3ec;
  --on-dark-muted: #a8acb7;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(72px, 10vw, 128px);
}

/* --- Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

/* --- Bottoni ----------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  transform: translateY(-1px);
}

.button-small {
  min-height: 42px;
  padding: 0 20px;
}

.button-ghost {
  background: transparent;
  color: var(--ink);
}

.button-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.logo-mark rect {
  fill: var(--accent);
}

.logo-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a:not(.button) {
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

.nav a:not(.button):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle-bar {
    position: relative;
  }

  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .nav-toggle-bar::before {
    top: -7px;
  }

  .nav-toggle-bar::after {
    top: 7px;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar {
    background: transparent;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.button) {
    padding: 12px 0;
    font-size: 1.125rem;
  }

  .nav .button {
    margin-top: 8px;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lead {
  margin-top: 24px;
  max-width: 34em;
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.pipeline {
  margin: 0;
  padding: 28px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 30px 60px -30px rgb(16 19 26 / 0.55);
}

.pipeline figcaption {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.pipeline ol {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.pipeline li {
  display: grid;
  gap: 8px;
}

.pipeline-step {
  font-weight: 500;
}

.pipeline-bar {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a404f, #555c6e);
}

.pipeline-bar-1 { width: 100%; }
.pipeline-bar-2 { width: 78%; }
.pipeline-bar-3 { width: 52%; }

.pipeline-bar-4 {
  width: 34%;
  background: var(--accent);
}

.pipeline-note {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #2c3140;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
}

/* --- Canali ---------------------------------------------------------------- */

.channels {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channels-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--muted);
}

/* --- Sezioni ------------------------------------------------------------- */

.section {
  padding: var(--section-space) 0;
}

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.section-dark .eyebrow {
  color: var(--accent);
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
}

/* Servizi */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.card-index {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
}

.card h3 {
  font-size: 1.375rem;
}

.card p {
  color: var(--muted);
}

/* Metodo */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.steps li {
  counter-increment: step;
  padding-top: 24px;
  border-top: 2px solid #2c3140;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.steps p {
  color: var(--on-dark-muted);
}

/* Settori */

.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.sectors li {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
}

.sectors li::before {
  content: "↗";
  margin-right: 14px;
  color: var(--accent);
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-dark);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 24px;
  color: var(--muted);
  max-width: 40em;
}

/* Contatti */

.cta {
  background: var(--accent);
}

.cta-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.cta h2 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
}

.cta p {
  max-width: 34em;
  font-size: 1.1875rem;
}

.cta .button {
  margin-top: 12px;
}

.cta .button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-dark);
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer .logo {
  color: var(--on-dark);
}

.site-footer .logo-mark path {
  stroke: var(--ink);
}

/* --- Pagina 404 ------------------------------------------------------------ */

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section-space) 0;
}

.not-found h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 32px;
}

/* --- Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .cards,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .hero-inner,
  .faq {
    grid-template-columns: 1fr;
  }

  .sectors {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .cards,
  .steps,
  .sectors {
    grid-template-columns: 1fr;
  }

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

  .channels-inner {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
