/* 3C Digital — restyling ottobre 2026. Scuro e luminoso nelle aperture, chiaro e leggibile nei contenuti. */
:root {
  --night: #0a1020;
  --night-2: #111a30;
  --night-3: #1a2542;
  --ink: #0d1322;
  --muted: #4a5266;
  --paper: #f5f3ee;
  --white: #ffffff;
  --line: #dcd8cd;
  --teal: #5eead4;
  --teal-deep: #0f766e;
  --indigo: #8b9bff;
  --indigo-deep: #3b4bd6;
  --amber: #fbbf77;
  --amber-deep: #9a5b0a;
  --radius: 18px;
  --nav: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 30px 70px -28px rgba(10, 16, 32, 0.45);
}

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Outfit; src: url("/fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Outfit; src: url("/fonts/outfit-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Outfit; src: url("/fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); }
[id] { scroll-margin-top: calc(var(--nav) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", Outfit, sans-serif; letter-spacing: -0.02em; line-height: 1.04; font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }

.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section.wrap { padding-inline: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--teal); color: var(--night); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Navigazione ---------- */
.nav-wrap {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav);
  background: rgba(10, 16, 32, 0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 300ms;
  color: #fff;
}
.nav-wrap.scrolled { background: rgba(10, 16, 32, 0.88); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-text small { font-family: Outfit, sans-serif; font-weight: 400; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }
.brand-mark { width: 60px; height: 60px; margin: -6px -4px -6px 0; object-fit: contain; flex: none; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 0.95rem; opacity: 0.8; position: relative; transition: opacity 200ms, background 200ms; }
.nav-links a:not(.btn):hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.nav-links .btn { margin-left: 8px; }
.menu-toggle { display: none; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 99px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform 250ms var(--ease), box-shadow 250ms, background 250ms, border-color 250ms;
}
.btn.small { padding: 11px 18px; font-size: 0.92rem; }
.btn.primary { background: linear-gradient(120deg, var(--teal), #7dd3fc 60%, var(--indigo)); background-size: 160% 100%; color: var(--night); box-shadow: 0 10px 30px -10px rgba(94, 234, 212, 0.55); }
.btn.primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 36px -10px rgba(94, 234, 212, 0.7); }
.btn.ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; background: rgba(255, 255, 255, 0.04); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--teal-deep); margin-bottom: 18px; flex-wrap: wrap; }
.dark .eyebrow { color: var(--teal); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 2px; color: var(--indigo-deep); transition: color 200ms, border-color 200ms; }
.text-link:hover { color: var(--teal-deep); }
.dark .text-link { color: var(--teal); }

/* ---------- Sfondo animato (solo CSS) ---------- */
.dark { background: var(--night); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.aurora .b1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -12%; top: -22%; background: radial-gradient(circle, #1fb5a6, transparent 68%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora .b2 { width: 48vw; height: 48vw; max-width: 700px; max-height: 700px; right: -10%; top: 5%; background: radial-gradient(circle, #5b6cff, transparent 68%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora .b3 { width: 38vw; height: 38vw; max-width: 560px; max-height: 560px; left: 30%; bottom: -30%; background: radial-gradient(circle, #f59e5b, transparent 70%); opacity: 0.32; animation: drift3 30s ease-in-out infinite alternate; }
.aurora.soft .blob { opacity: 0.32; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.2); } }
@keyframes drift2 { to { transform: translate(-16vw, 18vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-20vw, -12vh) scale(1.25); } }
.aurora .grid {
  position: absolute; inset: -60px 0 0 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
  animation: gridmove 14s linear infinite;
}
@keyframes gridmove { to { transform: translateY(56px); } }
.aurora .spot {
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), rgba(94, 234, 212, 0.16), transparent 60%);
  transition: background-position 200ms;
}

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav) + clamp(14px, 3.2vh, 40px)) 0 clamp(56px, 8vh, 96px); min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, min(5.4vw, 7.8vh), 4.6rem); margin-bottom: 20px; text-wrap: balance; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--teal), var(--indigo) 55%, var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 7s ease-in-out infinite alternate; }
@keyframes shine { to { background-position: 100% 0; } }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 56ch; color: rgba(255, 255, 255, 0.78); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: clamp(20px, 3.4vh, 34px); }
.hero-proof { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; margin-top: clamp(24px, 4.6vh, 46px); padding-top: clamp(16px, 2.6vh, 26px); border-top: 1px solid rgba(255, 255, 255, 0.12); }
.hero-proof li { display: flex; flex-direction: column; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.hero-proof b { color: #fff; font-size: 1rem; font-weight: 600; }

.hero-visual { position: relative; perspective: 1400px; padding: 0 0 54px; }
.hero-visual .float { transition: transform 400ms var(--ease); }
.f-desk { transform: rotateY(-8deg) rotateX(4deg) translate3d(var(--tx, 0), var(--ty, 0), 0); animation: bob1 7s ease-in-out infinite alternate; }
.f-phone { position: absolute; width: 27%; right: -2%; bottom: 20px; transform: translate3d(var(--tx2, 0), var(--ty2, 0), 0); animation: bob2 6s ease-in-out infinite alternate; }
@keyframes bob1 { from { translate: 0 -6px; } to { translate: 0 8px; } }
@keyframes bob2 { from { translate: 0 8px; } to { translate: 0 -10px; } }
.hero-cap { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.7); }

.browser { border-radius: 14px; overflow: hidden; background: var(--night-2); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1b2540; }
.browser .bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a4670; }
.browser .bar span:nth-child(1) { background: #ff7b72; }
.browser .bar span:nth-child(2) { background: #f5c451; }
.browser .bar span:nth-child(3) { background: #58d68d; }
.browser .bar em { margin-left: 10px; flex: 1; font-style: normal; font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.07); padding: 3px 12px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.browser img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; }
.phone { border-radius: 28px; overflow: hidden; border: 6px solid #0b1224; background: #0b1224; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.12); }
.phone img { width: 100%; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 99px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--teal); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Etichette ---------- */
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; line-height: 1; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-client { background: rgba(94, 234, 212, 0.16); color: var(--teal-deep); box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.35); }
.tag-own { background: rgba(91, 108, 255, 0.12); color: var(--indigo-deep); box-shadow: inset 0 0 0 1px rgba(59, 75, 214, 0.35); }
.tag-demo { background: transparent; color: var(--amber-deep); box-shadow: inset 0 0 0 1.5px rgba(154, 91, 10, 0.55); }
.dark .tag-client { color: var(--teal); background: rgba(94, 234, 212, 0.14); box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.4); }
.dark .tag-own { color: var(--indigo); box-shadow: inset 0 0 0 1px rgba(139, 155, 255, 0.4); }
.dark .tag-demo { color: var(--amber); box-shadow: inset 0 0 0 1.5px rgba(251, 191, 119, 0.6); }

/* ---------- Fatti ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-row div { padding: 28px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.facts-row div:first-child { border-left: 0; padding-left: 0; }
.facts-row b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.15rem; }
.facts-row span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

/* ---------- Intestazioni di sezione ---------- */
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head > p, .section-head > div > p { color: var(--muted); font-size: 1.1rem; }
.legend { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.legend li { display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Progetti ---------- */
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.5vw, 44px); border-radius: 28px; background: var(--night); color: #fff; position: relative; overflow: hidden; }
.feature::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 65%); filter: blur(30px); }
.feature-media { position: relative; padding-bottom: 36px; }
.feature-phone { position: absolute; right: -10px; bottom: 0; width: 24%; transition: transform 600ms var(--ease); }
.feature:hover .feature-phone { transform: translateY(-10px) rotate(2deg); }
.feature-copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.feature-copy h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.feature-copy > p { color: rgba(255, 255, 255, 0.76); }
.card-links { display: flex; gap: 22px; flex-wrap: wrap; }
.client-quote { border-left: 3px solid var(--teal); padding: 4px 0 4px 20px; }
.client-quote p { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.12rem; line-height: 1.45; font-weight: 500; }
.client-quote footer { margin-top: 10px; font-size: 0.9rem; font-weight: 600; }
.client-quote footer span { display: block; font-weight: 400; opacity: 0.65; }

.duo-title { margin: clamp(56px, 7vw, 88px) 0 24px; display: grid; gap: 6px; max-width: 70ch; }
.duo-title h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.duo-title p { color: var(--muted); }
.cards.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); padding: 14px 14px 26px; box-shadow: 0 1px 0 var(--line), 0 24px 50px -34px rgba(10, 16, 32, 0.4); transition: transform 500ms var(--ease), box-shadow 500ms; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line), 0 34px 60px -30px rgba(10, 16, 32, 0.5); }
.card-shot { display: block; overflow: hidden; border-radius: 12px; }
.card-shot .browser { box-shadow: none; transition: transform 800ms var(--ease); border-radius: 12px; }
.card:hover .card-shot .browser { transform: scale(1.025); }
.card-body { padding: 22px 12px 0; display: grid; gap: 14px; justify-items: start; align-content: start; flex: 1; }
.card-body p { color: var(--muted); }

.band-soft { background: linear-gradient(180deg, #ebe8df, var(--paper)); }
.reach-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: linear-gradient(145deg, var(--night-3), var(--night)); box-shadow: var(--shadow); max-width: 420px; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px; background: linear-gradient(transparent, rgba(10, 16, 32, 0.85)); color: #fff; display: flex; flex-direction: column; }
.portrait-frame figcaption span { font-size: 0.88rem; opacity: 0.7; }
.portrait-name { display: none; }
.portrait-frame.no-photo .portrait-name { display: grid; place-items: center; position: absolute; inset: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 11rem; font-weight: 800; background: linear-gradient(135deg, var(--teal), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reach-copy { display: grid; gap: 18px; }
.reach-copy h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.reach-copy p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; }

/* ---------- Servizi ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { padding: 34px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 500ms var(--ease), border-color 300ms; }
.service::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--indigo), var(--amber)); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease); }
.service:hover { transform: translateY(-5px); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service-number { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 3.2rem; font-weight: 800; line-height: 1; margin-bottom: 18px; background: linear-gradient(135deg, var(--teal-deep), var(--indigo-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.service h3 { margin-bottom: 10px; }
.service > p { color: var(--muted); margin-bottom: 20px; }
.service ul { list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.service li { padding-left: 26px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2px solid var(--teal-deep); border-bottom: 2px solid var(--teal-deep); transform: rotate(-45deg) scale(0.8); }

/* ---------- Metodo ---------- */
.method-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.method-intro { position: sticky; top: calc(var(--nav) + 32px); display: grid; gap: 18px; }
.method-intro p { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; }
.steps { list-style: none; display: grid; gap: 16px; position: relative; counter-reset: s; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(6px); transition: background 300ms; }
.step:hover { background: rgba(255, 255, 255, 0.09); transform: translateX(6px); }
.step > span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--night); background: linear-gradient(135deg, var(--teal), var(--indigo)); }
.step h3 { margin-bottom: 6px; font-size: 1.3rem; }
.step p { color: rgba(255, 255, 255, 0.7); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); }
.faq-grid > div:first-child { display: grid; gap: 16px; align-content: start; position: sticky; top: calc(var(--nav) + 32px); height: fit-content; }
.faq-grid > div:first-child p:last-child { color: var(--muted); font-size: 1.1rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 1.2rem; position: relative; transition: color 200ms; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; transition: transform 400ms var(--ease), background 300ms; }
.faq summary:hover { color: var(--indigo-deep); }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--teal); border-color: var(--teal); }
.faq details p { padding: 0 44px 24px 0; color: var(--muted); animation: open 500ms var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Contatti ---------- */
.cta-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.cta h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); margin-bottom: 20px; }
.contact-direct { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 38px; }
.reach-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.reach-facts dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 4px; }
.reach-facts dd { line-height: 1.5; }
.reach-facts a { text-decoration: none; display: block; }
.reach-facts a:hover { color: var(--teal); }
.fact-note { display: block; font-size: 0.8rem; opacity: 0.55; margin-bottom: 4px; }
.contact-form { padding: clamp(24px, 3vw, 38px); border-radius: 24px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; gap: 18px; }
.contact-form h3 { font-size: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 500; opacity: 0.8; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(10, 16, 32, 0.55); color: #fff; transition: border-color 200ms, box-shadow 200ms; }
.field select option { color: #000; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18); }
.form-note { font-size: 0.85rem; opacity: 0.65; }
.form-note a { text-underline-offset: 3px; }
.form-status { font-size: 0.92rem; color: var(--teal); min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer { background: #060a16; color: rgba(255, 255, 255, 0.72); padding: 56px 0 30px; font-size: 0.95rem; }
.footer .brand { color: #fff; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-top p { max-width: 38ch; }
.footer a { text-underline-offset: 3px; }
.backtop { text-decoration: none; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.2); }
.backtop:hover { background: rgba(255, 255, 255, 0.1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 0.85rem; opacity: 0.8; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Pagine di approfondimento ---------- */
.case-open { padding: calc(var(--nav) + 64px) 0 clamp(64px, 8vw, 104px); }
.case-head { display: grid; gap: 4px; }
.breadcrumbs { font-size: 0.88rem; opacity: 0.7; margin-bottom: 28px; }
.breadcrumbs a { text-underline-offset: 3px; }
.case-open h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin-bottom: 30px; }
.case-lead { display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end; }
.case-lead p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.78); max-width: 62ch; }
.case-body { padding-bottom: clamp(72px, 9vw, 120px); }
.detail-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transform: translateY(-50%); margin-bottom: -10px; box-shadow: var(--shadow); }
.detail-meta div { background: var(--white); padding: 22px 26px; display: grid; gap: 2px; }
.detail-meta small { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.detail-meta a { text-decoration: none; color: var(--indigo-deep); }
.case-gallery { display: grid; gap: clamp(48px, 7vw, 96px); margin: 24px 0 clamp(56px, 8vw, 104px); }
.frame { display: grid; gap: 18px; position: relative; }
.frame.pair { grid-template-columns: 1fr 22%; align-items: end; gap: 24px; }
.frame.pair figcaption { grid-column: 1 / -1; }
.frame .browser { box-shadow: var(--shadow), 0 0 0 1px rgba(10, 16, 32, 0.08); }
.frame video.shot-phone { display: block; width: 100%; height: auto; }
.frame .shot-phone { border-radius: 24px; border: 6px solid #0b1224; box-shadow: var(--shadow); }
.frame.phone-shot { justify-items: center; }
.frame.phone-shot .phone { width: min(340px, 100%); }
.frame figcaption { color: var(--muted); font-size: 1.02rem; max-width: 68ch; padding-left: 18px; border-left: 3px solid var(--teal); }
.frame.phone-shot figcaption { justify-self: center; max-width: 52ch; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.choice { padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; transition: transform 500ms var(--ease); }
.choice:hover { transform: translateY(-5px); }
.choice > span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2.4rem; line-height: 1; background: linear-gradient(135deg, var(--teal-deep), var(--indigo-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.choice p { color: var(--muted); }
.case-quote { margin: 56px auto 0; max-width: 780px; padding: 8px 0 8px 28px; }
.case-quote p { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.related { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; margin-top: clamp(48px, 7vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); }
.related .btn.primary { margin-left: auto; }
.legal-head { padding-bottom: 64px; }
.legal-head h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.legal { max-width: 760px; padding: 56px 0 96px; display: grid; gap: 16px; justify-items: start; }
.legal h2 { font-size: 1.6rem; margin-top: 24px; }
.legal p { color: var(--muted); }
.legal a:not(.btn) { color: var(--indigo-deep); }
.legal .btn.primary { margin-top: 18px; }

/* ---------- Video sintetico ---------- */
.demo { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(56px, 8vw, 96px); }
.demo .phone { box-shadow: var(--shadow), 0 0 0 1px rgba(10, 16, 32, 0.12); }
.demo video { width: 100%; height: auto; display: block; background: #0b1224; }
.demo figcaption { color: var(--muted); border-left: 3px solid var(--amber-deep); padding-left: 18px; max-width: 52ch; }
.demo figcaption b { display: block; color: var(--ink); font-family: "Bricolage Grotesque", sans-serif; font-size: 1.6rem; line-height: 1.15; margin: 8px 0 10px; }
.badge-note { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--amber-deep); box-shadow: inset 0 0 0 1.5px rgba(154, 91, 10, 0.55); }

/* ---------- Specifiche tecniche ---------- */
.tech { margin: clamp(64px, 9vw, 112px) 0; display: grid; gap: clamp(32px, 5vw, 56px); }
.tech-head { display: grid; gap: 14px; max-width: 760px; }
.tech-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.pipeline { list-style: none; display: grid; gap: 14px; counter-reset: p; }
.pipeline li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; padding: 24px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform 400ms var(--ease), border-color 300ms; }
.pipeline li:hover { transform: translateX(6px); border-color: var(--teal-deep); }
.pipeline li > span { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; background: linear-gradient(135deg, var(--teal-deep), var(--indigo-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pipeline h3 { font-size: 1.25rem; margin-bottom: 4px; }
.pipeline p { color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs div { background: var(--night); color: #fff; padding: 22px 24px; display: grid; gap: 6px; align-content: start; }
.specs dt { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.specs dd { font-size: 0.97rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- Comparsa allo scorrimento ---------- */
.reveal.pending { opacity: 0; transform: translateY(34px); }
.reveal { transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.pending.in { opacity: 1; transform: none; }


/* ---------- Apertura (solo home, una volta a sessione) ---------- */
.intro { display: none; }
.intro-on .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--night); overflow: hidden; clip-path: inset(0 0 0 0); }
.intro-on:not(.intro-out) { overflow: hidden; }
.intro-bg { position: absolute; inset: 0; z-index: 0; }
.intro-bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0; will-change: transform, opacity; animation: introGlow 1.4s 0.1s var(--ease) forwards; }
.intro-bg .b1 { width: 60vmax; height: 60vmax; left: -15%; top: -25%; background: radial-gradient(circle, #1fb5a6, transparent 68%); }
.intro-bg .b2 { width: 55vmax; height: 55vmax; right: -15%; top: 5%; background: radial-gradient(circle, #5b6cff, transparent 68%); animation-delay: 0.25s; }
.intro-bg .b3 { width: 45vmax; height: 45vmax; left: 25%; bottom: -35%; background: radial-gradient(circle, #f59e5b, transparent 70%); animation-delay: 0.4s; }
@keyframes introGlow { to { opacity: 0.5; } }
.intro-bg .grid { position: absolute; inset: 0; opacity: 0; background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 50%, #000 5%, transparent 62%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 5%, transparent 62%); animation: introFade 1s 0.2s ease forwards; }
@keyframes introFade { to { opacity: 1; } }

.intro-lockup { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; color: #fff; }
.intro-mark { position: relative; width: clamp(150px, 26vmin, 230px); aspect-ratio: 1; display: grid; place-items: center; }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.intro-ring circle { fill: none; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.intro-ring .r1 { stroke: var(--teal); stroke-width: 2.4; animation: introDraw 1.05s 0.1s var(--ease) forwards; filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.55)); }
.intro-ring .r2 { stroke: rgba(224, 231, 255, 0.85); stroke-width: 1.2; animation: introDraw 1.05s 0.3s var(--ease) forwards; }
@keyframes introDraw { to { stroke-dashoffset: 0; } }
.intro-mark img { width: 62%; height: auto; clip-path: inset(0 100% 0 0); animation: introWipe 0.85s 0.55s var(--ease) forwards; position: relative; }
.intro-mark::before { content: ""; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(94, 234, 212, 0.28), transparent 62%); opacity: 0; animation: introHalo 1.8s 0.5s ease-in-out forwards; }
@keyframes introHalo { 40% { opacity: 1; } 100% { opacity: 0.55; } }
@keyframes introWipe { to { clip-path: inset(0 0 0 0); } }

.intro-word { display: flex; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: clamp(2rem, 6vmin, 3.2rem); letter-spacing: 0.04em; line-height: 1; }
.intro-word span { display: inline-block; opacity: 0; transform: translateY(70%) rotateX(-50deg); animation: introLetter 0.7s var(--ease) forwards; }
.intro-word .sp { width: 0.4em; }
.intro-word span:nth-child(1) { animation-delay: 0.85s; } .intro-word span:nth-child(2) { animation-delay: 0.9s; }
.intro-word span:nth-child(4) { animation-delay: 0.97s; } .intro-word span:nth-child(5) { animation-delay: 1.02s; }
.intro-word span:nth-child(6) { animation-delay: 1.07s; } .intro-word span:nth-child(7) { animation-delay: 1.12s; }
.intro-word span:nth-child(8) { animation-delay: 1.17s; } .intro-word span:nth-child(9) { animation-delay: 1.22s; }
.intro-word span:nth-child(10) { animation-delay: 1.27s; }
@keyframes introLetter { to { opacity: 1; transform: none; } }
.intro-sub { font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--teal); opacity: 0; animation: introSub 0.8s 1.35s ease forwards; }
@keyframes introSub { to { opacity: 0.9; letter-spacing: 0.4em; } }

/* uscita: il logo sale e si dissolve, il sipario scorre verso l'alto */
.intro-out .intro { animation: introCurtain 0.95s 0.12s cubic-bezier(0.76, 0, 0.24, 1) forwards; pointer-events: none; }
.intro-out .intro-lockup { animation: introLift 0.7s ease forwards; }
@keyframes introLift { to { opacity: 0; transform: translateY(-34px) scale(1.06); } }
@keyframes introCurtain { to { clip-path: inset(0 0 100% 0); } }

/* l'hero entra dopo il sipario */
.intro-on .hero-copy > *, .intro-on .hero-visual { opacity: 0; transform: translateY(28px); }
.intro-out .hero-copy > *, .intro-out .hero-visual { animation: introIn 0.9s var(--ease) forwards; }
.intro-out .hero-copy > :nth-child(1) { animation-delay: 0.45s; } .intro-out .hero-copy > :nth-child(2) { animation-delay: 0.55s; }
.intro-out .hero-copy > :nth-child(3) { animation-delay: 0.65s; } .intro-out .hero-copy > :nth-child(4) { animation-delay: 0.75s; }
.intro-out .hero-copy > :nth-child(5) { animation-delay: 0.85s; } .intro-out .hero-visual { animation-delay: 0.6s; }
@keyframes introIn { to { opacity: 1; transform: none; } }
.intro-on .nav-wrap { opacity: 0; }
.intro-out .nav-wrap { animation: introIn 0.7s 0.5s ease forwards; transform: none; }

/* ---------- Telefono e tablet ---------- */
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid, .section-head, .feature, .reach-grid, .method-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .method-intro, .faq-grid > div:first-child { position: static; }
  .services-grid, .choices { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts-row div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-visual { max-width: 640px; }
  .f-desk { transform: none; }
  .scroll-cue { display: none; }
  .portrait-frame { max-width: 320px; }
  .case-lead { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; cursor: pointer; font-weight: 500; }
  .nav-links { position: absolute; inset: var(--nav) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 24px; background: rgba(10, 16, 32, 0.97); border-bottom: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden; transition: opacity 250ms, transform 350ms var(--ease), visibility 250ms; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 8px; font-size: 1.1rem; opacity: 1; }
  .nav-links .btn { margin: 10px 0 0; padding: 16px; }
  .cards.two { grid-template-columns: 1fr; }
  .detail-meta { grid-template-columns: 1fr; transform: translateY(-30px); margin-bottom: -6px; }
  .frame.pair { grid-template-columns: 1fr; }
  .frame.pair .shot-phone { width: 46%; justify-self: end; margin-top: -90px; }
  .related .btn.primary { margin-left: 0; }
}

@media (max-width: 800px) { .demo { grid-template-columns: 1fr; justify-items: center; } .demo .phone { width: min(300px, 100%); } .demo figcaption { justify-self: stretch; } .specs { grid-template-columns: 1fr; } .pipeline li { grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; } }

@media (max-width: 800px) {
  .text-link, .breadcrumbs a, .detail-meta a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn.small { min-height: 44px; }
  .card-links { gap: 4px 22px; }
  .breadcrumbs { margin-bottom: 14px; }
  .footer-links a, .backtop { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero-proof { gap: 18px; }
  .hero-actions .btn, .contact-direct .btn { width: 100%; }
  .hero-visual { padding-bottom: 84px; }
  .f-phone { width: 30%; right: 0; bottom: 92px; }
  .hero-cap { flex-wrap: wrap; gap: 8px 10px; }
  .form-grid, .reach-facts { grid-template-columns: 1fr; }
  .facts-row div { padding: 20px 14px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 20px; }
  .step > span { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
  .feature { border-radius: 22px; padding: 18px; }
  .feature-phone { width: 30%; }
  .portrait-frame.no-photo .portrait-name { font-size: 8rem; }
  .footer-top, .footer-bottom { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .intro { display: none !important; }
  .reveal.pending { opacity: 1; transform: none; }
}
