:root {
  --content-bg: #fefcf8;
  --content-warm: #f5f1eb;
  --content-cream: #f9f6f0;
  --content-earth: #d4c4a8;
  --ink: #2a3139;
  --muted: #6b7280;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --surface: #f3f4f6;
  --surface-2: #ececee;
  --paper: #fff;
  --accent: #dc2626;
  --accent-light: #fca5a5;
  --accent-dark: #991b1b;
  --dark: #2f3742;
  --radius: 18px;
  --content: 1160px;
  --shadow: 0 18px 55px rgba(20, 20, 24, .08);
  --u: 8px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  --s-8: 128px;
  --gutter: var(--s-4);
  --gutter-outer: var(--s-6);
  --text-12: 12px;
  --text-15: 15px;
  --text-16: 16px;
  --text-body: var(--text-15);
  --leading-body: 1.62;
  --text-20: 20px;
  --text-24: 24px;
  --text-32: 32px;
  --text-48: 48px;
  --text-64: 64px;
  --text-96: 96px;
  --hero-display: clamp(var(--text-48), 9vw, var(--text-96));
  --heading-2: clamp(var(--text-32), 4vw, var(--text-48));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-7);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--content-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 252, 248, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--content);
  min-height: 72px;
  margin: auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--text-24);
  letter-spacing: -.055em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: var(--s-4);
  height: var(--s-4);
  border-radius: 9px;
  color: #fff;
  background: var(--accent);
  font-size: 17px;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #45464a;
  text-decoration: none;
  font-size: var(--text-12);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-contact {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  color: var(--ink);
  font-size: 22px;
}

.container {
  width: min(var(--content), calc(100% - var(--gutter-outer)));
  margin: 0 auto;
}

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

.section-kicker {
  margin: 0 0 var(--s-2);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin: 0 0 var(--s-3);
  font-size: var(--heading-2);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.heading-accent {
  color: var(--accent-dark);
  font-weight: inherit;
}

.section-intro {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: var(--text-16);
}

.motto-interlude {
  padding: var(--s-8) 0;
  background: var(--content-cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.motto-interlude .container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-4);
}

.motto-interlude__quote {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

.motto-interlude__quote .section-rule {
  margin-bottom: var(--s-4);
}

.motto-interlude__quote p {
  margin: 0;
  max-width: 23em;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(var(--text-32), 3.75vw, 2.75rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.042em;
}

.opening {
  position: relative;
  background: var(--content-bg);
  overflow-x: clip;
  overflow-y: visible;
}

.opening__tree {
  position: absolute;
  top: calc(-1 * (4.5rem + 2.5rem));
  right: 0;
  left: 0;
  bottom: 0;
  margin: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

/* Asset landscape: scala da larghezza; corona verso il menu, radici sulle card */
.opening__tree-art {
  position: absolute;
  right: 120px;
  bottom: -0.5rem;
  width: min(112vw, 52rem);
  height: auto;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  object-position: right bottom;
}

.opening .hero,
.opening #esigenze {
  position: relative;
  z-index: 1;
  background: transparent;
}

.opening #esigenze.soft-section {
  background: transparent;
}

@media (min-width: 901px) {
  .opening__tree {
    top: calc(-1 * (4.5rem + 4rem));
  }

  .opening__tree-art {
    width: min(98vw, 72rem);
    right: 120px;
    bottom: -0.75rem;
  }
}

@media (min-width: 1180px) {
  .opening__tree {
    top: calc(-1 * (4.5rem + 5.5rem));
  }

  .opening__tree-art {
    width: min(105vw, 86rem);
    right: 0;
    bottom: -1rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .opening__tree {
    display: none;
  }

  .opening #esigenze.soft-section {
    background: var(--content-warm);
  }
}

.hero {
  padding: 0;
}

.hero-shell {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-4);
}

.hero-inner {
  grid-column: 1 / 11;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.hero-rule {
  width: min(12rem, 22%);
  max-width: var(--s-8);
  height: 0;
  margin: 0;
  border: 0;
  border-top: 2px solid var(--ink);
}

.hero-eyebrow {
  margin: 0 0 var(--s-5);
  padding-top: var(--s-4);
  border-top: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--text-12);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-eyebrow-sep {
  font-weight: 400;
  opacity: .32;
  letter-spacing: 0;
}

.hero-banner {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--hero-display);
  line-height: 0.94;
  letter-spacing: -0.042em;
  font-weight: 700;
}

.hero-banner-line {
  display: block;
}

.hero-banner-line+.hero-banner-line {
  margin-top: 0.02em;
}

.hero-banner-line--preface {
  margin-bottom: 0.06em;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-banner-ink {
  color: var(--accent-dark);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}

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

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #cfd0d4;
}

.button-secondary:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: #fff;
}

.soft-section {
  background: var(--content-warm);
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-top .section-intro {
  max-width: 390px;
  font-size: 14px;
}

.section-top--end {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-5);
}

.section-top-end {
  grid-column: 5 / -1;
  text-align: right;
}

.section-rule {
  height: 0;
  margin: 0 0 var(--s-2);
  border: 0;
  border-top: 1px solid var(--rule, var(--ink));
}

.section-rule--start {
  width: min(7rem, 22%);
  max-width: var(--s-8);
}

.section-rule--end {
  width: min(7rem, 36%);
  max-width: var(--s-8);
  margin-left: auto;
}

.section-top-end .section-kicker {
  margin-bottom: var(--s-2);
}

.section-top-end .section-heading {
  max-width: none;
  margin: 0 0 var(--s-2);
  margin-left: auto;
}

.section-top-end .section-intro {
  max-width: 42ch;
  margin: 0;
  margin-left: auto;
  font-size: var(--text-16);
}

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

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

.outline-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 27px;
  border-radius: 11px;
  color: var(--accent-dark);
  background: #fff0f0;
  font-size: 12px;
  font-weight: 800;
}

.outline-card h3 {
  margin: 0 0 11px;
  font-size: 20px;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.outline-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

#progetti {
  position: relative;
  padding-bottom: calc(var(--s-8) + var(--s-3));
}

#progetti .case-feature.case-study {
  margin-top: var(--s-6);
}

#progetti .project-secondary {
  margin-top: var(--s-5);
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: var(--s-6);
  align-items: start;
  margin-top: 42px;
  padding: var(--s-5) var(--s-4);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.case-study {
  padding: 36px 34px 34px;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}

.case-art {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  border: 1px dashed #c5c6cb;
  border-radius: 17px;
  background: repeating-linear-gradient(135deg, #f2f2f4 0, #f2f2f4 12px, #ededf0 12px, #ededf0 24px);
  text-align: center;
}

.case-art-inner {
  width: min(100%, 460px);
  padding: var(--s-4);
  border: 1px solid #d4d5da;
  border-radius: 13px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 15px 32px rgba(0, 0, 0, .06);
}

.case-art-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #777980;
  font-size: 11px;
}

.case-art-brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.case-schematic-kicker {
  margin: 16px 0 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 800;
}

.case-schematic-roles {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.case-schematic-roles span {
  padding: 9px 11px;
  border: 1px solid #e0e1e4;
  border-radius: 9px;
  background: #fafafb;
  color: #47494e;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

.case-schematic-flow {
  margin: 0;
  padding-left: 18px;
  color: #55585e;
  font-size: 13px;
  line-height: var(--leading-body);
}

.case-schematic-flow li+li {
  margin-top: 4px;
}

.case-schematic-note {
  margin: 16px 0 0;
  color: #777980;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

.case-eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 11px;
  font-weight: 800;
}

.case-headline {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
}

.case-intro {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: var(--text-16);
  line-height: var(--leading-body);
}

.case-block {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececee;
}

.case-block:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.case-block-title {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: var(--text-15);
  font-weight: 700;
  letter-spacing: -.01em;
}

.case-block p {
  margin: 0;
  color: #55585e;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.case-contribution {
  margin: 22px 0 20px;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: var(--leading-body);
}

.case-content h3 {
  margin: 0 0 15px;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.06;
  letter-spacing: -.05em;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}

.tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #696c72;
  font-size: 11px;
  font-weight: 650;
}

.project-secondary {
  margin-top: 18px;
}

.project-card {
  padding: 23px 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.project-card a {
  display: inline-block;
  margin-top: 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.demo-line {
  margin: 23px 0 0;
  padding: 15px 18px;
  border-radius: 12px;
  background: var(--content-warm);
  color: #62656b;
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.demo-line a {
  color: var(--accent-dark);
  font-weight: 700;
}

#metodo {
  position: relative;
  overflow: clip;
}

#metodo>.container {
  position: relative;
  z-index: 1;
}

/* Continuità con l’albero in hero: radici a destra, attacco dal top */
.metodo__roots {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.metodo__roots-art {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62vw, 48rem);
  height: auto;
  max-height: min(100%, 28rem);
  object-fit: contain;
  object-position: top right;
}

@media (min-width: 1180px) {
  .metodo__roots-art {
    width: min(67vw, 79rem);
    max-height: none;
  }
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid #c9cacf;
  counter-increment: process;
}

.process-step::before {
  content: "0" counter(process);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.process-step h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  letter-spacing: -.04em;
}

.process-step p {
  margin: 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 72px;
  align-items: start;
}

.about-panel {
  min-height: 330px;
  padding: 32px;
  border-radius: 22px;
  color: #fff;
  background: var(--dark);
}

.about-panel .initials {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin-bottom: 33px;
  border: 1px solid #66676c;
  border-radius: 19px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.about-panel h3 {
  margin: 0 0 8px;
  font-size: 27px;
  letter-spacing: -.045em;
}

.about-panel p {
  margin: 0;
  color: #c5c6cb;
  font-size: 13px;
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -.05em;
}

.about-copy>p {
  color: var(--muted);
  font-size: 15px;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 27px;
}

.skill-group {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.skill-group strong {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
}

.skill-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-group span {
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--content-cream);
  color: #66696f;
  font-size: 10px;
}

.faq-list {
  max-width: 850px;
  margin: 40px auto 0;
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 20px 36px 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 5px;
  top: 15px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 740px;
  margin: -3px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.contact-section {
  padding: 88px 0;
  color: #fff;
  background: var(--dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 54px;
  align-items: start;
}

.contact-section .section-kicker {
  color: #ff7777;
}

.contact-section h2 {
  max-width: 590px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
}

.contact-section .contact-copy {
  max-width: 520px;
  margin: 0;
  color: #c6c7cc;
  font-size: 16px;
}

.contact-links {
  display: grid;
  gap: 17px;
  margin-top: 34px;
}

.contact-link-group small {
  display: block;
  margin-bottom: 4px;
  color: #aeb0b7;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 9px;
  font-weight: 800;
}

.contact-link-group a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.contact-link-group a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-form {
  padding: 30px;
  border: 1px solid #e5e5e8;
  border-radius: 20px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
}

.contact-form h3 {
  margin: 0 0 7px;
  font-size: 23px;
  letter-spacing: -.04em;
}

.form-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 14px;
}

.form-field {
  min-width: 0;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d7d8dd;
  border-radius: 9px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999ba1;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 19px 0 18px;
  color: #62656b;
  font-size: 11px;
  line-height: 1.45;
}

.form-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.form-consent a.iubenda-embed {
  color: #991b1b;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a.iubenda-embed:hover {
  color: #dc2626;
}

.contact-form .button {
  width: 100%;
  cursor: pointer;
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.form-status {
  display: none;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.is-pending {
  color: var(--ink);
  font-weight: 500;
  background: #f9f6f0;
  border-color: #e5e7eb;
}

.form-status.is-success {
  color: #14532d;
  background: #ecfdf5;
  border-color: #86efac;
}

.form-status.is-error {
  color: #7f1d1d;
  background: #fef2f2;
  border-color: #fca5a5;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #c73a3a;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .16);
}

.form-field.has-error .form-consent input {
  outline: 2px solid #c73a3a;
  outline-offset: 1px;
}

.field-error {
  margin: 6px 0 0;
  min-height: 0;
  color: #8b2525;
  font-size: 11px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.form-consent-wrap {
  margin: 19px 0 18px;
}

.form-consent-wrap .form-consent {
  margin: 0;
}

.form-consent-wrap .field-error {
  margin-top: 8px;
}

.legal-page {
  padding: 42px 0 72px;
  background: #fefcf8;
}

.legal-page-inner {
  max-width: 640px;
}

.legal-page h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--ink);
}

.legal-lead {
  margin: 0 0 20px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.55;
}

.legal-alt {
  margin: 24px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.legal-back {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 12px;
}

.site-header .nav-inner {
  align-items: center;
}

.site-footer {
  padding: 26px 0;
  color: #aeb0b7;
  background: #171719;
  font-size: 11px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: #d4d5da;
  text-decoration: none;
}

@media (max-width: 900px) {

  .about-grid {
    gap: 35px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 12px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    top: 0;
  }

  .nav-inner {
    min-height: 66px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--content-bg);
    box-shadow: 0 14px 22px rgba(0, 0, 0, .06);
  }

  .nav-links.is-open {
    display: grid;
    gap: 0;
  }

  .nav-links li {
    border-bottom: 1px solid #eeeef0;
  }

  .nav-links li:last-child {
    padding-top: 12px;
    border: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
  }

  .nav-links .nav-contact {
    display: inline-flex;
    padding: 10px 16px;
  }

  .container {
    width: min(100% - var(--s-5), var(--content));
  }

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

  .opening__tree {
    display: none;
  }

  .metodo__roots {
    display: none;
  }

  .hero {
    padding: 0;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: .14em;
    line-height: 1.65;
  }

  .hero-inner {
    grid-column: 1 / -1;
  }

  .hero-banner {
    font-size: clamp(var(--text-32), 10vw, var(--text-48));
    line-height: 0.96;
    letter-spacing: -0.038em;
  }

  .hero-rule {
    width: min(9rem, 36%);
    max-width: var(--s-7);
  }

  .section-top {
    display: block;
    margin-bottom: 28px;
  }

  .section-top--end {
    display: block;
  }

  .section-top-end {
    grid-column: 1 / -1;
    text-align: left;
  }

  .section-top-end .section-heading,
  .section-top-end .section-intro {
    margin-left: 0;
  }

  #progetti .section-rule--end {
    margin-left: 0;
    width: min(6rem, 42%);
  }

  .section-top .section-intro {
    margin-top: 13px;
  }

  .section-intro {
    font-size: 15px;
  }

  .section-heading {
    font-size: 34px;
  }

  .cards-3,
  .cards-2,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .outline-card {
    min-height: 0;
    padding: 23px;
  }

  .card-index {
    margin-bottom: 18px;
  }

  .case-feature {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    padding: var(--s-3);
    margin-top: var(--s-4);
  }

  #progetti .case-feature.case-study {
    margin-top: var(--s-4);
  }

  .case-study {
    padding: 22px 16px 20px;
  }

  .case-art {
    min-height: 300px;
    padding: var(--s-3);
  }

  .case-content {
    padding: 5px 7px 12px;
  }

  .case-content h3 {
    font-size: 34px;
  }

  .motto-interlude {
    padding: var(--s-7) 0;
  }

  .motto-interlude__quote {
    grid-column: 1 / -1;
  }

  .motto-interlude__quote p {
    max-width: none;
    font-size: clamp(var(--text-24), 6.2vw, var(--text-32));
    line-height: 1.22;
  }

  .process-grid {
    gap: 27px;
    margin-top: 34px;
  }

  .process-step {
    padding-top: 15px;
  }

  .process-step h3 {
    margin-top: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-panel {
    min-height: 0;
    padding: 25px;
  }

  .about-panel .initials {
    margin-bottom: 21px;
  }

  .about-copy h2 {
    font-size: 34px;
  }

  .skill-groups {
    gap: 17px 12px;
  }

  .faq-list {
    margin-top: 27px;
  }

  .faq-list summary {
    font-size: 14px;
  }

  .faq-list details p {
    font-size: 13px;
  }

  .contact-section {
    padding: 68px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-section h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .contact-form {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 15px;
  }

  .site-footer {
    padding-bottom: max(26px, env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.nav-inner {
  position: relative;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
