/* =========================================================
   edwardbaritello.it · design system allineato a lynk.group
   Tema chiaro · Montserrat · blu #1351D8 · slate
   ========================================================= */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/montserrat-var.woff2") format("woff2"); }

:root {
  --primary: #1351d8;
  --primary-700: #0f3fae;
  --primary-50: #eaf1fd;
  --purple: #532599;
  --brand-cyan: #00b8eb;
  --brand-violet: #50388c;
  --brand-grad: linear-gradient(90deg, #00b8eb 0%, #50388c 100%);
  --black: #020617;
  --dark: #0f172a;
  --heading: #1e293b;
  --body: #64748b;
  --muted: #94a3b8;
  --light: #f1f5f9;
  --light-2: #f8fafc;
  --line: #e2e8f0;
  --white: #ffffff;
  --hero-bg: #0d1117;
  --r: .5rem; --r-lg: .75rem; --r-xl: 1rem; --r-2xl: 2rem; --pill: 50rem;
  --shadow: 0 1rem 3rem rgba(2, 6, 23, .08);
  --shadow-sm: 0 .25rem 1rem rgba(2, 6, 23, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p + p { margin-top: .9rem; }
strong { color: var(--heading); font-weight: 600; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--light { background: var(--light-2); }
.section--gray { background: var(--light); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 56px; }
.lead { font-size: 1.15rem; line-height: 1.65; }
.lead--xl { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; color: var(--heading); }

/* ---------- eyebrow / badge ---------- */
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.eyebrow--pill { padding: 6px 14px; border-radius: var(--pill); background: var(--primary-50); }
.badge { display: inline-block; padding: 6px 12px; border-radius: var(--pill); font-size: .78rem; font-weight: 600; background: var(--light); color: var(--heading); }
.badge--primary { background: var(--primary-50); color: var(--primary); }
.badge--onblue { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--pill); font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent; cursor: pointer; transition: all .25s var(--ease); white-space: nowrap; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-700); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(19,81,216,.7); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--primary-50); }
.btn--outline { background: transparent; color: var(--heading); border-color: var(--line); }
.btn--outline:hover { border-color: var(--heading); }
.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: var(--black); }
.btn--sm { padding: 9px 18px; font-size: .85rem; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); font-size: .95rem; }
.link:hover { gap: 10px; }
.link svg { width: 14px; height: 14px; }

/* ---------- header ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 50; height: 88px; display: flex; align-items: center; transition: background .3s, box-shadow .3s, height .3s; }
.site-header.is-solid, .site-header--solid { position: fixed; height: 72px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.site-header--solid + main, body.has-solid-header main { padding-top: 72px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 700; letter-spacing: .02em; }
.brand img { height: 40px; width: auto; }
.brand-logo { height: 34px !important; }
.brand-logo--white { display: none; }
.site-header--dark:not(.is-solid) .brand-logo--color { display: none; }
.site-header--dark:not(.is-solid) .brand-logo--white { display: block; }
.brand-sep { width: 1px; height: 30px; background: currentColor; opacity: .25; margin: 0 4px; }
.brand-name { font-weight: 600; }
.brand-name { font-size: 1rem; line-height: 1.1; }
.brand-role { display: block; white-space: nowrap; font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--body); margin-top: 3px; }
.site-header--dark .brand, .site-header--dark .brand-role, .site-header--dark .nav-links a { color: #fff; }
.site-header--dark .brand-role { color: rgba(255,255,255,.6); }
.site-header.is-solid .brand, .site-header.is-solid .nav-links a { color: var(--heading); }
.site-header.is-solid .brand-role { color: var(--body); }
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--heading); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--primary); }
.nav-links a.is-active { color: var(--primary); }
.nav-links .btn { margin-left: 8px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; place-items: center; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--heading); margin: 2px 0; border-radius: 2px; }

/* ---------- hero (home, dark) ---------- */
.hero-dark { position: relative; overflow: hidden; background: var(--hero-bg); color: #ccdae7; padding: 190px 0 120px; text-align: center; }
.hero-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle farthest-corner at -25% -50%, #0d1117 36%, rgba(13,17,23,0) 48%),
    radial-gradient(circle farthest-corner at -33% -75%, #1f00cc 48%, rgba(131,5,49,0) 56%),
    radial-gradient(circle farthest-corner at 0 -50%, rgba(13,17,23,0) 33%, #010c5f 51%, rgba(13,17,23,0) 72%),
    radial-gradient(60vw 40vw at 100% 110%, rgba(80,56,140,.35), transparent 60%),
    radial-gradient(40vw 30vw at 85% -10%, rgba(0,184,235,.18), transparent 60%); }
.hero-dark .container { position: relative; }
.hero-dark .eyebrow { color: #8fb3ff; }
.title-xl { color: #ccdae7; font-size: clamp(2.3rem, 5.6vw, 4.5rem); line-height: 1.08; font-weight: 600; letter-spacing: -.03em; max-width: 18ch; margin: 0 auto; }
.title-xl .grad { background-image: linear-gradient(207deg, #e23b3b 23%, #6668eb 87%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .05em; }
.title-xl .grad--brand { background-image: linear-gradient(90deg, #00b8eb, #7c5cff); }
.hero-dark .lead { color: #aebbcf; max-width: 60ch; margin: 24px auto 0; font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-partner { margin-top: 56px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 20px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero-partner img { height: 26px; width: auto; }

/* ---------- hero (pagine interne) ---------- */
.hero-page { position: relative; overflow: hidden; padding: 170px 0 96px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0b1b4d 0%, #1351d8 55%, #532599 100%); }
.hero-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.hero-page .container { position: relative; }
.hero-page .eyebrow { color: rgba(255,255,255,.75); }
.hero-page h1 { color: #fff; max-width: 22ch; margin: 0 auto; }
.hero-page .lead { color: rgba(255,255,255,.82); max-width: 60ch; margin: 18px auto 0; }

/* ---------- counters ---------- */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.counter { text-align: center; }
.counter .k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.counter .v { display: block; font-size: 1.6rem; font-weight: 600; color: var(--heading); }

/* ---------- statement (banda blu) ---------- */
.band-blue { background: var(--primary); color: #fff; }
.band-blue h2, .band-blue h3 { color: #fff; }
.band-blue p { color: rgba(255,255,255,.86); }
.band-blue .counters { border-top: 1px solid rgba(255,255,255,.18); border-bottom: 0; margin-top: 48px; }
.band-blue .counter .k { color: rgba(255,255,255,.65); } .band-blue .counter .v { color: #fff; }
.band-blue .counter .v::after { content: ""; display: block; width: 72px; height: 3px; margin: 10px auto 0; background: #ffd54a; border-radius: 2px; }

/* ---------- card ---------- */
.card { background: #fff; border-radius: var(--r-xl); border: 1px solid var(--line); padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.card--lift:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico { font-size: 2rem; line-height: 1; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.card .link { margin-top: 16px; }

/* servizi tile (griglia tipo "I nostri Servizi") */
.tile { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .ico { font-size: 1.9rem; line-height: 1; }
.tile h3 { font-size: 1.02rem; }
.tile p { font-size: .9rem; margin: 0; }

/* icon list (tipo "approccio integrato") */
.ilist { display: flex; flex-direction: column; }
.ilist li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.ilist li:last-child { border-bottom: 0; }
.ilist .ico { font-size: 1.4rem; line-height: 1.3; flex: 0 0 auto; }
.ilist b { color: var(--heading); font-weight: 600; }

/* checklist */
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: .95rem; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* ---------- processo a step ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.step { text-align: center; padding: 0 8px; }
.step .n { width: 40px; height: 40px; margin: 0 auto 16px; border-radius: 50%; background: var(--primary-50); color: var(--primary); font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .88rem; }
.steps--line { position: relative; }
.steps--line::before { content: ""; position: absolute; left: 10%; right: 10%; top: 20px; height: 1px; background: var(--line); z-index: 0; }
.steps--line .step { position: relative; z-index: 1; }
.steps--line .n { box-shadow: 0 0 0 8px var(--light); }

/* ---------- tabs (approccio in pratica) ---------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { flex: 1; min-width: 150px; padding: 14px 10px; background: none; border: 0; border-bottom: 2px solid transparent; font: inherit; font-size: .88rem; font-weight: 600; color: var(--body); cursor: pointer; white-space: nowrap; }
.tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.panel { display: none; padding-top: 48px; }
.panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panel h3 { font-size: 1.5rem; margin-bottom: 10px; }
.panel .ilist li { padding: 12px 0; border: 0; }
.panel-visual { position: relative; border-radius: var(--r-xl); background: var(--light); min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.panel-visual::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 55%; height: 40%; border-radius: var(--r-xl); background: #dbecfa; z-index: 0; }
.panel-visual > * { position: relative; z-index: 1; }

/* ---------- case card (stile lynk) ---------- */
.case-card { display: flex; flex-direction: column; gap: 18px; color: inherit; }
.case-cover { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1 / 1; background: var(--light-2); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.case-card:hover .case-cover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case-cover svg { width: 100%; height: 100%; display: block; }
.case-client { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--heading); }
.case-client .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--primary)); }
.case-card h3 { font-size: 1.05rem; line-height: 1.4; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.case-meta .badge { font-size: .72rem; padding: 4px 10px; }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.case-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.case-filter { padding: 9px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--body); cursor: pointer; transition: all .2s; }
.case-filter:hover { border-color: var(--primary); color: var(--primary); }
.case-filter.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.case-card.is-hidden { display: none; }

/* scheda sfida / soluzione / risultato (dettaglio) */
.ssr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.ssr div { padding: 18px; border-radius: var(--r-lg); background: var(--light-2); }
.ssr b { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.ssr p { font-size: .88rem; }

/* ---------- loghi partner ---------- */
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.logo-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 26px 18px; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); text-align: center; }
.logo-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.logo-box img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.logo-box .cap { font-size: .78rem; color: var(--body); }
.logo-box--invert img { filter: invert(1); }
.logo-box--word { font-weight: 700; font-size: 1.2rem; color: var(--heading); }
.logo-box--word small { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 2px; }

/* certificazioni */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cert { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; text-align: center; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.cert img { height: 52px; width: auto; object-fit: contain; }
.cert b { color: var(--heading); font-size: .95rem; }
.cert span { font-size: .75rem; line-height: 1.4; }

/* ---------- banda AI pastello ---------- */
.band-pastel { background: linear-gradient(135deg, #e9d5ff 0%, #c7e9ff 50%, #c8f7dc 100%); text-align: center; }
.band-pastel h2 { max-width: 24ch; margin: 0 auto; }
.band-pastel .lead { max-width: 58ch; margin: 18px auto 0; color: #334155; }

/* ---------- CTA blu ---------- */
.cta-block { background: var(--primary); color: #fff; border-radius: var(--r-2xl); padding: 72px 40px; text-align: center; box-shadow: 0 30px 60px -30px rgba(19,81,216,.6); }
.cta-block h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 18ch; margin: 0 auto; }
.cta-block p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 16px auto 0; }
.cta-block .hashtags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-block .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; color: var(--heading); font-size: .98rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "⌄"; font-size: 1.2rem; color: var(--muted); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { margin-top: 12px; font-size: .93rem; max-width: 70ch; }

/* ---------- about / ritratto ---------- */
.portrait { border-radius: var(--r-2xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: var(--light); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 26px; }
.facts li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--heading); font-weight: 500; }
.facts .ico { font-size: 1.2rem; }

/* blocco scuro "metodo" (stile about lynk) */
.dark-card { background: linear-gradient(135deg, #0f172a, #1e1b4b 60%, #312e81); color: #fff; border-radius: var(--r-2xl); padding: 64px 56px; position: relative; overflow: hidden; }
.dark-card::after { content: ""; position: absolute; right: -10%; top: -20%; width: 55%; height: 140%; background: radial-gradient(circle at 30% 50%, rgba(0,184,235,.25), transparent 60%), radial-gradient(circle at 70% 30%, rgba(124,92,255,.35), transparent 55%); pointer-events: none; }
.dark-card > * { position: relative; }
.dark-card h2, .dark-card h3 { color: #fff; }
.dark-card .badge { background: rgba(255,255,255,.1); color: #fff; }
.dark-card p, .dark-card li { color: rgba(255,255,255,.82); }
.dark-card .ilist li { border-color: rgba(255,255,255,.1); padding: 12px 0; }

/* ---------- blog ---------- */
.post { display: flex; flex-direction: column; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; color: inherit; background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%); position: relative; display: grid; place-items: center; font-size: 2.6rem; }
.post .thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 10%, rgba(255,255,255,.22), transparent 50%); }
.post .thumb span { position: relative; }
.post .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post .meta { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.post h3 { font-size: 1.05rem; line-height: 1.4; }
.post .link { margin-top: auto; }

/* articolo */
.article { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }
.article .eyebrow { display: inline-block; }
.article h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 8px 0 18px; }
.article .meta { font-size: 1.1rem; color: var(--body); margin-bottom: 36px; font-weight: 500; }
.article p, .article li { font-size: 1.02rem; line-height: 1.8; color: #475569; }
.article p { margin: 0 0 20px; }
.article h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.article ul, .article ol { margin: 0 0 20px 22px; }
.article ul { list-style: disc; } .article ol { list-style: decimal; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 3px solid var(--primary); padding: 6px 0 6px 20px; margin: 28px 0; color: var(--heading); font-weight: 500; font-size: 1.08rem; }
.article blockquote[style] { border-left-color: var(--primary) !important; color: var(--heading) !important; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: .95rem; }
.article th, .article td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article th { color: var(--heading); font-weight: 600; background: var(--light-2); }
.article .article-cta { margin-top: 48px; padding: 32px; border-radius: var(--r-xl); background: var(--light-2); border: 1px solid var(--line); }
.article .article-cta p { margin: 0 0 16px; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article .btn { text-decoration: none; }

/* ---------- form / contatti ---------- */
.form-card { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); padding: 40px; border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--heading); }
.field label i { color: #db1436; font-style: normal; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; color: var(--heading); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(19,81,216,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--body); transition: all .2s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; }
.consent input { margin-top: 4px; }
.contact-list { display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); color: var(--heading); font-weight: 500; transition: border-color .2s, transform .2s; }
.contact-list a:hover { border-color: var(--primary); transform: translateX(3px); }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #94a3b8; padding: 72px 0 32px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: #cbd5e1; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-logo { height: 30px !important; }
.footer-brand .brand-role { color: #94a3b8; }
.footer-brand p { font-size: .92rem; margin-top: 18px; max-width: 40ch; }
.footer-partner { margin-top: 22px; display: flex; align-items: center; gap: 12px; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-partner img { height: 24px; width: auto; }
.footer-col ul li { margin-bottom: 10px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.footer-legal { margin-top: 28px; font-size: .74rem; line-height: 1.6; color: #64748b; }
.footer-legal strong { color: #94a3b8; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .counters { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps--line::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .grid-3, .grid-2, .split, .panel.is-active, .form-grid { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px); flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; padding: 96px 28px 28px; box-shadow: -20px 0 60px rgba(2,6,23,.18); transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; z-index: 60; }
  .nav-links.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-links a { font-size: 1.1rem; color: var(--heading) !important; padding: 10px 0; width: 100%; }
  .nav-links .btn { margin: 14px 0 0; justify-content: center; color: #fff !important; }
  .nav-toggle { display: grid; position: relative; z-index: 70; }
  .site-header--dark .nav-toggle { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
  .site-header--dark .nav-toggle span { background: #fff; }
  .site-header.is-solid .nav-toggle { background: #fff; border-color: var(--line); }
  .site-header.is-solid .nav-toggle span { background: var(--heading); }
  .hero-dark { padding: 140px 0 80px; }
  .hero-page { padding: 130px 0 72px; }
  .cta-block { padding: 48px 24px; border-radius: var(--r-xl); }
  .dark-card { padding: 40px 28px; }
  .ssr { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .case-grid, .logos, .steps, .counters, .certs { grid-template-columns: 1fr; }
  .counters { gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-role { display: none; }
  .brand-logo { height: 28px !important; }
  .brand-name { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- percorso animato (journey) ---------- */
.journey { position: relative; }
.journey-track { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 12px; }
.journey-line { position: absolute; left: calc(50% / var(--n, 5)); right: calc(50% / var(--n, 5)); top: 24px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.journey-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--brand-cyan), var(--primary)); transition: width .9s var(--ease); }
.journey-step { position: relative; z-index: 1; background: none; border: 0; font: inherit; cursor: pointer; text-align: center; padding: 0 6px; color: var(--muted); }
.journey-step .n { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--muted); transition: all .45s var(--ease); box-shadow: 0 0 0 8px var(--light-2); }
.journey-step .t { display: block; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .3s; }
.journey-step small { display: block; font-size: .78rem; margin-top: 2px; color: var(--muted); }
.journey-step.is-done .n { border-color: var(--primary); color: var(--primary); }
.journey-step.is-done .t { color: var(--heading); }
.journey-step.is-active .n { background: var(--primary); border-color: var(--primary); color: #fff; transform: scale(1.1); box-shadow: 0 0 0 8px var(--light-2), 0 0 0 14px rgba(19,81,216,.14); }
.journey-step.is-active .t { color: var(--heading); }
.journey-step:hover .n { border-color: var(--primary); }
.journey-detail { position: relative; margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 36px 40px 40px; box-shadow: var(--shadow-sm); overflow: hidden; }
.journey-pane { display: none; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.journey-pane.is-active { display: grid; animation: paneIn .55s var(--ease); }
.journey-pane h3 { font-size: 1.5rem; margin-bottom: 10px; }
.journey-pane p { font-size: .98rem; }
.journey-pane .checks { margin-top: 6px; }
.journey-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--primary); opacity: .35; }
.journey.is-running .journey-timer { animation: timer var(--journey-ms, 5200ms) linear; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes timer { from { width: 0; } to { width: 100%; } }
.section:not(.section--light) .journey-step .n { box-shadow: 0 0 0 8px #fff; }
.section:not(.section--light) .journey-step.is-active .n { box-shadow: 0 0 0 8px #fff, 0 0 0 14px rgba(19,81,216,.14); }
.phase-visual { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 320px; }
.phase-big { font-size: 11rem; font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.05em; text-shadow: 0 10px 30px rgba(2,6,23,.08); }
.phase-emoji { position: absolute; font-size: 4rem; right: 18%; bottom: 20%; }
@media (max-width: 820px) {
  .journey-track { grid-template-columns: 1fr; gap: 0; }
  .journey-line { left: 24px; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; }
  .journey-fill { width: 3px !important; height: var(--vfill, 0%); transition: height .9s var(--ease); background: linear-gradient(180deg, var(--brand-cyan), var(--primary)); }
  .journey-step { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; text-align: left; padding: 10px 0; align-items: center; }
  .journey-step .n { margin: 0; }
  .journey-step small { grid-column: 2; }
  .journey-pane { grid-template-columns: 1fr; gap: 20px; }
  .journey-detail { padding: 26px 22px 30px; }
  .phase-big { font-size: 7rem; }
}

/* ---------- pilastri ---------- */
.pillar { text-align: center; padding: 28px 22px; }
.pillar .ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px; background: var(--primary-50); font-size: 1.8rem; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pillar p { font-size: .92rem; }

/* ---------- corsia trasversale: approccio FP&A ---------- */
.value-lane { display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 32px; align-items: center; padding: 34px 36px; border-radius: var(--r-xl); background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #1351d8 140%); color: #fff; position: relative; overflow: hidden; }
.value-lane::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,184,235,.0), rgba(0,184,235,.14) 50%, rgba(80,56,140,.0)); pointer-events: none; }
.value-lane > * { position: relative; }
.lane-head .eyebrow { color: #8fb3ff; }
.lane-head h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.lane-head p { color: rgba(255,255,255,.8); font-size: .95rem; }
.lane-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lane-item { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.lane-item .ico { font-size: 1.5rem; }
.lane-item b { color: #fff; font-size: .95rem; line-height: 1.3; display: block; }
.lane-item p { color: rgba(255,255,255,.72); font-size: .82rem; margin-top: 4px; }
.journey-step .t { font-size: .88rem; }
.journey-step small { font-size: .74rem; }
@media (max-width: 1024px) { .value-lane { grid-template-columns: 1fr; } .journey-step .t { font-size: .8rem; } }
@media (max-width: 820px) { .lane-items { grid-template-columns: 1fr; } .value-lane { padding: 26px 22px; } .journey-step .t { font-size: .95rem; } }

/* ---------- menu: hamburger fino a 1000px (sette voci) ---------- */
@media (max-width: 1000px) {
  .nav-links { position: fixed; top: 0; right: 0; bottom: 0; width: min(84vw, 360px); flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; padding: 96px 28px 28px; box-shadow: -20px 0 60px rgba(2,6,23,.18); transform: translateX(105%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; z-index: 60; }
  .nav-links.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-links a { font-size: 1.1rem; color: var(--heading) !important; padding: 10px 0; width: 100%; }
  .nav-links .btn { margin: 14px 0 0; justify-content: center; color: #fff !important; }
  .nav-toggle { display: grid; position: relative; z-index: 70; }
  .site-header--dark .nav-toggle { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
  .site-header--dark .nav-toggle span { background: #fff; }
  .site-header.is-solid .nav-toggle { background: #fff; border-color: var(--line); }
  .site-header.is-solid .nav-toggle span { background: var(--heading); }
}
/* ---------- partner: schede dettagliate ---------- */
.pcard { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard-logo img { height: 32px; width: auto; max-width: 180px; object-fit: contain; }
.pcard-logo.logo-box--invert img { filter: invert(1); }
.pcard h3 { font-size: 1.1rem; }
.pcard p { font-size: .95rem; }
.pcard .link { margin-top: auto; }
.pm-note { padding: 14px 16px; border-radius: var(--r-lg); background: var(--primary-50); border-left: 3px solid var(--primary); }
.pm-note .eyebrow { margin-bottom: 4px; }
.pm-note p { font-size: .92rem; color: var(--heading); margin: 0; }

@media (max-width: 1240px) { .site-header .brand-role { display: none; } }

/* Casi: immagini dei case study Lynk Group */
.case-cover img { width: 100%; height: 100%; display: block; object-fit: cover; background: #fff; }
.case-desc { font-size: .9rem; margin: 0; color: var(--body); }
/* Badge e partner Lynk Group */
.tile-badge { height: 48px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: 6px; }
.logo-box--sq img { height: 64px; max-width: 120px; }
.logos-title { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--body); margin: 0 0 18px; }
.contact-links a.whatsapp .ico { background: #e7f9ee; }

/* v3: menù, allineamenti, loghi */
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links .btn::after { display: none; }
.site-header--dark:not(.is-solid) .nav-links a { color: rgba(255,255,255,.78); }
.site-header--dark:not(.is-solid) .nav-links a:hover, .site-header--dark:not(.is-solid) .nav-links a.is-active { color: #fff; }
.site-header--dark:not(.is-solid) .nav-links a::after { background: var(--brand-cyan); }
.site-header--dark:not(.is-solid) .nav-links .btn { color: #fff; }
.site-header.is-solid .nav-links a:hover, .site-header.is-solid .nav-links a.is-active, .site-header--solid .nav-links a:hover, .site-header--solid .nav-links a.is-active { color: var(--primary); }
.site-header.is-solid .nav-links .btn, .site-header--solid .nav-links .btn { color: #fff; }
/* percorso: numeri e testi allineati in alto, altezze uniformi */
.journey-step { align-self: start; display: flex; flex-direction: column; align-items: center; }
.journey-step .n { flex: 0 0 auto; }
.journey-step .t { min-height: 2.5em; line-height: 1.25; display: flex; align-items: flex-start; justify-content: center; }
.journey-step small { min-height: 2.4em; line-height: 1.2; }
/* loghi partner: stessa altezza e stessa area logo */
.logo-box { justify-content: flex-start; }
.logo-box img { width: 150px; height: 44px; max-width: 150px; object-fit: contain; }
.logo-box .cap { min-height: 3.6em; display: flex; align-items: flex-start; justify-content: center; }
.logos--4 { grid-template-columns: repeat(4, 1fr); }
.logo-cef { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 150px; height: 44px; }
.logo-cef img { width: auto; height: 36px; max-width: none; }
.logo-cef > span { font-weight: 700; font-size: 1.02rem; color: #16140f; letter-spacing: -.01em; white-space: nowrap; }
.logo-cef b { color: #ea4e49; }
.pcard-logo .logo-cef { width: auto; height: 32px; }
.pcard-logo .logo-cef img { height: 28px; }
/* certificazioni: icone in box uniforme */
.cert img { height: 56px; width: auto; max-width: 120px; object-fit: contain; }
.cert span { min-height: 3.2em; }
/* servizi: ultima riga centrata */
.grid-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.grid-services > .tile { flex: 0 0 calc(25% - 18px); }
@media (max-width: 1024px) { .grid-services > .tile { flex-basis: calc(50% - 12px); } }
@media (max-width: 640px) { .grid-services > .tile { flex-basis: 100%; } }
/* v3b: bottone menù sempre leggibile, contatori su una riga, loghi Lynk più grandi */
.site-header .nav-links .btn::after { content: none; }
.site-header--dark:not(.is-solid) .nav-links .btn { background: #fff; color: var(--primary); border-color: #fff; }
.site-header--dark:not(.is-solid) .nav-links .btn:hover { background: var(--brand-cyan); color: #0f172a; border-color: var(--brand-cyan); }
.counter .v { font-size: 1.35rem; line-height: 1.25; }
.logo-box--sq img { width: 120px; height: 72px; max-width: 120px; }

/* v4 */
.logo-box { padding: 22px 12px; }
.logo-box img { width: 100%; max-width: 130px; height: 44px; }
.logo-cef { width: 100%; max-width: 134px; gap: 6px; }
.logo-cef > span { font-size: .9rem; }
.footer-brand .brand { flex-wrap: wrap; align-items: center; }
.footer-brand .brand-role { white-space: normal; line-height: 1.35; }
.footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.footer-bottom a { color: #cbd5e1; }
/* v5: regole mobile che devono vincere sulle aggiunte precedenti */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logos--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .journey-step { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; align-items: center; text-align: left; }
  .journey-step .t { min-height: 0; display: block; text-align: left; }
  .journey-step small { min-height: 0; }
  .journey-step.is-active .n { transform: none; box-shadow: 0 0 0 6px var(--light-2); }
  .journey-line { left: 24px; right: auto; top: 24px; bottom: 24px; width: 3px; height: auto; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-services, .logos--4 { grid-template-columns: 1fr; }
  .logos--4 { grid-template-columns: repeat(2, 1fr); }
  .counter .v { font-size: 1.25rem; }
  .cta-block .actions { flex-direction: column; align-items: center; }
  .cta-block .actions .btn { width: 100%; max-width: 320px; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .footer-bottom a { white-space: nowrap; }
  .article-table { display: block; overflow-x: auto; }
}
