/* ==========================================================================
   GIOVANNI ROMITO
   La pagina vive sopra un mondo 3D di particelle (js/mondo3d.js). Il testo
   sta in una colonna, la forma occupa l'altra meta' dello schermo. Il colore
   d'accento segue la forma in scena: oro per il nome, champagne per il
   Matèn, arancio per L.O.O.T., ciano per Sorso, smeraldo per Genesys.
   Le righe dei progetti side portano il colore del loro progetto.
   ========================================================================== */

/* I caratteri (dal 14/11/2026): Unbounded per i titoli, largo e tondo; Onest per il testo.
   Sono nella cartella font/, divisi in latino e latino esteso: il secondo si scarica solo se serve. */
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../font/unbounded.woff2") format("woff2");
  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: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../font/unbounded-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/onest.woff2") format("woff2");
  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: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../font/onest-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Martian Mono";
  font-style: normal;
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
  src: url("../font/martian-mono.woff2") format("woff2");
}

/* Registrato, cosi' il cambio di colore tra una forma e l'altra sfuma */
@property --accento {
  syntax: "<color>";
  inherits: true;
  initial-value: #FFB21E;
}

:root {
  color-scheme: dark;
  --nero: #040407;
  --nero-2: #0A0A11;
  --testo: #F3F2F8;
  --testo-2: #B4B3C4;
  --testo-3: #85849A;
  --linea: rgba(255, 255, 255, 0.1);
  --linea-forte: rgba(255, 255, 255, 0.2);
  --accento: #FFB21E;
  --su-accento: #0B0A06;

  --f-testo: "Onest", system-ui, sans-serif;
  --f-titoli: "Unbounded", "Onest", system-ui, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;

  --margine: clamp(18px, 4.4vw, 64px);
  --largo: 1400px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --molla: cubic-bezier(0.34, 1.5, 0.64, 1);
  --z-testata: 50;
  --z-menu: 60;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
  background: var(--nero);
  scrollbar-color: #2A2A38 var(--nero);
  scrollbar-width: thin;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

body {
  margin: 0;
  min-width: 320px;
  /* trasparente: dietro c'e' il canvas del mondo 3D */
  background: transparent;
  color: var(--testo);
  font-family: var(--f-testo);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

::selection { background: var(--accento); color: var(--su-accento); }

img, svg, canvas { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
strong, b { font-weight: 650; color: var(--testo); }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accento); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nascosto {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.salta {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 12px 18px; border-radius: 999px;
  background: var(--accento); color: var(--su-accento); font-weight: 650;
  transform: translateY(-160%); transition: transform 0.3s var(--ease);
}
.salta:focus { transform: none; }

/* ---------- Il mondo 3D ---------- */
.mondo {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
}
/* Senza WebGL resta un cielo scuro con una luce sola */
.senza-3d body {
  background:
    radial-gradient(60vw 60vh at 75% 30%, rgba(255, 178, 30, 0.1), transparent 70%),
    var(--nero) fixed;
}

main { position: relative; }

.gabbia {
  width: min(100% - 2 * var(--margine), var(--largo));
  margin-inline: auto;
}

/* La colonna di testo sta dalla parte opposta alla forma 3D */
.colonna { max-width: 640px; }
@media (min-width: 960px) {
  [data-lato="destra"] .colonna { margin-right: auto; width: 46%; }
  [data-lato="sinistra"] .colonna { margin-left: auto; width: 46%; }
}

/* Leggibilita' sopra le particelle: un'ombra larga e morbida, non un riquadro */
.colonna, .apertura-testo, .contatti .gabbia, .progetti-testa {
  text-shadow: 0 1px 18px rgba(4, 4, 7, 0.9), 0 0 2px rgba(4, 4, 7, 0.6);
}

.sezione { padding-block: clamp(120px, 16vw, 240px); }

/* ---------- Titoli ---------- */
.titolo {
  font-family: var(--f-titoli);
  font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.titolo em {
  display: inline-block;
  font-style: normal;
  font-weight: 300;
  font-stretch: 100%;
  letter-spacing: -0.03em;
  color: var(--accento);
  padding: 0 0.04em 0.08em 0;
}
.lead {
  max-width: 36ch;
  margin-top: 28px;
  font-size: clamp(1.18rem, 1rem + 0.8vw, 1.55rem);
  line-height: 1.4;
  color: var(--testo-2);
  text-wrap: pretty;
}

/* ---------- Bottoni: pillole ---------- */
.bottone {
  --b-fondo: rgba(16, 16, 24, 0.62);
  --b-testo: var(--testo);
  --b-bordo: var(--linea-forte);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--b-bordo);
  border-radius: 999px;
  background: var(--b-fondo);
  color: var(--b-testo);
  font-size: 0.98rem;
  font-weight: 620;
  letter-spacing: -0.005em;
  line-height: 1.1;
  text-decoration: none;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.2s var(--ease), box-shadow 0.5s var(--ease);
}
.bottone svg { width: 18px; height: 18px; fill: currentColor; flex: none; transition: transform 0.5s var(--molla); }
/* Al passaggio il colore sale dal basso come un liquido */
.bottone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accento);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform 0.55s var(--ease);
}
.bottone:hover { border-color: var(--accento); color: var(--su-accento); }
.bottone:hover::before { transform: none; }
.bottone:hover svg { transform: translateX(3px) rotate(-8deg); }
.bottone:active { transform: scale(0.97); }

.bottone.pieno {
  --b-fondo: var(--accento);
  --b-testo: var(--su-accento);
  --b-bordo: transparent;
  box-shadow: 0 10px 40px -12px var(--accento);
}
.bottone.pieno::before { background: #FFFFFF; }
.bottone.pieno:hover { color: #0B0A0E; box-shadow: 0 14px 50px -10px var(--accento); }

/* ---------- Testata ---------- */
.testata {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-testata);
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  height: 68px;
  padding: env(safe-area-inset-top) var(--margine) 0;
  transition: background-color 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}
.testata.staccata {
  background: rgba(4, 4, 7, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--linea);
}
.marchio {
  margin-right: auto;
  font-family: var(--f-titoli);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.testata-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(10, 10, 17, 0.78);
}
.testata-nav a {
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 540;
  color: var(--testo-2);
  text-decoration: none;
  transition: color 0.3s;
}
.testata-nav a:hover, .testata-nav a.attiva { color: var(--testo); }
/* La pillola che scivola sotto la voce attiva */
.testata-filo {
  position: absolute;
  top: 5px; bottom: 5px; left: 0;
  width: var(--fw, 0px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(var(--fx, 0px));
  opacity: 0;
  transition: transform 0.6s var(--molla), width 0.6s var(--ease), opacity 0.3s;
}
.testata-nav.ha-attiva .testata-filo { opacity: 1; }

.lingua {
  display: flex;
  padding: 4px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(10, 10, 17, 0.5);
}
.btn-lang {
  min-width: 40px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--testo-2);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.btn-lang.attiva { background: var(--testo); color: var(--nero); }
.btn-lang:not(.attiva):hover { color: var(--testo); }

.menu-apri, .menu-chiudi {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(10, 10, 17, 0.5);
  cursor: pointer;
}
.menu-apri svg, .menu-chiudi svg { width: 22px; height: 22px; fill: currentColor; }

.filo-lettura { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.filo-lettura i {
  display: block; height: 100%;
  background: linear-gradient(90deg, transparent, var(--accento));
  transform-origin: left;
  transform: scaleX(var(--letto, 0));
}

@media (min-width: 960px) {
  .testata { height: 80px; }
  .testata-nav { display: flex; }
  .menu-apri { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--margine) 48px;
  background: rgba(4, 4, 7, 0.86);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--linea);
  font-family: var(--f-titoli);
  font-size: clamp(1.8rem, 8.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-decoration: none;
}
.menu nav a:hover { color: var(--accento); }
.menu-chiudi { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: var(--margine); }
@media (prefers-reduced-motion: no-preference) {
  .menu.aperto nav a { animation: entra-menu 0.8s var(--ease) both; }
  .menu.aperto nav a:nth-child(2) { animation-delay: 0.05s; }
  .menu.aperto nav a:nth-child(3) { animation-delay: 0.1s; }
  .menu.aperto nav a:nth-child(4) { animation-delay: 0.15s; }
  .menu.aperto nav a:nth-child(5) { animation-delay: 0.2s; }
}
@keyframes entra-menu {
  from { opacity: 0; transform: translateY(40px) rotate(2deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- Entrate ----------
   Il testo arriva dalla profondita': sfocato e piu' in basso, poi a fuoco.
   Visibile di base, si arma solo se parte il JavaScript. */
.js .entra { opacity: 0; transform: translateY(36px); }
@media (hover: hover) and (pointer: fine) {
  .js .entra:not(.dentro) { filter: blur(10px); }
}
.js .entra.dentro {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: var(--ritardo, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .js .entra { opacity: 1; transform: none; filter: none; }
}

/* ==========================================================================
   APERTURA
   ========================================================================== */
.apertura {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: clamp(36px, 8vh, 96px);
}
/* Con il 3D il nome lo disegnano le particelle */
.apertura-nome {
  position: absolute;
  top: 22vh;
  left: var(--margine);
  right: var(--margine);
  display: flex;
  flex-direction: column;
  font-family: var(--f-titoli);
  font-size: clamp(2.6rem, 10.4vw, 10.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}
.apertura-nome span:last-child { color: var(--accento); }
.con-3d .apertura-nome {
  width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.apertura-testo {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.apertura-frase {
  max-width: 22ch;
  font-size: clamp(1.45rem, 1rem + 2vw, 2.5rem);
  font-weight: 480;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.apertura-frase b { color: var(--accento); font-weight: 760; }
.apertura-azioni { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .apertura-azioni { width: 100%; }
  .apertura-azioni .bottone { flex: 1 1 100%; justify-content: space-between; }
}
.js .apertura-frase, .js .apertura-azioni {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(8px);
  transition: opacity 1.1s var(--ease) 0.9s, transform 1.3s var(--ease) 0.9s, filter 1.1s var(--ease) 0.9s;
}
.js .apertura-azioni { transition-delay: 1.05s; }
@media (hover: none) {
  .js .apertura-frase, .js .apertura-azioni { filter: none; }
}
.js.pronta .apertura-frase, .js.pronta .apertura-azioni { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .js .apertura-frase, .js .apertura-azioni { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ==========================================================================
   CHI SONO
   ========================================================================== */
.chi-colonna { display: grid; gap: 40px; }
.chi-lead {
  font-size: clamp(1.32rem, 1rem + 1.2vw, 1.95rem);
  font-weight: 430;
  line-height: 1.3;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}
.chi-lead strong { color: var(--accento); font-weight: 620; }
/* Il racconto: una colonna sola, compatta. Un capitolo alla volta e' acceso
   (bianco, con le parole chiave nel colore della forma in scena); gli altri
   restano come il testo normale. Il cursore a sinistra scivola sul capitolo
   acceso e si riempie finche' non tocca al prossimo. Senza script e' testo e basta. */
.chi-racconto { position: relative; display: grid; gap: 1.1em; color: var(--testo-2); }
.chi-capitolo { display: grid; gap: 1.1em; }
.chi-capitolo p { text-wrap: pretty; transition: color 0.6s var(--ease); }
.chi-capitolo:first-of-type { margin-bottom: 14px; }
.a-capitoli .chi-capitolo { cursor: default; }
.a-capitoli .chi-lead { color: var(--testo-2); }
.a-capitoli .chi-capitolo.a-fuoco p { color: var(--testo); }
.chi-capitolo strong { transition: color 0.6s var(--ease); }
.a-capitoli .chi-capitolo:not(.a-fuoco) .chi-lead strong { color: var(--testo); }
.a-capitoli .chi-capitolo.a-fuoco strong { color: var(--accento); }
.chi-cursore { display: none; }
.a-capitoli .chi-cursore {
  position: absolute;
  top: 0;
  left: -20px;
  display: block;
  width: 3px;
  height: var(--h, 0px);
  border-radius: 3px;
  background: var(--linea-forte);
  transform: translateY(var(--y, 0px));
  transition: transform 0.7s var(--ease), height 0.7s var(--ease);
  overflow: hidden;
}
.chi-cursore i { display: block; width: 100%; height: 100%; background: var(--accento); transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .chi-cursore i { transform: scaleY(0); }
  .a-capitoli.in-vista .chi-cursore i { animation: chi-tempo 6.5s linear forwards; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .a-capitoli:hover .chi-cursore i { animation-play-state: paused; }
}
@keyframes chi-tempo { to { transform: scaleY(1); } }
@media (max-width: 959px) {
  .a-capitoli .chi-cursore { left: -11px; width: 2px; }
}
.chi-cv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 32px;
  border-radius: 20px;
  background: rgba(8, 8, 13, 0.86);
}
.chi-cv h3 { font-family: var(--f-titoli); font-size: 1.28rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.chi-cv p { margin-top: 6px; color: var(--testo-2); }
.chi-cv-tasti { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) {
  .chi-cv { padding: 24px 20px; }
  .chi-cv-tasti { flex: 1 1 100%; }
  .chi-cv .bottone { flex: 1 1 100%; justify-content: space-between; }
}

/* ==========================================================================
   PROGETTI
   ========================================================================== */
/* Nel sito principale i progetti sono un indice: cinque righe, niente riquadri.
   Quella accesa prende il colore del suo progetto e accanto, nel mondo 3D,
   compare il suo logo di particelle: e' quella l'anteprima. Cambia da sola, o
   quando ci passi sopra. Lo stesso indice apre la pagina dei progetti. */
.anteprima { padding-block: clamp(96px, 10vw, 150px); }
.anteprima .colonna { display: grid; gap: 22px; justify-items: start; }
.anteprima .lead { margin-top: 0; }
.indice { display: grid; width: 100%; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--linea); text-shadow: none; }
.indice a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--linea);
  text-decoration: none;
  text-shadow: 0 1px 18px rgba(4, 4, 7, 0.9), 0 0 2px rgba(4, 4, 7, 0.6);
  transition: padding 0.5s var(--ease);
}
.indice b {
  font-family: var(--f-titoli);
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--testo-2);
  transition: color 0.5s var(--ease);
}
.indice span { grid-column: 1; font-size: 0.92rem; line-height: 1.4; color: var(--testo-3); transition: color 0.5s var(--ease); }
.indice svg { grid-column: 2; grid-row: 1 / 3; width: 22px; height: 22px; fill: var(--testo-3); opacity: 0; transform: translateX(-12px); transition: opacity 0.4s, transform 0.5s var(--molla), fill 0.4s; }
.indice a.accesa, .indice a:hover, .indice a:focus-visible { padding-left: 14px; }
.indice a.accesa b, .indice a:hover b, .indice a:focus-visible b { color: var(--accento); }
.indice a.accesa span, .indice a:hover span, .indice a:focus-visible span { color: var(--testo); }
.indice a.accesa svg, .indice a:hover svg, .indice a:focus-visible svg { opacity: 1; transform: none; fill: var(--accento); }
/* il filo di sopra si riempie finche' non tocca al progetto dopo */
.indice a::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 2px; background: var(--accento); transform: scaleX(0); transform-origin: left; }
.indice a.accesa::before { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .indice.gira a.accesa::before { animation: indice-tempo 4.2s linear both; }
}
@keyframes indice-tempo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.progetti { padding-bottom: 0; }
.progetti-testa {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
/* Invito a scorrere, senza scritte: in fondo alla sezione, lontano dal centro
   luminoso della galassia, una luce scende lungo un filo e finisce nella freccia. Porta al primo progetto anche col tocco o con la tastiera */
.progetti-testa { position: relative; }
.scorri {
  position: absolute;
  left: 50%;
  bottom: clamp(4px, 3vh, 32px);
  translate: -50% 0;
  display: inline-grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 14px;
  /* stacca dalle particelle che passano dietro */
  filter: drop-shadow(0 0 10px rgba(4, 4, 7, 0.95));
  color: var(--accento);
  text-decoration: none;
}
.scorri-filo {
  position: relative;
  width: 2px;
  height: clamp(56px, 7vw, 92px);
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.24));
}
.scorri-filo::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 42%;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--accento));
  transform: translateY(140%);
}
.scorri-tasto {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accento) 45%, transparent);
  background: rgba(10, 10, 17, 0.7);
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.scorri svg { width: 20px; height: 20px; fill: currentColor; transform: rotate(90deg); transition: transform 0.5s var(--molla); }
.scorri:hover .scorri-tasto, .scorri:focus-visible .scorri-tasto { border-color: var(--accento); background: color-mix(in srgb, var(--accento) 14%, rgba(10, 10, 17, 0.7)); }
.scorri:hover svg, .scorri:focus-visible svg { transform: rotate(90deg) translateX(4px); }
@media (prefers-reduced-motion: no-preference) {
  .scorri-filo::after { animation: scorri-luce 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .scorri svg { animation: scorri-freccia 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
  .scorri:hover svg { animation: none; }
}
@keyframes scorri-luce { from { transform: translateY(-100%); } to { transform: translateY(240%); } }
/* la freccia fa un passo in giu' quando la luce la raggiunge */
@keyframes scorri-freccia { 0%, 62%, 100% { transform: rotate(90deg); } 78% { transform: rotate(90deg) translateX(5px); } }

.progetto {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-block: clamp(96px, 12vw, 180px);
}
.progetto h3 {
  font-family: var(--f-titoli);
  font-size: clamp(1.75rem, 1rem + 2.7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.progetto h3 em { font-style: normal; font-weight: 300; color: var(--accento); }
.progetto .colonna { display: grid; gap: 28px; }

@keyframes respira { 50% { opacity: 0.3; } }

.progetto-desc { color: var(--testo-2); font-size: clamp(1.02rem, 0.96rem + 0.25vw, 1.12rem); text-wrap: pretty; }

.punti { display: grid; gap: 2px; }
.punti li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--linea);
  color: var(--testo-2);
  line-height: 1.5;
}
.punti li::before {
  content: "";
  position: absolute;
  left: 2px; top: calc(12px + 0.42em);
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--accento);
  box-shadow: 0 0 12px var(--accento);
}
.garanzie strong { display: block; color: var(--testo); font-weight: 650; }
.garanzie span { display: block; font-size: 0.94rem; }
.progetto .bottone { justify-self: start; }
@media (max-width: 560px) {
  .progetto .bottone { justify-self: stretch; white-space: normal; text-align: left; justify-content: space-between; }
}

/* Lo stack: una barra che si accende, larga quanto le percentuali vere */
.trama { display: grid; gap: 12px; padding-top: 8px; text-shadow: none; }
.trama-testa { display: flex; justify-content: space-between; gap: 16px; font-family: var(--f-mono); font-size: 0.66rem; color: var(--testo-3); }
.trama-barra { display: flex; gap: 3px; height: 8px; }
.trama-barra i {
  display: block;
  flex: 0 0 calc(var(--q, 20%) - 3px);
  border-radius: 999px;
  background: var(--c, var(--testo-3));
  box-shadow: 0 0 16px -2px var(--c, transparent);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .js .trama-barra i { transform: scaleX(0); transition: transform 1.3s var(--ease); }
  .js .trama.dentro .trama-barra i { transform: none; }
  .js .trama.dentro .trama-barra i:nth-child(2) { transition-delay: 0.1s; }
  .js .trama.dentro .trama-barra i:nth-child(3) { transition-delay: 0.2s; }
  .js .trama.dentro .trama-barra i:nth-child(4) { transition-delay: 0.3s; }
  .js .trama.dentro .trama-barra i:nth-child(5) { transition-delay: 0.4s; }
  .js .trama.dentro .trama-barra i:nth-child(6) { transition-delay: 0.5s; }
  .js .trama.dentro .trama-barra i:nth-child(7) { transition-delay: 0.6s; }
}
.trama-voci { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.86rem; color: var(--testo-2); }
.trama-voci li { display: inline-flex; align-items: center; gap: 8px; }
.trama-voci li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--testo-3)); }
.trama-voci em { font-style: normal; font-family: var(--f-mono); font-size: 0.7rem; color: var(--testo-3); }

/* ---------- Pannelli di vetro: le demo dal vivo ---------- */
.vetro {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015)), rgba(8, 8, 14, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  text-shadow: none;
}

/* Console di L.O.O.T. */
.loot-console { padding: 16px 18px 18px; font-family: var(--f-mono); font-size: 0.68rem; line-height: 1.6; color: #D9D2CB; }
.console-titolo { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #8E857C; }
.semafori { display: inline-flex; gap: 6px; }
.semafori i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.semafori i:nth-child(2) { background: #FEBC2E; }
.semafori i:nth-child(3) { background: #28C840; }
.loot-console .riga-log b { color: #3FB950; font-weight: 600; }
.loot-console .riga-log em { font-style: normal; color: #FF8C5A; }
.loot-console .riga-log i { font-style: normal; color: #8E857C; }
.loot-console .commento { color: #8E857C; }
.console-drop { margin: 10px 0; padding: 10px 12px; border: 1px solid rgba(255, 107, 43, 0.45); border-radius: 12px; background: rgba(255, 107, 43, 0.1); }
.drop-testa { display: flex; justify-content: space-between; color: #FF8C5A; font-weight: 600; }
.drop-testa span:last-child { color: #8E857C; font-weight: 400; }
.drop-titolo { color: #F4EEE8; font-weight: 600; }
.drop-prezzi { display: flex; justify-content: space-between; gap: 12px; }
.drop-prezzi b { color: #3FB950; }
.drop-prezzi s { color: #8E857C; }
.drop-notifica { color: #8E857C; }
.stato-log { display: flex; align-items: center; gap: 8px; color: #B9B0A6; }
.ping { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #3FB950; box-shadow: 0 0 10px #3FB950; }
@media (prefers-reduced-motion: no-preference) {
  .ping { animation: respira 1.6s ease-in-out infinite; }
  .js .loot-console .riga-log { opacity: 0; transform: translateY(6px); }
  .js .loot-console.acceso .riga-log { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.6s var(--ease); }
  .js .loot-console.acceso .riga-log:nth-of-type(3) { transition-delay: 0.8s; }
  .js .loot-console.acceso .riga-log:nth-of-type(4) { transition-delay: 1.4s; }
  .js .loot-console.acceso .riga-log:nth-of-type(5) { transition-delay: 2s; }
  .js .loot-console.acceso .console-drop { transition-delay: 2.9s; }
  .js .loot-console.acceso .stato-log { transition-delay: 3.8s; }
}

/* Il telefono di Sorso: copiato da sorsoapp.it (index.html, "VETRINA"),
   stesse misure, stessi colori, stesse animazioni. Il carattere e' quello di
   sistema, come sul sito di Sorso. */
.telefono-vetrina {
  --glow: #7BF0FF;
  --ink: #04303D;
  --fondo-tel: #02171F;
  --abisso: #041D27;
  --schiuma: #EAFBFF;
  --mist: #9FCBD8;
  --mist-soft: rgba(159, 203, 216, 0.78);
  --water-grad: linear-gradient(180deg, #0A7A8F 0%, #0A5F7C 50%, #073F5B 100%);
  --onda-a: #0A7A8F;
  --onda-accent: rgba(123, 240, 255, 0.34);
  --card-bg: rgba(11, 42, 52, 0.91);
  --card-border: rgba(123, 240, 255, 0.18);
  --card-hover-border: rgba(123, 240, 255, 0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  padding: 18px 12px;
  perspective: 1100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-shadow: none;
}
.alone-acqua {
  position: absolute;
  inset: -8% -6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 74%);
  opacity: 0.2;
  pointer-events: none;
}
.mock-telefono {
  position: relative;
  z-index: 1;
  width: 292px;
  max-width: 100%;
  padding: 11px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2A303C 0%, #12151D 45%, #262C37 100%);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.66), inset 0 0 0 1px var(--card-border);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s;
}
.mock-telefono:hover { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.75), inset 0 0 0 1px var(--card-hover-border); }
.tel-schermo {
  position: relative;
  height: 530px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--abisso) 0%, var(--fondo-tel) 100%);
}
/* tacca superiore */
.tel-schermo::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  z-index: 5;
  width: 100px; height: 21px;
  border-radius: 0 0 13px 13px;
  background: #0A0C11;
  transform: translateX(-50%);
}
.tel-acqua {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  height: var(--livello, 0%);
  background: var(--water-grad);
  transition: height 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
/* L'onda e' larga il doppio e scorre di meta': max-width: none, altrimenti la
   regola generale sugli svg la taglia e meta' dell'acqua resta piatta */
.tel-onda {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 0;
  display: block;
  width: 200%;
  max-width: none;
  height: 22px;
}
.tel-onda path { fill: var(--onda-a); }
.onda-2 { height: 18px; opacity: 0.65; }
.onda-2 path { fill: var(--onda-accent); }
.onda-1 { animation: onda-scorri 7s linear infinite; }
.onda-2 { animation: onda-scorri 4.4s linear infinite reverse; }
.telefono-vetrina:not(.in-vista) .tel-onda { animation-play-state: paused; }
@keyframes onda-scorri {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tel-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 36px 18px 20px;
  color: var(--schiuma);
}
.tel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tel-marchio { font-size: 13px; font-weight: 800; letter-spacing: 2.5px; color: var(--schiuma); }
.tel-data { margin-top: 3px; font-size: 11px; color: var(--mist-soft); }
.tel-goccia {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  background: var(--card-bg);
}
.tel-goccia svg { width: 12px; height: 12px; fill: var(--glow); }
.tel-numerone { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.tel-numerone b {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: var(--schiuma);
}
.tel-numerone span { font-size: 16px; font-weight: 600; color: var(--mist-soft); }
.tel-conta { margin-top: 8px; font-size: 13px; color: var(--mist); }
.tel-bicchieri { display: flex; gap: 5px; margin-top: 22px; }
.tel-bicchieri span {
  width: 14px; height: 18px;
  border: 1.5px solid var(--card-border);
  border-radius: 2px 2px 5px 5px;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.tel-bicchieri span.pieno {
  background: linear-gradient(180deg, var(--glow), var(--onda-a));
  border-color: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}
.tel-obiettivo {
  margin-top: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--mist-soft);
}
.tel-pulsantone {
  margin-top: auto;
  padding: 13.5px;
  border: none;
  border-radius: 9999px;
  background: var(--schiuma);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 750;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.tel-pulsantone:hover { transform: scale(1.02); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32); }
.tel-pulsantone.premuto { animation: tel-premi 0.45s ease; }
@keyframes tel-premi {
  50% { transform: scale(0.955); box-shadow: 0 4px 12px var(--glow); }
}
.tel-scorciatoie { display: flex; gap: 7px; margin-top: 11px; }
.tel-scorciatoie button {
  flex: 1;
  padding: 6.5px 0;
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  background: var(--card-bg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--schiuma);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tel-scorciatoie button:hover { background: var(--card-hover-border); border-color: var(--glow); color: var(--schiuma); }

@media (max-width: 480px) {
  .telefono-vetrina { justify-self: center; }
  .mock-telefono { width: 260px; padding: 9px; border-radius: 36px; }
  .tel-schermo { height: 470px; border-radius: 27px; }
  .tel-ui { padding: 30px 16px 16px; }
  .tel-numerone b { font-size: 44px; }
  .tel-bicchieri span { width: 12px; height: 16px; }
}
@media (max-width: 380px) {
  .mock-telefono { width: 100%; max-width: 240px; padding: 8px; border-radius: 32px; }
  .tel-schermo { height: 430px; border-radius: 24px; }
  .tel-ui { padding: 28px 14px 14px; }
  .tel-numerone b { font-size: 38px; }
  .tel-bicchieri span { width: 11px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .onda-1, .onda-2 { animation: none; }
  .tel-pulsantone.premuto { animation: none; }
}

.sorso-plus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; color: #F5E6BF; }
.plus { padding: 4px 10px; border-radius: 999px; background: linear-gradient(180deg, #F7D27A, #E0A92E); color: #2A1D00; font-weight: 800; font-size: 0.7rem; letter-spacing: 0.12em; text-shadow: none; }
.sorso-plus a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #F2C14E; font-weight: 620; }
.sorso-plus a svg { width: 16px; height: 16px; fill: currentColor; }

/* Il lettore di Movida */
.movida-player { display: grid; gap: 14px; padding: 18px; color: #E6F5EC; }
.pm-testa, .pm-piede { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-family: var(--f-mono); font-size: 0.62rem; color: #8FB3A0; }
.pm-live { display: inline-flex; align-items: center; gap: 8px; color: #52E094; }
.pm-live i { width: 7px; height: 7px; border-radius: 50%; background: #52E094; box-shadow: 0 0 10px #52E094; }
.pm-brano { display: flex; align-items: center; gap: 14px; }
.pm-brano img { width: 64px; height: 64px; flex: none; border-radius: 14px; }
.pm-ora { font-family: var(--f-mono); font-size: 0.58rem; color: #8FB3A0; }
.pm-titolo { font-size: 1.35rem; font-weight: 780; line-height: 1.05; letter-spacing: -0.025em; color: #FFFFFF; }
.pm-titolo em { font-weight: 300; color: #52E094; }
.pm-artisti { font-size: 0.86rem; color: #C5DDD0; }
.pm-richiesta { font-family: var(--f-mono); font-size: 0.6rem; color: #8B93F8; }
.pm-onda { display: flex; align-items: center; gap: 3px; height: 40px; }
.pm-onda i { flex: 1; height: 30%; border-radius: 999px; background: linear-gradient(180deg, #52E094, #5865F2); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .pm-onda i { animation: barra 0.47s ease-in-out infinite alternate; }
  .pm-onda i:nth-child(3n) { animation-duration: 0.61s; animation-delay: -0.2s; }
  .pm-onda i:nth-child(3n + 1) { animation-duration: 0.39s; animation-delay: -0.1s; }
  .pm-onda i:nth-child(4n) { animation-duration: 0.53s; animation-delay: -0.33s; }
  .pm-onda i:nth-child(5n) { animation-duration: 0.71s; }
}
.movida-player:not(.in-vista) .pm-onda i { animation-play-state: paused; }
@keyframes barra { from { transform: scaleY(0.35); } to { transform: scaleY(3); } }
.pm-avanzamento { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 0.62rem; color: #8FB3A0; font-variant-numeric: tabular-nums; }
.pm-avanzamento i { position: relative; flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.pm-avanzamento b { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #52E094, #5865F2); transform-origin: left; transform: scaleX(var(--p, 0.48)); }
.pm-piede strong { color: #E6F5EC; font-weight: 600; }
.pm-piede code { font-family: var(--f-mono); color: #52E094; }

/* Il mixer di Mixbar: tre cursori veri */
/* Genesys Tools: il Mac in piccolo, come sul sito dell'app. Una barra dei menu,
   la tavola del 1589 come sfondo, il pannello vero che scende dall'icona. */
.mac-tools { display: grid; gap: 12px; }
.gt-schermo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #0E2416;
  overflow: hidden;
  isolation: isolate;
}
.gt-tavola { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: brightness(0.94) contrast(1.04); }
.gt-barra {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 28px;
  padding: 0 12px;
  background: rgba(16, 18, 17, 0.78);
  color: #F4F4F2;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
}
.gt-menu, .gt-stato { display: flex; align-items: center; gap: 14px; min-width: 0; }
.gt-menu { overflow: hidden; }
.gt-menu b { font-weight: 700; color: #F4F4F2; }
.gt-stato { flex: none; gap: 12px; }
.gt-stato svg { width: 15px; height: 15px; }
.gt-segno { width: 14px; height: 16px; background: #FFFFFF; -webkit-mask: url("../img/tools/segno.png") center / contain no-repeat; mask: url("../img/tools/segno.png") center / contain no-repeat; }
.gt-pannello {
  position: absolute;
  top: 28px;
  right: 3%;
  z-index: 1;
  width: min(48%, 300px);
  height: auto;
  max-width: none;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
  transform-origin: 82% 0;
  opacity: 0;
  transform: translateY(-14px) scale(0.94);
  transition: opacity 0.32s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.mac-tools.acceso .gt-pannello.is-on { opacity: 1; transform: none; transition: opacity 0.42s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s; }
/* in principio la tavola e' buia, poi un cerchio di luce si apre dall'icona */
@media (prefers-reduced-motion: no-preference) {
  .js .gt-tavola { clip-path: circle(0% at 80% 3%); filter: brightness(0.2); transition: clip-path 2.4s var(--ease) 0.3s, filter 2.4s ease 0.3s; }
  .js .mac-tools.acceso .gt-tavola { clip-path: circle(150% at 80% 3%); filter: brightness(0.94) contrast(1.04); }
  .js .mac-tools.acceso .gt-pannello.is-on { transition-delay: 1.1s; }
  .js .mac-tools.acceso.visto .gt-pannello.is-on { transition-delay: 0.2s; }
}
.gt-tasti { display: flex; flex-wrap: wrap; gap: 6px; }
.gt-tasti button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: rgba(16, 16, 24, 0.62);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--testo-2);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
.gt-tasti button:hover { color: var(--testo); border-color: var(--linea-forte); }
.gt-tasti button[aria-pressed="true"] { border-color: var(--accento); background: var(--accento); color: var(--su-accento); }
.gt-dida { font-size: 0.8rem; line-height: 1.45; color: var(--testo-3); }
.pt-fatti { font-size: 0.95rem; line-height: 1.5; color: var(--testo-2); }
@media (max-width: 560px) {
  .gt-schermo { aspect-ratio: 1 / 1.05; }
  .gt-menu span:nth-child(n+3) { display: none; }
  .gt-pannello { width: 66%; }
  .gt-tasti button { flex: 1 1 calc(50% - 6px); padding: 0 10px; }
}
}
}

/* ==========================================================================
   MATÈN: la scena delle tre PWA
   La stessa di genesyslabs.online, vestita come matensushi.it: lacca nera,
   oro, Marcellus per il marchio e Jost per il resto. Immagini del sito vero,
   nomi e ordini inventati. Tutto in em: 1em = 1/60 della larghezza, cosi'
   la scena scala intera dentro la colonna.
   ========================================================================== */
@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../font/marcellus.woff2") format("woff2");
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../font/jost.woff2") format("woff2");
}

.maten {
  --lacca: #151515;
  --lacca-2: #1C1B1A;
  --lacca-3: #252321;
  --filo: #35312C;
  --oro: #E3C79C;
  --oro-2: #B58A5C;
  --carta: #F2EBDF;
  --nebbia: #AAA196;
}

.maten-vetrina { position: relative; padding-block: 6px 14px; text-shadow: none; }
.maten-scena { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 60 / 47.6; }
.mt-palco {
  position: absolute;
  inset: 0;
  font-size: 10px;
  font-size: calc(100cqw / 60);
  font-family: "Jost", var(--f-testo);
  color: var(--carta);
  line-height: 1.3;
}
.mt-palco::before {                    /* la luce calda dietro gli schermi */
  content: "";
  position: absolute;
  inset: -8% -6%;
  z-index: -1;
  background: radial-gradient(50% 46% at 55% 52%, rgba(227, 199, 156, 0.16), transparent 70%);
  pointer-events: none;
}
.mt-palco p { margin: 0; }
.mt-palco img { display: block; max-width: none; }
.mt-ic { display: block; flex: none; width: 1em; height: 1em; fill: currentColor; }

/* la profondita': ogni schermo segue il puntatore con la sua misura (--d) */
.mt-fin, .mt-telefono, .mt-targa {
  position: absolute;
  translate: calc(var(--px, 0) * var(--d, 0) * 1px) calc(var(--py, 0) * var(--d, 0) * 0.7px);
  transition: translate 0.9s var(--ease);
}

.mt-fin {
  border-radius: 1.1em;
  overflow: hidden;
  background: #121212;
  border: 0.1em solid rgba(227, 199, 156, 0.2);
  box-shadow: 0 2.6em 5em -1.8em rgba(0, 0, 0, 0.85), 0 0 0 0.08em rgba(0, 0, 0, 0.35);
}
.mt-barra {
  display: flex;
  align-items: center;
  gap: 1.1em;
  height: 2.5em;
  padding: 0 1.1em;
  background: var(--lacca-2);
  border-bottom: 0.08em solid #2C2926;
}
.mt-semafori { display: flex; gap: 0.45em; }
.mt-semafori i { width: 0.72em; height: 0.72em; border-radius: 50%; background: #3B3733; }
/* il pannello e' un'app installata: al posto dell'indirizzo c'e' il nome */
.mt-titolo-app { flex: 1; margin-right: 3.4em; text-align: center; font-size: 0.86em; font-weight: 500; color: var(--nebbia); letter-spacing: 0.02em; }
.mt-url {
  display: flex;
  align-items: center;
  gap: 0.55em;
  height: 1.6em;
  max-width: 19em;
  flex: 1;
  padding: 0 0.9em;
  border-radius: 99px;
  background: #121212;
  font: 500 0.9em/1 var(--f-mono);
  color: var(--nebbia);
  white-space: nowrap;
}
.mt-url .mt-ic { width: 0.85em; height: 0.85em; color: var(--oro-2); }

.mt-avatar {
  width: 2.3em;
  height: 2.3em;
  border-radius: 50%;
  object-fit: cover;
  border: 0.12em solid rgba(227, 199, 156, 0.5);
  background: var(--lacca);
}
.mt-wordmark { height: 1.55em; width: auto; }

/* 1 · il sito: matensushi.it */
.mt-sito { left: 0; top: 0; width: 38em; height: 23.8em; z-index: 1; }
.mt-sito-testata { display: flex; align-items: center; gap: 0.9em; height: 3.5em; padding: 0 1.2em; border-bottom: 0.08em solid #26231F; }
.mt-sito-testata .mt-wordmark { margin-left: -0.1em; }
.mt-nav { display: flex; gap: 1.1em; margin: 0 auto; font-size: 0.82em; color: var(--nebbia); white-space: nowrap; }
.mt-ordina { padding: 0.55em 1.15em; border-radius: 99px; background: var(--oro); color: var(--lacca); font-size: 0.86em; font-weight: 600; }
.mt-sito-hero { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 0.4em; padding: 0.7em 1.2em 0 1.4em; }
.mt-sito-testo { display: flex; flex-direction: column; gap: 1.1em; }
.mt-h1 { font: 400 2.25em/1.06 "Marcellus", Georgia, serif; color: var(--carta); letter-spacing: -0.005em; }
.mt-scelte { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.mt-scelta { display: block; padding: 0.75em 0.7em 0.7em; border-radius: 0.9em; background: var(--lacca-2); box-shadow: inset 0 0 0 0.08em var(--filo); }
.mt-scelta .mt-ic { width: 1.1em; height: 1.1em; margin-bottom: 0.55em; color: var(--oro); }
.mt-scelta b { display: block; font: 400 1.05em/1.12 "Marcellus", Georgia, serif; color: var(--carta); }
.mt-scelta small { display: block; margin-top: 0.45em; font-size: 0.68em; color: var(--nebbia); }
.mt-scelta-oro { background: var(--oro); box-shadow: none; }
.mt-scelta-oro .mt-ic, .mt-scelta-oro b { color: var(--lacca); }
.mt-scelta-oro small { color: #5E4A2E; }
.mt-tagliere {
  width: 118%;
  height: auto;
  aspect-ratio: 1;
  margin: -1.6em -1.2em -2em -1.4em;
  rotate: -5deg;
  filter: drop-shadow(0 1.4em 1.2em rgba(0, 0, 0, 0.55));
}

/* 2 · la targa del tavolo, con il QR */
.mt-targa {
  left: 42.2em;
  top: 0.6em;
  z-index: 1;
  width: 15.6em;
  height: 19.4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8em;
  padding: 1.3em 1em 1.1em;
  border-radius: 1em;
  background: linear-gradient(170deg, #201F1D, #131312);
  border: 0.12em solid rgba(227, 199, 156, 0.38);
  box-shadow: 0 2em 4em -1.6em rgba(0, 0, 0, 0.85), inset 0 0 0 0.3em #131312, inset 0 0 0 0.38em rgba(227, 199, 156, 0.16);
  rotate: 3.5deg;
}
.mt-targa .mt-wordmark { height: 1.9em; }
.mt-targa-testo { font: 400 0.92em/1.3 "Marcellus", Georgia, serif; text-align: center; color: var(--carta); }
.mt-qr { width: 8.4em; padding: 0.55em; border-radius: 0.55em; background: var(--carta); }
.mt-qr svg { display: block; width: 100%; height: auto; }
.mt-targa-n { font: 400 0.95em/1 "Marcellus", Georgia, serif; letter-spacing: 0.24em; text-transform: uppercase; color: var(--oro); }

/* 3 · il pannello del locale */
.mt-admin { left: 20.5em; top: 20.6em; width: 39.5em; height: 24.8em; z-index: 2; }
.mt-admin-corpo { padding: 1em 1.1em; }
.mt-admin-testa { display: flex; align-items: center; gap: 1em; margin-bottom: 1em; }
.mt-admin-testa .mt-avatar { width: 2.1em; height: 2.1em; }
.mt-tabs { display: flex; gap: 0.45em; }
.mt-tabs b {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.45em 0.95em;
  border-radius: 99px;
  font-size: 0.82em;
  font-weight: 500;
  color: var(--nebbia);
  box-shadow: inset 0 0 0 0.08em var(--filo);
}
.mt-tabs b.on { background: rgba(227, 199, 156, 0.14); box-shadow: inset 0 0 0 0.08em rgba(227, 199, 156, 0.5); color: var(--oro); font-weight: 600; }
.mt-tabs i { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.35em; border-radius: 99px; background: var(--oro); color: var(--lacca); font: normal 700 0.86em/1 "Jost", sans-serif; }
.mt-campana { position: relative; margin-left: auto; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; box-shadow: inset 0 0 0 0.08em var(--filo); color: var(--oro); font-size: 0.95em; }
.mt-campana em {
  position: absolute;
  top: -0.25em;
  right: -0.2em;
  display: grid;
  place-items: center;
  min-width: 1.35em;
  height: 1.35em;
  border-radius: 99px;
  background: #EC8F78;
  color: #2A0F08;
  font: normal 700 0.7em/1 "Jost", sans-serif;
}
.mt-colonne { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.mt-col { display: flex; flex-direction: column; gap: 0.55em; min-width: 0; }
.mt-col-h { display: flex; align-items: center; justify-content: space-between; padding: 0 0.2em 0.1em; font-size: 0.8em; font-weight: 500; color: var(--nebbia); white-space: nowrap; }
.mt-col-h b { display: grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 0.3em; border-radius: 99px; background: var(--lacca-3); color: var(--carta); font: 600 0.9em/1 "Jost", sans-serif; }
.mt-ord {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.2em 0.55em;
  padding: 0.7em 0.8em;
  border-radius: 0.8em;
  background: var(--lacca-2);
  box-shadow: inset 0 0 0 0.08em var(--filo);
  min-width: 0;
}
.mt-ord-n { font-size: 0.76em; font-weight: 700; color: var(--oro); }
.mt-ord-chi { font-size: 0.84em; font-weight: 500; color: var(--carta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-ord-t { font-size: 0.68em; color: var(--nebbia); white-space: nowrap; }
.mt-ord small { grid-column: 1 / -1; font-size: 0.7em; color: var(--nebbia); }
.mt-ord-nuovo { background: rgba(227, 199, 156, 0.1); box-shadow: inset 0 0 0 0.1em rgba(227, 199, 156, 0.65), 0 0 1.6em -0.3em rgba(227, 199, 156, 0.45); }
.mt-ord-ok { grid-column: 1 / -1; margin-top: 0.3em; padding: 0.5em 0; border-radius: 99px; background: var(--oro); color: var(--lacca); font-size: 0.74em; font-weight: 700; text-align: center; }
.mt-ord-pronto { box-shadow: inset 0 0 0 0.08em rgba(227, 199, 156, 0.38); }

/* 4 · l'app dei rider */
.mt-telefono {
  left: 5.2em;
  top: 21.3em;
  z-index: 3;
  width: 14.7em;
  height: 26.7em;
  padding: 0.45em;
  border-radius: 2.5em;
  background: #0A0A0A;
  box-shadow: 0 0 0 0.12em #3A3631, 0 2.6em 5em -1.4em rgba(0, 0, 0, 0.9);
}
.mt-schermo { container-type: size; position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 2.1em; background: #1A1918; }
.mt-mappa { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mt-pin text { font-family: "Jost", sans-serif; }
/* il rider: un punto d'oro che fa il giro delle tre consegne, sulle stesse
   tappe del percorso disegnato. Si muove con translate, in unita' dello
   schermo (cqw, cqh), cosi' non ricalcola la pagina a ogni passo */
.mt-rider {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.15em;
  height: 1.15em;
  margin: -0.575em 0 0 -0.575em;
  border-radius: 50%;
  background: #FFF3DA;
  box-shadow: 0 0 0 0.22em rgba(227, 199, 156, 0.75), 0 0 1.4em 0.3em rgba(227, 199, 156, 0.6);
  translate: 32.6cqw 26cqh;
}
.mt-pillola {
  position: absolute;
  top: 1.2em;
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 0.2em;
  padding: 0.25em;
  border-radius: 99px;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: inset 0 0 0 0.08em var(--filo), 0 0.5em 1.2em rgba(0, 0, 0, 0.5);
  font-size: 0.68em;
  white-space: nowrap;
}
.mt-pillola b { padding: 0.6em 1.2em; border-radius: 99px; font-weight: 500; color: var(--nebbia); }
.mt-pillola b.on { background: var(--oro); color: var(--lacca); font-weight: 600; }
.mt-foglio { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55em 1em 1.1em; border-radius: 1.6em 1.6em 0 0; background: var(--lacca-2); box-shadow: 0 -0.9em 2em rgba(0, 0, 0, 0.5), inset 0 0.08em 0 var(--filo); }
.mt-linguetta { display: block; width: 2.8em; height: 0.3em; margin: 0 auto 0.8em; border-radius: 99px; background: #4A453E; }
.mt-tappa { display: flex; align-items: center; gap: 0.8em; margin-bottom: 0.9em; }
.mt-lettera { display: grid; place-items: center; flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--oro); color: var(--lacca); font: 700 1em/1 "Jost", sans-serif; }
.mt-tappa b { display: block; font-size: 0.92em; font-weight: 600; color: var(--carta); }
.mt-tappa small { display: block; font-size: 0.72em; color: var(--nebbia); }
.mt-azioni { display: grid; grid-template-columns: 1fr 1fr 1.55fr; gap: 0.45em; }
.mt-azioni span { display: flex; align-items: center; justify-content: center; gap: 0.4em; padding: 0.75em 0; border-radius: 99px; font-size: 0.7em; font-weight: 600; white-space: nowrap; color: var(--carta); box-shadow: inset 0 0 0 0.1em var(--filo); }
.mt-azioni .mt-ic { width: 0.95em; height: 0.95em; color: var(--oro); }
.mt-azioni .mt-azione-oro { background: var(--oro); color: var(--lacca); box-shadow: none; }

/* Il movimento: poco e vero. Ogni cosa che si muove racconta una funzione:
   l'ordine nuovo che chiede di essere accettato, la campanella dello staff,
   il rider che fa il giro. Gira solo mentre la scena si vede. */
@media (prefers-reduced-motion: no-preference) {
  .mt-percorso { animation: mt-scorre 1.4s linear infinite; }
  .mt-rider { animation: mt-giro 14s linear infinite; }
  .mt-ord-nuovo { animation: mt-nuovo 3.2s ease-in-out infinite; }
  .mt-campana em { animation: mt-campana 2.6s ease-in-out infinite; }
  .maten-vetrina:not(.in-vista) .mt-palco * { animation-play-state: paused; }
}
@keyframes mt-scorre { to { stroke-dashoffset: -8; } }
@keyframes mt-nuovo {
  0%, 100% { box-shadow: inset 0 0 0 0.1em rgba(227, 199, 156, 0.45), 0 0 0.6em -0.3em rgba(227, 199, 156, 0.2); }
  50% { box-shadow: inset 0 0 0 0.1em rgba(227, 199, 156, 0.95), 0 0 1.8em -0.2em rgba(227, 199, 156, 0.6); }
}
@keyframes mt-campana { 0%, 100% { scale: 1; } 8% { scale: 1.25; } 16% { scale: 1; } }
/* le tappe del giro, in percentuale dello schermo: Matèn, A, B, C */
@keyframes mt-giro {
  0% { translate: 21.7cqw 58.9cqh; opacity: 0; }
  3% { opacity: 1; }
  23.2% { translate: 68.8cqw 58.9cqh; }
  37.5% { translate: 68.8cqw 43.4cqh; }
  55.4% { translate: 32.6cqw 43.4cqh; }
  71.4% { translate: 32.6cqw 26cqh; }
  91.1% { translate: 72.5cqw 26cqh; }
  97% { opacity: 1; }
  100% { translate: 72.5cqw 16.3cqh; opacity: 0; }
}
/* Sul telefono la scena prende quasi tutta la larghezza: e' l'unico modo
   perche' i quattro schermi restino leggibili come schermi */
@media (max-width: 560px) {
  .maten-vetrina { margin-inline: calc(var(--margine) * -0.6); }
}

/* La targa dei progetti personali: una piccola placca sopra il titolo,
   ferma e sobria, con la stella nel colore del progetto in scena */
.targa {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -12px;
  padding: 7px 13px 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(10, 10, 17, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--testo);
  text-shadow: none;
}
.targa svg { width: 11px; height: 11px; flex: none; fill: var(--accento); }
.side-corpo .targa { margin-bottom: -4px; }

/* ==========================================================================
   GLI ALTRI PROGETTI
   Righe come un indice, divise da un filo: marchio, testo e link.
   Ogni riga porta il colore del suo progetto (--tinta), anche nei bottoni.
   ========================================================================== */
.side { padding-block: clamp(72px, 9vw, 140px) clamp(24px, 4vw, 64px); }
.side-voce { text-shadow: 0 1px 18px rgba(4, 4, 7, 0.9), 0 0 2px rgba(4, 4, 7, 0.6); }

.side-voce {
  --accento: var(--tinta);
  --su-accento: #0B0A06;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 20px 18px;
  padding: clamp(28px, 3.6vw, 48px) 0;
  border-top: 1px solid var(--linea);
}
.side-voce:last-child { border-bottom: 1px solid var(--linea); }
.side-voce.movida { --tinta: #52E094; }
.side-voce.tek { --tinta: #E8862E; }
.side-corpo, .side-coda { grid-column: 1 / -1; }
.side-corpo { display: grid; gap: 14px; }
.side-coda { display: grid; gap: 22px; align-content: start; }

.side-marchio {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--tinta) 30%, transparent);
  background: color-mix(in srgb, var(--tinta) 9%, rgba(10, 10, 17, 0.78));
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--tinta) 70%, transparent);
  transition: transform 0.7s var(--molla), box-shadow 0.6s var(--ease);
}
.movida .side-marchio { overflow: hidden; }
.movida .side-marchio img { width: 100%; height: 100%; object-fit: cover; }
.tek .side-marchio svg { width: 76%; height: auto; overflow: visible; }

.side-voce h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.35rem);
  font-weight: 780;
  font-stretch: 108%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  transition: transform 0.6s var(--ease);
}
.side-voce h3 em { font-weight: 300; color: var(--tinta); }
.side-desc { max-width: 62ch; color: var(--testo-2); text-wrap: pretty; }
.side-coda .bottone { justify-self: start; }
@media (max-width: 560px) {
  .side-coda .bottone { justify-self: stretch; white-space: normal; text-align: left; justify-content: space-between; }
}
@media (hover: hover) and (pointer: fine) {
  .side-voce:hover h3 { transform: translateX(6px); }
  .side-voce:hover .side-marchio { transform: translateY(-4px) rotate(-3deg); box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--tinta) 90%, transparent); }
}
@media (min-width: 960px) {
  .side-voce { grid-template-columns: 112px minmax(0, 1.4fr) minmax(0, 1fr); column-gap: clamp(28px, 3.4vw, 56px); align-items: start; }
  .side-marchio { width: 112px; border-radius: 28px; }
  .side-corpo, .side-coda { grid-column: auto; }
  .side-coda { padding-top: 34px; }
}

/* Tek, il robottino di iotecknico.shop: lo stesso SVG del sito, con i suoi
   colori. Galleggia, sbatte gli occhi e saluta quando passi sulla riga */
.tek {
  --tek-chiaro: #DCEAF5;
  --tek-scafo: #6E93B4;
  --tek-scuro: #123F6A;
  --tek-caldo: #E8862E;
  --tek-luce: #7FE3F5;
}
.tek-svg .tek-tutto, .tek-svg .tek-testa { transform-box: view-box; transform-origin: 50% 100%; }
.tek-ombra { fill: var(--tek-scuro); opacity: 0.16; transform-box: fill-box; transform-origin: center; }
.tek-onda { fill: none; stroke: var(--tek-luce); stroke-width: 5; stroke-linecap: round; opacity: 0.6; }
.tek-ingranaggio-denti, .tek-spia, .tek-occhio { transform-box: fill-box; transform-origin: center; }
.tek-braccio-saluto { transform-box: fill-box; transform-origin: 2% 8%; }
@media (prefers-reduced-motion: no-preference) {
  .tek-tutto { animation: tek-galleggia 3.6s ease-in-out infinite; }
  .tek-ombra { animation: tek-ombra-respira 3.6s ease-in-out infinite; }
  .tek-ingranaggio-denti { animation: tek-gira 9s linear infinite; }
  .tek-nucleo { animation: tek-nucleo-pulsa 2.4s ease-in-out infinite; }
  .tek-spia { animation: tek-spia-pulsa 2s ease-in-out infinite; }
  .tek-onda { animation: tek-onda-va 2.6s ease-in-out infinite; }
  .tek-onda:nth-child(2) { animation-delay: 0.24s; }
  .tek-onda:nth-child(3) { animation-delay: 0.1s; }
  .tek-onda:nth-child(4) { animation-delay: 0.34s; }
  .tek-occhio { animation: tek-batte 5.4s ease-in-out infinite; }
  .tek.saluta .tek-braccio-saluto { animation: tek-saluto 2.1s cubic-bezier(0.34, 1.25, 0.5, 1); }
  .tek.saluta .tek-testa { animation: tek-testa-saluta 2.1s ease-in-out; }
  .tek:not(.in-vista) .side-marchio * { animation-play-state: paused; }
}
@keyframes tek-galleggia { 50% { transform: translateY(-6px); } }
@keyframes tek-ombra-respira { 50% { transform: scaleX(0.93); opacity: 0.1; } }
@keyframes tek-gira { to { transform: rotate(360deg); } }
@keyframes tek-nucleo-pulsa { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes tek-spia-pulsa { 50% { transform: scale(1.12); } }
@keyframes tek-onda-va { 0%, 100% { opacity: 0.18; } 45% { opacity: 0.95; } }
@keyframes tek-batte { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
@keyframes tek-saluto {
  0% { transform: rotate(0deg); }
  20% { transform: rotate(-118deg); }
  30% { transform: rotate(-109deg); }
  40% { transform: rotate(-118deg); }
  50% { transform: rotate(-113deg); }
  68% { transform: rotate(-118deg); }
  100% { transform: rotate(0deg); }
}
@keyframes tek-testa-saluta { 0%, 100% { transform: rotate(0deg); } 22%, 68% { transform: rotate(-5deg); } }

/* ==========================================================================
   COMPETENZE
   ========================================================================== */
.competenze-testa { margin-bottom: clamp(56px, 7vw, 104px); }
.aree { display: grid; gap: clamp(64px, 8vw, 112px); }
.aree, .competenze-testa { text-shadow: 0 1px 18px rgba(4, 4, 7, 0.9), 0 0 2px rgba(4, 4, 7, 0.6); }
.area { display: grid; gap: 20px; }
.area-titolo {
  font-family: var(--f-titoli);
  font-size: clamp(1.25rem, 0.95rem + 1vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accento);
}
/* Le colonne: niente riquadri, solo il filo in alto e uno sottile tra
   una colonna e l'altra. Il filo sopra la colonna si accende al passaggio */
.area-righe { display: grid; border-top: 1px solid var(--linea-forte); }
.abilita {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--linea);
}
.abilita::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--accento);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.abilita h4 {
  font-family: var(--f-titoli);
  font-size: clamp(1.05rem, 0.9rem + 0.55vw, 1.32rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  transition: color 0.4s, transform 0.6s var(--ease);
}
.abilita p { color: var(--testo-2); font-size: 0.98rem; text-wrap: pretty; }
.abilita .strumenti { font-family: var(--f-mono); font-size: 0.7rem; line-height: 1.75; color: var(--testo-3); }
@media (hover: hover) and (pointer: fine) {
  .abilita:hover::before { transform: scaleX(1); }
  .abilita:hover h4 { color: var(--accento); transform: translateX(6px); }
}
.abilita-link { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.abilita-link .bottone { min-height: 44px; padding: 0 16px; font-size: 0.88rem; }
@media (min-width: 760px) {
  .area-righe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .abilita { padding-right: clamp(20px, 2.4vw, 36px); }
  .abilita:nth-child(2n) { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--linea); }
  .abilita:nth-child(2n)::before { left: -1px; }
}
@media (min-width: 1100px) {
  .area-righe.quattro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-righe.tre { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abilita { border-bottom: 0; }
  .abilita:nth-child(2n) { padding-left: 0; border-left: 0; }
  .abilita:not(:first-child) { padding-left: clamp(20px, 2.4vw, 36px); border-left: 1px solid var(--linea); }
}

/* ==========================================================================
   SQUADRA
   ========================================================================== */
.squadra-testa { margin-bottom: clamp(56px, 7vw, 96px); }
.pezza { margin-top: 24px; }
.pezza + .pezza { margin-top: 48px; }
.pezza-griglia { display: grid; gap: 22px; }
.pezza-citazione { border-radius: 20px; overflow: hidden; text-shadow: none; }
.pezza-corpo { display: grid; gap: 12px; }
.pezza-corpo h3 { font-family: var(--f-titoli); font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.1rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.pezza-corpo .ruolo { font-family: var(--f-mono); font-size: 0.74rem; color: var(--pezza-tinta, var(--accento)); }
.pezza-corpo p:not(.ruolo) { color: var(--testo-2); text-wrap: pretty; }
.pezza-corpo .bottone { justify-self: start; margin-top: 6px; }

/* Genesys Labs: la home del sito dello studio com'è dal redesign (www.genesyslabs.it), in piccolo
   e viva, non uno screenshot. Dall'alto: la barra di stato e l'intestazione con la targa in
   maiuscolo (il suo carattere, Martian Grotesk), il menu a pillola e il tasto verde; poi il titolo
   d'apertura in Geist con l'ultima riga verde sottolineata, il tasto «Esplora i Nostri Progetti»
   e la stella di particelle (sito.js), che sul telefono sta sopra il titolo come nella home vera.
   Fondo quasi nero e verde pieno, niente sfumature né ombre. Tutte le misure sono in parti della
   larghezza del riquadro (cqw): è lo stesso disegno su telefono e computer. */
@font-face { font-family: "Geist Genesys"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../font/geist-genesys.woff2") format("woff2"); }
@font-face { font-family: "Martian Genesys"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../font/martian-grotesk-genesys.woff2") format("woff2"); }

.pezza-studio { --pezza-tinta: #4ADE8B; }
.pezza-studio .pezza-citazione {
  --gl-nero: #050807;
  --gl-verde: #4ADE8B;
  --gl-inchiostro: #03130A;
  position: relative;
  display: block;
  container-type: inline-size;
  aspect-ratio: 5 / 6;                   /* telefono: la stella sopra, il titolo sotto */
  background: var(--gl-nero);
  color: #EEF6F1;
  font-family: "Geist Genesys", var(--f-testo);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.pezza-studio .pezza-citazione > span, .pezza-studio .pezza-citazione > canvas, .pezza-studio .pezza-citazione > img { position: absolute; }

/* la barra di stato e l'intestazione */
.gl-barra {
  left: 0; right: 0; top: 0; height: 6.4cqw; padding: 0 5cqw;
  display: flex; align-items: center; justify-content: space-between; gap: 3cqw;
  background: #030504;
  font-family: "Martian Genesys", "Geist Genesys", var(--f-testo);
  font-weight: 500; font-size: clamp(6px, 1.75cqw, 8.5px); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: #74887D;
}
.gl-barra span + span { display: none; }
.gl-testata { left: 5cqw; right: 5cqw; top: 10.4cqw; display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.gl-targa { display: flex; align-items: center; gap: 2.2cqw; }
.gl-targa img { width: auto; height: clamp(22px, 7cqw, 34px); }
.gl-targa > span { display: grid; gap: .32em; font-family: "Martian Genesys", "Geist Genesys", var(--f-testo); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.gl-targa b { font-weight: 700; font-size: clamp(10.5px, 2.9cqw, 14px); letter-spacing: .06em; color: #FFFFFF; }
.gl-targa small { font-weight: 500; font-size: clamp(6px, 1.75cqw, 8.5px); letter-spacing: .17em; color: var(--gl-verde); }
.gl-menu { display: none; }
.gl-tasto, .gl-azione {
  display: inline-flex; align-items: center; gap: .6em;
  border-radius: 999px;
  background: var(--gl-verde); color: var(--gl-inchiostro);
  font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
.gl-tasto { padding: .75em 1.2em; font-size: clamp(9.5px, 2.7cqw, 12px); }
.gl-tasto svg, .gl-azione svg { width: 1.05em; height: 1.05em; fill: currentColor; }

/* la stella e l'apertura */
.gl-stella, .gl-stella-ferma { left: 50%; top: 23cqw; width: 44cqw; height: 44cqw; margin-left: -22cqw; }
.gl-stella { display: block; }
.gl-stella-ferma { object-fit: contain; opacity: .9; }
.gl-viva .gl-stella-ferma { visibility: hidden; }
.gl-eroe { left: 5cqw; right: 5cqw; bottom: 6cqw; display: grid; justify-items: start; gap: 4.6cqw; }
.gl-titolo { display: block; font-weight: 600; font-size: 8.7cqw; line-height: 1.03; letter-spacing: -.05em; color: #EEF6F1; }
.gl-titolo span { color: var(--gl-verde); background: linear-gradient(var(--gl-verde), var(--gl-verde)) left bottom / 100% .07em no-repeat; padding-bottom: .1em; }
.gl-azione { padding: .95em 1.5em; font-size: clamp(11px, 3.4cqw, 14.5px); transition: transform 0.35s var(--ease); }
.gl-azione svg { transition: transform 0.35s var(--ease); }

@media (hover: hover) and (pointer: fine) {
  .pezza-studio .pezza-citazione:hover .gl-azione svg { transform: translateX(3px); }
}
.pezza-studio .pezza-citazione:active .gl-azione { transform: scale(.97); }

/* riquadro largo (computer e tablet): il titolo a sinistra, la stella a destra, il menu a pillola */
@media (min-width: 700px) { .pezza-studio .pezza-citazione { aspect-ratio: 8 / 5; } }
@container (min-width: 520px) {
  .gl-barra { height: 4.6cqw; font-size: 1.22cqw; }
  .gl-barra span + span { display: inline; }
  .gl-testata { top: 7.2cqw; gap: 1.6cqw; }
  .gl-targa { gap: 1.5cqw; }
  .gl-targa img { height: 4.7cqw; }
  .gl-targa b { font-size: 1.95cqw; }
  .gl-targa small { font-size: 1.02cqw; letter-spacing: .14em; }
  .gl-menu { display: flex; align-items: center; gap: .2em; padding: .35em; border-radius: 999px; background: #0C1210; font-weight: 500; font-size: 1.42cqw; color: #A7B8AF; white-space: nowrap; }
  .gl-menu > * { padding: .55em .8em; border-radius: 999px; font-weight: inherit; }
  .gl-menu b { background: #16241D; color: #EEF6F1; }
  .gl-tasto { font-size: 1.5cqw; }
  .gl-stella, .gl-stella-ferma { left: auto; right: 4cqw; top: 16.5cqw; width: 34cqw; height: 41cqw; margin-left: 0; }
  .gl-eroe { bottom: 5.4cqw; gap: 3.4cqw; }
  .gl-titolo { font-size: 6.5cqw; }
  .gl-azione { font-size: clamp(10px, 2.05cqw, 13.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .gl-azione, .gl-azione svg { transition: none; }
}

.pezza-kevin { --pezza-tinta: #E8976A; }
.pezza-kevin .pezza-citazione { padding: 26px; background: #1E1B18; border: 1px solid rgba(232, 151, 106, 0.2); font-family: Georgia, "Times New Roman", serif; }
.kv-nome { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: #ECE6DC; }
.kv-riga { margin-top: 14px; font-size: 1.1rem; line-height: 1.4; color: #C3B9AA; font-style: italic; }
.kv-link { margin-top: 16px; color: #E8976A; }

.pezza-salvatore { --pezza-tinta: #A78BFA; }
.pezza-salvatore .pezza-citazione { font-family: var(--f-mono); background: #0B0B0C; border: 1px solid #2A2A2E; }
.sd-barra { padding: 10px 16px; border-bottom: 1px solid #2A2A2E; font-size: 0.7rem; color: #9A9AA3; }
.sd-riga { display: flex; align-items: center; flex-wrap: wrap; padding: 20px 16px 8px; font-size: clamp(0.9rem, 0.8rem + 0.6vw, 1.3rem); color: #FAFAFA; }
.sd-utente { color: #A78BFA; }
.sd-cursore { display: inline-block; width: 0.55em; height: 1.1em; margin-left: 8px; background: #A78BFA; }
@media (prefers-reduced-motion: no-preference) { .sd-cursore { animation: lampeggia 1.1s steps(1) infinite; } }
@keyframes lampeggia { 50% { opacity: 0; } }
.sd-comandi { padding: 0 16px 20px; font-size: 0.78rem; color: #9E9EA8; }

/* ==========================================================================
   CONTATTI
   ========================================================================== */
.contatti { min-height: 100vh; display: flex; align-items: center; text-align: center; }
.contatti-titolo { max-width: 15ch; margin-inline: auto; font-size: clamp(2.6rem, 1.2rem + 6vw, 6rem); }
.contatti .lead { margin-inline: auto; }
.email {
  display: inline-grid;
  justify-items: center;
  gap: 16px;
  max-width: 100%;
  margin-top: clamp(48px, 6vw, 88px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-shadow: inherit;
}
.email-testo {
  font-size: clamp(1.12rem, 5.2vw, 4.4rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  background: linear-gradient(var(--accento), var(--accento)) left bottom / 0% 3px no-repeat;
  padding-bottom: 6px;
  transition: background-size 0.7s var(--ease), color 0.4s;
}
.email:hover .email-testo, .email:focus-visible .email-testo { background-size: 100% 3px; color: var(--accento); }
.email-azione {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border: 1px solid var(--linea); border-radius: 999px;
  background: rgba(10, 10, 17, 0.6);
  font-family: var(--f-mono); font-size: 0.74rem; color: var(--testo-2);
  text-shadow: none;
  transition: border-color 0.3s, color 0.3s;
}
.email-azione svg { width: 16px; height: 16px; fill: currentColor; }
.email.copiata .email-azione { border-color: var(--accento); color: var(--accento); }
.canali { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.piede {
  position: relative;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
  background: rgba(4, 4, 7, 0.7);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--testo-3);
}
.piede-righe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Telefono: la forma sta dietro il testo, piu' tenue ---------- */
@media (max-width: 959px) {
  .progetto { min-height: auto; }
  .progetti-testa { min-height: 70vh; }
  .colonna { position: relative; }
}

/* ---------- Dispositivi che faticano ----------
   Se il motore 3D scende di qualita' (o il dispositivo e' gia' giudicato
   lento), via anche le sfocature di sfondo: costano a ogni fotogramma,
   perche' dietro c'e' il canvas che si muove. */
[data-prestazioni="ridotte"] .vetro,
[data-qualita-3d="2"] .vetro,
[data-qualita-3d="3"] .vetro {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)), rgba(10, 10, 16, 0.94);
}
[data-prestazioni="ridotte"] .testata.staccata,
[data-qualita-3d="2"] .testata.staccata,
[data-qualita-3d="3"] .testata.staccata {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(4, 4, 7, 0.92);
}
