/* ============================================================
   LOM — Lab of Minds · Sito web
   Foglio di stile unico: token del design system + base +
   componenti (bottoni, card, eyebrow, header, footer) + Home.
   Fonte: design system "lom-lab-of-minds-design-system".
   ============================================================ */

/* ---- Webfonts (brand: Poppins display, Inter body, JetBrains Mono tech) ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

/* ============================================================
   TOKEN
   ============================================================ */
:root {
  /* Brand primitives */
  --coral-600: #9D3023;
  --coral-500: #C5462F;
  --coral-400: #E56B55;
  --coral-300: #E78D6B;
  --coral-200: #F0B5A0;
  --coral-100: #F7D9CC;

  --amber-glow-min: #FDB813;
  --amber-glow-max: #FF8C00;

  --cream-50:  #F7EFE7;
  --cream-100: #ECDDD0;
  --cream-200: #DDC9B8;
  --cream-300: #CBB39E;

  --ink-900: #241B17;
  --ink-800: #2B211C;
  --ink-600: #5A4A40;
  --ink-400: #8A7668;
  --paper:   #FFFBF7;

  --success: #5E7B4E;
  --warning: #D98A1F;
  --danger:  #B23A2A;

  /* Semantic aliases */
  --surface-page:    var(--cream-100);
  --surface-alt:     var(--cream-200);
  --surface-card:    var(--paper);
  --surface-raised:  var(--cream-50);
  --surface-dark:    var(--ink-900);
  --surface-inverse: var(--ink-800);

  --text-strong:   var(--ink-900);
  --text-body:     var(--ink-800);
  --text-muted:    var(--ink-600);
  --text-faint:    var(--ink-400);
  --text-on-dark:  var(--cream-100);
  --text-on-brand: var(--paper);
  --text-brand:    var(--coral-400);

  --brand:          var(--coral-400);
  --brand-hover:    var(--coral-300);
  --brand-active:   var(--coral-500);
  --brand-contrast: var(--coral-600);
  --accent-glow:    var(--amber-glow-min);

  --border-subtle:  rgba(45, 33, 28, 0.10);
  --border-default: rgba(45, 33, 28, 0.16);
  --border-strong:  rgba(45, 33, 28, 0.28);
  --border-brand:   var(--coral-400);
  --hairline-gold:  rgba(157, 122, 64, 0.30);

  --focus-ring: rgba(229, 107, 85, 0.45);

  /* Typography */
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-display: 56px;
  --text-h1: 48px;
  --text-h2: 36px;
  --text-h3: 26px;
  --text-h4: 20px;
  --text-lead: 21px;
  --text-body-lg: 18px;
  --text-body-size: 17px;
  --text-sm: 15px;
  --text-caption: 13.5px;
  --text-chip: 13.5px;
  --text-overline: 12.5px;

  --leading-tight: 1.08;
  --leading-snug: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.7;

  --tracking-display: -0.02em;
  --tracking-heading: -0.01em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.16em;

  /* Layout */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --section-y: 96px;
  --section-y-sm: 64px;
  --gutter: 24px;
  --container: 1200px;
  --container-narrow: 760px;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(45, 33, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(45, 33, 28, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(45, 33, 28, 0.16);
  --shadow-lg: 0 24px 60px -16px rgba(45, 33, 28, 0.22);
  --shadow-brand: 0 12px 30px -8px rgba(229, 107, 85, 0.45);
  --glow-amber: 0 0 24px rgba(253, 184, 19, 0.45);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  margin: 0 0 0.5em;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--brand); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--brand-hover); }

img { max-width: 100%; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--coral-200); color: var(--ink-900); }

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

/* Icone (Lucide via data-lucide) */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--coral-100);
  color: var(--brand-contrast);
}
.icon-badge svg { width: 24px; height: 24px; }

/* ============================================================
   COMPONENTI — Button (dal DS: components/core/Button.jsx)
   ============================================================ */
.lom-btn {
  --_bg: var(--brand);
  --_fg: var(--text-on-brand);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  line-height: 1; white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer; text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  background: var(--_bg); color: var(--_fg);
}
.lom-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.lom-btn:active { transform: translateY(0) scale(0.985); }

.lom-btn--sm { font-size: var(--text-sm); padding: 9px 16px; }
.lom-btn--md { font-size: var(--text-body-size); padding: 13px 24px; }
.lom-btn--lg { font-size: var(--text-body-lg); padding: 16px 30px; }

.lom-btn--primary { box-shadow: var(--shadow-brand); }
.lom-btn--primary:hover { background: var(--brand-hover); color: var(--text-on-brand); transform: translateY(-1px); box-shadow: 0 16px 34px -8px rgba(229,107,85,0.55); }
.lom-btn--primary:active { background: var(--brand-active); }

.lom-btn--secondary { --_bg: transparent; --_fg: var(--brand-contrast); border-color: var(--border-strong); }
.lom-btn--secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }

.lom-btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.lom-btn:hover .lom-btn__arrow { transform: translateX(3px); }

/* ============================================================
   COMPONENTI — Eyebrow
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-weight: var(--weight-semibold);
  font-size: var(--text-overline);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  margin: 0 0 44px;
  color: var(--text-strong);
}
.section-title .accent { color: var(--brand); }
.section-title--tight { margin-bottom: 16px; }

/* ============================================================
   COMPONENTI — Card cliccabile (lp-card)
   ============================================================ */
.lp-card {
  display: flex; flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease;
}
.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-200);
}
.lp-arrow { transition: transform var(--dur-base) var(--ease-out); display: inline-block; }
.lp-card:hover .lp-arrow, a:hover .lp-arrow { transform: translateX(3px); }

.lp-card h3 { font-size: 23px; font-weight: var(--weight-semibold); margin: 0 0 8px; }
.lp-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: var(--leading-normal); }
.lp-card .card-link {
  display: inline-flex; align-items: center; gap: 0.45em;
  margin-top: auto; padding-top: 16px;
  font-weight: var(--weight-semibold); color: var(--brand);
}

/* ============================================================
   HEADER (SiteHeader)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 300;
  font-family: var(--font-body);
}
.site-header__inner { max-width: 1248px; margin: 0 auto; padding: 14px var(--gutter) 0; }
.site-header__pill {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: var(--radius-pill);
  padding: 9px 12px 9px 20px;
  background: rgba(255, 251, 247, 0);
  border: 1px solid rgba(43, 33, 28, 0);
  box-shadow: none;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease;
}
.site-header--scrolled .site-header__pill {
  background: rgba(255, 251, 247, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: rgba(43, 33, 28, 0.10);
  box-shadow: 0 14px 36px -14px rgba(45, 33, 28, 0.22);
}

.brand-lockup { display: inline-flex; align-items: center; gap: 0.55em; text-decoration: none; }
.brand-lockup img { width: 34px; height: 34px; object-fit: contain; }
.brand-lockup__text { display: flex; flex-direction: column; line-height: 1; }
.brand-lockup__word {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: 19px; color: var(--brand);
}
.brand-lockup__sub {
  font-family: var(--font-display); font-weight: var(--weight-semibold);
  font-size: 6.5px; letter-spacing: var(--tracking-wider); color: var(--brand);
}

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: var(--weight-medium); }
.site-nav > a { color: var(--text-body); }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--brand); }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--text-strong);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: none;
  margin-top: 10px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px -14px rgba(45, 33, 28, 0.25);
  padding: 14px;
  flex-direction: column; gap: 2px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav > a {
  padding: 13px 16px; border-radius: 12px;
  color: var(--text-strong); font-weight: var(--weight-medium); font-size: 16px;
}
.mobile-nav > a:hover { background: var(--coral-100); color: var(--brand-contrast); }
.mobile-nav .mobile-nav__cta { padding: 10px 16px 6px; }
.mobile-nav .mobile-nav__cta .lom-btn { width: 100%; }

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background-image: url(../assets/constellation.svg);
  background-size: 720px;
  background-position: right -120px top -80px;
  background-repeat: no-repeat;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, transparent 40%, var(--surface-page) 78%);
}
.hero__grid {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 80px var(--gutter) 88px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: var(--text-display);
  font-weight: var(--weight-bold);
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--brand); }
.hero__lead {
  font-size: var(--text-lead); line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 32px; max-width: 52ch;
}
.hero__actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero__note { font-size: var(--text-caption); color: var(--text-faint); margin: 16px 0 0; }
.hero__visual { display: flex; justify-content: center; }
.hero__visual-frame {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 60px -18px rgba(157, 48, 35, 0.35), var(--shadow-sm);
}
.hero__visual-frame img { display: block; width: 100%; max-width: 400px; }

/* ============================================================
   HOME — Sezioni
   ============================================================ */
.section { padding: 88px 0; }
.section--alt { background: var(--surface-alt); }
.section--card { background: var(--surface-card); }

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

/* Metodo */
.pillar {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.pillar .icon-badge { width: 46px; height: 46px; margin-bottom: 14px; }
.pillar h3 { font-size: var(--text-h4); margin: 0 0 6px; }
.pillar p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: var(--leading-normal); }

/* Servizi */
.service-card .icon-badge { width: 52px; height: 52px; margin-bottom: 16px; }

/* Mercati */
.section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.section__head .eyebrow { margin-bottom: 14px; }
.section__head .section-title { margin: 0; }
.section__intro {
  margin: 0 0 44px; font-size: var(--text-body-size);
  line-height: var(--leading-normal);
  color: var(--text-muted); max-width: 64ch;
}
.market-card { padding: 28px; }
.market-card img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-md); margin-bottom: 16px;
}
.market-card h3 { font-size: 18px; margin: 0 0 6px; }
.market-card p { font-size: 14.5px; }

/* Testimonianze */
.testimonial {
  margin: 0; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.testimonial__mark {
  color: var(--brand); font-family: var(--font-display);
  font-size: 40px; line-height: 0.6;
}
.testimonial blockquote {
  margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-body);
}
.testimonial figcaption { margin-top: auto; font-size: 14px; color: var(--text-muted); }
.testimonial figcaption strong { color: var(--text-strong); }
.testimonials__more { margin: 28px 0 0; text-align: right; }
.testimonials__more a {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-weight: var(--weight-semibold); color: var(--brand);
}

/* CTA finale */
.cta-section { background: var(--surface-alt); padding: 0 0 100px; }
.cta-panel {
  position: relative; overflow: hidden;
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  text-align: center;
}
.cta-panel__bg {
  position: absolute; inset: 0;
  background-image: url(../assets/constellation.svg);
  background-size: 520px;
  opacity: 0.5;
}
.cta-panel__content { position: relative; }
.cta-panel h2 {
  font-size: 40px; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  color: var(--paper); margin: 0 0 16px;
}
.cta-panel p {
  font-size: 19px; color: var(--cream-200);
  max-width: 56ch; margin: 0 auto 32px;
}

/* ============================================================
   FOOTER (SiteFooter)
   ============================================================ */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--surface-dark);
  color: var(--cream-200);
}
.site-footer__bg {
  position: absolute; inset: 0;
  background-image: url(../assets/constellation.svg);
  background-size: 640px;
  background-position: right -160px top -120px;
  background-repeat: no-repeat;
  opacity: 0.35;
}
.site-footer__inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 64px var(--gutter) 28px;
}
.site-footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(236, 221, 208, 0.14);
}
.site-footer .brand-lockup img { width: 40px; height: 40px; }
.site-footer .brand-lockup__word { font-size: 22px; color: var(--coral-300); }
.site-footer .brand-lockup__sub { font-size: 7.5px; color: var(--coral-300); }
.site-footer__tagline {
  margin: 16px 0 0; font-size: 15px; line-height: var(--leading-normal);
  color: rgba(236, 221, 208, 0.75); max-width: 34ch;
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col-title {
  font-weight: var(--weight-semibold); font-size: var(--text-overline);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--coral-300);
}
.site-footer__col a, .site-footer__col span { color: rgba(236, 221, 208, 0.85); font-size: 15px; }
.site-footer__col a:hover { color: var(--coral-300); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 22px;
  font-size: var(--text-caption); color: rgba(236, 221, 208, 0.55);
  flex-wrap: wrap;
}
.site-footer__bottom a { color: rgba(236, 221, 208, 0.55); }
.site-footer__bottom a:hover { color: var(--coral-300); }
.site-footer__links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   COMPONENTI — Tag / chip tecnologica (dal DS: core/Tag.jsx)
   ============================================================ */
.lom-tag {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono);
  font-weight: var(--weight-medium);
  font-size: var(--text-chip);
  line-height: 1;
  letter-spacing: 0.01em;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--brand-contrast);
  background: var(--cream-200);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   COMPONENTI — Form (dal DS: forms/Field.jsx)
   ============================================================ */
.lom-field { display: flex; flex-direction: column; gap: 7px; }
.lom-field__label {
  font-family: var(--font-body); font-weight: var(--weight-semibold);
  font-size: var(--text-sm); color: var(--text-strong);
}

.lom-input, .lom-textarea, .lom-select {
  font-family: var(--font-body); font-size: var(--text-body-size);
  color: var(--text-body); background: var(--paper);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.lom-input::placeholder, .lom-textarea::placeholder { color: var(--text-faint); }
.lom-input:hover, .lom-textarea:hover, .lom-select:hover { border-color: var(--border-strong); }
.lom-input:focus, .lom-textarea:focus, .lom-select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.lom-textarea { resize: vertical; min-height: 120px; line-height: var(--leading-normal); }

.lom-select-wrap { position: relative; display: block; }
.lom-select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.lom-select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: translateY(-65%) rotate(45deg); pointer-events: none;
}

.lom-check {
  display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: var(--text-sm); color: var(--text-body); position: relative;
}
.lom-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.lom-check__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: var(--radius-xs); border: 1.5px solid var(--border-strong);
  background: var(--paper); display: inline-flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.lom-check__box svg { width: 13px; height: 13px; stroke: var(--text-on-brand); stroke-width: 3; opacity: 0; transition: opacity var(--dur-fast) var(--ease-out); }
.lom-check input:checked + .lom-check__box { background: var(--brand); border-color: var(--brand); }
.lom-check input:checked + .lom-check__box svg { opacity: 1; }
.lom-check input:focus-visible + .lom-check__box { box-shadow: 0 0 0 4px var(--focus-ring); }

/* ============================================================
   PAGINE INTERNE — hero introduttiva con costellazione
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background-image: url(../assets/constellation.svg);
  background-size: 680px;
  background-position: right -140px top -100px;
  background-repeat: no-repeat;
}
.page-hero__scrim {
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, transparent 40%, var(--surface-page) 78%);
}
.page-hero__inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 72px var(--gutter) 64px;
}
.page-hero h1 {
  font-size: var(--text-h1); font-weight: var(--weight-bold);
  line-height: 1.06; letter-spacing: var(--tracking-display);
  margin: 0 0 18px; max-width: 24ch;
}
.page-hero h1 .accent { color: var(--brand); }
.page-hero__lead {
  font-size: 20px; line-height: 1.55;
  color: var(--text-muted); margin: 0; max-width: 58ch;
}
.page-hero .eyebrow { margin-bottom: 18px; }

/* CTA compatta (Servizi, Mercati, Clienti, Logo) */
.cta-panel--compact { padding: 64px 56px; }
.cta-panel--compact h2 { font-size: 36px; margin: 0 0 14px; }
.cta-panel--compact p { font-size: 18px; max-width: 54ch; margin: 0 auto 30px; }

/* ============================================================
   SERVIZI
   ============================================================ */
.service-section { padding: 88px 0; scroll-margin-top: 90px; }
.service-section__grid {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.service-section .icon-badge { width: 52px; height: 52px; margin-bottom: 18px; }
.service-section h2 {
  font-size: 34px; font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-display);
  margin: 0 0 14px;
}
.service-section__body { font-size: var(--text-body-size); line-height: 1.65; color: var(--text-muted); margin: 0 0 18px; }
.service-section__note { font-size: 15.5px; line-height: var(--leading-normal); color: var(--text-muted); margin: 0 0 24px; }
.service-section__photo {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius-lg); margin-top: 32px;
  box-shadow: var(--shadow-sm);
}
.tech-cards { display: flex; flex-direction: column; gap: 16px; }
.tech-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.tech-card--shadow { box-shadow: var(--shadow-sm); }
.tech-card h3 { font-size: 17px; font-weight: var(--weight-semibold); margin: 0 0 6px; }
.tech-card p { margin: 0 0 14px; color: var(--text-muted); font-size: 14.5px; line-height: var(--leading-normal); }

/* ============================================================
   MERCATI
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.sector-card { padding: 32px; cursor: default; }
.sector-card .icon-badge { width: 48px; height: 48px; margin-bottom: 16px; }
.sector-card h2 { font-size: 22px; font-weight: var(--weight-semibold); margin: 0 0 8px; }
.sector-card p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: var(--leading-normal); }

/* ============================================================
   CLIENTI
   ============================================================ */
.grid-3--start { align-items: start; gap: 24px; }
.client-group {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.client-group__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.client-group__num {
  font-family: var(--font-mono); font-size: var(--text-overline);
  font-weight: var(--weight-semibold); color: var(--brand);
}
.client-group__label {
  font-weight: var(--weight-semibold); font-size: var(--text-overline);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--text-muted);
}
.client-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.client-group li {
  font-family: var(--font-display); font-size: 17px;
  font-weight: var(--weight-semibold); color: var(--text-strong);
}

.testimonial--lg { padding: 36px; }
.testimonial--lg .testimonial__mark { font-size: 44px; }
.testimonial--lg blockquote { font-size: 16px; line-height: 1.7; }
.testimonial--lg figcaption { font-size: 14.5px; }

.project-card { padding: 32px; cursor: default; }
.project-card .icon-badge { width: 48px; height: 48px; margin-bottom: 16px; }
.project-card h3 { font-size: 20px; margin: 0 0 8px; }
.project-card p { margin: 0 0 16px; font-size: 15px; }
.project-card .tag-row { margin-top: auto; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-hero {
  position: relative; overflow: hidden;
  background-image: url(../assets/hero-contatti-eur-1920.jpg);
  background-image: image-set(
    url(../assets/hero-contatti-eur-1920.webp) type("image/webp"),
    url(../assets/hero-contatti-eur-1920.jpg) type("image/jpeg")
  );
  background-size: cover;
  background-position: center 30%;
}
@media (max-width: 899px) {
  .contact-hero {
    background-image: url(../assets/hero-contatti-eur-900.jpg);
    background-image: image-set(
      url(../assets/hero-contatti-eur-900.webp) type("image/webp"),
      url(../assets/hero-contatti-eur-900.jpg) type("image/jpeg")
    );
  }
}
.contact-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(236,221,208,.20) 0%, rgba(236,221,208,.45) 40%, var(--surface-page) 96%);
}
.contact-hero__inner {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 120px var(--gutter) 64px;
}

.contact-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: start;
}
.contact-form {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 22px;
}
.contact-form h2 { font-size: 26px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-display); margin: 0; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form__confirm {
  margin: 0; background: var(--coral-100);
  border-radius: var(--radius-md); padding: 16px 20px;
  color: var(--brand-contrast); font-weight: var(--weight-medium);
}
.contact-form__confirm[hidden] { display: none; }
.contact-form__confirm--error { background: rgba(178, 58, 42, 0.12); color: var(--danger); }
.contact-form__privacy { display: flex; flex-direction: column; gap: 6px; }
.contact-form__privacy-link { font-size: var(--text-caption); color: var(--brand); align-self: flex-start; }
.contact-form__note { margin: 0; font-size: var(--text-caption); color: var(--text-faint); }

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; gap: 16px; align-items: flex-start;
}
.info-card .icon-badge { width: 42px; height: 42px; flex: none; border-radius: 12px; }
.info-card .icon-badge svg { width: 20px; height: 20px; }
.info-card__body { display: flex; flex-direction: column; gap: 4px; }
.info-card__title { font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--text-strong); }
.info-card__text { font-size: 15px; color: var(--text-muted); line-height: 1.55; }
.info-card__link { font-size: 15px; color: var(--brand); }

.claim-panel {
  position: relative; overflow: hidden;
  background: var(--surface-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.claim-panel__bg {
  position: absolute; inset: 0;
  background-image: url(../assets/constellation.svg);
  background-size: 420px;
  opacity: 0.4;
}
.claim-panel p {
  position: relative; margin: 0;
  font-family: var(--font-display); font-size: 18px;
  font-weight: var(--weight-semibold); color: var(--paper); line-height: 1.5;
}
.claim-panel .accent { color: var(--coral-300); }

/* ============================================================
   LOGO — "La fucina del pensiero"
   ============================================================ */
.logo-hero__grid {
  position: relative;
  max-width: var(--container); margin: 0 auto;
  padding: 84px var(--gutter) 88px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px;
  align-items: center;
}
.logo-hero__grid h1 { font-size: 52px; line-height: 1.05; margin: 0 0 20px; max-width: none; }
.logo-hero__visual { display: flex; justify-content: center; }

@keyframes lom-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.lom-spin { animation: lom-spin 90s linear infinite; transform-origin: center; }
.lom-spin--fast { animation-duration: 20s; }

.anatomy-list { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 24px; }
.anatomy-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 48px;
}
.anatomy-card__visual { display: flex; justify-content: center; }
.anatomy-card__num {
  margin: 0 0 8px;
  font-family: var(--font-mono); font-size: var(--text-overline);
  font-weight: var(--weight-semibold); letter-spacing: 0.06em;
  color: var(--brand);
}
.anatomy-card h2 { font-size: 26px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-display); margin: 0 0 10px; }
.anatomy-card p:last-child { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); }

.palette-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.swatch { border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.swatch__color { height: 110px; }
.swatch__meta { padding: 16px 20px; }
.swatch__name { margin: 0; font-family: var(--font-display); font-weight: var(--weight-semibold); color: var(--text-strong); }
.swatch__hex { margin: 2px 0 0; font-family: var(--font-mono); font-size: var(--text-overline); color: var(--text-muted); }

/* ============================================================
   PRIVACY — prosa
   ============================================================ */
.prose-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.page-hero__inner--narrow { max-width: var(--container-narrow); padding-bottom: 48px; }
.page-hero__inner--narrow h1 { font-size: 44px; margin-bottom: 16px; }
.page-hero__inner--narrow .page-hero__lead { font-size: 18px; line-height: var(--leading-normal); }
.privacy-body { display: flex; flex-direction: column; gap: 36px; font-size: 16px; line-height: var(--leading-relaxed); }
.privacy-body h2 { font-size: 22px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-heading); margin: 0 0 10px; }
.privacy-body p { margin: 0; color: var(--text-body); }
.privacy-body p + p, .privacy-body p + ul { margin-top: 10px; }
.privacy-body ul { margin: 0; padding-left: 22px; color: var(--text-body); display: flex; flex-direction: column; gap: 8px; }
.privacy-body a { color: var(--brand); }

/* ============================================================
   BLOG
   ============================================================ */
.post-card { padding: 0; overflow: hidden; }
.post-card__cover {
  display: flex; align-items: center; justify-content: center;
  height: 160px;
  background: var(--cream-200) url(../assets/constellation.svg) center / 420px no-repeat;
}
.post-card__cover svg { width: 36px; height: 36px; color: var(--brand); }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px 26px; }
.post-card__kicker {
  font-family: var(--font-mono); font-size: 12px;
  font-weight: var(--weight-semibold); letter-spacing: 0.04em;
  color: var(--brand);
}
.post-card__title {
  font-family: var(--font-display); font-size: 20px;
  font-weight: var(--weight-semibold); color: var(--text-strong); line-height: 1.3;
}
.post-card__excerpt { font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.post-card__meta { font-size: var(--text-caption); color: var(--text-faint); margin-top: 6px; }

/* ============================================================
   PARTNER ANTHROPIC — landing
   ============================================================ */
.partner-lockup {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.partner-lockup img { max-height: 64px; width: auto; }
.partner-lockup__x {
  font-family: var(--font-display); font-size: 26px;
  font-weight: var(--weight-medium); color: var(--text-faint);
}
.partner-lockup__anthropic {
  font-family: var(--font-display); font-size: 30px;
  font-weight: var(--weight-semibold); letter-spacing: -0.01em;
  color: var(--text-strong);
}
.partner-lockup__note {
  margin: 14px 0 0; text-align: center;
  font-size: var(--text-caption); color: var(--text-faint);
}

.partner-badge {
  display: flex; flex-direction: row; align-items: center; gap: 22px;
  margin-top: 28px;
  padding: 24px 30px;
}
.partner-badge__logo { height: 26px; width: auto; flex: none; }
.partner-badge__sep { width: 1px; height: 34px; background: var(--border-default); flex: none; }
.partner-badge p { margin: 0; font-size: 15.5px; color: var(--text-muted) !important; }
.partner-badge p strong { color: var(--text-strong); font-weight: var(--weight-semibold); }
.partner-badge .card-link { margin-top: 0; padding-top: 0; margin-left: auto; white-space: nowrap; }

@media (max-width: 899px) {
  .partner-badge { flex-direction: column; align-items: flex-start; gap: 14px; }
  .partner-badge__sep { display: none; }
  .partner-badge .card-link { margin-left: 0; }
}

.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.stat-card__num {
  display: block;
  font-family: var(--font-display); font-size: 52px;
  font-weight: var(--weight-bold); letter-spacing: var(--tracking-display);
  color: var(--brand); line-height: 1.05;
}
.stat-card__label {
  display: block; margin-top: 8px;
  font-size: 15.5px; color: var(--text-muted); line-height: 1.5;
}

.cert-card { cursor: default; }
.cert-card .icon-badge { width: 48px; height: 48px; margin-bottom: 16px; }
.cert-card h3 { font-size: 20px; margin: 0 0 8px; }
.cert-card p { margin: 0 0 16px; }
.cert-card .tag-row { margin-top: auto; }

@media (max-width: 899px) {
  .stat-band { grid-template-columns: 1fr; }
  .partner-lockup { flex-direction: column; gap: 16px; padding: 36px 24px; }
}

/* ============================================================
   COOKIE BANNER (Form & Cookies Extend System)
   ============================================================ */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--surface-dark);
  color: var(--cream-200);
  padding: 18px var(--gutter);
  box-shadow: 0 -6px 24px rgba(45, 33, 28, 0.25);
}
.cookie-banner__row {
  max-width: var(--container); margin: 0 auto;
  display: flex; gap: 20px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
.cookie-banner__text { margin: 0; flex: 1 1 300px; font-size: var(--text-sm); line-height: 1.55; }
.cookie-banner__text a { color: var(--coral-300); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__reject {
  background: transparent; color: var(--cream-200);
  border-color: rgba(236, 221, 208, 0.35);
}
.cookie-banner__reject:hover { border-color: var(--brand); color: var(--brand-hover); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 46px; }
}

@media (max-width: 899px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .page-hero h1 { font-size: 36px; }
  .page-hero__lead { font-size: 18px; }

  .service-section { padding: var(--section-y-sm) 0; }
  .service-section__grid { grid-template-columns: 1fr; gap: 36px; }
  .service-section h2 { font-size: 28px; }

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

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-hero__inner { padding-top: 96px; }

  .logo-hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 56px var(--gutter) 64px; }
  .logo-hero__grid h1 { font-size: 38px; }
  .logo-hero__visual { order: -1; }
  .logo-hero__visual svg { width: 240px; height: 240px; }

  .anatomy-card { grid-template-columns: 1fr; gap: 24px; padding: 32px 26px; text-align: left; }
  .anatomy-card__visual svg { width: 120px; height: 120px; }

  .palette-grid { grid-template-columns: repeat(2, 1fr); }

  .page-hero__inner--narrow h1 { font-size: 34px; }

  .hero__grid { grid-template-columns: 1fr; gap: 40px; padding: 56px var(--gutter) 64px; }
  .hero__visual { display: none; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 19px; }

  .section { padding: var(--section-y-sm) 0; }
  .section-title { font-size: 30px; margin-bottom: 32px; }
  .grid-3 { grid-template-columns: 1fr; }

  .cta-panel { padding: 48px 28px; }
  .cta-panel h2 { font-size: 30px; }
  .cta-panel p { font-size: 17px; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .lom-spin { animation: none; }
}

/* ============================================================
   TEAM — pagina team
   ============================================================ */
.stat-band--4 { grid-template-columns: repeat(4, 1fr); }

.cert-bars {
  display: flex; flex-direction: column; gap: 22px;
  max-width: 860px;
}
.cert-bar__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: 8px;
}
.cert-bar__label {
  font-weight: var(--weight-semibold); font-size: 15.5px;
  color: var(--text-strong);
}
.cert-bar__count {
  font-family: var(--font-mono); font-size: var(--text-chip);
  font-weight: var(--weight-semibold); color: var(--brand);
  white-space: nowrap;
}
.cert-bar__track {
  height: 12px; border-radius: var(--radius-pill);
  background: var(--cream-200);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.cert-bar__fill {
  height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--coral-400), var(--coral-500));
}
.cert-bars__note {
  margin: 26px 0 0; font-size: var(--text-caption);
  color: var(--text-faint); max-width: 66ch;
}

.team-card { cursor: default; }
.team-card .icon-badge { width: 48px; height: 48px; margin-bottom: 16px; }
.team-card h3 { font-size: 20px; margin: 0 0 8px; }
.team-card p { margin: 0 0 16px; }
.team-card .tag-row { margin-top: auto; }
.team-card__num {
  font-family: var(--font-mono); font-size: var(--text-overline);
  font-weight: var(--weight-semibold); letter-spacing: 0.06em;
  color: var(--brand); margin: 0 0 6px;
}

.team-photo-frame { margin: 44px 0 0; }
.team-photo {
  display: block; width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.team-photo__caption {
  margin-top: 12px;
  font-size: var(--text-caption); color: var(--text-faint);
  text-align: right;
}

@media (max-width: 1024px) {
  .stat-band--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stat-band--4 { grid-template-columns: 1fr; }
  .team-photo { border-radius: var(--radius-lg); }
}
