/* PreventiPRO: landing del preventivatore */
.pp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--ink2); margin-bottom: 20px; box-shadow: 0 6px 20px rgba(40,70,110,.06); }
.pp-badge b { background: var(--btn); color: #fff; padding: 4px 10px; border-radius: 99px; font-size: 13px; letter-spacing: .01em; }
.pp-badge.light { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.pp-badge.light b { background: #fff; color: #1d4fb8; }

.pp-hero { padding: 64px 0 80px; overflow: hidden; }
.pp-hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.pp-hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: .98; letter-spacing: -0.06em; }
.pp-hero .lead b { color: var(--ink); }
.pp-hero .h-cta, .pp-hero .h-proof { justify-content: flex-start; }
.pp-stage { position: relative; min-height: 460px; }
.browser { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(40,70,110,.20); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f2f5f8; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #dbe2ea; }
.browser .bar span { flex: 1; height: 18px; margin-left: 10px; border-radius: 6px; background: #fff; max-width: 260px; }
.browser img { display: block; width: 100%; height: auto; }
.pp-stage .browser { position: absolute; left: 0; top: 0; width: 88%; transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.phone { position: absolute; right: 0; bottom: 0; width: 200px; height: 400px; border-radius: 34px; background: #fff; border: 8px solid #1b2330; box-shadow: 0 40px 80px rgba(20,40,80,.35); padding: 14px 14px; display: flex; flex-direction: column; gap: 10px; animation: bob 7s ease-in-out infinite; }
.ph-head { display: flex; justify-content: center; } .ph-head i { width: 60px; height: 6px; border-radius: 6px; background: #e3e8ee; }
.ph-doc { display: flex; flex-direction: column; gap: 8px; }
.l { display: block; height: 8px; border-radius: 5px; background: #e6ebf1; }
.w90 { width: 90%; } .w70 { width: 70%; } .w60 { width: 60%; } .w40 { width: 40%; }
.ph-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.ph-opts b { height: 54px; border-radius: 10px; border: 1.5px solid #e3e8ee; }
.ph-opts b.on { border-color: var(--green); background: var(--greenbg); }
.sign { width: 100%; height: 70px; margin-top: auto; border-bottom: 1.5px dashed #cdd6e0; }
.sign path { fill: none; stroke: #1d3f8f; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .sign path, .su-sign.on .sign path { animation: firma 2.4s .6s ease forwards; }
@keyframes firma { to { stroke-dashoffset: 0; } }
.ph-ok, .doc-ok { display: flex; align-items: center; gap: 8px; justify-content: center; font-weight: 700; font-size: 14px; color: #148a51; background: var(--greenbg); border-radius: 12px; padding: 9px; opacity: 0; transform: scale(.8); }
.in .ph-ok, .su-sign.on .doc-ok { animation: okpop .5s 3s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes okpop { to { opacity: 1; transform: none; } }
.pp-stage .chip { position: absolute; left: 6%; bottom: 6%; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: 0 24px 50px rgba(20,40,80,.22); }
.pp-stage .chip svg { width: 26px; height: 26px; color: var(--green); }
.pp-stage .chip b { font-family: var(--head); font-weight: 400; font-size: 28px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pp-stage .chip span { font-size: 12.5px; font-weight: 700; color: var(--ink2); max-width: 80px; line-height: 1.2; }
@media (max-width: 960px) {
  .pp-hero .wrap { grid-template-columns: 1fr; }
  .pp-stage { min-height: 0; height: clamp(320px, 80vw, 460px); }
  .phone { width: 150px; height: 300px; border-width: 6px; border-radius: 26px; padding: 10px; }
  .ph-opts b { height: 38px; } .sign { height: 50px; }
}

/* passi con le schermate vere */
.steps-ui { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: center; }
.su-tabs { display: grid; gap: 8px; }
.su-tabs button { all: unset; cursor: pointer; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; color: #fff; border: 1px solid transparent; transition: background .3s, border-color .3s; position: relative; overflow: hidden; }
.su-tabs button b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-family: var(--head); font-weight: 400; font-size: 17px; transition: background .3s; }
.su-tabs button span { font-weight: 700; font-size: 17px; }
.su-tabs button small { display: block; font-weight: 400; font-size: 14px; color: rgba(255,255,255,.78); margin-top: 2px; }
.su-tabs button:hover { background: rgba(255,255,255,.08); }
.su-tabs button.on { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.35); }
.su-tabs button.on b { background: var(--green); }
.su-tabs button.on::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: #fff; animation: prog var(--dur, 5s) linear forwards; }
@keyframes prog { from { width: 0; } to { width: 100%; } }
.su-screen .browser { box-shadow: 0 40px 90px rgba(10,30,90,.35); }
.su-imgs { position: relative; aspect-ratio: 1100 / 1052; background: #f6f8fb; }
.su-imgs > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .5s; }
.su-imgs > .on { opacity: 1; }
.su-sign { display: grid; place-items: center; background: linear-gradient(160deg, #eef3fa, #f8fafc); }
.doc { width: min(78%, 420px); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(40,70,110,.15); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.doc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.logo-ph { width: 34px; height: 34px; border-radius: 10px; background: var(--btn); }
.doc-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.doc-opts > div { border: 1.5px solid #e3e8ee; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; min-height: 64px; }
.doc-opts > div.on { border-color: var(--green); background: var(--greenbg); }
.doc-opts b.l { background: #cfd8e3; }
.doc-opts .tk { position: absolute; top: -8px; right: -8px; }
@media (max-width: 960px) { .steps-ui { grid-template-columns: 1fr; } .su-screen { order: -1; } .su-tabs button small { display: none; } .su-tabs button.on small { display: block; } }

/* funzioni */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; transition: transform .35s, box-shadow .35s; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(40,70,110,.1); }
.feat .fi { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, rgba(97,204,191,.18), rgba(85,137,238,.18)); display: grid; place-items: center; margin-bottom: 14px; color: #2b62c9; font-weight: 800; font-size: 15px; }
.feat .fi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { color: var(--ink2); font-size: 15px; margin: 0; }
.feat.big { grid-column: span 2; background: linear-gradient(135deg, #1d4fb8, #2f8fd6); border: 0; color: #fff; }
.feat.big h3 { color: #fff; font-size: 24px; } .feat.big p { color: rgba(255,255,255,.88); font-size: 16px; }
.feat.big .fi { background: #fff; color: #1d4fb8; }
@media (max-width: 1000px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } .feat.big { grid-column: auto; } }

/* catena del lavoro */
.chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chain div { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px 10px 10px; font-weight: 600; position: relative; }
.chain div:not(:last-child)::after { content: ''; position: absolute; right: -9px; top: 50%; width: 8px; height: 2px; background: #c3cfdb; }

/* prezzo e sicurezza */
.card.plan.good { border-color: #bfe8d1; }
.safe { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.sec-dark .safe .plist > div { grid-template-columns: 44px 1fr; }
@media (max-width: 900px) { .safe { grid-template-columns: 1fr; } }

/* chiusura */
.pp-final { grid-template-columns: 1.3fr .7fr; }
.pp-final-acts { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.pp-alt { color: #fff; font-weight: 600; }
@media (max-width: 900px) { .pp-final { grid-template-columns: 1fr; } }

/* allineamento al sito */
.page-pp .ft .wrap { display: block; }
.page-pp footer.ft { padding: 64px 0 40px; background: #fff; color: var(--mu); font-size: 15px; }
.page-pp .ft ul a { color: var(--mu); }
.page-pp .ft ul a:hover { color: var(--ink); }
.page-pp .hd .btn, .page-pp main .btn, .page-pp section .btn { font-weight: 700; border-radius: 999px; }
.page-pp section .btn:not(.ghost):not(.white) { background: linear-gradient(180deg, rgba(104,146,245,.96), rgba(56,103,222,.96)); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 26px rgba(61,111,224,.3); }
.page-pp section .btn.ghost { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.9); box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(16,24,39,.08), 0 0 0 1px rgba(16,24,39,.05); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
.page-pp .hd .btn.sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; background: linear-gradient(180deg, rgba(104,146,245,.96), rgba(56,103,222,.96)); color: #fff; border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px rgba(61,111,224,.25); }
.page-pp .hd .nav-login { border: 0; }
