/* =========================================================
   Blooo · foglio di stile
   Colori del brand: blu #0112FC e bianco.
   Le animazioni legate allo scroll usano la variabile --p (0 → 1)
   che viene aggiornata da assets/script.js mentre si scorre.
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/manrope.woff2") format("woff2");
}

:root {
  --blu: #0112FC;
  --blu-scuro: #000CB8;
  --blu-chiaro: #E9EBFF;
  --bianco: #FFFFFF;
  --inchiostro: #0A0B2E;
  --grigio: #5B5E7A;
  --sfondo-soft: #F5F6FF;
  --bordo: #E3E5F5;
  --raggio: 24px;
  --wrap: 1120px;
  --topbar: 64px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6;
  color: var(--inchiostro); background: var(--bianco); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--bianco); color: var(--blu); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 1rem; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-weight: 800; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; will-change: transform;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:active { transform: scale(.97); }
.btn--white { background: var(--bianco); color: var(--blu); box-shadow: 0 10px 30px rgba(0, 0, 60, .18); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 60, .25); }
.btn--ghost { background: transparent; color: var(--bianco); border: 2px solid rgba(255,255,255,.55); }
.btn--ghost:hover { border-color: var(--bianco); background: rgba(255,255,255,.08); }
.btn--sm { padding: .65rem 1.2rem; font-size: .92rem; }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.1rem; }

/* ---------- Barra in alto + barra di avanzamento ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; background: var(--blu); color: var(--bianco);
  padding-top: env(safe-area-inset-top); transition: box-shadow .3s ease;
}
.topbar.is-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 60, .25); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--topbar); transition: height .3s ease; }
.topbar.is-scrolled .topbar__in { height: 56px; }
.topbar__logo img { height: 30px; width: auto; }
.topbar__nav { display: none; gap: 1.6rem; }
.topbar__nav a { text-decoration: none; font-weight: 700; opacity: .9; }
.topbar__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
@media (min-width: 760px) { .topbar__nav { display: flex; } }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--bianco); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- Hero: resta fermo e le sezioni successive gli scorrono sopra ---------- */
.main { position: relative; }
.hero {
  position: sticky; top: var(--topbar); z-index: 0;
  background: var(--blu); color: var(--bianco);
  height: calc(100svh - var(--topbar)); display: grid; place-items: center;
  padding: 2rem 0 4.5rem; overflow: hidden;
}
.hero__in {
  text-align: center; display: grid; justify-items: center; gap: 1.2rem; will-change: transform, opacity;
  transform: translateY(calc(var(--p, 0) * -18vh)) scale(calc(1 - var(--p, 0) * .25));
  opacity: calc(1 - var(--p, 0) * 1.3);
}
.hero::after {
  content: ""; position: absolute; inset: 0; background: #000; pointer-events: none;
  opacity: calc(var(--p, 0) * .55);
}
.hero + * { position: relative; z-index: 1; }
.section, .works, .contact, .marquee { position: relative; z-index: 1; }

.eyes { display: flex; gap: clamp(.6rem, 3vw, 1.6rem); margin-bottom: .4rem; }
.eye { width: clamp(84px, 20vw, 150px); height: auto; overflow: visible; }
.eyes--small .eye { width: clamp(56px, 10vw, 84px); }
.eye__ball { fill: var(--bianco); }
.eye__iris { fill: var(--blu); }
.eye__shine { fill: var(--bianco); }
.eye__lid { transform-origin: 0 0; transform-box: view-box; }
.eye__pupil { will-change: transform; }
.eyes.is-blinking .eye__lid { animation: blink .22s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.08); } }

.hero__title img { width: clamp(240px, 56vw, 540px); height: auto; margin-inline: auto; }
.hero__tagline { font-size: clamp(1.15rem, 2.6vw, 1.55rem); font-weight: 700; letter-spacing: -.01em; max-width: 34ch; }
.hero__steps { display: flex; gap: .7rem; align-items: center; font-weight: 600; opacity: .85; font-size: clamp(.9rem, 2vw, 1.05rem); letter-spacing: .04em; text-transform: uppercase; }
.hero__steps i { font-style: normal; opacity: .6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: .8rem; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--bianco); opacity: 0;
}
@keyframes float { 50% { transform: translate(-50%, 6px); } }

/* Ingresso dell'hero dopo l'intro: ogni elemento entra in sequenza */
.hero-in { opacity: 0; transform: translateY(26px) scale(.94); }
html.is-ready .hero-in { animation: heroIn .9s cubic-bezier(.2, .9, .25, 1.15) forwards; animation-delay: calc(var(--i, 0) * .11s + .05s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero__scroll.hero-in { transform: translateX(-50%); }
html.is-ready .hero__scroll { animation: fadeIn .9s ease forwards .8s, float 2.2s ease-in-out .8s infinite; }
@keyframes fadeIn { to { opacity: .75; } }

/* ---------- Intro (video Remotion a tutto schermo) ---------- */
.intro { display: none; }
html.intro-on .intro { display: block; position: fixed; inset: 0; z-index: 200; background: var(--blu); transition: opacity .55s ease; }
html.intro-on .intro.is-leaving { opacity: 0; pointer-events: none; }
.intro__video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--blu); opacity: 0; transition: opacity .25s ease; }
.intro__video.is-playing { opacity: 1; }
.intro__skip {
  position: absolute; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.14); color: var(--bianco); border: 1px solid rgba(255,255,255,.4);
  font: inherit; font-weight: 700; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px);
}
.intro__skip:hover { background: rgba(255,255,255,.26); }
html.intro-on body { overflow: hidden; }

/* ---------- Striscia scorrevole (mossa dallo script, segue la velocità dello scroll) ---------- */
.marquee { background: var(--bianco); border-bottom: 1px solid var(--bordo); overflow: hidden; padding: 1.1rem 0; border-radius: 28px 28px 0 0; margin-top: -28px; }
.marquee__track { display: flex; align-items: center; gap: 1.8rem; width: max-content; will-change: transform; }
.marquee__track span { font-weight: 800; font-size: clamp(1rem, 2.4vw, 1.4rem); letter-spacing: .1em; text-transform: uppercase; color: var(--blu); white-space: nowrap; }
.marquee__track i { width: 10px; height: 10px; border-radius: 50%; background: var(--blu); flex: none; opacity: .5; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bianco); }
.section--soft { background: var(--sfondo-soft); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blu); margin-bottom: .9rem; }
.eyebrow--light { color: var(--bianco); opacity: .85; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.lead { font-size: 1.1rem; color: var(--grigio); max-width: 62ch; margin-top: 1rem; }
h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }

/* Titoli: ogni parola sale da sotto una maschera */
h2[data-words] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
h2[data-words] .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--k, 0) * .07s); }
h2[data-words].in .w > span { transform: none; }

/* ---------- Rivelazione allo scroll (si ripete salendo e scendendo) ---------- */
[data-reveal] { opacity: 0; transform: translateY(56px) scale(.96); transition: opacity .7s ease, transform .9s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }
[data-reveal].in { opacity: 1; transform: none; }
h2[data-reveal] { opacity: 1; transform: none; }

/* ---------- Servizi: card che si impilano una sopra l'altra ---------- */
.stack { display: grid; gap: 1.4rem; margin-top: 2.8rem; padding-bottom: 12vh; }
.scard {
  position: sticky; top: calc(var(--topbar) + 1.2rem + var(--n) * 1.1rem);
  min-height: min(70vh, 640px); border-radius: var(--raggio); padding: clamp(1.6rem, 4vw, 3rem);
  display: grid; gap: 1.5rem; align-content: center; overflow: hidden; isolation: isolate;
  transform: scale(calc(1 - var(--p, 0) * .07)) translateY(calc(var(--p, 0) * -14px));
  filter: brightness(calc(1 - var(--p, 0) * .35));
  transform-origin: top center; will-change: transform, filter;
  box-shadow: 0 30px 60px rgba(1, 18, 252, .14);
}
@media (min-width: 760px) { .scard { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; } }
.scard--white { background: var(--bianco); border: 1px solid var(--bordo); color: var(--inchiostro); }
.scard--blue { background: var(--blu); color: var(--bianco); }
.scard--ink { background: var(--inchiostro); color: var(--bianco); }
.scard__big { position: absolute; right: -.1em; top: -.25em; font-size: clamp(8rem, 24vw, 18rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; opacity: .06; pointer-events: none; z-index: -1; }
.scard--blue .scard__big, .scard--ink .scard__big { opacity: .12; }
.scard__text { display: grid; gap: 1rem; }
.scard h3 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.1; }
.scard--white p { color: var(--grigio); }
.scard--blue p, .scard--ink p { opacity: .85; }
.ticks { display: grid; gap: .5rem; margin-top: .3rem; font-weight: 600; font-size: .98rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--blu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks--light li::before { background-color: var(--bianco); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230112FC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Illustrazioni delle card servizi (disegnate in CSS) */
.scard__art { display: grid; place-items: center; min-height: 200px; }
.art-browser { width: min(100%, 420px); background: var(--blu); border-radius: 18px; padding: .8rem; display: grid; gap: .7rem; box-shadow: 0 24px 50px rgba(1,18,252,.25); transform: rotate(calc(-3deg + var(--p, 0) * 6deg)); }
.art-browser__bar { display: flex; gap: .35rem; } .art-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.7); }
.art-browser__hero { height: 110px; border-radius: 10px; background: rgba(255,255,255,.95); }
.art-browser__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } .art-browser__row b { height: 44px; border-radius: 10px; background: rgba(255,255,255,.35); }
.art-phone { width: 190px; aspect-ratio: 9 / 17; background: var(--bianco); border-radius: 30px; padding: .9rem .8rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .6rem; box-shadow: 0 30px 60px rgba(0,0,60,.35); transform: rotate(calc(6deg - var(--p, 0) * 12deg)); }
.art-phone__notch { width: 50%; height: 10px; border-radius: 999px; background: var(--blu-chiaro); justify-self: center; }
.art-phone__hero { aspect-ratio: 16 / 9; border-radius: 14px; background: var(--blu); }
.art-phone__list { display: grid; gap: .5rem; align-content: start; } .art-phone__list i { height: 26px; border-radius: 9px; background: var(--blu-chiaro); }
.art-phone__btn { height: 38px; border-radius: 999px; background: var(--blu); }
.art-dash { width: min(100%, 420px); background: var(--bianco); border-radius: 18px; padding: .8rem; display: grid; grid-template-columns: 54px 1fr; gap: .7rem; box-shadow: 0 24px 50px rgba(0,0,0,.35); transform: translateY(calc(var(--p, 0) * -30px)); }
.art-dash__side { background: var(--blu-chiaro); border-radius: 12px; padding: .7rem .5rem; display: grid; gap: .5rem; align-content: start; } .art-dash__side i { height: 8px; border-radius: 4px; background: var(--blu); }
.art-dash__main { display: grid; grid-template-rows: auto 1fr; gap: .7rem; }
.art-dash__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } .art-dash__cards b { height: 26px; border-radius: 8px; border: 2px solid var(--blu); }
.art-dash__bars { display: flex; align-items: end; gap: 6px; height: 120px; } .art-dash__bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--blu); transform-origin: bottom; transform: scaleY(var(--p-in, 1)); }

/* ---------- Lavori: su computer il blocco si blocca e le card scorrono in orizzontale ---------- */
.works { background: var(--sfondo-soft); }
.works__head { padding-top: clamp(4rem, 9vw, 6rem); }
.works__viewport { margin-top: 2.4rem; padding-bottom: clamp(4rem, 9vw, 6rem); }
.works__track { display: grid; gap: 1.2rem; width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
@media (min-width: 900px) {
  .works { height: 250vh; }
  .works__sticky { position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .works__head { padding-top: 0; }
  .works__viewport { padding-bottom: 0; overflow: visible; }
  .works__track {
    display: flex; gap: 2rem; width: max-content; margin-left: max(1rem, (100vw - var(--wrap)) / 2);
    transform: translateX(calc(var(--p, 0) * var(--shift, 0px))); will-change: transform;
  }
  .work { width: clamp(360px, 34vw, 480px); flex: none; }
}
.work {
  background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--raggio); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr; box-shadow: 0 20px 50px rgba(1, 18, 252, .08);
}
.work[data-reveal] { transform: translateY(56px) rotate(calc(2deg - var(--i, 0) * 1deg)) scale(.96); }
.work[data-reveal].in { transform: none; }
.work__body { padding: 1.4rem 1.5rem 1.6rem; display: grid; gap: .6rem; align-content: start; }
.work__body p { color: var(--grigio); font-size: .96rem; }
.work--cta { background: var(--blu); color: var(--bianco); border: 0; grid-template-rows: 1fr; }
.work--cta .work__body { align-content: center; justify-items: start; gap: 1rem; padding: 2.2rem; min-height: 320px; }
.work--cta h3 { font-size: 1.9rem; letter-spacing: -.03em; line-height: 1.1; }
.work--cta p { color: var(--bianco); opacity: .85; }

.badge { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .75rem; border-radius: 999px; }
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.badge--dev { background: #E6FBEF; color: #0B7A3B; }
.badge--dev::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.badge--concept { background: var(--blu-chiaro); color: var(--blu); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.tags li { font-size: .78rem; font-weight: 700; color: var(--grigio); background: var(--sfondo-soft); border: 1px solid var(--bordo); padding: .25rem .6rem; border-radius: 999px; }

/* Finte schermate (bianco su blu) */
.work__shot { background: var(--blu); aspect-ratio: 16 / 10; padding: 1.3rem; display: grid; place-items: center; overflow: hidden; background-image: radial-gradient(circle at 80% 10%, rgba(255,255,255,.14), transparent 45%); }
.work__shot--crm { grid-template-columns: 50px 1fr; gap: .7rem; place-items: stretch; }
.ui-side { background: rgba(255,255,255,.95); border-radius: 12px; padding: .7rem .5rem; display: grid; gap: .5rem; align-content: start; }
.ui-side i { height: 8px; border-radius: 4px; background: var(--blu); opacity: .9; } .ui-side i:first-child { opacity: 1; height: 12px; }
.ui-main { background: rgba(255,255,255,.95); border-radius: 12px; padding: .8rem; display: grid; grid-template-rows: auto 1fr; gap: .8rem; }
.ui-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; } .ui-row b { height: 20px; border-radius: 7px; border: 2px solid var(--blu); display: block; }
.ui-bars { display: flex; align-items: end; gap: 6px; padding-top: .2rem; }
.ui-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--blu); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.work.in .ui-bars i { transform: none; }
.work.in .ui-bars i:nth-child(2) { transition-delay: .08s; } .work.in .ui-bars i:nth-child(3) { transition-delay: .16s; } .work.in .ui-bars i:nth-child(4) { transition-delay: .24s; } .work.in .ui-bars i:nth-child(5) { transition-delay: .32s; } .work.in .ui-bars i:nth-child(6) { transition-delay: .4s; }
.ui-phone { width: 40%; min-width: 110px; aspect-ratio: 9 / 13; background: rgba(255,255,255,.96); border-radius: 22px; padding: .8rem; display: grid; grid-template-rows: auto 1fr auto; gap: .6rem; box-shadow: 0 20px 40px rgba(0,0,60,.3); transform: rotate(-4deg) translateY(50px); opacity: 0; transition: transform .9s var(--ease) .15s, opacity .6s ease .15s; }
.work.in .ui-phone { transform: rotate(-4deg); opacity: 1; }
.ui-hero { aspect-ratio: 16 / 7; border-radius: 12px; background: var(--blu); }
.ui-ring { display: grid; place-items: center; padding: .3rem 0; }
.ui-ring span { width: 56%; aspect-ratio: 1; border-radius: 50%; border: 6px solid var(--blu); border-right-color: var(--blu-chiaro); animation: spin 1.4s cubic-bezier(.4, 0, .2, 1) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ui-list { display: grid; gap: .45rem; align-content: start; } .ui-list i { height: 20%; min-height: 16px; border-radius: 8px; background: var(--blu-chiaro); }
.ui-btn { background: var(--blu); color: var(--bianco); font-size: .68rem; font-weight: 800; text-align: center; padding: .45rem; border-radius: 999px; }

/* ---------- Metodo: linea verticale che si riempie con lo scroll ---------- */
.timeline { position: relative; margin-top: 3rem; display: grid; gap: clamp(2rem, 5vw, 3.2rem); padding: .5rem 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 27px; top: 0; bottom: 0; width: 4px; border-radius: 2px; }
.timeline::before { background: var(--bordo); }
.timeline::after { background: var(--blu); transform: scaleY(var(--p, 0)); transform-origin: top; }
.tstep { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.2rem; align-items: start; }
.tstep__dot {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: var(--bianco); color: var(--grigio); border: 4px solid var(--bordo); position: relative; z-index: 1;
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .5s cubic-bezier(.2, .9, .25, 1.3);
}
.tstep.is-on .tstep__dot { background: var(--blu); color: var(--bianco); border-color: var(--blu); transform: scale(1.12); box-shadow: 0 10px 30px rgba(1,18,252,.35); }
.tstep__body { opacity: .35; transform: translateX(24px); transition: opacity .5s ease, transform .7s var(--ease); padding-top: .6rem; }
.tstep.is-on .tstep__body { opacity: 1; transform: none; }
.tstep h3 { font-size: 1.5rem; }
.tstep p { color: var(--grigio); margin-top: .3rem; }
@media (min-width: 760px) { .tstep { grid-template-columns: 58px 1fr; gap: 2rem; } .tstep h3 { font-size: 1.8rem; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 2.2rem; display: grid; gap: .7rem; }
.faq details { background: var(--bianco); border: 1px solid var(--bordo); border-radius: 16px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-weight: 800; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--blu) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.3rem 1.2rem; color: var(--grigio); animation: faqIn .35s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contatti ---------- */
.contact { background: var(--blu); color: var(--bianco); padding: clamp(4.5rem, 10vw, 8rem) 0; text-align: center; overflow: hidden; }
.contact__in { display: grid; justify-items: center; gap: 1.1rem; }
.contact p { max-width: 46ch; font-size: 1.1rem; opacity: .92; }
.contact .btn { margin-top: .6rem; position: relative; }
.contact .btn--lg::after { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); animation: ring 2.4s ease-out infinite; pointer-events: none; }
@keyframes ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.contact__handle { font-weight: 700; opacity: .85 !important; font-size: 1rem !important; }
.contact__handle a { text-decoration: none; } .contact__handle a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; background: var(--inchiostro); color: #C9CBE6; padding: 3rem 0; font-size: .92rem; }
.footer__in { display: grid; gap: 1.6rem; }
@media (min-width: 720px) { .footer__in { grid-template-columns: 1fr auto; align-items: end; } .footer__legal { text-align: right; } }
.footer__brand img { height: 26px; width: auto; margin-bottom: .9rem; }
.footer__legal p { opacity: .7; }

/* ---------- Card che si inclinano col mouse (solo puntatore preciso) ---------- */
@media (hover: hover) and (pointer: fine) {
  .work { transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease; }
  .work.is-tilting { transition: box-shadow .25s ease; }
}

/* ---------- Meno animazioni se l'utente lo preferisce ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { position: relative; top: 0; }
  .hero__in, .scard, .art-browser, .art-phone, .art-dash, .works__track { transform: none !important; opacity: 1 !important; filter: none !important; }
  .hero::after { display: none; }
  .hero-in, [data-reveal], h2[data-words] .w > span { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .scard { position: relative; top: 0; }
  .works { height: auto; } .works__sticky { position: static; height: auto; }
  .hero__scroll, .contact .btn--lg::after, .ui-ring span, .badge--dev::before { animation: none; }
  .ui-phone, .ui-bars i { opacity: 1; transform: none; transition: none; } .ui-phone { transform: rotate(-4deg); }
  .timeline::after { transform: none; } .tstep__body { opacity: 1; transform: none; }
  .btn, .work { transition: none; }
}
