/* Studio62 — foglio di stile
   Concept "Il punto": tipografia enorme, Carta e Nero, un solo accento blu.
   Griglia editoriale: etichetta a sinistra (3/12), contenuto a destra (9/12). */

@font-face { font-family: "Inter"; src: url(/fonts/inter-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-500.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/fonts/inter-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/inter-display-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/inter-display-700.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(/fonts/inter-display-800.woff) format("woff"); font-weight: 800; font-display: swap; }

:root {
  --carta: #F4F3EF;
  --nero: #111111;
  --punto: #2F55FF;
  --punto-chiaro: #7A93FF;
  --grigio: #5C5C5C;
  --grigio-chiaro: #A3A3A0;
  --linea: #D9D8D2;
  --superficie: #EAE9E3;
  --linea-scura: #2A2A28;

  --display: "Inter Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --r: 21.2%;            /* raggio del monogramma: 108.42 / 512 */
  --r-img: clamp(14px, 2vw, 28px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--carta); color: var(--nero);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--punto); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--punto); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--nero); color: var(--carta); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio); margin: 0; }
.dot { display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: var(--punto); margin-left: .05em; vertical-align: baseline; }
.h2 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 54ch; }
.more { margin-top: 32px; }

/* Bottoni e link */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  background: var(--nero); color: var(--carta); text-decoration: none; font-weight: 500; border: 0; cursor: pointer;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--punto); }
.btn-small { padding: 9px 16px; font-size: 14.5px; }
.btn-light { background: var(--carta); color: var(--nero); }
.btn-light:hover { background: var(--punto); color: #fff; }
.arr { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); flex: none; }
a:hover > .arr, a:hover .work-arrow .arr, .btn:hover .arr { transform: translateX(4px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--carta) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--linea); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { position: relative; width: 36px; height: 36px; flex: none; }
.brand-svg { width: 36px; height: 36px; }
.m-bg { fill: var(--nero); } .m-num { fill: var(--carta); transition: opacity .3s; } .m-dot { fill: var(--punto); transition: opacity .3s; }
.brand-fb { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 12.5px; letter-spacing: -.02em; color: var(--carta); opacity: 0; transition: opacity .3s; }
.brand:hover .m-num, .brand:hover .m-dot, .brand:focus-visible .m-num, .brand:focus-visible .m-dot { opacity: 0; }
.brand:hover .brand-fb, .brand:focus-visible .brand-fb { opacity: 1; }
.brand-word { font-family: var(--mono); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; }
.main-nav { display: none; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 500; position: relative; padding-block: 6px; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--punto); transform: scale(0); transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scale(1); }
.header-end { display: flex; align-items: center; gap: 18px; }
.header-end .btn-small { display: none; }
.avail { display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--grigio); }
.avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--punto); box-shadow: 0 0 0 0 color-mix(in srgb, var(--punto) 50%, transparent); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.menu-toggle { background: none; border: 1px solid var(--nero); border-radius: 999px; padding: 8px 16px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .header-end .btn-small { display: inline-flex; }
}
@media (min-width: 1560px) { .avail { display: inline-flex; } }
.btn-small, .avail { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1100px) { .main-nav { gap: 18px; } .header-end .btn-small { display: none; } }

.menu { position: fixed; inset: 0; z-index: 35; background: var(--nero); color: var(--carta); padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); overflow-y: auto; }
.menu-inner { display: flex; flex-direction: column; gap: 4px; padding-block: 24px 40px; }
.menu-inner > a { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 14vw, 88px); letter-spacing: -.05em; line-height: 1.02; text-decoration: none; }
.menu-inner > a[aria-current] { color: var(--punto-chiaro); }
.menu-foot { margin-top: 40px; display: grid; gap: 8px; }
.menu-foot .label { color: var(--grigio-chiaro); }
.menu-foot a { text-decoration: none; }
.menu-mail { font-size: 20px; font-weight: 500; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--nero); color: var(--carta); }
body.menu-open .m-bg { fill: var(--carta); } body.menu-open .m-num { fill: var(--nero); }
body.menu-open .menu-toggle { border-color: var(--carta); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 9vw, 120px) clamp(48px, 7vw, 96px); }
.hero-title { font-size: clamp(60px, 13.6vw, 212px); font-weight: 800; letter-spacing: -.06em; line-height: .86; margin-left: -.04em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-dot { transition: transform .6s var(--ease); }
.js .hero-title .line > span { transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.js .hero-title .line:nth-child(2) > span { animation-delay: .08s; }
.js .hero-title .line:nth-child(3) > span { animation-delay: .16s; }
.js .hero-dot { transform: translateY(-1.2em) scale(0); animation: drop .7s cubic-bezier(.3,1.6,.5,1) .85s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes drop { to { transform: none; } }
.hero-foot { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 28px; }
@media (min-width: 900px) { .hero-foot { grid-template-columns: 7fr 5fr; align-items: end; } .hero-actions { justify-self: end; } }
.hero-lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; max-width: 34ch; letter-spacing: -.01em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.clients { margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; font-weight: 500; }
.clients i { font-style: normal; color: var(--punto); margin-inline: 10px; }

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(72px, 10vw, 140px); }
.section-tight { padding-top: 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
@media (min-width: 900px) { .sec-head { grid-template-columns: 3fr 9fr; } .sec-head > .label { padding-top: .9em; } }
.sec-head .lead { margin-top: 18px; }

.page-hero { padding-block: clamp(48px, 9vw, 120px) clamp(40px, 6vw, 80px); }
.page-title { font-size: clamp(64px, 14vw, 200px); font-weight: 800; letter-spacing: -.06em; line-height: .86; margin: 16px 0 0 -.04em; }
.page-title .count { font-family: var(--mono); font-weight: 400; font-size: 14px; letter-spacing: 0; vertical-align: top; position: relative; top: .6em; color: var(--grigio); }
.page-title-long { font-size: clamp(42px, 11vw, 176px); }
.nowrap { white-space: nowrap; }
.page-hero .lead { margin-top: clamp(24px, 3vw, 40px); }

/* ---------- Lista lavori ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-size: 14.5px; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; cursor: pointer; text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.chip:hover { border-color: var(--nero); }
.chip[aria-pressed="true"] { background: var(--nero); color: var(--carta); border-color: var(--nero); }
.work { position: relative; }
.work-list { border-top: 1px solid var(--linea); }
.work-item { border-bottom: 1px solid var(--linea); }
.work-item[hidden] { display: none; }
.work-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding-block: 22px; text-decoration: none; align-items: baseline; }
.work-thumb { grid-column: 1 / -1; margin-bottom: 12px; }
.work-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: var(--pos, center); border-radius: var(--r-img); }
.work-client { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 5vw, 64px); letter-spacing: -.045em; line-height: 1; transition: color .3s, transform .5s var(--ease); }
.work-title { grid-column: 1 / -1; grid-row: 3; color: var(--grigio); font-size: 16px; }
.work-meta { grid-column: 1 / -1; grid-row: 4; display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio); }
.work-arrow { grid-row: 2; grid-column: 2; align-self: center; }
.work-arrow .arr { width: 28px; height: 28px; }
@media (min-width: 900px) {
  .work-row { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) 2fr 40px; padding-block: 26px; align-items: center; }
  .work-thumb { display: none; }
  .work-title { grid-column: 2; grid-row: 1; }
  .work-meta { grid-column: 3; grid-row: 1; flex-direction: column; gap: 2px; }
  .work-arrow { grid-column: 4; grid-row: 1; justify-self: end; }
  .work-row:hover .work-client { color: var(--punto); transform: translateX(12px); }
}
.work-preview { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 3; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .45s var(--ease); border-radius: 22px; overflow: hidden; }
.work-preview img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, center); }
.work-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (max-width: 899px), (hover: none) { .work-preview { display: none; } }

/* ---------- Manifesto ---------- */
.manifesto-inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .manifesto-inner { grid-template-columns: 3fr 9fr; } .manifesto-inner > .label { padding-top: .8em; } }
.manifesto-text { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 62px); letter-spacing: -.035em; line-height: 1.08; }
.js .manifesto-text .w { opacity: .18; transition: opacity .4s; }
.js .manifesto-text .w.on { opacity: 1; }

/* ---------- Social ---------- */
.social-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-card { display: grid; gap: 10px; padding: 26px; border: 1px solid var(--linea); border-radius: 26px; text-decoration: none; min-height: 200px; align-content: space-between; transition: background .35s var(--ease), color .35s, border-color .35s; }
.social-name { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1; }
.social-handle { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; color: var(--grigio); }
.social-card:hover { background: var(--nero); color: var(--carta); border-color: var(--nero); }
.social-card:hover .label, .social-card:hover .social-handle { color: var(--grigio-chiaro); }

/* ---------- Instagram ---------- */
.ig { padding-top: 0; }
.ig-card { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: clamp(22px, 2.6vw, 36px); background: var(--nero); color: var(--carta); text-decoration: none; overflow: hidden; }
@media (min-width: 900px) { .ig-card { grid-template-columns: 5fr 6fr; } }
.ig-side { display: grid; gap: 20px; justify-items: start; }
.ig-side .label { color: var(--grigio-chiaro); }
.ig-profile { display: flex; align-items: center; gap: 14px; }
.ig-avatar { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--punto), var(--punto-chiaro), var(--carta), var(--punto)); }
.ig-avatar::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; box-shadow: 0 0 0 2px var(--nero); pointer-events: none; }
.ig-mark { width: 100%; height: 100%; border-radius: 50%; background: var(--carta); padding: 9px; }
.ig-mark .m-bg { fill: var(--nero); } .ig-mark .m-num { fill: var(--carta); }
.ig-id { display: grid; gap: 2px; line-height: 1.25; }
.ig-id b { font-weight: 600; font-size: 17px; }
.ig-id span { font-size: 14px; color: var(--grigio-chiaro); }
.ig-title { font-size: clamp(34px, 4.4vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.ig-text { color: var(--grigio-chiaro); max-width: 36ch; }
.ig-btn { pointer-events: none; }
.ig-card:hover .ig-btn { background: var(--punto); color: #fff; }
.ig-card:hover .ig-btn .arr { transform: translateX(4px); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-tile { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; background: #1d1d1d; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.ig-tile.is-reel::after { content: ""; position: absolute; top: 10px; right: 10px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.ig-card:hover .ig-tile img { transform: scale(1.05); }
.ig-card:hover .ig-tile:nth-child(even) img { opacity: .85; }

.ig-mini { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid var(--linea); border-radius: 999px; text-decoration: none; background: #fff; transition: border-color .3s, box-shadow .3s; }
.ig-mini:hover { border-color: var(--nero); box-shadow: 0 10px 30px -18px rgba(17,17,17,.4); }
.ig-mini .ig-avatar { width: 46px; height: 46px; }
.ig-mini .ig-avatar::after { box-shadow: 0 0 0 2px #fff; }
.ig-mini .ig-mark { padding: 7px; }
.ig-mini .ig-id span { color: var(--grigio); font-size: 13px; }
.ig-mini-btn { margin-left: 8px; padding: 8px 16px; border-radius: 999px; background: var(--punto); color: #fff; font-weight: 500; font-size: 14px; }

/* Instagram in miniatura nella barra in alto */
.ig-head { display: flex; align-items: center; gap: 10px; height: 46px; padding: 4px 5px 4px 4px; border-radius: 999px; background: var(--nero); color: var(--carta); text-decoration: none; flex: none; transition: transform .3s var(--ease); }
.ig-head:hover { transform: translateY(-1px); }
.ig-head .ig-avatar { width: 38px; height: 38px; padding: 2px; }
.ig-head .ig-avatar::after { inset: 2px; box-shadow: 0 0 0 1.5px var(--nero); }
.ig-head .ig-mark { padding: 6px; }
.ig-head-id { display: none; line-height: 1.15; }
.ig-head-id b { font-weight: 600; font-size: 13px; }
.ig-head-id span { display: block; font-size: 11px; color: var(--grigio-chiaro); }
.ig-head-grid { display: none; gap: 3px; }
.ig-head-grid img { width: 24px; height: 30px; object-fit: cover; border-radius: 4px; }
.ig-head-btn { display: none; padding: 7px 13px; border-radius: 999px; background: var(--punto); color: #fff; font-size: 13px; font-weight: 500; }
.ig-head:hover .ig-head-btn { background: var(--punto-chiaro); }
@media (min-width: 900px) { .ig-head { margin-right: 4px; } }
@media (min-width: 1100px) { .ig-head { padding-left: 4px; padding-right: 5px; } .ig-head-id { display: block; padding-right: 2px; } .ig-head-btn { display: inline-block; } }
@media (min-width: 1280px) { .ig-head-grid { display: flex; } }
@media (min-width: 900px) and (max-width: 1100px) { .ig-head { height: 42px; padding: 2px; } .ig-head .ig-avatar { width: 38px; height: 38px; } }
@media (max-width: 899px) { .ig-head { height: 40px; padding: 1px; background: transparent; } .ig-head .ig-avatar { width: 38px; height: 38px; } .ig-head .ig-avatar::after { box-shadow: 0 0 0 1.5px var(--carta); } }
body.menu-open .ig-head .ig-avatar::after { box-shadow: 0 0 0 1.5px var(--nero); }

/* ---------- Servizi (home) ---------- */
.svc-list { border-top: 1px solid var(--linea); }
.svc-list li { border-bottom: 1px solid var(--linea); }
.svc-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding-block: 22px; text-decoration: none; align-items: center; }
.svc-name { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -.03em; line-height: 1.1; }
.svc-line { grid-column: 1; color: var(--grigio); }
.svc-row .work-arrow { grid-column: 2; grid-row: 1 / span 2; }
@media (min-width: 900px) { .svc-row { grid-template-columns: 5fr 6fr 40px; } .svc-line { grid-column: 2; grid-row: 1; } .svc-row .work-arrow { grid-column: 3; grid-row: 1; justify-self: end; } }
.svc-row:hover .svc-name { color: var(--punto); }

/* ---------- Metodo ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--linea); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); border-top: 0; } }
.steps li { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--linea); align-content: start; }
@media (min-width: 1100px) { .steps li { padding: 24px 28px 0 0; border-bottom: 0; border-top: 2px solid var(--nero); } .steps li:first-child { border-top-color: var(--punto); } }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--grigio); }
.steps h3 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.steps p { color: var(--grigio); font-size: 16px; max-width: 34ch; }

/* ---------- CTA ---------- */
.cta { background: var(--nero); color: var(--carta); padding-block: clamp(80px, 12vw, 160px); }
.cta .label { color: var(--grigio-chiaro); }
.cta-title { font-size: clamp(48px, 9vw, 140px); font-weight: 800; letter-spacing: -.055em; line-height: .9; margin-top: 20px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.copy { display: inline-flex; align-items: baseline; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; font-size: clamp(18px, 2vw, 24px); font-weight: 500; text-align: left; }
.copy-text { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; overflow-wrap: anywhere; }
.copy-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--grigio-chiaro); }
.copy.done .copy-hint { color: var(--punto-chiaro); }
.copy-dark .copy-hint { color: var(--grigio); }
.copy-dark.done .copy-hint { color: var(--punto); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nero); color: var(--carta); border-top: 1px solid var(--linea-scura); padding-top: 64px; overflow: hidden; }
.site-footer .label { color: var(--grigio-chiaro); }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 6fr 2fr 2fr 2fr; } }
.footer-claim { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.025em; line-height: 1.15; max-width: 22ch; }
.footer-mail { display: inline-block; margin-top: 18px; color: var(--punto-chiaro); font-weight: 500; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 15.5px; }
.footer-col a { text-decoration: none; } .footer-col a:hover { color: var(--punto-chiaro); }
.footer-col span:not(.label) { color: var(--grigio-chiaro); }
.footer-legal { display: flex; gap: 20px; margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--linea-scura); font-size: 13.5px; color: var(--grigio-chiaro); }
.footer-legal a { text-decoration: none; } .footer-legal a:hover { color: var(--carta); }
.footer-giant { font-family: var(--display); font-weight: 800; font-size: clamp(160px, 42vw, 640px); letter-spacing: -.07em; line-height: .72; margin: 28px 0 -0.1em max(12px, 2vw); white-space: nowrap; user-select: none; }

/* ---------- Case study ---------- */
.case-hero { padding-block: clamp(32px, 6vw, 72px) clamp(32px, 5vw, 56px); }
.back { display: inline-block; text-decoration: none; font-weight: 500; margin-bottom: clamp(28px, 4vw, 48px); color: var(--grigio); }
.back:hover { color: var(--nero); }
.case-title { font-size: clamp(42px, 7.4vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: .94; margin-top: 18px; max-width: 16ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: clamp(32px, 4vw, 52px) 0 0; padding-top: 20px; border-top: 1px solid var(--linea); }
.case-meta div { display: grid; gap: 3px; }
.case-meta dd { margin: 0; font-weight: 500; }
.case-meta a { color: var(--punto); }
.cover { display: grid; gap: 12px; }
.cover-pair { grid-template-columns: 1fr 1fr; }
.g-item { border-radius: var(--r-img); overflow: hidden; background: var(--superficie); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item.is-screen { padding: clamp(14px, 3.4vw, 56px); display: grid; place-items: center; }
.g-item.is-screen img { border-radius: clamp(6px, .8vw, 12px); box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 18px 50px -18px rgba(17,17,17,.28); height: auto; }
.g-item.is-screen { background: var(--superficie); }
.frame-browser { width: 100%; border-radius: clamp(8px, 1vw, 14px); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(17,17,17,.06), 0 30px 60px -28px rgba(17,17,17,.35); }
.frame-browser img { border-radius: 0 !important; box-shadow: none !important; width: 100%; height: auto; }
.fb-bar { height: clamp(22px, 2.6vw, 38px); display: flex; align-items: center; gap: clamp(4px, .5vw, 8px); padding: 0 clamp(8px, 1vw, 14px); background: #F7F7F5; border-bottom: 1px solid #E6E5E0; }
.fb-bar i { width: clamp(6px, .75vw, 11px); height: clamp(6px, .75vw, 11px); border-radius: 50%; background: #D9D8D2; flex: none; }
.fb-url { margin-left: clamp(6px, 1.2vw, 18px); flex: 0 1 420px; min-width: 0; height: clamp(14px, 1.5vw, 22px); border-radius: 99px; background: #EDECE7; font-size: clamp(9px, .85vw, 12px); color: var(--grigio); display: flex; align-items: center; padding-left: 12px; overflow: hidden; white-space: nowrap; }
.frame-laptop { width: 100%; }
.fl-lid { width: 86%; margin: 0 auto; background: #1a1a1a; border-radius: clamp(10px, 1.6vw, 22px) clamp(10px, 1.6vw, 22px) 4px 4px; padding: 1.8% 1.8% 2.1%; position: relative; box-shadow: inset 0 0 0 2px #2c2c2c; }
.fl-lid::before { content: ""; position: absolute; top: .7%; left: 50%; width: clamp(3px, .45vw, 7px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #3a3a3a; }
.fl-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; border-radius: 3px; }
.fl-screen picture { position: absolute; inset: 0; }
.fl-screen img { width: 100%; height: 100% !important; object-fit: cover; object-position: center top; border-radius: 0 !important; box-shadow: none !important; }
.fl-screen.is-contain { aspect-ratio: 16 / 9; }
.fl-screen.is-contain img { object-fit: contain; object-position: center top; }
.frame-phone.is-full .fp-screen { aspect-ratio: 738 / 1600; }
.frame-phone.is-full .fp-island { display: none; }
.fl-base { position: relative; height: clamp(8px, 1.5vw, 22px); background: linear-gradient(#d9d8d4, #b9b8b3 60%, #8f8e89); border-radius: 2px 2px 40% 40% / 2px 2px 100% 100%; box-shadow: 0 30px 50px -22px rgba(17,17,17,.45); }
.fl-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 14%; height: 40%; transform: translateX(-50%); background: #a9a8a3; border-radius: 0 0 10px 10px; }
.g-item.is-phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 64px); }
.frame-phone { --w: clamp(140px, 23vw, 300px); width: var(--w); flex: none; position: relative; border-radius: calc(var(--w) * .17); padding: calc(var(--w) * .012);
  background: linear-gradient(145deg, #6b6b70 0%, #2a2a2e 22%, #4a4a4f 50%, #1f1f22 78%, #5a5a5f 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 50px 80px -30px rgba(17,17,17,.55), 0 18px 30px -18px rgba(17,17,17,.35); }
.frame-phone::before, .frame-phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #3a3a3e; }
.frame-phone::before { left: -3px; top: 22%; height: 7%; box-shadow: 0 calc(var(--w) * .14) 0 #3a3a3e, 0 calc(var(--w) * .25) 0 #3a3a3e; }
.frame-phone::after { right: -3px; top: 28%; height: 12%; }
.fp-bezel { border-radius: calc(var(--w) * .155); background: #050505; padding: calc(var(--w) * .022); }
.fp-screen { position: relative; border-radius: calc(var(--w) * .135); overflow: hidden; aspect-ratio: 9 / 19.5; background: #fff; display: flex; flex-direction: column; }
.fp-status { flex: none; position: relative; height: calc(var(--w) * .13); display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * .075); font-family: var(--body); font-weight: 600; font-size: calc(var(--w) * .045); color: #111; }
.fp-island { position: absolute; left: 50%; top: calc(var(--w) * .035); transform: translateX(-50%); width: calc(var(--w) * .2); height: calc(var(--w) * .058); border-radius: 99px; background: #000; }
.fp-icons { display: flex; gap: 3px; } .fp-icons i { display: block; width: calc(var(--w) * .05); height: calc(var(--w) * .03); border-radius: 2px; background: currentColor; }
.frame-phone.is-dark .fp-screen { background: #0b0b0b; } .frame-phone.is-dark .fp-status { color: #fff; }
.fp-view { position: relative; flex: 1; min-height: 0; }
.fp-view picture { position: absolute; inset: 0; }
.g-item .fp-view img { width: 100%; height: 100% !important; object-fit: cover; object-position: top; border-radius: 0 !important; box-shadow: none !important; }
.g-item.is-phones { perspective: 1600px; padding-block: clamp(36px, 6vw, 90px) clamp(48px, 8vw, 120px); }
.g-item.is-phones .frame-phone:nth-child(odd) { margin-top: calc(var(--w) * .3); transform: rotateY(14deg) rotateZ(-2deg); }
.g-item.is-phones .frame-phone:nth-child(even) { transform: rotateY(-12deg) rotateZ(2deg); }
.g-item.is-phones .frame-phone { translate: 0 var(--py, 0px); }

.chapters { display: grid; gap: 36px; padding-block: clamp(48px, 7vw, 96px); }
.chapters:empty { display: none; }
.chapter { display: grid; gap: 12px; }
@media (min-width: 900px) { .chapter { grid-template-columns: 3fr 9fr; } .chapter .label { padding-top: .5em; } }
.chapter p { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; letter-spacing: -.015em; max-width: 36ch; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(6, 1fr); }
.g-full { grid-column: 1 / -1; }
.g-half { grid-column: 1 / -1; }
.g-third { grid-column: span 3; }
@media (min-width: 760px) { .g-half { grid-column: span 3; } .g-third { grid-column: span 2; } }
.sibling { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding-block: 0 clamp(48px, 7vw, 96px); }
.next { display: block; background: var(--nero); color: var(--carta); text-decoration: none; padding-block: clamp(64px, 10vw, 140px); }
.next-inner { display: grid; gap: 14px; }
.next .label { color: var(--grigio-chiaro); }
.next-client { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 11vw, 168px); letter-spacing: -.06em; line-height: .88; transition: color .35s; }
.next-title { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(18px, 2vw, 24px); color: var(--grigio-chiaro); }
.next:hover .next-client { color: var(--punto-chiaro); }

/* ---------- Reel nel case study ---------- */
.reel { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: 12px; padding: clamp(36px, 6vw, 88px) clamp(20px, 5vw, 80px); border-radius: var(--r-img); background: var(--nero); color: var(--carta); overflow: hidden; }
@media (min-width: 900px) { .reel { grid-template-columns: 6fr 5fr; } }
.reel-text { display: grid; gap: 18px; justify-items: start; }
.reel-text .label { color: var(--grigio-chiaro); }
.reel-title { font-size: clamp(36px, 5vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.reel-text p:not(.label) { color: var(--grigio-chiaro); max-width: 40ch; font-size: 17px; }
.reel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 8px; }
.reel-ig { color: var(--carta); }
.reel-sound { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--linea-scura); background: transparent; color: var(--carta); font-weight: 500; cursor: pointer; transition: background .3s, border-color .3s; }
.reel-sound::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grigio-chiaro); transition: background .3s; }
.reel-sound:hover { border-color: var(--carta); }
.reel-sound .rs-on { display: none; }
.reel-sound[aria-pressed="true"] .rs-on { display: inline; } .reel-sound[aria-pressed="true"] .rs-off { display: none; }
.reel-sound[aria-pressed="true"]::before { background: var(--punto); }
.reel-phone { display: flex; justify-content: center; perspective: 1600px; }
.reel-phone .frame-phone { --w: clamp(200px, 26vw, 320px); transform: rotateY(-10deg) rotateZ(2deg); translate: 0 var(--py, 0px); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 50px 90px -30px rgba(0,0,0,.8); }
.fp-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; display: block; cursor: pointer; }

/* ---------- Servizi (pagina) ---------- */
.svc-detail { border-top: 1px solid var(--linea); }
.svc-item { display: grid; gap: 20px; padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--linea); }
@media (min-width: 900px) { .svc-item { grid-template-columns: 6fr 6fr; gap: 48px; } }
.svc-big { font-size: clamp(40px, 5.6vw, 80px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.svc-body { display: grid; gap: 20px; align-content: start; }
.svc-phrase { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.35; letter-spacing: -.01em; }
.svc-includes { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-includes li { font-size: 14.5px; padding: 6px 12px; border-radius: 999px; background: var(--superficie); }
.svc-body .link { justify-self: start; }
.faq { border-top: 1px solid var(--linea); max-width: 900px; margin-left: auto; width: 100%; }
@media (min-width: 900px) { .faq { width: 75%; } }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: .4em; border-radius: 50%; border: 2px solid var(--nero); transition: background .3s, border-color .3s; }
.faq details[open] summary::after { background: var(--punto); border-color: var(--punto); }
.faq details p { padding-bottom: 24px; color: var(--grigio); max-width: 60ch; }

/* ---------- Studio ---------- */
.code62 { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); margin-top: 24px; }
.glyph { position: relative; display: grid; justify-items: start; gap: 12px; background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: clamp(140px, 30vw, 420px); letter-spacing: -.06em; line-height: .78; }
.glyph .g-front, .glyph .g-back { grid-area: 1 / 1; transition: transform .7s var(--ease), opacity .5s; pointer-events: none; }
.glyph .g-back { opacity: 0; transform: translateY(18%); color: var(--punto); }
.glyph small { grid-area: 2 / 1; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio); line-height: 1.2; }
.glyph.flip .g-front { opacity: 0; transform: translateY(-18%); }
.glyph.flip .g-back { opacity: 1; transform: none; }
.code-dot { font-size: clamp(140px, 30vw, 420px); margin-bottom: calc(1.4em * .2); }
.studio-lead { margin-top: clamp(40px, 5vw, 64px); position: relative; z-index: 1; }
.studio-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .studio-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.portrait-ph { aspect-ratio: 4 / 5; border-radius: var(--r-img); background: var(--superficie); display: grid; place-items: center; align-content: center; gap: 16px; }
.portrait-mark { width: 30%; opacity: .9; }
.portrait-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); }
.studio-text { display: grid; gap: 22px; align-content: start; }
.big-p { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; line-height: 1.12; }
.facts { border-top: 1px solid var(--linea); margin-top: 12px; }
.facts li { display: grid; gap: 4px; padding-block: 18px; border-bottom: 1px solid var(--linea); }
.facts b { font-weight: 600; } .facts span { color: var(--grigio); }
.clients-big { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 72px); letter-spacing: -.04em; line-height: 1.05; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
.contact-side { display: grid; gap: 36px; align-content: start; }
.contact-ways { display: grid; gap: 22px; }
.contact-ways > div { display: grid; gap: 6px; justify-items: start; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-weight: 500; font-size: 15px; padding: 0; }
.field input, .field textarea { font: inherit; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--linea); background: #fff; color: var(--nero); transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--punto); box-shadow: 0 0 0 3px color-mix(in srgb, var(--punto) 18%, transparent); }
.field textarea { resize: vertical; min-height: 140px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-block; font-size: 14.5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linea); transition: background .2s, color .2s, border-color .2s; }
.chip-check input:checked + span { background: var(--nero); color: var(--carta); border-color: var(--nero); }
.chip-check input:focus-visible + span { outline: 2px solid var(--punto); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--grigio); }
.consent input { margin-top: 4px; accent-color: var(--punto); }
.form .btn { justify-self: start; }
.form-status { font-weight: 500; }
.form-status.err { color: #B3261E; }
.hp { position: absolute; left: -9999px; }
.field.invalid input, .field.invalid textarea { border-color: #B3261E; }

/* ---------- Percorso / profilo IT ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--linea); background: color-mix(in srgb, var(--carta) 60%, #fff); }
.timeline { border-top: 1px solid var(--linea); }
.tl-item { display: grid; gap: 10px; padding-block: 26px; border-bottom: 1px solid var(--linea); }
@media (min-width: 760px) { .tl-item { grid-template-columns: 200px 1fr; gap: 28px; } }
.tl-when { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; color: var(--grigio); padding-top: .35em; }
.tl-body { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.tl-title { font-size: clamp(22px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.tl-org { font-weight: 500; }
.tl-body > p:not(.tl-org) { color: var(--grigio); }
.tl-list { display: grid; gap: 4px; color: var(--grigio); }
.tl-list li { padding-left: 18px; position: relative; }
.tl-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--punto); }
.tl-item.is-next .tl-title::after { content: "In arrivo"; margin-left: 12px; vertical-align: middle; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--punto); border: 1px solid var(--punto); border-radius: 999px; padding: 3px 8px; }
.skills, .it-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .it-grid { grid-template-columns: repeat(3, 1fr); } }
.skill-group { display: grid; gap: 14px; align-content: start; padding: 24px; border: 1px solid var(--linea); border-radius: 24px; }
.skill-group h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.cert-mini { display: grid; gap: 8px; font-size: 15px; }
.cert-mini li { padding-bottom: 8px; border-bottom: 1px solid var(--linea); }
.cert-mini li:last-child { border-bottom: 0; padding-bottom: 0; }
.certs { border-top: 1px solid var(--linea); }
.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; padding-block: 20px; border-bottom: 1px solid var(--linea); }
.cert-name { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.025em; }
.it-block { background: var(--superficie); }
.it-block .skill-group { background: var(--carta); border-color: transparent; }
.cta-note { margin-top: 24px; max-width: 52ch; color: var(--grigio-chiaro); font-size: 17px; }
.cta-split { display: grid; gap: 12px; margin-top: clamp(36px, 5vw, 56px); }
@media (min-width: 760px) { .cta-split { grid-template-columns: 1fr 1fr; } }
.cta-card { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--linea-scura); border-radius: 26px; text-decoration: none; transition: background .35s var(--ease), border-color .35s; }
.cta-card-title { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.05; }
.cta-card-line { display: inline-flex; align-items: center; gap: 10px; color: var(--grigio-chiaro); }
.cta-card:hover { background: var(--punto); border-color: var(--punto); }
.cta-card:hover .label, .cta-card:hover .cta-card-line { color: #fff; }

/* ---------- Studio: box formazione e competenze ---------- */

/* ---------- Testo semplice ---------- */
.prose { display: grid; gap: 16px; max-width: 70ch; }
.prose h2 { font-size: 24px; font-weight: 700; margin-top: 16px; }
.prose ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose-date { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--grigio); }
.note { padding: 14px 16px; border-radius: 14px; background: #F3E7CC; color: #6B4600; font-size: 15px; }

/* ---------- Cursore e transizioni ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--punto); pointer-events: none; opacity: 0; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s; will-change: transform; }
.cursor-label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .2s; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cursor.is-open { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.is-open .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.veil { position: fixed; z-index: 90; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--punto); pointer-events: none; transform: scale(0); }
.veil.grow { transition: transform .6s cubic-bezier(.7,0,.2,1); }
.veil.cover { transform: scale(var(--s, 200)); }
.veil.shrink { transition: transform .55s cubic-bezier(.6,0,.3,1); transform: scale(0); }

.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.pre { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .line > span, .js .hero-dot { transform: none; }
  .js .manifesto-text .w { opacity: 1; }
  .reveal.pre { opacity: 1; transform: none; }
  .cursor, .veil { display: none; }
}

/* ---------- Hero: smartphone con i progetti che scorrono ---------- */
.hero .wrap { position: relative; }
.hero-visual { display: flex; justify-content: center; margin-top: 48px; perspective: 1600px; }
.hero-phone { --w: min(220px, 56vw); transform: rotateY(-14deg) rotateZ(4deg); translate: 0 var(--py, 0px); }
@media (min-width: 900px) {
  .hero-visual { position: absolute; right: max(40px, env(safe-area-inset-right, 0px)); top: 0; width: 38%; margin: 0; justify-content: flex-end; padding-right: 10%; }
  .hero-phone { --w: min(250px, 18vw); }
}
.hs-wrap { background: #000; overflow: hidden; }
.hs { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); pointer-events: none; }
.hs.on { opacity: 1; pointer-events: auto; }
.hs img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.1); transition: transform 3.4s linear; }
.hs.on img { transform: scale(1); }
.hs video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.hs-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40% 9% 12%; display: grid; gap: 2px; color: #fff; font-size: calc(var(--w) * .045); line-height: 1.25; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.hs-cap b { font-family: var(--display); font-weight: 700; font-size: calc(var(--w) * .07); letter-spacing: -.02em; }
.hs-bars { position: absolute; z-index: 3; left: 6%; right: 6%; top: 4%; display: flex; gap: 3px; }
.hs-bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; position: relative; }
.hs-bars i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hs-bars i.done::after { transform: scaleX(1); }
.hs-bars i.on::after { animation: hsBar var(--hs-t, 2.8s) linear forwards; }
@keyframes hsBar { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero-phone { transform: none; } }
