@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/fraunces-italic.woff2) format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope.woff2) format('woff2');
}

/* Palette presa dalle foto del cliente: corteccia e bosco d'inverno,
   carta calda, e l'arancione della corda da arrampicata come accento. */
:root {
  --bark: #121a15;
  --forest: #16201a;
  --forest-2: #1f2c24;
  --moss: #5f7457;
  --sage: #a9b79c;
  --paper: #f4efe6;
  --paper-2: #ece5d8;
  --card: #fffcf6;
  --rope: #c44b18;
  --rope-dark: #a63d10;
  --rope-light: #f0773d;
  --helmet: #e8b53a;
  --ink: #161b17;
  --muted: #5b625a;
  --on-dark: #efe8da;
  --on-dark-muted: rgba(239, 232, 218, 0.72);
  --line: rgba(22, 32, 26, 0.12);
  --line-dark: rgba(239, 232, 218, 0.14);
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(22, 27, 23, 0.06), 0 24px 48px -24px rgba(22, 27, 23, 0.32);
  --serif: 'Fraunces', ui-serif, Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4.5vw, 48px);
  --header: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 450;
  font-optical-sizing: auto;
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.9rem);
}

h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 350;
  color: var(--rope);
}

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

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--forest);
  color: var(--on-dark);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 2px solid var(--rope-light);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--rope);
  color: #fff;
}

/* ---------- Bottoni ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 54px;
  padding: 0 1.6em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 0.98rem/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--rope);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(196, 75, 24, 0.75);
}
.btn--primary:hover {
  background: var(--rope-dark);
}
.btn--ghost {
  background: transparent;
  border-color: rgba(22, 32, 26, 0.22);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(22, 32, 26, 0.04);
}
.on-dark .btn--ghost,
.hero .btn--ghost,
.page-hero .btn--ghost {
  border-color: rgba(239, 232, 218, 0.4);
  color: var(--on-dark);
  background: rgba(18, 26, 21, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.on-dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-hero .btn--ghost:hover {
  border-color: var(--on-dark);
  background: rgba(239, 232, 218, 0.1);
}
.btn--small {
  min-height: 44px;
  padding: 0 1.15em;
  font-size: 0.9rem;
  box-shadow: none;
}
.btn--block {
  width: 100%;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 6px;
  color: var(--rope);
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover {
  background-size: 100% 1.5px;
}
.text-link .icon {
  transition: transform 0.25s var(--ease);
}
.text-link:hover .icon {
  transform: translateX(4px);
}

/* Etichetta sopra i titoli: un trattino "di corda" e testo maiuscoletto */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--rope);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow__line {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 9px);
}
.eyebrow--light {
  color: var(--rope-light);
}

/* ---------- Intestazione ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--on-dark);
  transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease);
}
.header::before {
  content: '';
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background: linear-gradient(rgba(10, 15, 12, 0.55), transparent);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.header.is-scrolled {
  background: rgba(244, 239, 230, 0.9);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled::before {
  opacity: 0;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header);
}
.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--forest);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px rgba(239, 232, 218, 0.12);
}
.brand__svg {
  width: 30px;
  height: 30px;
}
.brand__rope {
  stroke: var(--rope-light);
}
.brand__name {
  display: grid;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.015em;
}
.brand__name small {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.88;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.nav a:hover {
  opacity: 1;
  background: rgba(127, 127, 127, 0.14);
}
.nav a[aria-current='page'] {
  opacity: 1;
}
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--rope-light);
}
.header__cta .btn {
  margin-left: 8px;
}

.menu-btn {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.9;
}
.menu-btn .icon {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(640px, 100svh);
  padding: calc(var(--header) + 40px) 0 0;
  background: var(--bark);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  animation: hero-zoom 18s ease-out both;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 14, 0.88) 0%, rgba(12, 18, 14, 0.62) 38%, rgba(12, 18, 14, 0.12) 72%),
    linear-gradient(0deg, rgba(12, 18, 14, 0.9) 0%, rgba(12, 18, 14, 0) 38%);
}
@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
}
.hero__rope {
  position: absolute;
  top: 0;
  right: clamp(12px, 6vw, 90px);
  z-index: -1;
  width: 60px;
  height: 78%;
  color: var(--rope-light);
  opacity: 0.85;
}
.hero__inner {
  display: flex;
  align-items: center;
}
.hero__text {
  max-width: 760px;
  padding-block: clamp(24px, 6vh, 72px);
}
.hero__title {
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero__title em {
  color: var(--rope-light);
}
.hero__lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--on-dark-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero__text > * {
  animation: rise 0.9s var(--ease) both;
}
.hero__text > :nth-child(2) {
  animation-delay: 0.08s;
}
.hero__text > :nth-child(3) {
  animation-delay: 0.16s;
}
.hero__text > :nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}
.hero__trust li {
  display: grid;
  gap: 2px;
  padding: 24px 24px 30px 0;
}
.hero__trust li + li {
  padding-left: 24px;
  border-left: 1px solid var(--line-dark);
}
.hero__trust strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.hero__trust span {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 50px;
  border: 1.5px solid rgba(239, 232, 218, 0.5);
  border-radius: 999px;
}
.hero__scroll span {
  width: 4px;
  height: 9px;
  border-radius: 4px;
  background: var(--on-dark);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% {
    transform: translateY(-8px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* Su schermi larghi la foto sta a destra e sfuma nel buio verso il testo,
   così la persona nella foto non finisce dietro al titolo. */
@media (min-width: 901px) {
  .hero__media {
    left: 34%;
  }
  .hero__img {
    object-position: 25% 40%;
  }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--bark) 0%, rgba(18, 26, 21, 0.75) 22%, rgba(18, 26, 21, 0.1) 60%),
      linear-gradient(0deg, rgba(12, 18, 14, 0.92) 0%, rgba(12, 18, 14, 0) 34%);
  }
}

/* ---------- Nastro scorrevole ---------- */

.ticker {
  overflow: hidden;
  padding: 18px 0;
  background: var(--rope);
  color: #fff;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__track span {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-style: italic;
  font-weight: 350;
  white-space: nowrap;
}
.ticker__track .icon {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sezioni ---------- */

.section {
  padding-block: clamp(80px, 11vw, 150px);
}
.section__head {
  max-width: 680px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 24px 64px;
  max-width: none;
}
.section__lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.12rem;
}
.section__head--split .section__lead {
  margin: 0 0 6px;
}

/* Servizi: titolo fisso a sinistra, elenco numerato a destra */
.services-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.services-wrap__head {
  position: sticky;
  top: calc(var(--header) + 32px);
  margin: 0;
}
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: 'icon num' 'title title' 'text text';
  align-items: center;
  gap: 0 14px;
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
}
.service::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rope);
  transition: width 0.6s var(--ease);
}
.service:hover::before {
  width: 100%;
}
.service__num {
  grid-area: num;
  justify-self: end;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.service__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--paper-2);
  color: var(--forest);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.service:hover .service__icon {
  background: var(--rope);
  color: #fff;
  transform: rotate(-6deg);
}
.service__icon .icon {
  width: 26px;
  height: 26px;
}
.service h3 {
  grid-area: title;
  margin-top: 22px;
  font-size: 1.5rem;
}
.service p {
  grid-area: text;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Tree climbing ---------- */

.climb {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--forest);
  color: var(--on-dark);
}
.climb__media {
  position: relative;
  min-height: 520px;
  margin: 0;
  overflow: hidden;
}
.climb__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}
.climb__tag {
  position: absolute;
  left: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(18, 26, 21, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--on-dark);
  font-size: 0.9rem;
  font-weight: 700;
}
.climb__tag .icon {
  color: var(--rope-light);
}
.climb__text {
  align-self: center;
  max-width: 640px;
  padding: clamp(56px, 8vw, 120px) var(--gutter) clamp(56px, 8vw, 120px) clamp(32px, 6vw, 96px);
}
.climb h2 em {
  color: var(--rope-light);
}
.climb__lead {
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}
.climb__points {
  display: grid;
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.climb__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.climb__points .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 50%;
  background: var(--rope);
  color: #fff;
  stroke-width: 2.4;
}
.climb__points h3 {
  font-size: 1.2rem;
}
.climb__points p {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 0.97rem;
}

/* ---------- Galleria a mosaico ---------- */

.section--works {
  background: var(--paper-2);
}
.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(170px, 19vw, 260px);
  grid-auto-flow: dense;
  gap: clamp(8px, 1.2vw, 16px);
}
.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c, var(--forest-2));
  isolation: isolate;
  cursor: zoom-in;
}
.work:nth-child(5n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}
.work:nth-child(10n + 6) {
  grid-column: 3 / span 2;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.5s ease;
}
.work:hover img {
  transform: scale(1.05);
}
.work::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 12, 0.75), rgba(10, 15, 12, 0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.work:hover::after,
.work:focus-visible::after,
.work--video::after {
  opacity: 1;
}
.work__caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.work:hover .work__caption,
.work:focus-visible .work__caption,
.work--video .work__caption {
  opacity: 1;
  transform: none;
}
.work--video .work__caption {
  right: 80px;
}
.work__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--rope);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(196, 75, 24, 0.25);
  transition: transform 0.3s var(--ease);
}
.work__play .icon {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.work:hover .work__play {
  transform: translate(-50%, -50%) scale(1.08);
}
.work__time {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 15, 12, 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.works__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.works__more .count {
  color: var(--muted);
  font-weight: 600;
}
.works-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 64px 24px;
  border: 1.5px dashed rgba(22, 32, 26, 0.2);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
}
.works-empty__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  color: var(--rope);
}
.works-empty__icon .icon {
  width: 30px;
  height: 30px;
}

/* ---------- Come lavoro: i passi uniti da una "corda" ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  top: 31px;
  left: 32px;
  right: calc((100% - 96px) / 4 - 32px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rope) 0 10px, transparent 10px 16px);
  opacity: 0.6;
}
.step {
  position: relative;
}
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--rope);
  color: var(--rope);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 450;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.step:hover .step__num {
  background: var(--rope);
  color: #fff;
}
.step h3 {
  font-size: 1.45rem;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Chi sono ---------- */

.section--dark {
  background: var(--bark);
  color: var(--on-dark);
}
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.about__media {
  position: relative;
  margin: 0;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 62% 50%;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
}
.about__media::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1.5px dashed rgba(240, 119, 61, 0.55);
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
}
.about__media {
  isolation: isolate;
}
.about__stat {
  position: absolute;
  right: -12px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 20px;
  background: var(--rope);
  color: #fff;
  box-shadow: var(--shadow);
}
.about__stat strong {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
}
.about__stat span {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
}
.about h2 em {
  color: var(--rope-light);
}
.about__body {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  color: var(--on-dark-muted);
  font-size: 1.08rem;
}
.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin: 36px 0 0;
  padding: 30px 0 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}
.values li {
  display: flex;
  gap: 12px;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.45;
}
.values .icon {
  width: 22px;
  height: 22px;
  color: var(--rope-light);
  stroke-width: 2.2;
}

/* ---------- Invito al contatto ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 2px dashed rgba(196, 75, 24, 0.28);
}
.cta__intro > p {
  max-width: 32em;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}
.cta .hero__actions {
  margin-top: 30px;
}
.cta .text-link {
  margin-top: 22px;
}

.contact__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list li:last-child {
  border-bottom: 0;
}
.contact__list small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact__list a {
  font-weight: 700;
  text-decoration: none;
}
.contact__list a:hover {
  color: var(--rope);
}
.contact__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--paper-2);
  color: var(--rope);
}

/* ---------- Piè di pagina ---------- */

.footer {
  padding: clamp(64px, 8vw, 100px) 0 32px;
  background: var(--bark);
  color: var(--on-dark-muted);
  font-size: 0.97rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand p {
  max-width: 26em;
  margin-top: 20px;
}
.brand--light {
  color: var(--on-dark);
}
.brand--light .brand__mark {
  background: var(--forest-2);
}
.footer__col h2 {
  margin-bottom: 16px;
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.footer__col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__col a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__col a:hover {
  color: var(--rope-light);
}
.footer__contacts li,
.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__contacts .icon {
  color: var(--rope-light);
}
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--on-dark);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.footer__social a:hover {
  background: var(--rope);
  border-color: var(--rope);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 28px;
  font-size: 0.86rem;
}
.footer__legal a {
  color: inherit;
}

/* ---------- Pagina Contatti ---------- */

.page-hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header) + clamp(64px, 10vw, 130px)) 0 clamp(120px, 14vw, 180px);
  background: var(--bark);
  color: var(--on-dark);
  overflow: hidden;
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 18, 14, 0.92) 0%, rgba(12, 18, 14, 0.7) 50%, rgba(12, 18, 14, 0.4) 100%);
}
.page-hero__inner {
  max-width: 1280px;
}
.page-hero__title {
  max-width: 13em;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.page-hero__title em {
  color: var(--rope-light);
}
.page-hero__lead {
  display: grid;
  gap: 12px;
  max-width: 36em;
  margin-top: 24px;
  color: var(--on-dark-muted);
  font-size: 1.15rem;
}
.page-hero .hero__actions {
  margin-top: 32px;
}

.section--flush {
  padding-top: 0;
}
#modulo.section--flush {
  position: relative;
  z-index: 1;
  margin-top: clamp(-120px, -10vw, -72px);
  scroll-margin-top: calc(var(--header) - 60px);
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.contact-page--single {
  grid-template-columns: minmax(0, 620px);
}

.form-card {
  position: relative;
  padding: clamp(24px, 4.5vw, 52px);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.form-card__lead {
  margin-top: 10px;
  color: var(--muted);
}
.form-card__lead b,
.form-field b,
.consent b {
  color: var(--rope);
}
.form-alert {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #f8e1da;
  color: #9c3a26;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0 26px;
}
.form-field {
  display: grid;
  align-content: start;
  gap: 8px;
}
.form-field--wide {
  grid-column: 1 / -1;
}
.form-field > span {
  font-weight: 700;
  font-size: 0.9rem;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(22, 32, 26, 0.14);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c44b18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.form-field textarea {
  min-height: 160px;
  resize: vertical;
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(22, 32, 26, 0.28);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rope);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 75, 24, 0.12);
}
.has-error input,
.has-error textarea {
  border-color: #c0492f;
  background-color: #fdf3f0;
}
.form-field__error {
  color: #b3412e;
  font-size: 0.85rem;
  font-weight: 600;
}
.consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--rope);
}
.consent.has-error {
  color: #9c3a26;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-card--sent {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: clamp(48px, 7vw, 80px);
  text-align: center;
}
.form-card--sent p {
  max-width: 30em;
  color: var(--muted);
  font-size: 1.08rem;
}
.form-card--sent .hero__actions {
  justify-content: center;
  margin-top: 12px;
}
.sent__icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--rope);
  color: #fff;
  animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.sent__icon .icon {
  width: 36px;
  height: 36px;
  stroke-width: 2.2;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

.contact-aside {
  position: sticky;
  top: calc(var(--header) + 16px);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--forest);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact-aside h2 {
  font-size: 1.7rem;
}
.contact-aside .contact__list li {
  border-color: var(--line-dark);
}
.contact-aside .contact__list small {
  color: var(--on-dark-muted);
}
.contact-aside .contact__list a:hover {
  color: var(--rope-light);
}
.contact-aside .contact__icon {
  background: rgba(239, 232, 218, 0.08);
  color: var(--rope-light);
}
.contact-aside__note {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(239, 232, 218, 0.06);
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}
.contact-aside__note .icon {
  margin-top: 2px;
  color: var(--rope-light);
}

/* Domande frequenti */
#domande {
  padding-top: clamp(80px, 10vw, 130px);
}
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.faq-wrap .section__head {
  position: sticky;
  top: calc(var(--header) + 32px);
  margin: 0;
}
.faq {
  display: grid;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 450;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary:hover {
  color: var(--rope);
}
.faq__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--rope);
  transition: transform 0.3s var(--ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.faq__icon .icon {
  width: 18px;
  height: 18px;
}
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--rope);
  border-color: var(--rope);
  color: #fff;
}
.faq__answer {
  display: grid;
  gap: 10px;
  max-width: 40em;
  padding: 0 56px 26px 0;
  color: var(--muted);
}

/* Barra contatti rapida (solo smartphone) */
.quickbar {
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 15, 12, 0.96);
  color: #fff;
  overflow: hidden;
}
.lightbox[open] {
  display: grid;
  place-items: center;
  animation: fade 0.25s ease;
}
.lightbox::backdrop {
  background: transparent;
}
.lightbox__figure {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin: 0;
  padding: 72px 84px 60px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: min(100%, 1600px);
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  border-radius: 14px;
  background: #0e1611;
  animation: fade 0.35s ease;
}
.lightbox figcaption {
  max-width: 50em;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
}
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lightbox__btn:hover {
  background: var(--rope);
  border-color: var(--rope);
}
.lightbox__btn .icon {
  width: 24px;
  height: 24px;
}
.lightbox__close {
  top: 16px;
  right: 16px;
}
.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox__count {
  position: absolute;
  top: 30px;
  left: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

/* ---------- Animazioni all'ingresso ---------- */

/* Il JS nasconde solo gli elementi ancora fuori schermo, così nulla "lampeggia". */
.reveal {
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}
.reveal.is-pending {
  opacity: 0;
  transform: translateY(26px);
}

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

/* ---------- Tablet ---------- */

@media (max-width: 1080px) {
  .nav a {
    padding-inline: 10px;
  }
  .services-wrap {
    grid-template-columns: 1fr;
  }
  .services-wrap__head {
    position: static;
    max-width: 680px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 32px;
  }
  .steps::before {
    display: none;
  }
}

@media (max-width: 900px) {
  :root {
    --header: 68px;
  }
  .menu-btn {
    display: grid;
  }
  .nav {
    position: fixed;
    inset: var(--header) 0 auto;
    display: grid;
    gap: 0;
    padding: 12px var(--gutter) 24px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.35);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 450;
  }
  .nav a:hover {
    background: none;
    color: var(--rope);
  }
  .nav a[aria-current='page']::after {
    display: none;
  }
  .header.is-open {
    background: var(--paper);
    color: var(--ink);
  }
  .header.is-open::before {
    opacity: 0;
  }
  .header.is-open .nav {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  /* Senza JS il menu resta nascosto: i link principali sono comunque nella pagina e nel piè di pagina. */
  .section__head--split {
    grid-template-columns: 1fr;
  }
  .climb {
    grid-template-columns: 1fr;
  }
  .climb__media {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .climb__text {
    max-width: none;
    padding: 64px var(--gutter) 72px;
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about__media {
    max-width: 520px;
  }
  .cta {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .contact-page {
    grid-template-columns: 1fr;
  }
  .contact-aside {
    position: static;
  }
  .faq-wrap {
    grid-template-columns: 1fr;
  }
  .faq-wrap .section__head {
    position: static;
  }
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 34vw, 260px);
  }
  .work:nth-child(5n + 1),
  .work:nth-child(10n + 6) {
    grid-column: 1 / -1;
    grid-row: span 2;
  }
}

/* ---------- Smartphone ---------- */

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .header__cta .btn {
    display: none;
  }
  .brand__mark {
    width: 40px;
    height: 40px;
  }
  .brand__name {
    font-size: 1.25rem;
  }
  /* Foto in alto e testo sotto, sul fondo scuro: la persona resta visibile. */
  .hero {
    min-height: 0;
    padding-top: max(280px, 40svh);
  }
  .hero__media {
    bottom: auto;
    height: max(420px, 62svh);
  }
  .hero__img {
    object-position: 32% 30%;
  }
  .hero__media::after {
    background:
      linear-gradient(0deg, var(--bark) 0%, rgba(18, 26, 21, 0.85) 30%, rgba(18, 26, 21, 0.1) 70%, rgba(18, 26, 21, 0.45) 100%);
  }
  .hero__text {
    padding-block: 0 36px;
  }
  .page-hero__media::after {
    background: linear-gradient(0deg, rgba(12, 18, 14, 0.92) 0%, rgba(12, 18, 14, 0.78) 60%, rgba(12, 18, 14, 0.6) 100%);
  }
  .hero__inner {
    align-items: flex-end;
  }
  .hero__rope {
    right: 6px;
    width: 36px;
    opacity: 0.6;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__trust {
    grid-template-columns: 1fr 1fr;
  }
  .hero__trust li {
    padding: 18px 12px 22px 0;
  }
  .hero__trust li + li {
    padding-left: 14px;
  }
  .hero__trust li:nth-child(3) {
    display: none;
  }
  .hero__trust strong {
    font-size: 1.1rem;
  }
  .hero__trust span {
    font-size: 0.82rem;
  }
  .hero__scroll {
    display: none;
  }
  .ticker {
    padding: 13px 0;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .service {
    padding: 24px 0 28px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 20px;
    padding-bottom: 32px;
  }
  .step::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 56px;
    bottom: 6px;
    width: 2px;
    background: repeating-linear-gradient(180deg, var(--rope) 0 8px, transparent 8px 14px);
    opacity: 0.55;
  }
  .step:last-child::before {
    display: none;
  }
  .step__num {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    margin: 0;
    font-size: 1.3rem;
  }
  .step h3 {
    align-self: center;
  }
  .about__stat {
    right: 8px;
    bottom: 20px;
  }
  .about__media::before {
    inset: 12px -8px -12px 8px;
  }
  .values {
    grid-template-columns: 1fr;
  }
  .footer__top {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .faq__answer {
    padding-right: 0;
  }
  .works {
    gap: 8px;
  }
  .work {
    border-radius: 14px;
  }
  .work__caption {
    display: none;
  }
  .lightbox__figure {
    padding: 64px 0 70px;
  }
  .lightbox__stage img,
  .lightbox__stage video {
    border-radius: 0;
  }
  .lightbox figcaption {
    padding-inline: 16px;
  }
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .quickbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(244, 239, 230, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 var(--line);
  }
  .quickbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
  }
  .quickbar__wa {
    background: var(--forest);
    color: var(--on-dark);
  }
  .quickbar__call {
    background: var(--rope);
    color: #fff;
  }
}
