/* Netskin · versione moderna della grafica originale: azzurro, poligoni, cursori e siti in vetrina */

:root {
  --ciano: #0eb3df;
  --ciano-vivo: #0eb3df;     /* lo stesso azzurro del logo, anche sui fondi scuri */
  --ciano-testo: #077a9c;     /* azzurro leggibile sul bianco */
  --ciano-tenue: #e4f6fc;
  --inchiostro: #0b1726;
  --testo: #4a5868;
  --tenue: #6b7a8a;
  --superficie: #f3f8fb;
  --bordo: #e2eaf0;
  --scuro: #0a1a2b;
  --blu: #0eb3df;

  --raggio: 20px;
  --raggio-foto: 6px;
  --ombra: 0 24px 60px -28px rgba(11, 23, 38, .35);
  --curva: cubic-bezier(.22, .8, .24, 1);
  --altezza-testata: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--testo); background: #fff; word-spacing: .04em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; color: var(--inchiostro); }
::selection { background: var(--ciano); color: #fff; }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; }
.icona { width: 1em; height: 1em; flex: none; }
.solo-lettori { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salta { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--inchiostro); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.salta:focus { top: 16px; }
.contenitore { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---------- titoli e capsule ---------- */

.capsula { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px; background: var(--ciano-tenue); color: var(--ciano-testo); font-size: 13px; font-weight: 700; letter-spacing: .02em; margin-bottom: 18px; }
.capsula i { width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 0 4px rgba(14, 179, 223, .18); }
.capsula--chiara { background: rgba(255, 255, 255, .12); color: #fff; }
.titolo { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 800; line-height: 1.08; letter-spacing: -.028em; word-spacing: .05em; color: var(--inchiostro); text-wrap: balance; }
.sezione { padding: clamp(80px, 9vw, 130px) 0; }
.sezione--chiara { background: var(--superficie); }
.testa-sezione { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.testa-sezione > p { font-size: 18px; max-width: 34rem; justify-self: end; }

/* ---------- bottoni ---------- */

.bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  font-size: 15.5px; font-weight: 700; line-height: 1.2;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--curva), box-shadow .3s;
}
.bottone .icona { width: 16px; height: 16px; transition: transform .35s var(--curva); }
.bottone:hover .icona { transform: translateX(3px); }
.bottone:active { transform: scale(.97); }
.bottone--pieno { background: var(--ciano); color: #fff; box-shadow: 0 12px 28px -14px rgba(14, 179, 223, .9); }
.bottone--pieno:hover { background: #0a9fc8; box-shadow: 0 16px 32px -14px rgba(14, 179, 223, 1); }
.bottone--bordo { border-color: var(--bordo); color: var(--inchiostro); background: #fff; }
.bottone--bordo:hover { border-color: var(--ciano); color: var(--ciano-testo); }
.bottone--chiaro { border-color: rgba(255, 255, 255, .35); color: #fff; }
.bottone--chiaro:hover { background: #fff; color: var(--inchiostro); }
.bottone--chiaro:hover .icona { transform: none; }
.bottone--piccolo { min-height: 44px; padding: 10px 20px; font-size: 14.5px; }
.bottone[disabled] { opacity: .6; pointer-events: none; }

.tondo { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; border: 1.5px solid var(--bordo); background: #fff; color: var(--inchiostro); cursor: pointer; transition: border-color .3s, color .3s, background-color .3s, transform .3s var(--curva); }
.tondo .icona { width: 18px; height: 18px; }
button.tondo:hover { border-color: var(--ciano); color: var(--ciano-testo); }
.tondo--ciano { background: var(--ciano); border-color: var(--ciano); color: #fff; }

/* ---------- intestazione ---------- */

.testata { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background-color .35s, box-shadow .35s, backdrop-filter .35s; }
.testata--scorsa { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--bordo); }
.testata__riga { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--altezza-testata); }
.marchio { display: inline-flex; align-items: center; gap: 10px; color: var(--ciano); }
.marchio .palla { width: 40px; height: 40px; transition: transform .6s var(--curva); }
.marchio:hover .palla { transform: rotate(-14deg); }
.marchio__nome { font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif; font-weight: 400; font-size: 21px; letter-spacing: 1.5px; line-height: 1; word-spacing: 0; }
.marchio--chiaro { color: #fff; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu ul { list-style: none; display: flex; gap: 4px; }
.menu ul a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--inchiostro); transition: color .25s, background-color .25s; }
.menu ul a:hover { background: var(--superficie); }
.menu ul a.attiva { color: var(--ciano-testo); background: var(--ciano-tenue); }
.testata__apri { display: none; }

/* ---------- apertura a tutto schermo: le foto dei clienti riempiono lo schermo ---------- */

.apertura { position: relative; overflow: hidden; isolation: isolate; height: 100svh; min-height: 620px; max-height: 1300px; background: var(--scuro); color: #fff; }
.apertura__fondo { position: absolute; inset: -3%; background: url(../img/grafica/poligoni-chiari.svg) center / cover no-repeat, #fff; transition: opacity .7s 1s; }
.apertura__fondo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #fff); }
.pronto .apertura__fondo, html:not(.js) .apertura__fondo { opacity: 0; }
.apertura__prima, .schermo { position: absolute; inset: 0; width: 100%; height: 100%; translate: 0 calc(var(--s, 0) * 14vh); }
.apertura__prima { object-fit: cover; scale: 1.03; }
.intro .apertura__prima, .foto-nascosta .apertura__prima { visibility: hidden; }
.apertura__velo { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .9s .35s;
  background:
    linear-gradient(180deg, rgba(8, 22, 36, .5), rgba(8, 22, 36, 0) 20%),
    linear-gradient(0deg, rgba(8, 22, 36, .66), rgba(8, 22, 36, 0) 38%),
    linear-gradient(90deg, rgba(8, 22, 36, .74), rgba(8, 22, 36, .42) 44%, rgba(8, 22, 36, .04) 76%); }
.pronto .apertura__velo, html:not(.js) .apertura__velo { opacity: 1; }
.apertura .apertura__griglia { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; padding-top: calc(var(--altezza-testata) + clamp(10px, 3vh, 40px)); padding-bottom: clamp(18px, 4vh, 40px); translate: 0 calc(var(--s, 0) * -50px); opacity: calc(1 - var(--s, 0) * 1.5); }
.apertura__testo { margin: auto 0; max-width: 860px; }
.apertura__titolo { max-width: 8.7em; font-size: clamp(2.7rem, min(6.2vw, 10vh), 6rem); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; word-spacing: .06em; color: #fff; text-wrap: balance; text-shadow: 0 2px 34px rgba(8, 22, 36, .4); }
.apertura__titolo .evidenza { color: var(--ciano-vivo); }
.apertura__titolo .evidenza::after { background: rgba(14, 179, 223, .3); }
.apertura__sotto { margin-top: 22px; max-width: 34rem; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 16px rgba(8, 22, 36, .5); }
.apertura__bottoni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.apertura__piede { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.apertura__numeri { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 36px; font-size: 14.5px; color: rgba(255, 255, 255, .8); }
.apertura__numeri strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: #fff; }
@keyframes sale { from { opacity: 0; transform: translateY(26px); } }
@keyframes galleggia { from { translate: 0 0; } to { translate: 0 -10px; } }

/* in basso a destra: il sito della foto in una finestrella, e i comandi per sfogliare */
.vetrinetta { flex: none; width: min(430px, 100%); display: grid; gap: 12px; }
.vetrinetta__sito { display: grid; grid-template-columns: 124px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 14px 9px 9px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--inchiostro); box-shadow: var(--ombra); transition: transform .45s var(--curva); }
.vetrinetta__sito:hover { transform: translateY(-4px); }
.vetrinetta__finestra { display: block; overflow: hidden; border-radius: 9px; box-shadow: 0 0 0 1px rgba(11, 23, 38, .1); background: #f4f7f9; }
.vetrinetta__finestra .browser__barra { height: 13px; padding: 0 6px; gap: 3px; border: 0; }
.vetrinetta__finestra .browser__barra i { width: 4px; height: 4px; }
.vetrinetta__finestra img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.vetrinetta__testo { min-width: 0; display: grid; }
.vetrinetta__nota { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1f9d55; }
.vetrinetta__nota::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #28c941; box-shadow: 0 0 0 4px rgba(40, 201, 65, .18); animation: pulsa 2s infinite; }
@keyframes pulsa { 50% { box-shadow: 0 0 0 7px rgba(40, 201, 65, .05); } }
.vetrinetta__testo strong { margin-top: 3px; font-size: 16px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vetrinetta__dominio { font-size: 13px; color: var(--tenue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vetrinetta__freccia { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--superficie); color: var(--inchiostro); transition: background-color .3s, color .3s; }
.vetrinetta__freccia .icona { width: 16px; height: 16px; }
.vetrinetta__sito:hover .vetrinetta__freccia { background: var(--ciano); color: #fff; }
.cambia .vetrinetta__testo > *, .cambia .vetrinetta__finestra img { animation: cambia-foto .75s var(--curva) both; }
.cambia .vetrinetta__testo > strong { animation-delay: .06s; }
.cambia .vetrinetta__testo > .vetrinetta__dominio { animation-delay: .12s; }
@keyframes cambia-foto { from { opacity: 0; transform: translateY(10px); } }
.vetrinetta__comandi { display: flex; align-items: center; gap: 10px; }
.vetrinetta__comandi .tondo { width: 40px; height: 40px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .4); color: #fff; }
.vetrinetta__comandi .tondo .icona { width: 16px; height: 16px; }
.vetrinetta__comandi .tondo:hover { background: #fff; border-color: #fff; color: var(--inchiostro); }
.tacche { flex: 1; display: flex; gap: 5px; }
.tacche button { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.tacche i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .36); overflow: hidden; transition: background-color .25s; }
.tacche button:hover i { background: rgba(255, 255, 255, .7); }
.tacche i::after { content: ''; display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.tacche button[aria-current="true"] i::after { transform: scaleX(var(--p, 0)); }

.browser { position: relative; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(11, 23, 38, .06), var(--ombra); overflow: hidden; }
.browser__barra { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; background: #f4f7f9; border-bottom: 1px solid var(--bordo); }
.browser__barra i { width: 11px; height: 11px; border-radius: 50%; background: #dfe6eb; flex: none; }
.browser__barra i:nth-child(1) { background: #ff6159; }
.browser__barra i:nth-child(2) { background: #ffbd2e; }
.browser__barra i:nth-child(3) { background: #28c941; }
.browser__url { margin: 0 auto; max-width: 64%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--bordo); font-size: 12.5px; color: var(--tenue); }
.browser__schermo { position: relative; aspect-ratio: 4 / 3; background: var(--superficie); overflow: hidden; }
.vetrina { list-style: none; position: absolute; inset: 0; }
.vetrina li { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 1.4s var(--curva); }
.vetrina li.attiva { opacity: 1; transform: none; }
.vetrina img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* i cursori con l'etichetta: i cursori volanti del vecchio sito, in versione da strumento di design */
.cursore { position: absolute; z-index: 3; display: flex; align-items: flex-start; pointer-events: none; translate: calc(var(--mx, 0) * var(--p, 0) * 60px) calc(var(--my, 0) * var(--p, 0) * 60px); transition: translate 1s var(--curva); }
.cursore .icona { width: 22px; height: 26px; color: var(--c); filter: drop-shadow(0 3px 6px rgba(11, 23, 38, .25)); }
.cursore span { margin: 20px 0 0 -4px; padding: 6px 12px; border-radius: 8px 999px 999px 999px; background: var(--c); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(11, 23, 38, .5); }
.cursore--1 { --c: var(--ciano); top: 4%; left: 6%; }
.cursore--2 { --c: var(--inchiostro); top: 42%; right: -4%; }
.cursore--3 { --c: var(--blu); bottom: 12%; right: 22%; }
.js .cursore { animation: compare .8s var(--curva) both, gira 9s ease-in-out infinite alternate; }
.js .cursore--1 { animation-delay: .6s, .6s; }
.js .cursore--2 { animation-delay: .8s, 2s; animation-duration: .8s, 11s; }
.js .cursore--3 { animation-delay: 1s, 1s; animation-duration: .8s, 8s; }
@keyframes compare { from { opacity: 0; transform: scale(.6); } }
@keyframes gira { 0% { transform: translate(0, 0); } 33% { transform: translate(18px, -12px); } 66% { transform: translate(-10px, 14px); } 100% { transform: translate(12px, 6px); } }

/* ---------- clienti che scorrono ---------- */

.clienti { display: flex; align-items: center; gap: 32px; padding: 26px 0; border-top: 1px solid var(--bordo); border-bottom: 1px solid var(--bordo); overflow: hidden; }
.clienti__nota { flex: none; padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px)); font-size: 13.5px; font-weight: 700; color: var(--tenue); white-space: nowrap; }
.clienti__nastro { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clienti__binario { display: flex; width: max-content; animation: scorri 120s linear infinite; }
.clienti__binario:hover { animation-play-state: paused; }
.clienti ul { list-style: none; display: flex; }
.clienti li { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #8a99a8; white-space: nowrap; }
.clienti li::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); opacity: .6; }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ---------- azienda ---------- */

.azienda__griglia { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.azienda__testo { margin-top: 24px; font-size: 18.5px; line-height: 1.7; }
.numeri { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--bordo); border-left: 1px solid var(--bordo); }
.numero { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: clamp(24px, 3vw, 38px); border-right: 1px solid var(--bordo); border-bottom: 1px solid var(--bordo); }
.numero dd { font-size: clamp(2.6rem, 4.6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.numero:nth-child(1) dd, .numero:nth-child(4) dd { color: var(--ciano); }
.numero dt { font-size: 15.5px; font-weight: 600; color: var(--tenue); }

/* ---------- servizi ---------- */

.servizi { background: var(--superficie); }
.servizi__griglia { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.servizi__foto { position: sticky; top: 110px; margin: 0; border-radius: var(--raggio-foto); overflow: hidden; }
.servizi__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% center; }
.servizi__elenco { list-style: none; }
.servizio { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; padding: 34px 30px; border-radius: var(--raggio); transition: background-color .35s, box-shadow .35s, transform .45s var(--curva); }
.servizio + .servizio { margin-top: 10px; }
.servizio:hover { background: #fff; box-shadow: 0 18px 40px -26px rgba(11, 23, 38, .35); transform: translateX(6px); }
.servizio__icona { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--ciano); box-shadow: 0 0 0 1px var(--bordo); transition: background-color .35s, color .35s; }
.servizio:hover .servizio__icona { background: var(--ciano); color: #fff; box-shadow: none; }
.servizio__icona .icona { width: auto; height: 30px; }
.servizio__titolo { font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: var(--inchiostro); margin-bottom: 8px; }

/* ---------- portfolio ---------- */

.griglia { --colonne: 4; --spazio: 18px; list-style: none; display: grid; grid-template-columns: repeat(var(--colonne), minmax(0, 1fr)); grid-auto-rows: calc((min(100vw, 1240px) - 48px - (var(--colonne) - 1) * var(--spazio)) / var(--colonne) * .78); grid-auto-flow: dense; gap: var(--spazio); }
.griglia__voce--alta { grid-row: span 2; }
.griglia__voce--larga { grid-column: span 2; }
.griglia__voce.nascosta { display: none; }
.griglia__voce.entra { animation: sale .7s var(--curva) both; }
.lavoro { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--raggio-foto); background: var(--superficie); isolation: isolate; }
.lavoro img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--curva); }
.lavoro::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 23, 38, 0) 50%, rgba(11, 23, 38, .72)); transition: opacity .4s; }
.lavoro:hover img, .lavoro:focus-visible img { transform: scale(1.05); }
.lavoro__testo { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2vw, 26px); color: #fff; }
.lavoro__nome { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.lavoro__tipo { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 600; opacity: .85; }
.lavoro__freccia { position: absolute; top: 16px; right: 16px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--inchiostro); opacity: 0; transform: translate(-8px, 8px) rotate(-45deg); transition: opacity .35s, transform .45s var(--curva); }
.lavoro__freccia .icona { width: 18px; height: 18px; }
.lavoro:hover .lavoro__freccia, .lavoro:focus-visible .lavoro__freccia { opacity: 1; transform: rotate(-45deg); }
.portfolio__altri { text-align: center; margin-top: 44px; }
.portfolio__altri[hidden] { display: none; }
.portfolio__altri span { color: var(--tenue); font-weight: 600; }

/* ---------- recensioni ---------- */

.recensioni { background: var(--superficie); }
.recensioni__griglia { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.recensioni__comandi { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.recensioni__conta { min-width: 3.4em; text-align: center; font-weight: 700; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.recensioni__giro { position: relative; display: grid; padding: clamp(32px, 4vw, 56px); border-radius: var(--raggio); background: #fff; box-shadow: 0 0 0 1px var(--bordo), 0 30px 60px -40px rgba(11, 23, 38, .3); }
.recensioni__virgolette { position: absolute; top: -22px; left: clamp(32px, 4vw, 56px); width: 60px; height: 46px; padding: 12px; border-radius: 14px; background: var(--ciano); color: #fff; }
.recensioni__virgolette .icona { width: 100%; height: 100%; }
.recensione { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .6s, transform .7s var(--curva), visibility 0s .7s; }
.recensione.attiva { opacity: 1; transform: none; visibility: visible; transition: opacity .6s, transform .7s var(--curva); }
.recensione blockquote { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 600; line-height: 1.5; letter-spacing: -.015em; color: var(--inchiostro); }
.recensione figcaption { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.recensione figcaption strong { display: block; line-height: 1.2; }
.recensione__chi { font-size: 14px; color: var(--tenue); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ciano-tenue); color: var(--ciano-testo); font-weight: 800; font-size: 18px; flex: none; }

/* ---------- «Ancora dubbi?»: frase al centro, foto dei clienti che escono dai bordi e scorrono a velocità diverse ---------- */

.invito { position: relative; overflow: hidden; min-height: max(660px, 48vw); display: grid; place-items: center; padding: clamp(70px, 8vw, 110px) 0; text-align: center; }
.invito__testo { position: relative; z-index: 2; max-width: 34rem; }
.invito__titolo { font-size: clamp(2.3rem, 4.2vw, 3.9rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; word-spacing: .05em; color: var(--inchiostro); text-wrap: balance; }
.invito__frase { margin-top: 20px; font-size: 18px; }
.invito__bottoni { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.invito__bottoni .icona[viewBox="0 0 20 20"] { width: 18px; height: 18px; }
.invito__foto { position: absolute; inset: 0; }
.volante { position: absolute; margin: 0; overflow: hidden; border-radius: var(--raggio-foto); translate: calc(var(--mx, 0) * var(--f, 0) * 1px) calc(var(--py, 0px) + var(--my, 0) * var(--f, 0) * 1px); transition: translate 1s var(--curva), scale 1.4s var(--curva) calc(var(--i, 0) * 90ms), opacity .8s calc(var(--i, 0) * 90ms), clip-path 1.4s var(--curva) calc(var(--i, 0) * 90ms); }
.volante img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.js .invito:not(.visto) .volante { opacity: 0; scale: .82; clip-path: inset(28% round var(--raggio-foto)); }
.volante--1 { left: -3vw; top: 5%; width: 22vw; }
.volante--2 { left: 9vw; top: 47%; width: 17vw; z-index: 1; }
.volante--3 { left: -5vw; top: 70%; width: 19vw; }
.volante--4 { right: -4vw; top: 8%; width: 20vw; }
.volante--5 { right: 8vw; top: 44%; width: 18vw; z-index: 1; }
.volante--6 { right: -6vw; top: 72%; width: 19vw; }
@media (max-width: 1280px) {
  .invito { display: block; place-items: normal; min-height: 0; padding: 70px 0 80px; }
  .invito__foto { position: relative; inset: auto; width: 100%; height: clamp(170px, 38vw, 390px); margin-bottom: 40px; }
  .invito__testo { margin: 0 auto; }
  .volante { translate: 0 calc(var(--py, 0px) * .2); }
  .volante--2, .volante--3, .volante--6 { display: none; }
  .volante--1 { left: -5%; top: 8%; width: 40%; }
  .volante--4 { left: 28%; right: auto; top: 0; width: 44%; z-index: 2; }
  .volante--5 { right: -5%; top: 14%; width: 40%; }
}

/* ---------- contatti ---------- */

.contatti__griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 90px); align-items: start; }
.contatti__righe { list-style: none; margin: 30px 0 28px; display: grid; gap: 14px; }
.contatti__righe a { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; color: var(--inchiostro); transition: color .25s; }
.contatti__righe a:hover { color: var(--ciano-testo); }
.contatti__righe .tondo { width: 44px; height: 44px; color: var(--ciano-testo); }
.contatti__righe .tondo--ciano { color: #fff; }
.contatti__righe .tondo .icona { width: 19px; height: 19px; }
.contatti__telefono { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800 !important; letter-spacing: -.035em; }
.contatti__telefono .tondo { width: 52px; height: 52px; }
.mappa { --punto: 190px; position: relative; display: block; height: 270px; border-radius: var(--raggio); overflow: hidden; background: #e8e6e1; box-shadow: 0 0 0 1px var(--bordo); }
.mappa__immagine { width: 100%; height: 100%; object-fit: none; object-position: 50% calc(var(--punto) - 600px); transition: transform 1.2s var(--curva); }
.mappa:hover .mappa__immagine { transform: scale(1.04); }
.mappa__segno { position: absolute; left: 50%; top: var(--punto); width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 8px rgba(14, 179, 223, .25), 0 8px 18px rgba(11, 23, 38, .35); animation: segno 2.4s ease-in-out infinite; }
.mappa__segno .palla { width: 100%; height: 100%; }
@keyframes segno { 50% { box-shadow: 0 0 0 16px rgba(14, 179, 223, .08), 0 8px 18px rgba(11, 23, 38, .35); } }
.mappa__vai { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 700; color: var(--inchiostro); box-shadow: 0 6px 16px -8px rgba(11, 23, 38, .4); }
.mappa__vai .icona { width: 14px; height: 14px; }
.mappa__crediti { position: absolute; right: 0; bottom: 0; padding: 2px 8px; background: rgba(255, 255, 255, .75); font-size: 11px; color: #555; border-top-left-radius: 8px; }

.modulo { display: grid; gap: 18px; padding: clamp(26px, 3.5vw, 44px); border-radius: var(--raggio); background: #fff; box-shadow: 0 0 0 1px var(--bordo), 0 40px 80px -50px rgba(11, 23, 38, .35); }
.modulo__titolo { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--inchiostro); }
.modulo__riga { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.campo label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; color: var(--inchiostro); }
.campo input, .campo textarea { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--bordo); background: var(--superficie); font-size: 16px; color: var(--inchiostro); transition: border-color .25s, background-color .25s, box-shadow .25s; }
.campo textarea { min-height: 140px; resize: vertical; display: block; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--ciano); background: #fff; box-shadow: 0 0 0 4px rgba(14, 179, 223, .15); }
.campo.errore input, .campo.errore textarea { border-color: #e2553f; }
.campo--trappola { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.spunta { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.55; }
.spunta input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid #c3ced6; background: #fff; display: grid; place-items: center; cursor: pointer; }
.spunta input:checked { background: var(--ciano); border-color: var(--ciano); }
.spunta input:checked::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.spunta.errore input { border-color: #e2553f; }
.spunta a { color: var(--ciano-testo); text-decoration: underline; text-underline-offset: 3px; }
.modulo__invio { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.modulo__esito { font-size: 14.5px; font-weight: 600; }
.modulo__esito.errore { color: #c8402b; }
.modulo__esito.ok { color: #1f9d55; }

/* ---------- piè di pagina ---------- */

.piede { background: var(--scuro); color: rgba(255, 255, 255, .66); padding: clamp(60px, 7vw, 90px) 0 0; font-size: 15px; }
.piede__alto { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(44px, 5vw, 64px); }
.piede__marchio p { max-width: 22rem; margin-top: 18px; }
.piede__titolo { margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.piede__colonna ul { list-style: none; display: grid; gap: 10px; }
.piede__colonna a { display: inline-flex; align-items: center; gap: 10px; transition: color .25s; }
.piede__colonna a:hover { color: var(--ciano-vivo); }
.piede__colonna .icona { width: 17px; height: 17px; color: var(--ciano-vivo); }
.piede__social { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.piede__social:hover { border-color: var(--ciano-vivo); }
.piede__basso { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.piede__basso p:last-child { display: flex; gap: 20px; }
.piede__basso a:hover { color: #fff; }

.torna-su { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--inchiostro); color: #fff; box-shadow: 0 12px 26px -12px rgba(11, 23, 38, .6); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s, transform .45s var(--curva), background-color .3s; }
.torna-su .icona { width: 18px; height: 18px; }
.torna-su.vista { opacity: 1; transform: none; pointer-events: auto; }
.torna-su:hover { background: var(--ciano); }

/* ---------- pagine interne ---------- */

.fascia { position: relative; overflow: hidden; padding: calc(var(--altezza-testata) + clamp(36px, 5vw, 70px)) 0 clamp(60px, 7vw, 90px); background: url(../img/grafica/poligoni-chiari.svg) center / cover no-repeat; }
.fascia::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.fascia > * { position: relative; z-index: 1; }
.fascia__corpo { margin-bottom: clamp(36px, 5vw, 60px); }
.fascia--corta .fascia__corpo { margin-bottom: 0; }
.briciole a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--tenue); transition: color .25s; }
.briciole a:hover { color: var(--ciano-testo); }
.briciole .icona { width: 15px; height: 15px; }
.fascia__titolo { margin-top: 16px; max-width: 16em; font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; word-spacing: .05em; color: var(--inchiostro); text-wrap: balance; }
.etichette { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.etichette li { padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--bordo); font-size: 14px; font-weight: 700; color: var(--inchiostro); }
.browser__comandi { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; border-top: 1px solid var(--bordo); background: #fff; }
.vetrina__punti { display: flex; flex-wrap: wrap; justify-content: center; }
.vetrina__punti button { width: 22px; height: 22px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.vetrina__punti button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: #cfd9e0; transition: width .35s var(--curva), background-color .3s; }
.vetrina__punti button[aria-current="true"]::before { width: 20px; background: var(--ciano); }

.legale { max-width: 880px; padding-top: 30px; padding-bottom: 110px; }
.legale h2 { margin: 2em 0 .6em; font-size: 26px; font-weight: 800; line-height: 1.25; letter-spacing: -.025em; color: var(--inchiostro); }
.legale h2:first-child { margin-top: 0; }
.legale h3 { margin: 1.6em 0 .5em; font-size: 19px; font-weight: 700; color: var(--inchiostro); }
.legale h4 { margin: 1.3em 0 .4em; font-size: 16px; font-weight: 700; color: var(--inchiostro); }
.legale p, .legale li { margin-bottom: .9em; font-size: 16px; }
.legale ul, .legale ol { padding-left: 1.3em; margin-bottom: 1em; }
.legale a { color: var(--ciano-testo); overflow-wrap: anywhere; }

/* ---------- comparse ---------- */

.js [data-appare] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--curva), transform 1s var(--curva); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-appare].visto { opacity: 1; transform: none; }

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .azienda__griglia, .recensioni__griglia, .contatti__griglia { grid-template-columns: 1fr; }
  .servizi__griglia { grid-template-columns: 1fr; }
  .servizi__foto { position: static; }
  .servizi__foto img { aspect-ratio: 16 / 9; object-position: 62% 30%; }
  .griglia { --colonne: 2; }
  .piede__alto { grid-template-columns: 1fr 1fr; }
  .piede__marchio { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .testata__apri { display: grid; gap: 6px; width: 46px; height: 46px; place-content: center; border: 0; border-radius: 50%; background: var(--superficie); cursor: pointer; }
  .testata__apri i { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--inchiostro); transition: transform .35s var(--curva); }
  .testata__apri[aria-expanded="true"] i:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .testata__apri[aria-expanded="true"] i:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px; border-radius: var(--raggio); background: #fff; box-shadow: 0 0 0 1px var(--bordo), 0 30px 60px -30px rgba(11, 23, 38, .45); opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s, transform .4s var(--curva), visibility 0s .4s; }
  .menu.aperto { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .4s var(--curva); }
  .menu ul { flex-direction: column; }
  .menu ul a { padding: 13px 16px; font-size: 17px; }
  .menu-aperto .testata { background: #fff; }
  .testa-sezione { grid-template-columns: 1fr; }
  .testa-sezione > p { justify-self: start; }
}

/* ---------- telefono ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .contenitore { padding: 0 18px; }
  .testata__riga { height: 66px; }
  :root { --altezza-testata: 66px; }
  .marchio .palla { width: 34px; height: 34px; }
  .marchio__nome { font-size: 19px; }
  .apertura__bottoni .bottone { flex: 1 1 auto; }
  .browser__barra { height: 32px; padding: 0 12px; gap: 5px; }
  .browser__barra i { width: 8px; height: 8px; }
  .browser__url { font-size: 11px; padding: 2px 12px; }
  .cursore span { font-size: 11.5px; padding: 4px 10px; }
  .cursore--3 { display: none; }
  .clienti { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0; }
  .clienti__nota { padding-left: 18px; }
  .clienti__nastro { width: 100%; }
  .numero { padding: 22px 18px; }
  .servizio { grid-template-columns: 1fr; gap: 16px; padding: 26px 4px; }
  .servizio:hover { transform: none; box-shadow: none; background: none; }
  .griglia { --colonne: 1; grid-auto-rows: auto; }
  .griglia__voce { aspect-ratio: 4 / 3; }
  .griglia__voce--alta, .griglia__voce--larga { grid-row: auto; grid-column: auto; }
  .recensioni__virgolette { width: 50px; height: 40px; padding: 10px; }
  .modulo__riga { grid-template-columns: 1fr; }
  .modulo__invio .bottone { width: 100%; }
  .invito__bottoni .bottone { flex: 1 1 auto; }
  .piede__alto { grid-template-columns: 1fr; gap: 30px; }
  .piede__basso { flex-direction: column; }
  .torna-su { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .browser__comandi { gap: 8px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js [data-appare] { opacity: 1; transform: none; }
}

/* =====================================================================
   ANIMAZIONI ED EFFETTI
   ===================================================================== */

/* barra di avanzamento in alto */
.avanzamento { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.avanzamento i { display: block; height: 100%; background: linear-gradient(90deg, var(--ciano), var(--blu)); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* puntatore che segue il mouse (solo con il mouse) */
.puntatore, .puntino { position: fixed; left: 0; top: 0; z-index: 500; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.puntatore { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1.5px solid rgba(14, 179, 223, .7); display: grid; place-items: center; transition: opacity .3s, width .35s var(--curva), height .35s var(--curva), margin .35s var(--curva), background-color .3s, border-color .3s; }
.puntino { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ciano); }
.puntatore.vivo, .puntino.vivo { opacity: 1; }
.puntatore.sopra { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: rgba(14, 179, 223, .1); border-color: transparent; }
.puntatore.etichetta { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--ciano); border-color: var(--ciano); }
.puntatore::after { content: attr(data-testo); color: #fff; font-size: 14px; font-weight: 800; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--curva); }
.puntatore.etichetta::after { opacity: 1; transform: none; }
.puntatore.etichetta + .puntino, .puntatore.sopra + .puntino { opacity: 0; }

/* bottoni «magnetici»: si spostano verso il mouse */
.bottone, .tondo { transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--curva), box-shadow .3s, translate .45s var(--curva); }

/* titoli che salgono parola per parola */
.parola { display: inline-block; overflow: hidden; vertical-align: top; padding: .02em .03em .14em; margin: -.02em -.03em -.14em; }
.parola > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: left bottom; transition: transform 1.05s var(--curva); transition-delay: calc(var(--d, 0s) + var(--n) * 55ms); }
.svelato .parola > span { transform: none; }
.evidenza { position: relative; display: inline-block; color: var(--ciano-testo); }
.evidenza::after { content: ''; position: absolute; left: -.04em; right: -.04em; bottom: .12em; height: .2em; z-index: -1; border-radius: 4px; background: rgba(14, 179, 223, .28); transform-origin: left; }
.capsula i { animation: pallino 2.4s ease-in-out infinite; }
@keyframes pallino { 50% { box-shadow: 0 0 0 7px rgba(14, 179, 223, .06); } }

/* la rete: i poligoni del vecchio Netskin diventano una rete di punti viva */
.rete { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* servizi: la voce al centro dello schermo si accende e la foto cambia inquadratura */
.servizi__foto { isolation: isolate; }
.servizi__foto img { transition: transform 1.3s var(--curva), object-position 1.3s var(--curva); }
.servizi__foto[data-attivo="1"] img { transform: scale(1.18); object-position: 30% 70%; }
.servizi__foto[data-attivo="2"] img { transform: scale(1.32); object-position: 70% 15%; }
.servizi__didascalia { position: absolute; left: 18px; bottom: 18px; overflow: hidden; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; font-weight: 800; color: var(--inchiostro); }
.servizi__didascalia span { display: block; }
.servizi__didascalia span.cambia { animation: cambia .6s var(--curva); }
@keyframes cambia { from { transform: translateY(110%); } }
@media (min-width: 1081px) {
  .servizi__elenco { padding: 40px 0 26vh; }
  .servizio { padding: 46px 30px; opacity: .4; transition: opacity .5s, background-color .35s, box-shadow .35s, transform .45s var(--curva); }
  .servizio + .servizio { margin-top: 18px; }
  .servizio.attivo, .servizio:hover { opacity: 1; background: #fff; box-shadow: 0 18px 40px -26px rgba(11, 23, 38, .35); transform: translateX(6px); }
  .servizio.attivo .servizio__icona { background: var(--ciano); color: #fff; box-shadow: none; }
}
.servizio.attivo .servizio__icona .icona { animation: rimbalza .6s var(--curva); }
@keyframes rimbalza { 40% { transform: translateY(-5px) scale(1.08); } }

/* numeri: un passaggio del mouse li illumina */
.numero { transition: background-color .35s; }
.numero:hover { background: var(--superficie); }

/* portfolio: le foto si svelano dal basso entrando nello schermo e si inclinano sotto il mouse */
.js .griglia__voce .lavoro { clip-path: inset(100% 0 0 0 round var(--raggio-foto)); transition: clip-path 1.15s var(--curva) calc(var(--i, 0) * 90ms), transform .6s var(--curva); }
.js .griglia__voce.visto .lavoro { clip-path: inset(0 0 0 0 round var(--raggio-foto)); }
.js .griglia__voce .lavoro img { scale: 1.3; transition: scale 1.5s var(--curva) calc(var(--i, 0) * 90ms), transform 1.1s var(--curva); }
.lavoro { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.lavoro::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), transparent 55%); opacity: 0; transition: opacity .4s; }
.lavoro:hover::before { opacity: 1; }

/* recensioni: l'anello intorno alla freccia si riempie fino alla prossima */
.tondo--anello { position: relative; }
.anello { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.anello circle { fill: none; stroke: var(--ciano); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.recensioni.gira .anello circle { animation: carica 7s linear forwards; }
.recensioni.ferma .anello circle { animation-play-state: paused; }
@keyframes carica { to { stroke-dashoffset: 0; } }
.recensione.attiva blockquote { animation: entra-testo .8s var(--curva); }
@keyframes entra-testo { from { opacity: 0; filter: blur(6px); transform: translateY(10px); } }

/* mappa: il segno respira e galleggia */
.mappa__segno { animation: segno 2.4s ease-in-out infinite, galleggia 3s ease-in-out infinite alternate; }

@media (max-width: 640px) {
  .servizi__didascalia { font-size: 14px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .parola > span { transform: none; }
  .js .griglia__voce .lavoro { clip-path: none; }
  .js .griglia__voce .lavoro img { scale: 1; }
  .evidenza::after { transform: none; }
  .puntatore, .puntino { display: none; }
}

/* lavori a tutto schermo, da bordo a bordo (richiesta di Dario 31/10) */
.griglia { --spazio: 10px; width: auto; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 var(--spazio); grid-auto-rows: calc((100vw - 2 * var(--spazio) - (var(--colonne) - 1) * var(--spazio)) / var(--colonne) * .66); }
@media (max-width: 640px) { .griglia { --spazio: 8px; grid-auto-rows: auto; } }

/* ---------- scheda del lavoro: foto a tutto schermo come la home, testo a sinistra, il sito a destra ---------- */

.apertura--scheda { height: auto; max-height: none; min-height: max(100svh, 620px); }
.js .apertura--scheda .apertura__prima { visibility: hidden; }
.apertura--scheda .apertura__velo { background: linear-gradient(180deg, rgba(8, 22, 36, .55), rgba(8, 22, 36, .12) 22%), linear-gradient(90deg, rgba(8, 22, 36, .86), rgba(8, 22, 36, .6) 46%, rgba(8, 22, 36, .24) 100%); }
.apertura--scheda .apertura__griglia.scheda { height: auto; min-height: max(100svh, 620px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding-bottom: clamp(24px, 5vh, 56px); translate: none; opacity: 1; }
.scheda__testo .briciole a { color: rgba(255, 255, 255, .85); }
.scheda__testo .briciole a:hover { color: #fff; }
.apertura__titolo--scheda { max-width: none; margin: 12px 0 16px; font-size: clamp(2.4rem, min(4.4vw, 8.4vh), 4.4rem); }
.scheda__testo .etichette li { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32); }
.scheda__descrizione { margin-top: 20px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 14px rgba(8, 22, 36, .45); }
.scheda__online { margin: 18px 0 24px; font-size: 15px; color: rgba(255, 255, 255, .72); overflow-wrap: anywhere; }
.scheda__online a { font-weight: 700; color: var(--ciano-vivo); }
.scheda__online a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scheda__foto { width: 100%; max-width: min(100%, max(330px, (100svh - 250px) * 1.33)); justify-self: end; }
.browser--scheda { transform: perspective(1600px) rotateY(calc(-5deg + var(--mx, 0) * 10deg)) rotateX(calc(1.5deg - var(--my, 0) * 7deg)); transition: transform .9s var(--curva); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 44px 90px -34px rgba(0, 0, 0, .65); }

/* entrate: il testo arriva dallo sfocato, la finestra sale ruotando */
.js:not(.pronto) .scheda__testo > :not(.apertura__titolo) { opacity: 0; transform: translateY(30px); filter: blur(8px); }
.js .scheda__testo > :not(.apertura__titolo) { transition: opacity .9s var(--curva), transform 1.1s var(--curva), filter .9s; }
.js .scheda__testo > .briciole { transition-delay: .3s; }
.js .scheda__testo > .etichette { transition-delay: .75s; }
.js .scheda__testo > .scheda__descrizione { transition-delay: .85s; }
.js .scheda__testo > .scheda__online { transition-delay: .95s; }
.js .scheda__testo > .scheda__azione { transition-delay: 1.05s; }
.js:not(.pronto) .scheda__foto { opacity: 0; transform: perspective(1400px) translateY(130px) rotateX(26deg) scale(.86); }
.js .scheda__foto { transform-origin: 50% 100%; transition: opacity .9s var(--curva) .4s, transform 1.6s cubic-bezier(.16, 1, .3, 1) .4s; }

/* le frecce leggere portano al progetto precedente e successivo: passandoci sopra si vede quale */
.naviga__anteprima { position: absolute; top: 50%; width: 240px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: var(--ombra); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--curva); }
.schermo-freccia--prec .naviga__anteprima { left: 72px; transform: translate(-12px, -50%); }
.schermo-freccia--succ .naviga__anteprima { right: 72px; transform: translate(12px, -50%); }
.schermo-freccia:hover .naviga__anteprima, .schermo-freccia:focus-visible .naviga__anteprima { opacity: 1; transform: translate(0, -50%); }
.naviga__anteprima img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.naviga__anteprima > span { display: block; padding: 10px 6px 4px; font-weight: 800; line-height: 1.25; color: var(--inchiostro); }
.naviga__anteprima small { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tenue); }
@media (hover: none), (max-width: 1080px) { .naviga__anteprima { display: none; } }

/* tablet e telefono: testo e finestra uno sotto l'altra; la foto riempie il primo schermo e sfuma nel blu */
@media (max-width: 1080px) {
  .apertura--scheda .schermo, .apertura--scheda .apertura__prima { height: max(100svh, 620px); }
  .apertura--scheda .apertura__velo { background: linear-gradient(180deg, rgba(8, 22, 36, .5) 0, rgba(8, 22, 36, .74) 58svh, var(--scuro) 100svh); }
  .apertura--scheda .apertura__griglia.scheda { grid-template-columns: 1fr; align-items: start; align-content: start; padding-top: calc(var(--altezza-testata) + 70px); padding-bottom: 56px; }
  .scheda__foto { max-width: none; justify-self: stretch; }
  .browser--scheda { transform: none; }
}
@media (min-width: 701px) and (max-width: 1080px) {
  .apertura--scheda .schermo-freccia { top: 50svh; }
}
@media (max-width: 700px) {
  .apertura--scheda .apertura__velo { background: linear-gradient(180deg, rgba(8, 22, 36, .42) 0, rgba(8, 22, 36, .22) 16svh, rgba(8, 22, 36, .8) 34svh, rgba(8, 22, 36, .92) 62svh, var(--scuro) 100svh); }
  .apertura--scheda .apertura__griglia.scheda { padding-top: 236px; padding-bottom: 40px; }
}
@media (max-width: 700px) and (max-height: 730px) {
  .apertura--scheda .apertura__griglia.scheda { padding-top: 196px; }
}

/* ---------- in fondo alla scheda: precedente e successivo a tutta larghezza ---------- */

.griglia--coppia { --colonne: 2; --spazio: 18px; margin: 0; padding: 0; grid-auto-rows: auto; }
.griglia__voce--coppia { aspect-ratio: 2 / 1; }
.lavoro__nota { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.lavoro__nota .icona { width: 16px; height: 16px; }
.lavoro--coppia .lavoro__testo { padding: clamp(16px, 2vw, 26px); }
.lavoro--coppia .lavoro__nome { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.lavoro--coppia::after { background: linear-gradient(180deg, rgba(11, 23, 38, .08), rgba(11, 23, 38, .72)); }
.griglia__voce--coppia:last-child .lavoro__testo { text-align: right; }
.griglia__voce--coppia:last-child .lavoro__nota { justify-content: flex-end; }
@media (max-width: 640px) { .griglia--coppia { --colonne: 1; grid-auto-rows: auto; } .griglia__voce--coppia { aspect-ratio: 16 / 9; } }

/* =====================================================================
   APERTURA: i punti della rete formano il logo, esplodono e la pagina entra
   ===================================================================== */

html { scrollbar-gutter: stable; }
.intro { overflow: hidden; }

/* il nome che compare sotto il logo fatto di punti */
.intro-nome { position: absolute; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; padding-left: .55em; font-size: clamp(20px, 2.2vw, 32px); font-weight: 600; letter-spacing: .55em; color: var(--ciano); pointer-events: none; }
.intro-nome span { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity .6s, transform .9s var(--curva), filter .6s; transition-delay: calc(var(--n) * 55ms); }
.nome-su .intro-nome span { opacity: 1; transform: none; filter: none; }
.nome-via .intro-nome span { opacity: 0; transform: translateY(-14px) scale(1.5); filter: blur(12px); transition-duration: .45s; transition-delay: calc(var(--n) * 18ms); }

/* entrate della pagina: tutto parte nascosto e arriva quando l'html prende .pronto, mentre la foto si scopre */
.js .apertura__testo > * { animation: none; }
.js:not(.pronto) .apertura__testo > :not(.apertura__titolo), .js:not(.pronto) .apertura__piede > * { opacity: 0; transform: translateY(34px); filter: blur(8px); }
.js .apertura__testo > :not(.apertura__titolo), .js .apertura__piede > * { transition: opacity .9s var(--curva), transform 1.1s var(--curva), filter .9s; }
.js .apertura__testo > .capsula { transition-delay: .4s; }
.js .apertura__testo > .apertura__sotto { transition-delay: .95s; }
.js .apertura__testo > .apertura__bottoni { transition-delay: 1.05s; }
.js .apertura__piede > .apertura__numeri { transition-delay: 1.15s; }
.js .apertura__piede > .vetrinetta { transition-delay: 1.25s; }
.js .cursore { animation: gira 9s ease-in-out infinite alternate; transition: translate 1s var(--curva), opacity .5s, scale .8s cubic-bezier(.34, 1.56, .64, 1); }
.js:not(.pronto) .cursore { opacity: 0; scale: .2; }
.js .cursore--1 { transition-delay: 0s, 1.4s, 1.4s; }
.js .cursore--2 { transition-delay: 0s, 1.55s, 1.55s; }
.js .cursore--3 { transition-delay: 0s, 1.7s, 1.7s; }
.intro:not(.pronto) .testata { opacity: 0; transform: translateY(-100%); }
.js .testata { transition: background-color .35s, box-shadow .35s, backdrop-filter .35s, opacity .8s .15s, transform 1s var(--curva) .15s; }
.intro:not(.pronto) .clienti { opacity: 0; }
.js .clienti { transition: opacity 1s 1s; }

/* intestazione bianca sopra la foto, finché non si scende */
.su-foto .testata:not(.testata--scorsa) .marchio { color: #fff; }
.su-foto .testata:not(.testata--scorsa) .testata__apri { background: rgba(255, 255, 255, .2); }
.su-foto .testata:not(.testata--scorsa) .testata__apri i { background: #fff; }
@media (min-width: 901px) {
  .su-foto .testata:not(.testata--scorsa) .menu ul a { color: #fff; }
  .su-foto .testata:not(.testata--scorsa) .menu ul a:hover { background: rgba(255, 255, 255, .18); }
}
.menu-aperto .su-foto .testata:not(.testata--scorsa) .marchio { color: var(--ciano); }
.menu-aperto .su-foto .testata:not(.testata--scorsa) .testata__apri { background: var(--superficie); }
.menu-aperto .su-foto .testata:not(.testata--scorsa) .testata__apri i { background: var(--inchiostro); }

/* i cursori girano nella parte libera della foto */
.cursore--1 { --c: var(--ciano); top: 22%; left: auto; right: 15%; }
.cursore--2 { --c: var(--inchiostro); top: 41%; right: max(3%, 104px - max(0px, (100vw - 1240px) / 2)); }
.cursore--3 { --c: var(--blu); top: 60%; bottom: auto; right: 24%; }
@media (max-width: 1180px) {
  .vetrinetta { width: min(380px, 100%); }
  .apertura__numeri { gap: 12px 24px; }
}
@media (max-width: 1080px) {
  .cursore--3 { display: none; }
  .cursore--1 { top: 13%; right: 34%; }
  .cursore--2 { top: 21%; right: 8%; }
}
/* schermi bassi, come i portatili col browser aperto: tutto più stretto, così ci sta senza tagli */
@media (min-width: 901px) and (max-height: 760px) {
  .apertura .capsula { margin-bottom: 12px; }
  .apertura__sotto { margin-top: 14px; }
  .apertura__bottoni { margin-top: 18px; }
  .vetrinetta { gap: 6px; }
  .vetrinetta__sito { grid-template-columns: 92px minmax(0, 1fr) auto; padding: 6px 12px 6px 6px; }
  .vetrinetta__comandi .tondo { width: 34px; height: 34px; }
}
@media (max-width: 900px) {
  .vetrinetta__finestra { display: none; }
  .vetrinetta__sito { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 12px 11px 16px; }
  .apertura__piede { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .apertura__velo { background: linear-gradient(180deg, rgba(8, 22, 36, .5), rgba(8, 22, 36, 0) 14%), linear-gradient(0deg, rgba(8, 22, 36, .92), rgba(8, 22, 36, .72) 52%, rgba(8, 22, 36, .1) 82%); }
  .apertura__testo { margin: auto 0 18px; }
  .apertura__sotto { margin-top: 14px; font-size: 16px; }
  .apertura__bottoni { margin-top: 20px; }
  .apertura__numeri { width: 100%; justify-content: space-between; gap: 8px 14px; font-size: 13px; }
  .apertura__numeri strong { font-size: 22px; }
  .vetrinetta { width: 100%; }
  .cursore--1 { top: 74px; left: 4%; right: auto; }
  .cursore--2 { top: 102px; right: 4%; }
}
@media (max-width: 700px) and (max-height: 730px) {
  .apertura__numeri { display: none; }
  .apertura__sotto { display: none; }
  .apertura .cursore { display: none; }
}

/* il titolo arriva lettera per lettera, dallo sfocato, ruotando sulla base */
.apertura__titolo { perspective: 900px; }
.apertura__titolo .gruppo { display: inline-block; white-space: nowrap; }
.apertura__titolo .lettera { display: inline-block; transform-origin: 50% 100%; transition: opacity .8s, transform 1.2s cubic-bezier(.16, 1, .3, 1), filter .9s; transition-delay: calc(.45s + var(--c) * 26ms); }
.js:not(.pronto) .apertura__titolo .lettera { opacity: 0; transform: translateY(.6em) rotateX(-80deg) scale(.9); filter: blur(12px); }
.js .evidenza::after { transform: scaleX(0); transition: transform 1s var(--curva); }
.pronto .evidenza::after { transform: none; transition-delay: 1.7s; }

/* se lo script non parte, dopo 4 secondi si vede comunque tutto */
.js:not(.pronto) .apertura__testo > *, .js:not(.pronto) .apertura__titolo .lettera, .js:not(.pronto) .apertura__piede > *, .js:not(.pronto) .scheda__testo > *, .js:not(.pronto) .scheda__foto, .js:not(.pronto) .testata, .js:not(.pronto) .clienti, .js:not(.pronto) .cursore { animation: mostra-comunque 0s 5s forwards; }
@keyframes mostra-comunque { to { opacity: 1; transform: none; filter: none; scale: 1; } }

/* «Chi siamo»: le parole si accendono mentre si scorre */
.js .azienda__testo .parola-luce { opacity: .18; transition: opacity .35s; }
.js .azienda__testo .parola-luce.accesa { opacity: 1; }

/* portfolio: le foto scorrono più lente della pagina (parallasse) */
.js .griglia__voce.visto .lavoro img { scale: 1.14; translate: 0 var(--py, 0px); }

@media (prefers-reduced-motion: reduce) {
  .js .azienda__testo .parola-luce { opacity: 1; }
  .js .griglia__voce.visto .lavoro img { scale: 1; translate: none; }
}

/* due frecce leggere ai lati per sfogliare le foto */
.schermo-freccia { position: absolute; z-index: 2; top: 50%; width: 64px; height: 104px; margin-top: -52px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: none; color: #fff; opacity: calc(.85 - var(--s, 0) * 1.7); cursor: pointer; filter: drop-shadow(0 2px 8px rgba(8, 22, 36, .5)); transition: opacity .35s, background-color .3s, translate .45s var(--curva); }
.schermo-freccia .icona { width: 24px; height: 48px; transition: transform .45s var(--curva); }
.schermo-freccia--prec { left: 14px; --fx: -24px; }
.schermo-freccia--succ { right: 14px; --fx: 24px; }
.schermo-freccia:hover, .schermo-freccia:focus-visible { opacity: 1; background: rgba(255, 255, 255, .1); }
.schermo-freccia--prec:hover .icona { transform: translateX(-5px); }
.schermo-freccia--succ:hover .icona { transform: translateX(5px); }
.schermo-freccia:active .icona { transform: scale(.9); }
.js:not(.pronto) .schermo-freccia { visibility: hidden; }
.pronto .schermo-freccia { animation: freccia-entra .9s var(--curva) 1.3s backwards; }
@keyframes freccia-entra { from { opacity: 0; transform: translateX(var(--fx)); } }
/* il testo resta sempre dentro le frecce */
.apertura .apertura__griglia { padding-left: max(24px, 92px - max(0px, (100vw - 1240px) / 2)); padding-right: max(24px, 92px - max(0px, (100vw - 1240px) / 2)); }
@media (max-width: 700px) {
  .apertura .apertura__griglia { padding-left: 18px; padding-right: 18px; }
  .schermo-freccia { top: 190px; width: 44px; height: 64px; margin-top: -32px; }
  .schermo-freccia .icona { width: 16px; height: 32px; }
  .schermo-freccia--prec { left: 2px; }
  .schermo-freccia--succ { right: 2px; }
}
@media (max-width: 700px) and (max-height: 730px) {
  .schermo-freccia { top: 150px; }
}
