/* TiAssisto Solo Testi v2.0.0 — responsive e isolato al contenuto generato. */
/* TiAssisto Riscrittura Rotte 1.3.1 — guida economica. Scoped: nessuna modifica ai CSS globali.
   Palette, densità, leggibilità e callout coerenti con le nuove guide TiAssisto e /costi/abruzzo/. */
.tia-rr-panel,
.tia-category-portal .tia-cost-guide .tia-rr-guide,
.tia-rr-guide {
  --tia-rr-ink:var(--ink,#0f1c46);--tia-rr-muted:var(--muted,#5f6e91);--tia-rr-accent:var(--blue,#2563eb);
  --tia-rr-line:var(--line,#d9e4f5);--tia-rr-soft:#f8fbff;--tia-rr-paper:var(--card,#fff);
  color:var(--tia-rr-ink);font-size:clamp(16px,1.1vw,18px);line-height:1.78;
  font-family:inherit;overflow-wrap:break-word;word-break:normal;
}
.tia-rr-panel{max-width:1180px;margin:38px auto 60px;padding:clamp(20px,3vw,42px);
  background:#fff;border:1px solid #d9e4f5;border-radius:24px;
  box-shadow:0 12px 40px rgba(15,28,70,.055);box-sizing:border-box;}
.tia-rr-guide{max-width:1050px;margin-inline:auto;padding:0 2px;box-sizing:border-box}
.tia-rr-guide *{box-sizing:border-box}
.tia-category-portal .tia-cost-guide .tia-rr-guide{max-width:100%;}
.tia-rr-guide__eyebrow{display:inline-block;font-weight:800;font-size:12px;letter-spacing:.12em;
  line-height:1.45;color:#2563eb;text-transform:uppercase;margin:0 0 15px}
.tia-rr-guide__intro{background:linear-gradient(130deg,#eef4ff,#f8fbff);border:1px solid #d9e4f5;
  border-left:5px solid var(--tia-rr-accent);border-radius:0 17px 17px 0;
  padding:clamp(20px,2.7vw,32px);margin:4px 0 36px}
.tia-category-portal .tia-cost-guide .tia-rr-guide__intro p,
.tia-rr-guide__intro p{font-size:clamp(17px,1.45vw,20px);line-height:1.72;color:#33456e;
  max-width:78ch;margin:0 0 1em}
.tia-rr-guide__intro p:last-child{margin-bottom:0}
.tia-rr-guide__section{margin:0 0 34px}
.tia-category-portal .tia-cost-guide .tia-rr-guide h2,
.tia-rr-guide h2{font-size:clamp(23px,2.2vw,32px);line-height:1.26;font-weight:800;
  letter-spacing:-.025em;color:var(--tia-rr-ink);margin:35px 0 16px;
  padding:25px 0 0;border:0;border-top:1px solid var(--tia-rr-line)}
.tia-rr-guide .tia-rr-guide__section:first-of-type h2{border-top:0}
.tia-category-portal .tia-cost-guide .tia-rr-guide h3,
.tia-rr-guide h3{font-size:clamp(18px,1.6vw,21px);line-height:1.38;
  font-weight:780;color:#0f1c46;margin:0 0 11px;padding:0;border:0}
.tia-category-portal .tia-cost-guide .tia-rr-guide p,
.tia-rr-guide p{font-size:clamp(16px,1.05vw,18px);line-height:1.78;color:var(--tia-rr-muted);
  margin:0 0 17px;max-width:80ch}
.tia-rr-guide a{color:#1d4ed8;text-underline-offset:4px;text-decoration-thickness:1px;font-weight:700}
.tia-rr-guide a:hover{color:#1e40af}
.tia-rr-guide a:focus-visible{outline:3px solid #2563eb;outline-offset:4px;border-radius:3px}
/* Tabella di confronto simile ad Abruzzo, ma più respirata e scrollabile */
.tia-rr-guide__table-wrap{margin:21px 0 30px;max-width:100%;overflow-x:auto;
  -webkit-overflow-scrolling:touch;border-radius:16px;border:1px solid #d9e4f5;
  box-shadow:0 7px 22px rgba(15,28,70,.05)}
.tia-rr-guide__table-wrap:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.tia-rr-guide table{display:table;width:100%;min-width:660px;border:0;margin:0;
  border-collapse:separate;border-spacing:0;font-size:clamp(14px,.95vw,16px);
  line-height:1.55;background:#fff}
.tia-rr-guide table :is(th,td){text-align:left;vertical-align:top;padding:16px 18px;
  border-right:1px solid #e5edf8;border-bottom:1px solid #e5edf8;
  overflow-wrap:normal;word-break:normal;min-width:0;color:#33456e}
.tia-rr-guide table th{background:#eef4ff;font-weight:800;color:#0f1c46}
.tia-rr-guide table th:first-child{min-width:164px}
.tia-rr-guide table tr:nth-child(even) td{background:#f8fbff}
.tia-rr-guide table tr:last-child td{border-bottom:0}
.tia-rr-guide table tr :is(th,td):last-child{border-right:0}
/* Province/città: link verificati nel catalogo, presentati come card */
.tia-rr-guide__places{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:23px 0 30px}
.tia-rr-guide__places a{display:flex;align-items:center;justify-content:space-between;gap:10px;
  text-decoration:none;min-height:59px;padding:15px 17px;border:1px solid #d9e4f5;
  background:#f8fbff;border-radius:14px;color:#0f1c46;font-size:16px;line-height:1.35;
  box-shadow:0 3px 12px rgba(15,28,70,.035);transition:background .2s,border-color .2s,transform .2s}
.tia-rr-guide__places a::after{content:'↗';color:#2563eb;font-size:19px;font-weight:800}
.tia-rr-guide__places a:hover{background:#edf3ff;border-color:#a7bde9;transform:translateY(-2px)}
/* La checklist mette le domande della prima telefonata subito in evidenza */
.tia-rr-guide__checklist{background:#f8fbff;border:1px solid #d9e4f5;border-radius:17px;
  padding:clamp(19px,2.5vw,30px);margin:20px 0 28px}
.tia-rr-guide__checklist h3{font-size:clamp(19px,1.7vw,23px);margin:0 0 14px;color:#0f1c46}
.tia-rr-guide__checklist ol{list-style:decimal outside;margin:0;padding:0 0 0 25px;
  background:transparent;border:0;display:block}
.tia-rr-guide__checklist li{margin:12px 0 0;padding:0 0 0 5px;line-height:1.65;color:#33456e}
.tia-rr-guide__checklist li::marker{color:#2563eb;font-weight:800}
/* Quattro fattori rilevanti, in piccoli pannelli chiari anziché un testo continuo */
.tia-rr-guide__factors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.tia-rr-guide__factor{background:#fff;border:1px solid #d9e4f5;border-radius:17px;padding:21px 22px;
  box-shadow:0 7px 20px rgba(15,28,70,.035)}
.tia-rr-guide__factor h3{font-size:19px;color:#0f1c46;margin:0 0 10px}
.tia-rr-guide__factor p{font-size:16px;line-height:1.7;margin:0}
/* Sostegno: risposta umana senza promettere quote o agevolazioni automatiche */
.tia-rr-guide__support{background:#f8fbff;padding:clamp(20px,2.7vw,30px);border-radius:17px;
  border-left:5px solid #2563eb;margin-top:36px}
.tia-category-portal .tia-cost-guide .tia-rr-guide__support h2,
.tia-rr-guide__support h2{margin:0 0 15px;padding:0;border:0;font-size:clamp(22px,2vw,29px)}
.tia-rr-guide__support a{display:inline-flex;margin-top:4px}
/* FAQ come le nuove guide, non un muro di paragrafi */
.tia-rr-guide__faqs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0 28px}
.tia-rr-guide__faq{border:1px solid #d9e4f5;border-radius:16px;padding:21px 23px;background:#fff}
.tia-rr-guide__faq h3{font-size:18px;line-height:1.45;color:#0f1c46;margin:0 0 12px}
.tia-rr-guide__faq p{font-size:16px;line-height:1.72;margin:0}
/* CTA coerente con i pannelli Abruzzo e i colori della guida v1.4 */
.tia-rr-guide__cta{background:#0c1738;
  border:1px solid #0c1738;border-radius:21px;box-shadow:0 14px 36px rgba(15,28,70,.14);
  padding:clamp(23px,3.1vw,35px);margin:38px 0 12px}
.tia-category-portal .tia-cost-guide .tia-rr-guide__cta h2,
.tia-rr-guide__cta h2{color:#fff;font-size:clamp(24px,2.1vw,31px);margin:0 0 13px;padding:0;border:0}
.tia-category-portal .tia-cost-guide .tia-rr-guide__cta p,
.tia-rr-guide__cta p{color:#e7efff;max-width:77ch;margin:0 0 18px}
.tia-rr-guide__cta .tia-rr-guide__button{display:inline-flex;justify-content:center;align-items:center;
  text-align:center;min-height:49px;padding:13px 21px;background:#fff;border:1px solid #fff;
  border-radius:11px;text-decoration:none;font-size:16px;font-weight:800;line-height:1.3;
  color:#0f1c46;max-width:100%}
.tia-rr-guide__cta .tia-rr-guide__button:hover{background:#edf3ff;color:#0f1c46}
/* Compatibilità con bozze vecchio formato senza intaccare le guide strutturate */
.tia-rr-panel .tia-rr-links{background:#eef4ff;padding:23px;border-radius:14px;margin:28px 0}
.tia-rr-panel .tia-rr-links a{display:inline-block;margin:6px 10px 4px 0;color:#1d4ed8}
/* Anteprima fuori da WordPress */
.tia-rr-preview-wrap{max-width:1120px;margin:20px auto 60px;padding:clamp(15px,2.5vw,32px);
  background:#fff;border:1px solid #d9e4f5;border-radius:24px;box-shadow:0 12px 35px rgba(15,28,70,.05)}
@media(max-width:760px){
 .tia-rr-panel{margin:22px 12px 40px;padding:20px 16px;border-radius:18px}
 .tia-rr-guide{font-size:16px}
 .tia-rr-guide__factors,.tia-rr-guide__faqs{grid-template-columns:1fr}
 .tia-rr-guide__intro{padding:20px 18px;margin-bottom:25px}
 .tia-rr-guide__section{margin-bottom:25px}
 .tia-rr-guide__places{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tia-rr-guide__places a{padding:13px 12px;min-height:52px;font-size:15px}
 .tia-rr-guide__table-wrap{margin:16px 0 24px}
 .tia-rr-guide table{min-width:570px}
 .tia-rr-guide table :is(th,td){padding:13px 14px}
 .tia-rr-guide__checklist{padding:20px 18px}
 .tia-rr-guide__cta{padding:23px 19px}
 .tia-rr-guide__cta .tia-rr-guide__button{width:100%}
}
@media(max-width:430px){
 .tia-rr-guide__places{grid-template-columns:1fr}
 .tia-rr-guide__factor,.tia-rr-guide__faq{padding:18px}
}

/* 1.3.1 - Mobile: no cut columns, no hidden horizontal swipe.
   The three columns become vertically stacked cards under 720 px;
   data-label in every TD explains each value. Desktop tables remain unchanged. */
@media (max-width:720px){
 .tia-rr-guide .tia-rr-guide__table-wrap{
   width:100%;max-width:100%;min-width:0;
   overflow:visible!important;border:0!important;border-radius:0!important;
   box-shadow:none!important;background:transparent!important;
 }
 .tia-rr-guide .tia-rr-guide__table-wrap table{
   display:block!important;width:100%!important;min-width:0!important;
   max-width:100%!important;overflow:visible!important;
   border:0!important;margin:0!important;background:transparent!important;
   border-spacing:0!important;box-shadow:none!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap thead{
   position:absolute!important;width:1px!important;height:1px!important;
   padding:0!important;margin:-1px!important;overflow:hidden!important;
   clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
   white-space:nowrap!important;border:0!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap tbody,
 .tia-rr-guide .tia-rr-guide__table-wrap tbody tr,
 .tia-rr-guide .tia-rr-guide__table-wrap tbody td{
   display:block!important;width:100%!important;max-width:100%!important;
   min-width:0!important;box-sizing:border-box!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap tbody tr{
   overflow:hidden!important;margin:0 0 15px!important;
   background:#fff!important;border:1px solid #d9e4f5!important;
   border-radius:15px!important;
   box-shadow:0 5px 15px rgba(15,28,70,.05)!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap tbody tr:last-child{margin-bottom:0!important}
 .tia-rr-guide .tia-rr-guide__table-wrap tbody td{
   padding:14px 16px!important;margin:0!important;
   background:transparent!important;color:#33456e!important;
   border:0!important;border-bottom:1px solid #e5edf8!important;
   font-size:15px!important;line-height:1.55!important;
   overflow-wrap:anywhere!important;word-break:normal!important;
   white-space:normal!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap tbody td:last-child{border-bottom:0!important}
 .tia-rr-guide .tia-rr-guide__table-wrap tbody td::before{
   content:attr(data-label);display:block!important;
   margin:0 0 6px;color:#2563eb!important;
   font-size:11px!important;line-height:1.4!important;
   font-weight:800!important;letter-spacing:.045em!important;
   text-transform:uppercase!important
 }
 .tia-rr-guide .tia-rr-guide__table-wrap tbody td:first-child{
   background:#eef4ff!important;
   color:#0f1c46!important;font-weight:800!important;
   font-size:16px!important
 }
}

/* 2.0.3 — Passi pratici e fonti ufficiali, visualizzazione responsive */
.tia-rr-guide .tia-rr-guide__local{padding:clamp(18px,2.5vw,26px);margin:24px 0 30px;background:#f8fbff;border:1px solid #d9e4f5;border-left:4px solid #2563eb;border-radius:12px;}
.tia-rr-guide .tia-rr-guide__local h2{margin:0 0 12px;line-height:1.28;}
.tia-rr-guide .tia-rr-guide__local :is(ul,ol){padding-left:1.25em;margin:12px 0;}
.tia-rr-guide .tia-rr-guide__local li{margin-bottom:.65em;overflow-wrap:anywhere;}
.tia-rr-guide .tia-rr-guide__local-sources{font-size:.9em;border-top:1px solid #d9e4f5;padding-top:12px;margin-top:14px;}
.tia-rr-guide .tia-rr-guide__local-sources a{color:#1d4ed8;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere;}
.tia-rr-guide .tia-rr-guide__local-caveat{font-size:.87em;opacity:.85;margin-bottom:0;}
@media(max-width:720px){.tia-rr-guide .tia-rr-guide__local{margin:18px 0 24px;padding:16px}.tia-rr-guide .tia-rr-guide__local :is(ul,ol){padding-left:1.1em}}

/* 2.0.4 — Sistemi visivi originali del tema LIVE TiAssisto.
   Solo .tia-rr-guide, .tia-rr-panel e la pagina di anteprima privata.
   Colori di riferimento: --ink #0f1c46, --muted #5f6e91,
   --blue #2563eb, --line #d9e4f5, --dark #0c1738.
   Zero modifiche al tema, SEO o altre pagine. */
.tia-rr-panel,.tia-rr-guide {
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-weight:400;
  color:var(--tia-rr-ink,#0f1c46);
}
.tia-rr-guide{line-height:1.65}
.tia-rr-guide__eyebrow{color:var(--tia-rr-accent,#2563eb);font-weight:850}
.tia-rr-guide__intro {
  background:#f8fbff;
  border:1px solid var(--tia-rr-line,#d9e4f5);
  border-left:5px solid var(--tia-rr-accent,#2563eb);
}
.tia-rr-guide__intro p,
.tia-category-portal .tia-cost-guide .tia-rr-guide__intro p{
  font-family:inherit;line-height:1.65;color:#33456e;
  font-size:clamp(17px,1.25vw,19px);
}
.tia-rr-guide h2,.tia-category-portal .tia-cost-guide .tia-rr-guide h2{
  font-family:inherit;color:#0f1c46;font-weight:850;
  letter-spacing:-.025em;line-height:1.22;
}
.tia-rr-guide h3,.tia-category-portal .tia-cost-guide .tia-rr-guide h3{
  font-family:inherit;color:#0f1c46;font-weight:800;
}
.tia-rr-guide p,.tia-category-portal .tia-cost-guide .tia-rr-guide p{
  font-family:inherit;color:#5f6e91;line-height:1.68;
}
.tia-rr-guide :is(ol,ul) li{line-height:1.62;color:#33456e}
.tia-rr-guide a{color:#1d4ed8}
.tia-rr-guide a:hover{color:#1e40af}
.tia-rr-guide a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.tia-rr-guide__local,.tia-rr-guide__support,.tia-rr-guide__checklist {
  background:#f8fbff;border-color:#d9e4f5;border-left-color:#2563eb;
}
.tia-rr-guide__local h2 {border:0!important;padding:0!important;margin:0 0 12px!important}
.tia-rr-guide table th{color:#0f1c46;background:#eef4ff}
.tia-rr-guide table td{color:#33456e}
.tia-rr-guide__cta{
  background:#0c1738;
  border:1px solid #0c1738;
  box-shadow:0 14px 30px rgba(15,28,70,.12);
}
.tia-rr-guide__cta h2,.tia-category-portal .tia-cost-guide .tia-rr-guide__cta h2{color:#fff}
.tia-rr-guide__cta p,.tia-category-portal .tia-cost-guide .tia-rr-guide__cta p{color:#e7efff}
.tia-rr-guide__cta .tia-rr-guide__button{
  font-family:inherit;
  min-height:50px;
  padding:13px 22px;
  border-radius:14px;
  background:#2563eb;
  color:#fff;
  border:1px solid #2563eb;
  text-decoration:none;
  font-size:16px;
  line-height:1.3;
  font-weight:800;
  box-shadow:none;
}
.tia-rr-guide__cta .tia-rr-guide__button:hover,
.tia-rr-guide__cta .tia-rr-guide__button:focus-visible{
  background:#1d4ed8;color:#fff;border-color:#1d4ed8;
}
.tia-rr-guide__local-sources a{color:#1d4ed8}
.tia-rr-guide__local-sources a:hover{color:#1e40af}
/* Anteprima privata: usa gli stessi font e colori del tema pubblico. */
body.tia-rr-preview-body{
  margin:0;padding:clamp(10px,2vw,24px);
  background:#eef3fb;color:#0f1c46;
  font:400 16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
body.tia-rr-preview-body .tia-rr-panel{max-width:1180px;margin:18px auto 48px}
.tia-rr-preview-head{
  max-width:1180px;margin:0 auto;box-sizing:border-box;
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;flex-wrap:wrap;padding:14px clamp(12px,3vw,25px);
  background:#fff;border:1px solid #d9e4f5;border-radius:20px;
}
.tia-rr-preview-brand{display:flex;flex-direction:column;gap:3px}
.tia-rr-preview-brand strong{font-size:27px;font-weight:900;color:#2563eb;letter-spacing:-.04em;line-height:1}
.tia-rr-preview-brand span{font-size:10px;font-weight:850;color:#0f1c46;letter-spacing:.08em}
.tia-rr-preview-status{text-align:right;display:flex;flex-direction:column;gap:2px;min-width:0}
.tia-rr-preview-status strong{font-size:12px;font-weight:850;color:#0f1c46;letter-spacing:.04em}
.tia-rr-preview-status span{font-size:13px;color:#5f6e91;overflow-wrap:anywhere}
@media(max-width:720px){
  .tia-rr-preview-head{align-items:flex-start}
  .tia-rr-preview-status{text-align:left}
  .tia-rr-guide__cta .tia-rr-guide__button{width:100%;min-height:52px}
}

/* v2.0.5 — Indice ad ancore sul modello delle guide sociosanitarie. Solo guide nuove. */
.tia-rr-guide__quick-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;
  margin:24px 0 18px;padding:21px 23px;background:#eaf3ff;border:1px solid #cadcf5;border-radius:16px}
.tia-rr-guide__quick-nav strong{display:block;font-size:19px;line-height:1.35;color:#0f1c46;font-weight:800}
.tia-rr-guide__quick-nav p{margin:5px 0 0!important;font-size:16px!important;max-width:44ch;color:#344d78!important}
.tia-rr-guide a.tia-rr-guide__quick-button,
.tia-rr-guide a.tia-rr-guide__quick-button:visited{display:inline-flex;align-items:center;justify-content:center;
  min-height:50px;padding:12px 19px;background:#2563eb;color:#fff!important;font-size:16px;font-weight:800;
  line-height:1.35;text-align:center;text-decoration:none;border-radius:13px;white-space:normal}
.tia-rr-guide a.tia-rr-guide__quick-button:hover{background:#1d4ed8;color:#fff!important}
.tia-rr-guide__toc{background:#f1f5fc;border:1px solid #d9e4f5;border-radius:14px;padding:19px 20px;margin:18px 0 32px}
.tia-rr-guide__toc-title{display:block;margin:0 0 13px;font-size:17px;font-weight:800;color:#0f1c46}
.tia-rr-guide__toc ul{display:flex;gap:9px;flex-wrap:wrap;margin:0!important;padding:0!important;list-style:none!important}
.tia-rr-guide__toc li{margin:0!important;padding:0!important;list-style:none!important}
.tia-rr-guide__toc a{display:inline-block;background:#fff;border:1px solid #bfd1ed;border-radius:9px;
  padding:9px 13px;color:#154da8!important;text-decoration:none!important;font-size:15px;font-weight:750;line-height:1.4}
.tia-rr-guide__toc a:hover{background:#e8f0ff;border-color:#719bec}
.tia-rr-guide__toc a:focus-visible,.tia-rr-guide__quick-button:focus-visible{outline:3px solid #f7ac30!important;outline-offset:3px}
.tia-rr-guide h2[id]{scroll-margin-top:125px}
.tia-rr-guide__results-anchor{display:block;height:1px;scroll-margin-top:115px;position:relative}
.tia-rr-preview-results-note{max-width:1000px;margin:0 auto 50px;padding:18px 20px;background:#eaf3ff;border-radius:13px;color:#0f1c46;font:600 15px/1.6 system-ui,sans-serif}
@media(max-width:720px){
 .tia-rr-guide__quick-nav{display:block;padding:19px 16px;margin:20px 0 15px}
 .tia-rr-guide__quick-nav p{margin-bottom:14px!important}
 .tia-rr-guide a.tia-rr-guide__quick-button{width:100%}
 .tia-rr-guide__toc{padding:16px;margin:16px 0 26px}
 .tia-rr-guide__toc ul{display:block}
 .tia-rr-guide__toc li{margin:0 0 8px!important}
 .tia-rr-guide__toc a{display:block;width:100%}
 .tia-rr-guide h2[id]{scroll-margin-top:92px}
 .tia-rr-guide__results-anchor{scroll-margin-top:88px}
}
