/* PCO Suite — sito. Stessi colori dell'app: blu notte (navyDeep), arancione sicurezza, ciano. */
:root {
  --bg: #0a1128; --bg2: #0b1730; --card: #102347; --card2: #16305f; --line: #1c2b52; --line2: #2a3d6b;
  --text: #e8edf7; --muted: #a9b7d4; --soft: #cfd8ea;
  --orange: #ff6b35; --orange2: #ff8a5c; --cyan: #3fd0c9; --ok: #2fbf71;
  --grad: linear-gradient(135deg, #ff6b35 0%, #ff8a5c 45%, #ffb36b 100%);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.65 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--orange2); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #1a0c05; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- intestazione */
header.top {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 17, 40, .7); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
header.top.scrolled { border-bottom-color: var(--line); background: rgba(10, 17, 40, .9); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: .2px; white-space: nowrap; }
.brand img { width: 34px; height: 34px; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; color: var(--orange); margin-top: -4px; }
nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; white-space: nowrap; }
nav.main a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-cta { color: #1a0c05 !important; background: var(--grad); font-weight: 700; }
.nav-cta:hover { filter: brightness(1.08); }

/* selettore della lingua: mappamondo + nome della lingua nella lingua stessa */
.lang { position: relative; }
.lang > button {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 12px; white-space: nowrap;
}
.lang > button:hover, .lang > button[aria-expanded="true"] { background: rgba(255, 255, 255, .1); border-color: var(--orange); }
.lang > button svg { width: 18px; height: 18px; color: var(--orange); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 6px; min-width: 190px; z-index: 60;
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
}
.lang ul[hidden] { display: none; }
.lang li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--soft); text-decoration: none; font-size: 15px; }
.lang li a:hover, .lang li a:focus { background: rgba(255, 255, 255, .07); color: var(--text); outline: none; }
.lang li a[aria-current="true"] { color: var(--orange2); font-weight: 700; }
.lang li a span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.lang .lang-code { display: none; }

/* ---------------------------------------------------------------- pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  text-decoration: none; color: #1a0c05; background: var(--grad); border: 0; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(255, 107, 53, .6); transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 107, 53, .75); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: rgba(255, 255, 255, .05); color: var(--text); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 76px 0 30px; text-align: center; isolation: isolate; }
.aurora { position: absolute; inset: -120px 0 auto 0; height: 760px; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .4; animation: float 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 520px; height: 520px; left: 6%; top: 40px; background: #ff6b35; opacity: .28; }
.aurora span:nth-child(2) { width: 480px; height: 480px; right: 4%; top: 0; background: #1e4079; animation-delay: -6s; }
.aurora span:nth-child(3) { width: 380px; height: 380px; left: 42%; top: 280px; background: #3fd0c9; opacity: .18; animation-delay: -12s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.12); } 100% { transform: translate(-40px, 70px) scale(.95); } }
.grid-bg {
  position: absolute; inset: -120px 0 auto 0; height: 900px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(169, 183, 212, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(169, 183, 212, .06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 14px; color: var(--soft);
  background: rgba(16, 35, 71, .7); border: 1px solid var(--line2); margin-bottom: 22px;
}
.pill b { background: var(--grad); color: #1a0c05; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.06; margin: 0 auto 20px; max-width: 920px; letter-spacing: -1.4px; font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 740px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.hero .fine span { display: inline-flex; align-items: center; gap: 7px; }
.hero .fine span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* l'illustrazione dell'app: un rapporto d'intervento stilizzato, solo grafica */
.showcase { margin: 54px auto 0; max-width: 980px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; align-items: end; text-align: left; }
.mock { border-radius: 16px; border: 1px solid var(--line2); background: linear-gradient(180deg, #13284f, #0d1d3d); overflow: hidden;
        box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(255, 107, 53, .35); }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3d6b; }
.mock-bar b { margin-left: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mock-body { padding: 18px; display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.row .tick { width: 22px; height: 22px; border-radius: 7px; flex: 0 0 22px; display: grid; place-items: center; background: rgba(47, 191, 113, .16); color: var(--ok); }
.row .tick svg { width: 14px; height: 14px; }
.row .bar { height: 8px; border-radius: 6px; background: rgba(169, 183, 212, .22); flex: 1; }
.row .bar.short { flex: .55; }
.row .chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 107, 53, .16); color: var(--orange2); white-space: nowrap; }
.sign { height: 64px; border-radius: 12px; border: 1px dashed var(--line2); display: grid; place-items: center; }
.sign svg { width: 70%; height: 40px; color: var(--cyan); }
.phone { border-radius: 30px; border: 1px solid var(--line2); background: #0d1d3d; padding: 12px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); }
.phone .screen { border-radius: 20px; background: linear-gradient(180deg, #16305f, #0b1730); padding: 14px; display: grid; gap: 10px; min-height: 300px; }
.station { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); font-size: 13px; color: var(--soft); }
.station em { font-style: normal; font-weight: 700; color: var(--cyan); }
.qr { width: 74px; height: 74px; margin: 6px auto; border-radius: 12px; background:
  conic-gradient(from 90deg at 30% 30%, #e8edf7 0 25%, transparent 0 50%, #e8edf7 0 75%, transparent 0) 0 0 / 18px 18px; opacity: .85; }

/* ---------------------------------------------------------------- numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 64px 0 0; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: rgba(16, 35, 71, .55); border: 1px solid var(--line); }
.stat strong { display: block; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; font-weight: 800; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- sezioni */
section { padding: 70px 0; position: relative; }
.eyebrow { display: inline-block; color: var(--orange); font-weight: 800; font-size: 13px; letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.8px; font-weight: 800; }
.section-head { text-align: center; max-width: 780px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 34px 0; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: clamp(23px, 3vw, 30px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.4px; }
.feature p { color: var(--muted); margin: 0 0 16px; font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 30px; color: var(--soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 6px; background: rgba(255, 107, 53, .14); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .45); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 7px; height: 4px; border: 2px solid var(--orange); border-top: 0; border-right: 0; transform: rotate(-45deg); }
.visual { border-radius: 18px; border: 1px solid var(--line2); background: radial-gradient(ellipse at 30% 0%, rgba(255, 107, 53, .16), transparent 60%), var(--card);
          min-height: 260px; display: grid; place-items: center; padding: 28px; }
.visual svg { width: 120px; height: 120px; color: var(--orange); }
.visual .big { display: grid; gap: 10px; width: 100%; max-width: 360px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line2); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 107, 53, .12); box-shadow: inset 0 0 0 1px rgba(255, 107, 53, .38); color: var(--orange); }
.icon svg { width: 22px; height: 22px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(16, 35, 71, .55); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #1a0c05; font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- prezzi */
.billing-switch { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(16, 35, 71, .8); border: 1px solid var(--line2); margin: 0 auto 30px; }
.billing-switch button { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 9px 20px; border-radius: 999px; cursor: pointer; }
.billing-switch button[aria-pressed="true"] { background: var(--grad); color: #1a0c05; }
.center { text-align: center; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: 22px; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); }
.plan h3 { margin: 0; font-size: 19px; color: var(--soft); }
.plan .price { font-size: 44px; font-weight: 800; margin: 14px 0 0; letter-spacing: -1px; line-height: 1.1; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .billed { color: var(--muted); margin: 4px 0 18px; font-size: 14px; min-height: 22px; }
.plan .checks { margin-bottom: 24px; font-size: 15px; }
.plan .btn { margin-top: auto; }
.plan.best { border: 1px solid transparent; background: linear-gradient(180deg, #1a3466, #102347) padding-box, var(--grad) border-box; transform: translateY(-10px); box-shadow: 0 30px 80px -30px rgba(255, 107, 53, .5); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #1a0c05; font-size: 12px; font-weight: 800; letter-spacing: .6px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.addons { max-width: 1040px; margin: 26px auto 0; padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: rgba(16, 35, 71, .55); }
.addons h3 { margin: 0 0 10px; font-size: 17px; }
.addons ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 22px; }
.addons li { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); border-bottom: 1px dashed var(--line2); padding: 6px 0; }
.price-notes { max-width: 820px; margin: 22px auto 0; color: var(--muted); font-size: 14px; text-align: center; }
.price-notes p { margin: 4px 0; }
.trial-box { max-width: 1040px; margin: 0 auto 24px; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(63, 208, 201, .35); background: rgba(63, 208, 201, .08); text-align: center; color: var(--soft); }
.trial-box b { color: var(--cyan); }

/* ---------------------------------------------------------------- domande */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(16, 35, 71, .6); }
.faq details[open] { border-color: var(--line2); background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--orange); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---------------------------------------------------------------- scarica / invito finale */
.cta { text-align: center; padding: 60px 24px; border-radius: 28px; border: 1px solid var(--line2); background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, .2), transparent 60%), var(--card); }
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); font-size: 18px; margin: 0 auto 26px; max-width: 640px; }
.cta .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------- animazioni */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora span { animation: none; }
}

/* ---------------------------------------------------------------- pagine legali */
.doc { max-width: 820px; padding: 44px 20px 24px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 6px; letter-spacing: -.6px; line-height: 1.15; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; letter-spacing: -.2px; }
.doc p, .doc li { color: var(--soft); }
.doc em { color: var(--muted); }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: rgba(255, 255, 255, .04); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.doc-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: 0 0 22px; }

/* ---------------------------------------------------------------- piè di pagina */
footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0 40px; color: var(--muted); font-size: 14px; background: linear-gradient(180deg, transparent, rgba(11, 23, 48, .7)); }
footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------------------------------------------------------------- schermi piccoli */
@media (max-width: 960px) {
  nav.main a.opt { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .showcase { grid-template-columns: 1fr; }
  .phone { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .prices { grid-template-columns: 1fr; }
  .plan.best { transform: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .brand small { display: none; }
  .nav-cta { display: none; }
  .lang > button .lang-name { display: none; }
  .lang > button .lang-code { display: inline; }
  .hero { padding-top: 48px; }
  section { padding: 50px 0; }
}
