/* Strumenti con testo e file (agenzia/, 22/11/2026): GTIN, UTM, anteprima su Google, dataLayer, dati strutturati,
   feed Merchant. Stessa impaginazione dei simulatori (simulatori.css: campi a sinistra, pannello scuro a destra);
   qui solo campi di testo, elenchi dei controlli, blocchi di codice e anteprime. Colori dai token del sito e dal
   tema del simulatore (--a, --p-*). */

/* ---------- campi ---------- */
.st-field { margin-bottom: 14px; min-width: 0; }
.st-field label { display: block; margin-bottom: 6px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.st-field label small { font-weight: 500; color: var(--muted); }
.st-field input:not([type="checkbox"]), .st-field select, .st-field textarea {
  display: block; width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid #64748b; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font: 500 16px/1.4 var(--sans); }
.st-field textarea { min-height: 132px; resize: vertical; font-family: var(--mono); font-size: 15px; }
.st-field input[type="file"] { padding: 8px; cursor: pointer; }
.st-field input:focus-visible, .st-field select:focus-visible, .st-field textarea:focus-visible,
.st-check input:focus-visible, .st-copia:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
.st-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.st-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.st-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-weight: 500; color: var(--ink); }
.st-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--a); flex: none; }
.st [hidden] { display: none !important; }
.st-freq { margin: 18px 0 6px; font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.st-check a { color: inherit; }
.st-articolo { margin: 0 0 12px; padding: 12px 12px 0; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.st-articolo legend { padding: 0 6px; }

/* ---------- pannello dei risultati ---------- */
.st-controlli, .st-elenco { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.st-c { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 12px;
  border: 1px solid var(--p-line); border-left-width: 4px; border-radius: 10px; background: var(--p-card); font-size: 14px; line-height: 1.45; color: var(--p-text); }
.st-c code { font-family: var(--mono); font-size: 13px; color: var(--p-strong); overflow-wrap: anywhere; }
.st-c-l { font: 700 11px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.st-ok { border-left-color: #34d399; } .st-ok .st-c-l { color: #34d399; }
.st-ko { border-left-color: #f87171; } .st-ko .st-c-l { color: #fca5a5; }
.st-warn { border-left-color: #fbbf24; } .st-warn .st-c-l { color: #fcd34d; }
.st-elenco { max-height: 360px; overflow: auto; }
/* tema ads: pannello chiaro, etichette scure (contrasto AA: 5,5-5,7 su #f8f9fa; il giallo 4,8) */
.sim-t-ads .st-ok { border-left-color: #137333; } .sim-t-ads .st-ok .st-c-l { color: #137333; }
.sim-t-ads .st-ko { border-left-color: #c5221f; } .sim-t-ads .st-ko .st-c-l { color: #c5221f; }
.sim-t-ads .st-warn { border-left-color: #b45309; } .sim-t-ads .st-warn .st-c-l { color: #b45309; }

.st-code-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 8px; }
.st-code-head .sim-sub { margin: 0; }
.st-copia { min-height: 44px; padding: 6px 16px; border: 1px solid var(--p-line); border-radius: 999px; background: transparent; color: var(--p-text); font: 600 13px/1 var(--sans); cursor: pointer; }
.st-copia:hover { border-color: var(--p-acc); color: var(--p-strong); }
html:not(.js) .st-copia { display: none; }
.st-code { margin: 0; max-height: 420px; overflow: auto; padding: 14px 16px; border: 1px solid var(--p-line); border-radius: 12px;
  background: rgba(0, 0, 0, .28); color: var(--p-strong); font: 500 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.sim-t-ads .st-code { background: #f8f9fa; color: #202124; }

/* ---------- anteprime (un'idea dell'aspetto, non una copia di Google) ---------- */
.st-pv { margin-top: 6px; padding: 16px 18px; border-radius: 12px; background: #fff; color: #202124; font-family: Arial, sans-serif;
  border: 1px solid #dadce0; overflow: hidden; }
.st-pv-url { margin: 0 0 4px; font-size: 14px; line-height: 1.3; color: #202124; overflow-wrap: anywhere; }
.st-pv-t { margin: 0 0 4px; font-size: 20px; line-height: 1.3; font-weight: 400; color: #1a0dab; }
.st-pv-d { margin: 0; font-size: 14px; line-height: 1.58; color: #4d5156; }
.st-pv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 6px 0 0; font-size: 14px; color: #4d5156; }
.st-pv-meta span:empty { display: none; }
.st-pv-prezzo { font-weight: 700; color: #202124; }

@media (max-width: 600px) {
  .st-row2, .st-row3 { grid-template-columns: 1fr; }
}
@media print {
  .st-c, .st-code { color: #000; background: #fff; border-color: #999; }
  .st-copia { display: none; }
}
