/* /assets/css/pro-anim.css
   Animazione dell'apertura della pagina /professionisti (.pa): il lavoro di un fotografo o wedding planner in 18 secondi,
   con un marchio diverso a ogni giro. Disegno a misura fissa (1000 × 900) scalato da /assets/js/pro-anim.js.
   Prefisso pa-. Nessuno stile in linea nel markup (CSP): quello che cambia nel tempo lo imposta lo script via CSSOM. */

.pa-hero { flex: 1 1 420px; min-width: 0; }
.pa { position: relative; width: 100%; aspect-ratio: 1000 / 900; overflow: hidden; border-radius: 28px; background: #F3EEE6; box-shadow: 0 30px 60px -30px rgba(20, 52, 95, .45); }
.pa-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 900px; transform-origin: 0 0; overflow: hidden; font-family: 'Inter', system-ui, sans-serif; color: #14345F; }
.pa-stage * { box-sizing: border-box; }
.pa-stage p { margin: 0; }
.pa-abs { position: absolute; }

/* Marchio del professionista (cambia a ogni giro) e marchio predefinito di Festa in corso */
.pa-b0 { --pa-br: #0B7A75; --pa-br2: #E3F3F1; }
.pa-b1 { --pa-br: #A87A2E; --pa-br2: #F6EEDC; }
.pa-b2 { --pa-br: #6B4FD8; --pa-br2: #ECE8FB; }

.pa-room { inset: 0; background: radial-gradient(110% 80% at 85% 0%, #FFFFFF 0%, #F3EEE6 55%, #EADFCF 100%); }
.pa-blob { width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--pa-br2), transparent 70%); opacity: .9; }
.pa-fade { inset: 0; background: #F3EEE6; opacity: 0; z-index: 40; pointer-events: none; }

/* didascalie */
.pa-cap { left: 36px; top: 26px; width: 928px; height: 66px; z-index: 30; }
.pa-step { position: absolute; left: 0; top: 0; height: 66px; display: flex; align-items: center; gap: 16px; padding: 0 28px 0 10px; border-radius: 33px; background: #14345F; color: #fff; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; white-space: nowrap; opacity: 0; box-shadow: 0 12px 30px rgba(20, 52, 95, .25); }
.pa-step b { width: 48px; height: 48px; border-radius: 50%; background: #E2366F; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }

/* marchio (logo) del professionista */
.pa-logo { display: flex; align-items: center; gap: 10px; }
.pa-mono { width: 40px; height: 40px; border-radius: 12px; background: var(--pa-br); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; flex: none; }
.pa-lname { font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.1; }
.pa-lname small { display: block; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #6A7487; }

/* ================= Dashboard ================= */
.pa-win { left: 36px; top: 118px; width: 640px; height: 640px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -20px rgba(20, 52, 95, .35), 0 0 0 1px rgba(20, 52, 95, .06); overflow: hidden; z-index: 5; }
.pa-bar { left: 0; right: 0; top: 0; height: 40px; background: #F4F5F8; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.pa-bar i { width: 12px; height: 12px; border-radius: 50%; background: #E1E4EB; }
.pa-bar span { margin-left: 14px; height: 22px; flex: 1; max-width: 300px; border-radius: 11px; background: #fff; font-size: 12px; color: #8A93A6; display: flex; align-items: center; padding: 0 12px; }
.pa-side { left: 0; top: 40px; bottom: 0; width: 180px; background: #FBF9F6; border-right: 1px solid #EEE7DC; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.pa-nav { display: flex; flex-direction: column; gap: 6px; }
.pa-nav span { height: 34px; border-radius: 10px; display: flex; align-items: center; padding: 0 12px; font-size: 15px; font-weight: 600; color: #4A5872; }
.pa-nav span.is-on { background: var(--pa-br2); color: var(--pa-br); }
.pa-main { left: 180px; top: 40px; right: 0; bottom: 0; padding: 20px 22px; }
.pa-mh { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.pa-mh strong { font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.pa-cred { height: 40px; padding: 0 16px; border-radius: 20px; background: #14345F; color: #fff; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.pa-cred b { font-size: 20px; min-width: 24px; text-align: right; }
.pa-new { position: relative; margin-top: 14px; height: 44px; width: 190px; border-radius: 12px; background: var(--pa-br); color: #fff; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; }
.pa-rows { left: 22px; right: 22px; top: 140px; }
.pa-row { position: absolute; left: 0; right: 0; height: 74px; border-radius: 14px; border: 1px solid #ECEEF3; background: #fff; display: flex; align-items: center; gap: 14px; padding: 0 14px; }
.pa-row .pa-th { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex: none; background: #EEF0F4; }
.pa-row .pa-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-row .pa-rt { flex: 1; min-width: 0; }
.pa-row .pa-rt strong { display: block; font-size: 17px; }
.pa-row .pa-rt span { display: block; font-size: 13px; color: #6A7487; margin-top: 3px; }
.pa-badge { height: 30px; padding: 0 12px; border-radius: 15px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; flex: none; }
.pa-badge.is-draft { background: #EAF0F7; color: #3A4A63; }
.pa-badge.is-on { background: #DDF4E6; color: #157A44; }
.pa-act { position: relative; height: 34px; padding: 0 14px; border-radius: 10px; background: var(--pa-br); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; flex: none; }
.pa-toast { left: 236px; top: 586px; height: 40px; padding: 0 16px; border-radius: 20px; background: #157A44; color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; opacity: 0; z-index: 6; white-space: nowrap; }

/* ================= Il tuo marchio ================= */
.pa-brand { left: 300px; top: 590px; width: 360px; height: 210px; border-radius: 20px; background: #fff; box-shadow: 0 30px 50px -18px rgba(20, 52, 95, .4); padding: 18px; z-index: 12; opacity: 0; display: flex; flex-direction: column; gap: 14px; }
.pa-brand > strong { font-size: 17px; }
.pa-brow { display: flex; align-items: center; gap: 14px; }
.pa-up { width: 70px; height: 70px; border-radius: 14px; border: 2px dashed #CBD2DE; display: flex; align-items: center; justify-content: center; position: relative; flex: none; }
.pa-up .pa-mono { position: absolute; inset: 6px; width: auto; height: auto; border-radius: 10px; font-size: 22px; }
.pa-sws { display: flex; gap: 10px; }
.pa-sw { width: 38px; height: 38px; border-radius: 50%; position: relative; }
.pa-sw.c0 { background: #0B7A75; } .pa-sw.c1 { background: #A87A2E; } .pa-sw.c2 { background: #6B4FD8; } .pa-sw.c3 { background: #C2410C; }
.pa-ring { width: 50px; height: 50px; margin: -6px 0 0 -6px; border-radius: 50%; border: 3px solid #14345F; }
.pa-contact { height: 40px; border-radius: 10px; background: #F4F5F8; display: flex; align-items: center; padding: 0 12px; font-size: 14px; color: #4A5872; overflow: hidden; white-space: nowrap; }

/* ================= Telefono dell'invitato ================= */
.pa-phone { left: 700px; top: 250px; width: 264px; height: 528px; border-radius: 40px; background: #0A0A0F; padding: 10px; box-shadow: 0 30px 50px -10px rgba(20, 52, 95, .45); z-index: 10; }
.pa-scr { position: relative; width: 100%; height: 100%; border-radius: 31px; overflow: hidden; background: #FFF8F0; }
.pa-notch { left: 50%; top: 8px; width: 74px; height: 20px; margin-left: -37px; border-radius: 10px; background: #0A0A0F; z-index: 5; }
.pa-ph { left: 0; right: 0; top: 0; height: 64px; padding: 32px 14px 0; display: flex; align-items: center; z-index: 3; }
.pa-ph .pa-logo .pa-mono { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
.pa-ph .pa-lname { font-size: 14px; }
.pa-ph .pa-lname small { font-size: 9px; }
.pa-fic { display: flex; align-items: center; gap: 6px; font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -0.04em; }
.pa-fic svg { width: 26px; height: 26px; }
.pa-fic .w1 { color: #E2366F; } .pa-fic .w2 { color: #E89A1A; } .pa-fic .w3 { color: #1877F2; }
.pa-cover { left: 12px; right: 12px; top: 74px; height: 170px; border-radius: 18px; overflow: hidden; }
.pa-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-cover p { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .6)); color: #fff; font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.pa-cover p small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 12px; opacity: .9; }
.pa-pbtn { left: 12px; right: 12px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.pa-pbtn.is-main { top: 256px; color: #fff; }
.pa-pbtn.is-alt { top: 312px; background: #fff; border: 1px solid #E6D6C2; color: #14345F; }
.pa-pbg { inset: 0; border-radius: 14px; }
.pa-pbg.is-fic { background: #E2366F; }
.pa-pbg.is-br { background: var(--pa-br); }
.pa-pbtn span { position: relative; }
.pa-grid { left: 12px; right: 12px; top: 372px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.pa-grid i { position: relative; display: block; height: 62px; border-radius: 8px; background: #EFE6DA; overflow: hidden; }
.pa-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.pa-pfoot { left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; color: #6A7487; }
.pa-pfoot b { color: var(--pa-br); }

/* ================= Accesso per gli sposi (email) ================= */
.pa-mail { left: 120px; top: 610px; width: 520px; height: 250px; border-radius: 20px; background: #fff; box-shadow: 0 30px 60px -16px rgba(20, 52, 95, .45); padding: 20px 22px; z-index: 14; opacity: 0; display: flex; flex-direction: column; gap: 10px; }
.pa-mfrom { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #6A7487; }
.pa-mfrom .pa-mono { width: 34px; height: 34px; border-radius: 10px; font-size: 13px; }
.pa-mfrom strong { color: #14345F; font-size: 15px; }
.pa-mail h4 { margin: 4px 0 0; font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.pa-mail p { font-size: 15px; color: #4A5872; line-height: 1.4; }
.pa-mbtn { align-self: flex-start; margin-top: 4px; height: 44px; padding: 0 20px; border-radius: 12px; background: var(--pa-br); color: #fff; font-size: 15px; font-weight: 700; display: flex; align-items: center; }

.pa-tap { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 4px solid #14345F; background: rgba(20, 52, 95, .12); opacity: 0; z-index: 20; pointer-events: none; }

/* Pacchetti della pagina /professionisti */
.pro-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pro-pack { position: relative; align-items: flex-start; }
.pro-pack.is-best { border-color: var(--lampone); box-shadow: 0 0 0 3px rgba(226, 54, 111, .15); }
.pro-pack .badge { position: absolute; top: -12px; left: 20px; }
.pro-pack-p { font-family: 'Jakarta', 'Inter', sans-serif; font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: var(--notte); }
.pro-pack .btn { margin-top: auto; align-self: stretch; }
