/* Caratteri serviti dal nostro server (prima Google Fonts): generato da tools/produzione/fonts/google.css */
/* latin-ext */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bungee-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Bungee';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/bungee-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Epilogue';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/epilogue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Dos Amigos — Bozza D "Fiesta Neon"
   Stessa base tecnica della bozza B (shader WebGL, vetro, carosello 3D,
   View Transitions), ma in chiave messicana: notte viola invece del nero,
   papel picado, piastrelle talavera, zarape, calaveras e cursori a tema.
   Tutte le animazioni di scroll sono CSS nativo (animation-timeline).
   ========================================================================== */
@view-transition { navigation: auto; }

@property --deg { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
/* inherits: true, se no il ::before che scrive la cifra non riceve il valore e mostra 0 */
@property --n { syntax: "<integer>"; inherits: true; initial-value: 0; }

:root {
  --bg: #170b2b;            /* notte viola: più luminosa del nero della bozza B */
  --bg-2: #24123f;
  --lime: #D8F830;
  --pink: #ff2e88;          /* rosa mexicano */
  --cyan: #2ef2ff;          /* turchese talavera */
  --gold: #ffb020;          /* arancio cempasúchil */
  --purple: #a44bff;
  --text: #fff3e8;
  --muted: #b7a8d0;
  --glass: rgba(255, 255, 255, .07);
  --glass-b: rgba(255, 255, 255, .16);
  --f-head: "Bungee", system-ui, sans-serif;
  --f-body: "Epilogue", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 60px);
  --r: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); background-image: radial-gradient(900px circle at 12% -5%, rgba(164,75,255,.45), transparent 60%), radial-gradient(760px circle at 92% 8%, rgba(255,46,136,.32), transparent 60%), radial-gradient(900px circle at 50% 100%, rgba(46,242,255,.16), transparent 60%); background-attachment: fixed; color: var(--text); font-family: var(--f-body); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 600 .74rem/1 var(--f-head); letter-spacing: .22em; text-transform: uppercase; color: var(--lime); display: inline-flex; gap: 10px; align-items: center; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.grad { background: linear-gradient(90deg, var(--lime), var(--cyan) 50%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Barra di avanzamento lettura: CSS puro */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink)); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* Scanlines leggere */
body::before { content: ""; position: fixed; inset: 0; z-index: 999; pointer-events: none; background: repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.14) 2px 3px); mix-blend-mode: multiply; opacity: .35; }

/* ---------- Header in vetro ---------- */
.header {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 900; width: min(1280px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 10px 10px 22px;
  background: rgba(12, 10, 20, .55); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-b); border-radius: 999px; view-transition-name: header;
}
.header__logo img { width: 156px; }
/* largo come i contenuti (.wrap, .case-top, griglia progetti): 1280px meno il gutter */
.header nav { display: flex; gap: 4px; align-items: center; }
.header nav a { text-decoration: none; padding: .7em 1em .5em; line-height: 1; border-radius: 999px; font-weight: 600; font-size: .92rem; text-align: center; white-space: nowrap; }
.header nav a:hover, .header nav a[aria-current] { background: var(--glass); }
@media (max-width: 760px) { .header nav a:not(.btn) { display: none; } }

.btn {
  --deg: 0deg;
  display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.4em; border-radius: 999px; text-decoration: none; font-weight: 700;
  color: #0b0a10; background: var(--lime); position: relative; isolation: isolate; border: 0; cursor: pointer; transition: transform .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: conic-gradient(from var(--deg), var(--lime), var(--cyan), var(--pink), var(--lime)); filter: blur(10px); opacity: .7; animation: rot 3s linear infinite; }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn--glass { background: var(--glass); color: var(--text); border: 1px solid var(--glass-b); backdrop-filter: blur(10px); }
.btn--glass::before { opacity: 0; }
.btn--glass:hover::before { opacity: .5; }
@keyframes rot { to { --deg: 360deg; } }

/* ---------- Hero con shader ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent 30%, var(--bg) 85%); }
.hero h1 { margin: 0 0 18px; }
.hero__big {
  font-family: var(--f-head); font-weight: 900; font-size: clamp(3rem, 12vw, 13rem); line-height: .86; letter-spacing: -.04em; text-transform: uppercase; margin: 0;
  mix-blend-mode: difference; color: #fff;
}
.hero__big span { display: block; }
.hero__sub { max-width: 620px; margin: 28px auto 34px; font-size: clamp(1.02rem, 1.5vw, 1.3rem); color: #d8d4e8; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@keyframes float { 50% { transform: translateY(-24px) rotate(6deg); } }
@keyframes wobble { 50% { transform: rotate(-12deg) scale(1.06); } }

/* ---------- Ticker ---------- */
.ticker { display: flex; overflow: hidden; border-block: 1px solid var(--glass-b); background: var(--bg-2); }
.ticker__row { display: flex; flex: none; gap: 3rem; padding: 18px 1.5rem; animation: tick 30s linear infinite; font-family: var(--f-head); font-size: clamp(1rem, 2.2vw, 1.8rem); text-transform: uppercase; white-space: nowrap; }
.ticker__row span:nth-child(odd) { color: var(--lime); }
.ticker__row span:nth-child(3n) { color: var(--pink); }
@keyframes tick { to { transform: translateX(-100%); } }

/* ---------- Sezioni ---------- */
.section { padding: clamp(80px, 12vw, 180px) var(--gutter); position: relative; }
.wrap { max-width: 1280px; margin-inline: auto; }
.h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 6vw, 5.8rem); line-height: .95; letter-spacing: -.035em; margin: 18px 0 .5em; text-transform: uppercase; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #cfcadf; max-width: 60ch; }

/* Rivelazioni allo scroll: CSS nativo */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
  .reveal-l { animation: reveal-l linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
}
/* translate/scale separati: non sovrascrivono il transform dell'inclinazione 3D */
@keyframes reveal { from { opacity: 0; translate: 0 80px; scale: .94; filter: blur(12px); } }
@keyframes reveal-l { from { opacity: 0; translate: -120px 0; rotate: -4deg; } }

/* ---------- Bento servizi con luce che segue il cursore ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  grid-column: span 2; position: relative; padding: 30px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-b);
  overflow: hidden; isolation: isolate; transform-style: preserve-3d; transition: transform .5s var(--ease), border-color .3s;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(216,248,48,.22), transparent 45%); opacity: 0; transition: opacity .3s; }
.tile:hover::before { opacity: 1; }
.tile:hover { border-color: rgba(216,248,48,.45); }
.tile--xl { grid-column: span 4; grid-row: span 2; }
.tile--wide { grid-column: span 3; }
.tile h3 { font-family: var(--f-head); font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1; margin: 0 0 10px; text-transform: uppercase; letter-spacing: -.02em; }
.tile p { margin: 0; color: #c9c4da; }
.tile__icon { position: absolute; top: 24px; right: 24px; font-size: 2.6rem; filter: drop-shadow(0 0 18px rgba(216,248,48,.6)); }
.tile--xl h3 { font-size: clamp(2rem, 4vw, 4rem); }
.tile--xl .blob { position: absolute; width: 60%; aspect-ratio: 1; right: -10%; top: -15%; z-index: -2; border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; background: conic-gradient(from var(--deg), var(--lime), var(--cyan), var(--pink), var(--lime)); filter: blur(40px); opacity: .55; animation: rot 8s linear infinite, morph 10s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; } }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile, .tile--wide, .tile--xl { grid-column: span 2; grid-row: auto; } }

/* ---------- Zoom "CHILI" ---------- */
.zoom { height: 260vh; position: relative; }
.zoom__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.zoom__word { color: var(--lime); font-family: var(--f-head); font-weight: 900; font-size: clamp(4rem, 18vw, 20rem); letter-spacing: -.05em; line-height: 1; margin: 0; text-transform: uppercase; }
.zoom__after { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: var(--gutter); background: var(--lime); color: #0b0a10; opacity: 0; }
.zoom__after p { font-family: var(--f-head); font-weight: 800; font-size: clamp(1.8rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -.03em; max-width: 16ch; margin: 0; text-transform: uppercase; }
@supports (animation-timeline: view()) {
  .zoom { view-timeline: --zoom block; }
  .zoom__word { animation: zoomin linear both; animation-timeline: --zoom; animation-range: contain 0% contain 70%; }
  .zoom__after { animation: fadein linear both; animation-timeline: --zoom; animation-range: contain 55% contain 80%; }
}
@supports not (animation-timeline: view()) { .zoom { height: auto; } .zoom__word { display: none; } .zoom__after { position: static; opacity: 1; min-height: 60svh; } }
@keyframes zoomin { 0% { transform: scale(.6); } 100% { transform: scale(28); } }
@keyframes fadein { to { opacity: 1; } }

/* ---------- Carosello 3D ---------- */
.carousel { height: 320vh; position: relative; }
.carousel__sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; perspective: 1600px; overflow: hidden; }
.carousel__title { position: absolute; top: 12vh; left: 0; right: 0; text-align: center; }
.ring { --count: 8; --radius: clamp(380px, 46vw, 760px); position: relative; width: clamp(220px, 24vw, 360px); aspect-ratio: 3/4; transform-style: preserve-3d; transform: translateZ(calc(var(--radius) * -1)) rotateX(-6deg); }
.ring a {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden; text-decoration: none; background: var(--bg-2); border: 1px solid var(--glass-b);
  transform: rotateY(calc(360deg / var(--count) * var(--i))) translateZ(var(--radius)); backface-visibility: hidden;
  display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.ring a img { flex: 1; object-fit: cover; object-position: top; width: 100%; min-height: 0; }
/* in alto: se la card taglia, taglia il fondo e il logo del sito resta intero */
.ring a span { padding: 14px 16px; font-family: var(--f-head); font-size: .9rem; text-transform: uppercase; display: flex; justify-content: space-between; gap: 8px; }
.ring a span small { color: var(--muted); font-family: var(--f-body); text-transform: none; }
.ring a:hover { border-color: var(--lime); }
@supports (animation-timeline: view()) {
  .carousel { view-timeline: --car block; }
  .ring { animation: spinring linear both; animation-timeline: --car; animation-range: contain 0% contain 100%; }
}
@supports not (animation-timeline: view()) { .ring { animation: spinring 40s linear infinite; } }
@keyframes spinring { from { transform: translateZ(calc(var(--radius) * -1)) rotateX(-6deg) rotateY(0deg); } to { transform: translateZ(calc(var(--radius) * -1)) rotateX(-6deg) rotateY(-315deg); } }
@media (max-width: 700px) { .ring { --radius: 300px; width: 190px; } }

/* ---------- Numeri con contatore CSS ---------- */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.num { padding: 28px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-b); }
.num b { font-family: var(--f-head); font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; display: block; letter-spacing: -.04em; }
.num b::before { counter-reset: n var(--n); content: counter(n); }
.num b[data-to="18"] { --to: 18; } .num b[data-to="50"] { --to: 50; } .num b[data-to="99"] { --to: 99; } .num b[data-to="9231"] { --to: 9231; }
.num b { --n: var(--to); }
@supports (animation-timeline: view()) {
  .num b { animation: count linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
}
@keyframes count { from { --n: 0; } to { --n: var(--to); } }
.num span { color: var(--muted); }
@media (max-width: 800px) { .nums { grid-template-columns: 1fr 1fr; } }

/* ---------- Terminale zona ---------- */
.term { border-radius: 18px; background: #0d0b14; border: 1px solid var(--glass-b); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 0 1px rgba(216,248,48,.08); }
.term__bar { display: flex; gap: 8px; padding: 12px 16px; background: #15121f; align-items: center; font: .78rem ui-monospace, monospace; color: var(--muted); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--pink); }
.term__bar i:nth-child(2) { background: #ffc53d; } .term__bar i:nth-child(3) { background: var(--lime); margin-right: 10px; }
.term pre { margin: 0; padding: 22px; font: clamp(.8rem, 1vw, .95rem)/1.8 ui-monospace, "Cascadia Code", monospace; color: #cfcadf; white-space: pre-wrap; min-height: 380px; }
.term .ok { color: var(--lime); } .term .pk { color: var(--pink); } .term .cy { color: var(--cyan); }
.term .caret { display: inline-block; width: .6em; height: 1.1em; background: var(--lime); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.zona__side { display: grid; gap: clamp(24px, 3vw, 44px); }

/* ---------- Radar: il raggio d'azione, sotto al terminale ----------
   Stessa idea della bozza A ma in chiave neon: anelli lime tratteggiati che
   brillano, spazzata che gira e un "ping" che si allarga dal quartier generale.
   E' decorativo: i comuni sono gia' scritti nell'elenco e nel terminale. */
/* classi col prefisso radar__: .ring e .pin sono gia' prese dal carosello 3D */
.radar { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; margin-inline: auto; }
.radar svg { width: 100%; height: 100%; overflow: visible; }
.radar__ring { fill: none; stroke: rgba(216,248,48,.32); stroke-width: 1.5; stroke-dasharray: 3 9; }
.radar__cross { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.5; stroke-dasharray: 2 12; }
.radar__pin circle { fill: var(--lime); filter: drop-shadow(0 0 9px rgba(216,248,48,.95)); }
.radar__pin text { fill: var(--text); font: 700 15px ui-monospace, "Cascadia Code", monospace; letter-spacing: .04em; text-transform: uppercase; }
.radar__pin--home circle { fill: #fff; filter: drop-shadow(0 0 12px var(--pink)) drop-shadow(0 0 26px var(--pink)); }
.radar__sweep, .radar__ping { transform-box: view-box; transform-origin: 300px 300px; }
.radar__sweep { animation: radar-spin 7s linear infinite; }
.radar__ping { fill: none; stroke: rgba(216,248,48,.55); stroke-width: 2; animation: radar-ping 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes radar-spin { to { rotate: 360deg; } }
@keyframes radar-ping { from { scale: .045; opacity: .9; } to { scale: 1; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .radar__sweep { animation: none; } .radar__ping { display: none; } }
@media (max-width: 560px) { .radar__pin text { font-size: 19px; } }
.towns { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 26px 0 0; }
.towns li { padding: .45em 1em; border-radius: 999px; border: 1px solid var(--glass-b); background: var(--glass); font-size: .9rem; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Recensioni olografiche ---------- */
/* Carosello: scorre da solo, a mano col dito e con le due freccette sul desktop.
   Lo scorrimento e' quello nativo del browser, cosi' il trascinamento sul touch
   funziona senza una riga di JS; app.js si limita a far avanzare il nastro e a
   fermarlo appena l'utente ci mette le mani. */
.holo-wrap { position: relative; }
.holo-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--pink) rgba(255,255,255,.12); overscroll-behavior-x: contain; }
.holo-row:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.holo-row::-webkit-scrollbar { height: 6px; }
.holo-row::-webkit-scrollbar-track { background: rgba(255,255,255,.12); border-radius: 99px; }
.holo-row::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 99px; }

/* le freccette: solo dove c'e' un mouse, sul touch si scorre col dito */
.holo-nav { display: none; }
@media (hover: hover) and (pointer: fine) {
  .holo-nav { display: grid; place-items: center; position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
    width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--glass-b); background: rgba(26,12,48,.82);
    backdrop-filter: blur(10px); color: var(--text); cursor: pointer; transition: .25s var(--ease); }
  .holo-nav::before { content: ""; width: 12px; height: 12px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; border-radius: 2px; }
  .holo-nav--prev { left: 0; } .holo-nav--prev::before { rotate: -135deg; translate: 3px 0; }
  .holo-nav--next { right: 0; } .holo-nav--next::before { rotate: 45deg; translate: -3px 0; }
  /* il nastro si stringe per far posto alle freccette: cosi' non finiscono
     sopra al testo delle recensioni */
  .holo-wrap { padding-inline: 68px; }
  .holo-row { margin-inline: 0; padding-inline: 0; scroll-padding-left: 0; }
  .holo-nav:hover { border-color: var(--lime); color: var(--lime); box-shadow: 0 0 26px rgba(216,248,48,.45); }
  .holo-nav:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
  .holo-nav[disabled] { opacity: .3; cursor: default; box-shadow: none; }
}
@media (min-width: 1000px) { .holo blockquote { font-size: clamp(1rem, 1.15vw, 1.15rem); } }
.holo {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  flex: 0 0 min(420px, 84vw); scroll-snap-align: start; border-radius: 26px; padding: 36px; position: relative; overflow: hidden; margin: 0;
  background: linear-gradient(145deg, #1a1726, #0e0c16); border: 1px solid var(--glass-b);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .2s;
}
.holo::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .5;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.5), transparent 40%), linear-gradient(115deg, transparent 20%, rgba(216,248,48,.35) 35%, rgba(46,242,255,.35) 50%, rgba(255,46,136,.35) 65%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--mx) var(--my); }
.holo blockquote { margin: 0 0 30px; font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; }
.holo figcaption { display: flex; justify-content: space-between; color: var(--muted); }
.holo figcaption strong { color: var(--text); display: block; }
.stars { color: var(--lime); letter-spacing: 2px; }

/* ---------- FAQ ---------- */
.faq details { border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-b); margin-bottom: 10px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "↓"; color: var(--lime); transition: rotate .4s var(--ease); }
.faq details[open] { border-color: rgba(216,248,48,.4); }
.faq details[open] summary::after { rotate: 180deg; }
.faq details p { margin: 0 0 22px; color: #cfcadf; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 900px; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; background: conic-gradient(from var(--deg), var(--lime), var(--cyan), var(--pink), var(--lime)); filter: blur(120px); opacity: .25; animation: rot 10s linear infinite; z-index: -1; border-radius: 50%; }
.cta .h2 { font-size: clamp(2.6rem, 9vw, 9rem); }
.footer { padding: 70px var(--gutter) 28px; border-top: 1px solid var(--glass-b); background: var(--bg-2); }
.footer__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; max-width: 1280px; margin: 0 auto; }
.footer h2 { font: 600 .74rem var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--lime); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--lime); }
.footer__outline { font-family: var(--f-head); font-weight: 900; font-size: 13.5vw; line-height: .9; text-align: center; margin: 50px 0 10px; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.2); }
.footer__outline:hover { -webkit-text-stroke-color: transparent; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: .85rem; max-width: 1280px; margin: 0 auto; }
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Pagina progetti ---------- */
.phead { padding: 170px var(--gutter) 50px; text-align: center; position: relative; overflow: hidden; }
.phead h1 { font-family: var(--f-head); font-weight: 900; font-size: clamp(3rem, 11vw, 11rem); line-height: .9; letter-spacing: -.045em; margin: 20px 0; text-transform: uppercase; }
.phead p { max-width: 640px; margin: 0 auto; color: #cfcadf; font-size: 1.1rem; }
.crumbs { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: .85rem; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--lime); }

/* Filtri senza JavaScript: radio + :has() */
.chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 auto 50px; padding: 0 var(--gutter); border: 0; }
.chips legend { width: 100%; text-align: center; color: var(--muted); margin-bottom: 12px; font-size: .85rem; }
.chips label { cursor: pointer; padding: .6em 1.2em; border-radius: 999px; border: 1px solid var(--glass-b); background: var(--glass); font-weight: 600; transition: .3s var(--ease); }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: var(--lime); color: #0b0a10; border-color: var(--lime); box-shadow: 0 0 30px rgba(216,248,48,.4); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.holo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; padding: 0 var(--gutter) 120px; max-width: 1400px; margin: 0 auto; }
body:has(#f-ecommerce:checked) .pc:not([data-cat~="ecommerce"]),
body:has(#f-siti:checked) .pc:not([data-cat~="siti"]),
body:has(#f-app:checked) .pc:not([data-cat~="app"]),
body:has(#f-seo:checked) .pc:not([data-cat~="seo"]),
body:has(#f-ads:checked) .pc:not([data-cat~="ads"]),
body:has(#f-video:checked) .pc:not([data-cat~="video"]) { display: none; }
.pc {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  display: block; text-decoration: none; border-radius: 24px; overflow: hidden; position: relative; background: var(--bg-2); border: 1px solid var(--glass-b);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s, border-color .3s, box-shadow .3s;
}
.pc:hover { border-color: rgba(216,248,48,.5); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(216,248,48,.12); }
.pc::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: color-dodge;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.45), transparent 45%), linear-gradient(115deg, transparent 25%, rgba(216,248,48,.3) 40%, rgba(46,242,255,.3) 50%, rgba(255,46,136,.3) 60%, transparent 75%);
  background-size: 100%, 300% 300%; background-position: center, var(--mx) var(--my); }
.pc:hover::after { opacity: .7; }
.pc img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.pc__body { padding: 18px 20px 22px; }
.pc h2 { font-family: var(--f-head); font-size: 1.35rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: -.02em; }
.pc p { margin: 0; color: var(--muted); font-size: .92rem; }
.pc .badge { position: absolute; top: 14px; left: 14px; padding: .35em .8em; border-radius: 999px; background: rgba(7,6,11,.7); backdrop-filter: blur(8px); font-size: .75rem; font-weight: 700; border: 1px solid var(--glass-b); }

/* ---------- Pagina progetto ---------- */
.case-top { padding: 150px var(--gutter) 40px; max-width: 1400px; margin: 0 auto; }
.case-top .crumbs { justify-content: flex-start; }
.case-top h1 { font-family: var(--f-head); font-weight: 900; font-size: clamp(2.8rem, 10vw, 10rem); line-height: .88; letter-spacing: -.045em; margin: 24px 0; text-transform: uppercase; }
.case-top__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.case-top__row p { font-size: clamp(1.1rem, 1.7vw, 1.5rem); line-height: 1.4; margin: 0; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.spec div { padding: 14px 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-b); }
.spec dt { color: var(--muted); font-size: .8rem; }
.spec dd { margin: 0; font-weight: 700; }
@media (max-width: 800px) { .case-top__row { grid-template-columns: 1fr; } }
.case-hero-img { margin: 0 var(--gutter); border-radius: 32px; overflow: hidden; aspect-ratio: 16/8; }
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .case-hero-img img { animation: kb linear both; animation-timeline: view(); }
}
@keyframes kb { from { transform: scale(1.3) translateY(-6%); } to { transform: scale(1) translateY(6%); } }

.chapters { max-width: 1000px; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 60px 0; border-bottom: 1px solid var(--glass-b); }
.chapter__n { font-family: var(--f-head); font-size: 2.6rem; font-weight: 900; line-height: 1; }
.chapter h2 { font-family: var(--f-head); font-size: clamp(1.6rem, 3.2vw, 2.8rem); margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.chapter p { color: #cfcadf; font-size: 1.08rem; }
@media (max-width: 600px) { .chapter { grid-template-columns: 1fr; } }

/* Galleria orizzontale guidata dallo scroll verticale */
.hgal { height: 300vh; position: relative; }
.hgal__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.hgal__track { display: flex; gap: 30px; padding-left: var(--gutter); }
.hgal__track figure { margin: 0; flex: 0 0 min(70vw, 820px); aspect-ratio: 16/10; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-b); position: relative; }
.hgal__track figure img { width: 100%; height: 100%; object-fit: cover; }
.hgal__track figcaption { position: absolute; left: 16px; bottom: 16px; padding: .5em 1em; border-radius: 999px; background: rgba(7,6,11,.7); backdrop-filter: blur(10px); font-size: .85rem; }
@supports (animation-timeline: view()) {
  .hgal { view-timeline: --hg block; }
  .hgal__track { animation: slide linear both; animation-timeline: --hg; animation-range: contain 0% contain 100%; }
}
@supports not (animation-timeline: view()) { .hgal { height: auto; } .hgal__sticky { position: static; height: auto; overflow-x: auto; padding: 40px 0; } }
@keyframes slide { to { transform: translateX(calc(-100% + 100vw - var(--gutter) * 2)); } }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi { padding: 34px 28px; border-radius: var(--r); position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-b); }
.kpi b { font-family: var(--f-head); font-size: clamp(2.6rem, 5.4vw, 5rem); line-height: 1; display: block; letter-spacing: -.04em; }
.kpi span { color: var(--muted); }
.kpis--svc { grid-template-columns: repeat(2, 1fr); }
.kpis--svc .kpi b { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
@media (max-width: 800px) { .kpis { grid-template-columns: 1fr; } }
.next-case { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; text-decoration: none; padding: 40px; border-radius: 32px; background: var(--glass); border: 1px solid var(--glass-b); max-width: 1280px; margin: 0 auto; transition: border-color .3s; }
.next-case:hover { border-color: var(--lime); }
.next-case img { border-radius: 20px; aspect-ratio: 16/10; object-fit: cover; }
@media (max-width: 800px) { .next-case { grid-template-columns: 1fr; } }

/* Transizioni fra pagine */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

/* ==========================================================================
   STRATO MESSICANO — tutto quello che distingue la D dalla B
   ========================================================================== */

/* Bungee ha un solo peso: annullo i pesi e i tracking pensati per Unbounded */
.h2, .hero__big, .zoom__word, .footer__outline, .phead h1, .case-top h1,
.tile h3, .num b, .kpi b, .chapter h2, .chapter__n, .pc h2, .ticker__row, .ring a span {
  font-weight: 400; letter-spacing: -.012em;
}
.hero__big, .footer__outline, .phead h1, .case-top h1 { letter-spacing: -.02em; }
.kicker { font-family: var(--f-body); font-weight: 800; }

/* ---------- Papel picado: bandierine ritagliate che ondeggiano ---------- */
.picado { display: flex; justify-content: center; overflow: hidden; pointer-events: none; padding: 0 4px 16px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.picado i {
  flex: 0 0 auto; width: clamp(44px, 5.4vw, 74px); aspect-ratio: 1 / 1.15; display: block;
  transform-origin: 50% 0; animation: sway 3.6s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 52%, 50% 100%, 0 52%);
  background: var(--pink);
  /* i buchi del ritaglio, fatti con una maschera di cerchi */
  --holes:
    radial-gradient(circle 7px at 50% 20%, transparent 96%, #000 100%),
    radial-gradient(circle 4px at 28% 36%, transparent 94%, #000 100%),
    radial-gradient(circle 4px at 72% 36%, transparent 94%, #000 100%),
    radial-gradient(circle 5px at 50% 44%, transparent 95%, #000 100%),
    radial-gradient(circle 3px at 38% 58%, transparent 92%, #000 100%),
    radial-gradient(circle 3px at 62% 58%, transparent 92%, #000 100%);
  -webkit-mask-image: var(--holes); mask-image: var(--holes);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.picado i:nth-child(5n+2) { background: var(--cyan); }
.picado i:nth-child(5n+3) { background: var(--lime); }
.picado i:nth-child(5n+4) { background: var(--gold); }
.picado i:nth-child(5n+5) { background: var(--purple); }
.picado i:nth-child(odd) { animation-delay: -1.2s; animation-duration: 4.2s; }
.picado i:nth-child(3n) { animation-delay: -2.4s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }
/* il filo a cui sono appese */
.picado-wrap { position: relative; }
.picado-wrap::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35) 10%, rgba(255,255,255,.35) 90%, transparent); }
@media (max-width: 620px) { .picado i:nth-child(n+9) { display: none; } }

/* ---------- Zarape: la fascia a righe della coperta messicana ---------- */
.zarape { height: 9px; border: 0; margin: 0; background: repeating-linear-gradient(90deg,
  var(--lime) 0 16px, var(--pink) 16px 28px, #fff 28px 32px, var(--cyan) 32px 46px, var(--gold) 46px 58px, var(--purple) 58px 72px); }

/* ---------- Insegna al neon: il titolo dell'hero ---------- */
.hero__big { mix-blend-mode: normal; color: #fff6fb; text-shadow: 0 0 6px #fff, 0 0 18px var(--pink), 0 0 42px var(--pink), 0 0 90px rgba(255,46,136,.7); }
.hero__big span:nth-child(2) { color: #f4ffe8; text-shadow: 0 0 6px #fff, 0 0 18px var(--lime), 0 0 44px var(--lime), 0 0 90px rgba(216,248,48,.6); animation: flicker 7s linear infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .35; } 94% { opacity: 1; } 96% { opacity: .5; } 97% { opacity: 1; } }
.hero__sub strong { color: var(--gold); }
/* durante l'effetto "decifra" ogni lettera e' un <span>: non deve andare a capo */
.hero__big > span > span, .phead h1 span span, .case-top h1 span span { display: inline; }

/* ---------- Icone messicane al neon come decorazione ----------
   Al posto dei teschi: di calaveras ce n'erano troppe in giro (l'orb dell'hero
   e i due scheletrini ai lati bastano). File in shared/img/mx-*.svg — ci sono
   anche cactus e lime, pronti se servono altrove. */
.mx { position: absolute; width: clamp(72px, 9vw, 132px); opacity: .75; pointer-events: none; z-index: 0; animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(216,248,48,.9)) drop-shadow(0 0 22px rgba(216,248,48,.5)); }
.mx--pink { filter: drop-shadow(0 0 6px rgba(255,46,136,.9)) drop-shadow(0 0 22px rgba(255,46,136,.5)); }
.mx--cyan { filter: drop-shadow(0 0 6px rgba(46,242,255,.9)) drop-shadow(0 0 22px rgba(46,242,255,.5)); }
.mx--l { left: 2%; top: 14%; rotate: -12deg; }
.mx--r { right: 18%; bottom: 18%; rotate: 10deg; animation-delay: -4s; } /* piu' dentro: sul bordo la coprirebbe lo scheletrino */
@media (max-width: 900px) { .mx { display: none; } }

/* ---------- Riquadro grande dei servizi: i negozi veri che scorrono dietro al testo ----------
   Due file di screenshot inclinate, in versi opposti. Ogni fila contiene la serie due volte e
   scorre di metà della sua larghezza: il padding a destra uguale al gap fa combaciare il giro. */
.tile--shots { background: #140a26; }
.tile--shots::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(200deg, rgba(23,11,43,.3), rgba(23,11,43,.55) 40%, rgba(23,11,43,.94) 78%); }
.tile__shots { position: absolute; inset: -25% -15%; z-index: -2; display: grid; align-content: center; gap: 14px; rotate: -8deg; opacity: .8; pointer-events: none; }
.tile__row { display: flex; gap: 14px; padding-right: 14px; width: max-content; animation: shots 46s linear infinite; }
.tile__row--rev { animation-direction: reverse; animation-duration: 54s; }
.tile__row img { display: block; width: clamp(220px, 22vw, 320px); height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); }
@keyframes shots { to { translate: -50% 0; } }
.tile__icon { filter: drop-shadow(0 0 18px rgba(255,176,32,.7)); }

/* ---------- Ticker: bordi zarape ---------- */
.ticker { border-block: 0; background: linear-gradient(90deg, #2b1050, #3a1160 50%, #2b1050); position: relative; }
.ticker::before, .ticker::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; z-index: 2; background: repeating-linear-gradient(90deg, var(--lime) 0 14px, var(--pink) 14px 24px, var(--cyan) 24px 36px, var(--gold) 36px 48px); }
.ticker::before { top: 0; } .ticker::after { bottom: 0; }
.ticker__row span:nth-child(3n+2) { color: var(--gold); }

/* ---------- Bottoni e filtri ---------- */
.btn { text-transform: uppercase; font-family: var(--f-body); font-weight: 800; letter-spacing: .01em; }
/* Epilogue tiene spazio per le discendenti: in maiuscolo il testo sembrava alto nel bottone. Più aria sopra che sotto. */
.btn { padding: .96em 1.4em .74em; line-height: 1; }
.chips label:has(input:checked) { box-shadow: 0 0 30px rgba(216,248,48,.5), 0 4px 0 var(--pink); }

/* ---------- Jalapeño al posto delle stelle: cinque in fila, dallo stesso disegno ---------- */
.stars { display: inline-block; flex: none; width: 152px; height: 28px; background: url("/assets/img/mx-jalapeno.svg?v=20261002a") 0 50% / 28px 28px space no-repeat;
  filter: drop-shadow(0 0 8px rgba(103,210,70,.55)); }

/* ---------- Form contatti in fondo alla home ---------- */
.contact { max-width: 900px; margin: clamp(28px, 4vw, 48px) auto 0; text-align: left; display: grid; gap: 16px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .contact__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field span { font: 600 .72rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.field input, .field textarea { width: 100%; font: 400 1.05rem/1.5 var(--f-body); color: var(--text); background: rgba(23,11,43,.72);
  border: 1px solid var(--glass-b); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #8a7ca6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(216,248,48,.18), 0 0 28px rgba(216,248,48,.25); }
.field [aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,46,136,.2); }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .92rem; line-height: 1.45; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lime); }
.contact__send { display: flex; gap: 16px 20px; align-items: center; flex-wrap: wrap; }
.contact__msg { margin: 0; color: var(--muted); font-size: .95rem; }
.contact__msg.is-err { color: var(--pink); }
.contact__msg.is-ok { color: var(--lime); }
.contact__or { margin: 36px 0 14px; color: var(--muted); font-size: .9rem; letter-spacing: .04em; }

/* ---------- Sezione "¡órale!" ---------- */
.zoom__word { color: var(--gold); text-shadow: 0 0 40px rgba(255,176,32,.5); }
.zoom__after { background: var(--pink); color: #2a0714; }

/* ---------- Vetro e dettagli più caldi ---------- */
.tile:hover { border-color: rgba(255,176,32,.55); }
.tile::before { background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,176,32,.25), transparent 45%); }
.faq summary::after { content: "🌶"; }
.faq details[open] { border-color: rgba(255,46,136,.5); }
.faq details[open] summary::after { rotate: 0deg; scale: 1.3; }
.footer { background: linear-gradient(180deg, #24123f, #1a0c30); border-top: 0; }
.footer__outline { -webkit-text-stroke-color: rgba(255,176,32,.45); }
.term { background: #1a0c30; }
.term__bar { background: #2a1147; }

/* ---------- Cursore a icone, identico a quello della bozza C ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 34 34'%3E%3Ctext y='28' font-size='26'%3E%F0%9F%8C%B6%EF%B8%8F%3C/text%3E%3C/svg%3E") 6 6, auto; }
  a, button, label, summary, [data-drag] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 38 38'%3E%3Ctext y='31' font-size='30'%3E%F0%9F%94%A5%3C/text%3E%3C/svg%3E") 11 11, pointer; }
}
.trail { position: fixed; pointer-events: none; z-index: 9999; font-size: 18px; animation: trail .9s ease-out forwards; }
@keyframes trail { to { transform: translate(var(--tx), 60px) rotate(var(--tr)) scale(.2); opacity: 0; } }

/* ---------- I due scheletrini ai lati (SVG iniettato da amigos.js) ----------
   Teste vere del logo, corpo disegnato come un'insegna al neon: tubo bianco al
   centro, alone colorato intorno (lime a sinistra, rosa a destra).
   La testa ruota verso il mouse, angolo in --r messo dal JS. */
/* --out: quanto sporgono oltre il bordo della finestra */
.amigo { position: fixed; bottom: 0; z-index: 500; pointer-events: none; width: clamp(124px, 11vw, 190px); --out: clamp(30px, 3vw, 50px); opacity: .95; }
.amigo--l { left: calc(var(--out) * -1); --neon: var(--cyan); }
.amigo--r { right: calc(var(--out) * -1); transform: scaleX(-1); --neon: var(--pink); }
.amigo__svg { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 0 3px var(--neon)) drop-shadow(0 0 10px var(--neon)) drop-shadow(0 0 24px var(--neon)); }
.sk, .sk__body, .sk__head, .sk__sip, .sk__arm, .sk__farm, .sk__prop { transform-box: view-box; }

/* ---- Bere e mordere ----
   Il braccio e' articolato su due perni: spalla (74,168) e gomito (52,224).
   Chiudendo il gomito di 114° e alzando tutto il braccio di 78° la mano arriva
   alla bocca; l'oggetto in mano si contro-ruota per non finire a testa in giu'.
   .sk__sip inclina la testa all'indietro, e sta fuori da .sk__head perche' quella
   la comanda il mouse: cosi' le due cose non si pestano i piedi.
   Il ciclo e' lungo (15s la birra, 20s il taco) e il gesto dura poco piu' di un
   secondo, in fondo al giro. */
/* i perni sono in coordinate LOCALI del gruppo: il corpo e' gia' spostato di 40
   dal suo transform, quindi qui vanno i valori come stanno nei tracciati */
.sk__arm { transform-origin: 146px 168px; }
.sk__farm { transform-origin: 168px 224px; }
.sk__prop { transform-origin: 160px 282px; }
.sk__sip { transform-origin: 110px 196px; }

/* La birra ogni 15 secondi, il taco ogni 20. Il gesto dura poco meno di tre
   secondi e sta in fondo al giro; il resto del tempo il braccio e' giu'.
   Gli angoli vengono da una cinematica a due ossa (omero 60, avambraccio 58)
   risolta per portare la mano alla bocca tenendo il gomito ALTO E IN FUORI:
   piegando il braccio sul petto sparirebbe fra le costole, che sono bianche
   uguali. Alla birra basta meno (116/140) perche' e' il collo della bottiglia
   ad arrivare alle labbra; il taco invece va tenuto proprio sui denti (144/162).
   L'oggetto si contro-ruota, se no arriverebbe capovolto. */
.amigo--l .sk__arm  { animation: braccio-birra 15s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--l .sk__farm { animation: gomito-birra 15s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--l .sk__prop { animation: bottiglia 15s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--l .sk__sip  { animation: testa-bevi 15s cubic-bezier(.45,0,.25,1) infinite; }

.amigo--r .sk__arm  { animation: braccio-taco 20s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--r .sk__farm { animation: gomito-taco 20s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--r .sk__prop { animation: tortilla 20s cubic-bezier(.45,0,.25,1) infinite; }
.amigo--r .sk__sip  { animation: testa-morso 20s cubic-bezier(.45,0,.25,1) infinite; }

@keyframes braccio-birra { 0%, 82%, 100% { rotate: 0deg; } 88%, 96% { rotate: -116deg; } }
@keyframes gomito-birra  { 0%, 82%, 100% { rotate: 0deg; } 88%, 96% { rotate: -140deg; } }
@keyframes bottiglia     { 0%, 82%, 100% { rotate: 0deg; } 88%, 96% { rotate: 116deg; } }
@keyframes testa-bevi    { 0%, 82%, 100% { transform: perspective(560px) rotateX(0deg); }
                           88%, 96% { transform: perspective(560px) rotateX(-20deg); } }

@keyframes braccio-taco  { 0%, 85%, 100% { rotate: 0deg; } 90%, 97% { rotate: 84deg; } }
@keyframes gomito-taco   { 0%, 85%, 100% { rotate: 0deg; } 90%, 97% { rotate: 106deg; } }
@keyframes tortilla      { 0%, 85%, 100% { rotate: 0deg; } 90%, 97% { rotate: -190deg; } }
/* il morso: due colpi di testa in avanti, non un'inclinazione sola */
@keyframes testa-morso   { 0%, 85%, 100% { transform: perspective(560px) rotateX(0deg); }
                           90%, 97% { transform: perspective(560px) rotateX(11deg); }
                           92.5%, 95.5% { transform: perspective(560px) rotateX(2deg); }
                           94% { transform: perspective(560px) rotateX(11deg); } }

/* ---- Gocce e briciole ----
   Stanno sullo stesso giro del braccio (15s la birra, 20s il taco) e cadono
   solo nella finestra in cui l'oggetto e' alla bocca. Tre per volta, sfalsate,
   con una deriva diversa l'una dall'altra perche' non sembrino un tris. */
.amigo__bits { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; overflow: visible; }
.bit { transform-box: view-box; opacity: 0; }
.amigo--l .bit, .amigo--r .bit { animation-timing-function: cubic-bezier(.35,0,.85,.55); animation-iteration-count: infinite; }
.amigo--l .bit { animation-duration: 15s; }
.amigo--r .bit { animation-duration: 20s; }
.amigo--l .bit--1 { animation-name: goccia-1; }
.amigo--l .bit--2 { animation-name: goccia-2; }
.amigo--l .bit--3 { animation-name: goccia-3; }
.amigo--r .bit--1 { animation-name: briciola-1; }
.amigo--r .bit--2 { animation-name: briciola-2; }
.amigo--r .bit--3 { animation-name: briciola-3; }

@keyframes goccia-1 { 0%, 88.6%, 94%, 100% { opacity: 0; translate: 0 0; }
                      89% { opacity: .95; translate: 0 0; }
                      93.9% { opacity: 0; translate: 16px 72px; } }
@keyframes goccia-2 { 0%, 90.4%, 95.4%, 100% { opacity: 0; translate: 0 0; }
                      90.8% { opacity: .9; translate: 0 0; }
                      95.3% { opacity: 0; translate: 26px 64px; } }
@keyframes goccia-3 { 0%, 91.9%, 96.6%, 100% { opacity: 0; translate: 0 0; }
                      92.3% { opacity: .85; translate: 0 0; }
                      96.5% { opacity: 0; translate: 9px 78px; } }

@keyframes briciola-1 { 0%, 91.4%, 95.6%, 100% { opacity: 0; translate: 0 0; }
                        91.8% { opacity: .95; translate: 0 0; }
                        95.5% { opacity: 0; translate: 15px 70px; } }
@keyframes briciola-2 { 0%, 92.6%, 96.6%, 100% { opacity: 0; translate: 0 0; }
                        93% { opacity: .9; translate: 0 0; }
                        96.5% { opacity: 0; translate: 27px 62px; } }
@keyframes briciola-3 { 0%, 94.6%, 98.6%, 100% { opacity: 0; translate: 0 0; }
                        95% { opacity: .9; translate: 0 0; }
                        98.5% { opacity: 0; translate: 8px 76px; } }

/* l'oggetto dello scheletrino di destra e' specchiato col corpo: lo rigiro */
.amigo--r .sk__prop image { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
/* Il respiro: perno fra i piedi e nessuno spostamento verticale, cosi' i piedi
   restano poggiati a terra. Prima era un translate, e lo scheletrino si
   staccava dalla base a ogni respiro. */
.sk { transform-origin: 110px 452px; animation: am-breathe 5s ease-in-out infinite; }
@keyframes am-breathe { 50% { rotate: .8deg; scale: 1 1.014; } }
/* la testa sta in prospettiva: --ry la gira di lato, --rx la alza o la abbassa,
   cosi' guarda davvero la freccia invece di limitarsi a inclinarsi. Il perno e'
   l'attaccatura del collo, quindi ruota restando al suo posto. */
.sk__head { transform-origin: 110px 196px;
  transform: perspective(560px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); }
/* il corpo di destra e' specchiato (scaleX(-1) su .amigo--r), ma la testa e' una
   foto del marchio: specchiata veniva il ciuffo dalla parte sbagliata. La rigiro.
   Il ribaltamento va fatto intorno all'asse del collo (110px), non al centro del
   file: il cranio dentro l'immagine del ciuffo non e' centrato (cx .60), quindi
   specchiando sul centro del file la testa finiva fuori asse rispetto al corpo. */
.amigo--r .sk__head image { transform: scaleX(-1); transform-box: view-box; transform-origin: 110px 196px; }

@media (max-width: 1600px) { .amigo { opacity: .88; } }
/* su schermi più stretti si fanno più piccoli e si spostano verso il bordo,
   così restano visibili senza finire sopra ai testi */
@media (max-width: 1400px) { .amigo { width: 124px; --out: 34px; opacity: .82; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .zoom, .carousel, .hgal { height: auto; }
  .zoom__sticky, .carousel__sticky, .hgal__sticky { position: static; height: auto; }
  .zoom__word { display: none; } .zoom__after { position: static; opacity: 1; min-height: 50svh; }
  .hgal__sticky { overflow-x: auto; padding: 40px 0; }
  @view-transition { navigation: none; }
}

/* ---------- Contatti diretti: tre riquadri uguali, azioni come bottoni tondi ---------- */
.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; text-align: left; }
.reach__card { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 16px 16px 16px 22px;
  border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-b); backdrop-filter: blur(10px); }
.reach__card small { display: block; margin-bottom: 9px; font: 600 .64rem/1 var(--f-head); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.reach__card b { font-size: 1.08rem; font-weight: 700; white-space: nowrap; }
.reach__acts { display: flex; gap: 8px; flex: none; }
.reach__acts a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: #0b0a10; transition: transform .3s var(--ease), box-shadow .3s; }
.reach__acts a:hover { transform: translateY(-2px); box-shadow: 0 0 24px rgba(216,248,48,.55); }
.reach__acts a.wa { background: #25d366; color: #06290f; }
.reach__acts a.wa:hover { box-shadow: 0 0 24px rgba(37,211,102,.6); }
.reach__acts a:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .reach { grid-template-columns: 1fr; max-width: 460px; } }
/* il bottone in alto prende il padding dei link del menu: stessa correzione, in piccolo */
.header nav a.btn { padding: .74em 1.1em .54em; line-height: 1; }
/* campo trappola antispam: fuori dallo schermo, non display:none (alcuni bot lo saltano) */
.contact__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Ultima card della lista progetti: "…e tanto altro" ---------- */
.pc--more { display: grid; place-items: center; text-align: center; min-height: 100%; background: linear-gradient(160deg, rgba(164,75,255,.18), rgba(255,46,136,.12) 55%, rgba(46,242,255,.12)); }
.pc--more .pc__body { display: grid; gap: 14px; justify-items: center; padding: 34px 28px; }
.pc .pc__more { font-family: var(--f-head); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; text-transform: uppercase; color: var(--text) !important; margin: 0; }
.pc--more .btn { pointer-events: none; }

/* ---------- Carosello "Progetti in orbita": ogni lavoro dentro un iPhone ----------
   Schermata = phone.webp (lo screenshot da telefono del sito, 390×844 @2x), cornice scura
   arrotondata, isola nera in alto, nome del lavoro in una targhetta di vetro in basso. */
.ring { --radius: clamp(300px, 34vw, 560px); width: clamp(170px, 15vw, 240px); aspect-ratio: 9 / 19; }
.ring a { border-radius: 40px; padding: 9px; background: linear-gradient(145deg, #2c2640, #0b0a10 42%, #1d1830);
  border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px #05040a, 0 30px 80px rgba(0,0,0,.6); }
.ring a img { flex: 1; border-radius: 31px; object-fit: cover; object-position: top; padding-top: 36px; background: #000; } /* barra di stato nera: gli screenshot non ce l hanno e l isola copriva il logo */
.ring a::before { content: ""; position: absolute; top: 19px; left: 50%; translate: -50% 0; width: 30%; height: 17px; border-radius: 99px; background: #000; z-index: 2; }
.ring a span { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2; padding: 10px 12px; border-radius: 14px; flex-wrap: wrap;
  background: rgba(12,10,20,.74); backdrop-filter: blur(10px); font-size: .78rem; }
@media (max-width: 700px) { .ring { --radius: 230px; width: 150px; } }

/* ---------- Landing servizio + città (prova: app-web-app-padova.html) ---------- */
.lp-hero { padding: 150px var(--gutter) 60px; max-width: 1280px; margin: 0 auto; box-sizing: content-box; }
.lp-hero .crumbs { justify-content: flex-start; }
.lp-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: 26px; }
.lp-hero h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(2.2rem, 5.2vw, 4.8rem); line-height: .95; letter-spacing: -.02em; text-transform: uppercase; margin: 18px 0 22px; }
.lp-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.lp-phones { display: flex; justify-content: center; gap: 18px; }
.lp-phone { position: relative; display: block; flex: none; width: clamp(150px, 15vw, 230px); aspect-ratio: 9 / 19; padding: 9px; border-radius: 40px;
  background: linear-gradient(145deg, #2c2640, #0b0a10 42%, #1d1830); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 0 2px #05040a, 0 30px 80px rgba(0,0,0,.6); }
.lp-phone::before { content: ""; position: absolute; top: 19px; left: 50%; translate: -50% 0; width: 30%; height: 17px; border-radius: 99px; background: #000; z-index: 1; }
.lp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; padding-top: 36px; background: #000; }
.lp-phones .lp-phone:nth-child(1) { rotate: -6deg; translate: 0 22px; }
.lp-phones .lp-phone:nth-child(2) { rotate: 5deg; translate: 0 -22px; }
@media (max-width: 900px) { .lp-hero__grid { grid-template-columns: 1fr; } .lp-phones .lp-phone { width: min(40vw, 200px); } }

.lp-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-case { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: var(--r); background: var(--glass);
  border: 1px solid var(--glass-b); text-decoration: none; color: inherit; transition: border-color .3s, transform .4s var(--ease); }
.lp-case:hover { border-color: rgba(216,248,48,.5); transform: translateY(-3px); }
.lp-case .lp-phone { width: clamp(120px, 11vw, 170px); }
.lp-case .badge { display: inline-block; padding: .35em .8em; border-radius: 999px; background: rgba(7,6,11,.7); font-size: .75rem; font-weight: 700; border: 1px solid var(--glass-b); }
.lp-case h3 { font-family: var(--f-head); font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin: 12px 0 8px; text-transform: uppercase; }
.lp-case p { color: #cfcadf; margin: 0 0 14px; }
.lp-case__more { color: var(--lime); font-weight: 700; }
@media (max-width: 1000px) { .lp-cases { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lp-case { grid-template-columns: 1fr; justify-items: center; } }

.lp-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-vs__col { padding: 28px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-b); }
.lp-vs__col h3 { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; margin: 0 0 16px; }
.lp-vs__col ul { margin: 0; padding-left: 1.2em; color: #cfcadf; display: grid; gap: 10px; }
@media (max-width: 800px) { .lp-vs { grid-template-columns: 1fr; } }

.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lp-steps li { padding: 28px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-b); }
.lp-steps b { font-family: var(--f-head); font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--gold); }
.lp-steps h3 { font-family: var(--f-head); font-weight: 400; text-transform: uppercase; font-size: 1.15rem; margin: 14px 0 8px; }
.lp-steps p { margin: 0; color: #cfcadf; }
@media (max-width: 1000px) { .lp-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-steps { grid-template-columns: 1fr; } }

.lp-draft { padding: 16px 20px; border-radius: 16px; border: 2px dashed var(--gold); color: var(--gold); background: rgba(255,176,32,.08); max-width: 70ch; font-weight: 600; }
.lp-towns a { text-decoration: none; }
.lp-towns li:hover { border-color: var(--lime); }
.tile__link { margin-top: 12px; color: var(--lime); font-weight: 700; text-decoration: none; align-self: flex-start; }
.tile__link:hover { text-decoration: underline; }
