/* ═══════════════════════════════════════════════════════
   HARMONY DREAM STUDIO — site.css
   Brand: la fiamma del logo (blu notte → acqua) su fondo notte.
   ═══════════════════════════════════════════════════════ */

@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('../fonts/geist-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #070b1f;
  --ink-2: #0c1331;
  --ink-3: #141d45;
  --text: #eef2ff;
  --muted: #a9b4d6;
  --line: rgba(238, 242, 255, .12);
  --line-2: rgba(238, 242, 255, .22);
  --blue: #2f5bff;
  --navy: #0b1fa8;
  --aqua: #19e3b9;
  --aqua-2: #10c9a3;
  --grad: linear-gradient(115deg, #3a63ff 0%, #22b8e6 55%, #19e3b9 100%);
  --paper: #f2f4fa;
  --paper-ink: #0a1030;
  --paper-muted: #4b5578;
  --paper-line: #d9deec;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --wrap: 1240px;
  --r: 18px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--aqua); color: var(--ink); }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--aqua); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 120; }

/* ── Tipografia ───────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 0 rgba(25, 227, 185, .6); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(25, 227, 185, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(25, 227, 185, 0); } }

h1 em, h2 em, .footer-big em {
  font-style: italic;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.section-light h2 em { background: linear-gradient(115deg, #1d3fe0, #0aa889); -webkit-background-clip: text; background-clip: text; }

.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.link-arrow:hover { color: var(--aqua); border-color: var(--aqua); }

/* ── Bottoni ──────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-glow { background: var(--aqua); color: var(--ink); box-shadow: 0 8px 30px -8px rgba(25, 227, 185, .7); }
.btn-glow:hover { background: #4cf0cd; color: var(--ink); box-shadow: 0 12px 40px -8px rgba(25, 227, 185, .9); }
.btn-glow svg { transition: transform .25s var(--ease); }
.btn-glow:hover svg { transform: translateX(4px); }
.btn-line { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.section-light .btn-line { border-color: var(--paper-ink); color: var(--paper-ink); background: transparent; }
.section-light .btn-line:hover { background: var(--paper-ink); color: var(--paper); }

/* ── Header ───────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(7, 11, 31, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: #f4f7ff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 6px 20px -6px rgba(25, 227, 185, .55); }
.brand-mark img { width: 34px; height: 34px; }
.brand-name { font: 600 17px/1 var(--sans); letter-spacing: -.01em; }
.brand-name span { color: var(--muted); font-weight: 500; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav ul a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav ul a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav-side { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font: 500 12px/1 var(--mono); padding: 7px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang a[aria-current='true'] { background: var(--text); color: var(--ink); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded='true'] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] span:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .menu-btn { display: block; z-index: 110; }
  .nav {
    position: fixed; inset: 0; z-index: 105; flex-direction: column; align-items: stretch; justify-content: center; gap: 36px;
    padding: 100px 28px 40px; background: rgba(7, 11, 31, .97); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav ul a { font: 400 40px/1.15 var(--serif); padding: 4px 0; color: var(--text); background: none !important; }
  .nav ul a[aria-current='page'] { color: var(--aqua); }
  .nav-side { justify-content: space-between; }
  .brand-name span { display: none; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; padding: 40px 0 90px; overflow: hidden; }
.hero-bg, .hero-bg * { pointer-events: none; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.b1 { width: 560px; height: 560px; right: -120px; top: -140px; background: radial-gradient(circle, #2346ff 0%, transparent 65%); }
.b2 { width: 520px; height: 520px; left: -200px; bottom: -220px; background: radial-gradient(circle, #13c9a4 0%, transparent 65%); opacity: .35; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; min-height: calc(100vh - 220px); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-title { font: 400 clamp(52px, 7.6vw, 112px)/.92 var(--serif); letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-sub { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 6px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-proof dt { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.hero-proof dd { margin: 0; font-weight: 500; }
.hero-proof a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.hero-proof a:hover { color: var(--aqua); border-color: var(--aqua); }

/* Palco animato */
.hero-stage { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 8%; border: 1px dashed var(--line-2); border-radius: 50%; animation: spin 60s linear infinite; }
.orbit.o2 { inset: 22%; border-style: solid; border-color: var(--line); animation-duration: 40s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-logo { position: absolute; left: 56%; top: 54%; width: 44%; translate: -50% -50%; }
.stage-logo img { width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(25, 227, 185, .45)) drop-shadow(0 0 80px rgba(47, 91, 255, .5)) brightness(1.25) saturate(1.2); }
.float { position: absolute; }
.f-browser { left: -4%; top: 8%; width: 48%; background: #f4f6fd; color: var(--paper-ink); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; rotate: -6deg; }
.mock-bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: #e3e7f3; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c3cadf; }
.mock-bar i:first-child { background: #ff6b5e; } .mock-bar i:nth-child(2) { background: #ffc94a; } .mock-bar i:nth-child(3) { background: #3fd07a; }
.mock-bar span { margin-left: 8px; font: 500 10px/1 var(--mono); color: #6b7393; background: #fff; padding: 4px 10px; border-radius: 6px; }
.mock-site { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mock-site span { display: block; border-radius: 4px; background: #d6dcef; }
.ms-title { height: 16px; width: 70%; background: var(--grad) !important; }
.ms-line { height: 7px; width: 90%; } .ms-line.short { width: 60%; }
.ms-btn { height: 18px; width: 38%; border-radius: 999px !important; background: var(--aqua) !important; margin-top: 4px; }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ms-grid span { height: 34px; }
.f-phone { right: 2%; bottom: 6%; width: 30%; rotate: 7deg; }
.mock-phone { background: #f4f6fd; border: 5px solid #1b2350; border-radius: 26px; padding: 22px 10px 12px; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); position: relative; aspect-ratio: 9 / 17; }
.mp-notch { position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 34%; height: 6px; border-radius: 6px; background: #1b2350; }
.mp-head { display: flex; gap: 4px; } .mp-head b { flex: 1; height: 10px; border-radius: 3px; background: #ff6b4a; } .mp-head b + b { background: #0e9a6c; }
.mp-row { display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 6px; background: #fff; border: 1px solid #dde3f0; }
.mp-row i { width: 14px; height: 9px; border-radius: 3px; } .mp-row i.d { background: #ff6b4a; } .mp-row i.a { background: #0e9a6c; }
.mp-row em { flex: 1; height: 5px; border-radius: 3px; background: #d6dcef; }
.mp-cta { margin-top: auto; height: 16px; border-radius: 6px; background: #16212b; }
.f-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(12, 19, 49, .85); border: 1px solid var(--line-2); backdrop-filter: blur(8px); font: 500 13px/1 var(--mono); white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.c1 { right: 4%; top: 10%; } .c2 { left: 6%; bottom: 14%; } .c3 { right: 34%; top: 2%; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); animation: ping 2s ease-out infinite; }

@media (max-width: 980px) {
  .hero { padding-top: 16px; padding-bottom: 60px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .hero-stage { max-width: 380px; margin: 10px auto -30px; width: 86%; }
  .f-chip { font-size: 11px; padding: 7px 10px; }
}
@media (max-width: 560px) {
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .c3 { display: none; }
}

/* ── Marquee ──────────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--ink-2); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; font: 400 34px/1 var(--serif); white-space: nowrap; }
.marquee-track i { font-style: normal; font-size: 18px; color: var(--aqua); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 560px) { .marquee-track { font-size: 26px; gap: 24px; } .marquee { padding: 16px 0; } }

/* ── Sezioni ──────────────────────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 90px 0; }
.section-first { padding-top: 40px; }
.section-light { background: var(--paper); color: var(--paper-ink); }
.section-light .kicker { color: #0b8f73; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 56px; }
.sec-head h2 { font: 400 clamp(40px, 5.2vw, 72px)/1 var(--serif); letter-spacing: -.015em; }
.sec-sub { font-size: 18px; color: var(--muted); max-width: 600px; }
.section-light .sec-sub { color: var(--paper-muted); }
.sec-more { margin-top: 44px; }
@media (max-width: 720px) { .section { padding: 80px 0; } .section-tight { padding: 64px 0; } .sec-head { margin-bottom: 36px; } }

/* ── Card progetto ───────────────────────────────── */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pgrid-all { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.agrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.pcard {
  position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.pcard:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(25, 227, 185, .35); }
.pcard-big { grid-column: span 2; flex-direction: row; }
.agrid .pcard-big { grid-column: auto; flex-direction: column; }
.pcard-cover {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; flex: none;
  background: radial-gradient(120% 120% at 20% 10%, hsl(var(--h) 85% 58%) 0%, hsl(calc(var(--h) + 60) 80% 35%) 45%, #0a1030 100%);
}
.pcard-big .pcard-cover { width: 52%; aspect-ratio: auto; min-height: 380px; }
.agrid .pcard-big .pcard-cover { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pcard:hover .pcard-cover img { transform: scale(1.05); }
.pcard-initials { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 clamp(80px, 12vw, 150px)/1 var(--serif); color: rgba(255, 255, 255, .92); text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.pcard-label { position: absolute; left: 16px; top: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(7, 11, 31, .78); backdrop-filter: blur(8px); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pcard-label.is-status { background: var(--aqua); color: var(--ink); }
.pcard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-big .pcard-body { justify-content: center; padding: 40px; }
.agrid .pcard-big .pcard-body { padding: 26px 28px 28px; justify-content: flex-start; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.pcard-meta span + span::before { content: '·'; margin-right: 14px; }
.pcard h3 { font: 400 34px/1.05 var(--serif); }
.pcard-big h3 { font-size: clamp(36px, 3.6vw, 48px); }
.pcard-desc { color: var(--muted); font-size: 16px; }
.chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 12px/1 var(--mono); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pcard-more summary { cursor: pointer; list-style: none; font: 500 13px/1 var(--mono); color: var(--aqua); display: inline-flex; gap: 8px; align-items: center; }
.pcard-more summary::-webkit-details-marker { display: none; }
.pcard-more summary::after { content: '+'; font-size: 16px; transition: transform .3s var(--ease); }
.pcard-more[open] summary::after { transform: rotate(45deg); }
.pcard-more dl { margin: 14px 0 0; display: grid; gap: 6px; font-size: 15px; }
.pcard-more dt { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.pcard-more dd { margin: 0; color: #d3daf2; }
.pcard-link { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.pcard-link span { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .2s; }
.pcard-link svg { transition: transform .3s var(--ease); }
.pcard-link:hover { color: var(--aqua); }
.pcard-link:hover span { border-color: var(--aqua); }
.pcard-link:hover svg { transform: translate(3px, -3px); }
.pcard.is-app { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); }
@media (max-width: 860px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard-big { grid-column: auto; flex-direction: column; }
  .pcard-big .pcard-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .pcard-big .pcard-body { padding: 26px 24px 28px; }
  .pgrid-all { grid-template-columns: 1fr; }
}
.section-apps { background: radial-gradient(80% 60% at 80% 0%, rgba(47, 91, 255, .18), transparent 70%); }

/* Filtri */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.filters button span { font: 500 12px/1 var(--mono); opacity: .7; }
.filters button[aria-pressed='true'] { background: var(--text); color: var(--ink); border-color: var(--text); }
.pcard.is-hidden { display: none; }

/* ── Prezzi ───────────────────────────────────────── */
.sgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; align-items: stretch; }
.scard {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--paper-line); color: var(--paper-ink);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(10, 16, 48, .35); }
.scard.is-popular { background: var(--ink); color: var(--text); border-color: var(--ink); box-shadow: 0 30px 60px -30px rgba(47, 91, 255, .7); }
.scard-badge { position: absolute; top: -12px; left: 26px; padding: 6px 12px; border-radius: 999px; background: var(--aqua); color: var(--ink); font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.scard h3 { font: 400 30px/1.05 var(--serif); }
.scard-price { display: flex; align-items: baseline; gap: 4px; font: 400 64px/1 var(--serif); letter-spacing: -.02em; }
.scard-price small { font: 500 13px/1 var(--mono); margin-right: 6px; color: var(--paper-muted); }
.scard-price .cur { font-size: 34px; }
.scard.is-popular .scard-price small { color: var(--muted); }
.scard-note { font: 500 12px/1.3 var(--mono); color: var(--paper-muted); text-transform: uppercase; letter-spacing: .06em; }
.scard.is-popular .scard-note { color: var(--muted); }
.scard-desc { font-size: 15px; color: var(--paper-muted); }
.scard.is-popular .scard-desc { color: var(--muted); }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(25, 227, 185, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230b8f73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.scard.is-popular .ticks li::before, .extra .ticks li::before { background-color: rgba(25, 227, 185, .2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%2319e3b9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.scard .btn { margin-top: auto; }
.included { margin-top: 40px; padding: 30px; border-radius: var(--r-lg); border: 1px dashed var(--paper-line); display: grid; gap: 18px; }
.included h3 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #0b8f73; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 24px; }
.included li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.included li::before { content: '✦'; color: #0b8f73; font-size: 12px; }
.included .care { font-size: 15px; color: var(--paper-muted); padding-top: 16px; border-top: 1px solid var(--paper-line); }
.included .care b { color: var(--paper-ink); }
.section:not(.section-light) .included { border-color: var(--line-2); }
.section:not(.section-light) .included h3, .section:not(.section-light) .included li::before { color: var(--aqua); }
.pay-note { margin-top: 26px; text-align: center; font: 500 13px/1.4 var(--mono); color: var(--paper-muted); }

.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.extra { position: relative; padding: 30px 28px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.extra h3 { font: 400 30px/1.05 var(--serif); }
.extra-price { font: 400 48px/1 var(--serif); }
.extra-price small { font: 500 13px/1 var(--mono); color: var(--muted); }
.extra > p:not(.extra-price) { color: var(--muted); font-size: 15px; }
.extra-partner { border-color: rgba(25, 227, 185, .45); background: linear-gradient(160deg, rgba(25, 227, 185, .1), var(--ink-2) 60%); }
.extra .btn { align-self: flex-start; margin-top: auto; }
.compare { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--line); }
.compare li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.compare b { font: 400 italic 30px/1 var(--serif); color: var(--aqua); white-space: nowrap; }
@media (max-width: 560px) { .compare li { flex-direction: column; align-items: flex-start; gap: 6px; } .scard-price { font-size: 54px; } }

/* ── Processo ─────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); position: relative; }
.steps::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { padding: 30px 26px 10px 0; display: flex; flex-direction: column; gap: 12px; }
.step + .step { padding-left: 26px; border-left: 1px solid var(--line); }
.step-n { font: 500 13px/1 var(--mono); color: var(--aqua); }
.step h3 { font: 400 32px/1.05 var(--serif); }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ── FAQ ──────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 60px; align-items: start; }
.faq-wrap .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 400 26px/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 10px; right: 10px; top: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i { background: var(--aqua); border-color: var(--aqua); color: var(--ink); transform: rotate(180deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 54px 26px 0; color: var(--muted); }
.faq summary:hover { color: var(--aqua); }
.faq-page { max-width: 900px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-cat { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); margin-bottom: 14px; }
.faq-more { margin-top: 64px; padding: 36px; border-radius: var(--r-lg); border: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.faq-more p { font: 400 32px/1.1 var(--serif); }
@media (max-width: 900px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
  .faq-wrap .sec-head { position: static; }
  .faq summary { font-size: 22px; }
  .faq-a { padding-right: 0; }
}

/* ── CTA ──────────────────────────────────────────── */
.cta-band { padding: 30px 0 120px; }
.cta-in {
  position: relative; overflow: hidden; border-radius: 36px; padding: 80px 56px; text-align: center;
  background: radial-gradient(120% 140% at 0% 0%, #2346ff 0%, #102074 40%, #0a1240 70%), var(--ink-2);
  border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.cta-in::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(25, 227, 185, .55), transparent 65%); filter: blur(30px); }
.cta-in > * { position: relative; z-index: 1; }
.cta-in h2 { font: 400 clamp(40px, 5.6vw, 76px)/1 var(--serif); max-width: 900px; }
.cta-in h2 em { background: none; color: var(--aqua); -webkit-background-clip: initial; background-clip: initial; }
.cta-in p { font-size: 18px; color: #c8d1f2; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px; margin-top: 8px; }
@media (max-width: 560px) { .cta-in { padding: 56px 22px; border-radius: 26px; } .cta-band { padding-bottom: 80px; } }

/* ── Pagine interne ───────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding: 70px 0 50px; }
.page-hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; }
.page-hero h1 { font: 400 clamp(52px, 8vw, 110px)/.95 var(--serif); letter-spacing: -.02em; max-width: 1000px; }
.page-hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.page-hero h1 .line > span { display: inline-block; }
.page-hero-sm h1 { font-size: clamp(44px, 6vw, 76px); }
.empty { padding: 50px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); text-align: center; color: var(--muted); font-size: 18px; }

/* Recensioni */
.tgrid { columns: 3 300px; column-gap: 20px; }
.tcard { break-inside: avoid; margin: 0 0 20px; padding: 28px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.stars { color: var(--aqua); letter-spacing: 3px; }
.tcard blockquote { margin: 0; font: 400 24px/1.3 var(--serif); }
.tcard figcaption { font-size: 14px; color: var(--muted); }
.tcard figcaption b { color: var(--text); }

/* Form */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-card { padding: 36px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; }
.section-light .field label, .section-light .field legend { color: var(--paper-muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px; font: 16px/1.4 var(--sans);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(25, 227, 185, .18); background: rgba(255, 255, 255, .05); }
.section-light .field input, .section-light .field textarea { background: #fff; border-color: var(--paper-line); color: var(--paper-ink); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; transition: background .2s, color .2s, border-color .2s; }
.pill input:checked + span { background: var(--aqua); border-color: var(--aqua); color: var(--ink); font-weight: 600; }
.pill input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--aqua); flex: none; }
.check a { color: var(--text); }
.form .btn { align-self: flex-start; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status[data-state='ok'] { color: var(--aqua); }
.form-status[data-state='err'] { color: #ff8a7a; }
.pre-service { padding: 14px 16px; border-radius: 14px; background: rgba(25, 227, 185, .1); border: 1px solid rgba(25, 227, 185, .35); font-size: 15px; }
.pre-service span { color: var(--muted); }
.notice { padding: 16px 18px; border-radius: 14px; margin-bottom: 20px; font-weight: 600; }
.notice.is-ok { background: rgba(14, 154, 108, .12); color: #0b6e4d; border: 1px solid rgba(14, 154, 108, .4); }
.notice.is-err { background: rgba(255, 107, 74, .12); color: #a8361c; border: 1px solid rgba(255, 107, 74, .4); }
.rating-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { font-size: 34px; line-height: 1; color: #c3cadf; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--sans); transition: color .15s, transform .15s; }
.rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: #0b8f73; }
.rating-stars input:focus-visible + label { outline: 2px solid #0b8f73; border-radius: 4px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.side-block { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.side-block h2 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua); }
.side-block p { color: var(--muted); }
.direct { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.direct li { display: flex; flex-direction: column; gap: 3px; }
.direct span { font: 500 11px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.direct a { font: 400 24px/1.2 var(--serif); text-decoration: none; word-break: break-all; }
.direct a:hover { color: var(--aqua); }
.side-steps ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.side-steps b { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } .form .btn { align-self: stretch; } }

/* Testo legale */
.prose h2 { font: 400 32px/1.1 var(--serif); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.prose strong, .prose a { color: var(--text); }

/* ── Footer ───────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 34px; overflow: hidden; }
.footer-big { font: 400 clamp(30px, 10vw, 140px)/1 var(--serif); letter-spacing: -.03em; white-space: nowrap; text-align: center; margin: 0 auto 60px; color: rgba(238, 242, 255, .1); }
.footer-big span { display: inline-block; }
.footer-big em { padding: 0 .08em; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 320px; }
.site-footer h2 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { color: var(--aqua); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } .footer-big { margin-bottom: 40px; } }

/* ── Movimento: stato iniziale (solo con JS) ───────── */
.js [data-reveal] { opacity: 0; transform: translateY(36px); }
.js [data-hero] { opacity: 0; transform: translateY(24px); }
.js [data-hero-title] .line > span { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-hero] { opacity: 1; transform: none; }
  .js [data-hero-title] .line > span { transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Le pillole stanno dentro .field: non ereditano lo stile delle etichette */
.field .pill { font: 500 15px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.section-light .field .rating-stars label { color: #c3cadf; font: 400 34px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.section-light .field .rating-stars input:checked ~ label,
.section-light .field .rating-stars label:hover,
.section-light .field .rating-stars label:hover ~ label { color: #0b8f73; }

/* CTA delle app: bottone vero, non solo link */
.pcard-link.is-cta { margin-top: auto; padding: 0 20px; min-height: 48px; border-radius: 999px; background: var(--aqua); color: var(--ink); box-shadow: 0 8px 26px -10px rgba(25, 227, 185, .7); }
.pcard-link.is-cta span { border: 0; padding: 0; }
.pcard-link.is-cta:hover { color: var(--ink); background: #4cf0cd; }
.pcard-more + .pcard-link.is-cta, .chips + .pcard-link.is-cta { margin-top: 12px; }

/* Il riquadro CTA ha anche la classe .wrap: deve lasciare i margini ai lati */
.cta-in.wrap { width: calc(100% - 48px); max-width: calc(var(--wrap) - 48px); }
@media (max-width: 560px) { .cta-in.wrap { width: calc(100% - 32px); } }


/* ===== Progetto segreto (status = secret) ===== */
.pcard.is-secret { background: radial-gradient(120% 90% at 50% 0%, #1b2560 0%, var(--ink-2) 60%); border-color: rgba(25, 227, 185, .25); }
.secret-cover { background: radial-gradient(circle at 50% 55%, #1d2b78 0%, #0a0f2e 70%); display: grid; place-items: center; overflow: hidden; }
.secret-q { position: relative; font: italic 400 clamp(120px, 16vw, 190px)/1 var(--serif); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px rgba(25, 227, 185, .45)); animation: secretFloat 4s var(--ease) infinite; }
.secret-scan { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%); transform: translateX(-100%); animation: secretScan 3.6s ease-in-out infinite; }
.secret-spark { position: absolute; width: 10px; height: 10px; background: var(--aqua); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; animation: secretTwinkle 2.8s ease-in-out infinite; }
.sp1 { left: 22%; top: 28%; } .sp2 { right: 20%; top: 22%; width: 14px; height: 14px; animation-delay: .7s; }
.sp3 { left: 30%; bottom: 20%; width: 8px; height: 8px; animation-delay: 1.4s; } .sp4 { right: 26%; bottom: 26%; animation-delay: 2.1s; background: #8fa6ff; }
.secret-title { font-variant-numeric: tabular-nums; }
.secret-btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.secret-reply { min-height: 1.5em; margin: 0; font: 500 13px/1.4 var(--mono); color: var(--aqua); }
.pcard.is-secret.is-peek .secret-cover { animation: secretShake .45s ease; }
.pcard.is-secret.is-peek .secret-q { animation: secretSpin .8s var(--ease); }
.secret-burst { position: fixed; z-index: 60; width: 8px; height: 8px; pointer-events: none; background: var(--aqua); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes secretFloat { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes secretScan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
@keyframes secretTwinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes secretShake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(7px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes secretSpin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.15); } 100% { transform: rotateY(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .secret-q, .secret-scan, .secret-spark { animation: none; } .secret-spark { opacity: .8; } }
/* 4 app: griglia 2x2 invece di 3+1 */
.agrid:has(> .pcard:nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
