/* CHR Editoriale — stili degli articoli del bot. Caricato solo sulle pagine che li contengono (wp_enqueue_style). Palette dal logo: navy #28467d, azzurro #008dd2. */
.chred-art{font-family:inherit;color:#1f2a36;line-height:1.7;max-width:100%;overflow-wrap:break-word}
.chred-art *{box-sizing:border-box;font-family:inherit}
.chred-art h2{color:#28467d;font-size:clamp(24px,2.6vw,32px);line-height:1.2;margin:2.4em 0 .6em;padding-bottom:.35em;border-bottom:3px solid #008dd2;font-weight:700}
.chred-art h3{color:#28467d;font-size:clamp(19px,2vw,23px);line-height:1.3;margin:1.8em 0 .5em;font-weight:700}
.chred-art p{margin:0 0 1.1em}
.chred-art a{color:#008dd2;text-decoration:underline;text-underline-offset:3px;font-weight:600}
.chred-art ul,.chred-art ol{margin:0 0 1.2em;padding-left:1.4em}
.chred-art li{margin:0 0 .45em}
.chred-art strong{color:#28467d}
.chred-box{border-left:6px solid #008dd2;background:#eaf4fb;padding:18px 22px;margin:1.6em 0;border-radius:0 12px 12px 0}
.chred-box p:last-child,.chred-box ul:last-child,.chred-box ol:last-child{margin-bottom:0}
.chred-box h3,.chred-box h4{margin:0 0 .5em;color:#28467d;font-size:1.05em}
.chred-box--warn{border-left-color:#e08a1e;background:#fdf4e7}
.chred-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:1.2em 0 1.6em;border-radius:12px;border:1px solid #d5e2ee}
.chred-art table{border-collapse:collapse;width:100%;min-width:560px;font-size:.95em;margin:0}
.chred-art th{background:#28467d;color:#fff;text-align:left;padding:12px 14px;font-weight:600;vertical-align:top;white-space:nowrap}
.chred-art td{padding:11px 14px;border-top:1px solid #e3ecf4;vertical-align:top}
.chred-art tr:nth-child(even) td{background:#f5f9fc}
.chred-art ol.chred-steps,.chred-art ol.chred-steps li{list-style:none!important}
.chred-art ol.chred-steps{counter-reset:s;padding:0!important;margin:0 0 1.4em!important}
.chred-art ol.chred-steps li{counter-increment:s;position:relative;padding:0 0 0 54px!important;margin:0 0 1em!important;min-height:40px}
.chred-art ol.chred-steps li::before{content:counter(s);position:absolute;left:0;top:0;width:38px;height:38px;border-radius:50%;background:#008dd2;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center}
.chred-art details{border:1px solid #d5e2ee;border-radius:12px;margin:0 0 12px;background:#fff}
.chred-art summary{cursor:pointer;padding:16px 20px;font-weight:700;color:#28467d;list-style:none;position:relative;padding-right:48px}
.chred-art summary::-webkit-details-marker{display:none}
.chred-art summary::after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:50%;background:#008dd2;color:#fff;text-align:center;line-height:26px;font-weight:700}
.chred-art details[open] summary::after{content:"–"}
.chred-art details > div{padding:0 20px 18px}
.chred-cta{background:#28467d;color:#fff;border-radius:14px;padding:26px 28px;margin:2.2em 0 0;display:flex;flex-wrap:wrap;gap:16px;align-items:center;justify-content:space-between}
.chred-cta p{margin:0;flex:1 1 320px;color:#fff}
.chred-cta p strong{color:#8fd0f5}
.chred-cta a{background:#008dd2;color:#fff!important;text-decoration:none!important;padding:14px 24px;border-radius:10px;font-weight:700;white-space:nowrap}
.chred-cta--soft{background:#eaf4fb;border:2px solid #008dd2;margin:1.6em 0}
.chred-cta--soft p{color:#1f2a36}
.chred-cta--soft p strong{color:#28467d}
.chred-cta--soft a{background:#28467d}
@media (max-width:640px){
  .chred-box,.chred-cta{padding:16px 18px}
  .chred-art h2{margin-top:1.8em;font-size:23px}
  .chred-art h3{font-size:19px}
  /* su telefono il contenuto non deve toccare i bordi; le tabelle restano a tutta larghezza */
  .chred-art{padding-left:16px;padding-right:16px}
  .chred-art .chred-tw{margin-left:-16px;margin-right:-16px;border-left:0;border-right:0;border-radius:0}
}

/* Riquadri dei calcolatori a meta' articolo e riga della fonte in chiusura:
   le regole mancavano, i due blocchi uscivano senza stile. */
.chred-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:1.4em 0}
.chred-tool{display:block;border:1px solid #d5e2ee;border-radius:12px;padding:16px 18px;background:#fff;color:#1f2a36!important;transition:border-color .15s,transform .15s,box-shadow .15s}
.chred-tool:hover{border-color:#008dd2;transform:translateY(-2px);box-shadow:0 10px 24px -14px rgba(40,70,125,.55)}
.chred-tool strong{display:block;color:#28467d;margin-bottom:4px}
.chred-tool span{display:block;font-size:.92em;color:#4a5866;font-weight:400}
.chred-src{font-size:.92em;color:#5a6a78;margin:2em 0 0;padding-top:1em;border-top:1px solid #e3ecf4}
.chred-src a{font-weight:600}
@media (max-width:640px){.chred-tools{grid-template-columns:1fr;gap:10px}}

/* Avvertenza legale in fondo all'articolo */
.chred-note-legal{margin:2.2em 0 0;padding:16px 20px;background:#f5f7fa;border:1px solid #e0e6ee;border-radius:12px;font-size:.86em;line-height:1.6;color:#5a6a78}
.chred-note-legal p{margin:0 0 .7em}
.chred-note-legal p:last-child{margin:0}
.chred-note-legal strong{color:#28467d;font-size:1.05em}

/* Il tema puo' ridefinire questi elementi: qui la specificita' e' piu' alta
   e i valori sono espliciti, cosi' lo stile dell'articolo vince comunque. */
body .chred-art strong,
body .chred-art b{font-weight:700;color:#28467d}
body .chred-art .chred-num strong,
body .chred-art .chred-num b{color:#8fd0f5}
body .chred-art .chred-cta p strong{color:#8fd0f5}
body .chred-art .chred-cta--soft p strong{color:#28467d}
body .chred-art .chred-tool strong{color:#28467d}
body .chred-art em,body .chred-art i{font-style:italic}
body .chred-art h2,body .chred-art h3{font-weight:700}
body .chred-art a{font-weight:600;text-decoration:underline}
body .chred-art .chred-cta a,body .chred-art .chred-tool{text-decoration:none}
body .chred-art ul{list-style:disc}
body .chred-art ol{list-style:decimal}
body .chred-art ol.chred-steps{list-style:none}
