/* TF-ARTICLE-2026-07-25 — layout condiviso articoli /guide/* e /blog/*.
   Path comune (mai copiare queste regole nelle pagine): palette e pattern
   allineati a tutorial.html/come-funziona (ink #0f172a, ambra #f59e0b/#b45309,
   cream #fff7ed, bordi #fde68a). Bump ?v= a ogni modifica. */

.tfa-wrap{ position:relative; max-width:1290px; margin:0 auto; padding:0 20px; }

/* ── testata articolo ── */
.tfa-hero{ background:linear-gradient(180deg,#fffbf5 0%,#fff 100%); padding:150px 0 34px; }
.tfa-crumb{ margin:0 0 22px; font-size:13px; color:rgba(15,23,42,.5); }
.tfa-crumb a{ color:rgba(15,23,42,.5); text-decoration:none; }
.tfa-crumb a:hover{ color:#b45309; }
.tfa-crumb span{ margin:0 7px; color:rgba(15,23,42,.28); }
.tfa-eyebrow{ margin:0 0 14px; font-size:12px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:#b45309; }
.tfa-h1{ margin:0 0 16px; max-width:24ch; font-size:clamp(32px,4vw,46px); line-height:1.1;
  letter-spacing:-0.03em; font-weight:700; color:#0f172a; }
.tfa-sub{ margin:0 0 20px; max-width:60ch; font-size:17px; line-height:1.6; color:rgba(15,23,42,.62); }
/* NON flex: i flex item scartano i nodi di solo spazio, e "Aggiornata al <b>data</b>"
   si incollava ("al25 luglio"). Stesso pattern inline di .tvd-trust in tutorial. */
.tfa-meta{ margin:0; font-size:13.5px; line-height:1.6; color:rgba(15,23,42,.52); }
.tfa-meta b{ color:#0f172a; font-weight:650; }
.tfa-meta-dot{ margin:0 8px; color:rgba(15,23,42,.28); }

/* ── griglia indice + corpo ── */
.tfa-grid{ display:grid; grid-template-columns:minmax(0,250px) minmax(0,1fr); gap:40px 56px;
  align-items:start; padding:38px 0 8px; }
.tfa-toc{ position:sticky; top:130px; border:1px solid #eceae7; border-radius:16px;
  background:#fff; padding:18px 18px 16px; }
.tfa-toc b{ display:block; font-size:11.5px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(15,23,42,.4); margin-bottom:10px; }
.tfa-toc ol{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px;
  counter-reset:tfa-toc; }
.tfa-toc a{ display:flex; gap:9px; padding:6px 8px; border-radius:9px; font-size:13.5px;
  line-height:1.35; color:rgba(15,23,42,.68); text-decoration:none; counter-increment:tfa-toc; }
.tfa-toc a::before{ content:counter(tfa-toc,decimal-leading-zero); flex:none; font-size:11px;
  font-weight:700; color:#b45309; font-variant-numeric:tabular-nums; margin-top:2px; }
.tfa-toc a:hover{ background:#fff7ed; color:#0f172a; }

/* ── corpo prosa ── */
.tfa-body{ min-width:0; }
.tfa-body h2{ margin:44px 0 14px; max-width:26ch; font-size:clamp(22px,2.3vw,29px); line-height:1.18;
  letter-spacing:-0.022em; font-weight:700; color:#0f172a; scroll-margin-top:120px; }
.tfa-body h2:first-child{ margin-top:0; }
.tfa-body h3{ margin:28px 0 10px; font-size:18px; line-height:1.3; font-weight:650; color:#0f172a;
  scroll-margin-top:120px; }
.tfa-body p{ margin:0 0 16px; max-width:70ch; font-size:16px; line-height:1.68; color:rgba(15,23,42,.68); }
.tfa-body p b, .tfa-body li b{ color:#0f172a; font-weight:650; }
.tfa-body a{ color:#b45309; font-weight:600; text-decoration:underline;
  text-decoration-color:rgba(180,83,9,.3); text-underline-offset:3px; }
.tfa-body a:hover{ text-decoration-color:#b45309; }
.tfa-body ul{ margin:0 0 16px; padding:0 0 0 2px; list-style:none; display:flex;
  flex-direction:column; gap:9px; }
.tfa-body ul li{ position:relative; padding-left:22px; max-width:68ch; font-size:15.5px;
  line-height:1.62; color:rgba(15,23,42,.68); }
.tfa-body ul li::before{ content:""; position:absolute; left:2px; top:9px; width:7px; height:7px;
  border-radius:999px; background:#f59e0b; }

/* lista passi numerati (chip come tvd-steps) */
.tfa-steps{ list-style:none; margin:0 0 18px; padding:0; display:flex; flex-direction:column; gap:15px; }
.tfa-steps li{ display:grid; grid-template-columns:26px minmax(0,1fr); gap:13px; align-items:start; }
.tfa-steps .sn{ display:flex; align-items:center; justify-content:center; width:26px; height:26px;
  border-radius:9px; background:#fff7ed; border:1px solid #fde68a; color:#b45309;
  font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }
.tfa-steps b{ display:block; font-size:15px; font-weight:650; color:#0f172a; margin-bottom:3px; }
.tfa-steps p{ margin:0; max-width:60ch; font-size:14.5px; line-height:1.6; color:rgba(15,23,42,.62); }

/* chip nome-elemento-UI + callout nota (pattern tutorial) */
.tfa-ui{ display:inline-block; padding:1px 7px; border-radius:6px; border:1px solid #e4e4e7;
  background:#f7f7f8; font-size:.88em; font-weight:600; color:#3f3f46; white-space:nowrap; }
.tfa-note{ display:flex; gap:12px; margin:20px 0 22px; padding:14px 16px; border-radius:13px;
  border:1px solid #fde68a; background:#fff7ed; max-width:70ch; }
.tfa-note svg{ flex:none; width:18px; height:18px; margin-top:1px; color:#b45309; }
.tfa-note p{ margin:0; font-size:14px; line-height:1.58; color:#78350f; max-width:none; }
.tfa-note b{ font-weight:650; color:#78350f; }

/* tabelle */
.tfa-tablewrap{ overflow-x:auto; margin:0 0 18px; border:1px solid #eceae7; border-radius:14px; }
.tfa-body table{ width:100%; border-collapse:collapse; font-size:14.5px; line-height:1.5; }
.tfa-body thead th{ text-align:left; padding:11px 14px; background:#fafaf9; color:#0f172a;
  font-weight:650; font-size:13px; letter-spacing:.02em; border-bottom:1px solid #eceae7;
  white-space:nowrap; }
.tfa-body tbody td{ padding:11px 14px; color:rgba(15,23,42,.68); border-bottom:1px solid #f4f1ec;
  vertical-align:top; }
.tfa-body tbody tr:last-child td{ border-bottom:0; }
.tfa-body td b{ color:#0f172a; }

/* ── FAQ (pattern tvd-q) ── */
.tfa-faq{ margin-top:46px; }
.tfa-faq-h{ margin:0 0 16px; font-size:clamp(21px,2.2vw,26px); font-weight:700;
  letter-spacing:-0.02em; color:#0f172a; }
.tfa-q{ border:1px solid #e7e5e4; border-radius:15px; background:#fff; overflow:hidden;
  margin-bottom:10px; }
.tfa-q summary{ cursor:pointer; list-style:none; display:flex; align-items:flex-start; gap:12px;
  padding:15px 17px; font-size:15px; font-weight:600; color:#0f172a; line-height:1.4; }
.tfa-q summary::-webkit-details-marker{ display:none; }
.tfa-q summary svg{ flex:none; width:18px; height:18px; margin-top:2px; color:#b45309;
  transition:transform .2s; }
.tfa-q[open] summary svg{ transform:rotate(45deg); }
.tfa-q div{ padding:0 17px 16px 47px; }
.tfa-q p{ margin:0; font-size:14.5px; line-height:1.65; color:rgba(15,23,42,.62); }
@media (prefers-reduced-motion: reduce){ .tfa-q summary svg{ transition:none; } }

/* ── fonti normative ── */
.tfa-fonti{ margin-top:38px; padding:18px 20px; border:1px solid #eceae7; border-radius:16px;
  background:#fafaf9; }
.tfa-fonti b{ display:block; font-size:11.5px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(15,23,42,.4); margin-bottom:10px; }
.tfa-fonti ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:7px; }
.tfa-fonti li{ font-size:13.5px; line-height:1.55; color:rgba(15,23,42,.62); padding:0; }
.tfa-fonti li::before{ content:none; }
.tfa-fonti a{ color:#b45309; font-weight:600; text-decoration:underline;
  text-decoration-color:rgba(180,83,9,.3); text-underline-offset:3px; }

/* ── guide correlate (pattern tvd-ncard) ── */
.tfa-related{ padding:34px 0 10px; }
.tfa-related-h{ margin:0 0 14px; font-size:clamp(20px,2.1vw,24px); font-weight:700;
  letter-spacing:-0.02em; color:#0f172a; }
.tfa-rgrid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.tfa-rcard{ display:block; border:1px solid #e7e5e4; border-radius:16px; padding:20px; background:#fff;
  text-decoration:none; transition:border-color .15s, box-shadow .15s; }
.tfa-rcard:hover{ border-color:#fde68a; box-shadow:0 14px 34px -24px rgba(180,83,9,.4); }
.tfa-rcard b{ display:block; font-size:15px; color:#0f172a; margin-bottom:6px; line-height:1.35; }
.tfa-rcard p{ margin:0 0 10px; font-size:13.5px; line-height:1.6; color:rgba(15,23,42,.58); }
.tfa-rcard span{ font-size:13.5px; font-weight:600; color:#b45309; }

/* ── responsive ── */
@media (max-width:1023px){
  .tfa-hero{ padding:132px 0 26px; }
  .tfa-grid{ grid-template-columns:minmax(0,1fr); gap:26px; padding-top:26px; }
  .tfa-toc{ position:static; }
  .tfa-rgrid{ grid-template-columns:minmax(0,1fr); }
}
@media (max-width:639px){
  .tfa-h1{ font-size:29px; }
  .tfa-toc{ padding:15px; }
}

/* ══════════════════════════════════════════════════════════════════════
   TF-HUB-2026-07-25 — indici /guide e /blog. PATH COMUNE: le due pagine
   condividono queste classi, prima erano ~250 righe di utility Tailwind
   duplicate + due <style> inline + due hero diversi (uno col gradiente
   scuro e le saette fluttuanti). Palette e comportamenti sono quelli
   approvati di tutorial/come-funziona: cream #fff7ed, bordo #fde68a,
   hover = bordo ambra + lift 2px, zero gradienti sgargianti.
   ══════════════════════════════════════════════════════════════════════ */

.tfh-hero{ background:linear-gradient(180deg,#fffbf5 0%,#fff 100%); padding:150px 0 46px; }
.tfh-hero-in{ max-width:760px; margin:0 auto; text-align:center; }
.tfh-eyebrow{ margin:0 0 16px; font-size:12px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:#b45309; }
.tfh-h1{ margin:0 auto 18px; max-width:22ch; font-size:clamp(36px,4.4vw,52px); line-height:1.07;
  letter-spacing:-0.03em; font-weight:700; color:#0f172a; text-wrap:balance; }
/* accento cangiante: stessa firma gradiente della hero index/tutorial */
.tfh-accent{ background:linear-gradient(120deg,#f59e0b 0%,#fb923c 45%,#ef4444 95%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  background-size:200% 100%; background-position:0% 50%;
  animation:tfhGrad 8s ease-in-out infinite; font-style:normal; }
@keyframes tfhGrad{ 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@media (prefers-reduced-motion: reduce){ .tfh-accent{ animation:none; } }
.tfh-sub{ margin:0 auto; max-width:56ch; font-size:17.5px; line-height:1.6; color:rgba(15,23,42,.62); }
.tfh-trust{ margin:20px 0 0; font-size:13.5px; color:rgba(15,23,42,.52); }
.tfh-trust b{ color:#0f172a; font-weight:650; }
.tfh-trust-dot{ margin:0 8px; color:rgba(15,23,42,.28); }

.tfh-band{ background:#fff; padding:8px 0 72px; }
.tfh-band--alt{ background:#fafaf9; border-top:1px solid #f1f0ee; padding:64px 0; }

/* ── articolo in evidenza ── */
.tfh-lead{ display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:0;
  border:1px solid #e7e5e4; border-radius:20px; background:#fff; overflow:hidden;
  margin-bottom:16px; transition:border-color .18s, box-shadow .18s; }
.tfh-lead:hover{ border-color:#fde68a; box-shadow:0 18px 40px -26px rgba(180,83,9,.4); }
.tfh-lead-copy{ padding:clamp(26px,3vw,40px); display:flex; flex-direction:column; justify-content:center; }
.tfh-lead h2{ margin:0 0 12px; max-width:24ch; font-size:clamp(23px,2.4vw,30px); line-height:1.16;
  letter-spacing:-0.022em; font-weight:700; color:#0f172a; }
.tfh-lead p{ margin:0 0 18px; max-width:52ch; font-size:15.5px; line-height:1.62; color:rgba(15,23,42,.62); }
.tfh-lead-fig{ position:relative; background:#fff7ed; border-left:1px solid #fde68a;
  display:flex; align-items:center; justify-content:center; min-height:210px; }
.tfh-lead-fig svg{ width:88px; height:88px; color:#f59e0b; opacity:.85; }

/* ── griglia card ── */
.tfh-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.tfh-card{ display:flex; flex-direction:column; padding:22px 22px 20px; border-radius:16px;
  border:1px solid #e7e5e4; background:#fff; text-decoration:none;
  transition:border-color .18s, box-shadow .18s, transform .18s; }
.tfh-card:hover{ border-color:#fde68a; transform:translateY(-2px);
  box-shadow:0 16px 34px -22px rgba(180,83,9,.38); }
.tfh-ic{ display:flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:11px; background:#fff7ed; border:1px solid #fde68a; margin-bottom:14px; }
.tfh-ic svg{ flex:none; width:19px; height:19px; color:#b45309; }
.tfh-meta{ display:block; margin-bottom:7px; font-size:10.5px; font-weight:700; letter-spacing:.08em;
  text-transform:uppercase; color:rgba(15,23,42,.38); font-variant-numeric:tabular-nums; }
.tfh-t{ margin:0 0 8px; font-size:16.5px; font-weight:650; line-height:1.32; color:#0f172a; }
.tfh-d{ margin:0 0 16px; font-size:13.5px; line-height:1.6; color:rgba(15,23,42,.58); }
.tfh-go{ margin-top:auto; font-size:13.5px; font-weight:600; color:#b45309; }

/* ── box aiuto + newsletter (versione chiara: prima erano bande ambra scure) ── */
.tfh-help{ max-width:560px; margin:44px auto 0; padding:26px 28px; text-align:center;
  border-radius:18px; border:1px solid #fde68a; background:#fff7ed; }
.tfh-help b{ display:block; margin-bottom:6px; font-size:17px; font-weight:650; color:#0f172a; }
.tfh-help p{ margin:0 0 18px; font-size:14.5px; line-height:1.6; color:rgba(15,23,42,.62); }
.tfh-btn{ display:inline-flex; align-items:center; gap:8px; padding:12px 24px; border-radius:12px;
  background:#f59e0b; color:#fff; font-size:14.5px; font-weight:600; text-decoration:none;
  white-space:nowrap; transition:background-color .15s; }
/* flex:none + misure esplicite: senza queste l'SVG si gonfia e spezza il testo su 3 righe */
.tfh-btn svg{ flex:none; width:16px; height:16px; }
.tfh-btn:hover{ background:#d97706; }
.tfh-btn:focus-visible{ outline:2px solid #b45309; outline-offset:2px; }
.tfh-news{ max-width:640px; margin:0 auto; text-align:center; }
.tfh-news h2{ margin:0 0 10px; font-size:clamp(24px,2.5vw,31px); line-height:1.16;
  letter-spacing:-0.022em; font-weight:700; color:#0f172a; }
.tfh-news p{ margin:0 auto 24px; max-width:46ch; font-size:15.5px; line-height:1.6;
  color:rgba(15,23,42,.62); }
.tfh-form{ display:flex; gap:10px; max-width:480px; margin:0 auto; }
.tfh-form input{ flex:1; min-width:0; padding:13px 18px; border-radius:12px; border:1px solid #e7e5e4;
  background:#fff; font:inherit; font-size:15px; color:#0f172a; transition:border-color .15s, box-shadow .15s; }
.tfh-form input::placeholder{ color:rgba(15,23,42,.38); }
.tfh-form input:focus{ outline:none; border-color:#f59e0b; box-shadow:0 0 0 4px rgba(245,158,11,.14); }
.tfh-form button{ flex:none; padding:13px 24px; border-radius:12px; border:0; background:#0f172a;
  color:#fff; font:inherit; font-size:14.5px; font-weight:600; cursor:pointer;
  transition:background-color .15s; }
.tfh-form button:hover{ background:#1e293b; }
.tfh-fine{ margin:16px 0 0; font-size:12.5px; line-height:1.55; color:rgba(15,23,42,.45); }
.tfh-fine a{ color:#b45309; font-weight:600; text-decoration:underline;
  text-decoration-color:rgba(180,83,9,.3); text-underline-offset:3px; }
.tfh-msg{ margin:14px 0 0; font-size:14px; font-weight:600; }
.tfh-ok{ color:#047857; }
.tfh-err{ color:#b91c1c; }

@media (max-width:1023px){
  .tfh-hero{ padding:134px 0 36px; }
  .tfh-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .tfh-lead{ grid-template-columns:minmax(0,1fr); }
  .tfh-lead-fig{ order:-1; min-height:170px; border-left:0; border-bottom:1px solid #fde68a; }
  .tfh-band{ padding-bottom:56px; }
}
@media (max-width:639px){
  .tfh-hero{ padding:126px 0 30px; }
  .tfh-h1{ font-size:clamp(30px,8.4vw,37px); }
  .tfh-sub{ font-size:16.5px; }
  .tfh-grid{ grid-template-columns:minmax(0,1fr); }
  .tfh-form{ flex-direction:column; }
  .tfh-form button{ width:100%; }
}
