/* domino-forum: inizio */
/* Forum di Domino e SAFI — grafica «A»: schede pulite, una per categoria. Lo stile vale solo dentro #kunena. */

/* pagina: larghezza comoda e titolo (il forum non ne ha uno) */
body #sp-main-body:has(#kunena) { padding-top: 110px; }
body #kunena { max-width: 1080px; margin: 0 auto; padding: 0 24px 56px; color: #1f2430; font: 400 15px/1.55 Inter, system-ui, sans-serif; }
body #kunena::before { content: "Forum"; display: block; margin: 4px 0 6px;
  font: 700 40px/1.1 'DM Sans', Inter, system-ui, sans-serif; letter-spacing: -.02em; color: #1f2430; }
body #kunena::after { content: ""; display: table; clear: both; }
body #kunena a { color: #3a22c7; text-decoration: none; }
body #kunena a:hover { color: #2a1696; text-decoration: underline; }

/* via la barra vuota con il menu di stato, il menu a tendina «Categorie Forum» e il titolo «Index» */
body #kunena > nav.navbar,
body #kunena #jumpto { display: none !important; }
body #kunena .breadcrumb:has(> li:only-child) { display: none; }
body #kunena nav.pagination-container-links { padding: 4px 0 14px !important; }
body #kunena .breadcrumb { background: none; margin: 0; padding: 0; font-size: 14px; color: #6b7280; justify-content: flex-start; }
body #kunena .breadcrumb, body #kunena .breadcrumb * { font-size: 14px; font-family: Inter, system-ui, sans-serif; font-weight: 500; }
body #kunena .breadcrumb a { color: #6b7280; }
body #kunena .breadcrumb li:last-child a { color: #3a22c7; font-weight: 600; }
body #kunena .breadcrumb svg { display: none; }

body #kunena .mt-4, body #kunena .pt-4 { margin-top: 0 !important; padding-top: 0 !important; }
body #kunena .kfrontend.section > h1.card-header { margin-top: 8px; }

/* blocchi del forum: bianchi, bordo leggero, angoli morbidi, niente ombre pesanti */
body #kunena .kfrontend { background: #fff; border: 1px solid #e5e7ee !important; border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(20, 10, 80, .05) !important; margin-bottom: 22px; overflow: hidden; }
body #kunena .kfrontend > h1.card-header,
body #kunena .kfrontend > h2.card-header { background: none; border: 0; padding: 18px 24px 4px; margin: 0;
  font: 700 14px 'DM Sans', Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; }
body #kunena .kfrontend > h1.card-header a { color: #6b7280; }
body #kunena .kfrontend small { font: 500 13px Inter, sans-serif; letter-spacing: 0; text-transform: none; color: #6b7280; margin-left: 8px; }
body #kunena h1, body #kunena h2, body #kunena h3, body #kunena h4, body #kunena h5, body #kunena h6 {
  letter-spacing: normal; font-family: 'DM Sans', Inter, system-ui, sans-serif; line-height: 1.3; color: #1f2430; }
body #kunena .alert, body #kunena .alert * { font-size: 15px; line-height: 1.5; font-family: Inter, system-ui, sans-serif; font-weight: 500; letter-spacing: normal; }
body #kunena .alert { border-radius: 12px; border: 1px solid #cfe9f3; background: #eef8fc; color: #0c4a5e; padding: 12px 18px; }
body #kunena .btn, body #kunena .page-link, body #kunena .form-control, body #kunena .btn-group > * { font-size: 14px; line-height: 1.4; }
body #kunena .btn { border-radius: 10px; padding: 7px 14px; }
body #kunena .pagination { gap: 6px; flex-wrap: wrap; }
body #kunena .page-link { border-radius: 8px !important; padding: 6px 12px !important; height: auto !important; min-width: 0 !important; line-height: 1.4 !important; border: 1px solid #e5e7ee; color: #3a22c7; }
body #kunena .page-item.active .page-link { background: #3a22c7; border-color: #3a22c7; color: #fff; }
body #kunena .input-group { max-width: 320px; }
body #kunena .input-group .form-control { border-radius: 10px 0 0 10px; border-color: #e5e7ee; }
body #kunena .input-group .btn { border-radius: 0 10px 10px 0; }

/* le ombre pesanti del tema si fermano: l'unica rimasta è quella leggera dei blocchi */
body #kunena .shadow-lg { box-shadow: none !important; }
body #kunena #section1 { background: none; border: 0 !important; }
body #kunena #kstats { font-size: 14px; }
body #kunena #kstats * { font-size: inherit; }
body #kunena #kstats .card-body { padding: 8px 24px 18px; }
body #kunena .kfrontend > h2, body #kunena .kfrontend > .btn-toolbar { font-size: 14px; }

/* pagina iniziale: la sezione perde il riquadro e le categorie diventano schede */
body #kunena .kfrontend.section { background: none; border: 0 !important; box-shadow: none !important; overflow: visible; margin-bottom: 0; }
body #kunena .kfrontend.section > .btn-toolbar { display: none; }
body #kunena .kfrontend.section > h1.card-header { padding: 14px 0 12px; }
body #kunena .kfrontend.section table { display: block; width: 100%; border: 0; margin: 0; }
body #kunena .kfrontend.section thead,
body #kunena .kfrontend.section tbody { display: block; }
body #kunena .kfrontend.section tr, body #kunena .kfrontend.section td { display: block; border: 0; padding: 0; background: none; }
/* le regole: fascia gialla sopra le schede */
body #kunena .kfrontend.section thead .bg-faded { background: none !important; border: 0; color: #6b7280; font-size: 14px; padding: 0 0 4px 17px !important; margin: 0 0 8px; }
body #kunena .kfrontend.section:has(a[href*="/regole-"]) thead .bg-faded { background: #fff8e6 !important; border: 1px solid #f1dca0; border-radius: 12px; color: #6b5200; font-size: 15px; padding: 12px 18px !important; margin: 0 0 14px; }
/* intestazione della tabella («Categoria», «Ultimo Messaggio»): non serve */
body #kunena .kfrontend.section tbody > tr:not(.category) { display: none; }

body #kunena .kfrontend.section tr.category { display: grid !important; grid-template-columns: 56px 1fr 270px; gap: 20px; align-items: center;
  background: #fff; border: 1px solid #e5e7ee; border-radius: 16px; padding: 20px 24px; margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(20, 10, 80, .04); transition: box-shadow .15s, border-color .15s; }
body #kunena .kfrontend.section tr.category:hover { border-color: #cfc8f4; box-shadow: 0 6px 20px rgba(58, 34, 199, .10); }
body #kunena .kfrontend.section tr.category > td { display: block !important; width: auto !important; }

/* icona colorata al posto della cartella: dipende dal tipo di categoria (novità, domande, errori, idee, regole), uguale in ogni programma */
body #kunena tr.category #kcat-icon a { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background-color: var(--cat, #475569); background-repeat: no-repeat; background-position: center; background-size: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zM12 16v-5M12 8h.01'/%3E%3C/svg%3E"); }
body #kunena tr.category #kcat-icon a svg { display: none; }
body #kunena tr.category:has(a[href*="/novita-"]) { --cat: #3a22c7; }
body #kunena tr.category:has(a[href*="/domande-su-"]) { --cat: #0e9bb5; }
body #kunena tr.category:has(a[href*="/errori-"]) { --cat: #e5484d; }
body #kunena tr.category:has(a[href*="/idee-"]) { --cat: #d98a00; }
body #kunena tr.category:has(a[href*="/novita-"]) #kcat-icon a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 10-12 0c0 7-3 9-3 9h18s-3-2-3-9M13.7 21a2 2 0 01-3.4 0'/%3E%3C/svg%3E"); }
body #kunena tr.category:has(a[href*="/domande-su-"]) #kcat-icon a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.1 9a3 3 0 015.8 1c0 2-3 3-3 3M12 17h.01M12 2a10 10 0 100 20 10 10 0 000-20z'/%3E%3C/svg%3E"); }
body #kunena tr.category:has(a[href*="/errori-"]) #kcat-icon a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 001.7 3h17a2 2 0 001.7-3L13.7 3.9a2 2 0 00-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E"); }
body #kunena tr.category:has(a[href*="/idee-"]) #kcat-icon a { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 00-4 12.7c.6.5 1 1.3 1 2.1V17h6v-.2c0-.8.4-1.6 1-2.1A7 7 0 0012 2z'/%3E%3C/svg%3E"); }

/* nome, conteggio e descrizione */
body #kunena tr.category h3 { margin: 0; font: 700 20px 'DM Sans', Inter, sans-serif; line-height: 1.25; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
body #kunena tr.category h3 a { color: #1f2430; }
body #kunena tr.category h3 small { margin: 0; }
body #kunena tr.category .knewchar { color: #3a22c7; font-weight: 600; }
body #kunena tr.category .header-desc { color: #6b7280; font-size: 15px; margin-top: 3px; }

/* etichetta sulla prima categoria (annunci dello sviluppatore) */
body #kunena tr.category h3 svg { display: none; }
body #kunena tr.category:has(a[href*="/novita-"]) h3::after { content: "Annunci dello sviluppatore"; font: 600 12px Inter, sans-serif; color: #6b7280;
  background: #eef0f5; border-radius: 999px; padding: 2px 10px; }

body #kunena .kfrontend.section tr.category td h3, body #kunena .kfrontend.section tr.category td h3 a { font-size: 20px !important; font-weight: 700; }
body #kunena .kfrontend.section tr.category td h3 small, body #kunena .kfrontend.section tr.category td h3 small * { font-size: 13px !important; font-weight: 500; }
body #kunena .kfrontend.section tr.category td .header-desc { font-size: 15px; }
body #kunena .kfrontend.section tr.category td .lastpostlink, body #kunena .kfrontend.section tr.category td .lastpostlink a { font-size: 15px; font-weight: 600; }

/* ultimo messaggio */
body #kunena tr.category .last-post-message { color: #9aa0ab; font-size: 14px; }
body #kunena tr.category #kcat-last br { display: none; }
body #kunena tr.category #kcat-last { font-size: 14px; color: #6b7280; line-height: 1.5; }
body #kunena tr.category .lastpostlink { display: block; font: 600 15px Inter, sans-serif; }
body #kunena tr.category .lastpostlink a { color: #1f2430; }
body #kunena tr.category .datepost::before { content: " · "; }

/* elenchi di discussioni (pagine interne) */
body #kunena .kfrontend table th { font: 600 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; padding: 12px 16px; border-bottom: 1px solid #e5e7ee; background: #fafbfd; }
body #kunena .kfrontend table td { padding: 14px 16px; vertical-align: middle; }
body #kunena .kfrontend table td, body #kunena .kfrontend table td * { font-size: 14px; line-height: 1.5; }
body #kunena .kfrontend table td a.hasTooltip, body #kunena .kfrontend table td h3 a { font-size: 16px; font-weight: 600; color: #1f2430; }
body #kunena .kfrontend table tr:hover td { background: #faf9ff; }

/* messaggi di un argomento: colonna dell'autore e testo */
body #kunena .kmsg, body #kunena .kmessage { font-size: 15px; }
body #kunena .kfrontend .card-header { font-size: 14px; }
body #kunena .kfrontend h2 { font-size: 22px; font-weight: 700; margin: 0; }
body #kunena .kfrontend h1 { font-size: 22px; font-weight: 700; margin: 0; }

/* elenchi di discussioni e messaggi (pagine interne): stesso tono */
body #kunena table { border-collapse: collapse; }
body #kunena .table > :not(caption) > * > * { border-color: #eef0f5; }
body #kunena .btn-outline-primary { color: #3a22c7; border-color: #cfc8f4; }
body #kunena .btn-outline-primary:hover { background: #3a22c7; color: #fff; }
body #kunena .btn-primary { background: #3a22c7; border-color: #3a22c7; }

/* ---- spazi: niente vuoti esagerati (il tema ne aggiunge molti, pensati per pagine di testo) ---- */
body #sp-main-body:has(#kunena) { padding-top: 96px; padding-bottom: 24px; }
body #kunena .breadcrumb { margin: 0 !important; }
body #kunena nav.pagination-container-links { padding: 0 0 10px !important; }
body #kunena .kfrontend.section, body #kunena .kfrontend { margin-top: 0 !important; margin-bottom: 14px !important; }
body #kunena .kfrontend.section > h1.card-header { margin: 0 0 8px; padding: 2px 0 2px 12px; border-left: 5px solid #3a22c7; font: 700 22px/1.2 'DM Sans', Inter, sans-serif; letter-spacing: 0; text-transform: none; color: #1f2430; }
body #kunena .kfrontend.section > h1.card-header a { color: #1f2430; }
body #kunena .kfrontend.section:has(a[href*="-safi"]) > h1.card-header { border-left-color: #2563eb; }
body #kunena .kfrontend.section:has(a[href*="/regole-"]) > h1.card-header { border-left-color: #94a3b8; }
body #kunena .kfrontend.section + .kfrontend.section, body #kunena .kfrontend.section ~ .kfrontend.section { margin-top: 18px !important; }
body #kunena tr.kcontenttablespacer, body #kunena #categoryactions table.table tr.kcontenttablespacer, body #kunena tfoot { display: none !important; }
body #kunena .alert { margin: 0 0 12px !important; }
body #kunena > br { display: none; }
body #kunena h1, body #kunena h2 { margin-top: 0; margin-bottom: 8px; }
body #kunena .d-flex.justify-content-center { padding: 10px 0; font-size: 13px; color: #9aa0ab; }

/* ---- barra dei pulsanti sopra l'elenco ---- */
body #kunena #categoryactions > div:first-child { margin: 0 0 12px; }
body #kunena #categoryactions ul.inline, body #kunena #categoryactions ul.inline li { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
body #kunena #categoryactions ul.inline .btn { margin: 0; }
body #kunena #categoryactions .kbutton-create { background: #3a22c7; border-color: #3a22c7; color: #fff; font-weight: 600; }
body #kunena #categoryactions .kbutton-create svg { stroke: #fff; fill: #fff; }

/* ---- elenco discussioni: righe compatte ---- */
body #kunena #categoryactions table.table { display: block; border: 1px solid #e5e7ee; border-radius: 16px; overflow: hidden; margin: 0 0 14px; background: #fff; }
body #kunena #categoryactions table.table > thead, body #kunena #categoryactions table.table > tbody { display: block; }
body #kunena #categoryactions table.table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px 190px; gap: 0 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid #eef0f5; }
body #kunena #categoryactions table.table tbody tr:last-child { border-bottom: 0; }
body #kunena #categoryactions table.table tbody tr:hover { background: #faf9ff; }
body #kunena #categoryactions table.table th, body #kunena #categoryactions table.table td { display: block; border: 0; padding: 0; background: none; }
body #kunena #categoryactions table.table thead tr { background: #fafbfd; padding-top: 9px; padding-bottom: 9px; }
body #kunena #categoryactions table.table thead th { font: 600 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
body #kunena #categoryactions table.table tbody th a svg { width: 20px; height: 20px; }
body #kunena #categoryactions table.table tr.category-stickymsg { background: #fffdf5 !important; }
body #kunena #categoryactions table.table a.topictitle { font: 600 16px/1.35 'DM Sans', Inter, sans-serif; color: #1f2430; }
body #kunena #categoryactions table.table tr.category-stickymsg a.topictitle::before { content: "Fissata"; font: 600 11px Inter, sans-serif; background: #fff8e6; color: #8a6400; border: 1px solid #f1dca0; border-radius: 999px; padding: 1px 9px; margin-right: 8px; vertical-align: 2px; }
body #kunena #categoryactions .knewchar { font-size: 0; margin-left: 8px; }
body #kunena #categoryactions .knewchar::after { content: "NUOVO"; font: 600 11px Inter, sans-serif; background: #e8f7ee; color: #16a34a; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
body #kunena #categoryactions .started, body #kunena #categoryactions .started * { font-size: 13px; color: #6b7280; }
body #kunena #categoryactions .started a { color: #3a22c7; }
body #kunena #categoryactions .ktopic-category, body #kunena #categoryactions .ktopic-category + br { display: none; }
body #kunena #categoryactions td .float-end, body #kunena #categoryactions td .float-start { display: none; }
body #kunena #categoryactions .replies, body #kunena #categoryactions .views { display: inline; font-size: 13px; color: #6b7280; margin-right: 10px; }
body #kunena #categoryactions .replies, body #kunena #categoryactions .views { display: inline-flex; gap: 4px; white-space: nowrap; }
body #kunena #categoryactions .repliesnum, body #kunena #categoryactions .viewsnum { float: none !important; display: inline; margin: 0; font-weight: 600; color: #1f2430; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(2) { display: inline-flex !important; gap: 12px; width: auto !important; vertical-align: top; }
body #kunena #categoryactions .lastpostlink > a:first-child, body #kunena #categoryactions .row > .col-md-12 br { display: none; }
body #kunena #categoryactions .lastpostlink, body #kunena #categoryactions .datepost { font-size: 13px; color: #6b7280; }
body #kunena #categoryactions .lastpostlink a { color: #1f2430; font-weight: 600; }
/* stesso aspetto per l'elenco nel profilo di un utente e negli elenchi di ricerca */
body #kunena #ktopicsform table.table { display: block; border: 1px solid #e5e7ee; border-radius: 16px; overflow: hidden; margin: 0 0 14px; background: #fff; }
body #kunena #ktopicsform table.table > thead, body #kunena #ktopicsform table.table > tbody { display: block; }
body #kunena #ktopicsform table.table tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px 190px; gap: 0 14px; align-items: center; padding: 11px 18px; border-bottom: 1px solid #eef0f5; }
body #kunena #ktopicsform table.table tbody tr:last-child { border-bottom: 0; }
body #kunena #ktopicsform table.table tbody tr:hover { background: #faf9ff; }
body #kunena #ktopicsform table.table th, body #kunena #ktopicsform table.table td { display: block; border: 0; padding: 0; background: none; }
body #kunena #ktopicsform table.table thead tr { background: #fafbfd; padding-top: 9px; padding-bottom: 9px; }
body #kunena #ktopicsform table.table thead th { font: 600 12px Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
body #kunena #ktopicsform table.table tbody th a svg { width: 20px; height: 20px; }
body #kunena #ktopicsform table.table tr.category-stickymsg { background: #fffdf5 !important; }
body #kunena #ktopicsform table.table a.topictitle { font: 600 16px/1.35 'DM Sans', Inter, sans-serif; color: #1f2430; }
body #kunena #ktopicsform table.table tr.category-stickymsg a.topictitle::before { content: "Fissata"; font: 600 11px Inter, sans-serif; background: #fff8e6; color: #8a6400; border: 1px solid #f1dca0; border-radius: 999px; padding: 1px 9px; margin-right: 8px; vertical-align: 2px; }
body #kunena #ktopicsform .knewchar { font-size: 0; margin-left: 8px; }
body #kunena #ktopicsform .knewchar::after { content: "NUOVO"; font: 600 11px Inter, sans-serif; background: #e8f7ee; color: #16a34a; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
body #kunena #ktopicsform .started, body #kunena #ktopicsform .started * { font-size: 13px; color: #6b7280; }
body #kunena #ktopicsform .started a { color: #3a22c7; }
body #kunena #ktopicsform .ktopic-category, body #kunena #ktopicsform .ktopic-category + br { display: none; }
body #kunena #ktopicsform td .float-end, body #kunena #ktopicsform td .float-start { display: none; }
body #kunena #ktopicsform .replies, body #kunena #ktopicsform .views { display: inline; font-size: 13px; color: #6b7280; margin-right: 10px; }
body #kunena #ktopicsform .replies, body #kunena #ktopicsform .views { display: inline-flex; gap: 4px; white-space: nowrap; }
body #kunena #ktopicsform .repliesnum, body #kunena #ktopicsform .viewsnum { float: none !important; display: inline; margin: 0; font-weight: 600; color: #1f2430; }
body #kunena #ktopicsform.domino-cron table.table tbody td:nth-of-type(2) { display: inline-flex !important; gap: 12px; width: auto !important; vertical-align: top; }
body #kunena #ktopicsform .lastpostlink > a:first-child, body #kunena #ktopicsform .row > .col-md-12 br { display: none; }
body #kunena #ktopicsform .lastpostlink, body #kunena #ktopicsform .datepost { font-size: 13px; color: #6b7280; }
body #kunena #ktopicsform .lastpostlink a { color: #1f2430; font-weight: 600; }

/* ---- «Novità e annunci»: cronologia delle versioni (la classe la mette forum.js) ---- */
body #kunena #categoryactions.domino-cron table.table { border: 0; background: none; border-radius: 0; overflow: visible; position: relative; padding-left: 34px; }
body #kunena #categoryactions.domino-cron table.table::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: #e5e7ee; }
body #kunena #categoryactions.domino-cron table.table > thead { display: none !important; }
body #kunena #categoryactions.domino-cron table.table tbody tr { display: block; position: relative; border: 1px solid #e5e7ee; border-radius: 16px; padding: 14px 20px; margin: 0 0 14px; background: #fff; }
body #kunena #categoryactions.domino-cron table.table tbody tr:hover { border-color: #cfc8f4; box-shadow: 0 6px 20px rgba(58, 34, 199, .09); background: #fff; }
body #kunena #categoryactions.domino-cron table.table tbody tr::before { content: ""; position: absolute; left: -31px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #3a22c7; }
body #kunena #categoryactions.domino-cron table.table tbody tr:has(.domino-ver--saf)::before { border-color: #2563eb; }
body #kunena #categoryactions.domino-cron table.table tbody tr.category-stickymsg { background: #fffdf5 !important; border-color: #f1dca0; }
body #kunena #categoryactions.domino-cron .started { display: none; }
body #kunena #categoryactions.domino-cron table.table tbody tr.category-stickymsg::before { border-color: #e0a800; }
body #kunena #categoryactions.domino-cron table.table tbody th { display: none !important; }
body #kunena #categoryactions.domino-cron table.table tbody td { display: block; padding: 0; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(2) { display: inline-block; margin: 8px 18px 0 0; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(3) { display: inline-block; margin-top: 8px; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(3) .row { display: inline; margin: 0; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(3) .col-md-12 { display: inline; padding: 0; }
body #kunena #categoryactions.domino-cron table.table tbody td:nth-of-type(3) { margin-left: 0; display: inline-block !important; width: auto !important; vertical-align: top; }
body #kunena #categoryactions.domino-cron a.topictitle { font-size: 18px; font-weight: 700; }
body #kunena .domino-ver { display: inline-block; font: 600 12px Inter, sans-serif; border-radius: 999px; padding: 2px 10px; margin-right: 8px; vertical-align: 2px; }
body #kunena .domino-ver--dom { background: #efecff; color: #3a22c7; }
body #kunena .domino-ver--saf { background: #e5eeff; color: #2563eb; }
body #kunena .domino-estratto { margin: 4px 0 0; color: #6b7280; font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- una discussione: titolo, messaggi a colonna unica (autore in una barra sopra il testo) ---- */
body #kunena .kunena-topic-item > h1 { font: 700 28px/1.25 'DM Sans', Inter, sans-serif; margin: 0 0 12px; }
body #kunena .kunena-topic-item > h1 svg { display: inline-block; width: 22px; height: 22px; margin-right: 6px; vertical-align: -2px; color: #6b7280; }
body #kunena .pagination .page-item.disabled { display: none; }
body #kunena .pagination:not(:has(.page-item:not(.disabled):not(.active))) { display: none; }
body #kunena .kunena-topic-item > div:not(.topic-item-messages) { margin-bottom: 10px; }
/* la ricerca sta sulla stessa riga dei pulsanti */
body #kunena h2.float-end { margin: 0 0 -44px 12px; position: relative; z-index: 2; }
body #kunena .kunena-topic-item > h2.float-end { float: none; margin: 0 0 10px; max-width: 320px; }
body #kunena #topic-actions-toolbar { margin: 0 0 10px !important; }
body #kunena .topic-item-messages { display: block; max-width: 860px; clear: both; }
body #kunena .row.message { position: relative; display: block; margin: 0 0 14px; border: 1px solid #e5e7ee; border-radius: 16px; overflow: hidden; background: #fff; }
body #kunena .row.message > * { width: auto; max-width: none; margin: 0; padding: 0; flex: none; box-shadow: none !important; border-radius: 0 !important; }
body #kunena .row.message > .col-md-2 { display: block !important; background: #fafbfd; border-bottom: 1px solid #eef0f5; padding: 10px 20px; }
body #kunena .row.message > .col-md-2 .profile-expand { display: none; }
body #kunena .profilebox { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; text-align: left; }
body #kunena .profilebox li { display: block; padding: 0; margin: 0; }
body #kunena .profilebox li:has(a.badge), body #kunena .profilebox li:has(img), body #kunena .profilebox li:has(.topic-starter) > a { display: none; }
body #kunena .profilebox .topic-starter { display: inline-block !important; font: 600 11px Inter, sans-serif; background: #eef0f5; color: #6b7280; border-radius: 999px; padding: 2px 9px; }
body #kunena .profilebox li:nth-last-child(2):not(:has(strong)):not(:has(.topic-starter)):not(.domino-avli) { font: 600 11px Inter, sans-serif; background: #efecff; color: #3a22c7; border-radius: 999px; padding: 2px 10px; }
body #kunena .profilebox strong a { font: 600 15px Inter, sans-serif; color: #1f2430 !important; }
body #kunena .domino-av { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; font: 600 12px Inter, sans-serif; }
body #kunena .message-published { display: grid; grid-template-columns: 1fr auto; }
body #kunena .message-published > small.float-end { position: absolute; top: 14px; right: 20px; float: none; }
body #kunena .message-published > .p-4 { grid-column: 1 / -1; padding: 14px 20px 6px !important; margin: 0 !important; }
body #kunena .mykmsg-header { display: none; }
body #kunena .kmsg { margin: 0 !important; line-height: 1.65; }
body #kunena .kmsg ul, body #kunena .kmsg ol { margin: 6px 0 10px; padding-left: 22px; }
body #kunena .message-published > .report { grid-column: 2; grid-row: 3; padding: 0 20px 14px !important; margin: 0 !important; }
body #kunena .message-published > .report .btn { float: none !important; }
body #kunena .message-published > .btn-toolbar { grid-column: 1; grid-row: 3; padding: 0 20px 14px !important; margin: 0 !important; gap: 6px; }
body #kunena .message-published .btn { padding: 5px 12px; font-size: 13px; border-radius: 10px; }

@media (max-width: 720px) {
  body #kunena h2.float-end { float: none; margin: 0 0 10px; }
  body #kunena #categoryactions.domino-cron #klastpostphone { display: none !important; }
  body #kunena .kunena-topic-item > h1 { font-size: 22px; }
  body #kunena #categoryactions table.table tr, body #kunena #ktopicsform table.table tr { grid-template-columns: 28px minmax(0, 1fr); }
  body #kunena #categoryactions table.table td:nth-of-type(2), body #kunena #categoryactions table.table td:nth-of-type(3) { grid-column: 2; }
  body #kunena::before { font-size: 30px; }
  body #kunena .kfrontend.section tr.category { grid-template-columns: 44px 1fr; padding: 16px; gap: 14px; }
  body #kunena .kfrontend.section tr.category > td:last-child { grid-column: 1 / -1; }
  body #kunena tr.category #kcat-icon a { width: 44px; height: 44px; }
}
/* domino-forum: fine */

/* suggerimenti (tooltip) del tema: stretti e leggibili, mai a tutta altezza */
body .tooltip .tooltip-inner { max-width: 320px; text-align: left; font-size: 13px; line-height: 1.4; }

/* ---- ritocchi alla pagina di una discussione ---- */
/* pulsanti: icona accanto al testo (il tema la metteva sopra) */
body #kunena .btn svg { display: inline-block !important; width: 16px; height: 16px; margin: 0 6px 0 0; vertical-align: -3px; }
body #kunena .btn-group .dropdown-toggle svg { margin: 0; }
body #kunena .message-published > small.float-end svg { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
/* il promemoria della categoria compare nell'elenco, non sopra ogni discussione */
body #kunena:has(.kunena-topic-item) #category-headerdesc { display: none; }
/* testata della discussione: titolo, azioni e ricerca sulla stessa riga, larga quanto i messaggi */
body #kunena .kunena-topic-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; max-width: 900px; }
body #kunena .kunena-topic-item > h1 { flex: 0 0 100%; }
body #kunena .kunena-topic-item > .clearfix { display: none; }
body #kunena .kunena-topic-item > .topic-item-messages { flex: 0 0 100%; max-width: 100%; }
body #kunena .kunena-topic-item > h2.float-end { margin: 0 0 10px auto; max-width: none; }
body #kunena .kunena-topic-item > div:not(.topic-item-messages):not(.float-start) { margin-bottom: 10px; }
body #kunena .kunena-topic-item > .float-start { margin: 0 0 10px; }
body #kunena #topic-actions-toolbar .btn { padding: 6px 12px; }
/* nella pagina di una categoria basta il promemoria sotto il titolo (la descrizione compare già nella home) */
body #kunena:has(#categoryactions) .kfrontend.section thead .bg-faded { display: none; }
body #kunena:has(#categoryactions) .kfrontend.section { margin-bottom: 8px !important; }
body #kunena:has(#categoryactions) .kfrontend.section > h1.card-header { margin-bottom: 4px; }

/* ---- menu del sito sempre fermo nelle pagine del forum (il tema lo faceva sparire e rientrare dall'alto allo scorrimento) ---- */
body:has(#kunena) #sp-header, body:has(#kunena) #sp-header.header-sticky { position: fixed !important; top: 0; left: 0; width: 100%; z-index: 9999; animation: none !important; transform: none !important; }

/* ---- scrivere un messaggio (nuovo argomento, risposta, modifica) ---- */
body #kunena > h1, body #kunena #postform { max-width: 900px; }
body #kunena #postform > .shadow-lg { box-shadow: none !important; border: 1px solid #e5e7ee; border-radius: 16px !important; padding: 16px 20px !important; margin: 0 0 14px !important; background: #fff; }
body #kunena #postform .form-group.row { margin: 0 0 12px; }
body #kunena #postform label.col-form-label { font-weight: 600; font-size: 14px; color: #4b5563; }
body #kunena #postform .form-control { border-radius: 10px; border-color: #e5e7ee; font-size: 15px; }
/* il messaggio privato non serve: via la scheda «Message / Private message» */
body #kunena #postform #myTab, body #kunena #postform #message_private-tab { display: none !important; }
body #kunena #postform #myTabContent { margin: 0; }
body #kunena #postform .control-group, body #kunena #postform .controls:empty { margin: 0; }
/* titoli di sezione (Allegati, Sottoscrivi) piccoli, come etichette */
body #kunena #postform > h2 { font: 700 12px Inter, sans-serif !important; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin: 18px 0 8px !important; }
/* allegati: avvisi sobri, area di rilascio compatta */
body #kunena #kattach_form .badge.bg-info { display: block; background: none !important; color: #6b7280 !important; font: 400 13px Inter, sans-serif; text-align: left; padding: 0; white-space: normal; }
body #kunena #kattach_form br { display: none; }
body #kunena #kattach_form .fileinput-button { margin: 10px 0 8px; }
body #kunena #kpost-attachments { margin: 0 !important; padding: 0 !important; }
body #kunena #dropzone .dropzone, body #kunena #dropzone .default.message { min-height: 0; padding: 14px; text-align: center; background: #fafbfd; border: 1px dashed #d5d8e0; border-radius: 12px; font-size: 13px; color: #6b7280; }
body #kunena #progress { margin: 6px 0; }
/* iscrizione alle risposte */
body #kunena #kpost-subscribe { margin: 0 !important; }
body #kunena #kpost-subscribe .form-check { margin: 0; }
/* pulsanti: a sinistra; «Invia» pieno */
body #kunena #postform .form-group.row > .col-md-10.center { flex: 0 0 100%; max-width: 100%; text-align: left; padding: 0; }
body #kunena #form_submit_button { background: #3a22c7; border-color: #3a22c7; color: #fff; font-weight: 600; padding: 8px 22px; }
body #kunena #form_submit_button svg { stroke: #fff; fill: #fff; }
body #kunena #form_submit_button:disabled { opacity: .45; }
body #kunena #postform .btn-md { margin-right: 8px; }

/* ---- storico dell'argomento sotto la risposta ---- */
body #kunena #history { max-width: 900px; margin-top: 4px; }
body #kunena #history > p { display: none; }
body #kunena .kunena-topic-item ~ h3, body #kunena #postform ~ h3 { font: 700 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin: 26px 0 10px; max-width: 900px; }
body #kunena #postform ~ .float-end { float: none; display: none; }
body #kunena #history > .row { position: relative; display: block; margin: 0 0 12px; border: 1px solid #e5e7ee; border-radius: 14px; overflow: hidden; background: #fff; }
body #kunena #history > .row > * { width: auto; max-width: none; margin: 0; padding: 0; flex: none; }
body #kunena #history > .row > .col-md-2 { background: #fafbfd; border-bottom: 1px solid #eef0f5; padding: 8px 16px; text-align: left; }
body #kunena #history > .row > .col-md-10 { padding: 12px 16px; }
body #kunena #history .profilebox li > a:has(> span.rounded) { display: none; }
body #kunena #history small.float-end { position: absolute; top: 10px; right: 16px; float: none; font-size: 12px; }
body #kunena #history small.float-end svg { display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
body #kunena #history .khistory { border: 0; background: none; padding: 0; margin: 0; }
body #kunena #history .khistory::before, body #kunena #history .khistory::after { display: none !important; content: none !important; }
body #kunena #history .kmessage { padding: 0; margin: 0; border: 0; background: none; }
body #kunena #dropzone .dropzone { border: 0; background: none; padding: 0; min-height: 0; margin: 0; }
body #kunena #postform .control-group { padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
body #kunena #postform > .shadow-lg > .control-group, body #kunena #postform #kbbcode-preview:empty { display: none; }
body #kunena #postform .cke, body #kunena #postform .cke_chrome { margin-bottom: 0; }
body #kunena #history ul { padding-left: 22px; margin: 6px 0 10px; }
body #kunena #history .row .col-md-10 .kmessage > .kmsg { margin: 0 !important; }

/* ---- foto e logo del corpo accanto al nome degli autori ---- */
body #kunena .domino-av--foto { object-fit: cover; border-radius: 50%; width: 34px; height: 34px; display: block; background: #fff; }
body #kunena .profilebox li:has(strong) { display: flex; align-items: center; gap: 8px; }
body #kunena .domino-corpo { height: 22px; width: auto; max-width: 30px; object-fit: contain; display: block; }

/* ---- profilo di un utente: scheda con foto, nome, corpo (logo e scritta) e numeri principali (come l'area personale del sito) ---- */
body #kunena.domino-con-hero h1.float-start, body #kunena.domino-con-hero h2.float-end,
body #kunena.domino-con-hero .row:has(> [class*="col-md-3"] .list-group) { display: none !important; }
body #kunena .domino-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 26px; align-items: center; max-width: 980px;
  margin: 4px 0 18px; padding: 26px 30px; border-radius: 22px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #5b3df0 0%, rgba(91,61,240,0) 55%), linear-gradient(135deg, #140c3f 0%, #22137a 45%, #3a22c7 100%);
  box-shadow: 0 22px 50px rgba(34, 19, 122, .28); }
/* foto rotonda: l'anello è un riempimento morbido (non un ritaglio con ombra), così il contorno non si vede a scalini */
body #kunena .domino-hero__foto { width: 108px; height: 108px; box-sizing: border-box; padding: 6px; border-radius: 50%; background: rgba(255,255,255,.16); transform: translateZ(0); }
body #kunena .domino-hero__foto img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; background: #fff; image-rendering: auto; }
body #kunena .domino-hero__foto span { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 800 32px Inter, sans-serif; color: #fff; }
body #kunena .domino-hero__chi { min-width: 0; }
body #kunena .domino-hero__sopra { margin: 0 0 4px; font: 700 12px Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
body #kunena .domino-hero__nome { margin: 0 0 10px !important; font: 700 30px/1.15 'DM Sans', Inter, sans-serif !important; color: #fff !important; letter-spacing: -.01em !important; overflow-wrap: anywhere; }
body #kunena .domino-forza { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--c, #3a22c7); font: 700 14px Inter, sans-serif; line-height: 1.3; }
body #kunena .domino-forza:has(img) { padding-left: 6px; }
body #kunena .domino-forza img { height: 26px; width: auto; max-width: 44px; object-fit: contain; display: block; }
body #kunena .domino-forza--ps { --c: #1d4ed8; }
body #kunena .domino-forza--cc { --c: #b91c1c; }
body #kunena .domino-forza--gdf { --c: #15803d; }
body #kunena .domino-forza--pp { --c: #1e3a8a; }
body #kunena .domino-hero__stat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(130px, auto)); gap: 10px; }
body #kunena .domino-hero__stat li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 9px 14px; }
body #kunena .domino-hero__stat b { display: block; font: 700 15px/1.25 Inter, sans-serif; color: #fff; }
body #kunena .domino-hero__stat span { font: 500 12px Inter, sans-serif; color: rgba(255,255,255,.72); }
body #kunena.domino-con-hero .tabs { max-width: 980px; }
@media (max-width: 820px) { body #kunena .domino-hero { grid-template-columns: auto 1fr; padding: 20px; } body #kunena .domino-hero__stat { grid-column: 1 / -1; } body #kunena .domino-hero__foto { width: 84px; height: 84px; padding: 5px; } body #kunena .domino-hero__foto img, body #kunena .domino-hero__foto span { width: 74px; height: 74px; } body #kunena .domino-hero__nome { font-size: 24px !important; } }
body #kunena .profilebox li.domino-avli { display: block !important; }

/* promemoria delle regole: pulsante «Nascondi» (compare solo la prima volta) */
body #kunena .kfrontend.section:has(a[href*="/regole-"]) thead .bg-faded { position: relative; padding-right: 110px !important; }
body #kunena .domino-regole__nascondi { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 4px 12px; border: 1px solid #e0c36a; border-radius: 8px;
  background: rgba(255,255,255,.6); color: #6b5200; font: 600 13px Inter, sans-serif; cursor: pointer; }
body #kunena .domino-regole__nascondi:hover { background: #fff; }
