/* Ankora — sito di presentazione. Nessuna dipendenza esterna. */
@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #07061a;
  --ink-2: #0e0c2b;
  --ink-3: #161339;
  --line: rgba(196, 189, 255, 0.12);
  --line-strong: rgba(196, 189, 255, 0.24);
  --fg: #f4f2ff;
  --muted: #b3aed6;
  --faint: #7f79a8;
  --violet: #6d5cff;
  --fuchsia: #d946ef;
  --sea: #38bdf8;
  --mint: #34d399;
  --grad: linear-gradient(120deg, var(--violet), var(--fuchsia));
  --radius: 22px;
  --wrap: 1180px;
  --display: 'Bricolage', 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* carta nautica: griglia sottile + curve di profondità */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(217, 70, 239, 0.22), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(109, 92, 255, 0.28), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(56, 189, 248, 0.12), transparent 60%),
    var(--ink);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 99; }
.skip:focus { left: 16px; }

/* ——— intestazione ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(7, 6, 26, 0.62);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 10px 26px -10px var(--fuchsia); }
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--fg); }
.top-cta { display: flex; gap: 10px; }
@media (max-width: 860px) { .nav { display: none; } .top-cta { margin-left: auto; } }
@media (max-width: 420px) { .top-cta .btn-ghost { display: none; } }

/* ——— bottoni ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 14px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 34px -14px var(--fuchsia); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px var(--fuchsia); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 16px; }
.btn svg { width: 18px; height: 18px; }

/* ——— hero ——— */
.hero { padding: 72px 0 40px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px 7px 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255,255,255,0.03);
}
.eyebrow b { background: var(--grad); color: #fff; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.06em; font-size: 11px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.035em; line-height: 1.02; margin: 0; font-weight: 700; }
.hero h1 { font-size: clamp(44px, 7.4vw, 96px); margin: 26px 0 24px; max-width: 13ch; font-weight: 750; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--faint); }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: 1.02fr 1fr; } }

.stage { position: relative; min-height: 360px; }
.screen {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--ink-3);
  box-shadow: 0 50px 120px -40px rgba(109, 92, 255, 0.55), 0 0 0 8px rgba(255,255,255,0.03);
}
.stage .screen-desk { transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transform-origin: left center; width: 108%; }
.stage .screen-phone {
  position: absolute; width: 34%; right: -2%; bottom: -12%;
  border-radius: 30px; border: 6px solid #1c1a3d;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.8), 0 0 0 1px var(--line-strong);
}
@media (max-width: 1039px) { .stage .screen-desk { transform: none; width: 100%; } .stage .screen-phone { width: 36%; right: -4px; bottom: -40px; } }

.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .26s; } .rise-5 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ——— strisce ——— */
.facts { margin-top: 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.facts li { padding: 26px 20px; border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; }
.facts strong { display: block; font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.facts span { color: var(--faint); font-size: 14px; }
@media (max-width: 759px) { .facts li:nth-child(3) { border-left: 0; } .facts li:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (min-width: 760px) { .facts ul { grid-template-columns: repeat(4, 1fr); } }

/* ——— sezioni ——— */
section { scroll-margin-top: 80px; }
.section { padding: 120px 0 0; }
.kicker { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fuchsia); font-weight: 600; margin: 0 0 16px; }
.section h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.section-intro { color: var(--muted); max-width: 56ch; font-size: 19px; margin: 22px 0 0; }

/* rotta: dal contatto all'ordine */
.route { position: relative; margin-top: 64px; }
.route ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; position: relative; z-index: 1; }
@media (min-width: 900px) { .route ol { grid-template-columns: repeat(4, 1fr); } }
.route li {
  counter-increment: step; position: relative;
  padding: 26px 24px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, #17143d, #0e0c2b);
  border: 1px solid var(--line);
}
.route li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--display); font-size: 15px; font-weight: 600;
  color: var(--faint); margin-bottom: 30px; letter-spacing: 0.04em;
}
.route .dot { position: absolute; top: 22px; right: 22px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.route .dot svg { width: 19px; height: 19px; }
.route h3 { font-size: 23px; margin-bottom: 10px; letter-spacing: -0.02em; }
.route p { margin: 0; color: var(--muted); font-size: 15.5px; }
.route-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; display: none; z-index: 0; }
@media (min-width: 900px) { .route-line { display: block; } }
.route-line svg { width: 100%; height: 40px; transform: translateY(-50%); overflow: visible; }

/* funzionalità */
.features { display: grid; gap: 18px; margin-top: 64px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(14, 12, 43, 0.6);
  transition: border-color .25s, transform .25s, background .25s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); background: rgba(22, 19, 57, 0.75); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.feature.wide { grid-column: 1 / -1; display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .feature.wide { grid-template-columns: 0.9fr 1.1fr; padding: 36px; } }
.feature.wide .screen { box-shadow: 0 30px 70px -30px rgba(109, 92, 255, 0.6); }

.c-violet { background: rgba(109, 92, 255, 0.16); color: #a99fff; }
.c-fuchsia { background: rgba(217, 70, 239, 0.15); color: #ea8cf8; }
.c-sea { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
.c-mint { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.c-amber { background: rgba(251, 191, 36, 0.14); color: #fcd34d; }
.c-rose { background: rgba(244, 114, 182, 0.14); color: #f9a8d4; }

/* telefono */
.mobile { display: grid; gap: 56px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .mobile { grid-template-columns: 0.9fr 1.1fr; } }
.phones { display: flex; gap: 18px; justify-content: center; align-items: flex-end; }
.phones figure { margin: 0; flex: 1; max-width: 250px; }
.phones .screen { border-radius: 28px; border: 6px solid #1c1a3d; }
.phones figure:nth-child(2) { transform: translateY(-34px); }
.phones figcaption { text-align: center; color: var(--faint); font-size: 13px; margin-top: 12px; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.checks li::before {
  content: ''; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.checks strong { color: var(--fg); font-weight: 600; }

/* galleria */
.gallery { display: grid; gap: 18px; margin-top: 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery figure { margin: 0; }
.gallery figcaption { color: var(--faint); font-size: 14px; margin-top: 12px; }
.gallery figcaption strong { color: var(--fg); font-weight: 600; }

/* sicurezza */
.secure { display: grid; gap: 18px; margin-top: 56px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .secure { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .secure { grid-template-columns: repeat(4, 1fr); } }
.secure div { padding: 24px; border-radius: 18px; border: 1px dashed var(--line-strong); }
.secure h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.secure p { margin: 0; color: var(--muted); font-size: 15px; }

/* domande */
.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--display); font-size: clamp(19px, 2.2vw, 23px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 70ch; }

/* invito finale */
.cta {
  margin: 130px 0 0; padding: clamp(40px, 7vw, 84px); border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(217,70,239,.45), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(109,92,255,.5), transparent 70%), var(--ink-2);
  border: 1px solid var(--line-strong);
}
.cta h2 { font-size: clamp(34px, 5.4vw, 64px); max-width: 15ch; }
.cta p { color: var(--muted); max-width: 48ch; font-size: 19px; margin: 20px 0 32px; }
.cta .anchor-bg { position: absolute; right: -40px; bottom: -60px; width: 340px; opacity: 0.09; }
@media (max-width: 700px) { .cta .anchor-bg { width: 220px; } }

/* piè di pagina */
.foot { margin-top: 110px; padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--fg); }

/* pagina funzionalità */
.page-hero { padding: 80px 0 0; }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 78px); max-width: 16ch; margin: 18px 0 22px; }
.crumbs { font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.detail { display: grid; gap: 40px; padding: 90px 0 0; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .detail { grid-template-columns: 1fr 1.1fr; } .detail.flip > :first-child { order: 2; } }
.detail h2 { font-size: clamp(30px, 4vw, 46px); max-width: 16ch; }
.detail p { color: var(--muted); }
.detail ul { color: var(--muted); padding-left: 20px; margin: 18px 0 0; }
.detail li { margin: 8px 0; }
.detail li strong { color: var(--fg); font-weight: 600; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost h1 { font-size: clamp(56px, 10vw, 120px); }
.lost p { color: var(--muted); margin: 16px auto 32px; max-width: 40ch; }
