/* ============================================================
   tp-blog.css - il blog (advanceblog): articolo ed elenco /blog.
   19/11/2026, docs/blog/AUDIT-BLOG.md (P0.1, P0.2c, P0.5, P0.6).

   Non e' generato da 65-build-components.sh: si modifica qui.
   Lo collegano i template del blog nel child, non theme.yml:
   - content_block.tpl, subito prima del testo dell'articolo. E' il punto dove
     stavano i <style> scritti dentro i post (Libreria componenti blog v2.0),
     che il template ora non stampa piu'. Le regole sono le stesse, deduplicate
     (22 blocchi diversi in 98 articoli), e limitate con :where(), che non
     aggiunge specificita': dentro l'articolo l'esito resta quello di prima,
     fuori (header, sidebar, footer) non valgono piu';
   - listing/v7/theme3/theme3.tpl, in testa all'elenco.
   Nel link c'e' ?v=: dopo una modifica va cambiato nei due template.
   I blocchi :root, .btn e la variante "blogSubInfo" dei post 109, 111 e 112
   non ci sono: erano la vecchia palette e toccavano tutto il sito.
   ============================================================ */

/* ---------- 0. Il contenitore del testo ----------
   Era .fmmBlogdetContent.card.card-block. La card di Bootstrap 5 e' una colonna
   flex: resta, perche' in flex i margini fra i blocchi non si fondono e la
   spaziatura degli articoli e' disegnata cosi'. Della card restano anche il
   colore del testo e l'a capo delle parole lunghe; il fondo, il bordo e l'ombra
   li toglieva gia' components.glue.css. */
:where(#module-advanceblog-detail) .tp-post-content{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--bs-body-color,#212529);overflow-wrap:break-word}

/* ---------- 1. Base tipografica della Libreria componenti blog v2.0 ----------
   Nei post era il primo <style> (95 articoli) e, senza contenitore, toccava anche
   header, sidebar e footer. Qui vale solo nella colonna dell'articolo
   ([id^="fmmblogDetail"]: titolo, foto, testo, correlati) e le regole di pagina
   solo sull'articolo del blog. :where() non aggiunge specificita'. */
/* TARGHE PROFESSIONALI - Base tipografica articolo - v2.0
   Unico blocco autorizzato a toccare i selettori del tema.
   Specificita 0,0,1 e zero !important: il tema puo ancora prevalere dove necessario. */
:where(#module-advanceblog-detail) .blogSubInfo { display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(#module-advanceblog-detail) { scroll-behavior: smooth;
  }
}
:where([id^="fmmblogDetail"]) h1,
:where([id^="fmmblogDetail"]) h2,
:where([id^="fmmblogDetail"]) h3,
:where([id^="fmmblogDetail"]) h4 {
  font-family: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1E2745;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
:where([id^="fmmblogDetail"]) h2 { font-size: clamp(24px, 1.35rem + 0.6vw, 30px); font-weight: 600; margin: 2.25rem 0 0.75rem;
}
:where([id^="fmmblogDetail"]) h3 { font-size: clamp(19px, 1.1rem + 0.3vw, 22px); font-weight: 600; margin: 1.75rem 0 0.5rem;
}
:where([id^="fmmblogDetail"]) h2[id],
:where([id^="fmmblogDetail"]) h3[id] { scroll-margin-top: 250px;
}
/* offset per header fisso */
:where([id^="fmmblogDetail"]) p {
  font-size: 17px;
  line-height: 1.7;
  color: #2A3142;
  margin: 0 0 1.1em;
  text-wrap: pretty;
}
:where([id^="fmmblogDetail"]) ul,
:where([id^="fmmblogDetail"]) ol { margin: 0 0 1.4em; padding-left: 1.35em;
}
:where([id^="fmmblogDetail"]) li { font-size: 17px; line-height: 1.7; color: #2A3142; margin-bottom: 0.5em;
}
:where([id^="fmmblogDetail"]) li::marker { color: #5A6FA8;
}
:where([id^="fmmblogDetail"]) blockquote {
  margin: 1.75rem 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 2px solid #90A3D2;
  color: #5B6478;
}
:where([id^="fmmblogDetail"]) a {
  color: #3B4C7A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where([id^="fmmblogDetail"]) a:hover { text-decoration-color: #90A3D2;
}
:where([id^="fmmblogDetail"]) a:focus-visible { outline: 2px solid #3B4C7A; outline-offset: 2px; border-radius: 2px;
}
:where([id^="fmmblogDetail"]) strong { font-weight: 600; color: #1E2745;
}
:where([id^="fmmblogDetail"]) hr { border: 0; border-top: 1px solid #DCE1EC; margin: 2.5rem 0;
}
/* Blocchi del tema: prodotti e articoli correlati */
:where(#module-advanceblog-detail) #related_products h3,
:where(#module-advanceblog-detail) #related_posts h3 {
  font-size: clamp(22px, 1.3rem + 0.4vw, 26px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.25rem;
}
:where(#module-advanceblog-detail) #related_products .img-list li { text-align: center; margin-bottom: 1rem;
}
:where(#module-advanceblog-detail) #related_products .text-content { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5;
}
:where(#module-advanceblog-detail) #related_products .desc { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: #5B6478;
}
/* Widget del modulo blog */
:where(#module-advanceblog-detail) .fmm_blog_ps17 .widget_title h2.title { font-size: clamp(22px, 1.3rem + 0.4vw, 26px); font-weight: 600;
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .viewAll { text-align: center;
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .viewAll a {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid #3B4C7A;
  border-radius: 4px;
  background: #3B4C7A;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms cubic-bezier(.2,.6,.2,1);
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .viewAll a:hover { background: #2E3C61; color: #FFFFFF;
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .viewAll a:focus-visible { outline: 2px solid #90A3D2; outline-offset: 2px;
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .randomposts .custom_widget .rcp_title a { color: #1E2745; text-decoration: none;
}
:where(#module-advanceblog-detail) .fmm_blog_ps17 .randomposts .custom_widget .rcp_title a:hover {
  text-decoration: underline;
  text-decoration-color: #90A3D2;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  :where(#module-advanceblog-detail) .fmm_blog_ps17 .viewAll a { transition: none;
  }
}

/* ---------- mini-CTA in testa (.cta-mini-btn), versione comune ---------- */
:where(.tp-post-content) .cta-mini-btn {
    max-width:1200px;
    margin: 18px auto 28px;
    background:#fff;
    border-left:5px solid #4A5C82;
    padding: 14px 16px;
    box-shadow:none;
    border-radius:0;
    font-family:'Host Grotesk', system-ui, sans-serif;
}
:where(.tp-post-content) .cta-mini-btn__row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
}
:where(.tp-post-content) .cta-mini-btn__left {
    display:flex;
    align-items:center;
    gap:12px;
    min-width:220px;
    flex:1;
}
:where(.tp-post-content) .cta-mini-btn__logo {
    width:32px;
    height:32px;
    border-radius:0;
    flex-shrink:0;
    display:block;
}
:where(.tp-post-content) .cta-mini-btn__text {
    margin:0;
    color:#202020;
    font-size:16px;
    line-height:1.3;
    font-weight:400;
}
:where(.tp-post-content) .cta-mini-btn__btn {
    height:44px;
    padding: 0 28px;              
    min-width: 240px;             
    font-size:14px;
    font-weight:600;
    border-radius:0;
    cursor:pointer;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;       
    gap:10px;
    transition: all .25s ease;
    font-family:inherit;
    border:none;
    white-space:nowrap;
    background:#4A5C82;
    color:#fff;
}
:where(.tp-post-content) .cta-mini-btn__btn:hover {
    background:#90A4D2;
    box-shadow:none;
    transform: translateY(-1px);
}
:where(.tp-post-content) .cta-mini-btn__btn svg {
    stroke:#202020;
}
@media (max-width:768px) {
  :where(.tp-post-content) .cta-mini-btn {
      padding: 14px 14px;
  }
  :where(.tp-post-content) .cta-mini-btn__row {
      flex-direction:column;
      align-items:stretch;
  }
  :where(.tp-post-content) .cta-mini-btn__btn {
      width:100%;
      min-width: 0;
  }
}

/* ---------- apertura (.tp-lead) (84 articoli) ---------- */
:where(.tp-post-content) .tp-lead {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 0 auto 2.25rem;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-lead > p {
  font-size: clamp(19px, 1.15rem + 0.35vw, 22px);
  line-height: 1.62;
  color: var(--tp-body);
  margin: 0 0 0.7em;
  text-wrap: pretty;
}
:where(.tp-post-content) .tp-lead > p:last-child { margin-bottom: 0;
}
:where(.tp-post-content) .tp-lead strong { font-weight: 600; color: var(--tp-ink);
}

/* ---------- riquadro laterale (.tp-aside) (70 articoli) ---------- */
:where(.tp-post-content) .tp-aside {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-muted: #5B6478;
  --tp-brand: #90A3D2;
  --tp-brand-deep: #3B4C7A;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 0 auto 1.75rem;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--tp-brand);
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-aside > :first-child { margin-top: 0;
}
:where(.tp-post-content) .tp-aside > :last-child { margin-bottom: 0;
}
:where(.tp-post-content) .tp-aside p { font-size: 16px; line-height: 1.75; color: var(--tp-muted); margin: 0 0 0.8em;
}
:where(.tp-post-content) .tp-aside ul,
:where(.tp-post-content) .tp-aside ol { margin: 0 0 0.8em; padding-left: 1.15em;
}
:where(.tp-post-content) .tp-aside li { font-size: 16px; line-height: 1.75; color: var(--tp-muted); margin-bottom: 0.3em;
}
:where(.tp-post-content) .tp-aside li::marker { color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-aside strong { font-weight: 600; color: var(--tp-body);
}
@media (max-width: 480px) {
  :where(.tp-post-content) .tp-aside { padding-left: 14px;
  }
}
:where(.tp-post-content) .tp-aside-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tp-ink);
}

/* ---------- indice (.tp-toc) (87 articoli) ---------- */
:where(.tp-post-content) .tp-toc {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-body: #2A3142;
  --tp-muted: #5B6478;
  --tp-line: #DCE1EC;
  --tp-tint: #EEF1F8;
  --tp-brand: #90A3D2;
  --tp-brand-deep: #3B4C7A;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 0 auto 2rem;
  background: #FFFFFF;
  border: 1px solid var(--tp-line);
  border-radius: 4px;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-toc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--tp-line);
}
:where(.tp-post-content) .tp-toc > summary::-webkit-details-marker { display: none;
}
:where(.tp-post-content) .tp-toc > summary:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: -2px;
}
:where(.tp-post-content) .tp-toc-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-toc-count { margin-left: auto; font-size: 13px; color: var(--tp-muted);
}
:where(.tp-post-content) .tp-toc-chev {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--tp-brand-deep);
  border-bottom: 1.5px solid var(--tp-brand-deep);
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 160ms cubic-bezier(.2,.6,.2,1);
}
:where(.tp-post-content) .tp-toc[open] > summary .tp-toc-chev { transform: rotate(-135deg) translate(-1px, -1px);
}
:where(.tp-post-content) .tp-toc-list { counter-reset: tptoc; list-style: none; margin: 0; padding: 6px 0;
}
:where(.tp-post-content) .tp-toc-list li { counter-increment: tptoc; margin: 0;
}
:where(.tp-post-content) .tp-toc-list a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 10px 18px;
  border-left: 2px solid transparent;
  color: var(--tp-body);
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
}
:where(.tp-post-content) .tp-toc-list a::before {
  content: counter(tptoc, decimal-leading-zero);
  min-width: 1.7em;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-toc-list a:hover {
  background: var(--tp-tint);
  border-left-color: var(--tp-brand);
  text-decoration: underline;
  text-decoration-color: var(--tp-brand);
  text-underline-offset: 3px;
}
:where(.tp-post-content) .tp-toc-list a:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: -2px;
}
@media (max-width: 480px) {
  :where(.tp-post-content) .tp-toc > summary { padding: 12px 14px;
  }
  :where(.tp-post-content) .tp-toc-list a { padding: 10px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.tp-post-content) .tp-toc-chev { transition: none;
  }
}

/* ---------- box di richiamo (.tp-callout) (81 articoli) ---------- */
:where(.tp-post-content) .tp-callout {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-line: #DCE1EC;
  --tp-brand: #90A3D2;
  --tp-brand-deep: #3B4C7A;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 0 auto 1.75rem;
  padding: 20px 22px;
  background: #FFFFFF;
  border: 1px solid var(--tp-line);
  border-top: 2px solid var(--tp-brand);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(30,39,69,.06);
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-callout-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-callout-body > :first-child { margin-top: 0;
}
:where(.tp-post-content) .tp-callout-body > :last-child { margin-bottom: 0;
}
:where(.tp-post-content) .tp-callout-body p { font-size: 16px; line-height: 1.7; color: var(--tp-body); margin: 0 0 0.9em;
}
:where(.tp-post-content) .tp-callout-body ul,
:where(.tp-post-content) .tp-callout-body ol { margin: 0 0 0.9em; padding-left: 1.2em;
}
:where(.tp-post-content) .tp-callout-body li { font-size: 16px; line-height: 1.7; color: var(--tp-body); margin-bottom: 0.35em;
}
:where(.tp-post-content) .tp-callout-body li::marker { color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-callout-body strong { font-weight: 600; color: var(--tp-ink);
}
@media (max-width: 480px) {
  :where(.tp-post-content) .tp-callout { padding: 16px;
  }
}

/* ---------- tabella (.tp-table) (79 articoli) ---------- */
:where(.tp-post-content) .tp-table {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-muted: #5B6478;
  --tp-line: #DCE1EC;
  --tp-brand-deep: #3B4C7A;
  --tp-zebra: #F7F8FB;
  --tp-measure-full: 100%;
  max-width: var(--tp-measure-full);
  margin: 0 auto 2rem;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-table caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tp-muted);
}
:where(.tp-post-content) .tp-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tp-line);
  border-radius: 4px;
}
:where(.tp-post-content) .tp-table-scroll:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: 2px;
}
:where(.tp-post-content) .tp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px;
}
:where(.tp-post-content) .tp-table thead th {
  background: var(--tp-brand-deep);
  color: #FFFFFF;
  text-align: left;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-right: 1px solid rgba(255,255,255,.18);
}
:where(.tp-post-content) .tp-table thead th:last-child { border-right: 0;
}
:where(.tp-post-content) .tp-table tbody th,
:where(.tp-post-content) .tp-table tbody td {
  padding: 12px 14px;
  border-top: 1px solid var(--tp-line);
  line-height: 1.6;
  color: var(--tp-body);
  vertical-align: top;
}
:where(.tp-post-content) .tp-table tbody th { text-align: left; font-weight: 600; color: var(--tp-ink);
}
:where(.tp-post-content) .tp-table tbody tr:nth-child(even) th,
:where(.tp-post-content) .tp-table tbody tr:nth-child(even) td { background: var(--tp-zebra);
}
:where(.tp-post-content) .tp-table-hint { display: none; margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--tp-muted);
}
@media (max-width: 640px) {
  :where(.tp-post-content) .tp-table-hint { display: block;
  }
}

/* ---------- figura (.tp-figure) (23 articoli) ---------- */
:where(.tp-post-content) .tp-figure {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-body: #2A3142;
  --tp-muted: #5B6478;
  --tp-line: #DCE1EC;
  --tp-surface-alt: #F4F4F4;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 0 auto 2rem;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--tp-surface-alt);
  border: 1px solid var(--tp-line);
  border-radius: 4px;
}
:where(.tp-post-content) .tp-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--tp-muted);
  text-wrap: pretty;
}
:where(.tp-post-content) .tp-figure-source {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--tp-muted);
}
:where(.tp-post-content) .tp-figure-source b { font-weight: 600; color: var(--tp-body);
}

/* ---------- card autore (.tp-author) (94 articoli) ---------- */
:where(.tp-post-content) .tp-author {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-muted: #5B6478;
  --tp-line: #DCE1EC;
  --tp-surface-alt: #F4F4F4;
  --tp-tint: #EEF1F8;
  --tp-brand-deep: #3B4C7A;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 2.5rem auto;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--tp-line);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(30,39,69,.06);
  display: grid;
  grid-template-columns: 56px 1fr auto;
  grid-template-areas: "avatar meta actions";
  gap: 18px;
  align-items: center;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-author-avatar {
  grid-area: avatar;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--tp-line);
  background: var(--tp-surface-alt);
}
:where(.tp-post-content) .tp-author-meta { grid-area: meta; min-width: 0; margin: 0;
}
:where(.tp-post-content) .tp-author-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-author-name { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--tp-ink); margin-top: 3px;
}
:where(.tp-post-content) .tp-author-role { font-size: 14px; line-height: 1.5; color: var(--tp-muted);
}
:where(.tp-post-content) .tp-author-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none;
}
:where(.tp-post-content) .tp-author-chip {
  font-size: 12px;
  line-height: 1;
  color: var(--tp-body);
  background: var(--tp-surface-alt);
  border: 1px solid var(--tp-line);
  border-radius: 999px;
  padding: 6px 10px;
}
:where(.tp-post-content) .tp-author-actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 10px;
}
:where(.tp-post-content) .tp-author-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--tp-brand-deep);
  border-radius: 4px;
  background: var(--tp-brand-deep);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms cubic-bezier(.2,.6,.2,1);
}
:where(.tp-post-content) .tp-author-btn:hover { background: #2E3C61; color: #FFFFFF;
}
:where(.tp-post-content) .tp-author-btn:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: 2px;
}
:where(.tp-post-content) .tp-author-btn--ghost { background: #FFFFFF; color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-author-btn--ghost:hover { background: var(--tp-tint); color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-author-btn svg { width: 15px; height: 15px; flex: none; fill: currentColor;
}
@media (max-width: 560px) {
  :where(.tp-post-content) .tp-author {
    grid-template-columns: 48px 1fr;
    grid-template-areas: "avatar meta" "actions actions";
    gap: 14px;
    padding: 18px;
  }
  :where(.tp-post-content) .tp-author-avatar { width: 48px; height: 48px;
  }
  :where(.tp-post-content) .tp-author-btn { flex: 1 1 auto; justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.tp-post-content) .tp-author-btn { transition: none;
  }
}

/* ---------- FAQ (.tp-faq) (91 articoli) ---------- */
:where(.tp-post-content) .tp-faq {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-body: #2A3142;
  --tp-line: #DCE1EC;
  --tp-brand-deep: #3B4C7A;
  --tp-measure: 760px;
  max-width: var(--tp-measure);
  margin: 2.5rem auto;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-faq-heading {
  margin: 0 0 8px;
  font-size: clamp(24px, 1.35rem + 0.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--tp-ink);
}
:where(.tp-post-content) .tp-faq-item { border-top: 1px solid var(--tp-line);
}
:where(.tp-post-content) .tp-faq-item:last-of-type { border-bottom: 1px solid var(--tp-line);
}
:where(.tp-post-content) .tp-faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--tp-ink);
}
:where(.tp-post-content) .tp-faq-item > summary::-webkit-details-marker { display: none;
}
:where(.tp-post-content) .tp-faq-item > summary:hover { color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-faq-item > summary:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: 2px; border-radius: 2px;
}
:where(.tp-post-content) .tp-faq-sign { position: relative; flex: none; width: 16px; height: 16px; margin: 4px 0 0 auto;
}
:where(.tp-post-content) .tp-faq-sign::before,
:where(.tp-post-content) .tp-faq-sign::after {
  content: "";
  position: absolute;
  background: var(--tp-brand-deep);
  transition: transform 160ms cubic-bezier(.2,.6,.2,1);
}
:where(.tp-post-content) .tp-faq-sign::before { top: 7px; left: 0; width: 16px; height: 2px;
}
:where(.tp-post-content) .tp-faq-sign::after { top: 0; left: 7px; width: 2px; height: 16px;
}
:where(.tp-post-content) .tp-faq-item[open] .tp-faq-sign::after { transform: scaleY(0);
}
:where(.tp-post-content) .tp-faq-answer { padding: 0 0 20px;
}
:where(.tp-post-content) .tp-faq-answer > :first-child { margin-top: 0;
}
:where(.tp-post-content) .tp-faq-answer > :last-child { margin-bottom: 0;
}
:where(.tp-post-content) .tp-faq-answer p {
  max-width: 62ch;
  margin: 0 0 0.8em;
  font-size: 16px;
  line-height: 1.75;
  color: var(--tp-body);
}
:where(.tp-post-content) .tp-faq-answer ul,
:where(.tp-post-content) .tp-faq-answer ol { margin: 0 0 0.8em; padding-left: 1.2em;
}
:where(.tp-post-content) .tp-faq-answer li { font-size: 16px; line-height: 1.75; color: var(--tp-body); margin-bottom: 0.3em;
}
@media (prefers-reduced-motion: reduce) {
  :where(.tp-post-content) .tp-faq-sign::before,
  :where(.tp-post-content) .tp-faq-sign::after { transition: none;
  }
}

/* ---------- CTA finale (.tp-cta) (93 articoli) ---------- */
:where(.tp-post-content) .tp-cta {
  --tp-font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tp-ink: #1E2745;
  --tp-muted: #5B6478;
  --tp-line: #DCE1EC;
  --tp-tint: #EEF1F8;
  --tp-brand: #90A3D2;
  --tp-brand-deep: #3B4C7A;
  --tp-measure-full: 100%;
  max-width: var(--tp-measure-full);
  margin: 2.5rem auto;
  padding: 28px 30px;
  background: #FFFFFF;
  border: 1px solid var(--tp-line);
  border-left: 2px solid var(--tp-brand);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(30,39,69,.06);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
  font-family: var(--tp-font);
}
:where(.tp-post-content) .tp-cta-title {
  margin: 0 0 18px;
  font-size: clamp(19px, 1.1rem + 0.35vw, 22px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--tp-ink);
  text-wrap: pretty;
}
:where(.tp-post-content) .tp-cta-actions { display: flex; flex-wrap: wrap; gap: 12px;
}
:where(.tp-post-content) .tp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--tp-brand-deep);
  border-radius: 4px;
  background: var(--tp-brand-deep);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 160ms cubic-bezier(.2,.6,.2,1);
}
:where(.tp-post-content) .tp-cta-btn:hover { background: #2E3C61; color: #FFFFFF;
}
:where(.tp-post-content) .tp-cta-btn:focus-visible { outline: 2px solid var(--tp-brand-deep); outline-offset: 2px;
}
:where(.tp-post-content) .tp-cta-btn--ghost { background: #FFFFFF; color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-cta-btn--ghost:hover { background: var(--tp-tint); color: var(--tp-brand-deep);
}
:where(.tp-post-content) .tp-cta-btn svg { width: 17px; height: 17px; flex: none;
}
:where(.tp-post-content) .tp-cta-claim { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--tp-muted);
}
:where(.tp-post-content) .tp-cta-mark { text-align: right; padding-left: 26px; border-left: 1px solid var(--tp-line);
}
:where(.tp-post-content) .tp-cta-mark span { display: block;
}
:where(.tp-post-content) .tp-cta-mark-name { font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tp-ink);
}
:where(.tp-post-content) .tp-cta-mark-kind { margin-top: 4px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tp-muted);
}
:where(.tp-post-content) .tp-cta-mark-since { margin-top: 12px; font-size: 11px; letter-spacing: 0.06em; color: var(--tp-muted);
}
/* 19/11: nel marchio il loghino al posto della scritta "Targhe Professionali / Targhe e insegne / Dal 1992",
   stesso file e misura della mini-CTA in testa. La scritta resta nell'HTML (aria-hidden), qui non si vede.
   Per tornare alla scritta basta togliere queste due regole. */
:where(.tp-post-content) .tp-cta-mark span { display: none;
}
:where(.tp-post-content) .tp-cta-mark::before { content: ""; display: block; width: 32px; height: 32px; background: url("../img/tp/home/logo-mark.png") center / contain no-repeat;
}
@media (max-width: 640px) {
  :where(.tp-post-content) .tp-cta { grid-template-columns: 1fr; gap: 20px; padding: 22px 20px;
  }
  :where(.tp-post-content) .tp-cta-btn { flex: 1 1 100%; justify-content: center;
  }
  :where(.tp-post-content) .tp-cta-mark { text-align: left; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--tp-line);
  }
}
@media (prefers-reduced-motion: reduce) {
  :where(.tp-post-content) .tp-cta-btn { transition: none;
  }
}

/* ---------- mini-CTA, variante di 5 articoli (99-103): righe .cta-editorial e .cta-content ---------- */
@media(max-width:768px) {
  :where(.tp-post-content) .cta-mini-btn__row,
  :where(.tp-post-content) .cta-editorial,
  :where(.tp-post-content) .cta-content {flex-direction:column;align-items:stretch
  }
}

/* ---------- mini-CTA dell'articolo 96: intestazioni numerate .intervento-* ---------- */
:where(.tp-post-content) .intervento-numero {display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#4A5C82,#4A5C82);color:#fff;font-size:18px;font-weight:700;font-family:system-ui;margin-bottom:12px;flex-shrink:0
}
:where(.tp-post-content) .intervento-header {display:flex;align-items:center;gap:14px;margin-bottom:8px
}

/* ---------- mini-CTA dell'articolo 101: intestazioni numerate .errore-* ---------- */
:where(.tp-post-content) .errore-numero {display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#4A5C82,#4A5C82);color:#fff;font-size:18px;font-weight:700;font-family:system-ui;margin-bottom:12px;flex-shrink:0
}
:where(.tp-post-content) .errore-header {display:flex;align-items:center;gap:14px;margin-bottom:8px
}

/* ---------- mini-CTA dell'articolo 104: schede .site-card ---------- */
:where(.tp-post-content) .site-card {border:1px solid #e5e7eb;border-radius:0;padding:24px 26px;margin:20px 0;background:#fff;box-shadow:none
}
:where(.tp-post-content) .site-card.highlight {border:2px solid #4A5C82;background:linear-gradient(135deg,#fbffff 0%,#ffffff 60%);box-shadow:none
}
:where(.tp-post-content) .site-card__badge {display:inline-block;background:#4A5C82;color:#fff;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;padding:5px 12px;border-radius:0;margin-bottom:12px
}
:where(.tp-post-content) .site-card__name {font-size:1.35rem;font-weight:600;color:#202020;margin:0 0 4px
}
:where(.tp-post-content) .site-card__type {font-size:.85rem;color:#4A5C82;font-weight:600;text-transform:uppercase;letter-spacing:.5px;margin-bottom:14px
}
:where(.tp-post-content) .site-card__row {display:flex;gap:20px;flex-wrap:wrap;margin-top:14px
}
:where(.tp-post-content) .site-card__col {flex:1;min-width:200px
}
:where(.tp-post-content) .site-card__col h4 {font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;color:#405072;margin:0 0 6px
}
:where(.tp-post-content) .site-card__col ul {margin:0;padding-left:16px
}
:where(.tp-post-content) .site-card__col li {font-size:.92rem;line-height:1.5;color:#444;margin-bottom:4px
}
@media(max-width:768px) {
  :where(.tp-post-content) .cta-mini-btn__row,
  :where(.tp-post-content) .cta-editorial,
  :where(.tp-post-content) .cta-content {flex-direction:column;align-items:stretch
  }
  :where(.tp-post-content) .site-card__row {flex-direction:column;gap:12px
  }
}

/* ---------- 9. Regole difensive del testo (19/11) ----------
   - Un'immagine sciolta nel testo (figlia diretta o dentro un paragrafo) non si
     allarga alla colonna e non la supera: negli 8 articoli smontati la favicon
     da 48 px usciva larga 906. Le immagini dei componenti restano fuori: con
     max-width in % la figura dell'articolo 58 si stringeva da 760 a 168 px.
   - I componenti con la misura di 760 px (non tabella e CTA finale, che sono
     gia' al 100%) non superano la colonna: con margine
     auto si stringono sul contenuto, e un testo con spazi non divisibili
     (&nbsp;) li portava a 393 px in una colonna di 343 (articolo 21).
   - Una tabella senza il suo .tp-table-scroll scorre in orizzontale invece di
     uscire dallo schermo (articoli 106, 109, 112). */
:where(.tp-post-content) > img{align-self:flex-start;max-width:100%;height:auto}
:where(.tp-post-content) > :is(p,a,span,strong,em) img{max-width:100%;height:auto}
:where(.tp-post-content) :is(.tp-lead,.tp-toc,.tp-callout,.tp-aside,.tp-author,.tp-faq,.tp-figure){max-width:min(var(--tp-measure,760px),100%)}
:where(.tp-post-content) .cta-mini-btn{max-width:min(1200px,100%)}
:where(.tp-post-content) table:not(.tp-table-scroll table){display:block;max-width:100%;overflow-x:auto}

/* ============================================================
   L'elenco /blog (theme3.tpl del child)
   Card come le "Guide" della homepage (.v5-post): foto, occhiello mono,
   titolo con il filetto; bordo e fondo come le schede delle pagine categoria.
   ============================================================ */
/* Il titolo dell'elenco (.main_wrapper) e' flottante per il CSS del modulo: senza clear la
   griglia, accanto al float, si stringeva a 0 px. */
#module-advanceblog-blog .tp-blog-main{clear:both}
#module-advanceblog-blog .tp-blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3);margin-top:var(--space-3)}
@media(max-width:700px){#module-advanceblog-blog .tp-blog-grid{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}}
#module-advanceblog-blog .tp-bcard{display:flex;flex-direction:column;min-width:0;margin:0;background:var(--bg-2);border:1px solid var(--rule);transition:border-color .15s}
#module-advanceblog-blog .tp-bcard:hover{border-color:var(--accent-deep)}
#module-advanceblog-blog .tp-bcard__media{display:block;overflow:hidden;background:var(--photo-bg,#e2e5ea)}
#module-advanceblog-blog .tp-bcard__media img{display:block;width:100%;height:auto;aspect-ratio:1200/630;object-fit:cover;transition:transform .4s ease}
#module-advanceblog-blog .tp-bcard:hover .tp-bcard__media img{transform:scale(1.03)}
#module-advanceblog-blog .tp-bcard__body{display:flex;flex-direction:column;gap:10px;flex:1;padding:var(--space-3)}
#module-advanceblog-blog .tp-bcard__meta{margin:0;font-family:'Geist Mono',monospace;font-size:11px;line-height:1.5;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-3)}
#module-advanceblog-blog .tp-bcard__title{margin:0;font-family:'Host Grotesk',sans-serif;font-size:clamp(18px,1.6vw,22px);font-weight:500;line-height:1.22;letter-spacing:-.022em;text-transform:none;text-wrap:pretty}
#module-advanceblog-blog .tp-bcard__title a{color:var(--ink);text-decoration:none}
#module-advanceblog-blog .tp-bcard__title a:hover,#module-advanceblog-blog .tp-bcard__title a:focus-visible{color:var(--accent-deep)}
#module-advanceblog-blog .tp-bcard__sum{margin:0;font-size:15px;line-height:1.5;color:var(--ink-2)}
#module-advanceblog-blog .tp-bcard__more{margin-top:auto;padding-top:12px;border-top:1px solid var(--rule);font-family:'Geist Mono',monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-deep);text-decoration:none}
#module-advanceblog-blog .tp-bcard__more::after{content:" \2192"}
#module-advanceblog-blog .tp-bcard__more:hover{color:var(--ink)}
@media(max-width:700px){#module-advanceblog-blog .tp-bcard__body{padding:var(--space-2)}}

/* La paginazione: quadrati da 44 px col filetto, come le frecce dei caroselli. */
#module-advanceblog-blog .tp-blog-pag{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:var(--space-4) 0 var(--space-3);padding:0;list-style:none}
#module-advanceblog-blog .tp-blog-pag__b,#module-advanceblog-blog .tp-blog-pag--modulo a,#module-advanceblog-blog .tp-blog-pag--modulo .inactive{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 12px;border:1px solid var(--rule);background:var(--bg);color:var(--ink);font-size:15px;text-decoration:none;transition:border-color .15s,color .15s}
#module-advanceblog-blog a.tp-blog-pag__b:hover,#module-advanceblog-blog .tp-blog-pag--modulo a:hover{border-color:var(--accent-deep);color:var(--accent-deep)}
#module-advanceblog-blog .tp-blog-pag__b.is-on,#module-advanceblog-blog .tp-blog-pag--modulo a.current{background:var(--accent-deep);border-color:var(--accent-deep);color:#fff}
#module-advanceblog-blog .tp-blog-pag__step{font-family:'Geist Mono',monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
#module-advanceblog-blog .tp-blog-pag__gap{padding:0 2px;color:var(--ink-3)}
#module-advanceblog-blog .tp-blog-pag--modulo ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
@media(max-width:700px){#module-advanceblog-blog .tp-blog-pag__step{flex:1 1 100%;order:2}}
