@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6e6e73;
  --ground: #ffffff;
  --band: #f5f5f7;
  --rule: #d2d2d7;
  --green-logo: #48b540;
  --green: #1f7a24;
  --green-press: #17611b;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  accent-color: var(--green);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #d5efd2;
  color: var(--ink);
}

a {
  color: var(--green);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration: underline;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  text-wrap: balance;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

/* Barra */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bar__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
  mix-blend-mode: multiply;
}

.bar__links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar__links a {
  color: var(--ink-2);
  font-size: 13px;
}

.bar__links a:hover {
  color: var(--ink);
  text-decoration: none;
}

/* Apertura */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(72px, 12vh, 128px);
  text-align: center;
}

.hero h1 {
  font-size: clamp(44px, 8.2vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.hero__lead {
  max-width: 34ch;
  margin: 28px auto 0;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  align-items: center;
  margin-top: 36px;
}

.hero__since {
  margin: 44px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.pill {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  transition: background-color 0.2s var(--ease);
}

.pill:hover {
  background: var(--green-press);
  text-decoration: none;
}

.pill--large {
  padding: 16px 32px;
  font-size: 19px;
}

.more {
  font-size: 17px;
}

.more::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.3em;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translateY(-0.08em) rotate(45deg);
}

/* Metodo: sequenza fissata durante lo scorrimento */
.method {
  position: relative;
  background: var(--band);
}

.method__stick {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 120px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.method__text {
  display: grid;
  gap: clamp(28px, 5vh, 48px);
}

.method__title {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.method__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step+.step {
  margin-top: clamp(20px, 3.5vh, 36px);
}

.step__word {
  display: block;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  transition: color 0.6s var(--ease);
}

.step__text {
  max-width: 40ch;
  margin: 10px 0 0;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.method__track {
  display: none;
}

/* Immagini del metodo: in fila sotto i passi, oppure in dissolvenza durante lo scorrimento */
.method__media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  grid-column: 1 / -1;
}

.method__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--rule);
}

/* Solo con JS e movimento consentito: i passi si accendono uno alla volta */
@media (prefers-reduced-motion: no-preference) and (min-width: 760px) {
  .js .method {
    height: 300vh;
  }

  .js .method__stick {
    position: sticky;
    top: 48px;
    min-height: calc(100vh - 48px);
  }

  .js .method__track {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .js .method__track span {
    position: absolute;
    left: 0;
    height: 1px;
    width: 1px;
  }

  .js .method__track [data-mark="0"] {
    top: 0;
  }

  .js .method__track [data-mark="1"] {
    top: 100vh;
  }

  .js .method__track [data-mark="2"] {
    top: 200vh;
  }

  .js .step .step__word {
    color: #8a8a8f;
  }

  .js .step .step__text {
    opacity: 0;
    transform: translateY(8px);
  }

  .js .step.is-on .step__word {
    color: var(--ink);
  }

  .js .step.is-on .step__text {
    opacity: 1;
    transform: none;
  }

  .js .method__stick {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .js .method__steps .step__word {
    font-size: clamp(44px, 5.6vw, 72px);
  }

  .js .method__media {
    display: block;
    position: relative;
    grid-column: auto;
    aspect-ratio: 4 / 5;
    max-height: calc(100vh - 168px);
  }

  .js .method__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 22px;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
  }

  .js .method[data-active="0"] .method__media [data-step="0"],
  .js .method[data-active="1"] .method__media [data-step="1"],
  .js .method[data-active="2"] .method__media [data-step="2"] {
    opacity: 1;
    transform: none;
  }
}

/* Ambiti */
.areas {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(96px, 14vh, 152px) var(--gutter) clamp(72px, 10vh, 112px);
}

.areas h2,
.work h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.areas__list {
  margin: 48px 0 0;
}

.area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 8px 48px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.area:last-child {
  border-bottom: 1px solid var(--rule);
}

.area dt {
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.area dd {
  margin: 0;
  font-size: 19px;
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 46ch;
}

/* Esperienze */
.work {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 80px) var(--gutter) clamp(96px, 14vh, 152px);
}

.work__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: baseline;
  justify-content: space-between;
}

.work__list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}

.work__list li {
  padding: 28px 0 32px;
  border-top: 1px solid var(--rule);
}

.work__list h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.work__list p {
  margin: 10px 0 0;
  color: var(--ink-2);
  max-width: 40ch;
}

/* Chiusura */
.close {
  background: var(--band);
  text-align: center;
  padding: clamp(96px, 16vh, 168px) var(--gutter);
}

.close h2 {
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.close p {
  margin: 20px auto 0;
  max-width: 36ch;
  font-size: clamp(19px, 2.2vw, 24px);
  color: var(--ink-2);
}

.close .close__mail {
  margin-top: 40px;
}

/* Piede */
.foot {
  border-top: 1px solid var(--rule);
}

.foot__inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px var(--gutter) 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-3);
}

.foot p {
  margin: 0;
}

.foot__legal {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.foot__legal strong {
  font-weight: 600;
  color: var(--ink-2);
}

.foot__legal a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

.foot__legal a:hover {
  color: var(--green);
}

@media (max-width: 759px) {
  .bar__links {
    gap: 16px;
  }

  .bar__links li:nth-child(-n+2) {
    display: none;
  }

  .method__stick {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .area {
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .area dd {
    font-size: 17px;
  }

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

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

  * {
    transition: none !important;
  }
}

/* Orologio: riquadro in alto a destra, sotto la barra */
.top {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  justify-content: flex-end;
}

.clock {
  width: min(100%, 540px);
  padding: 16px 20px 18px;
  background: var(--band);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
}

.clock__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.clock__sub {
  margin: 2px 0 14px;
  font-size: 13px;
  color: var(--ink-3);
}

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

.clock__time {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.clock__meters {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.meter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.8em;
  grid-template-areas: "label value" "track track";
  gap: 3px 8px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-2);
}

.meter__label {
  grid-area: label;
}

.meter__value {
  grid-area: value;
  text-align: right;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.meter__track {
  grid-area: track;
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--rule);
  overflow: hidden;
}

.meter__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--meter, var(--green-logo));
  transition: width 0.6s var(--ease), background-color 0.6s var(--ease);
}

/* Le cinque fasce del vecchio orologio, come intensità crescente del verde del logo */
.meter[data-level="0"] {
  --meter: #c4e6c0;
}

.meter[data-level="1"] {
  --meter: #9bd494;
}

.meter[data-level="2"] {
  --meter: var(--green-logo);
}

.meter[data-level="3"] {
  --meter: #33952f;
}

.meter[data-level="4"] {
  --meter: var(--green);
}

.meter[data-meter="second"] .meter__fill {
  transition-duration: 0.25s;
}

@media (max-width: 759px) {
  .top {
    padding-top: 16px;
  }
}
/* Pagina contatti */
.bar__links a[aria-current="page"] { color: var(--ink); }
.contact {
  max-width: var(--wide); margin: 0 auto; text-align: center;
  padding: clamp(80px, 14vh, 152px) var(--gutter) clamp(64px, 10vh, 112px);
}
.contact h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.contact__lead { max-width: 36ch; margin: 24px auto 0; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--ink-2); }
.contact .contact__mail { margin-top: 40px; }
.brief { background: var(--band); }
.brief, .reach { padding: clamp(72px, 11vh, 120px) var(--gutter); }
.brief > *, .reach > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.brief h2, .reach h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.brief__lead { margin-top: 12px; font-size: 19px; color: var(--ink-2); }
.brief__list {
  margin-top: 40px; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px;
}
.brief__list li { padding-top: 24px; border-top: 1px solid var(--rule); }
.brief__list h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; }
.brief__list p { margin: 10px 0 0; color: var(--ink-2); }
.reach__list { margin-top: 40px; }
.reach__list dd { font-variant-numeric: tabular-nums; }

@media (max-width: 759px) {
  .brief__list { grid-template-columns: 1fr; gap: 28px; }
}

/* Pagina esperienze */
.exps { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 11vh, 120px); }
.exp { padding: clamp(36px, 6vh, 56px) 0; border-top: 1px solid var(--rule); }
.exp__area { margin: 0 0 6px; font-size: 15px; color: var(--green); font-weight: 500; }
.exp__head h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.025em; }
.exp__body { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.exp__body dt { font-size: 15px; font-weight: 600; color: var(--ink); }
.exp__body dd { margin: 6px 0 0; color: var(--ink-2); max-width: 36ch; }

@media (max-width: 759px) {
  .exp__body { grid-template-columns: 1fr; gap: 18px; }
}

/* Pagina informativa privacy */
.legal { max-width: 72ch; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 11vh, 120px); box-sizing: content-box; color: var(--ink-2); }
.legal__note { margin: 0; padding-bottom: 32px; border-bottom: 1px solid var(--rule); font-size: 15px; color: var(--ink-3); }
.legal h2 { margin: 48px 0 0; font-size: clamp(24px, 3vw, 30px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); }
.legal h3 { margin: 24px 0 0; font-size: 19px; line-height: 1.3; color: var(--ink); }
.legal p, .legal ul { margin: 12px 0 0; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 8px; }
.legal__list { margin: 20px 0 0; }
.legal__list div { padding: 16px 0; border-top: 1px solid var(--rule); }
.legal__list dt { font-weight: 600; color: var(--ink); }
.legal__list dd { margin: 6px 0 0; }
.foot__inner a[aria-current="page"] { color: var(--ink); }
