.wdf-structure-shell{
    --wdf-blue:#0b1f3a;
    --wdf-blue-deep:#07172b;
    --wdf-gold:#c9a64a;
    --wdf-gold-soft:#e4cd8c;
    --wdf-surface:#ffffff;
    --wdf-card:#fbfbfc;
    --wdf-card-border:#e1e5ea;
    --wdf-text:#132035;
    --wdf-muted:#677286;
    --wdf-rule:#e7e1d2;
    width:100%;
    max-width:1320px;
    margin:34px auto 58px;
    padding:0 18px;
    box-sizing:border-box;
}
.wdf-structure-shell *{box-sizing:border-box}
.wdf-structure-frame{
    position:relative;
    overflow:hidden;
    background:var(--wdf-surface);
    color:var(--wdf-text);
    border:1px solid var(--wdf-gold);
    box-shadow:0 22px 70px rgba(5,18,35,.14);
    padding:52px 46px 38px;
    transition:background-color .22s ease,color .22s ease,border-color .22s ease;
}
.wdf-structure-frame:before,
.wdf-structure-frame:after{content:"";position:absolute;pointer-events:none}
.wdf-structure-frame:before{inset:8px;border:1px solid rgba(199,163,74,.42)}
.wdf-structure-frame:after{left:28px;right:28px;top:20px;height:3px;background:linear-gradient(90deg,transparent,var(--wdf-gold),transparent)}
.wdf-structure-intro{text-align:center;max-width:920px;margin:0 auto 46px}
.wdf-structure-logo{display:flex;justify-content:center;align-items:center;margin:0 auto 6px;min-height:118px}
.wdf-structure-logo img{display:block;width:min(360px,78vw);height:auto;max-height:185px;object-fit:contain}
.wdf-front-kicker{color:var(--wdf-blue);font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.24em}
.wdf-front-rule{display:flex;align-items:center;justify-content:center;margin:16px auto 18px}
.wdf-front-rule span{display:block;width:78px;height:2px;background:var(--wdf-gold)}
.wdf-structure-intro p{margin:0;color:var(--wdf-muted);font-size:16px;line-height:1.78}
.wdf-structure-sections{display:grid;gap:30px}
.wdf-front-section{padding:0 0 30px;border-bottom:1px solid var(--wdf-rule)}
.wdf-front-section:last-child{border-bottom:0;padding-bottom:0}
.wdf-front-section-heading{display:grid;grid-template-columns:minmax(42px,1fr) auto minmax(42px,1fr);align-items:center;gap:18px;margin-bottom:20px}
.wdf-front-section-heading h2{margin:0!important;color:var(--wdf-blue)!important;text-align:center;font-family:Georgia,'Times New Roman',serif;font-weight:600!important;font-size:clamp(21px,2vw,27px)!important;letter-spacing:.015em;line-height:1.25!important}
.wdf-gold-line{height:1px;background:linear-gradient(90deg,transparent,var(--wdf-gold))}
.wdf-gold-line:last-child{background:linear-gradient(90deg,var(--wdf-gold),transparent)}
.wdf-front-members{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
.wdf-front-member{position:relative;border:1px solid var(--wdf-card-border);border-left:3px solid var(--wdf-gold);background:var(--wdf-card);padding:17px 18px 16px;min-height:98px;transition:background-color .22s ease,border-color .22s ease,transform .16s ease}
.wdf-front-member:hover{transform:translateY(-1px)}
.wdf-member-role{color:#8a6d1d;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.11em;margin-bottom:6px}
.wdf-member-name{color:var(--wdf-text);font-size:18px;font-weight:700;line-height:1.34;overflow-wrap:anywhere}
.wdf-member-profile-link{display:inline-flex;align-items:center;gap:8px;color:inherit!important;text-decoration:none!important;border:0!important;box-shadow:none!important}
.wdf-member-profile-link:hover,.wdf-member-profile-link:focus{color:#8a6d1d!important;text-decoration:none!important}
.wdf-link-mark{font-size:13px;color:var(--wdf-gold);font-weight:800;transform:translateY(-1px)}
.wdf-member-country{display:flex;align-items:center;gap:8px;margin-top:8px;color:var(--wdf-muted);font-size:13px}
.wdf-flag{font-size:20px;line-height:1}
.wdf-front-empty{text-align:center;color:var(--wdf-muted);padding:12px}
.wdf-structure-footer-mark{display:flex;flex-direction:column;align-items:center;margin-top:44px;color:var(--wdf-blue)}
.wdf-structure-footer-mark span{font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:700;letter-spacing:.12em}
.wdf-structure-footer-mark small{margin-top:4px;color:#8a6d1d;font-size:9px;font-weight:800;letter-spacing:.2em}

/* Modalità scura: attivata automaticamente dal JS quando il tema WDF è scuro. */
.wdf-structure-shell.wdf-is-dark{
    --wdf-blue:#f2f5fa;
    --wdf-surface:#081a30;
    --wdf-card:#0d2440;
    --wdf-card-border:#25415f;
    --wdf-text:#f6f8fb;
    --wdf-muted:#bac4d2;
    --wdf-rule:#29435e;
}
.wdf-structure-shell.wdf-is-dark .wdf-structure-frame{box-shadow:0 24px 80px rgba(0,0,0,.32)}
.wdf-structure-shell.wdf-is-dark .wdf-member-role,
.wdf-structure-shell.wdf-is-dark .wdf-structure-footer-mark small{color:var(--wdf-gold-soft)}
.wdf-structure-shell.wdf-is-dark .wdf-member-profile-link:hover,
.wdf-structure-shell.wdf-is-dark .wdf-member-profile-link:focus{color:var(--wdf-gold-soft)!important}

/* Fallback per i nomi di classe più comuni usati dai temi. */
html.dark .wdf-structure-shell,
html.dark-mode .wdf-structure-shell,
body.dark .wdf-structure-shell,
body.dark-mode .wdf-structure-shell,
body.wdf-dark .wdf-structure-shell,
[data-theme="dark"] .wdf-structure-shell,
[data-color-scheme="dark"] .wdf-structure-shell{
    --wdf-blue:#f2f5fa;
    --wdf-surface:#081a30;
    --wdf-card:#0d2440;
    --wdf-card-border:#25415f;
    --wdf-text:#f6f8fb;
    --wdf-muted:#bac4d2;
    --wdf-rule:#29435e;
}

@media(min-width:1500px){
    .wdf-structure-shell{max-width:1440px}
    .wdf-structure-frame{padding-left:58px;padding-right:58px}
    .wdf-front-members{gap:16px}
}
@media(max-width:980px){
    .wdf-structure-shell{margin-top:26px;padding:0 14px}
    .wdf-structure-frame{padding:46px 28px 34px}
    .wdf-structure-logo img{width:min(320px,76vw)}
}
@media(max-width:720px){
    .wdf-structure-shell{margin:20px auto 40px;padding:0 10px}
    .wdf-structure-frame{padding:38px 18px 28px}
    .wdf-structure-frame:before{inset:6px}
    .wdf-structure-frame:after{left:18px;right:18px;top:16px}
    .wdf-structure-intro{margin-bottom:34px}
    .wdf-structure-logo{min-height:92px;margin-bottom:2px}
    .wdf-structure-logo img{width:min(270px,82vw);max-height:145px}
    .wdf-front-kicker{font-size:10px;letter-spacing:.19em}
    .wdf-structure-intro p{font-size:14px;line-height:1.7}
    .wdf-front-section-heading{grid-template-columns:22px minmax(0,auto) 22px;gap:9px;margin-bottom:16px}
    .wdf-front-section-heading h2{font-size:20px!important}
    .wdf-front-members{grid-template-columns:1fr;gap:10px}
    .wdf-front-member{padding:15px 15px 14px;min-height:auto}
    .wdf-member-name{font-size:17px}
    .wdf-structure-footer-mark{margin-top:34px}
}
@media(max-width:430px){
    .wdf-structure-shell{padding:0 6px}
    .wdf-structure-frame{padding:34px 14px 24px}
    .wdf-front-section-heading{grid-template-columns:14px minmax(0,1fr) 14px}
    .wdf-front-section-heading h2{font-size:18px!important}
    .wdf-member-role{font-size:10px}
    .wdf-member-country{font-size:12px}
}

/* =========================================================
   WDF 1.2.0 - integrazioni globali Structure / Documents
   ========================================================= */

.wdf-structure-menu-fallback > a{
    white-space:nowrap;
}

.wdf-structure-home-cta-wrap{
    margin-top:28px;
    margin-bottom:8px;
}
.wdf-structure-home-cta{
    display:inline-flex;
    align-items:center;
    gap:13px;
    min-height:48px;
    padding:12px 20px;
    border:1px solid #c9a64a;
    background:#0b1f3a;
    color:#fff!important;
    text-decoration:none!important;
    font-size:13px;
    font-weight:800;
    letter-spacing:.045em;
    line-height:1.25;
    box-shadow:none!important;
    transition:transform .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease;
}
.wdf-structure-home-cta:hover,
.wdf-structure-home-cta:focus{
    transform:translateY(-1px);
    background:#102a4c;
    border-color:#dfc16d;
    color:#fff!important;
    text-decoration:none!important;
}
.wdf-structure-home-cta-arrow{
    color:#e0bf64;
    font-size:18px;
    line-height:1;
}
.wdf-structure-home-cta-wrap.wdf-is-dark .wdf-structure-home-cta{
    background:transparent;
    color:#f7f8fb!important;
    border-color:#d3b35b;
}
.wdf-structure-home-cta-wrap.wdf-is-dark .wdf-structure-home-cta:hover,
.wdf-structure-home-cta-wrap.wdf-is-dark .wdf-structure-home-cta:focus{
    background:#0d2440;
}

.wdf-document-clickable-title{
    position:relative;
    display:table;
    cursor:pointer;
    outline:none;
    transition:color .16s ease;
}
.wdf-document-clickable-title:after{
    content:"PDF";
    display:inline-block;
    margin-left:10px;
    padding:3px 6px 2px;
    border:1px solid rgba(201,166,74,.75);
    color:#9a7622;
    font-family:Arial,sans-serif;
    font-size:9px;
    font-weight:800;
    letter-spacing:.08em;
    line-height:1.1;
    vertical-align:middle;
    transform:translateY(-2px);
}
.wdf-document-clickable-title:hover,
.wdf-document-clickable-title:focus{
    color:#9a7622!important;
}

.wdf-doc-modal{
    --wdf-doc-bg:#fff;
    --wdf-doc-head:#0b1f3a;
    --wdf-doc-text:#132035;
    --wdf-doc-border:#c9a64a;
    --wdf-doc-muted:#697588;
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:26px;
    background:rgba(3,12,24,.76);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease,visibility .18s ease;
}
.wdf-doc-modal.is-open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}
.wdf-doc-modal-panel{
    display:flex;
    flex-direction:column;
    width:min(1180px,94vw);
    height:min(860px,90vh);
    min-height:420px;
    overflow:hidden;
    background:var(--wdf-doc-bg);
    color:var(--wdf-doc-text);
    border:1px solid var(--wdf-doc-border);
    box-shadow:0 30px 100px rgba(0,0,0,.42);
}
.wdf-doc-modal-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    min-height:68px;
    padding:12px 16px 12px 22px;
    background:var(--wdf-doc-head);
    border-bottom:2px solid var(--wdf-doc-border);
    color:#fff;
}
.wdf-doc-modal-title{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-family:Georgia,'Times New Roman',serif;
    font-size:20px;
    font-weight:600;
    letter-spacing:.01em;
}
.wdf-doc-modal-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 auto;
}
.wdf-doc-modal-open{
    display:inline-flex;
    align-items:center;
    min-height:38px;
    padding:8px 12px;
    border:1px solid rgba(222,190,99,.72);
    color:#f1d98e!important;
    text-decoration:none!important;
    font-size:11px;
    font-weight:800;
    letter-spacing:.07em;
    text-transform:uppercase;
}
.wdf-doc-modal-open:hover,
.wdf-doc-modal-open:focus{
    background:rgba(255,255,255,.07);
    color:#fff!important;
}
.wdf-doc-modal-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid rgba(255,255,255,.25);
    background:transparent;
    color:#fff;
    cursor:pointer;
    font-size:29px;
    font-weight:300;
    line-height:1;
}
.wdf-doc-modal-close:hover,
.wdf-doc-modal-close:focus{
    border-color:#d7b75d;
    color:#f0d78c;
    outline:none;
}
.wdf-doc-modal-viewer{
    position:relative;
    flex:1 1 auto;
    min-height:0;
    background:#d7dbe0;
}
.wdf-doc-modal-frame{
    position:relative;
    z-index:2;
    display:block;
    width:100%;
    height:100%;
    border:0;
    background:#fff;
}
.wdf-doc-modal-fallback{
    position:absolute;
    z-index:1;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    color:var(--wdf-doc-muted);
    text-align:center;
}
.wdf-doc-modal.wdf-is-dark{
    --wdf-doc-bg:#081a30;
    --wdf-doc-head:#061427;
    --wdf-doc-text:#f5f7fa;
    --wdf-doc-muted:#bec8d4;
}
.wdf-doc-modal.wdf-is-dark .wdf-doc-modal-viewer{
    background:#0d2440;
}

@media(max-width:900px){
    .wdf-structure-home-cta-wrap{margin-top:22px}
    .wdf-doc-modal{padding:16px}
    .wdf-doc-modal-panel{width:96vw;height:92vh}
    .wdf-doc-modal-head{min-height:62px;padding-left:16px}
    .wdf-doc-modal-title{font-size:17px}
}
@media(max-width:620px){
    .wdf-structure-home-cta-wrap{margin-top:20px}
    .wdf-structure-home-cta{
        width:100%;
        max-width:420px;
        justify-content:space-between;
        padding:12px 16px;
        font-size:12px;
    }
    .wdf-doc-modal{padding:6px}
    .wdf-doc-modal-panel{width:100%;height:96vh;min-height:360px}
    .wdf-doc-modal-head{gap:8px;padding:10px 9px 10px 13px}
    .wdf-doc-modal-title{font-size:15px}
    .wdf-doc-modal-open{padding:7px 8px;font-size:9px}
    .wdf-doc-modal-close{width:36px;height:36px;font-size:25px}
}
