/* ==========================================================================
   Ivan Salvarani — foglio di stile unico
   Palette: navy profondo, verde foresta, bianco caldo.
   ========================================================================== */

/* ----------------------------- Font (self-hosted) ------------------------ */
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------- Variabili ------------------------------- */
:root {
  --navy-950: #070f19;
  --navy-900: #0b1523;
  --navy-800: #101c2c;
  --navy-700: #18283a;
  --forest-700: #174b3b;
  --green: #2f7658;
  --green-300: #8cc3a9;
  --green-200: #b6d8c8;
  --paper: #f6f5f0;
  --sage: #e8ebe7;
  --muted-dark: #59665f;
  --muted-light: #aab5b0;
  --line-dark: rgba(246, 245, 240, 0.14);
  --line-light: rgba(16, 28, 44, 0.14);
  --danger: #d98b7f;
  --danger-dark: #a8453a;

  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --container: 1240px;
  --header-h: 78px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

/* -------------------------------- Reset ---------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy-800);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open {
  overflow: hidden;
}
img,
picture,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure,
ol,
ul {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
}
::selection {
  background: var(--green);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.section--navy :focus-visible,
.site-footer :focus-visible,
.site-header :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--green-300);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.1rem;
  background: var(--paper);
  color: var(--navy-800);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* -------------------------------- Layout --------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(4.25rem, 8vw, 7.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.section--paper {
  background: var(--paper);
}
.section--sage {
  background: var(--sage);
}
.section--navy {
  background: var(--navy-800);
  color: var(--paper);
}

/* ------------------------------ Tipografia -------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section-title em {
  font-style: italic;
  color: var(--forest-700);
}
.section-title--light {
  color: var(--paper);
}
.section-title--light em {
  color: var(--green-300);
}

.lead {
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--navy-800);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.eyebrow__index {
  font-variant-numeric: tabular-nums;
  color: var(--forest-700);
}
.eyebrow--light {
  color: var(--muted-light);
}
.eyebrow--light .eyebrow__index {
  color: var(--green-300);
}
.section-head {
  border-top: 1px solid var(--line-light);
  padding-top: 1.1rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}
.section-head--dark {
  border-color: var(--line-dark);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-300);
  flex: none;
}

/* ------------------------------- Bottoni --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.45rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translate(2px, -2px);
}
.btn:active {
  transform: translateY(1px);
}

.btn--light {
  background: var(--paper);
  color: var(--navy-800);
}
.btn--light:hover {
  background: #fff;
}
.btn--green {
  background: var(--green);
  color: #fff;
  padding: 1rem 1.6rem;
}
.btn--green:hover {
  background: #368267;
}
.btn--outline-light {
  border-color: rgba(246, 245, 240, 0.42);
  color: var(--paper);
}
.btn--outline-light:hover {
  background: rgba(246, 245, 240, 0.1);
  border-color: var(--paper);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(246, 245, 240, 0.9);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(246, 245, 240, 0.35);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover {
  color: #fff;
  border-color: var(--green-300);
}
.link-arrow:hover svg {
  transform: translate(2px, -2px);
}
.link-arrow--dark {
  color: var(--navy-800);
  border-color: var(--line-light);
}
.link-arrow--dark:hover {
  color: var(--forest-700);
  border-color: var(--forest-700);
}

/* -------------------------------- Header --------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--paper);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 25, 0.55), rgba(7, 15, 25, 0));
  opacity: 1;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header[data-scrolled="true"],
.site-header--solid {
  background: rgba(11, 21, 35, 0.93);
  border-bottom-color: rgba(246, 245, 240, 0.1);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.site-header[data-scrolled="true"]::before,
.site-header--solid::before {
  opacity: 0;
}

.header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: start;
}
.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  border: 1px solid rgba(246, 245, 240, 0.16);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}
.brand__name {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
}

.header__claim {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  letter-spacing: 0.005em;
  color: rgba(246, 245, 240, 0.72);
  text-align: center;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2rem);
  justify-self: end;
}
.nav-link {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: rgba(246, 245, 240, 0.85);
  padding-block: 0.35rem;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--green-300);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover {
  color: #fff;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid rgba(246, 245, 240, 0.3);
  border-radius: var(--radius);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--paper);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.nav-cta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-cta:hover {
  background: var(--paper);
  color: var(--navy-800);
  border-color: var(--paper);
}

/* Menu mobile */
.menu-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem;
  color: var(--paper);
}
.menu-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 20px;
}
.menu-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.menu-mobile {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  height: calc(100svh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter) 2rem;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.menu-mobile[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.menu-mobile__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-dark);
}
.menu-mobile__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--paper);
}
.menu-mobile__nav a span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted-light);
}
.menu-mobile__footer {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted-light);
}
.menu-mobile__footer p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(246, 245, 240, 0.75);
  margin-bottom: 0.65rem;
}
.menu-mobile__footer a {
  color: var(--paper);
  width: fit-content;
  border-bottom: 1px solid transparent;
}
.menu-mobile__footer a:hover {
  border-color: var(--green-300);
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media picture {
  display: contents;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      100deg,
      rgba(7, 15, 25, 0.95) 0%,
      rgba(7, 15, 25, 0.88) 30%,
      rgba(7, 15, 25, 0.52) 55%,
      rgba(7, 15, 25, 0.18) 78%,
      rgba(7, 15, 25, 0.42) 100%
    ),
    linear-gradient(0deg, rgba(7, 15, 25, 0.92) 0%, rgba(7, 15, 25, 0) 42%),
    linear-gradient(180deg, rgba(7, 15, 25, 0.6) 0%, rgba(7, 15, 25, 0) 26%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: calc(var(--header-h) + clamp(2.5rem, 9vh, 6rem)) var(--gutter) clamp(1.75rem, 4vh, 2.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 9vh, 8rem);
}
.hero__content {
  max-width: 860px;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 245, 240, 0.78);
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.2vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem);
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.25);
}
.hero__title em {
  font-style: italic;
  color: #d8e9df;
}
.hero__subtitle {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.35vw, 1.17rem);
  line-height: 1.6;
  color: rgba(246, 245, 240, 0.86);
  margin-bottom: clamp(1.75rem, 4vh, 2.5rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}
.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 245, 240, 0.72);
  transition: color 0.25s var(--ease);
}
.hero__scroll svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.hero__scroll:hover {
  color: #fff;
}
.hero__scroll:hover svg {
  transform: translateY(3px);
}

/* ------------------------------- Chi sono -------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.about__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.about__label span {
  width: 30px;
  height: 1px;
  background: var(--forest-700);
}
.about__body {
  border-left: 1px solid var(--line-light);
  padding-left: clamp(1.5rem, 4vw, 3.5rem);
}
.about__body p {
  max-width: 62ch;
  color: #33443d;
}
.about__body p + p {
  margin-top: 1.1rem;
}
.about__body .lead {
  color: var(--navy-800);
  margin-bottom: 1.35rem;
}
.about__link {
  margin-top: 2rem;
}

/* -------------------------------- Metodo --------------------------------- */
.method {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}
.method .section-title {
  max-width: 20ch;
}
.method__intro {
  max-width: 52ch;
  color: var(--muted-light);
  font-size: 1.02rem;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.pillar {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--green-300);
  transition: width 0.6s var(--ease);
}
.pillar:hover::before {
  width: 100%;
}
.pillar__number {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-300);
  display: block;
  margin-bottom: 2.25rem;
}
.pillar__title {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.65rem;
  color: var(--paper);
}
.pillar__text {
  color: var(--muted-light);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 36ch;
}

/* -------------------------------- Esplora -------------------------------- */
.explore-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.explore-head .section-title {
  max-width: 17ch;
}
.explore-head__intro {
  max-width: 56ch;
  color: var(--muted-dark);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 6vw, 4.5rem);
}
.project {
  border-top: 1px solid var(--line-light);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}
.project__link {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  grid-template-areas:
    "media body"
    "caption body";
  gap: 0 clamp(1.75rem, 5vw, 4.5rem);
  align-items: center;
}
.project--reverse .project__link {
  grid-template-areas:
    "body media"
    "body caption";
}
.project__media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(16, 28, 44, 0.16);
  background: var(--sage);
  box-shadow: 0 18px 45px -32px rgba(16, 28, 44, 0.55);
}
.project__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project__link:hover .project__media img,
.project__link:focus-visible .project__media img {
  transform: scale(1.035);
}
.project__index {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding-inline: 0.5rem;
  background: rgba(7, 15, 25, 0.82);
  color: var(--paper);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  border-radius: 2px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.project__body {
  grid-area: body;
  max-width: 44ch;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 1.35rem;
}
.chip span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.project__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.project__link:hover .project__title {
  color: var(--forest-700);
}
.project__text {
  margin-top: 0.9rem;
  color: var(--muted-dark);
  max-width: 42ch;
}
.project__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  padding-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  border-bottom: 1px solid rgba(16, 28, 44, 0.28);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.project__cta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.project__link:hover .project__cta {
  color: var(--forest-700);
  border-color: var(--forest-700);
}
.project__link:hover .project__cta svg {
  transform: translateX(4px);
}
.project__caption {
  grid-area: caption;
  justify-self: start;
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #5f6b64;
}

.explore-cta {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  background: var(--forest-700);
  color: var(--paper);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.explore-cta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.explore-cta p {
  max-width: 58ch;
  color: rgba(246, 245, 240, 0.82);
  font-size: 0.98rem;
}
.explore-cta .btn {
  flex: none;
}

/* -------------------------------- Servizi -------------------------------- */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.services-head .section-title {
  max-width: 18ch;
}
.services-head__intro {
  max-width: 54ch;
  color: var(--muted-dark);
}
.services {
  border-top: 1px solid var(--line-light);
}
.service {
  display: grid;
  grid-template-columns: 76px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
  padding: clamp(1.6rem, 3.2vw, 2.35rem) 0;
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.35s var(--ease);
}
.service:hover {
  background: rgba(246, 245, 240, 0.55);
}
.service__number {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--forest-700);
  font-variant-numeric: tabular-nums;
  transition: transform 0.35s var(--ease);
}
.service:hover .service__number {
  transform: translateX(4px);
}
.service__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.service__text {
  color: var(--muted-dark);
  font-size: 0.99rem;
  max-width: 58ch;
}

/* ---------------------------------- FAQ ---------------------------------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.faq-aside .eyebrow {
  border-top: 1px solid var(--line-light);
  padding-top: 1.1rem;
  margin-bottom: 1.5rem;
}
.faq-aside .section-title {
  max-width: 9ch;
}
.faq-aside__text {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: 0.95rem;
  color: var(--muted-dark);
}
.accordion {
  border-top: 1px solid var(--line-light);
}
.accordion__item {
  border-bottom: 1px solid var(--line-light);
}
.accordion__heading {
  font-weight: 400;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.15rem, 2.4vw, 1.6rem) 0;
  text-align: left;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  font-weight: 500;
  color: var(--navy-800);
  transition: color 0.25s var(--ease);
}
.accordion__trigger:hover {
  color: var(--forest-700);
}
.accordion__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  transition: transform 0.35s var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.accordion__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}
.accordion__icon::after {
  left: 50%;
  top: 0;
  height: 100%;
  width: 1px;
  transform: translateX(-50%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(90deg);
  color: var(--forest-700);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.accordion__panel {
  overflow: hidden;
}
.accordion__panel-inner {
  padding-bottom: 1.6rem;
  max-width: 64ch;
  color: var(--muted-dark);
  font-size: 0.98rem;
}

/* ------------------------------- Contatti -------------------------------- */
.section--contact {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__intro .eyebrow {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.1rem;
  margin-bottom: 1.5rem;
}
.contact__intro .section-title {
  max-width: 15ch;
}
.contact__text {
  margin-top: 1.5rem;
  max-width: 48ch;
  color: var(--muted-light);
}
.contact__direct {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.contact__direct-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.6rem;
}
.contact__direct a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paper);
  width: fit-content;
  border-bottom: 1px solid rgba(246, 245, 240, 0.25);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__direct a:hover {
  color: var(--green-300);
  border-color: var(--green-300);
}
.form__legend {
  font-size: 0.78rem;
  color: var(--muted-light);
  margin-bottom: 1.5rem;
}
.form__legend span,
.req {
  color: var(--green-300);
}
.form__closing {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.45;
  color: var(--green-200);
  max-width: 40ch;
}

.contact__form-wrap {
  background: rgba(246, 245, 240, 0.035);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}
.field {
  margin-bottom: 1.5rem;
}
.field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c3cdc7;
  margin-bottom: 0.5rem;
}
.field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--muted-light);
}
.req {
  color: var(--green-300);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246, 245, 240, 0.24);
  border-radius: 0;
  padding: 0.55rem 0 0.7rem;
  font-size: 1rem;
  color: var(--paper);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.55;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(246, 245, 240, 0.35);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(246, 245, 240, 0.45);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-300);
  box-shadow: 0 1px 0 0 var(--green-300);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
}
.field__error {
  display: none;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #f2b3a8;
}
.field__error.is-visible {
  display: block;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
  box-shadow: 0 1px 0 0 var(--danger);
}
.form__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}
.form__hint {
  font-size: 0.8rem;
  color: var(--muted-light);
  max-width: 26ch;
  line-height: 1.5;
}
.form__status {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--green-200);
  border-left: 2px solid var(--green-300);
  padding-left: 0.9rem;
  display: none;
}
.form__status.is-visible {
  display: block;
}
.form__status.is-error {
  color: #f2b3a8;
  border-left-color: var(--danger);
}

/* -------------------------------- Footer --------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--paper);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid rgba(246, 245, 240, 0.08);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.brand--footer {
  gap: 0.85rem;
}
.brand--footer .brand__mark {
  width: 54px;
  height: 54px;
}
.footer__desc {
  margin-top: 1.1rem;
  font-size: 0.92rem;
  color: var(--muted-light);
  max-width: 30ch;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}
.footer__title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #85948c;
  margin-bottom: 0.5rem;
}
.footer__col a {
  font-size: 0.95rem;
  color: #d4ddd8;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__col a:hover {
  color: var(--paper);
  border-color: var(--green-300);
}
.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.footer__social svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer__bottom {
  border-top: 1px solid rgba(246, 245, 240, 0.1);
  padding-block: 1.35rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  font-size: 0.8rem;
  color: #8d9a93;
}
.footer__bottom a {
  color: #d4ddd8;
  border-bottom: 1px solid rgba(246, 245, 240, 0.25);
}
.footer__bottom a:hover {
  color: var(--paper);
}
.footer__note {
  margin-left: auto;
}

/* ------------------------- Pagina Privacy Policy ------------------------- */
.page-hero {
  background: var(--navy-800);
  color: var(--paper);
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.25rem;
}
.page-hero__eyebrow .eyebrow__index {
  color: var(--green-300);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.page-hero__lead {
  margin-top: 1.25rem;
  max-width: 62ch;
  color: var(--muted-light);
}
.page-hero__meta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: #8fa099;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.page-hero__meta a {
  color: inherit;
  border-bottom: 1px solid rgba(246, 245, 240, 0.35);
}
.page-hero__meta a:hover {
  color: var(--paper);
  border-color: var(--green-300);
}

.legal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.legal__toc {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  font-size: 0.85rem;
}
.legal__toc-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-dark);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 0.9rem;
}
.legal__toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal__toc a {
  color: var(--muted-dark);
  display: block;
  line-height: 1.4;
  transition: color 0.2s var(--ease);
}
.legal__toc a:hover {
  color: var(--forest-700);
}
.legal__article {
  max-width: 74ch;
}
.legal__article > p:first-of-type {
  font-size: 1.12rem;
  line-height: 1.65;
}
.legal__article p {
  margin-top: 1rem;
  color: #33443d;
}
.legal__article section {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: clamp(1.4rem, 3vw, 1.9rem);
  border-top: 1px solid var(--line-light);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.legal__article h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
}
.legal__article h2 span {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--forest-700);
}
.legal__article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  color: var(--navy-800);
}
.legal__article ul {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.legal__article li {
  position: relative;
  padding-left: 1.2rem;
  color: #33443d;
}
.legal__article li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}
.legal__article a {
  color: var(--forest-700);
  border-bottom: 1px solid rgba(23, 75, 59, 0.35);
  transition: border-color 0.2s var(--ease);
}
.legal__article a:hover {
  border-color: var(--forest-700);
}
.note {
  margin-top: 1.35rem;
  padding: 1rem 1.15rem;
  background: #eef0ec;
  border-left: 2px solid var(--green);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3b4a43;
}
.note strong {
  color: var(--navy-800);
}
.legal__back {
  margin-top: 2.5rem;
}

/* --------------------------------- 404 ----------------------------------- */
.page-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--navy-800);
  color: var(--paper);
  text-align: center;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
}
.page-404__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
  color: var(--green-300);
}
.page-404 h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 1rem;
}
.page-404 p {
  margin: 1rem auto 0;
  max-width: 46ch;
  color: var(--muted-light);
}
.page-404 .btn {
  margin-top: 2rem;
}

/* ---------------------------- Reveal on scroll --------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 1023px) {
  .header__claim {
    display: none;
  }
  .header__inner {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
  .header__nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .brand__mark {
    width: 38px;
    height: 38px;
  }
  .about,
  .method,
  .explore-head,
  .services-head,
  .faq-layout,
  .contact,
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }
  .about__body {
    border-left: 0;
    padding-left: 0;
    margin-top: 0.5rem;
  }
  .about__label {
    margin-top: 1rem;
  }
  .method__intro {
    max-width: 60ch;
  }
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .pillar {
    padding-block: 1.5rem;
    border-top: 1px solid var(--line-dark);
  }
  .pillar__number {
    margin-bottom: 1.1rem;
  }
  .project__link,
  .project--reverse .project__link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "caption"
      "body";
    gap: 0;
  }
  .project__body {
    grid-area: body;
    max-width: none;
    margin-top: 1.6rem;
  }
  .project__text {
    max-width: 56ch;
  }
  .explore-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .service {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.35rem 1rem;
  }
  .service__number {
    grid-row: 1;
  }
  .service__title {
    grid-column: 2;
  }
  .service__text {
    grid-column: 2;
  }
  .faq-aside {
    position: static;
  }
  .faq-aside .section-title {
    max-width: none;
  }
  .legal__toc {
    position: static;
    display: none;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 2.25rem;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__note {
    margin-left: 0;
    flex-basis: 100%;
  }
  .hero__foot {
    display: none;
  }
}

@media (max-width: 720px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero {
    min-height: 92svh;
  }
  .hero__inner {
    padding-top: calc(var(--header-h) + 2rem);
    gap: 2rem;
  }
  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.1rem;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .contact__direct a {
    font-size: 1.2rem;
  }
  .explore-cta {
    padding: 1.5rem;
  }
  .project__caption {
    margin-top: 0.7rem;
  }
  .section-title {
    font-size: clamp(1.95rem, 8.5vw, 2.6rem);
  }
  .hero__title {
    font-size: clamp(2.5rem, 11vw, 3.6rem);
  }
  .about__body .lead {
    font-size: 1.12rem;
  }
  .hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(7, 15, 25, 0.55) 0%,
        rgba(7, 15, 25, 0.78) 30%,
        rgba(7, 15, 25, 0.95) 52%,
        rgba(7, 15, 25, 0.99) 68%
      ),
      linear-gradient(100deg, rgba(7, 15, 25, 0.55), rgba(7, 15, 25, 0.1));
  }
  .hero__media img {
    object-position: 62% 42%;
  }
  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: auto;
  }
  .legal__article li {
    font-size: 0.97rem;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 1.25rem;
  }
  .brand__name {
    font-size: 0.64rem;
  }
  .hero__title {
    font-size: clamp(2.2rem, 11.5vw, 2.9rem);
  }
  .project__title {
    font-size: 1.55rem;
  }
}

/* ---------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------- Stampa --------------------------------- */
@media print {
  .site-header,
  .hero__media,
  .hero__overlay,
  .hero__actions,
  .menu-toggle,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .hero {
    min-height: 0;
    color: #000;
  }
  .hero__title,
  .hero__subtitle,
  .hero__kicker {
    color: #000;
  }
}
