/* Font ospitati sul server
   ========================================================================== */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-v7-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-v7-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-v7-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-v7-latin-800.woff2") format("woff2");
}

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

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/caveat-v23-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/caveat-v23-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin-700.woff2") format("woff2");
}

:root {
  --accent: #2342F0;
  --grad: linear-gradient(90deg, #2342F0 0%, #7B3FE4 55%, #F0506E 100%);
  --grad-dark: linear-gradient(90deg, #FFD23F 0%, #FF8A5B 50%, #A9B6FF 100%);
  --sun: #FFD23F;
  --ink: #14161F;
  --text: #4B4F5E;
  --paper: #F7F8FC;
  --white: #FFFFFF;
  --line: #14161F;
  --green: #22A565;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --chalk: "Caveat", "Segoe Print", cursive;
  --wrap: 1720px;
  --edge: clamp(2.5rem, 10vw, 12rem);
  --split: minmax(0, 1fr) minmax(0, 1fr);
  --split-gap: clamp(2rem, 6vw, 6rem);
  --text-lead: clamp(1.1rem, 1.35vw, 1.25rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.025em;
}

p {
  margin: 0 0 1em;
}

section[id] {
  scroll-margin-top: 110px;
}

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

.wrap {
  width: min(100% - var(--edge), var(--wrap));
  margin-inline: auto;
}

.h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  margin-bottom: 1.5rem;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h2, .contact__title, .hero__title {
    width: fit-content;
    max-width: 100%;
    background-image: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: .08em;
  }

  .contact__title {
    background-image: var(--grad-dark);
  }

  .hero__title {
    background-image: linear-gradient(175deg, #2342F0 12%, #7B3FE4 48%, #F0506E 85%);
  }
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
}

.skip-link:focus {
  left: 1rem;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}

/* Sfondi
   ========================================================================== */
.bg-dots {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(20,22,31,.17) 1.1px, transparent 0);
  background-size: 22px 22px;
}

.bg-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(38% 55% at 12% 35%, rgba(123,63,228,.16), transparent 70%), radial-gradient(34% 50% at 88% 62%, rgba(240,80,110,.14), transparent 70%), radial-gradient(30% 40% at 62% 4%, rgba(35,66,240,.14), transparent 70%);
}

.hero.bg-dots::before {
  animation: glow 18s ease-in-out infinite alternate;
}

@keyframes glow {
  to {
    transform: translate(2%, -3%) scale(1.06);
  }
}

.statement.bg-dots::before {
  background: radial-gradient(40% 70% at 8% 50%, rgba(35,66,240,.13), transparent 70%), radial-gradient(36% 70% at 70% 60%, rgba(240,80,110,.12), transparent 70%);
}

/* Pulsanti
   ========================================================================== */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .9rem 1.4rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: 700 1.05rem/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}

.key:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--line);
}

.key:hover .ico {
  transform: translateX(3px);
}

.key:active {
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--line);
}

.key--sun {
  background: var(--sun);
}

.key--blue {
  background: var(--accent);
  color: #fff;
}

.key--white {
  background: var(--white);
}

.key--sm {
  padding: .5rem .95rem;
  font-size: .95rem;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--line);
}

.key--sm:hover {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--line);
}

.key--sm:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--line);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Navigazione
   ========================================================================== */
.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  height: 0;
}

.nav {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: min(100% - var(--edge), var(--wrap));
  margin: 0 auto;
}

.nav__pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 60px;
  padding: 0 .45rem 0 1.3rem;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--line);
}

.logo {
  font: 700 1.2rem/1 var(--mono);
  letter-spacing: -.03em;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

.logo span {
  color: var(--ink);
}

.nav__pill > .logo {
  padding-right: 1rem;
  border-right: 2px solid var(--line);
  line-height: 28px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.nav__links a:not(.key) {
  padding: .5rem .95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background .25s, color .25s;
}

.nav__links a:not(.key):hover {
  background: rgba(35,66,240,.08);
}

.nav__links a.is-active {
  background: var(--ink);
  color: #fff;
}

.nav__cta {
  margin-left: .4rem;
}

.nav__toggle {
  display: none;
}

/* Hero
   ========================================================================== */
.hero {
  padding: 130px 0 calc(clamp(3rem, 6vw, 5rem) + 38px);
  border-bottom: 2px solid var(--line);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.75rem;
  padding: .35rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .92rem;
  font-weight: 500;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(34,165,101,.55);
  }

  70%, 100% {
    box-shadow: 0 0 0 9px rgba(34,165,101,0);
  }
}

.hero__title {
  max-width: 8.7em;
  font-size: clamp(2.5rem, 4.6vw, 5.4rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.045em;
  margin-bottom: 1.6rem;
}

.hero__title span {
  display: block;
}

.hero__lead {
  font-size: var(--text-lead);
  color: var(--text);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.showcase-box {
  position: relative;
  height: clamp(420px, 64vh, 680px);
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 28px;
  background: #EEF1FF;
  box-shadow: 10px 10px 0 var(--sun), 10px 10px 0 2px var(--line);
}

.deck__card {
  position: absolute;
  top: 7%;
  left: 9%;
  width: 82%;
  height: 92%;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 0 var(--line);
  opacity: 0;
  transform: translateY(4%) scale(.92);
  transition: transform .8s cubic-bezier(.6, 0, .2, 1), opacity .8s;
}

.deck__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.deck__card[data-pos="0"] {
  z-index: 3;
  opacity: 1;
  transform: none;
}

.deck__card[data-pos="1"] {
  z-index: 2;
  opacity: 1;
  transform: translate(5%, 2%) rotate(4deg);
}

.deck__card[data-pos="2"] {
  z-index: 1;
  opacity: 1;
  transform: translate(-5%, 3%) rotate(-4deg);
}

.deck__card[data-pos="out"] {
  z-index: 4;
  opacity: 1;
  transform: translate(-125%, -6%) rotate(-16deg);
}

/* Barra codice
   ========================================================================== */
.codebar {
  position: relative;
  z-index: 2;
  margin: -38px 0 -38px;
}

.codebar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: .9rem 1.5rem;
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--sun), 8px 8px 0 2px var(--line);
}

.codebar__file {
  font: 500 .8rem var(--mono);
  color: #9A9EB0;
  white-space: nowrap;
  border: 1px solid #3A3E50;
  padding: .3rem .65rem;
  border-radius: 6px;
}

.codebar__line {
  margin: 0;
  display: flex;
  gap: 1.25rem;
  font: 500 clamp(.95rem, 1.9vw, 1.3rem)/1.45 var(--mono);
  min-height: 1.45em;
}

.codebar__ln {
  color: #5F6478;
  user-select: none;
}

.codebar__code {
  white-space: pre-wrap;
}

.tk-var {
  color: #A9B6FF;
}

.tk-op {
  color: #9A9EB0;
}

.tk-fn {
  color: var(--sun);
}

.tk-p {
  color: #D4D6E0;
}

.tk-str {
  color: #8FE0B5;
}

.caret {
  display: inline-block;
  width: .55em;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: var(--sun);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Intro
   ========================================================================== */
.intro {
  padding: calc(clamp(3rem, 6vw, 5rem) + 38px) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--white);
  border-bottom: 2px solid var(--line);
}

.intro__head {
  display: grid;
  grid-template-columns: var(--split);
  gap: 1.5rem var(--split-gap);
  align-items: start;
}

.intro__head .h2 span {
  display: block;
}

.intro__head .h2 {
  margin: 0;
  max-width: 100%;
}

.intro__lead p {
  font-size: var(--text-lead);
  color: var(--text);
  max-width: 34em;
}

.intro__lead p:first-child {
  color: var(--ink);
  font-weight: 500;
}

.highlight {
  padding: 0 .15em;
  color: var(--ink);
  font-weight: 500;
  background: linear-gradient(transparent 55%, var(--sun) 55%, var(--sun) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Servizi
   ========================================================================== */
.services {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.services__inner {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.services__head {
  position: sticky;
  top: 120px;
}

.services__head .h2 {
  max-width: 19ch;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.services__list {
  border-top: 2px solid var(--line);
}

.svc {
  border-bottom: 2px solid var(--line);
}

.svc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}

.svc summary::-webkit-details-marker {
  display: none;
}

.svc__name {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.05;
  transition: color .2s, transform .3s;
}

.svc summary:hover .svc__name {
  color: var(--accent);
  transform: translateX(6px);
}

.svc__toggle {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 4px 0 var(--line);
  transition: background .2s, transform .12s, box-shadow .12s;
}

.svc__toggle::before, .svc__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2.5px;
  margin: -1.25px 0 0 -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s;
}

.svc__toggle::after {
  transform: rotate(90deg);
}

.svc[open] .svc__toggle {
  background: var(--sun);
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--line);
}

.svc[open] .svc__toggle::after {
  transform: rotate(0);
}

.svc[open] .svc__name {
  color: var(--accent);
}

.svc__body {
  padding: 0 0 1.9rem;
  max-width: 40em;
}

.svc__body p {
  font-size: var(--text-lead);
  color: var(--text);
}

.svc[open] .svc__body {
  animation: open .4s ease;
}

@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chips li {
  padding: .35rem .85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: .92rem;
  font-weight: 500;
}

/* Citazione
   ========================================================================== */
.statement {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-block: 2px solid var(--line);
}

.quote {
  margin: 0;
}

.quote::before {
  content: "\201C";
  display: block;
  width: fit-content;
  height: .5em;
  margin: 0 0 clamp(2rem, 3.5vw, 3rem) -.04em;
  font: 900 clamp(7rem, 12vw, 11rem)/.9 var(--font);
  letter-spacing: 0;
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .quote::before {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.quote blockquote {
  margin: 0;
}

.quote p {
  margin: 0;
  max-width: 24ch;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.quote figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  margin-top: 2rem;
  font-size: 1.05rem;
  color: var(--text);
}

.quote figcaption::before {
  content: "";
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
}

.quote figcaption strong {
  color: var(--ink);
  font-size: 1.15rem;
}

/* Lavori
   ========================================================================== */
.work {
  --side: max(var(--edge) / 2, (100vw - var(--wrap)) / 2);
  --slide-w: min(72vw, 1080px);
  padding: clamp(4rem, 8vw, 7rem) 0;
  overflow: hidden;
}

.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-bottom: 2.25rem;
}

.work__head .h2 {
  margin-bottom: .6rem;
}

.work__head p {
  font-size: var(--text-lead);
  color: var(--text);
  margin: 0;
  max-width: 34em;
}

.slider__controls {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.slider__count {
  font: 500 1rem var(--mono);
  color: var(--text);
  margin-right: .5rem;
}

.slider__count b {
  font-size: 1.5rem;
  color: var(--ink);
}

.slider__btn {
  width: 56px;
  height: 52px;
  padding: 0;
}

.slider__btn .ico {
  width: 1.4em;
  height: 1.4em;
}

.slider {
  list-style: none;
  margin: 0;
  padding: 6px var(--side) 22px;
  padding-right: max(var(--side), calc(100vw - var(--side) - var(--slide-w)));
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--side);
  scrollbar-width: none;
  cursor: grab;
  outline-offset: -4px;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.slider.is-dragging .frame {
  pointer-events: none;
}

.slide {
  flex: none;
  width: var(--slide-w);
  scroll-snap-align: start;
  transition: opacity .4s, transform .4s;
}

.slide:not(.is-current) {
  opacity: .55;
  transform: scale(.97);
  transform-origin: left center;
}

.frame {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 8px 0 var(--line);
  transition: box-shadow .3s, transform .3s;
}

.slide.is-current .frame {
  box-shadow: 10px 10px 0 var(--sun), 10px 10px 0 2px var(--line);
}

.frame__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem 1rem;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}

.frame__dots {
  display: flex;
  gap: 6px;
}

.frame__dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
}

.frame__dots i:first-child {
  background: var(--sun);
}

.frame__url {
  flex: 1;
  min-width: 0;
  padding: .35rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: 500 .95rem var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame__url::before {
  content: "https://";
  color: var(--text);
  opacity: .6;
}

.frame__type {
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.frame__view {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #E6E8F0;
}

.frame__view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: object-position 5s ease-in-out;
  user-select: none;
}

.frame:hover .frame__view img, .frame:focus-visible .frame__view img {
  object-position: center bottom;
}

.slider__dots {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
}

.slider__dot {
  width: 34px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  transition: width .3s, background .3s;
}

.slider__dot.is-current {
  width: 120px;
  background: var(--accent);
}

/* Metodo
   ========================================================================== */
.method {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--white);
  border-block: 2px solid var(--line);
}

.steps-wrap {
  position: relative;
  margin-top: 3.5rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.steps li {
  position: relative;
}

.steps h3 {
  font-size: 1.4rem;
  margin-bottom: .5rem;
  transition: color .3s;
}

.steps p {
  color: var(--text);
}

.keycap {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.25rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 0 var(--line);
  font: 700 1.5rem var(--mono);
  transition: transform .15s ease, box-shadow .15s ease, background .25s, color .25s;
}

.steps li.is-done .keycap {
  background: var(--sun);
}

.steps li.is-active .keycap {
  background: var(--accent);
  color: #fff;
  transform: translateY(5px);
  box-shadow: 0 0 0 var(--line);
}

.steps li.is-active h3 {
  color: var(--accent);
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.steps-wrap.has-route .route {
  display: block;
}

.route__base {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-dasharray: 8 9;
  stroke-linecap: round;
  animation: march 1.2s linear infinite;
}

@keyframes march {
  to {
    stroke-dashoffset: -17;
  }
}

.route__done {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
}

.plane {
  transition: opacity .4s;
}

.plane__body {
  filter: drop-shadow(3px 3px 0 var(--sun));
  fill: var(--white);
  stroke: var(--line);
  stroke-width: 2;
  stroke-linejoin: round;
}

.plane__fold {
  fill: #DCE2FD;
}

.steps-wrap.plane-hidden .plane {
  opacity: 0;
}

/* Formazione
   ========================================================================== */
.school {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.school__inner {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: center;
}

.school__text p {
  color: var(--text);
  font-size: var(--text-lead);
  max-width: 34em;
}

.board {
  position: relative;
}

.board__surface {
  position: relative;
  min-height: 380px;
  padding: 2rem 2.4rem 2.6rem;
  border: 2px solid var(--line);
  border-radius: 24px;
  background-color: #1C2B4A;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  box-shadow: 10px 10px 0 var(--sun), 10px 10px 0 2px var(--line);
  font-family: var(--chalk);
  color: rgba(255,255,255,.93);
}

.board__surface::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 14%;
  width: 46%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  filter: blur(14px);
  transform: rotate(-6deg);
  pointer-events: none;
}

.board__date {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  font-size: 1.35rem;
  opacity: .65;
}

.board__title {
  position: relative;
  display: inline-block;
  margin: 1.8rem 0 1.4rem;
  font: 700 clamp(2rem, 3vw, 2.6rem)/1.1 var(--chalk);
  letter-spacing: 0;
  color: #fff;
}

.board__title::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -10px;
  bottom: -4px;
  height: 4px;
  border-radius: 4px;
  background: var(--sun);
  transform: rotate(-1.2deg);
  transform-origin: left;
  transition: transform .6s ease;
}

.anim .board:not(.is-titled) .board__title::after {
  transform: rotate(-1.2deg) scaleX(0);
}

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

.board__list li {
  position: relative;
  min-height: 1.35em;
  margin: .55rem 0;
  padding-left: 2.2rem;
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.3;
}

.board__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32em;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid var(--sun);
  border-radius: 5px;
  transform: rotate(-4deg);
  background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2B4A' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat;
  transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
}

.anim .board__list li:not(.is-on)::before {
  opacity: 0;
  transform: rotate(-4deg) scale(.4);
}

.board__tray {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  z-index: 2;
  width: max-content;
  margin: -20px 0 0 2rem;
  padding: .55rem .8rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--line);
}

.board__tray i {
  display: block;
  width: 38px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.board__tray i:nth-child(2) {
  background: var(--sun);
  width: 30px;
}

.board__tray i:nth-child(3) {
  background: var(--accent);
  width: 24px;
}

.board__tray b {
  display: block;
  width: 56px;
  height: 20px;
  margin-left: .4rem;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(var(--ink) 0 45%, #B9C3FF 45%);
}

/* Contatti
   ========================================================================== */
.contact {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.contact__inner {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  color: #fff;
  border: 2px solid var(--line);
  border-radius: 28px;
  background-color: var(--ink);
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1.1px, transparent 0), radial-gradient(45% 70% at 90% 100%, rgba(240,80,110,.28), transparent 70%), radial-gradient(40% 60% at 70% 0%, rgba(123,63,228,.30), transparent 70%);
  background-size: 22px 22px, auto, auto;
  box-shadow: 12px 12px 0 var(--sun), 12px 12px 0 2px var(--line);
}

.contact__title {
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 13ch;
  margin-bottom: 1.5rem;
}

.contact__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: #C9CCDA;
  max-width: 40ch;
  margin-bottom: 2.5rem;
}

.contact .key {
  border-color: #fff;
  box-shadow: 0 5px 0 #fff;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.contact .key--white {
  background: transparent;
  color: #fff;
}

.contact .key:hover {
  box-shadow: 0 3px 0 #fff;
}

.contact .key:active {
  box-shadow: 0 0 0 #fff;
}

.contact :focus-visible {
  outline-color: var(--sun);
}

/* Footer
   ========================================================================== */
.footer {
  padding: 2rem 0;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  border-top: 2px solid var(--line);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer p {
  margin: 0;
}

.footer p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer p a:hover {
  color: var(--accent);
}

.footer__social {
  display: flex;
  gap: 1.5rem;
}

.footer__social a {
  font-weight: 500;
  text-decoration: none;
}

.footer__social a:hover {
  color: var(--accent);
}

/* Pagina privacy
   ========================================================================== */
.legal {
  padding: 140px 0 clamp(4rem, 8vw, 7rem);
}

.legal__inner {
  max-width: 46rem;
}

.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

.legal__back:hover {
  color: var(--accent);
}

.legal h1 {
  margin-bottom: .5rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -.04em;
}

.legal__updated {
  margin-bottom: 3rem;
  color: var(--text);
}

.legal h2 {
  margin: 2.75rem 0 .9rem;
  font-size: 1.5rem;
}

.legal p, .legal li {
  font-size: var(--text-lead);
  color: var(--text);
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.2rem;
}

.legal li {
  margin-bottom: .4rem;
}

.legal strong {
  color: var(--ink);
}

.legal a {
  color: var(--accent);
}

/* Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__inner, .intro__head, .services__inner, .school__inner {
    grid-template-columns: 1fr;
  }

  .services__head {
    position: static;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav__pill {
    width: 100%;
    justify-content: space-between;
    height: 56px;
    padding: 0 .45rem 0 1.1rem;
  }

  .nav__pill > .logo {
    border-right: 0;
    padding-right: 0;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(100%, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: .75rem;
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 4px 0 var(--line);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a:not(.key) {
    padding: .8rem 1rem;
    font-size: 1.1rem;
  }

  .nav__cta {
    margin: .5rem 0 0;
    padding: .8rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 110px;
  }

  .showcase-box {
    height: 400px;
  }

  .work {
    --slide-w: 86vw;
  }

  .frame__type {
    display: none;
  }

  .frame__view {
    aspect-ratio: 4 / 3;
  }

  .slider__controls {
    width: 100%;
  }

  .slider__count {
    margin-right: auto;
  }

  .steps-wrap {
    margin-top: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .steps li {
    padding-left: 84px;
    min-height: 64px;
  }

  .steps li .keycap {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }

  .codebar__file {
    display: none;
  }

  .codebar__line {
    min-height: 2.9em;
    gap: .9rem;
  }

  .codebar__inner {
    padding: .9rem 1.1rem;
    box-shadow: 6px 6px 0 var(--sun), 6px 6px 0 2px var(--line);
  }

  .contact__inner {
    border-radius: 22px;
    box-shadow: 7px 7px 0 var(--sun), 7px 7px 0 2px var(--line);
  }

  .board__surface {
    min-height: 0;
    padding: 1.8rem 1.4rem 2.2rem;
    box-shadow: 7px 7px 0 var(--sun), 7px 7px 0 2px var(--line);
  }

  .board__date {
    font-size: 1.1rem;
    right: 1.2rem;
  }

  .actions .key {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
