.member-area{background:var(--ivory)}
.member-app h1,.member-app h2{font-family:var(--serif);font-weight:300}
.member-auth-section{min-height:calc(100vh - 84px);padding:72px 0 92px;background:linear-gradient(135deg,var(--sage-pale),var(--paper) 58%,#f3ece5)}
.member-auth-layout{display:grid;grid-template-columns:.88fr 1.12fr;gap:8vw;align-items:center}
.member-auth-intro{max-width:540px}
.member-auth-intro h1{margin:0;color:var(--forest);font-size:clamp(3.5rem,6vw,6.4rem);line-height:.95;letter-spacing:-.04em}
.member-auth-intro>p:not(.eyebrow){margin:28px 0 0;color:var(--muted);font-size:1.05rem;line-height:1.85}
.privacy-points{display:grid;gap:11px;margin:32px 0 0;padding:0;list-style:none}
.privacy-points li{position:relative;padding-left:27px;color:var(--forest);font-size:.88rem;font-weight:600}
.privacy-points li:before{position:absolute;left:0;top:.28em;width:15px;height:15px;border-radius:50%;background:var(--forest);color:#fff;content:"✓";font-size:.64rem;line-height:15px;text-align:center}
.auth-card{padding:38px;border:1px solid var(--line);border-radius:28px;background:rgba(255,255,255,.93);box-shadow:var(--shadow)}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;border-radius:999px;background:var(--sage-pale)}
.auth-tab{min-height:43px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:.72rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
.auth-tab.active{background:#fff;color:var(--forest);box-shadow:0 4px 15px rgba(35,67,49,.08)}
.auth-panel{padding-top:32px}
.auth-panel h2{margin:0;color:var(--forest);font-size:2.25rem;line-height:1.05}
.auth-kicker{margin:0 0 8px;color:var(--terra);font-size:.62rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.auth-help{margin:14px 0 25px;color:var(--muted);font-size:.88rem;line-height:1.7}
.channel-choice{display:flex;gap:18px;margin:0 0 18px;padding:0;border:0}
.channel-choice legend{width:100%;margin-bottom:9px;color:var(--forest);font-size:.62rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.channel-choice label{display:flex;align-items:center;gap:7px;color:var(--ink);font-size:.86rem}
.channel-choice input{accent-color:var(--forest)}
.member-app .field{margin-bottom:17px}
.member-app .field label{display:block;margin-bottom:7px;color:var(--forest);font-size:.62rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
.member-app .field input,.member-app .field textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:11px;outline:0;background:var(--ivory);color:var(--ink);transition:border-color .2s,box-shadow .2s}
.member-app .field input:focus,.member-app .field textarea:focus{border-color:rgba(35,67,49,.55);box-shadow:0 0 0 4px rgba(35,67,49,.08)}
.member-app .field small{display:block;margin-top:7px;color:var(--muted);font-size:.69rem;line-height:1.5}
.full-btn{width:100%}
.support-link,.row-action{padding:0;border:0;background:transparent;color:var(--forest);font-size:.74rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.auth-panel>.support-link{display:block;margin:18px auto 0}
.auth-status{margin-top:18px;padding:13px 15px;border-radius:11px;background:var(--sage-pale);color:var(--forest);font-size:.8rem}
.auth-status.error{background:#f8e9e5;color:#8e3c2d}
.otp-input{font-size:1.45rem!important;font-weight:700;letter-spacing:.28em;text-align:center}
.otp-actions{display:flex;justify-content:space-between;gap:16px;margin-top:18px}

.member-dashboard{min-height:100vh;background:var(--ivory)}
.member-dashboard-top{padding:66px 0 58px;background:var(--forest-deep);color:#fff}
.dashboard-heading{display:flex;align-items:end;justify-content:space-between;gap:36px}
.dashboard-heading h1{margin:0;color:#fff;font-size:clamp(3.6rem,6vw,6.4rem);line-height:.94}
.dashboard-heading p:not(.eyebrow){max-width:690px;margin:20px 0 0;color:rgba(255,255,255,.7)}
.dashboard-body{padding:38px 0 90px}
.status-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:-74px;position:relative;z-index:2}
.status-card{min-height:160px;padding:25px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 16px 42px rgba(20,45,32,.09)}
.status-card>span{display:block;color:var(--terra);font-size:.58rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.status-card strong{display:block;margin-top:22px;color:var(--forest);font-family:var(--serif);font-size:2rem;font-weight:400;line-height:1}
.status-card small{display:block;margin-top:9px;color:var(--muted);font-size:.72rem}
.status-card .status-ok{color:#3e7350}
.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:24px}
.panel-card{padding:30px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(20,45,32,.06)}
.panel-head{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.panel-head .eyebrow{margin-bottom:7px}
.panel-head h2{margin:0;color:var(--forest);font-size:2.05rem;line-height:1.05}
.panel-badge{padding:6px 10px;border-radius:999px;background:var(--sage-pale);color:var(--forest);font-size:.56rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap}
.panel-badge.locked{background:#f3eee8;color:#8a5b43}
.data-list{display:grid}
.data-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}
.data-row:last-child{border-bottom:0}
.data-row span,.admin-list span{display:block;color:var(--muted);font-size:.66rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.data-row strong,.admin-list strong{display:block;margin-top:3px;color:var(--ink);font-size:.92rem;font-weight:600}
.panel-note{margin:20px 0 0;color:var(--muted);font-size:.72rem;line-height:1.6}
.admin-list{display:grid;gap:0;margin-bottom:24px}
.admin-list>div{padding:14px 0;border-bottom:1px solid var(--line)}
.requests-panel{margin-top:18px}
.empty-state{padding:22px;border-radius:15px;background:var(--sage-pale);text-align:center}
.empty-state strong{color:var(--forest);font-family:var(--serif);font-size:1.4rem;font-weight:400}
.empty-state p{margin:7px 0 0;color:var(--muted);font-size:.78rem}
.request-list{display:grid;gap:10px}
.request-item{display:grid;grid-template-columns:1fr auto;gap:16px;padding:16px;border:1px solid var(--line);border-radius:14px}
.request-item strong{color:var(--forest);font-size:.9rem}.request-item p{margin:3px 0 0;color:var(--muted);font-size:.72rem}
.request-status{align-self:start;padding:5px 9px;border-radius:999px;background:#fff3df;color:#8e651f;font-size:.58rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

.member-dialog{width:min(620px,calc(100% - 28px));padding:0;border:0;border-radius:24px;background:transparent;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.member-dialog::backdrop{background:rgba(10,28,19,.62);backdrop-filter:blur(4px)}
.dialog-card{position:relative;margin:0;padding:34px;border-radius:24px;background:#fff}
.dialog-card h2{margin:0;color:var(--forest);font-size:2.35rem;line-height:1}
.dialog-card>p:not(.eyebrow):not(.privacy-note){color:var(--muted);font-size:.86rem;line-height:1.65}
.dialog-close{position:absolute;top:17px;right:18px;width:36px;height:36px;border:0;border-radius:50%;background:var(--sage-pale);color:var(--forest);font-size:1.4rem;cursor:pointer}
.member-app .field-row,.dialog-card .field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.privacy-note{margin:10px 0 18px;color:var(--muted);font-size:.7rem;line-height:1.55}

@media(max-width:900px){
  .member-auth-layout,.dashboard-grid{grid-template-columns:1fr}.member-auth-intro{max-width:720px}.status-grid{grid-template-columns:1fr 1fr}.dashboard-heading{align-items:start;flex-direction:column}.member-actions{align-self:flex-start}
}
@media(max-width:560px){
  .member-auth-section{padding:42px 0 64px}.member-auth-intro h1{font-size:3.55rem}.auth-card{padding:23px;border-radius:20px}.auth-panel h2{font-size:1.95rem}.channel-choice{flex-wrap:wrap}
  .member-dashboard-top{padding:50px 0 88px}.status-grid{grid-template-columns:1fr;margin-top:-66px}.status-card{min-height:130px}.dashboard-grid{margin-top:15px}.panel-card{padding:22px}.data-row{align-items:flex-start;flex-direction:column;gap:8px}.panel-head{flex-direction:column}.member-app .field-row,.dialog-card .field-row{grid-template-columns:1fr}.dialog-card{padding:27px 21px}.otp-actions{align-items:center;flex-direction:column}
}


/* Documenti riservati — Regolamento */
.documents-panel{margin-top:18px}.document-card{display:grid;grid-template-columns:auto 1fr auto;gap:20px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(135deg,var(--sage-pale),#fff)}
.document-icon{display:grid;width:58px;height:58px;place-items:center;border-radius:16px;background:var(--forest);color:#fff;font-family:var(--serif);font-size:2rem}.document-copy span{display:block;color:var(--terra);font-size:.58rem;font-weight:700;letter-spacing:.1em}.document-copy strong{display:block;margin-top:4px;color:var(--forest);font-family:var(--serif);font-size:1.35rem;font-weight:400;line-height:1.15}.document-copy small{display:block;margin-top:7px;color:var(--muted);font-size:.7rem}

.document-dialog{width:100vw;max-width:none;height:100vh;max-height:none;margin:0;padding:0;border:0;background:var(--forest-deep)}
.document-dialog::backdrop{background:var(--forest-deep)}
.document-viewer{height:100dvh;display:grid;grid-template-rows:auto 1fr auto;background:linear-gradient(180deg,#20342a,#263a30);overflow:hidden}
.document-toolbar{position:relative;z-index:5;display:flex;min-height:60px;align-items:center;justify-content:center;padding:10px 64px;background:rgba(18,43,32,.97);color:#fff;border-bottom:1px solid rgba(255,255,255,.09)}
.document-toolbar strong{color:#fff;font-family:var(--serif);font-size:1.05rem;font-weight:400;letter-spacing:.01em}
.document-close{position:absolute;top:50%;right:14px;width:40px;height:40px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;transform:translateY(-50%)}
.document-close:hover,.document-close:focus-visible{background:rgba(255,255,255,.16)}
.document-stage{position:relative;min-height:0;display:grid;grid-template-columns:minmax(54px,1fr) minmax(0,880px) minmax(54px,1fr);align-items:center;gap:18px;overflow:hidden;padding:22px 18px;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
.page-viewport{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;cursor:grab;touch-action:pan-y pinch-zoom}
.page-viewport.is-dragging{cursor:grabbing}
.protected-page{position:relative;width:min(100%,820px);max-height:calc(100dvh - 132px);aspect-ratio:210/297;overflow:hidden;background:#fffef8;box-shadow:0 24px 70px rgba(0,0,0,.38);user-select:none;-webkit-user-select:none;transform:translateX(0);transition:transform .24s ease,opacity .24s ease;will-change:transform,opacity}
.protected-page.is-sliding-left{transform:translateX(-14%);opacity:.38}
.protected-page.is-sliding-right{transform:translateX(14%);opacity:.38}
.protected-page.is-dragging{transition:none}
.protected-page-content{position:relative;z-index:1;padding:9% 10%;color:#292d29}
.protected-kicker{margin:0;color:var(--forest);font-size:.58rem;font-weight:700;letter-spacing:.14em}
.protected-page h2{margin:17% 0 0;color:var(--forest);font-size:clamp(2.45rem,6vw,5.1rem);text-align:center}
.protected-page h3{max-width:560px;margin:18px auto 0;color:#4e5b52;font-family:var(--serif);font-size:clamp(1.2rem,2.5vw,2rem);font-weight:300;line-height:1.3;text-align:center}
.protected-lines{display:grid;gap:13px;margin-top:10%}.protected-lines i{display:block;height:7px;border-radius:999px;background:#e5e6df}.protected-lines i:nth-child(3n){width:78%}.protected-lines i:nth-child(4n){width:88%}
.watermark-grid{position:absolute;z-index:4;inset:-10%;display:grid;grid-template-columns:repeat(2,1fr);grid-auto-rows:120px;align-items:center;justify-items:center;transform:rotate(-27deg);pointer-events:none}
.watermark-grid span{max-width:260px;color:rgba(74,84,76,.115);font-size:.65rem;font-weight:800;line-height:1.35;letter-spacing:.06em;text-align:center;text-transform:uppercase}
.page-nav{display:grid;width:48px;height:48px;place-items:center;justify-self:center;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.10);color:#fff;font-family:Arial,sans-serif;font-size:2rem;line-height:1;cursor:pointer;backdrop-filter:blur(8px);transition:background .2s,transform .2s,opacity .2s}
.page-nav:hover,.page-nav:focus-visible{background:rgba(255,255,255,.20);transform:scale(1.05)}
.page-nav:disabled{opacity:0;pointer-events:none}
.document-footer{position:relative;z-index:5;display:flex;min-height:50px;align-items:center;justify-content:center;padding:8px 18px;background:rgba(18,43,32,.97);color:rgba(255,255,255,.78);border-top:1px solid rgba(255,255,255,.08)}
.document-footer strong{font-size:.72rem;font-weight:600;letter-spacing:.08em}
@media(max-width:780px){
  .document-toolbar{min-height:54px;padding:9px 56px 9px 16px;justify-content:flex-start}.document-toolbar strong{font-size:.95rem}
  .document-close{right:10px;width:38px;height:38px}
  .document-stage{display:block;padding:10px 8px 8px;overflow:auto;touch-action:pan-y pinch-zoom}
  .page-viewport{min-height:100%;align-items:flex-start;overflow:visible;cursor:default;touch-action:pan-y pinch-zoom}
  .protected-page{width:100%;max-height:none;margin:0 auto;box-shadow:0 14px 38px rgba(0,0,0,.34)}
  .page-nav{display:none}
  .document-footer{min-height:44px;padding:7px 12px}.document-footer strong{font-size:.68rem}
  .watermark-grid{grid-auto-rows:105px}.watermark-grid span{font-size:.58rem}
}
@media(max-width:460px){.protected-page h2{font-size:clamp(2.2rem,15vw,4rem)}.protected-page h3{font-size:1.05rem}.protected-lines{gap:9px}.protected-lines i{height:6px}}
@media(prefers-reduced-motion:reduce){.protected-page,.page-nav{transition:none}}


/* Card Regolamento semplificata v0.6 */
.documents-panel .documents-title{margin:0 0 20px;color:var(--forest);font-family:var(--serif);font-size:2.2rem;font-weight:400;line-height:1.05}
.documents-panel .document-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 26px;border:0;border-radius:17px;background:var(--forest)}
.documents-panel .document-icon{display:none}
.documents-panel .document-copy strong{margin:0;color:#fff;font-family:var(--serif);font-size:1.65rem;font-weight:400}
.documents-panel .document-copy span,.documents-panel .document-copy small{display:none}
.documents-panel .document-card .btn.light{flex:0 0 auto}
@media(max-width:560px){.documents-panel .document-card{padding:22px;flex-direction:column;align-items:stretch}.documents-panel .document-copy strong{text-align:center}.documents-panel .document-card .btn{width:100%}}

/* v1.0 — pagine reali del Regolamento, renderizzate e filigranate dal server */
.protected-page-image{display:flex;align-items:center;justify-content:center;background:#e7e9e5}
.protected-page-image img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;transition:opacity .16s ease}
.protected-page-loading{position:absolute;z-index:2;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px 14px;border-radius:999px;background:rgba(18,43,32,.88);color:#fff;font-size:.72rem;letter-spacing:.04em}
.protected-page-loading[hidden]{display:none}
@media(max-width:880px){.protected-page-image{aspect-ratio:210/297}.protected-page-image img{width:100%;height:auto;max-height:none}}


/* Dati reali: assegnazioni, quote e pagamenti */
.member-history-panel{margin-top:24px}
.member-subtitle{margin:22px 0 10px;color:var(--forest);font-family:var(--serif);font-size:1.35rem;font-weight:400}
.member-record-list{display:grid;gap:10px}
.member-record{display:grid;grid-template-columns:minmax(150px,1.2fr) repeat(3,minmax(110px,.8fr));gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.member-record strong{color:var(--forest);font-size:.86rem}.member-record span{color:var(--muted);font-size:.72rem;line-height:1.45}.member-record .record-status{justify-self:end;padding:6px 9px;border-radius:999px;background:var(--sage-pale);color:var(--forest);font-size:.63rem;font-weight:700;text-transform:uppercase}
.member-report-button{margin-top:16px}
@media(max-width:760px){.member-record{grid-template-columns:1fr 1fr}.member-record .record-status{justify-self:start}}
@media(max-width:520px){.member-record{grid-template-columns:1fr}.member-record .record-status{justify-self:start}}

/* 3.5.0 — ingresso Area Soci a due rami: gestionale + guida */
.member-portal,.member-guide{min-height:100vh;background:var(--ivory)}
.member-portal-hero,.member-guide-top{padding:62px 0 96px;background:linear-gradient(135deg,var(--forest-deep),var(--forest));color:#fff}
.member-portal-heading,.member-guide-heading{display:flex;align-items:end;justify-content:space-between;gap:42px}
.member-portal-heading h1,.member-guide-heading h1{max-width:900px;margin:0;color:#fff;font-family:var(--serif);font-size:clamp(3.2rem,6vw,5.8rem);font-weight:300;line-height:.98;letter-spacing:-.035em}
.member-portal-heading p:not(.eyebrow),.member-guide-heading p:not(.eyebrow){max-width:760px;margin:22px 0 0;color:rgba(255,255,255,.74);font-size:1rem;line-height:1.75}
.member-portal-grid{position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:-62px;padding-bottom:92px}
.member-portal-card{display:grid;grid-template-rows:1fr auto;min-height:470px;padding:34px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 22px 60px rgba(20,45,32,.12)}
.member-portal-card--guide{background:linear-gradient(160deg,#fff,#f1f3e8)}
.member-portal-card-copy h2{margin:8px 0 16px;color:var(--forest);font-family:var(--serif);font-size:clamp(2.2rem,3vw,3.25rem);font-weight:300;line-height:1.02}
.member-portal-card-copy>p:not(.eyebrow){max-width:560px;margin:0 0 26px;color:var(--muted);font-size:.95rem;line-height:1.75}
.member-portal-card .btn{display:inline-flex;align-items:center;gap:18px;justify-content:space-between;min-width:220px}
.member-portal-list{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:30px 0 0;padding:18px 0 0;border-top:1px solid var(--line);list-style:none}
.member-portal-list li{position:relative;padding:9px 10px 9px 23px;color:var(--muted);font-size:.76rem;line-height:1.4}
.member-portal-list li:before{position:absolute;left:2px;top:12px;width:9px;height:9px;border:1px solid var(--forest);border-radius:50%;content:""}

.member-guide-top{padding-bottom:70px}.member-home-link{margin:0 0 22px;padding:0;border:0;background:transparent;color:rgba(255,255,255,.82);font-size:.8rem;font-weight:700;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.member-guide-body{padding:38px 0 90px}.member-guide-regulation{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 42px;padding:28px 30px;border-radius:20px;background:#fff;border:1px solid var(--line);box-shadow:0 12px 34px rgba(20,45,32,.06)}.member-guide-regulation h2{margin:5px 0 8px;color:var(--forest);font-family:var(--serif);font-size:2.25rem;font-weight:300}.member-guide-regulation p:last-child{margin:0;color:var(--muted);font-size:.86rem;line-height:1.65}
.member-guide-group{margin:0 0 48px}.member-guide-group-head{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:44px;align-items:start;margin-bottom:17px}.member-guide-group-head .eyebrow{margin:0}.member-guide-group-head>p:last-child{max-width:700px;margin:0;color:var(--muted);font-size:.9rem;line-height:1.7}
.member-guide-topic-list{display:grid;gap:10px}.member-guide-topic{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}.member-guide-topic>summary{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:22px 24px;cursor:pointer;list-style:none}.member-guide-topic>summary::-webkit-details-marker{display:none}.member-guide-topic-copy{display:grid;gap:4px}.member-guide-topic-kicker{color:var(--terra);font-size:.56rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase}.member-guide-topic-copy strong{color:var(--forest);font-family:var(--serif);font-size:1.6rem;font-weight:400;line-height:1.12}.member-guide-topic-copy small{max-width:840px;color:var(--muted);font-size:.75rem;line-height:1.55}.member-guide-topic-arrow{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:var(--sage-pale);color:var(--forest);font-size:1.35rem;transition:transform .2s}.member-guide-topic[open] .member-guide-topic-arrow{transform:rotate(45deg)}
.member-guide-topic-body{display:grid;grid-template-columns:minmax(180px,.42fr) minmax(0,1.58fr);gap:34px;padding:0 24px 30px;border-top:1px solid var(--line)}.member-guide-topic-visual{margin:26px 0 0;padding:4px;border-radius:16px;background:transparent;display:flex;align-items:flex-start;justify-content:center}.member-guide-topic-visual img{display:block;width:100%;max-height:300px;object-fit:contain}.member-guide-topic-content{min-width:0;padding-top:18px}.member-guide-subsection{padding:16px 0;border-bottom:1px solid #e3e5dc}.member-guide-subsection:last-of-type{border-bottom:0}.member-guide-subsection h4{margin:0 0 8px;color:var(--forest);font-family:var(--serif);font-size:1.4rem;font-weight:400}.member-guide-subsection p,.member-guide-subsection li{color:#455348;font-size:.88rem;line-height:1.78}.member-guide-subsection ul{padding-left:20px}.member-guide-inline-visual{max-width:560px;margin:18px 0 4px;padding:6px;border-radius:14px;background:transparent}.member-guide-inline-visual img{display:block;width:100%;max-height:310px;object-fit:contain}.member-guide-inline-visual figcaption{margin-top:8px;color:var(--muted);font-size:.7rem;line-height:1.5}.member-guide-warning,.member-guide-remember{margin:18px 0;padding:18px 20px;border-radius:13px}.member-guide-warning{background:#f7eee7;border-left:4px solid var(--terra)}.member-guide-remember{background:var(--sage-pale)}.member-guide-warning strong,.member-guide-remember strong{color:var(--forest);font-size:.76rem;letter-spacing:.08em;text-transform:uppercase}.member-guide-warning p{margin:7px 0 0;font-size:.84rem;line-height:1.65}.member-guide-remember ul{margin:8px 0 0;padding-left:18px}.member-guide-remember li{font-size:.82rem;line-height:1.65}.member-guide-sources{margin-top:16px;border-top:1px solid var(--line)}.member-guide-sources summary{padding:14px 0;color:var(--forest);font-size:.78rem;font-weight:700;cursor:pointer}.member-guide-sources ul{margin:0 0 8px;padding-left:18px}.member-guide-sources li{margin:7px 0;font-size:.76rem;line-height:1.55}.member-guide-bottom{margin-top:34px;padding-top:24px;border-top:1px solid var(--line)}.member-guide-bottom .member-home-link{color:var(--forest);margin:0}.member-home-button{border-color:rgba(255,255,255,.55)!important;color:#fff!important}

@media(max-width:900px){.member-portal-heading,.member-guide-heading{align-items:flex-start;flex-direction:column}.member-portal-grid{grid-template-columns:1fr}.member-portal-card{min-height:0}.member-guide-group-head{grid-template-columns:1fr;gap:8px}.member-guide-topic-body{grid-template-columns:1fr}.member-guide-topic-visual{max-width:430px}.member-guide-regulation{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.member-portal-hero,.member-guide-top{padding:48px 0 82px}.member-portal-heading h1,.member-guide-heading h1{font-size:3.25rem}.member-portal-grid{margin-top:-46px;padding-bottom:64px}.member-portal-card{padding:24px;border-radius:20px}.member-portal-card-copy h2{font-size:2.25rem}.member-portal-list{grid-template-columns:1fr}.member-guide-body{padding-top:26px}.member-guide-regulation{padding:22px}.member-guide-regulation .btn{width:100%}.member-guide-topic>summary{padding:18px}.member-guide-topic-copy strong{font-size:1.4rem}.member-guide-topic-copy small{display:none}.member-guide-topic-body{padding:0 18px 22px;gap:14px}.member-guide-topic-visual{margin-top:18px}.member-actions{display:flex;gap:8px;flex-wrap:wrap}}

/* 3.5 — Guida Soci: ricerca, filtri e caricamento riservato */
.member-guide-content{min-height:280px}
.member-guide-loading,.member-guide-error{display:grid;justify-items:start;gap:8px;padding:30px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(20,45,32,.05)}
.member-guide-loading strong,.member-guide-error strong{color:var(--forest);font-family:var(--serif);font-size:1.55rem;font-weight:400}
.member-guide-loading p,.member-guide-error p{margin:0;color:var(--muted);font-size:.84rem;line-height:1.65}
.member-guide-loader{width:26px;height:26px;border:3px solid #d8dfd5;border-top-color:var(--forest);border-radius:50%;animation:odv-guide-spin .85s linear infinite}
@keyframes odv-guide-spin{to{transform:rotate(360deg)}}
.member-guide-tools{margin:0 0 44px;padding:28px 30px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,#fff,#f4f5ed);box-shadow:0 12px 34px rgba(20,45,32,.05)}
.member-guide-tools-copy{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr);gap:36px;align-items:end;margin-bottom:20px}
.member-guide-tools-copy .eyebrow{margin:0}
.member-guide-tools-copy h2{grid-column:1/2;margin:7px 0 0;color:var(--forest);font-family:var(--serif);font-size:clamp(2rem,3vw,2.8rem);font-weight:300;line-height:1.02}
.member-guide-tools-copy>p:last-child{grid-column:2;grid-row:1/3;align-self:end;max-width:660px;margin:0;color:var(--muted);font-size:.86rem;line-height:1.7}
.member-guide-search{display:grid;gap:7px;margin-top:16px}
.member-guide-search span{color:var(--forest);font-size:.7rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.member-guide-search input{width:100%;padding:15px 17px;border:1px solid #ccd5ca;border-radius:13px;background:#fff;color:#203429;font:500 .9rem/1.3 var(--sans);outline:0;transition:border-color .15s,box-shadow .15s}
.member-guide-search input:focus{border-color:var(--forest);box-shadow:0 0 0 3px rgba(31,76,49,.10)}
.member-guide-chips{display:flex;gap:8px;margin-top:16px;padding-bottom:2px;overflow-x:auto;scrollbar-width:thin}
.member-guide-chip{flex:0 0 auto;padding:9px 13px;border:1px solid #cfd6cc;border-radius:999px;background:#fff;color:var(--forest);font:700 .69rem/1 var(--sans);cursor:pointer}
.member-guide-chip.is-active{border-color:var(--forest);background:var(--forest);color:#fff}
.member-guide-no-results{margin:18px 0 0;color:var(--muted);font-size:.84rem}
.member-guide-lead{margin:6px 0 10px;padding-bottom:16px;border-bottom:1px solid #e3e5dc;color:#34473b;font-size:.92rem;line-height:1.78}
.member-guide-topic[hidden],.member-guide-group[hidden]{display:none!important}
@media(max-width:720px){.member-guide-tools{padding:22px}.member-guide-tools-copy{grid-template-columns:1fr;gap:8px}.member-guide-tools-copy h2,.member-guide-tools-copy>p:last-child{grid-column:auto;grid-row:auto}.member-guide-chips{margin-right:-22px;padding-right:22px}.member-guide-search input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.member-guide-loader{animation:none}}

#library-request-view .panel-card{margin-bottom:24px}#library-request-view .field{margin:18px 0}#library-request-view textarea,#library-request-view select,#library-request-view input:not([type=checkbox]){width:100%;max-width:100%;padding:12px;border:1px solid #cad7cf;border-radius:10px;font:inherit;background:#fff;color:#183b29}#library-request-view label{display:block;margin-bottom:8px}#library-status{white-space:pre-wrap;padding:16px 0;color:#24553a}.library-row{display:block;width:100%;padding:16px;text-align:left;background:#f2f6f1;border:1px solid #d5e1d5;border-radius:10px;margin:12px 0;color:#193d2b;font:inherit;text-decoration:none;cursor:pointer}#library-detail p{white-space:pre-wrap}#library-detail form{margin-top:24px;padding-top:24px;border-top:1px solid #d5e1d5}#library-detail .btn{margin:8px 8px 8px 0}


/* 3.12 — allineamento card e accesso discreto ai libri sociali */
.status-card{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.member-portal-card-copy{text-align:center}
.member-portal-card-copy>p:not(.eyebrow){margin-left:auto;margin-right:auto}
.member-portal-card .btn{margin-left:auto;margin-right:auto}
.member-portal-list li{display:flex;align-items:center;justify-content:center;gap:8px;padding:9px 10px;text-align:center}
.member-portal-list li:before{position:static;flex:0 0 9px}
.member-library-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px;padding:18px 22px;border-radius:16px;background:#f7f6f0;box-shadow:none}
.member-library-entry .eyebrow{margin:0 0 5px;font-size:.54rem}
.member-library-entry h2{margin:0;color:var(--forest);font-family:var(--serif);font-size:1.35rem;font-weight:400;line-height:1.1}
.member-library-entry p{max-width:760px;margin:7px 0 0;color:var(--muted);font-size:.74rem;line-height:1.55}
.member-library-entry .member-library-legal{font-size:.66rem;color:#7b817b}
.member-library-entry-actions{display:flex;flex:0 0 auto;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.member-library-request-link{white-space:nowrap;font-size:.68rem}
@media(max-width:720px){.member-library-entry{align-items:flex-start;flex-direction:column}.member-library-entry-actions{justify-content:flex-start}}

/* 3.13.1 — badge alignment */
.panel-badge,.request-status,.member-record .record-status,.member-guide-chip{display:inline-flex;align-items:center;justify-content:center;text-align:center;line-height:1.15}
