/* Commenti sotto l'articolo */
.idh-cm { margin: 48px 0 8px; padding-top: 32px; border-top: 1px solid var(--igdp-line, #E3DBCF); font-family: var(--igdp-font-sans), system-ui, sans-serif; color: var(--igdp-ink, #0F1D2D); }
.idh-cm-title { margin: 0 0 16px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.idh-cm-count { font-weight: 600; opacity: .6; }
.idh-cm-empty { margin: 0 0 28px; padding: 18px 20px; border-radius: 12px; background: var(--igdp-sand, #EFE8DE); font-size: 16px; line-height: 1.5; }
.idh-cm-list { list-style: none; margin: 0 0 32px; padding: 0; }
.idh-cm-list[hidden], .idh-cm-empty[hidden] { display: none; }
.idh-cm-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--igdp-line, #E3DBCF); }
.idh-cm-item:first-child { padding-top: 0; }
.idh-cm-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--igdp-ink, #0F1D2D); color: #fff; font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.idh-cm-main { min-width: 0; flex: 1; }
.idh-cm-meta { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 14px; }
.idh-cm-meta time { color: var(--igdp-muted, #6B665E); font-size: 13px; }
.idh-cm-text { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.idh-cm-text p { margin: 0 0 .6em; }
.idh-cm-text p:last-child { margin-bottom: 0; }
.idh-cm-item.idh-cm-new { animation: idh-cm-in .5s ease both; }
@keyframes idh-cm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.idh-cm-form { padding: 24px; border: 1px solid var(--igdp-line, #E3DBCF); border-radius: 16px; background: #fff; }
.idh-cm-form-title { margin: 0 0 18px; font-size: 20px; font-weight: 800; }
.idh-cm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.idh-cm-field { margin: 0 0 16px; }
.idh-cm-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.idh-cm-hint { font-weight: 500; opacity: .6; }
.idh-cm-field input, .idh-cm-field textarea { display: block; width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--igdp-ink, #0F1D2D); border-radius: 12px; background: #fff; color: var(--igdp-ink, #0F1D2D); font: inherit; font-size: 16px; line-height: 1.4; }
.idh-cm-field input { height: 46px; border-radius: 999px; padding: 0 18px; }
.idh-cm-field textarea { min-height: 130px; resize: vertical; }
.idh-cm-field input:focus, .idh-cm-field textarea:focus { outline: 2px solid var(--igdp-accent, #C8421B); outline-offset: 2px; }
.idh-cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.idh-cm-check { margin: 0 0 16px; font-size: 14px; line-height: 1.45; }
.idh-cm-check label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.idh-cm-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--igdp-ink, #0F1D2D); }
.idh-cm-check a { color: inherit; text-decoration: underline; }
.idh-cm-ts { min-height: 65px; margin: 0 0 16px; }
.idh-cm-actions { margin: 0; }
.idh-cm-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--igdp-ink, #0F1D2D); color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
.idh-cm-submit:hover { background: var(--igdp-accent, #C8421B); }
.idh-cm-submit[disabled] { opacity: .55; cursor: progress; }
.idh-cm-msg { margin: 14px 0 0; font-size: 15px; line-height: 1.45; font-weight: 600; }
.idh-cm-msg:empty { display: none; }
.idh-cm-msg.idh-cm-ok { color: #2E7D32; }
.idh-cm-msg.idh-cm-err { color: #B3261E; }
@media (max-width: 767px) { .idh-cm-row { grid-template-columns: 1fr; } .idh-cm-form { padding: 18px; } .idh-cm-title { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .idh-cm-item.idh-cm-new { animation: none; } }
