/* sito/css/sito.css — sito vetrina PT Performance. Token dell'app, nessuna dipendenza. */
:root {
  --nero: #1b1c1c; --lime: #acf847; --lime-scuro: #5b8c1a; --bg: #fcf9f8; --bianco: #fff;
  --grigio: #6b6b6b; --bordo: rgba(28,27,27,.10); --ombra: 0 20px 60px rgba(0,0,0,.18);
  --r: 18px; --font-t: Lexend, system-ui, sans-serif; --font-b: Manrope, system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-b); background: var(--bg); color: var(--nero); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.salta { position: absolute; left: -999px; top: 8px; background: var(--lime); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.salta:focus { left: 8px; }
h1, h2, h3 { font-family: var(--font-t); letter-spacing: -.02em; line-height: 1.1; }
h2 { font-weight: 900; font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-weight: 700; font-size: 17px; }
.sopratitolo { font-family: var(--font-t); font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime-scuro); margin-bottom: 8px; }
.intro { color: var(--grigio); font-size: 17px; max-width: 640px; margin-top: 12px; }
.material-symbols-outlined { vertical-align: middle; }

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: var(--font-b); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-lime { background: var(--lime); color: #0a0a0a; }
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(172,248,71,.35); }
.btn-ghost { border-color: rgba(28,27,27,.25); color: var(--nero); background: transparent; }
.hero .btn-ghost, .nav .btn-ghost { border-color: rgba(252,249,248,.35); color: var(--bg); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(10,10,10,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--bg); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { background: var(--lime); color: #0a0a0a; border-radius: 10px; padding: 5px; font-size: 20px; }
.brand-nome { font-family: var(--font-t); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; font-size: 15px; color: var(--nero); }
.nav-link { display: flex; align-items: center; gap: 22px; }
.nav-link > a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 14.5px; opacity: .85; }
.nav-link > a:not(.btn):hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; color: var(--bg); cursor: pointer; }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav-link { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #0a0a0a; padding: 12px 24px 20px; gap: 14px; display: none; }
  .nav.aperto .nav-link { display: flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--bg); padding: 140px 0 90px; overflow: hidden; background: #0a0a0a; }
.hero-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-velo { position: absolute; inset: 0; background:
  radial-gradient(900px 520px at 80% -10%, rgba(172,248,71,.22), transparent 60%),
  linear-gradient(180deg, rgba(10,10,10,.35), rgba(10,10,10,.92) 70%, #0a0a0a);
  background-size: 200% 200%, 100% 100%; animation: bagliore 14s ease-in-out infinite alternate; }
@keyframes bagliore { from { background-position: 0% 0%, 0 0; } to { background-position: 100% 60%, 0 0; } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .sopratitolo { color: var(--lime); }
h1 { font-weight: 900; font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -.03em; max-width: 640px; }
h1 em { font-style: normal; color: var(--lime); }
.hero .sub { margin-top: 20px; font-size: 18px; color: rgba(252,249,248,.78); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cta-nota { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--lime); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips li { border: 1px solid rgba(252,249,248,.25); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }
@media (max-width: 1000px) { .hero-in { grid-template-columns: 1fr; } .hero { padding: 110px 0 60px; } }

/* ---------- mockup ---------- */
.hero-mock { position: relative; height: 460px; }
.mock-laptop { position: absolute; left: 0; right: 40px; top: 30px; }
.mock-screen { background: #141414; border: 6px solid #2a2a2a; border-radius: 14px 14px 4px 4px; aspect-ratio: 16/10; display: grid; grid-template-columns: 52px 1fr; overflow: hidden; box-shadow: var(--ombra); }
.mock-base { height: 12px; background: linear-gradient(#3a3a3a, #222); border-radius: 0 0 12px 12px; margin: 0 -14px; }
.ml-side { background: #0f0f0f; padding: 14px 10px; display: flex; flex-direction: column; gap: 12px; }
.ml-side i { display: block; height: 10px; border-radius: 4px; background: #2c2c2c; }
.ml-side i:first-child { background: var(--lime); }
.ml-main { padding: 16px 18px; color: #f2f2f2; font-size: 12px; }
.ml-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ml-top b { font-family: var(--font-t); font-size: 15px; } .ml-top span { color: #8a8a8a; }
.ml-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ml-stats div { background: #1f1f1f; border-radius: 10px; padding: 10px; }
.ml-stats b { display: block; font-family: var(--font-t); font-size: 20px; color: var(--lime); } .ml-stats span { color: #9a9a9a; font-size: 11px; }
.ml-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #262626; }
.ml-row .av { width: 26px; height: 26px; border-radius: 50%; background: #2b3a12; color: var(--lime); display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.ml-row em { margin-left: auto; font-style: normal; color: #9a9a9a; }
.mock-phone { position: absolute; right: 0; bottom: 0; width: 210px; background: #0d0d0d; border: 8px solid #262626; border-radius: 34px; box-shadow: var(--ombra); overflow: hidden; }
.mp-notch { width: 80px; height: 20px; background: #262626; border-radius: 0 0 14px 14px; margin: 0 auto; }
.mp-screen { padding: 12px 12px 8px; color: #f2f2f2; font-size: 11.5px; min-height: 330px; display: flex; flex-direction: column; gap: 10px; background: #111; }
.mp-head span { display: block; color: #9a9a9a; font-size: 10.5px; } .mp-head b { font-family: var(--font-t); font-size: 14px; }
.mp-prog { height: 6px; background: #262626; border-radius: 3px; overflow: hidden; }
.mp-prog .avanz { height: 100%; width: 0; background: var(--lime); border-radius: 3px; animation: avanza 6s ease-in-out infinite; }
@keyframes avanza { 0% { width: 0 } 20% { width: 34% } 45% { width: 34% } 60% { width: 67% } 85% { width: 67% } 95% { width: 100% } 100% { width: 100% } }
.mp-es { display: flex; align-items: center; gap: 8px; background: #1a1a1a; border-radius: 12px; padding: 8px 10px; }
.mp-es .n { width: 20px; height: 20px; border-radius: 50%; background: #2b3a12; color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 10px; }
.mp-es b { display: block; font-size: 12px; } .mp-es small { color: #9a9a9a; }
.mp-es .spunta { margin-left: auto; color: var(--lime); font-size: 18px; opacity: 0; animation: spunta 6s ease-in-out infinite; }
.mp-es:nth-child(3) .spunta { animation-delay: 0s; } .mp-es:nth-child(4) .spunta { animation-delay: 2.4s; } .mp-es:nth-child(5) .spunta { animation-delay: 4.6s; }
@keyframes spunta { 0%, 18% { opacity: 0; transform: scale(.6); } 22%, 96% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.mp-nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid #262626; color: #7a7a7a; }
.mp-nav .on { color: var(--lime); }
.mp-card { background: #1a1a1a; border-radius: 12px; padding: 10px; }
.mp-card small { color: #9a9a9a; display: block; } .mp-card b { font-family: var(--font-t); font-size: 16px; display: block; } .mp-card span { color: #9a9a9a; font-size: 10.5px; } .mp-card .giu { color: var(--lime); }
.mp-btn { background: var(--lime); color: #0a0a0a; text-align: center; border-radius: 999px; padding: 9px; font-weight: 800; }
@media (max-width: 1000px) { .hero-mock { height: 420px; max-width: 560px; } }
/* Mobile: il laptop non ci sta, resta solo il telefono, centrato e a grandezza leggibile */
@media (max-width: 700px) {
  .hero-mock { height: auto; max-width: none; margin-top: 8px; }
  .mock-laptop { display: none; }
  .mock-phone { position: relative; right: auto; bottom: auto; width: 236px; margin: 0 auto; }
  .mp-screen { min-height: 300px; }
  .hero-foto img { opacity: .28; }
}

/* ---------- numeri ---------- */
.numeri { background: var(--nero); color: var(--bg); padding: 28px 0; }
.numeri-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.numeri b { display: block; font-family: var(--font-t); font-weight: 900; font-size: clamp(28px, 4vw, 44px); color: var(--lime); font-variant-numeric: tabular-nums; }
.numeri span { font-size: 13px; color: rgba(252,249,248,.7); }
@media (max-width: 700px) { .numeri-in { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sezioni ---------- */
.sez { padding: 88px 0; position: relative; }
.sez-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 36px; }
@media (max-width: 560px) { .sez-head { flex-direction: column; gap: 12px; margin-bottom: 28px; } h2 { font-size: clamp(24px, 7vw, 30px); } }
.ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; background: var(--nero); color: var(--lime); display: grid; place-items: center; font-size: 26px; }
.ico-lime { background: var(--lime); color: #0a0a0a; }
.griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .griglia { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .griglia { grid-template-columns: 1fr; } }
.card { background: var(--bianco); border: 1px solid var(--bordo); border-radius: var(--r); padding: 24px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.card > .material-symbols-outlined { font-size: 30px; color: var(--lime-scuro); background: rgba(172,248,71,.18); border-radius: 12px; padding: 8px; display: inline-block; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; } .card p { color: var(--grigio); font-size: 15px; color: var(--nero); }
.lista { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.lista li { display: flex; gap: 14px; align-items: flex-start; }
.lista .material-symbols-outlined { color: var(--lime-scuro); font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.lista b { display: block; font-family: var(--font-t); font-size: 16px; } .lista span { color: var(--grigio); font-size: 15px; color: var(--nero); }

/* cliente */
.sez-cliente { background: var(--bianco); }
.cliente-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cliente-mock { position: relative; min-height: 460px; }
.cliente-foto img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; border-radius: 28px; }
.mock-phone-2 { right: 24px; bottom: -20px; }
@media (max-width: 1000px) { .cliente-in { grid-template-columns: 1fr; } .cliente-mock { min-height: 380px; } }
@media (max-width: 700px) { .cliente-mock { min-height: 440px; } .mock-phone-2 { position: absolute; right: 12px; bottom: -16px; width: 200px; margin: 0; } .mock-phone-2 .mp-screen { min-height: 300px; } }

/* come funziona */
.sez-scura { background: #0a0a0a; color: var(--bg); overflow: hidden; }
.sez-scura .sfondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.sez-scura .wrap { position: relative; }
.sez-scura .sopratitolo { color: var(--lime); }
.passi { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.passi li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 26px; backdrop-filter: blur(6px); }
.passi b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #0a0a0a; font-family: var(--font-t); font-weight: 900; margin-bottom: 16px; }
.passi h3 { margin-bottom: 8px; } .passi p { color: rgba(252,249,248,.72); font-size: 15px; color: var(--nero); }
@media (max-width: 800px) { .passi { grid-template-columns: 1fr; } }

/* fiducia */
.fiducia-griglia { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.fiducia-foto img { border-radius: 28px; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--ombra); }
@media (max-width: 900px) { .fiducia-griglia { grid-template-columns: 1fr; } }

/* demo */
.sez-demo { background: var(--nero); color: var(--bg); }
.sez-demo .sopratitolo { color: var(--lime); } .sez-demo .intro { color: rgba(252,249,248,.75); } .sez-demo .demo-testo a { color: var(--lime); }
.demo-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .demo-in { grid-template-columns: 1fr; } }
.form { background: var(--bianco); color: var(--nero); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--ombra); position: relative; }
.campo label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; } .campo small { color: var(--grigio); font-weight: 500; }
.campo input, .campo textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--bordo); border-radius: 12px; background: var(--bg); transition: border-color .15s; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--lime-scuro); }
.campo.errore input, .campo.errore textarea { border-color: #c62828; }
.campo-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--grigio); } .consenso input { margin-top: 3px; }
.consenso a { color: var(--lime-scuro); }
.informativa { font-size: 13.5px; color: var(--grigio); margin: 0; } .informativa a { color: var(--lime-scuro); }
.form.inviato .informativa { display: none; }
.form-err { color: #c62828; font-weight: 700; font-size: 14px; }
.form-ok { display: flex; gap: 8px; align-items: flex-start; background: rgba(172,248,71,.25); border-radius: 12px; padding: 14px; font-weight: 700; }
.form-ok .material-symbols-outlined { color: var(--lime-scuro); }
.form-ok[hidden], .form-err[hidden] { display: none; }   /* l'attributo hidden deve vincere sul display della classe */
.form.inviato .campo, .form.inviato .consenso, .form.inviato button { display: none; }

/* footer */
.footer { background: #0a0a0a; color: rgba(252,249,248,.7); padding: 28px 0; font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer b { color: var(--bg); font-family: var(--font-t); display: block; }
.footer-link { display: flex; gap: 18px; flex-wrap: wrap; } .footer-link a { text-decoration: none; } .footer-link a:hover { color: var(--lime); }

/* ---------- rivelazione allo scroll ---------- */
.rivela { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rivela.in { opacity: 1; transform: none; }
.griglia .rivela:nth-child(2), .passi .rivela:nth-child(2) { transition-delay: .08s; }
.griglia .rivela:nth-child(3), .passi .rivela:nth-child(3) { transition-delay: .16s; }
.griglia .rivela:nth-child(4) { transition-delay: .24s; } .griglia .rivela:nth-child(5) { transition-delay: .32s; } .griglia .rivela:nth-child(6) { transition-delay: .4s; }

/* ===== Prezzi (card scure come la grafica dei piani; card generate da scripts/genera_prezzi_sito.py) ===== */
.prezzi-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.prezzi-head h2 + p { color: var(--grigio); margin-top: 10px; font-size: 17px; }
.prezzi-switch { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 5px; border-radius: 999px; background: var(--nero); gap: 4px; }
.prezzi-switch button { border: 0; background: transparent; color: rgba(252,249,248,.8); font: 700 14.5px var(--font-b); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.prezzi-switch [aria-selected="true"] { background: var(--lime); color: #0a0a0a; }
.prezzi-lista { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.prezzo-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--nero); color: var(--bg);
  border: 1.5px solid rgba(252,249,248,.14); border-radius: var(--r); padding: 26px 28px; }
.prezzo-card--top { border-color: var(--lime); box-shadow: 0 0 0 1px var(--lime), 0 18px 44px rgba(172,248,71,.18); }
.prezzo-badge { position: absolute; top: -12px; right: 22px; background: var(--lime); color: #0a0a0a; font: 800 11.5px var(--font-t); letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.prezzo-info h3 { font: 900 26px var(--font-t); letter-spacing: -.01em; }
.prezzo-lim { font: 800 19px var(--font-t); margin: 2px 0 8px; }
.prezzo-info p:last-child { color: rgba(252,249,248,.72); font-size: 15px; max-width: 380px; }
.prezzo-az { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 250px; text-align: center; border-left: 1px solid rgba(252,249,248,.14); padding-left: 24px; }
.prezzo-val { font: 900 28px var(--font-t); white-space: nowrap; }
.prezzo-az .btn { justify-content: center; text-transform: uppercase; letter-spacing: .03em; padding: 13px 20px; }
.prezzi-su-misura { display: flex; gap: 16px; align-items: center; max-width: 860px; margin: 18px auto 0; padding: 20px 26px; border-radius: var(--r);
  border: 1.5px solid var(--bordo); background: var(--bianco); color: var(--nero); text-decoration: none; }
.prezzi-su-misura .material-symbols-outlined { font-size: 34px; color: var(--lime-scuro); }
.prezzi-su-misura:hover { border-color: var(--lime-scuro); }
.prezzi-nota { text-align: center; color: var(--grigio); font-size: 14px; margin-top: 18px; }
@media (max-width: 640px) {
  .prezzo-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .prezzo-az { border-left: 0; border-top: 1px solid rgba(252,249,248,.14); padding: 18px 0 0; min-width: 0; }
  .prezzi-switch button { padding: 10px 14px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rivela { opacity: 1; transform: none; }
  .mp-prog .avanz { width: 67%; } .mp-es .spunta { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* 14 giorni gratis sotto il titolo dei prezzi */
.prezzi-head p.prezzi-prova { display: inline-block; margin-top: 14px; background: rgba(172,248,71,.25); border-radius: 999px; padding: 8px 16px; font-size: 15px; color: var(--nero); }
