/* giacomobeccani.com, v9
   The opening: Giacomo walks out in front of his name, on Lavder orange. Then the page slides over it as a pile of
   sheets with rounded tops, alternating dark and light: who I am (with a fan of three portraits), skills, what I do
   (cards that stack), numbers, products (a sideways rail) and the rest, Lavder, the last months, how I work, the
   tools, the call to write. No labels over the titles; text runs the width of its column.
   The motion lives in js/site.js; this sheet holds the still page, complete without scripts. */

@font-face { font-family: "TWK Lausanne"; src: url("/font/TWKLausanne-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "TWK Lausanne"; src: url("/font/TWKLausanne-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TWK Lausanne"; src: url("/font/TWKLausanne-1000.woff2") format("woff2"); font-weight: 1000; font-display: swap; }
@font-face {
  font-family: "Inter Variable";
  src: url("/font/inter-latin-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  src: url("/font/inter-latin-ext-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --nero: #0a0a0a;
  --grafite: #161616;
  --chiaro: #f1f1ef;
  --bianco: #ffffff;
  --inchiostro: #111113;
  --arancio: #f87016;
  --arancio-chiaro: #ff9a4d;
  --margine: clamp(16px, 2.4vw, 40px);
  --raggio: clamp(20px, 2.2vw, 32px);
  --titolo: "TWK Lausanne", "Inter Variable", system-ui, sans-serif;
  --testo: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
/* the two kinds of sheet: what the text and the lines are made of */
.scuro { --fondo: var(--nero); --testo-1: var(--bianco); --testo-2: rgba(255, 255, 255, 0.72); --testo-3: #9b9ba0; --linea: rgba(255, 255, 255, 0.12); }
.chiaro { --fondo: var(--chiaro); --testo-1: var(--inchiostro); --testo-2: #45454a; --testo-3: #6b6b70; --linea: rgba(17, 17, 19, 0.12); }

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; background: var(--nero); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--nero);
  color: var(--bianco);
  font: 400 16px/1.6 var(--testo);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* a fine grain over everything, so the flat colours have a surface */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 0 0.5  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--arancio); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--arancio); color: var(--inchiostro); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.salta {
  position: fixed; top: 12px; left: 12px; z-index: 500; padding: 10px 14px; border-radius: 8px;
  background: var(--arancio); color: var(--inchiostro); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.salta:focus { transform: none; }

.freccia { width: 0.85em; height: 0.85em; margin-left: 0.35em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.05em; transition: transform 0.35s var(--curva); }
a:hover .freccia { transform: translate(2px, -2px); }

.bottone {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  background: transparent;
  font: 600 14px/1 var(--testo);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.4s var(--curva);
}
.bottone.pieno { border-color: var(--inchiostro); background: var(--inchiostro); color: var(--bianco); }
.scuro .bottone.pieno { border-color: var(--bianco); background: var(--bianco); color: var(--inchiostro); }
@media (hover: hover) {
  .bottone:hover { transform: translateY(-2px); }
  .bottone:not(.pieno):hover { background: var(--inchiostro); border-color: var(--inchiostro); color: var(--bianco); }
}

/* ---------- loader, progress, cursor ---------- */
.carica { display: none; }
.js .carica {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--nero);
  color: var(--bianco);
  animation: carica-via 0s linear 6s forwards;
}
@keyframes carica-via { to { visibility: hidden; } }
.carica-nome { position: absolute; top: calc(var(--margine) + 6px); left: var(--margine); font: 600 12px/1 var(--testo); letter-spacing: 0.06em; text-transform: uppercase; }
.carica-conta {
  position: absolute;
  right: var(--margine);
  bottom: calc(var(--margine) - 0.06em);
  color: var(--arancio);
  font: 700 clamp(120px, 24vw, 380px)/0.8 var(--titolo);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.carica-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--arancio); transform: scaleX(0); transform-origin: left; }
.carica.tenda .carica-conta, .carica.tenda .carica-barra { display: none; }
@media (prefers-reduced-motion: reduce) { .js .carica { display: none; } }

.avanzamento { position: fixed; z-index: 200; top: 0; left: 0; right: 0; height: 2px; background: var(--arancio); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.cursore { display: none; }
@media (hover: hover) and (pointer: fine) {
  .moto .cursore {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 350;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    margin: 0;
    border-radius: 50%;
    background: var(--arancio);
    pointer-events: none;
    opacity: 0;
    transition: width 0.35s var(--curva), height 0.35s var(--curva), margin 0.35s var(--curva), opacity 0.3s, background-color 0.3s;
  }
  /* no dot under the pointer: the circle appears only over the products, lavder.com and the call to write */
  .moto .cursore.vivo.grande { opacity: 1; }
  .moto .cursore.grande { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--arancio); }
  .cursore-testo { color: var(--inchiostro); font: 700 12px/1 var(--testo); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s; }
  .cursore.grande .cursore-testo { opacity: 1; }
}

/* ---------- the bar and the menu ---------- */
.barra {
  position: fixed;
  z-index: 160;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(320px, calc(100% - 2 * var(--margine)));
  height: 46px;
  padding: 0 6px 0 18px;
  border-radius: 10px;
  background: rgba(17, 17, 19, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--bianco);
  transform: translateX(-50%);
}
.barra-nome { font: 600 12px/1 var(--testo); letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; }
.barra-menu { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.barra-menu svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 0; transition: opacity 0.2s, transform 0.4s var(--curva); }
.barra-menu svg:last-child { fill: none; stroke-width: 1.6; stroke-linecap: round; opacity: 0; transform: rotate(-90deg); }
.barra-menu[aria-expanded="true"] svg:first-child { opacity: 0; transform: rotate(90deg); }
.barra-menu[aria-expanded="true"] svg:last-child { opacity: 1; transform: none; }
@media (hover: hover) { .barra-menu:hover { background: rgba(255, 255, 255, 0.14); } }

.menu { position: fixed; z-index: 150; inset: 0; display: grid; grid-template-rows: 1fr auto; padding: 110px var(--margine) var(--margine); overflow-y: auto; background: var(--nero); }
.menu[hidden] { display: none; }
.menu-voci { align-self: center; }
.menu-voci li { overflow: hidden; padding-bottom: 0.26em; margin-bottom: -0.26em; }
.menu-voci a { display: inline-block; font: 700 clamp(36px, min(9.5vw, (100svh - 250px) / 5.6), 124px)/0.98 var(--titolo); letter-spacing: -0.045em; text-transform: uppercase; text-decoration: none; transition: color 0.25s; }
.menu-voci a span { display: inline-block; }
@media (hover: hover) { .menu-voci a:hover { color: var(--arancio); } }
.menu-fondo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font: 600 13px/1 var(--testo); letter-spacing: 0.04em; }
.menu-fondo > a { text-decoration: none; }
.lingue { display: inline-flex; gap: 14px; font: 600 12px/1 var(--testo); letter-spacing: 0.06em; }
.lingue a { text-decoration: none; opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.lingue a:hover { opacity: 1; }
.lingue a[aria-current] { color: var(--arancio); opacity: 1; }

/* ---------- opening: walking out in front of the name; it stays while the page slides over it ---------- */
.eroe {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(90% 70% at 50% 40%, #fb8433 0%, var(--arancio) 55%, #ea6610 100%);
  color: var(--inchiostro);
  --buio: 0;
}
.eroe::after { content: ""; position: absolute; inset: 0; z-index: 5; background: var(--nero); opacity: var(--buio); pointer-events: none; }
.eroe-nome {
  position: absolute;
  z-index: 1;
  top: clamp(84px, 13vh, 150px);
  left: var(--margine);
  right: var(--margine);
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 1000 17vw/0.8 var(--titolo);
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
.eroe-nome .w { display: inline-block; }
.eroe-figura { position: absolute; z-index: 2; bottom: 0; left: 50%; height: 90%; transform: translateX(-50%); transform-origin: 50% 25%; }
.eroe-figura img { width: auto; max-width: none; height: 100%; }
.eroe-fondo {
  position: absolute;
  z-index: 3;
  left: var(--margine);
  right: var(--margine);
  bottom: var(--margine);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.eroe-sub { width: min(30vw, 460px); font: 600 clamp(19px, 1.7vw, 27px)/1.2 var(--titolo); letter-spacing: -0.02em; }
.eroe-azioni { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* ---------- the page: sheets laid over the opening and over each other ---------- */
.pagina { position: relative; z-index: 2; }
.pagina > section:not(.strumenti) {
  position: relative;
  background: var(--fondo);
  color: var(--testo-1);
  border-radius: var(--raggio) var(--raggio) 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, 0.45);
}
.pagina > section + section:not(.strumenti):not(.contatti) { margin-top: calc(-1 * var(--raggio)); }
.testa h2, .percorso-testa h2, .metodo > h2, .competenze > h2, .lavder-testo h2 {
  font: 700 clamp(46px, 7.4vw, 124px)/0.9 var(--titolo);
  letter-spacing: -0.045em;
}
.testa-intro { margin-top: 22px; color: var(--testo-2); font-size: clamp(17px, 1.3vw, 21px); }
/* the mask of each title line leaves room under the line, so descenders (g, p, y) are not cut */
.riga-mask { padding-bottom: 0.2em; margin-bottom: -0.2em; }

/* a wide scene with a slow drift inside its frame */
.foto-larga { position: relative; margin-top: clamp(48px, 5vw, 80px); aspect-ratio: 16 / 9; max-height: 82vh; width: 100%; overflow: hidden; border-radius: var(--raggio); background: var(--grafite); }
.foto-larga img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }

/* ---------- who I am ---------- */
.chi { padding: clamp(110px, 12vw, 190px) var(--margine) clamp(100px, 10vw, 160px); }
.manifesto { font: 600 clamp(30px, 3.9vw, 66px)/1.08 var(--titolo); letter-spacing: -0.03em; text-wrap: pretty; }
.chi-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; margin-top: clamp(80px, 9vw, 150px); }
.chi-testo p { color: var(--testo-2); font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; }
.chi-testo p + p { margin-top: 1.1em; }
.chi-foto { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--raggio); background: var(--grafite); }
.chi-foto img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }

/* ---------- how I think: prose, the title holding still on the left ---------- */
.competenze { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); padding: clamp(110px, 11vw, 180px) var(--margine) clamp(110px, 11vw, 180px); }
.competenze > h2 { position: sticky; top: 110px; align-self: start; }
.ragiono p { color: var(--testo-2); font-size: clamp(18px, 1.45vw, 23px); line-height: 1.6; text-wrap: pretty; }
.ragiono p + p { margin-top: 1.15em; }
.ragiono .ragiono-primo { margin-bottom: 0.4em; color: var(--testo-1); font: 600 clamp(26px, 2.6vw, 42px)/1.16 var(--titolo); letter-spacing: -0.025em; }

/* ---------- what I do: cards that stack ---------- */
.servizi { padding: clamp(110px, 11vw, 180px) var(--margine) clamp(120px, 12vw, 200px); }
.servizi-pila { margin-top: clamp(56px, 6vw, 96px); }
.servizio {
  position: sticky;
  top: calc(92px + var(--i) * 16px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  min-height: min(62vh, 560px);
  margin-bottom: 7vh;
  padding: clamp(28px, 3.6vw, 60px);
  overflow: hidden;
  border-radius: var(--raggio);
  color: var(--inchiostro);
  transform-origin: 50% 0;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
  --ombra: 0;
}
.servizio:last-child { margin-bottom: 0; }
.servizio::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--ombra); pointer-events: none; }
.servizio-0 { background: var(--bianco); }
.servizio-1 { background: var(--arancio); }
/* on a light sheet the first kind of card is ink, so it stands off the page */
.chiaro .servizio-0 { background: var(--inchiostro); color: var(--bianco); }
.chiaro .servizio-0 li { border-top-color: rgba(255, 255, 255, 0.16); }
.servizio h3 { align-self: start; font: 700 clamp(44px, 6.2vw, 108px)/0.9 var(--titolo); letter-spacing: -0.045em; text-wrap: balance; }
.servizio-corpo { align-self: end; }
.servizio-testo { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; }
.servizio ul { margin-top: 26px; }
.servizio li { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(17, 17, 19, 0.16); font-size: 15px; }
.servizio li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--arancio); transform: translateY(-2px); }
.servizio-1 li::before { background: var(--inchiostro); }

/* ---------- products: a rail that slides sideways on wide screens, a grid otherwise ---------- */
.lavori { padding-top: clamp(110px, 11vw, 160px); }
.galleria-binario { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: clamp(48px, 5vw, 72px) var(--margine); padding: 0 var(--margine); }
.galleria-testa { grid-column: 1 / -1; }
.orizzontale .galleria { height: 100vh; height: 100svh; overflow: hidden; }
.orizzontale .galleria-binario { display: flex; align-items: center; gap: clamp(28px, 3vw, 48px); width: max-content; height: 100%; padding: 0 var(--margine); }
.orizzontale .galleria-testa { flex: 0 0 min(600px, 40vw); margin-right: 3vw; }
.orizzontale .prodotto { flex: 0 0 clamp(460px, 46vw, 760px); }
.prodotto { display: flex; flex-direction: column; text-decoration: none; }
.prodotto-foto { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--raggio); background: var(--grafite); box-shadow: 0 0 0 1px var(--linea); }
.prodotto-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--curva); }
.orizzontale .prodotto-foto img { width: 108%; max-width: none; margin-left: -4%; }
@media (hover: hover) { .prodotto:hover .prodotto-foto img { transform: scale(1.05); } }
.prodotto-riga { display: flex; justify-content: flex-end; gap: 16px; margin-top: 20px; color: var(--testo-3); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.prodotto-dominio { text-transform: none; letter-spacing: 0.02em; transition: color 0.2s; }
.prodotto:hover .prodotto-dominio { color: var(--testo-1); }
.prodotto-nome { margin-top: 10px; font: 700 clamp(30px, 3vw, 48px)/0.95 var(--titolo); letter-spacing: -0.035em; text-transform: uppercase; }
.prodotto-testo { margin-top: 12px; color: var(--testo-2); font-size: 15px; line-height: 1.55; }
.prodotto-tag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.prodotto-tag span { padding: 6px 11px; border: 1px solid var(--linea); border-radius: 999px; color: var(--testo-2); font-size: 12px; line-height: 1; }

/* everything else, next to the moon lamp */
.altri { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: start; padding: clamp(110px, 12vw, 190px) var(--margine) clamp(120px, 12vw, 200px); }
.altri-foto { position: sticky; top: 100px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--raggio); background: var(--grafite); }
.altri-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.altri-testo h3 { font: 700 clamp(40px, 5.4vw, 90px)/0.92 var(--titolo); letter-spacing: -0.04em; }
.altri-testo > p { margin-top: 18px; color: var(--testo-2); font-size: 18px; }
.indice { margin-top: clamp(32px, 3vw, 48px); border-bottom: 1px solid var(--linea); }
.indice li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) auto;
  gap: 20px;
  align-items: baseline;
  padding: 20px 14px;
  margin: 0 -14px;
  overflow: hidden;
  border-top: 1px solid var(--linea);
  isolation: isolate;
  transition: color 0.35s var(--curva);
}
.indice li::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--arancio); transform: translateY(101%); transition: transform 0.45s var(--curva); }
@media (hover: hover) {
  .indice li:hover { color: var(--inchiostro); }
  .indice li:hover::before { transform: none; }
  .indice li:hover .indice-cosa, .indice li:hover .indice-tipo { color: var(--inchiostro); border-color: rgba(17, 17, 19, 0.4); }
}
.indice-nome { font: 600 clamp(19px, 1.7vw, 26px)/1.1 var(--titolo); letter-spacing: -0.02em; }
.indice-cosa { color: var(--testo-2); font-size: 15px; line-height: 1.5; transition: color 0.35s; }
.indice-tipo { justify-self: end; padding: 6px 11px; border: 1px solid var(--linea); border-radius: 999px; color: var(--testo-2); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; text-transform: uppercase; white-space: nowrap; transition: color 0.35s, border-color 0.35s; }

/* ---------- Lavder: the mark on top, centred, then lavder.com large, in the page's language ---------- */
.lavder {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(110px, 11vw, 180px) var(--margine) clamp(120px, 12vw, 200px);
  text-align: center;
}
.lavder-testo { display: flex; flex-direction: column; align-items: center; max-width: 1000px; }
.lavder-marchio { width: auto; height: clamp(72px, 8vw, 120px); margin-bottom: clamp(28px, 3vw, 44px); }
.lavder-testo p { margin: 24px 0 32px; color: var(--testo-2); font-size: clamp(17px, 1.3vw, 21px); }
.browser {
  display: block;
  width: 100%;
  max-width: 1320px;
  margin-top: clamp(56px, 6vw, 100px);
  overflow: hidden;
  border-radius: 16px;
  background: var(--bianco);
  box-shadow: 0 50px 100px -40px rgba(17, 17, 19, 0.45), 0 0 0 1px var(--linea);
  text-decoration: none;
  will-change: transform;
}
.browser-barra { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid rgba(17, 17, 19, 0.08); background: #f6f6f5; }
.browser-barra i { width: 10px; height: 10px; border-radius: 50%; background: #d9d9d6; }
.browser-barra span { margin: 0 auto; padding: 4px 40px; border-radius: 6px; background: #ececea; color: #55555a; font-size: 12px; font-weight: 500; }

/* ---------- certificates: the Anthropic ones open like a fan, the list and the badges below ---------- */
.certificati { padding: clamp(110px, 11vw, 180px) var(--margine) clamp(110px, 11vw, 170px); }
.ventaglio {
  position: relative;
  height: calc(var(--carta) * 1.75);
  margin-top: clamp(40px, 5vw, 80px);
  --carta: clamp(160px, 20vw, 300px);
  --passo: 3deg;
  --apertura: 1;
}
.cert {
  position: absolute;
  left: 50%;
  bottom: calc(var(--carta) * 0.62);
  width: var(--carta);
  margin-left: calc(var(--carta) / -2);
  aspect-ratio: 660 / 510;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bianco);
  box-shadow: 0 18px 40px -16px rgba(17, 17, 19, 0.45), 0 0 0 1px rgba(17, 17, 19, 0.08);
  transform-origin: 50% 300%;
  transform: rotate(calc((var(--k) - (var(--n) - 1) / 2) * var(--passo) * var(--apertura) + var(--spinta, 0deg))) translateY(var(--su, 0px));
  transition: transform 0.5s var(--curva), box-shadow 0.3s;
}
.cert img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ventaglio { touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.cert { -webkit-touch-callout: none; }
.cert.scelta { --su: -14px; }
@media (hover: hover) {
  .cert.scelta { --su: -14px; box-shadow: 0 30px 60px -18px rgba(17, 17, 19, 0.55), 0 0 0 1px rgba(17, 17, 19, 0.08); }
}
.cert-elenchi { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 90px); margin-top: clamp(48px, 5vw, 80px); }
.cert-elenchi h3 { font: 600 clamp(22px, 2vw, 30px)/1.1 var(--titolo); letter-spacing: -0.02em; }
.cert-lista { margin-top: 18px; columns: 2; column-gap: 32px; }
.cert-lista li { break-inside: avoid; border-top: 1px solid var(--linea); }
.cert-lista a { display: block; padding: 11px 0; font-size: 15px; line-height: 1.4; text-decoration: none; transition: color 0.2s; }
.cert-lista a:hover { color: var(--arancio); }
.badge { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.badge li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 124px; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; }
.badge a { display: flex; flex-direction: column; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.badge img { width: 124px; height: 124px; transition: transform 0.4s var(--curva); }
@media (hover: hover) { .badge a:hover img { transform: translateY(-6px) rotate(-4deg); } }

/* ---------- the window a certificate opens in, in the middle of the page ---------- */
.finestra { width: min(92vw, 1100px, calc((92vh - 64px) * 1.294)); max-width: none; max-height: none; padding: 0; border: 0; overflow: visible; background: transparent; color: var(--bianco); }
.finestra.quadrata { width: min(80vw, 460px, calc(92vh - 64px)); }
.finestra::backdrop { background: rgba(17, 17, 19, 0.84); backdrop-filter: blur(6px); }
.finestra figure { margin: 0; }
.finestra img { width: 100%; height: auto; border-radius: 12px; background: var(--bianco); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.finestra.quadrata img { border-radius: 0; background: none; box-shadow: none; }
.finestra figcaption { margin-top: 16px; font-size: 15px; font-weight: 600; text-align: center; }
.finestra-chiudi { position: absolute; top: -20px; right: -20px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bianco); color: var(--inchiostro); cursor: pointer; }
.finestra-chiudi svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.finestra[open] { animation: finestra-apri 0.45s var(--curva); }
.finestra[open]::backdrop { animation: finestra-fondo 0.45s ease; }
@keyframes finestra-apri { from { opacity: 0; transform: translateY(18px) scale(0.97); } }
@keyframes finestra-fondo { from { opacity: 0; } }

/* ---------- the past year: one finished thing per line, oldest first, no dates ---------- */
.percorso { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); padding: clamp(110px, 11vw, 180px) var(--margine) clamp(120px, 12vw, 200px); }
.percorso-testa { position: sticky; top: 110px; align-self: start; }
.percorso-lista { position: relative; padding-left: 44px; --riempi: 1; }
.percorso-lista::before, .percorso-lista::after { content: ""; position: absolute; top: 6px; bottom: 6px; left: 7px; width: 2px; border-radius: 2px; }
.percorso-lista::before { background: var(--linea); }
.percorso-lista::after { background: var(--arancio); transform: scaleY(var(--riempi)); transform-origin: top; }
.tappa { position: relative; padding: clamp(15px, 1.4vw, 21px) 0; border-bottom: 1px solid var(--linea); font: 600 clamp(19px, 1.65vw, 26px)/1.22 var(--titolo); letter-spacing: -0.02em; text-wrap: pretty; transition: opacity 0.5s var(--curva); }
.tappa::before { content: ""; position: absolute; top: calc(clamp(15px, 1.4vw, 21px) + 0.61em - 8px); left: -44px; width: 16px; height: 16px; border: 2px solid var(--arancio); border-radius: 50%; background: var(--arancio); transition: background-color 0.4s, transform 0.4s var(--curva); }
.moto .tappa { opacity: 0.3; }
.moto .tappa::before { background: var(--fondo); transform: scale(0.75); }
.moto .tappa.attiva { opacity: 1; }
.moto .tappa.attiva::before { background: var(--arancio); transform: none; }

/* ---------- how I work: the checks a project passes before it ships, run like a test suite ---------- */
.metodo { padding: clamp(110px, 11vw, 180px) var(--margine) clamp(140px, 13vw, 210px); }
.terminale { margin-top: clamp(48px, 5vw, 80px); overflow: hidden; border-radius: 18px; background: var(--inchiostro); color: #e9e9e6; box-shadow: 0 50px 100px -40px rgba(17, 17, 19, 0.45); font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }
.terminale-barra { display: flex; gap: 7px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.terminale-barra i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.terminale-dentro { padding: clamp(22px, 3vw, 44px) clamp(20px, 3.4vw, 52px) clamp(26px, 3.4vw, 48px); font-size: clamp(14px, 1.4vw, 21px); line-height: 1.55; }
.terminale-comando { color: var(--bianco); }
.terminale-segno { color: var(--arancio); }
.terminale-scrive::after { content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 3px; background: currentColor; vertical-align: -0.18em; animation: lampeggia 1.1s steps(1) infinite; }
@keyframes lampeggia { 50% { opacity: 0; } }
.terminale-righe { display: grid; gap: 1.05em; margin: 1.5em 0; }
.terminale-righe li { display: grid; grid-template-columns: 1.7em minmax(0, 1fr); }
.spunta { display: inline-block; color: #5fd38d; font-weight: 700; }
.terminale-righe strong { display: block; color: var(--bianco); font-weight: 600; }
.terminale-nota { display: block; color: rgba(255, 255, 255, 0.55); }
.terminale-fine { color: #5fd38d; font-weight: 600; }

/* ---------- the tools, on an orange band ---------- */
.strumenti { position: relative; z-index: 3; display: grid; gap: 4px; margin: -3vw -3vw 0; padding: clamp(20px, 2.4vw, 34px) 0; overflow: hidden; background: var(--arancio); color: var(--inchiostro); transform: rotate(-1.6deg); }
.nastro { overflow: hidden; white-space: nowrap; }
.nastro-dentro { display: flex; width: max-content; animation: scorre 48s linear infinite; }
.nastro + .nastro .nastro-dentro { animation-direction: reverse; }
.nastro-giro { display: flex; }
.nastro-giro span { display: inline-flex; align-items: center; gap: 0.45em; padding-right: 0.45em; font: 700 clamp(34px, 4.6vw, 78px)/1.05 var(--titolo); letter-spacing: -0.035em; text-transform: uppercase; }
.nastro-giro span::after { content: ""; width: 0.2em; height: 0.2em; border-radius: 50%; background: currentColor; }
.nastro + .nastro .nastro-giro span { color: transparent; -webkit-text-stroke: 1.5px var(--inchiostro); }
.nastro + .nastro .nastro-giro span::after { background: var(--inchiostro); }
@keyframes scorre { to { transform: translateX(-50%); } }

/* ---------- contact ---------- */
.pagina > .contatti {
  margin-top: -4vw;
  padding: calc(clamp(110px, 12vw, 190px) + 4vw) var(--margine) 0;
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 118%, rgba(248, 112, 22, 0.32), rgba(248, 112, 22, 0) 70%), var(--nero);
}
.contatti-testo { font: 600 clamp(24px, 2.6vw, 42px)/1.18 var(--titolo); letter-spacing: -0.02em; }
.contatti-grande { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 120px); color: var(--arancio); font: 700 17vw/0.84 var(--titolo); letter-spacing: -0.05em; text-decoration: none; text-transform: uppercase; white-space: nowrap; transition: color 0.3s; }
.contatti-grande .w { display: inline-block; }
@media (hover: hover) { .contatti-grande:hover { color: var(--arancio-chiaro); } }
.contatti-riga { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; margin-top: clamp(48px, 5vw, 80px); padding: 26px 0; border-top: 1px solid var(--linea); }
.contatti-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.contatti-mail a { font: 600 clamp(17px, 1.5vw, 22px)/1.2 var(--titolo); text-decoration: none; overflow-wrap: anywhere; }
.contatti-mail a:hover { color: var(--arancio); }
.copia { padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: transparent; font: 600 12px/1 var(--testo); letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; transition: background-color 0.25s, color 0.25s, border-color 0.25s; }
.copia:hover { background: var(--bianco); border-color: var(--bianco); color: var(--inchiostro); }
.contatti-link { display: flex; align-items: center; gap: 24px; font: 600 13px/1 var(--testo); letter-spacing: 0.04em; }
.contatti-link > a { text-decoration: none; }
.piede { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding: 22px 0 30px; border-top: 1px solid var(--linea); color: var(--testo-3); font-size: 12px; line-height: 1.5; }
.piede-nome { color: var(--bianco); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.su { margin-left: auto; color: var(--bianco); font-weight: 600; text-decoration: none; }
.su:hover { color: var(--arancio); }
.piede-riga { flex: 0 0 100%; }

/* ---------- 404 ---------- */
.perso { display: grid; place-content: center; justify-items: center; gap: 28px; min-height: 100vh; min-height: 100svh; padding: var(--margine); text-align: center; }
.perso h1 { color: var(--arancio); font: 700 clamp(48px, 11vw, 160px)/0.9 var(--titolo); letter-spacing: -0.045em; text-transform: uppercase; }
.perso .bottone.pieno { border-color: var(--bianco); background: var(--bianco); color: var(--inchiostro); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .eroe { min-height: 520px; }
  .eroe-nome { top: 84px; }
  .eroe-figura { height: 76%; }
  .eroe-fondo { flex-direction: column; align-items: stretch; gap: 16px; margin: 0 calc(-1 * var(--margine)) calc(-1 * var(--margine)); padding: 70px var(--margine) var(--margine); background: linear-gradient(to bottom, rgba(248, 112, 22, 0), var(--arancio) 38%); }
  .eroe-sub { width: auto; }
  .eroe-azioni { justify-content: flex-start; }
  .chi-griglia { grid-template-columns: minmax(0, 1fr); }
  .chi-foto { max-width: 460px; }
  .competenze { grid-template-columns: minmax(0, 1fr); }
  .competenze > h2 { position: relative; top: 0; }
  .servizio { top: calc(76px + var(--i) * 10px); grid-template-columns: minmax(0, 1fr); min-height: 0; margin-bottom: 4vh; }
  .altri { grid-template-columns: minmax(0, 1fr); }
  .altri-foto { position: relative; top: 0; max-width: 420px; }
  .indice li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .indice-tipo { justify-self: start; order: -1; margin-bottom: 4px; }
  .ventaglio { --carta: 40vw; --passo: 2.4deg; }
  .cert-elenchi { grid-template-columns: minmax(0, 1fr); }
  .cert-lista { columns: 1; }
  .finestra-chiudi { top: -56px; right: 0; }
  .percorso { grid-template-columns: minmax(0, 1fr); }
  .percorso-testa { position: relative; top: 0; }
  .su { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
