/* La scarpa in vista esplosa */
:root {
  --fondo: #e8eaec;              /* the bench, a cool light grey */
  --griglia: rgba(26, 29, 35, 0.07);  /* the drawing grid behind the exploded view */
  --inchiostro: #1a1d23;         /* the words, the outlines and the leader lines */
  --inchiostro-tenue: rgba(26, 29, 35, 0.6);
  --accento: #ff5b36;            /* the brand, the scanner and the small details */
  --ombra: rgba(26, 29, 35, 0.2);   /* the shadow on the bench */
  /* the first colourway, Clay */
  --clay-tomaia: #e7d7c0;        /* the mesh of the upper */
  --clay-rinforzo: #b6573a;      /* the overlays: eyestay, toe cap, heel counter, tongue tab */
  --clay-intersuola: #f7f1e6;    /* the foam midsole */
  --clay-suola: #7a5136;         /* the rubber outsole */
  --clay-lacci: #fbf7ef;         /* the laces */
  --clay-segno: #2f4a3f;         /* the wave on the side, the heel pod, the insole print */
  /* the new colourway, Glacier */
  --glacier-tomaia: #d3e3ec;
  --glacier-rinforzo: #2c5a86;
  --glacier-intersuola: #ffffff;
  --glacier-suola: #1e2834;
  --glacier-lacci: #ffffff;
  --glacier-segno: #ff6a48;
  /* the third colourway, Ember */
  --ember-tomaia: #2c2724;
  --ember-rinforzo: #ff5b22;
  --ember-intersuola: #f2ebe0;
  --ember-suola: #2c2724;
  --ember-lacci: #ff5b22;
  --ember-segno: #ffc94d;
  --alto: 100vh;
  --alto-grande: 100vh;
}
@supports (height: 100svh) {
  :root { --alto: 100svh; }
}
/* the still stage is as tall as the screen with the Safari bar pulled back */
@supports (height: 100lvh) {
  :root { --alto-grande: 100lvh; }
}

* { box-sizing: border-box; }
html,
body {
  margin: 0;
  background: var(--fondo);
}
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  color: var(--inchiostro);
  font-family: 'Archivo Variable', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-style: normal; }

/* ---------------------------------------------------------------- the header */
.testata {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 44px);
  pointer-events: none;
}
.testata > * { pointer-events: auto; }
.marchio {
  margin: 0;
  font-size: 22px;
  font-weight: 860;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.marchio span {
  margin-left: 6px;
  font-weight: 500;
  font-stretch: 75%;
  letter-spacing: 0.04em;
  color: var(--accento);
}
.menu {
  display: flex;
  gap: 4px;
}
.menu a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 560;
  font-stretch: 100%;
  text-decoration: none;
  transition: font-stretch 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease;
}
@media (hover: hover) {
  .menu a:hover {
    font-stretch: 125%;
    background: rgba(26, 29, 35, 0.07);
  }
}

/* ---------------------------------------------------------------- the bench */
.banco {
  position: relative;
  height: calc(var(--alto-grande) * 8);
}
.palco {
  position: sticky;
  top: 0;
  height: var(--alto-grande);
  overflow: hidden;
  background-color: var(--fondo);
}
/* the drawing grid: it grows clearer while the shoe is apart */
.palco::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--griglia) 1px, transparent 1px),
    linear-gradient(90deg, var(--griglia) 1px, transparent 1px);
  background-size: var(--passo-griglia, 48px) var(--passo-griglia, 48px);
  background-position: center center;
  opacity: var(--griglia-forza, 0.35);
  pointer-events: none;
}

/* the model's name behind everything */
.sfondo {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(120px, 27vw, 420px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(26, 29, 35, 0.09);
  pointer-events: none;
  user-select: none;
}
.sfondo span { display: inline-block; }

.mondo,
.fili {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.fili { pointer-events: none; }

/* the drawing of the shoe: every colour comes from the skin it belongs to */
.mondo {
  --tratto: 2px;
  touch-action: pan-y;
}
.pelle-a {
  --t-tomaia: var(--a-tomaia);
  --t-rinforzo: var(--a-rinforzo);
  --t-intersuola: var(--a-intersuola);
  --t-suola: var(--a-suola);
  --t-lacci: var(--a-lacci);
  --t-segno: var(--a-segno);
}
.pelle-b {
  --t-tomaia: var(--b-tomaia);
  --t-rinforzo: var(--b-rinforzo);
  --t-intersuola: var(--b-intersuola);
  --t-suola: var(--b-suola);
  --t-lacci: var(--b-lacci);
  --t-segno: var(--b-segno);
}
.linea {
  stroke: var(--inchiostro);
  stroke-width: var(--tratto);
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.f-tomaia { fill: var(--t-tomaia); }
.f-rinforzo { fill: var(--t-rinforzo); }
.f-intersuola { fill: var(--t-intersuola); }
.f-suola { fill: var(--t-suola); }
.f-segno { fill: var(--t-segno); }
.f-soletta { fill: color-mix(in srgb, var(--t-tomaia) 45%, #ffffff); }
.f-soletta-bordo { fill: color-mix(in srgb, var(--t-tomaia) 70%, var(--t-rinforzo)); }
.f-tassello { fill: color-mix(in srgb, var(--t-suola) 78%, #000000); }
.f-ombra-intersuola { fill: color-mix(in srgb, var(--t-intersuola) 86%, var(--t-tomaia)); }
.f-maglia { fill: url(#maglia); }
.s-onda {
  fill: none;
  stroke: var(--t-segno);
  stroke-linecap: round;
}
.s-occhiellatura {
  fill: none;
  stroke: var(--t-rinforzo);
  stroke-width: 54;
}
.s-occhiello {
  fill: var(--inchiostro);
}
.s-cucitura {
  fill: none;
  stroke: var(--inchiostro);
  stroke-opacity: 0.4;
  stroke-width: 1.2px;
  stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke;
}
.s-solco {
  fill: none;
  stroke: var(--inchiostro);
  stroke-opacity: 0.28;
  stroke-width: 1.4px;
  vector-effect: non-scaling-stroke;
}
.s-imbottitura {
  fill: none;
  stroke: var(--inchiostro);
  stroke-opacity: 0.22;
  stroke-width: 6;
  stroke-linecap: round;
}
.s-laccio {
  fill: none;
  stroke: var(--inchiostro);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.s-laccio-colore {
  fill: none;
  stroke: var(--t-lacci);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.t-scritta {
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.f-scritta { fill: var(--inchiostro); fill-opacity: 0.5; }
.f-scritta-segno { fill: var(--t-segno); }
.ombra-banco { fill: var(--ombra); }

/* the scanner that dips the shoe in the new colour */
.scanner__linea {
  stroke: var(--inchiostro);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
.scanner__punta { fill: var(--inchiostro); }
.scanner__nome {
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--inchiostro);
}

/* where the pointer can catch a part */
.parte { cursor: grab; }

/* ---------------------------------------------------------------- the labels */
.fili path {
  fill: none;
  stroke: var(--inchiostro);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.etichette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.etichetta {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  visibility: hidden;
}
.etichetta.a-destra { text-align: left; }
.etichetta.a-sinistra { text-align: right; }
.etichetta > * {
  margin: 0;
  overflow: hidden;
}
.etichetta > * > span { display: inline-block; }
.etichetta__nome {
  font-size: 19px;
  font-weight: 760;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-bottom: 2px;
}
.etichetta__materia,
.etichetta__dato {
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  color: var(--inchiostro-tenue);
}
.etichetta__dato {
  color: var(--inchiostro);
  font-weight: 600;
}
.etichetta.in-luce .etichetta__nome { color: var(--accento); }

/* ---------------------------------------------------------------- the opening and the close */
.apertura,
.chiusura {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(16px, 6vw, 96px);
  width: min(40vw, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}
.apertura a,
.chiusura a { pointer-events: auto; }
.apertura__etichetta,
.chiusura__etichetta {
  margin: 0 0 18px;
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accento);
}
.apertura__titolo,
.chiusura__titolo {
  margin: 0;
  font-size: clamp(46px, 6.6vw, 104px);
  font-weight: 880;
  font-stretch: 118%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.apertura__titolo em,
.chiusura__titolo em {
  font-weight: 300;
  font-stretch: 70%;
  letter-spacing: -0.02em;
}
.riga {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.riga > span { display: inline-block; }
.apertura__testo {
  max-width: 36ch;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--inchiostro-tenue);
}
.cenno {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cenno svg {
  width: 14px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chiusura { visibility: hidden; }
.chiusura__prezzo {
  margin: 22px 0 26px;
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 14px;
  color: var(--inchiostro-tenue);
}

/* the stretchy pill: the words widen, the background swells with a bounce */
.pillola {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  isolation: isolate;
}
.pillola__fondo {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--inchiostro);
  transition: transform 0.7s cubic-bezier(0.34, 1.8, 0.5, 1), background-color 0.3s ease;
}
.pillola__testo {
  font-size: 16px;
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: 0.01em;
  transition: font-stretch 0.6s cubic-bezier(0.34, 1.7, 0.5, 1);
}
@media (hover: hover) {
  .pillola:hover .pillola__fondo {
    transform: scale(1.08, 1.14);
    background: var(--accento);
  }
  .pillola:hover .pillola__testo { font-stretch: 125%; }
}
.pillola:active .pillola__fondo { transform: scale(0.96); }

/* ---------------------------------------------------------------- the captions */
.didascalie {
  position: absolute;
  left: clamp(16px, 6vw, 96px);
  bottom: clamp(28px, 6vh, 56px);
  width: min(46vw, 460px);
  height: 40px;
  pointer-events: none;
}
.didascalia {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  overflow: hidden;
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 760;
  font-stretch: 112%;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.didascalia > span { display: inline-block; }
.didascalia em {
  color: var(--accento);
}

/* ---------------------------------------------------------------- the colourways */
.colori {
  position: absolute;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(24px, 6vh, 52px);
  display: flex;
  gap: 8px;
}
.colore {
  --colore-fondo: #ffffff;
  --colore-testo: var(--inchiostro);
  position: relative;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--colore-testo);
  font: inherit;
  font-size: 14px;
  font-weight: 640;
  font-stretch: 100%;
  cursor: pointer;
  isolation: isolate;
  transition: font-stretch 0.5s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.colore::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--colore-fondo);
  box-shadow: inset 0 0 0 1.5px rgba(26, 29, 35, 0.16);
  transition: transform 0.6s cubic-bezier(0.34, 1.9, 0.5, 1), box-shadow 0.3s ease;
}
.colore.attivo::before {
  box-shadow: inset 0 0 0 2px var(--inchiostro);
  transform: scale(1.06, 1.12);
}
.colore.attivo { font-stretch: 118%; }
@media (hover: hover) {
  .colore:hover { font-stretch: 125%; }
  .colore:hover::before { transform: scale(1.08, 1.16); }
}
.colore:focus-visible {
  outline: 2px solid var(--accento);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- the end of the page */
.fine {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 80px 16px;
  text-align: center;
  background: var(--inchiostro);
  color: var(--fondo);
}
.fine__frase {
  margin: 0;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 880;
  font-stretch: 118%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.fine__frase em {
  font-weight: 300;
  font-stretch: 70%;
  color: var(--accento);
}
.fine__nota {
  margin: 0;
  font-family: 'JetBrains Mono Variable', ui-monospace, monospace;
  font-size: 13px;
  opacity: 0.7;
}

/* ---------------------------------------------------------------- the phone */
@media (max-width: 760px), (max-aspect-ratio: 5/6) {
  .mondo { --tratto: 1.4px; }
  .menu a { padding: 8px 8px; font-size: 13px; }
  .apertura,
  .chiusura {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: auto;
    top: 76px;
    justify-content: flex-start;
  }
  .apertura__titolo,
  .chiusura__titolo { font-size: clamp(40px, 12vw, 72px); }
  .apertura__testo { margin-top: 14px; font-size: 15px; }
  .apertura__etichetta,
  .chiusura__etichetta { margin-bottom: 12px; font-size: 11px; }
  .cenno { display: none; }
  .chiusura__prezzo { margin: 12px 0 16px; font-size: 13px; }
  .pillola { height: 48px; padding: 0 26px; }
  .etichetta { width: 170px; }
  .etichetta__dato { display: none; }
  .etichetta__nome { font-size: 15px; }
  .etichetta__materia,
  .etichetta__dato { font-size: 10.5px; line-height: 1.35; }
  .didascalie {
    left: 16px;
    right: 16px;
    width: auto;
    bottom: 84px;
    height: 30px;
  }
  .didascalia { font-size: 19px; }
  .colori {
    left: 16px;
    right: 16px;
    bottom: 24px;
    justify-content: flex-start;
  }
  .colore { height: 38px; padding: 0 14px; font-size: 13px; }
}
