.forum-page{padding-top:28px;padding-bottom:40px}.forum-page .back-link{margin-bottom:12px;font-size:.8rem}.forum-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.forum-heading h1{font-size:clamp(1.45rem,2.6vw,2rem);overflow-wrap:anywhere}.forum-heading p{font-size:.85rem;margin-top:6px}.forum-section{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:0 0 18px}.forum-section>header{padding:9px 15px;background:#2e2e2e;color:white;border-left:4px solid #ff7a00}.forum-section h2{font-size:.95rem;letter-spacing:0}.forum-section>header p{color:#e9e9e9;font-size:.75rem;margin-top:3px}.forum-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 220px;gap:16px;align-items:center;padding:12px 15px;background:#fff}.forum-row:nth-child(odd){background:#f5f5f5}.forum-row+.forum-row{border-top:1px solid var(--line)}.forum-row a{font-size:.87rem}.forum-row a:hover{color:var(--red);text-decoration:underline}.forum-category-title{display:flex;gap:12px;align-items:center;min-width:0}.forum-category-title svg{color:#a84900}.forum-category-title p{font-size:.77rem;line-height:1.4;margin-top:3px}.forum-count,.forum-last{font-size:.75rem;color:var(--muted)}.forum-last a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.78rem}.forum-last small{display:block;font-size:.7rem}.forum-topic-meta{font-size:.73rem;color:var(--muted);margin-top:4px}.forum-empty{padding:18px;font-size:.85rem}.forum-message{display:grid;grid-template-columns:155px minmax(0,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:12px;scroll-margin-top:15px}.forum-author{padding:14px;background:#f5f5f5;font-size:.76rem;border-right:1px solid var(--line)}.forum-author>a{display:flex;flex-direction:column;gap:7px;overflow-wrap:anywhere}.forum-author .avatar{width:45px;height:45px}.forum-rank{font-size:.67rem;display:block;color:var(--red);font-weight:700;margin-top:3px}.forum-author dl{margin:9px 0 0;line-height:1.7}.forum-author dl>div{display:flex;justify-content:space-between;gap:7px}.forum-author dt{color:var(--muted)}.forum-author dd{margin:0;text-align:right;overflow-wrap:anywhere}.forum-author>small{color:var(--muted);font-size:.65rem}.forum-message-content{padding:14px 18px;min-width:0}.forum-message-content>header{display:flex;justify-content:space-between;font-size:.72rem;color:var(--muted);border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:10px}.forum-body{font-size:.9rem;line-height:1.6;overflow-wrap:anywhere}.forum-photo{max-width:100%;max-height:280px;object-fit:contain;margin:12px 0;border-radius:6px}.forum-quote{display:inline-block;font-size:.75rem;border:1px solid var(--line);border-radius:20px;padding:3px 11px;margin-top:13px}.forum-message .social-shared-project{max-width:390px;margin-top:12px}.forum-message .social-shared-project>img{height:130px}.forum-message .shared-project-info{padding:10px}.forum-message .shared-project-info h3{font-size:1rem}.forum-composer{padding:18px;background:#f5f5f5;border:1px solid var(--line);border-radius:8px;margin-top:20px;scroll-margin-top:20px}.forum-composer .field{margin-bottom:12px}.forum-composer textarea{width:100%;resize:vertical;min-height:100px}.forum-toolbar{display:flex;gap:6px;margin:5px 0}.forum-toolbar button{background:#fff;border:1px solid var(--line);border-radius:4px;padding:2px 10px;font-size:.8rem}.forum-attachments{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.forum-attachments>.field{flex:1;min-width:190px;margin:0}.forum-attachments input,.forum-attachments select{font-size:.8rem}.forum-page blockquote{margin:10px 0;padding:10px 14px;border-left:3px solid #ff7a00;background:#f5f5f5;font-size:.82rem;overflow-wrap:anywhere}.forum-composer blockquote{background:#fff}.forum-demo,.forum-closed{background:#fff0e2;border:1px solid #e7b98f;padding:10px 14px;border-radius:6px;font-size:.8rem;margin-bottom:14px}.forum-closed p{color:#783600;margin-top:4px}.forum-moderation{border-top:1px solid var(--line);padding-top:14px;margin-top:20px;font-size:.85rem}.forum-moderation form{margin-top:12px;max-width:650px}.forum-admin-title{margin:22px 0 12px}.forum-admin-item{padding:12px;border:1px solid var(--line);border-radius:6px;margin:9px 0}.forum-admin-item summary{font-weight:650;cursor:pointer}.forum-admin-item form{margin-top:12px}
@media(max-width:700px){.forum-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;padding:10px 12px}.forum-last{grid-column:1/-1;display:flex;gap:12px;align-items:center}.forum-last a{max-width:55%}.forum-count{font-size:.68rem}.forum-count span{display:none}.forum-count b{margin-left:3px}.forum-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}.forum-heading .btn{min-height:34px;padding:8px 12px}.forum-message{grid-template-columns:1fr}.forum-author{border-right:0;border-bottom:1px solid var(--line);padding:9px 12px;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}.forum-author>a{flex-direction:row;align-items:center;gap:8px}.forum-author .avatar{width:32px;height:32px}.forum-author dl{display:flex;flex-wrap:wrap;gap:2px 12px;margin:0;width:100%;font-size:.68rem}.forum-author dl>div{gap:4px}.forum-author>small{display:none}.forum-message-content{padding:12px}.forum-page{padding-top:20px}.forum-composer{padding:13px}.forum-attachments{gap:12px}.forum-attachments>.field{min-width:100%;max-width:100%}.forum-composer input[type=file]{max-width:100%}.forum-row .strong{overflow-wrap:anywhere}.forum-photo{max-height:220px}}
.forum-category-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.forum-category-header>div{min-width:0;flex:1 1 180px}.forum-category-header h1{font-size:.95rem;letter-spacing:0;line-height:1.3;overflow-wrap:anywhere}.forum-category-header .btn{min-height:32px;padding:7px 12px;font-size:.76rem}.forum-page blockquote>p{max-height:180px;overflow:auto;line-height:1.5;margin-top:5px}
.forum-row>div{min-width:0}
/* Phone lists: a full-width title, readable counts, then the latest activity. */
@media(max-width:700px){
 .forum-page{width:calc(100% - 28px);padding-top:18px}
 .forum-heading{gap:10px;margin-bottom:16px}
 .forum-heading p{font-size:.8rem;line-height:1.45}
 .forum-section{margin-bottom:14px}
 .forum-section>header{padding:10px 12px}
 .forum-section>header p{line-height:1.4}
 .forum-row{grid-template-columns:minmax(0,1fr);gap:7px;padding:12px}
 .forum-category-title{gap:9px;align-items:flex-start}
 .forum-category-title>svg{width:18px;height:18px;margin-top:3px}
 .forum-category-title>div{min-width:0;flex:1}
 .forum-row .strong{display:block;font-size:.9rem;line-height:1.35;padding:2px 0}
 .forum-category-title p{font-size:.76rem;line-height:1.4;margin-top:3px}
 .forum-count{display:flex;align-items:center;gap:4px;font-size:.74rem;line-height:1.4;color:#595959}
 .forum-count b{margin:0;color:#2e2e2e}
 .forum-count span{display:inline;margin:0 4px;color:#888}
 .forum-last{grid-column:1;display:block;min-width:0;border-top:1px solid #e2e2e2;padding-top:7px;font-size:.72rem;line-height:1.4}
 .forum-last a{max-width:none;width:100%;font-size:.76rem;line-height:1.4;white-space:nowrap;padding:1px 0}
 .forum-last small{font-size:.7rem;margin-top:3px;overflow-wrap:anywhere}
 .forum-topic-meta{font-size:.72rem;line-height:1.4}
 .forum-category-header .btn{min-height:38px}
}
.forum-message-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.forum-action-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 16px;border:1px solid #c9c9c9;border-radius:999px;background:#fff;color:#2e2e2e;font-size:.78rem;font-weight:650;line-height:1.2}
.forum-action-pill:hover{background:#fff0e2;border-color:#ff7a00;color:#0b0b0b}
.forum-action-pill:focus-visible{outline:2px solid #a84900;outline-offset:3px}
@media(max-width:700px){.forum-action-pill{min-height:44px;padding:9px 18px}}
.forum-toolbar{flex-wrap:wrap}
.forum-toolbar button{min-height:34px;cursor:pointer}
.forum-composer textarea[data-forum-message]{white-space:pre-wrap;line-height:1.6;min-height:140px;max-height:450px;overflow-y:auto}
.forum-emoji-picker{display:flex;flex-wrap:wrap;gap:5px;padding:10px;margin-bottom:8px;background:#fff;border:1px solid var(--line);border-radius:6px}
.forum-emoji-picker[hidden]{display:none}
.forum-emoji-picker button{border:0;background:transparent;font-size:1.4rem;min-width:38px;min-height:38px;border-radius:5px;cursor:pointer}
.forum-emoji-picker button:hover{background:#fff0e2}
.forum-editor-help{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-top:6px;font-size:.72rem;color:var(--muted)}
.forum-body code,.forum-page blockquote code{white-space:pre-wrap;font-family:Consolas,monospace;background:#eee;padding:2px 5px;border-radius:3px}
.forum-row.forum-row-pinned{background:#fff0e2;border-left:3px solid #ff7a00}
.forum-pin-badge{display:block;width:fit-content;font-size:.72rem;font-weight:700;color:#8a3f00;background:#fff0e2;border-radius:4px;padding:3px 7px;margin-bottom:6px}
.forum-heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-shrink:0}.forum-heading-actions .forum-pin-form{margin:0}.forum-heading-actions .btn{white-space:nowrap}.forum-pin-form{margin:0}
.forum-message-tools{display:flex;align-items:center;gap:8px}
.forum-message-delete{display:flex;margin:0}
.forum-delete-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:1.15rem;line-height:1;cursor:pointer}
.forum-delete-icon:hover{color:#b93232;background:#fceaea}
.forum-message-content>header{align-items:center;gap:12px}

/* Sidebar Community nella home Forum e negli elenchi delle categorie. */
.forum-columns{grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.forum-main{min-width:0}
.forum-columns .forum-row{grid-template-columns:minmax(0,1fr) 90px 150px;gap:10px}
.forum-columns .forum-last{min-width:0;overflow:hidden}
.forum-columns .forum-last a{max-width:100%}
.forum-columns .social-sidebar{min-width:0}
@media(max-width:1150px){.forum-columns .forum-row{grid-template-columns:minmax(0,1fr) auto}.forum-columns .forum-last{grid-column:1/-1}.forum-columns .forum-count{white-space:nowrap}}
@media(max-width:850px){.forum-columns{grid-template-columns:minmax(0,1fr)}.forum-columns .social-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.forum-columns .social-sidebar{display:flex}.forum-columns .forum-row{gap:6px 10px}}

/* Topic list: soft four-column forum grid. */
.forum-topic-list{overflow:hidden}
.forum-topic-table-head{display:grid;grid-template-columns:minmax(0,1fr) 88px 88px 170px;background:linear-gradient(180deg,#4d575c 0%,#363f44 100%);color:#fff;border-left:4px solid #ff7a00}
.forum-topic-table-head span{padding:10px 12px;font-size:.72rem;font-weight:750;letter-spacing:.04em;text-transform:uppercase;border-left:1px solid rgba(255,255,255,.14)}
.forum-topic-table-head span:first-child{border-left:0}
.forum-topic-row{display:grid;grid-template-columns:minmax(0,1fr) 88px 88px 170px;align-items:stretch;background:#fff;border-top:1px solid #dfe4e5}
.forum-topic-row:nth-of-type(odd){background:#f8faf9}
.forum-topic-row>div{min-width:0;padding:13px 12px;border-left:1px solid #e2e7e8}
.forum-topic-row>div:first-child{border-left:0}
.forum-topic-main{display:flex;align-items:center;gap:12px}
.forum-topic-status{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #bcc7cb;border-radius:50%;background:#f4f7f8;color:#526168;flex:0 0 36px}
.forum-topic-status svg{width:18px;height:18px}
.forum-topic-copy{min-width:0}
.forum-topic-title{display:block;font-size:.94rem;font-weight:750;line-height:1.35;color:#163f62;overflow-wrap:anywhere}
.forum-topic-title:hover{color:#b84c10;text-decoration:none}
.forum-topic-meta{margin-top:4px;font-size:.72rem;line-height:1.4;color:#6b767a}
.forum-topic-stat{display:flex;align-items:center;justify-content:center;text-align:center}
.forum-topic-stat strong{font-size:1rem;font-weight:650;color:#53606a}
.forum-topic-last{display:flex;flex-direction:column;justify-content:center;gap:2px;font-size:.74rem;line-height:1.35;color:#657176}
.forum-topic-last time{font-size:.69rem;color:#7b8588}
.forum-rank-name{font-weight:750}
.forum-rank-member{color:#4d5960}
.forum-rank-admin{color:#c13a2b}
.forum-rank-moderator{color:#236eb0}
.forum-rank-editor{color:#26834d}
.forum-topic-mobile-label{display:none}
.forum-topic-row.forum-row-pinned{border-left:3px solid #ff7a00;background:#fff8ef}
.forum-topic-row.forum-row-pinned>div:first-child{padding-left:9px}
.forum-topic-row .forum-pin-badge{margin-bottom:5px;font-size:.65rem}

@media(max-width:1150px){
 .forum-columns .forum-topic-table-head,.forum-columns .forum-topic-row{grid-template-columns:minmax(0,1fr) 72px 72px 145px}
 .forum-topic-table-head span,.forum-topic-row>div{padding-left:9px;padding-right:9px}
 .forum-topic-last{font-size:.7rem}
}
.forum-topic-mobile-summary{display:none}
@media(max-width:700px){
 .forum-topic-table-head{display:none}
 .forum-columns .forum-topic-row,.forum-topic-row{grid-template-columns:minmax(0,1fr);gap:0}
 .forum-topic-row>div{border-left:0;padding:12px}
 .forum-topic-main{grid-column:auto;align-items:flex-start}
 .forum-topic-status{width:34px;height:34px;flex-basis:34px;margin-top:2px}
 .forum-topic-status svg{width:16px;height:16px}
 .forum-topic-copy{display:block}
 .forum-topic-title{font-size:.92rem;line-height:1.35}
 .forum-topic-meta{font-size:.7rem;line-height:1.45}
 .forum-topic-mobile-summary{display:flex;flex-direction:column;gap:4px;margin-top:8px;font-size:.72rem;line-height:1.4;color:#667176}
 .forum-topic-mobile-last span{color:#7a8488}
 .forum-topic-mobile-stats{color:#667176}
 .forum-topic-mobile-stats strong{font-size:.78rem;color:#33424a}
 .forum-topic-mobile-stats span{margin:0 5px;color:#9aa3a7}
 .forum-topic-stat,.forum-topic-last{display:none}
 .forum-pin-badge{margin-bottom:6px}
}

@media(max-width:700px){.forum-topic-heading{align-items:center;flex-wrap:nowrap}.forum-topic-heading h1{min-width:0;flex:1}.forum-heading-actions{gap:7px}.forum-heading-actions .btn{min-height:34px;padding:8px 11px;font-size:.78rem}}
@media(max-width:430px){.forum-topic-heading{align-items:flex-start;gap:10px}.forum-heading-actions{gap:6px}.forum-heading-actions .btn{padding:7px 9px;font-size:.74rem}}


/* Forum home categories: roomy desktop columns, compact phone rows. */
.forum-category-mobile-summary{display:none}
.forum-columns .forum-category-row{
 grid-template-columns:minmax(0,1fr) 150px minmax(220px,.72fr);
 gap:0;
 padding:0;
 align-items:stretch;
}
.forum-columns .forum-category-row>div{padding:15px 16px}
.forum-columns .forum-category-row .forum-category-title{align-items:flex-start}
.forum-columns .forum-category-row .forum-category-count{
 display:flex;
 align-items:center;
 justify-content:center;
 text-align:center;
 border-left:1px solid #e1e5e6;
 white-space:nowrap;
 color:#667176;
}
.forum-columns .forum-category-row .forum-category-count b{color:#2f3a3f;font-size:.88rem}
.forum-columns .forum-category-row .forum-category-last{
 display:flex;
 flex-direction:column;
 justify-content:center;
 border-left:1px solid #e1e5e6;
 min-width:0;
 padding-left:18px;
}
.forum-columns .forum-category-row .forum-category-last a{
 display:block;
 max-width:100%;
 white-space:nowrap;
 overflow:hidden;
 text-overflow:ellipsis;
 font-size:.8rem;
 line-height:1.35;
}
.forum-columns .forum-category-row .forum-category-last small{
 display:block;
 margin-top:4px;
 line-height:1.35;
}
.forum-no-message{font-size:.75rem;color:#7b8588}

@media(max-width:1150px) and (min-width:701px){
 .forum-columns .forum-category-row{grid-template-columns:minmax(0,1fr) 120px minmax(180px,.62fr)}
 .forum-columns .forum-category-row>div{padding:13px 12px}
}

@media(max-width:700px){
 .forum-columns .forum-category-row,.forum-category-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  padding:0;
 }
 .forum-columns .forum-category-row>div,.forum-category-row>div{padding:12px}
 .forum-category-row .forum-category-title{display:flex;gap:12px;align-items:flex-start}
 .forum-category-row .forum-category-title>div{min-width:0;flex:1}
 .forum-category-row .forum-category-status{width:34px;height:34px;flex:0 0 34px;margin-top:2px;color:#526168;background:#f4f7f8;border-color:#bcc7cb}
 .forum-category-row .forum-category-status svg{width:16px;height:16px}
 .forum-category-row .forum-category-title .strong{display:block;font-size:.92rem;line-height:1.35;color:#163f62}
 .forum-category-row .forum-category-title .strong:hover{color:#b84c10;text-decoration:none}
 .forum-category-row .forum-category-title p{font-size:.7rem;line-height:1.45;margin-top:3px;color:#6b767a}
 .forum-category-mobile-summary{display:flex;flex-direction:column;gap:4px;margin-top:8px;font-size:.72rem;line-height:1.4;color:#667176}
 .forum-home-mobile-last{color:#667176}
 .forum-home-mobile-last span{color:#7a8488}
 .forum-home-mobile-stats{color:#667176}
 .forum-home-mobile-stats strong{font-size:.78rem;color:#33424a}
 .forum-home-mobile-stats span{margin:0 5px;color:#9aa3a7}
 .forum-category-row .forum-category-count,
 .forum-category-row .forum-category-last{display:none!important}
}

/* Final forum home refinements. */
.forum-home-heading{margin-bottom:20px}
.forum-home-heading>div{display:flex;flex-direction:column;gap:3px}
.forum-home-heading p{margin:0}
.forum-category-count,.forum-home-mobile-stats{display:flex;align-items:center;gap:8px}
.forum-count-item{display:inline-flex;align-items:baseline;gap:4px;white-space:nowrap}
.forum-count-sep{color:#9aa3a7;margin:0 1px}
@media(max-width:700px){
 .forum-home-heading{margin-bottom:16px}
 .forum-home-mobile-stats{gap:7px}
 .forum-home-mobile-stats .forum-count-item{gap:3px}
}
