:root {
  --paper: #f3f5f2;
  --paper-2: #e8edea;
  --ink: #10272a;
  --ink-soft: #516164;
  --deep: #0b2f33;
  --deep-2: #123d40;
  --accent: #e71d36;
  --accent-dark: #bf1228;
  --line: rgba(16, 39, 42, 0.16);
  --white: #ffffff;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 38px;
  --shadow: 0 24px 70px rgba(10, 45, 49, 0.12);
  --container: min(1180px, calc(100% - 48px));
  --ease: cubic-bezier(.2, .75, .25, 1);
  /* Esagono del marchio con spigoli arrotondati, scalabile su qualsiasi dimensione */
  --hex-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M43.07 4Q50 0 56.93 4L86.37 21Q93.3 25 93.3 33L93.3 67Q93.3 75 86.37 79L56.93 96Q50 100 43.07 96L13.63 79Q6.7 75 6.7 67L6.7 33Q6.7 25 13.63 21Z' fill='%23000'/%3E%3C/svg%3E");
  --hex-outline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 102 102' preserveAspectRatio='none'%3E%3Cpath d='M43.07 4Q50 0 56.93 4L86.37 21Q93.3 25 93.3 33L93.3 67Q93.3 75 86.37 79L56.93 96Q50 100 43.07 96L13.63 79Q6.7 75 6.7 67L6.7 33Q6.7 25 13.63 21Z' fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='.45'/%3E%3C/svg%3E");
  --hex-outline-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 102 102' preserveAspectRatio='none'%3E%3Cpath d='M43.07 4Q50 0 56.93 4L86.37 21Q93.3 25 93.3 33L93.3 67Q93.3 75 86.37 79L56.93 96Q50 100 43.07 96L13.63 79Q6.7 75 6.7 67L6.7 33Q6.7 25 13.63 21Z' fill='none' stroke='%2310272a' stroke-opacity='.18' stroke-width='.45'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(231, 29, 54, .35);
  outline-offset: 4px;
}

::selection {
  color: var(--white);
  background: var(--accent);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--deep);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform .2s;
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.eyebrow--light {
  color: rgba(255, 255, 255, .65);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 {
  max-width: 920px;
  margin-bottom: 28px;
  font-size: clamp(3.15rem, 7.2vw, 7.2rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 4.6vw, 4.75rem);
  font-weight: 620;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 650;
}

.text-accent {
  color: var(--accent);
}

.lead {
  max-width: 740px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}

.lead--light {
  color: rgba(255, 255, 255, .7);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .3s var(--ease), background .3s var(--ease),
    border-color .3s var(--ease), transform .3s var(--ease);
}

.button::after {
  margin-left: 12px;
  font-size: 1.1rem;
  line-height: 1;
  content: "↗";
  transition: transform .3s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button:hover::after {
  transform: translate(3px, -3px);
}

.button--primary {
  color: var(--white);
  background: var(--accent);
}

.button--primary:hover {
  background: var(--accent-dark);
}

.button--outline {
  border-color: var(--line);
}

.button--outline:hover {
  color: var(--white);
  background: var(--deep);
  border-color: var(--deep);
}

.button--light {
  color: var(--deep);
  background: var(--white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.text-link::after {
  content: "↗";
  transition: transform .25s var(--ease);
}

.text-link:hover::after {
  transform: translate(4px, -4px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, box-shadow .35s;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(243, 245, 242, .88);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(12, 39, 42, .06);
  backdrop-filter: blur(18px);
}

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

.brand {
  position: relative;
  z-index: 103;
  display: block;
  width: 154px;
}

.brand img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

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

.site-nav > a:not(.button) {
  position: relative;
  padding-block: 10px;
  color: var(--ink-soft);
  font-size: .84rem;
  font-weight: 750;
}

.site-nav > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}

.site-nav > a:not(.button):hover,
.site-nav > a[aria-current="page"] {
  color: var(--ink);
}

.site-nav > a:not(.button):hover::after,
.site-nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  position: relative;
  z-index: 103;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  content: "";
  transition: transform .25s, opacity .25s;
}

.menu-toggle::before { top: 16px; }
.menu-toggle span { top: 22px; }
.menu-toggle::after { top: 28px; }

.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(92svh, 900px);
  padding: 150px 0 90px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .92fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.9rem, 5.1vw, 5.5rem);
}

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

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  aspect-ratio: 1;
  pointer-events: none;
}

.hex-image {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--deep);
  -webkit-mask-image: var(--hex-mask);
  mask-image: var(--hex-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hex-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 25%, rgba(231, 29, 54, .35));
  content: "";
}

.hex-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orbit {
  position: absolute;
  inset: -7%;
  border: 1px solid rgba(16, 39, 42, .16);
  border-radius: 48% 52% 45% 55%;
  animation: orbit 18s linear infinite;
}

.hero-orbit::after {
  position: absolute;
  top: 15%;
  left: 5%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(231, 29, 54, .1);
  content: "";
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.scroll-cue {
  position: absolute;
  bottom: 38px;
  left: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  transform: rotate(-90deg);
  transform-origin: left center;
}

.scroll-cue::before {
  width: 42px;
  height: 1px;
  background: currentColor;
  content: "";
}

.page-hero {
  position: relative;
  min-height: 72svh;
  padding: 190px 0 90px;
  overflow: hidden;
}

.page-hero .lead {
  margin-left: auto;
}

.page-hero__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-hero__meta span {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.page-hero__number {
  justify-self: end;
  color: var(--accent) !important;
}

.page-hero::after {
  position: absolute;
  top: 82px;
  right: -92px;
  width: 372px;
  height: 372px;
  background-image: var(--hex-outline-ink);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  content: "";
}

/* Sections */
.section {
  padding: 125px 0;
}

.section--compact {
  padding: 80px 0;
}

.section--dark {
  color: var(--white);
  background: var(--deep);
}

.section--accent {
  color: var(--white);
  background: var(--accent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  margin-bottom: 70px;
}

.section-heading h2 {
  max-width: 850px;
}

.section-heading .lead {
  margin-top: 18px;
}

.section-heading--stack {
  display: block;
}

.section-heading--stack h2 {
  max-width: 880px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
    border-color .4s var(--ease);
}

.feature-card:hover {
  z-index: 2;
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}

.feature-card__number {
  display: block;
  margin-bottom: 88px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.feature-card p {
  color: var(--ink-soft);
}

.feature-card__arrow {
  position: absolute;
  top: 25px;
  right: 26px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color .3s, background .3s, transform .3s;
}

.feature-card:hover .feature-card__arrow {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.statement {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 70px;
  align-items: center;
}

.statement-media {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.statement-media img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  object-fit: cover;
  transition: transform 1s var(--ease);
}

.statement-media:hover img {
  transform: scale(1.04);
}

.statement-badge {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 138px;
  padding: 24px 18px;
  color: var(--white);
  background: var(--accent);
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.statement-copy {
  max-width: 650px;
}

.statement-copy p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.metric {
  padding: 42px 24px 10px 0;
  border-right: 1px solid rgba(255, 255, 255, .15);
}

.metric:not(:first-child) {
  padding-left: 28px;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.metric span {
  color: rgba(255, 255, 255, .58);
  font-size: .78rem;
  font-weight: 700;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-item {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 35px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.process-item > span {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.process-item p {
  max-width: 540px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.sector-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sector-strip span {
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 750;
  transition: color .3s, background .3s, border-color .3s;
}

.sector-strip span:hover {
  color: var(--white);
  background: var(--deep);
  border-color: var(--deep);
}

/* About */
.manifesto {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
}

.manifesto blockquote {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.manifesto-mark {
  position: absolute;
  top: 50%;
  right: -5%;
  color: rgba(255, 255, 255, .04);
  font-size: 28rem;
  font-weight: 800;
  line-height: .5;
  transform: translateY(-50%);
}

.value-card {
  padding: 35px 0;
  border-top: 1px solid var(--line);
}

.value-card p {
  max-width: 350px;
  color: var(--ink-soft);
}

.value-card__index {
  display: block;
  margin-bottom: 55px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.team-placeholder {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.team-placeholder img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.team-placeholder__caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--white);
  background: rgba(11, 47, 51, .75);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 14px;
  font-size: .78rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

/* Services */
.service-intro-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
}

.service-aside {
  position: sticky;
  top: 130px;
  height: fit-content;
}

.service-aside p {
  color: var(--ink-soft);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  border-bottom: 1px solid var(--line);
}

.service-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: 70px 1fr 48px;
  gap: 20px;
  align-items: center;
  padding: 34px 0;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.service-trigger > span:first-child {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 800;
}

.service-trigger h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
}

.service-trigger__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.35rem;
  transition: color .3s, background .3s, transform .35s var(--ease);
}

.service-trigger[aria-expanded="true"] .service-trigger__icon {
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
  transform: rotate(45deg);
}

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.service-panel > div {
  overflow: hidden;
}

.service-panel__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 0 48px 36px 90px;
}

.service-panel p {
  color: var(--ink-soft);
}

.service-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-panel li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .88rem;
}

.service-trigger[aria-expanded="true"] + .service-panel {
  grid-template-rows: 1fr;
}

.service-visual {
  position: relative;
  width: min(480px, 95%);
  aspect-ratio: 1;
  margin: 80px auto 0;
}

.service-visual .hex-image {
  width: 100%;
  height: 100%;
}

.service-visual::before,
.service-visual::after {
  position: absolute;
  background-image: var(--hex-outline);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  content: "";
}

.service-visual::before { inset: -8%; }
.service-visual::after { inset: -16%; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 90px;
}

.contact-details {
  padding-top: 16px;
}

.contact-detail {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.contact-detail span {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 650;
}

.contact-form {
  padding: clamp(28px, 5vw, 58px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 15px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  transition: border-color .25s;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8d9999;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 5px 0 25px;
  color: var(--ink-soft);
  font-size: .78rem;
}

.checkbox input {
  margin-top: 5px;
  accent-color: var(--accent);
}

.form-status {
  display: none;
  margin: 18px 0 0;
  padding: 12px 14px;
  color: var(--deep);
  background: var(--paper-2);
  border-radius: 10px;
  font-size: .82rem;
}

.form-status.is-visible {
  display: block;
}

.contact-map {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--deep);
}

.contact-map img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  opacity: .86;
}

.contact-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 0 0 16px rgba(231, 29, 54, .14);
  font-size: .72rem;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.contact-map__pin span {
  transform: rotate(45deg);
}

/* CTA + footer */
.cta-band {
  position: relative;
  padding: 115px 0;
  overflow: hidden;
}

.cta-band__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
}

.cta-band h2 {
  max-width: 820px;
  margin-bottom: 0;
}

.cta-band::after {
  position: absolute;
  top: -170px;
  right: -168px;
  width: 460px;
  height: 460px;
  background-image: var(--hex-outline);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  content: "";
}

.site-footer {
  padding: 70px 0 28px;
  color: var(--white);
  background: #071f22;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 60px;
}

.footer-brand {
  width: 160px;
  margin-bottom: 25px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 390px;
  color: rgba(255, 255, 255, .52);
}

.footer-title {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .4);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .72);
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 65px;
  padding-top: 22px;
  color: rgba(255, 255, 255, .36);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .68rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

/* Responsive */
@media (max-width: 980px) {
  :root { --container: min(100% - 36px, 760px); }

  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 90px max(24px, calc((100vw - 720px) / 2));
    visibility: hidden;
    opacity: 0;
    background: var(--paper);
    transform: translateY(-12px);
    transition: opacity .3s, visibility .3s, transform .3s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav > a:not(.button) {
    color: var(--ink);
    font-size: clamp(1.8rem, 7vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.04em;
  }

  .site-nav .button { margin-top: 18px; }

  .hero-grid,
  .statement,
  .service-intro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 150px 0 80px;
  }

  .hero-grid { gap: 48px; }

  .hero .lead { max-width: 620px; }

  .hero-visual {
    width: min(340px, 62%);
    margin-right: 6%;
  }

  .scroll-cue { display: none; }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 5px;
  }

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

  .statement-media {
    min-height: 460px;
  }

  .statement-media img {
    min-height: 460px;
  }

  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .15); }

  .process-item { grid-template-columns: 55px 1fr; }
  .process-item p { grid-column: 2; }

  .service-aside { position: static; }
  .service-visual { display: none; }

  .contact-grid { gap: 50px; }
}

@media (max-width: 680px) {
  :root { --container: calc(100% - 32px); }

  .header-inner { min-height: 74px; }
  .brand { width: 133px; }
  .brand img { height: 45px; }

  h1 { font-size: clamp(2.75rem, 14vw, 4.7rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.5rem); }

  .hero {
    padding: 125px 0 68px;
  }

  .hero h1 { font-size: clamp(2.7rem, 12vw, 4.2rem); }

  .hero-grid { gap: 40px; }

  .hero-visual {
    width: min(250px, 68%);
  }

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

  .page-hero {
    min-height: auto;
    padding: 145px 0 65px;
  }

  .page-hero__meta { margin-top: 45px; }

  .section { padding: 85px 0; }
  .section--compact { padding: 60px 0; }

  .section-heading { margin-bottom: 45px; }

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

  .feature-card {
    min-height: 280px;
  }

  .feature-card__number { margin-bottom: 62px; }

  .statement { gap: 45px; }
  .statement-media,
  .statement-media img { min-height: 390px; }

  .metric-grid { grid-template-columns: 1fr; }
  .metric,
  .metric:not(:first-child) {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, .15);
    border-right: 0;
  }

  .process-item {
    grid-template-columns: 42px 1fr;
    gap: 18px;
  }

  .manifesto { padding: 100px 0; }

  .service-trigger {
    grid-template-columns: 40px 1fr 42px;
    gap: 10px;
  }

  .service-panel__inner {
    grid-template-columns: 1fr;
    padding: 0 0 28px 50px;
  }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { border-radius: var(--radius-md); }

  .cta-band { padding: 85px 0; }
  .cta-band__inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-band__inner .button { width: fit-content; }

  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { display: grid; gap: 8px; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Hero alternativa immersiva — usata solo da index-2.html */
.hero-alt {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100svh;
  padding-top: 150px;
  overflow: hidden;
  color: var(--white);
  background: #071f22;
}

.hero-alt__media {
  position: absolute;
  inset: 0;
}

.hero-alt__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroReveal 2.4s var(--ease) both;
}

.hero-alt__media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(7, 31, 34, .96) 6%, rgba(7, 31, 34, .78) 46%, rgba(7, 31, 34, .42) 100%),
    linear-gradient(to right, rgba(7, 31, 34, .7), transparent 62%);
  content: "";
}

@keyframes heroReveal {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

.hero-alt__inner {
  position: relative;
  z-index: 1;
  align-self: end;
  padding-bottom: 54px;
}

.hero-alt h1 {
  max-width: 17ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 6.1vw, 6.3rem);
}

.hero-alt__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero-alt__bottom .lead {
  max-width: 460px;
  margin-bottom: 0;
}

.hero-alt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
}

.button--ghost:hover {
  color: var(--deep);
  background: var(--white);
  border-color: var(--white);
}

.hero-alt__strip {
  position: relative;
  z-index: 1;
  background: rgba(4, 22, 25, .55);
  border-top: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px);
}

.hero-alt__strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-alt__link {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 26px 26px 26px 28px;
  border-left: 1px solid rgba(255, 255, 255, .16);
  font-size: .96rem;
  font-weight: 700;
  transition: background .35s var(--ease);
}

.hero-alt__link:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-alt__link span {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.hero-alt__link::after {
  margin-left: auto;
  opacity: 0;
  content: "↗";
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  transform: translate(-6px, 6px);
}

.hero-alt__link:hover {
  background: rgba(255, 255, 255, .06);
}

.hero-alt__link:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Header trasparente finché la hero immersiva resta in vista */
body.has-dark-hero .site-header:not(.is-scrolled) {
  color: var(--white);
}

.brand--dual {
  position: relative;
}

.brand--dual img {
  transition: opacity .35s var(--ease);
}

.brand--dual .brand__inverse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

body.has-dark-hero .site-header:not(.is-scrolled) .brand--dual img:first-child {
  opacity: 0;
}

body.has-dark-hero .site-header:not(.is-scrolled) .brand--dual .brand__inverse {
  opacity: 1;
}

body.has-dark-hero .site-header:not(.is-scrolled) .site-nav > a:not(.button) {
  color: rgba(255, 255, 255, .74);
}

body.has-dark-hero .site-header:not(.is-scrolled) .site-nav > a:not(.button):hover,
body.has-dark-hero .site-header:not(.is-scrolled) .site-nav > a[aria-current="page"] {
  color: var(--white);
}

body.has-dark-hero .site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(255, 255, 255, .34);
}

/* Con il menu mobile aperto il pannello torna chiaro, quindi anche i suoi elementi */
body.has-dark-hero.menu-open .site-header .brand--dual img:first-child {
  opacity: 1;
}

body.has-dark-hero.menu-open .site-header .brand--dual .brand__inverse {
  opacity: 0;
}

body.has-dark-hero.menu-open .site-header .menu-toggle {
  color: var(--ink);
  border-color: var(--line);
}

body.has-dark-hero.menu-open .site-header .site-nav > a:not(.button) {
  color: var(--ink);
}

@media (max-width: 980px) {
  .hero-alt {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-alt__inner {
    padding-bottom: 46px;
  }

  .hero-alt__bottom {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 36px;
  }

  .hero-alt__strip-inner {
    grid-template-columns: 1fr;
  }

  .hero-alt__link {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    border-left: 0;
  }

  .hero-alt__link:first-child {
    border-top: 0;
  }
}

@media (max-width: 680px) {
  .hero-alt {
    padding-top: 112px;
  }

  .hero-alt h1 {
    max-width: none;
    font-size: clamp(2.6rem, 11.5vw, 4.1rem);
  }

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