.qtx-front-form {
  max-width:760px;
  margin:24px auto;
  padding:24px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.08)}
.qtx-front-form input,.qtx-front-form textarea,.qtx-search input {
  width:100%;
  box-sizing:border-box;
  min-height:48px;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:12px;
  font-size:16px}
.qtx-front-form button,.qtx-search button {
  min-height:48px;
  border:0;
  border-radius:12px;
  padding:12px 18px;
  background:#f97316;
  color:white;
  font-weight:800;
  cursor:pointer}
.qtx-guide-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px}
.qtx-guide-card {
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:18px;
  background:white;
  overflow:hidden}
.qtx-search {
  display:flex;
  gap:8px;
  flex-wrap:wrap}
.qtx-search input {
  flex:1 1 240px}
.qtx-search button {
  flex:0 0 auto}
@media(max-width:600px) {
  .qtx-front-form {
  padding:16px}
.qtx-search button {
  width:100%}
}
.qtx-toc {
  margin:28px 0;
  padding:22px;
  border:1px solid #e5e7eb;
  border-radius:18px;
  background:#f8fafc;
  box-shadow:0 8px 24px rgba(15,23,42,.06)}
.qtx-toc strong,.qtx-toc__title {
  display:block;
  margin:0 0 12px;
  font-size:18px;
  line-height:1.35;
  color:#0f172a}
.qtx-toc ol {
  display:grid;
  gap:10px;
  margin:0;
  padding-left:22px;
  list-style-position:outside}
.qtx-toc li {
  display:list-item;
  margin:0;
  padding:0;
  line-height:1.5}
.qtx-toc a {
  display:block;
  font-weight:700;
  line-height:1.5;
  text-decoration:none;
  white-space:normal}
.qtx-toc a:hover {
  text-decoration:underline}
.qtx-back-toc {
  display:inline-block;
  margin:16px 0 28px;
  font-size:14px;
  font-weight:700}
.qtx-lead {
  font-size:1.08em;
  line-height:1.75}
.qtx-guide-cta {
  margin:34px 0;
  padding:24px;
  border-radius:20px;
  background:#fff7ed;
  border:1px solid #fed7aa}
.qtx-guide-cta .button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:6px 8px 6px 0;
  padding:12px 16px;
  border-radius:12px;
  background:#f97316;
  color:#fff;
  text-decoration:none;
  font-weight:800}
.single-problema table,.problema table {
  width:100%;
  border-collapse:collapse;
  display:block;
  overflow-x:auto}
.single-problema th,.single-problema td {
  border:1px solid #e5e7eb;
  padding:12px;
  text-align:left;
  vertical-align:top}
@media(max-width:600px) {
  .qtx-toc {
  padding:16px}
.qtx-toc ol {
  gap:12px;
  padding-left:20px}
.qtx-toc li,.qtx-toc a {
  width:100%}
.qtx-guide-cta .button {
  width:100%;
  box-sizing:border-box}
}
.qtx-revenue-cta {
  margin:30px 0;
  padding:24px;
  border:1px solid #fed7aa;
  border-radius:22px;
  background:linear-gradient(135deg,#fff7ed,#ffffff);
  box-shadow:0 12px 30px rgba(249,115,22,.12)}
.qtx-revenue-cta strong {
  display:block;
  font-size:1.18em;
  color:#0f172a}
.qtx-revenue-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px}
.qtx-btn-primary,.qtx-btn-secondary {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  border-radius:12px;
  padding:11px 15px;
  text-decoration:none;
  font-weight:800}
.qtx-btn-primary {
  background:#f97316;
  color:#fff}
.qtx-btn-secondary {
  background:#fff;
  border:1px solid #fdba74;
  color:#9a3412}
.qtx-ad-block,.qtx-ad-placeholder,.qtx-affiliate-note {
  margin:28px 0;
  padding:18px;
  border-radius:16px;
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  text-align:center;
  box-sizing:border-box;
  overflow:hidden}
.qtx-ad-label {
  display:block;
  margin-bottom:8px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em}
.qtx-ad-placeholder {
  display:flex;
  align-items:center;
  justify-content:center}
.qtx-ad-placeholder span {
  color:#64748b;
  font-weight:700}
.qtx-affiliate-note {
  text-align:left;
  border-style:solid;
  background:#f8fafc}
.qtx-diagnostic-flow,.qtx-price-table,.qtx-case-study,.qtx-errors,.qtx-checklist {
  margin:32px 0;
  padding:22px;
  border:1px solid #e5e7eb;
  border-radius:20px;
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.06)}
.qtx-diagnostic-flow {
  background:linear-gradient(135deg,#eff6ff,#fff)}
.qtx-price-table {
  background:#f8fafc}
.qtx-case-study {
  background:#f7fee7}
.qtx-errors {
  background:#fff1f2}
.qtx-checklist {
  background:#fefce8}
.qtx-diagnostic-flow h2,.qtx-price-table h2,.qtx-case-study h2,.qtx-errors h2,.qtx-checklist h2 {
  margin-top:0}
@media(max-width:600px) {
  .qtx-revenue-actions a {
  width:100%;
  box-sizing:border-box}
.qtx-diagnostic-flow,.qtx-price-table,.qtx-case-study,.qtx-errors,.qtx-checklist {
  padding:16px;
  border-radius:16px}
}


/* ── v89.0 Frontend refresh ────────────────────────────────── */
:root {
  --qtx-f-primary: #f97316;
  --qtx-f-primary-dark: #c2410c;
  --qtx-f-radius: 16px;
  --qtx-f-shadow: 0 10px 28px rgba(15,23,42,.08);
  --qtx-f-transition: 140ms ease;
}

/* Focus accessibile frontend */
.qtx-front-form *:focus-visible,
.qtx-search *:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(249,115,22,.32);
  border-color: var(--qtx-f-primary);
}

/* Form input: border focus animato */
.qtx-front-form input:focus,
.qtx-front-form textarea:focus,
.qtx-search input:focus {
  border-color: var(--qtx-f-primary);
  box-shadow: 0 0 0 3px rgba(249,115,22,.18);
  outline: none;
}

/* Button hover */
.qtx-front-form button:hover,
.qtx-search button:hover {
  background: var(--qtx-f-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(249,115,22,.28);
  transition: background var(--qtx-f-transition), transform var(--qtx-f-transition), box-shadow var(--qtx-f-transition);
}

/* Guide card: hover elevation */
.qtx-guide-card {
  transition: border-color var(--qtx-f-transition), box-shadow var(--qtx-f-transition), transform var(--qtx-f-transition);
}
.qtx-guide-card:hover {
  border-color: #fdba74;
  box-shadow: 0 14px 32px rgba(15,23,42,.10);
  transform: translateY(-2px);
}
.qtx-guide-card h3 { margin: 0 0 8px; line-height: 1.3; }
.qtx-guide-card h3 a { text-decoration: none; color: inherit; }
.qtx-guide-card h3 a:hover { color: var(--qtx-f-primary); }

/* CTA block frontend */
.qtx-guide-cta,
.qtx-revenue-cta {
  position: relative;
  overflow: hidden;
}
.qtx-guide-cta::before,
.qtx-revenue-cta::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.14), transparent 68%);
  pointer-events: none;
}

/* Bottoni CTA */
.qtx-btn-primary,
.qtx-guide-cta .button {
  transition: background var(--qtx-f-transition), transform var(--qtx-f-transition), box-shadow var(--qtx-f-transition);
}
.qtx-btn-primary:hover,
.qtx-guide-cta .button:hover {
  background: var(--qtx-f-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(249,115,22,.30);
}
.qtx-btn-secondary:hover {
  background: #fff7ed;
  border-color: #f97316;
}

/* Table responsive migliorata */
.single-problema table,
.problema table {
  border-radius: 14px;
  overflow: hidden;
  border-collapse: collapse;
  box-shadow: 0 4px 14px rgba(15,23,42,.06);
}
.single-problema th,
.problema th {
  background: #f8fafc;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #334155;
}
.single-problema tr:nth-child(even) td,
.problema tr:nth-child(even) td { background: #f8fafc; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .qtx-guide-card,
  .qtx-btn-primary,
  .qtx-front-form button,
  .qtx-search button { transition: none; transform: none; }
}


/* Phase 705: visible evidence and sources box for finance/YMYL guides. */
.qtx-evidence-sources{margin:2rem 0 0;padding:1.25rem 1.35rem;border:1px solid #d9e2f0;border-radius:18px;background:#f8faff;color:#172033}.qtx-evidence-sources h2{margin:0 0 .45rem;font-size:1.25rem}.qtx-evidence-sources>p{margin:.25rem 0 .9rem;color:#536078}.qtx-evidence-sources ol{margin:0;padding-left:1.2rem}.qtx-evidence-sources li{margin:.55rem 0}.qtx-evidence-sources li a{font-weight:700}.qtx-evidence-sources li small{display:block;margin-top:.15rem;color:#67748a}.qtx-evidence-review-line{padding-top:.8rem;border-top:1px solid #d9e2f0;font-size:.9rem;font-weight:700}@media(max-width:640px){.qtx-evidence-sources{padding:1rem;border-radius:14px}}

/* Phase 780 — E-E-A-T editorial evidence */
.qtx-eeat-evidence{margin:2rem 0;padding:1.25rem;border:1px solid #cbd5e1;border-radius:16px;background:#f8fafc;color:#17252a}.qtx-eeat-evidence h2{margin-top:0;font-size:1.35rem}.qtx-eeat-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:1rem 0}.qtx-eeat-summary p,.qtx-eeat-evidence details,.qtx-eeat-evidence>p{margin:.55rem 0}.qtx-eeat-evidence details{padding:.75rem;border:1px solid #dbe4e7;border-radius:12px;background:#fff}.qtx-eeat-evidence summary{cursor:pointer;font-weight:700;color:#0e7490}.qtx-eeat-evidence li small{display:block;margin-top:.2rem;color:#52656b;overflow-wrap:anywhere}@media(max-width:640px){.qtx-eeat-evidence{padding:1rem;border-radius:12px}.qtx-eeat-summary{grid-template-columns:1fr}.qtx-eeat-evidence details{padding:.65rem}}

/* Phase 1481 — Mobile editorial cards & visual diversity authority */
.qtx-phase1481-cards{--qtx1481-radius:22px;--qtx1481-border:#dbe3ef;--qtx1481-shadow:0 14px 34px rgba(15,23,42,.08);--qtx1481-muted:#64748b;--qtx1481-text:#0f172a;--qtx1481-surface:#fff;--qtx1481-soft:#f8fafc;--qtx1481-accent-1:#0f766e;--qtx1481-accent-2:#2563eb;--qtx1481-accent-3:#b45309;--qtx1481-accent-4:#7c3aed}
.qtx-phase1481-cards :where(.wp-block-query,.qtx-guide-grid,.related-posts,.related-articles,.qtx-related-guides,.qtx-reading-now){margin-top:18px}
.qtx-phase1481-cards :where(.wp-block-query__posts,.qtx-guide-grid,.related-posts__list,.related-articles__list,.qtx-related-guides__list,.qtx-reading-now__list){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px;align-items:stretch}
.qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article,.qtx-related-guides article,.qtx-reading-now article){position:relative;display:grid;grid-template-rows:auto auto auto 1fr auto;gap:12px;min-width:0;height:100%;padding:0;border:1px solid var(--qtx1481-border);border-radius:var(--qtx1481-radius);background:var(--qtx1481-surface);box-shadow:var(--qtx1481-shadow);overflow:hidden}
.qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article,.qtx-related-guides article,.qtx-reading-now article)::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:var(--qtx1481-accent-1);opacity:.96}
.qtx-phase1481-cards :where(.qtx-guide-tone-2,.qtx-guide-card:nth-child(4n+2))::before{background:var(--qtx1481-accent-2)}
.qtx-phase1481-cards :where(.qtx-guide-tone-3,.qtx-guide-card:nth-child(4n+3))::before{background:var(--qtx1481-accent-3)}
.qtx-phase1481-cards :where(.qtx-guide-tone-4,.qtx-guide-card:nth-child(4n+4))::before{background:var(--qtx1481-accent-4)}
.qtx-phase1481-cards :where(.wp-block-post-featured-image,.post-thumbnail,.entry-media,.qtx-guide-card__media,.qtx-card-thumb,.qtx-guide-card img:first-child){position:relative;display:block;order:0;width:100%;margin:0;background:linear-gradient(135deg,#eef2ff,#f8fafc);overflow:hidden;aspect-ratio:16/9;max-height:220px}
.qtx-phase1481-cards :where(.wp-block-post-featured-image a,.post-thumbnail a,.entry-media a,.qtx-guide-card__media a,.qtx-card-thumb a){display:block;width:100%;height:100%}
.qtx-phase1481-cards :where(.wp-block-post-featured-image img,.post-thumbnail img,.entry-media img,.qtx-guide-card__media img,.qtx-card-thumb img,.qtx-guide-card>img){display:block;width:100%;height:100%;object-fit:cover;transform:translateZ(0)}
.qtx-phase1481-cards :where(.wp-block-post-terms,.post-categories,.entry-category,.qtx-card-kicker,.qtx-guide-card__kicker){display:flex;flex-wrap:wrap;gap:8px;padding:0 16px;margin-top:14px;color:var(--qtx1481-muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.qtx-phase1481-cards :where(.wp-block-post-title,h2.entry-title,h3.entry-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title){padding:0 16px;margin:0;color:var(--qtx1481-text);font-size:clamp(20px,2.6vw,26px);line-height:1.08;letter-spacing:-.04em}
.qtx-phase1481-cards :where(.wp-block-post-title a,h2.entry-title a,h3.entry-title a,.qtx-guide-card h3 a,.qtx-card-title a,.qtx-guide-card__title a){color:inherit;text-decoration:none}
.qtx-phase1481-cards :where(.wp-block-post-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title) a,.qtx-phase1481-cards :where(.wp-block-post-title a,h2.entry-title a,h3.entry-title a){display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-wrap:pretty}
.qtx-phase1481-cards :where(.wp-block-post-excerpt,.entry-summary,.post-excerpt,.qtx-guide-card p,.qtx-guide-card__excerpt,.qtx-card-excerpt){padding:0 16px;margin:0;color:#475569;font-size:14px;line-height:1.58;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;text-wrap:pretty}
.qtx-phase1481-cards :where(.wp-block-post-excerpt p,.entry-summary p,.post-excerpt p,.qtx-guide-card p,.qtx-guide-card__excerpt p,.qtx-card-excerpt p){margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.qtx-phase1481-cards :where(.wp-block-post-date,.posted-on,.entry-date,.qtx-guide-card__date,.qtx-card-date,.wp-block-post-author,.byline,.qtx-guide-card__author,.qtx-guide-card__reviewer,.qtx-card-meta,.entry-meta){display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:0 16px 16px;margin-top:auto;color:var(--qtx1481-muted);font-size:12px;line-height:1.45}
.qtx-phase1481-cards :where(.entry-meta a,.qtx-card-meta a,.wp-block-post-author a,.byline a){color:inherit;text-decoration:none}
.qtx-phase1481-cards :where(.wp-block-post-date)::before,.qtx-phase1481-cards :where(.posted-on)::before,.qtx-phase1481-cards :where(.entry-date)::before{content:"Aggiornata";display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--qtx1481-soft);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#475569}
.qtx-phase1481-cards :where(.wp-block-post-author,.byline,.qtx-guide-card__author,.qtx-guide-card__reviewer){padding-top:0;margin-top:-8px}
.qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article):hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(15,23,42,.1);border-color:#c9d7ea}
.qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
@media (max-width:782px){
  .qtx-phase1481-cards :where(.wp-block-query__posts,.qtx-guide-grid,.related-posts__list,.related-articles__list,.qtx-related-guides__list,.qtx-reading-now__list){grid-template-columns:1fr;gap:14px}
  .qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article,.qtx-related-guides article,.qtx-reading-now article){border-radius:20px}
  .qtx-phase1481-cards :where(.wp-block-post-featured-image,.post-thumbnail,.entry-media,.qtx-guide-card__media,.qtx-card-thumb,.qtx-guide-card img:first-child){max-height:198px}
  .qtx-phase1481-cards :where(.wp-block-post-title,h2.entry-title,h3.entry-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title){font-size:clamp(18px,5.5vw,22px)}
  .qtx-phase1481-cards :where(.wp-block-post-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title) a,.qtx-phase1481-cards :where(.wp-block-post-title a,h2.entry-title a,h3.entry-title a){-webkit-line-clamp:3}
  .qtx-phase1481-cards :where(.wp-block-post-excerpt,.entry-summary,.post-excerpt,.qtx-guide-card p,.qtx-guide-card__excerpt,.qtx-card-excerpt),.qtx-phase1481-cards :where(.wp-block-post-excerpt p,.entry-summary p,.post-excerpt p,.qtx-guide-card p,.qtx-guide-card__excerpt p,.qtx-card-excerpt p){-webkit-line-clamp:3}
}
@media (max-width:430px){
  .qtx-phase1481-cards :where(.wp-block-post-terms,.post-categories,.entry-category,.qtx-card-kicker,.qtx-guide-card__kicker),.qtx-phase1481-cards :where(.wp-block-post-title,h2.entry-title,h3.entry-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title),.qtx-phase1481-cards :where(.wp-block-post-excerpt,.entry-summary,.post-excerpt,.qtx-guide-card p,.qtx-guide-card__excerpt,.qtx-card-excerpt),.qtx-phase1481-cards :where(.wp-block-post-date,.posted-on,.entry-date,.qtx-guide-card__date,.qtx-card-date,.wp-block-post-author,.byline,.qtx-guide-card__author,.qtx-guide-card__reviewer,.qtx-card-meta,.entry-meta){padding-left:14px;padding-right:14px}
  .qtx-phase1481-cards :where(.wp-block-post,.qtx-guide-card,.related-post,.related-article,.qtx-related-guides article,.qtx-reading-now article){gap:10px}
}
@media (max-width:390px){
  .qtx-phase1481-cards :where(.wp-block-post-featured-image,.post-thumbnail,.entry-media,.qtx-guide-card__media,.qtx-card-thumb,.qtx-guide-card img:first-child){max-height:180px}
}
@media (max-width:360px){
  .qtx-phase1481-cards :where(.wp-block-post-title,h2.entry-title,h3.entry-title,.qtx-guide-card h3,.qtx-card-title,.qtx-guide-card__title){font-size:clamp(17px,5.3vw,20px)}
  .qtx-phase1481-cards :where(.wp-block-post-excerpt,.entry-summary,.post-excerpt,.qtx-guide-card p,.qtx-guide-card__excerpt,.qtx-card-excerpt){font-size:13px;line-height:1.55}
}
@media (max-width:320px){
  .qtx-phase1481-cards :where(.wp-block-post-featured-image,.post-thumbnail,.entry-media,.qtx-guide-card__media,.qtx-card-thumb,.qtx-guide-card img:first-child){max-height:166px}
  .qtx-phase1481-cards :where(.wp-block-post-date,.posted-on,.entry-date,.qtx-guide-card__date,.qtx-card-date,.wp-block-post-author,.byline,.qtx-guide-card__author,.qtx-guide-card__reviewer,.qtx-card-meta,.entry-meta){gap:6px;font-size:11px}
}
