.webed-wrap{--webed-purple:#6D28D2;--webed-ink:#24183d;max-width:1160px;margin:30px auto;padding:24px;color:var(--webed-ink);font-family:inherit;box-sizing:border-box}.webed-wrap *{box-sizing:border-box}.webed-wrap h1{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.2;margin:12px 0}.webed-wrap h2{font-size:1.45rem;margin:0 0 20px}.webed-eyebrow{font-size:.85rem;font-weight:700;color:var(--webed-purple)}.webed-lead{font-size:1.05rem;color:#625c70;margin-bottom:26px}.webed-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.webed-card{padding:22px;border:1px solid #e8e3ef;border-radius:16px;background:#fff;display:flex;flex-direction:column;gap:10px}.webed-card h3{font-size:1.12rem;margin:0;line-height:1.35}.webed-card p{flex:1;color:#5d5766;font-size:.94rem}.webed-button{background:var(--webed-purple)!important;border:1px solid var(--webed-purple)!important;border-radius:9px!important;color:#fff!important;padding:11px 18px!important;display:inline-block;text-decoration:none!important;font-size:.93rem;font-weight:600;line-height:1.4;cursor:pointer}.webed-button:hover{filter:brightness(.91)}.webed-outline{background:#fff!important;color:var(--webed-purple)!important}.webed-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.webed-nav{display:flex;flex-direction:column;gap:8px;padding:14px;border:1px solid #e9e2f1;border-radius:15px;background:#fff}.webed-step{text-align:left;border:1px solid transparent;background:#fff;border-radius:9px;padding:14px;color:#403450;font-size:1rem;font-weight:600;cursor:pointer}.webed-step.active{border-color:var(--webed-purple);color:var(--webed-purple);background:#f8f4ff}.webed-main{border:1px solid #e9e2f1;background:#fff;border-radius:15px;padding:28px;min-height:340px}.webed-panel[hidden]{display:none!important}.webed-panel p{line-height:1.7}.webed-options{display:grid;gap:12px;margin:18px 0}.webed-option{border:1px solid #e4ddeb;border-radius:10px;padding:13px;cursor:pointer}.webed-label{display:block;font-weight:650;margin:18px 0 8px}.webed-reason{width:100%;border:1px solid #cfc4dc;border-radius:9px;padding:12px;font:inherit}.webed-actions{display:flex;justify-content:space-between;gap:12px;margin-top:30px}.webed-actions button[hidden]{visibility:hidden}.webed-save{font-size:.83rem;color:#68606f}.webed-gate{border:1px solid #e9e2f1;border-radius:16px;background:#fff}.webed-gate .webed-button{margin-right:10px}@media(max-width:900px){.webed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.webed-grid,.webed-layout{grid-template-columns:1fr}.webed-wrap{padding:12px}.webed-main{padding:18px}.webed-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.webed-step{padding:10px;font-size:.87rem}}
/* Esperienza pubblica WebEd: layout indipendente dal tema WordPress */
body.webed-standalone-page{margin:0;background:#f7f6fa;color:#251a3c;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.55}
.webed-public-header{background:#fff;border-bottom:1px solid #e9e4f1}
.webed-public-header-inner{max-width:1320px;padding:15px 28px;margin:auto;display:flex;align-items:center;gap:22px}
.webed-public-brand{display:inline-flex;align-items:center;gap:11px;color:#6D28D2!important;font-size:23px;font-weight:750;text-decoration:none!important}
.webed-public-mark{display:inline-flex;align-items:center;justify-content:center;width:43px;height:43px;background:#6D28D2;border-radius:12px;color:#fff;font-size:24px;letter-spacing:-2px}
.webed-public-tagline{font-size:13px;color:#776d84;border-left:1px solid #e3dcea;padding-left:20px}
.webed-public-account{margin-left:auto;font-size:14px;color:#675d73}
.webed-public-account a{color:#6D28D2}
.webed-public-content{min-height:calc(100vh - 160px)}
.webed-public-footer{border-top:1px solid #e8e2f0;max-width:1320px;margin:40px auto 0;padding:24px 28px;display:flex;justify-content:space-between;gap:20px;color:#746b7e;font-size:13px}
.webed-public-footer a{color:#6D28D2}
.webed-standalone-page .webed-wrap{max-width:1320px;width:100%;margin:0 auto;padding:40px 28px 20px;font-family:inherit}
.webed-standalone-page .webed-hero{margin:0 0 32px;max-width:1050px}
.webed-standalone-page .webed-hero h1{font-size:clamp(32px,3.2vw,46px);font-weight:750;letter-spacing:-.035em;line-height:1.14;margin:10px 0 12px;color:#241738}
.webed-standalone-page .webed-lead{font-size:17px;line-height:1.6;max-width:860px;color:#61566e;margin:0}
.webed-standalone-page .webed-layout{grid-template-columns:310px minmax(0,1fr);gap:24px;align-items:start}
.webed-standalone-page .webed-nav{padding:20px;border:1px solid #e8e2f0;border-radius:18px;gap:6px;box-shadow:0 4px 22px rgba(40,21,73,.025)}
.webed-nav-heading,.webed-section-kicker{font-size:11px;font-weight:800;letter-spacing:.1em;color:#6D28D2;margin:0 0 8px}
.webed-standalone-page .webed-step{font-size:15px;font-weight:650;padding:13px 14px;border-radius:10px;line-height:1.4}
.webed-standalone-page .webed-step.active{background:#f2eaff;border:1px solid #d8c4fb;color:#6D28D2}
.webed-sidebar-note{margin-top:18px;padding:18px;border-top:1px solid #ece7f3;font-size:13px;color:#6a6077}
.webed-sidebar-note strong{display:block;font-size:14px;color:#281b3c;margin-bottom:5px}
.webed-sidebar-note p{margin:0;line-height:1.55}
.webed-standalone-page .webed-main{padding:32px 36px;min-height:470px;border-radius:18px;box-shadow:0 4px 22px rgba(40,21,73,.025)}
.webed-standalone-page .webed-panel h2{font-size:29px;line-height:1.2;font-weight:750;letter-spacing:-.025em;margin:0 0 14px;color:#251738}
.webed-standalone-page .webed-panel p{font-size:16px;color:#5e5469}
.webed-section-intro{margin:0 0 22px!important}
.webed-resource-list{display:grid;gap:12px;margin-top:18px}
.webed-resource{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid #e8e1f0;border-radius:13px;background:#fff;color:#27183e!important;text-decoration:none!important;transition:border-color .15s,background .15s}
.webed-resource:hover{border-color:#6D28D2;background:#fbf9ff}
.webed-resource-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;background:#f1e9ff;color:#6D28D2;font-size:21px;font-weight:750}
.webed-resource strong{display:block;font-size:16px;font-weight:700;line-height:1.35}
.webed-resource small{display:block;margin-top:5px;font-size:12px;color:#786e82}
.webed-standalone-page .webed-option{display:flex;gap:10px;align-items:flex-start;padding:18px;border-radius:13px;background:#fff}
.webed-standalone-page .webed-option:has(input:checked){background:#f8f4ff;border-color:#6D28D2}
.webed-standalone-page .webed-option input{margin-top:5px;accent-color:#6D28D2}
.webed-standalone-page .webed-actions{border-top:1px solid #eee9f4;padding-top:24px}
@media(max-width:850px){.webed-standalone-page .webed-layout{grid-template-columns:1fr}.webed-standalone-page .webed-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.webed-nav-heading,.webed-sidebar-note{grid-column:1/-1}.webed-standalone-page .webed-main{padding:25px}.webed-public-tagline{display:none}}
@media(max-width:520px){.webed-public-header-inner{padding:12px 16px}.webed-standalone-page .webed-wrap{padding:24px 14px}.webed-standalone-page .webed-main{padding:20px}.webed-public-footer{padding:18px 16px}.webed-standalone-page .webed-step{font-size:13px;padding:10px}}

/* WebEd v0.7: reusable prompts and professional documents */
.webed-output-card{border:1px solid #e6def1;border-radius:14px;padding:20px;margin:18px 0;background:#fff}
.webed-output-card h3{font-size:19px!important;margin:0 0 12px!important;color:#251738}
.webed-output-card textarea{display:block;width:100%;min-height:155px;box-sizing:border-box;border:1px solid #d9cfe5;border-radius:10px;padding:14px;font:14px/1.65 inherit;color:#251738;background:#faf9fc;resize:vertical}
.webed-output-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.webed-output-actions .webed-button{font-size:14px;padding:10px 16px}
.webed-document-disclaimer{font-size:13px!important;color:#70657d!important;border-top:1px solid #eee8f3;padding-top:16px;margin-top:24px}

.webed-prompt-choices{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.webed-prompt-choices .webed-selected{background:#6d28d2!important;color:#fff!important;border-color:#6d28d2!important}.webed-prompt-display:empty{display:none}.webed-prompt-display .webed-output-card{margin-top:8px}

/* WebEd 0.9 professional profile and signature chooser */
.webed-sidebar-newsletter{margin-top:14px}.webed-sidebar-newsletter span{display:block;font-weight:650;margin-bottom:8px}.webed-sidebar-note a{color:#6d28d2;font-weight:650}.webed-sidebar-newsletter input{max-width:100%;box-sizing:border-box}.webed-profile-overlay{position:fixed;inset:0;background:rgba(30,16,47,.65);z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}.webed-profile-modal{background:#fff;border-radius:18px;max-width:700px;width:100%;max-height:90vh;overflow:auto;padding:30px;box-shadow:0 18px 70px #20133344;color:#251638}.webed-profile-modal h2{margin:0 0 10px;font-size:26px}.webed-profile-modal p{font-size:14px}.webed-profile-form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.webed-profile-form>label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:650}.webed-profile-form input:not([type=radio]){border:1px solid #d8cce7;border-radius:8px;padding:11px;font:inherit;min-width:0}.webed-profile-form h3,.webed-signature-choices,.webed-profile-error,.webed-profile-actions{grid-column:1/-1}.webed-signature-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.webed-signature-choice{display:flex;flex-direction:column;gap:9px;padding:12px;border:1px solid #d8cce7;border-radius:12px;cursor:pointer;min-height:116px}.webed-signature-choice:has(input:checked){border:2px solid #6d28d2;background:#f6f0ff}.webed-signature-choice span{font-size:12px}.webed-signature-choice strong{font-size:22px;font-weight:normal;overflow-wrap:anywhere}.webed-signature-corsiva strong{font-family:'Brush Script MT','Segoe Script',cursive;font-style:italic}.webed-signature-calligrafica strong{font-family:'Lucida Calligraphy','URW Chancery L',cursive;font-weight:bold;font-style:italic}.webed-signature-stampatello strong{font-family:Georgia,serif;text-transform:uppercase;letter-spacing:2px;font-size:16px}.webed-profile-actions{display:flex;justify-content:flex-end;gap:12px}.webed-profile-error{color:#a30021}@media(max-width:600px){.webed-profile-form{grid-template-columns:1fr}.webed-signature-choices{grid-template-columns:1fr}.webed-profile-modal{padding:20px}}

/* Area docente WebEd */
.webed-dashboard{max-width:1240px!important;margin:30px auto!important;color:#261b38;font-family:inherit}
.webed-dashboard-head{padding:26px 0 28px}.webed-dashboard-head h1{font-size:clamp(28px,4vw,42px);margin:8px 0}.webed-dashboard-head p{color:#6e647c;margin:0}
.webed-dashboard-layout{display:grid;grid-template-columns:285px minmax(0,1fr);gap:26px;align-items:start}
.webed-dashboard-nav{border:1px solid #e7e0f0;border-radius:15px;background:#fff;padding:18px;display:flex;flex-direction:column;gap:6px}
.webed-dashboard-nav>strong{font-size:11px;letter-spacing:1px;color:#746881;margin:5px 10px 12px}
.webed-dashboard-nav button{background:transparent;border:0;border-radius:9px;text-align:left;padding:13px 14px;color:#342a43;cursor:pointer;font:inherit;font-weight:600}
.webed-dashboard-nav button.active,.webed-dashboard-nav button:hover{background:#f2eaff;color:#6d28d2}
.webed-dashboard-nav-foot{border-top:1px solid #e7e0f0;margin-top:18px;padding:18px 12px 4px;font-size:13px}.webed-dashboard-nav-foot a{color:#6d28d2}
.webed-dashboard-content{min-width:0;background:#fff;border:1px solid #e7e0f0;border-radius:15px;padding:clamp(20px,3vw,36px);min-height:440px}
.webed-dashboard-content section[hidden]{display:none!important}.webed-dashboard-content h2{font-size:27px;margin:0 0 8px}.webed-dashboard-content section>p{color:#6e647c}
.webed-dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:25px 0}.webed-dashboard-stats>div{background:#f8f5fd;border:1px solid #eee6f6;border-radius:12px;padding:22px 15px;display:flex;flex-direction:column;gap:5px}
.webed-dashboard-stats strong{font-size:30px;color:#6d28d2}.webed-dashboard-stats span{font-size:12px;color:#62596c}
.webed-dashboard-muted{font-size:12px!important;color:#82788d!important}
.webed-dashboard-item,.webed-dashboard-portfolio{border:1px solid #e8e0f0;border-radius:12px;padding:20px;margin:15px 0;display:flex;align-items:center;justify-content:space-between;gap:20px}
.webed-dashboard-item h3,.webed-dashboard-portfolio h3{font-size:17px;margin:7px 0}.webed-dashboard-item p,.webed-dashboard-portfolio p{font-size:13px;color:#766d80;margin:5px 0}
.webed-dashboard-portfolio{display:block}.webed-dashboard-portfolio .webed-button{display:inline-block;margin-top:12px}
.webed-dashboard-empty{border:1px dashed #b7a0d6;background:#faf7fe;padding:28px;border-radius:12px;margin:20px 0}
.webed-dashboard-profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:24px}
.webed-dashboard-profile-form label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}
.webed-dashboard-profile-form input,.webed-dashboard-profile-form select{min-height:43px;padding:10px;border:1px solid #d9cfe4;border-radius:8px;width:100%;font:inherit;background:#fff;color:#251638}
.webed-dashboard-profile-form button{justify-self:start}.webed-dashboard-profile-message{font-size:13px}
@media(max-width:800px){.webed-dashboard-layout{grid-template-columns:1fr}.webed-dashboard-nav{flex-direction:row;flex-wrap:wrap}.webed-dashboard-nav>strong{width:100%}.webed-dashboard-nav-foot{width:100%}.webed-dashboard-stats{grid-template-columns:1fr}.webed-dashboard-item{align-items:flex-start;flex-direction:column}.webed-dashboard-profile-form{grid-template-columns:1fr}}

/* 1.0.1: learner navigation and in-page YouTube player */
.webed-experience-toolbar{margin:0 0 16px}.webed-dashboard-return{display:inline-flex;align-items:center;gap:8px;color:#6d28d2;font-weight:700;text-decoration:none;padding:9px 0}.webed-dashboard-return:hover{text-decoration:underline}
.webed-video-overlay{position:fixed;inset:0;z-index:999999;background:rgba(24,15,39,.82);display:flex;align-items:center;justify-content:center;padding:24px}.webed-video-dialog{background:#fff;border-radius:16px;width:min(100%,960px);padding:16px;box-shadow:0 20px 60px #0005;color:#251638}.webed-video-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.webed-video-close{background:#6d28d2;color:#fff;border:0;border-radius:9px;padding:10px 15px;cursor:pointer;font:inherit}.webed-video-dialog iframe{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:9px;background:#17111f}.webed-video-dialog p{margin:12px 0 0;font-size:13px}.webed-video-dialog a{color:#6d28d2}@media(max-width:600px){.webed-video-overlay{padding:8px}.webed-video-dialog{padding:10px}}

.webed-birth-parts{display:grid;grid-template-columns:minmax(85px,1fr) minmax(125px,1.5fr) minmax(100px,1fr);gap:8px;margin-top:6px}.webed-birth-parts select{width:100%;min-width:0;padding:10px;border:1px solid #d7cce9;border-radius:8px;background:#fff;color:#24143a;font:inherit}@media(max-width:520px){.webed-birth-parts{grid-template-columns:1fr 1.3fr 1fr;gap:4px}.webed-birth-parts select{padding:8px 3px;font-size:13px}}

/* Catalogo WebEd 1.0.5: copertine, metadati sintetici e card responsive. */
.webed-catalog{max-width:1320px;width:100%;margin-inline:auto}
.webed-catalog .webed-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.webed-catalog .webed-card{padding:0;gap:0;overflow:hidden;border:1px solid #e8e0f1;border-radius:20px;box-shadow:0 4px 16px rgba(36,24,61,.035);min-width:0;transition:transform .2s,box-shadow .2s}
.webed-catalog .webed-card:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(36,24,61,.09)}
.webed-card-media{height:180px;background:#f0e8ff;overflow:hidden}
.webed-card-image{display:block;width:100%;height:100%;object-fit:cover}
.webed-card-art{height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#f6f0ff,#ede2ff)}
.webed-card-art svg{height:100%;max-width:100%;width:320px}
.webed-card-content{display:flex;flex-direction:column;flex:1;padding:22px 23px 20px;gap:14px;min-width:0}
.webed-card-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:.76rem;line-height:1.4}
.webed-card-meta span:first-child{color:#6D28D2;font-weight:750}
.webed-card-meta span:last-child{color:#746b80;font-weight:550}
.webed-catalog .webed-card h3{font-size:clamp(1.14rem,1.5vw,1.4rem);line-height:1.35;margin:0;font-weight:750;overflow-wrap:break-word}
.webed-catalog .webed-card h3 a{color:#24183d;text-decoration:none}
.webed-catalog .webed-card h3 a:hover{color:#6D28D2}
.webed-catalog .webed-card p{font-size:.95rem;line-height:1.65;color:#655d70;margin:0;flex:1}
.webed-card-footer{border-top:1px solid #eee8f3;padding-top:15px;margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.webed-card-kind{font-size:.78rem;color:#756c80}
.webed-card-link{font-size:.92rem;color:#6D28D2!important;text-decoration:none!important;font-weight:750;white-space:nowrap}
.webed-card-link:hover{text-decoration:underline!important}
@media(min-width:1450px){.webed-catalog .webed-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:900px){.webed-catalog .webed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.webed-catalog .webed-grid{grid-template-columns:1fr}.webed-card-media{height:175px}.webed-card-content{padding:20px}}

/* 1.0.6: visualizzatore unificato delle risorse */
.webed-text-resource{font:inherit;text-align:left;width:100%;cursor:pointer;color:inherit}.webed-viewer-overlay{position:fixed;inset:0;z-index:999999;background:rgba(24,15,39,.83);display:flex;align-items:center;justify-content:center;padding:20px}.webed-viewer-dialog{background:white;color:#251638;border-radius:18px;width:min(1080px,100%);height:min(90vh,900px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 65px #0005}.webed-viewer-header,.webed-viewer-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 22px;flex-shrink:0}.webed-viewer-header{border-bottom:1px solid #ece4f4}.webed-viewer-header h3{margin:3px 0 0;font-size:1.25rem}.webed-viewer-count{color:#6d28d2;font-weight:700}.webed-viewer-close,.webed-viewer-footer button{border:1px solid #c9b5ee;border-radius:9px;background:#fff;color:#6d28d2;padding:10px 15px;font:inherit;font-weight:700;cursor:pointer}.webed-viewer-close{background:#6d28d2;color:#fff}.webed-viewer-footer{border-top:1px solid #ece4f4}.webed-viewer-footer button:disabled{opacity:.4;cursor:not-allowed}.webed-viewer-external{font-size:.85rem;color:#6d28d2!important;text-align:center}.webed-viewer-body{flex:1;min-height:0;overflow:auto;padding:16px 22px;display:flex;flex-direction:column}.webed-viewer-body iframe{border:0;width:100%;flex:1;min-height:300px;border-radius:9px;background:#f6f2fb}.webed-viewer-body iframe[src*="youtube"]{aspect-ratio:16/9;flex:0 0 auto;min-height:0;max-height:100%;height:auto}.webed-viewer-article{white-space:pre-wrap;line-height:1.8;font-size:1.05rem;max-width:78ch;margin:0 auto;width:100%;padding:15px 0;overflow-wrap:anywhere}.webed-viewer-hint{font-size:.82rem;color:#6b6076;margin:12px 0 0}@media(max-width:600px){.webed-viewer-overlay{padding:6px}.webed-viewer-dialog{height:96vh}.webed-viewer-header,.webed-viewer-footer{padding:12px;gap:8px}.webed-viewer-header h3{font-size:1rem}.webed-viewer-footer button{padding:9px;font-size:.8rem}.webed-viewer-external{font-size:.72rem}.webed-viewer-body{padding:10px}.webed-viewer-body iframe{min-height:260px}}

/* v1.0.7: personalizzazione globale della vetrina; isolamento dal tema */
.webed-catalog .webed-grid{grid-template-columns:repeat(var(--webed-catalog-cols,3),minmax(0,1fr))}
.webed-catalog .webed-card{background:var(--webed-catalog-bg,#fff);border:var(--webed-catalog-border,1px) solid var(--webed-catalog-border-color,#e8e0f1);border-radius:var(--webed-catalog-radius,20px)}
.webed-catalog .webed-card-meta span:first-child,.webed-catalog .webed-card-link,.webed-catalog .webed-card h3 a:hover{color:var(--webed-catalog-accent,#6D28D2)!important}
@media(min-width:1450px){.webed-catalog .webed-grid{grid-template-columns:repeat(var(--webed-catalog-cols,3),minmax(0,1fr))}}
@media(max-width:900px){.webed-catalog .webed-grid{grid-template-columns:repeat(min(2,var(--webed-catalog-cols,3)),minmax(0,1fr))}}
@media(max-width:620px){.webed-catalog .webed-grid{grid-template-columns:1fr}}

/* v1.0.8: struttura della sfida leggibile */
.webed-challenge-text{white-space:normal;line-height:1.8;margin:0 0 22px}.webed-challenge-text br+br{display:block;content:'';margin-bottom:10px}
