/* PhotoPrint Configurator – public experience 2.2.2 */
.ppc2-config{--ppc-ink:#17243b;--ppc-muted:#69778d;--ppc-line:#e5eaf2;--ppc-primary:#6654d9;--ppc-primary-dark:#4e3fc0;--ppc-coral:#f07869;--ppc-gold:#e9b75b;max-width:1080px;margin:42px auto;color:var(--ppc-ink);font-family:inherit}
.ppc2-config *{box-sizing:border-box}
.ppc2-shell{position:relative;background:#fff;border:1px solid #e7eaf2;border-radius:26px;overflow:hidden;box-shadow:0 24px 70px rgba(35,43,83,.12),0 4px 14px rgba(35,43,83,.04)}
.ppc2-hero{position:relative;isolation:isolate;display:flex;gap:26px;align-items:center;min-height:184px;padding:34px 42px;color:#fff;background:linear-gradient(118deg,#252c65 0%,#5148ad 52%,#7765df 100%);overflow:hidden}
.ppc2-hero:before,.ppc2-hero:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.ppc2-hero:before{width:360px;height:360px;right:-80px;top:-220px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16)}
.ppc2-hero:after{width:250px;height:250px;right:120px;bottom:-205px;background:linear-gradient(135deg,rgba(240,120,105,.55),rgba(233,183,91,.18))}
.ppc2-hero img{flex:0 0 132px;width:132px;height:112px;object-fit:cover;border-radius:18px;border:3px solid rgba(255,255,255,.55);box-shadow:0 12px 28px rgba(12,15,50,.25)}
.ppc2-hero small{display:inline-flex;align-items:center;gap:9px;color:#f5d99e;font-size:11px;font-weight:800;letter-spacing:.19em}
.ppc2-hero small:before{content:"";width:22px;height:2px;background:#f5d99e;border-radius:2px}
.ppc2-hero h2{margin:9px 0 5px;color:#fff;font-size:clamp(30px,4vw,42px);line-height:1.08;font-weight:750;letter-spacing:-.035em}
.ppc2-hero p{max-width:650px;margin:0;color:rgba(255,255,255,.78);font-size:15px;line-height:1.6}
.ppc2-progress{height:7px;background:#edf0f8}
.ppc2-progress span{display:block;width:0;height:7px;background:linear-gradient(90deg,#f07869 0%,#e9b75b 40%,#6555d9 100%);border-radius:0 8px 8px 0;transition:width .35s cubic-bezier(.2,.8,.2,1)}
.ppc2-steps{padding:36px 42px 40px;background:radial-gradient(ellipse at 100% 0%,rgba(103,85,217,.055),transparent 36%),#fff}
.ppc2-step{display:none;animation:ppc2-enter .28s ease both}
.ppc2-step.active{display:block}
@keyframes ppc2-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.ppc2-step h3{display:flex;align-items:center;gap:12px;margin:0 0 10px;color:#192641;font-size:clamp(25px,3vw,32px);font-weight:760;letter-spacing:-.035em;line-height:1.2}
.ppc2-step h3:before{content:"";width:5px;height:30px;border-radius:5px;background:linear-gradient(180deg,var(--ppc-coral),var(--ppc-gold));flex:0 0 5px}
.ppc2-step>p{margin:0 0 25px;color:var(--ppc-muted);font-size:15px;line-height:1.65}
.ppc2-options{display:grid;gap:16px}
.ppc2-layout-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ppc2-layout-list{grid-template-columns:1fr}
.ppc2-layout-carousel{grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);overflow:auto;padding:3px 2px 12px;scroll-snap-type:x mandatory}
.ppc2-layout-swatches{grid-template-columns:repeat(auto-fill,minmax(142px,1fr));gap:15px}
.ppc2-option{position:relative;display:block;cursor:pointer;min-width:0;outline:none}
.ppc2-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ppc2-option>span{position:relative;height:100%;min-height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #e2e7f0;border-radius:16px;overflow:hidden;box-shadow:0 3px 10px rgba(24,37,69,.035);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.ppc2-option:hover>span{transform:translateY(-4px);border-color:#b8b0f0;box-shadow:0 12px 25px rgba(55,49,125,.12)}
.ppc2-option img{display:block;width:100%;height:154px;object-fit:cover;background:linear-gradient(135deg,#f5f6fa,#e9edf4)}
.ppc2-option b{display:block;padding:13px 14px 15px;color:#27344d;font-size:14px;font-weight:720;line-height:1.4}
.ppc2-option small{padding:0 14px 12px;color:#77839a;font-size:12px;line-height:1.5}
.ppc2-option em{display:block;padding:0 14px 14px;color:#6252cf;font-size:13px;font-weight:750;font-style:normal}
.ppc2-option input:checked+span{border:2px solid var(--ppc-primary);box-shadow:0 0 0 4px rgba(102,84,217,.12),0 12px 24px rgba(55,49,125,.12)}
.ppc2-option input:checked+span:after{content:"✓";position:absolute;top:10px;right:10px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ppc-primary);color:#fff;font-size:15px;font-weight:800;box-shadow:0 3px 10px rgba(40,30,120,.25)}
.ppc2-option input:focus-visible+span{outline:3px solid rgba(102,84,217,.35);outline-offset:3px}
.ppc2-layout-swatches .ppc2-option img{height:112px;object-fit:cover}
.ppc2-layout-swatches .ppc2-option b{padding:12px 13px 14px}
.ppc2-layout-list .ppc2-option>span{flex-direction:row;align-items:center;min-height:92px}
.ppc2-layout-list .ppc2-option img{width:112px;height:92px;flex:0 0 112px}
.ppc2-step select,.ppc2-step input[type=text],.ppc2-step input[type=number],.ppc2-step input[type=email],.ppc2-step textarea{width:100%;max-width:620px;padding:14px 16px;border:1px solid #dce2ed;border-radius:12px;background:#fff;color:#26344d;font:inherit;transition:border-color .2s,box-shadow .2s}
.ppc2-step select:focus,.ppc2-step input:focus,.ppc2-step textarea:focus{outline:0;border-color:#8173e1;box-shadow:0 0 0 4px rgba(102,84,217,.11)}
.ppc2-nav{display:flex;align-items:center;gap:12px;padding:20px 42px 26px;border-top:1px solid #edf0f5;background:linear-gradient(180deg,#fff,#fbfbfe)}
.ppc2-nav button{min-height:48px;border:0;border-radius:12px;padding:0 23px;font-size:14px;font-weight:750;cursor:pointer;transition:transform .18s,box-shadow .18s,background .18s}
.ppc2-nav button:hover:not(:disabled){transform:translateY(-2px)}
.ppc2-back{background:#f0f1f7;color:#5c6680}
.ppc2-next,.ppc2-send{margin-left:auto;background:linear-gradient(110deg,#6252cf,#8270e7);color:#fff;box-shadow:0 8px 18px rgba(92,75,197,.22)}
.ppc2-next:hover,.ppc2-send:hover{box-shadow:0 11px 23px rgba(92,75,197,.3)}
.ppc2-nav button:disabled{opacity:.42;cursor:not-allowed}
.ppc2-summary-lines{border:1px solid #e5e8f1;border-radius:15px;overflow:hidden;background:#fff}
.ppc2-summary-line{display:flex;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #edf0f5;gap:14px}
.ppc2-summary-line:last-child{border-bottom:0}
.ppc2-summary-line span{color:#748098}
.ppc2-summary-line b{color:#27344d;text-align:right}
.ppc2-total{display:flex;justify-content:space-between;align-items:center;margin:18px 0;padding:18px 20px;border-radius:14px;background:linear-gradient(110deg,#f1efff,#fff4ed);font-size:16px;color:#4a4a75}
.ppc2-total strong{font-size:23px;color:#5546c0}
.ppc2-customer{margin-top:22px;padding:24px;border:1px solid #e7e5fa;border-radius:17px;background:linear-gradient(135deg,#f8f7ff,#fff9f5)}
.ppc2-customer h4{margin:0 0 14px;color:#293452;font-size:19px}
.ppc2-customer label{display:block;margin:13px 0;color:#596780;font-size:13px;font-weight:650}
.ppc2-customer input:not([type=checkbox]){display:block;margin-top:7px}
.ppc2-consent{display:flex!important;gap:10px;align-items:center;font-weight:500!important}
.ppc2-consent input{accent-color:var(--ppc-primary)}
.ppc2-config [hidden]{display:none!important}
@media(max-width:760px){.ppc2-config{margin:20px 10px}.ppc2-shell{border-radius:20px}.ppc2-hero{min-height:150px;padding:25px 24px;gap:17px}.ppc2-hero img{width:88px;height:88px;flex-basis:88px;border-radius:14px}.ppc2-hero h2{font-size:29px}.ppc2-hero p{font-size:13px}.ppc2-steps{padding:28px 24px 30px}.ppc2-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ppc2-layout-swatches{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:11px}.ppc2-layout-swatches .ppc2-option img{height:95px}.ppc2-option img{height:125px}.ppc2-nav{padding:16px 24px 20px}}
@media(max-width:480px){.ppc2-hero{padding:22px 18px}.ppc2-hero img{width:72px;height:72px;flex-basis:72px}.ppc2-hero small{font-size:9px;letter-spacing:.13em}.ppc2-hero h2{font-size:25px}.ppc2-steps{padding:24px 17px}.ppc2-step h3{font-size:24px}.ppc2-layout-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}.ppc2-layout-swatches .ppc2-option img{height:105px}.ppc2-option b{font-size:13px}.ppc2-nav{padding:14px 17px 18px}.ppc2-nav button{min-height:45px;padding:0 16px}.ppc2-summary-line{flex-direction:column;gap:5px}.ppc2-summary-line b{text-align:left}}
/* Archivio copertine e cofanetti - selezione guidata */
.ppc2-archive-step .ppc2-archive-section{margin-top:24px;padding:22px;border:1px solid #e5e8f3;border-radius:18px;background:linear-gradient(135deg,#faf9ff,#fffaf6)}
.ppc2-archive-step h4{margin:0 0 16px;color:#293452;font-size:18px;font-weight:760}
.ppc2-archive-step .ppc2-cover-details{margin-top:22px;padding-top:20px;border-top:1px solid #e5e8f3}
.ppc2-archive-sub{margin:0 0 24px}
.ppc2-archive-sub:last-child{margin-bottom:0}
.ppc2-personalize{margin-top:22px;padding:20px;border:1px solid #e8e4fa;border-radius:16px;background:#fff}
.ppc2-personalize>.ppc2-toggle{display:flex;align-items:center;gap:10px;color:#35415e;font-weight:750}
.ppc2-personalize input[type=checkbox]{accent-color:#6654d9}
.ppc2-personalize-fields{margin-top:18px;padding-top:18px;border-top:1px solid #eceaf5}
.ppc2-personalize-fields h4{margin-bottom:12px}
.ppc2-upload-label,.ppc2-text-label{display:block;margin-top:16px;color:#596780;font-size:13px;font-weight:700}
.ppc2-upload-label input{display:block;margin-top:8px;max-width:100%;padding:12px;border:1px dashed #b9b2e8;border-radius:12px;background:#faf9ff}
.ppc2-text-label textarea{display:block;margin-top:8px;max-width:100%;min-height:86px}
.ppc2-help{color:#77839a;font-size:13px}
.ppc2-archive-step .ppc2-option img{height:140px}
@media(max-width:760px){.ppc2-archive-step .ppc2-archive-section{padding:16px}.ppc2-archive-step .ppc2-option img{height:112px}}

/* Model-specific options imported from the supplier catalog */
.ppc2-model-fields{margin:24px 0;padding:22px;border:1px solid #e5e8f3;border-radius:16px;background:#fbfcff}
.ppc2-model-fields>h4{margin:0 0 18px;color:#293452;font-size:18px;font-weight:760}
.ppc2-model-field{margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid #e8ebf2}
.ppc2-model-field:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
.ppc2-model-field h5{margin:0 0 8px;color:#293452;font-size:15px;font-weight:750}
.ppc2-model-option{min-width:0}
.ppc2-conditional-field{margin:12px 0 12px 18px;padding:14px;border-left:3px solid #9ca8d4;background:#f5f7fc;border-radius:0 12px 12px 0}
.ppc2-conditional-field[hidden]{display:none!important}
.ppc2-model-fields .ppc2-option img{height:120px;object-fit:cover}
@media(max-width:760px){.ppc2-model-fields{padding:15px}.ppc2-conditional-field{margin-left:8px;padding:10px}}

/* Procedura guidata a passaggi distinti */
.ppc2-archive-wizard .ppc2-step{margin:0}
.ppc2-archive-wizard .ppc2-step>p{margin:0 0 20px;color:#758099}
.ppc2-archive-wizard .ppc2-options{margin-top:18px}
.ppc2-extra-step .ppc2-extra-field{padding:18px 0;border-bottom:1px solid #e9edf4}
.ppc2-extra-step .ppc2-extra-field:last-child{border-bottom:0}
.ppc2-extra-step .ppc2-extra-field h4{margin:0 0 10px;color:#293452;font-size:16px}
.ppc2-summary-lines{display:grid;gap:12px;margin:20px 0}
.ppc2-confirm-preview{margin:18px 0;padding:18px;border:1px solid #e5e8f3;border-radius:14px;background:#fafbfe}
.ppc2-confirm .ppc2-customer{margin-top:24px}
/* Step builder: raggruppamento dei controlli configurati dall'amministratore. */
.ppc2-configured-content{display:grid;gap:24px}
.ppc2-configured-control{min-width:0}
.ppc2-configured-control>.ppc2-archive-step{display:block;animation:none}
.ppc2-configured-control>.ppc2-archive-step>p{margin:0 0 18px;color:var(--ppc-muted)}
.ppc2-configured-control>.ppc2-format-step{display:block}
.ppc2-configured-control>.ppc2-extra-field{margin:0;padding:0;border:0;background:transparent}
.ppc2-configured-control>.ppc2-extra-field h4{margin:0 0 12px}
.ppc2-configured-source{display:none!important}

/* Filtri orientamento formati */
.ppc2-format-filters{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 20px}
.ppc2-format-filter{appearance:none;border:1px solid #e1e5ef;background:#fff;color:#46516a;border-radius:999px;padding:10px 17px;font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:all .18s ease}
.ppc2-format-filter:hover{border-color:#8878e6;color:#5143bb}
.ppc2-format-filter.is-active{background:#6252cf;border-color:#6252cf;color:#fff;box-shadow:0 5px 14px rgba(98,82,207,.2)}
.ppc2-format-empty{padding:14px 16px;border-radius:12px;background:#f7f7fb;color:#68728a;font-size:13px}
@media(max-width:600px){.ppc2-format-filters{gap:7px}.ppc2-format-filter{padding:9px 12px;font-size:12px}}

/* Anteprime proporzionate dei formati album */
.ppc2-format-option>span{align-items:stretch}
.ppc2-format-preview{height:142px;display:flex!important;align-items:center;justify-content:center;padding:12px;background:linear-gradient(145deg,#f7f8fc,#eef1f8);border-bottom:1px solid #e8ebf3}
.ppc2-format-sheet{display:block;max-width:85%;max-height:116px;border:2px solid #6b5bd2;border-radius:5px;background:linear-gradient(145deg,#fff 0%,#fbfaff 100%);box-shadow:0 7px 16px rgba(47,48,105,.15),inset 0 0 0 4px rgba(102,84,217,.055);position:relative}
.ppc2-format-sheet:after{content:"";position:absolute;inset:8px;border:1px solid rgba(102,84,217,.12);border-radius:2px}
.ppc2-format-option b{padding-top:13px}
.ppc2-format-option small{padding-bottom:14px}
.ppc2-format-option input:checked+span .ppc2-format-preview{background:linear-gradient(145deg,#f1efff,#f8f5ff)}
@media(max-width:600px){.ppc2-format-preview{height:124px}.ppc2-format-sheet{max-height:100px}}

/* Materiali raggruppati per categoria nel configuratore cliente */
.ppc2-material-group{margin:16px 0 22px}.ppc2-material-group h4{font-size:15px;font-weight:750;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #e7eaf0;color:#29345f}


/* Anteprima ingrandita dei materiali con sfondo personalizzabile */
.ppc2-material-grid{overflow:visible}.ppc2-material-card{position:relative;min-width:0}.ppc2-material-card>.ppc2-option{display:block}.ppc2-material-zoom-trigger{position:absolute;right:10px;bottom:12px;z-index:2;width:30px;height:30px;display:grid;place-items:center;border:1px solid #dedaf8;border-radius:50%;background:#f5f3ff;color:#5b4bc7;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 2px 7px rgba(45,38,110,.12);transition:background .15s,transform .15s}.ppc2-material-zoom-trigger:hover,.ppc2-material-zoom-trigger:focus-visible{background:#e9e5ff;transform:scale(1.08);outline:2px solid rgba(102,84,217,.25);outline-offset:2px}.ppc2-material-card>.ppc2-option b{padding-right:48px}.ppc2-material-card>.ppc2-option img{width:100%;height:140px;object-fit:cover}.ppc2-material-zoom[hidden]{display:none!important}.ppc2-material-zoom{position:fixed;z-index:999999;width:390px;max-width:calc(100vw - 24px);padding:14px;border:1px solid #dfe3ed;border-radius:18px;background:#fff;box-shadow:0 18px 55px rgba(22,29,55,.28);color:#26344d;overflow:auto;animation:ppc2ZoomIn .14s ease-out}.ppc2-material-zoom-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:15px}.ppc2-material-zoom-close{width:30px;height:30px;border:0;border-radius:50%;background:#f0f1f6;color:#35415e;font-size:22px;line-height:1;cursor:pointer}.ppc2-material-zoom-stage{height:270px;display:flex;align-items:center;justify-content:center;padding:12px;border-radius:12px;background:#fff;transition:background .15s ease}.ppc2-material-zoom-stage img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:4px}.ppc2-material-zoom-empty{height:180px;display:grid;place-items:center;background:#f5f6fa;border-radius:12px;color:#7a8499}.ppc2-material-zoom-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:12px}.ppc2-material-zoom-tools>span{font-weight:750;color:#56617a;margin-right:3px}.ppc2-material-zoom-tools button,.ppc2-material-color{border:1px solid #dfe3ed;border-radius:999px;padding:7px 11px;background:#fff;color:#46516a;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.ppc2-material-zoom-tools button.is-active{border-color:#6654d9;background:#f1efff;color:#5143bb}.ppc2-material-color{display:inline-flex;align-items:center;gap:7px}.ppc2-material-color input{width:22px;height:22px;padding:0;border:0;background:transparent;cursor:pointer}
@keyframes ppc2ZoomIn{from{opacity:0;transform:translateY(4px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){.ppc2-material-zoom{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;bottom:12px!important;width:auto!important;max-height:70vh!important}.ppc2-material-zoom-stage{height:220px}.ppc2-material-card>.ppc2-option img{height:105px}}

/* Configuratore in popup: nella pagina resta soltanto il box di avvio. */
.ppc2-launch-config{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;max-width:1080px;margin:28px auto;padding:24px 28px;border:1px solid #e3e6f1;border-radius:18px;background:linear-gradient(115deg,#fff 0%,#f8f7ff 100%);color:#202b45;text-align:left;cursor:pointer;box-shadow:0 10px 30px rgba(35,43,83,.07);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.ppc2-launch-config:hover,.ppc2-launch-config:focus-visible{transform:translateY(-2px);border-color:#b9b0f1;box-shadow:0 16px 36px rgba(55,49,125,.13);outline:0}
.ppc2-launch-config span{font-size:clamp(19px,2.4vw,25px);font-weight:800;letter-spacing:-.025em;color:#292d59}
.ppc2-launch-config small{font-size:13px;color:#748098}
.ppc2-config-modal[hidden]{display:none!important}
.ppc2-config-modal{position:fixed;inset:0;z-index:999990;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(15,20,39,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.ppc2-config-modal-panel{position:relative;width:min(1120px,100%);max-height:calc(100vh - 44px);overflow:auto;border-radius:26px;background:#fff;box-shadow:0 28px 90px rgba(0,0,0,.32);overscroll-behavior:contain}
.ppc2-config-modal-panel>.ppc2-config{max-width:none;margin:0}
.ppc2-config-modal-panel>.ppc2-config .ppc2-shell{border:0;border-radius:26px;box-shadow:none}
.ppc2-config-modal-close{position:sticky;top:12px;float:right;z-index:20;width:42px;height:42px;margin:12px 12px -54px 0;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(30,34,65,.78);color:#fff;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.18)}
.ppc2-config-modal-close:hover,.ppc2-config-modal-close:focus-visible{background:#5145b7;outline:3px solid rgba(102,84,217,.25);outline-offset:2px}
body.ppc2-modal-open{overflow:hidden}
@media(max-width:760px){.ppc2-launch-config{margin:18px 10px;width:calc(100% - 20px);padding:20px}.ppc2-config-modal{padding:8px}.ppc2-config-modal-panel{max-height:calc(100vh - 16px);border-radius:18px}.ppc2-config-modal-panel>.ppc2-config .ppc2-shell{border-radius:18px}.ppc2-config-modal-close{top:7px;margin:7px 7px -49px 0;width:38px;height:38px}}
