/* =============================================================================
   ASA-FORTIGATE.CSS — stili del convertitore Cisco ASA -> FortiGate.
   Solo token di style.css (ridefiniti da v2-shell.css nella grafica attuale):
   niente colori di tema fissi, tranne gli sfondi dei blocchi di codice, che
   restano scuri anche nel tema chiaro dell'archivio per leggibilita'.
   ========================================================================== */

.a2f-head { margin-bottom: 26px; }
.a2f-privacy { display: inline-flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--muted); margin: .35rem 0 0; }
.a2f-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); flex: none; }

/* ------------------------------------------------------------------ step */
.a2f-step {
  max-width: 1040px; margin: 0 auto 26px; padding: 22px 22px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-soft) 88%, var(--accent) 12%) 0, var(--bg-soft) 120px);
  box-shadow: var(--shadow-sm);
}
.a2f-step__title { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; margin: 0 0 14px; }
.a2f-step__n {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--grad); color: var(--accent-ink, #04211d); font-family: var(--mono); font-weight: 800; font-size: .85rem;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.a2f-help { color: var(--muted); font-size: .9rem; margin: -4px 0 16px; max-width: 72ch; }

/* ----------------------------------------------------------------- input */
.a2f-label { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); margin: 0 0 6px; font-family: var(--mono); }
.a2f-textarea {
  width: 100%; min-height: 240px; resize: vertical; box-sizing: border-box;
  padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: #070b10; color: #d6e2ee; font-family: var(--mono); font-size: .82rem; line-height: 1.55;
  transition: border-color .2s, box-shadow .2s;
}
.a2f-textarea::placeholder { color: #5e6d7f; }
.a2f-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.a2f-hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.a2f-hint code, .a2f-help code { font-family: var(--mono); font-size: .92em; background: var(--bg-soft-2); padding: 1px 6px; border-radius: 5px; }
.a2f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.a2f-upload { cursor: pointer; }

.a2f-out { max-width: 1040px; margin: 0 auto; }
.a2f-out > .loader { text-align: center; color: var(--muted); padding: 18px 0; }
.a2f-error {
  max-width: 1040px; margin: 0 auto 24px; padding: 14px 16px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, #f43f5e 45%, var(--line)); background: color-mix(in srgb, #f43f5e 10%, var(--bg-soft)); color: var(--text);
}

/* --------------------------------------------------------------- opzioni */
.a2f-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.a2f-check, .a2f-num {
  position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft-2);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.a2f-check:hover, .a2f-num:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.a2f-check b, .a2f-num b { display: block; font-size: .88rem; }
.a2f-check small, .a2f-num small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: 3px; }
.a2f-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a2f-check__box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--line-2);
  background: var(--bg-soft); transition: background .15s, border-color .15s; position: relative;
}
.a2f-check input:checked + .a2f-check__box { background: var(--accent); border-color: var(--accent); }
.a2f-check input:checked + .a2f-check__box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid var(--accent-ink, #04211d); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.a2f-check input:focus-visible + .a2f-check__box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.a2f-num { flex-direction: column; cursor: default; }

/* VDOM dedicato: scheda con controlli interni */
.a2f-vdom {
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft-2);
  transition: border-color .2s, box-shadow .2s;
}
.a2f-vdom:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.a2f-vdom.is-on { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.a2f-check--bare { padding: 0; border: 0; background: none; }
.a2f-check--bare:hover { transform: none; box-shadow: none; }
.a2f-vdom__fields { margin: 12px 0 0 32px; }
.a2f-vdom__fields .a2f-input { max-width: 260px; }
.a2f-check--sub { margin-top: 10px; }
.a2f-check.is-locked { cursor: not-allowed; }
.a2f-check.is-locked b { color: var(--muted); }
.a2f-check.is-locked .a2f-check__box { opacity: .5; }
.a2f-num .a2f-input--num { width: 120px; }

/* ------------------------------------------------------ tabella interfacce */
.a2f-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.a2f-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 640px; }
.a2f-table th {
  text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-soft-2); padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.a2f-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.a2f-table tr:last-child td { border-bottom: 0; }
.a2f-table tbody tr { transition: background .15s; }
.a2f-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.a2f-mono { font-family: var(--mono); font-size: .82rem; }
.a2f-sub { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.a2f-input {
  width: 100%; max-width: 190px; box-sizing: border-box; min-height: 38px; padding: 7px 10px;
  border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: .84rem; transition: border-color .15s, box-shadow .15s;
}
.a2f-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.a2f-input.is-bad { border-color: #f43f5e; }
.a2f-input:disabled { opacity: .5; cursor: not-allowed; background: var(--bg-soft-2); }
.a2f-input:disabled + .a2f-flag { color: var(--muted); }
.a2f-input.is-todo { border-color: #fb923c; }
.a2f-flag { display: block; font-size: .74rem; margin-top: 4px; min-height: 1em; color: #fb923c; }
.a2f-input.is-bad + .a2f-flag { color: #f43f5e; }

/* ----------------------------------------------------------- riepilogo */
.a2f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.a2f-chip {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-soft-2); font-size: .82rem; color: var(--muted);
}
.a2f-chip b { color: var(--text); font-weight: 800; font-family: var(--mono); }
.a2f-chip--manual { border-color: color-mix(in srgb, #f43f5e 50%, var(--line)); }
.a2f-chip--manual b { color: #fb7185; }
.a2f-chip--warn { border-color: color-mix(in srgb, #fb923c 50%, var(--line)); }
.a2f-chip--warn b { color: #fdba74; }
.a2f-chip--ok b { color: #34d399; }

.a2f-callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .9rem; border: 1px solid var(--line);
}
.a2f-callout--manual { border-color: color-mix(in srgb, #f43f5e 40%, var(--line)); background: color-mix(in srgb, #f43f5e 8%, var(--bg-soft)); }
.a2f-callout--ok { border-color: color-mix(in srgb, #34d399 35%, var(--line)); background: color-mix(in srgb, #34d399 7%, var(--bg-soft)); }

/* ---------------------------------------------------------------- tab */
.a2f-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.a2f-tabs__spacer { flex: 1 1 auto; }
.a2f-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer;
  transition: color .15s, background .15s, border-color .15s;
}
.a2f-tab:hover { color: var(--text); background: var(--bg-soft-2); }
.a2f-tab.is-on { color: var(--text); background: var(--bg-soft-2); border-color: var(--line-2); box-shadow: inset 0 -2px 0 var(--accent); }
.a2f-tab__n { font-family: var(--mono); font-size: .74rem; padding: 1px 7px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); }
.a2f-tab:focus-visible, .a2f-filter:focus-visible, .a2f-copy:focus-visible, .a2f-secnav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------- script */
.a2f-secnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.a2f-secnav a {
  font-size: .78rem; color: var(--muted); text-decoration: none; padding: 5px 10px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-soft-2); transition: color .15s, border-color .15s;
}
.a2f-secnav a:hover { color: var(--text); border-color: var(--accent); }
.a2f-secnav b { font-family: var(--mono); color: var(--accent); font-weight: 700; }

.a2f-code {
  margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden;
  background: #070b10; box-shadow: 0 14px 40px rgba(0, 0, 0, .35); scroll-margin-top: 90px;
}
.a2f-code__head {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: linear-gradient(180deg, #111923, #0c131b); border-bottom: 1px solid #1c2735;
}
.a2f-code__head h3 { margin: 0; font-size: .86rem; color: #e6eef7; font-weight: 700; }
.a2f-code__n { font-family: var(--mono); font-size: .72rem; color: #5eead4; border: 1px solid #1f3b3a; border-radius: 6px; padding: 1px 6px; }
.a2f-code__meta { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: #6b7d91; }
.a2f-copy {
  min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #243345; background: #0e1620; color: #c7d3df;
  font: inherit; font-size: .78rem; cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.a2f-copy:hover { color: #5eead4; border-color: #2dd4bf; }
.a2f-copy.is-done, #a2fCopyAll.is-done { color: #34d399; border-color: rgba(52, 211, 153, .55); }
.a2f-code pre { margin: 0; padding: 12px 14px; overflow-x: auto; max-height: 560px; overflow-y: auto; }
/* display:block e sfondo azzerati: lo stile globale di <code> (inline, con
   sfondo e padding) disegnava una fascia dietro l'indentazione di ogni riga. */
.a2f-code code { display: block; background: none; border: 0; padding: 0; border-radius: 0; font-family: var(--mono); font-size: .8rem; line-height: 1.6; color: #b9c6d3; white-space: pre; }
.a2f-code .k { color: #5eead4; font-weight: 600; }
.a2f-code .s { color: #7d8ea1; }
.a2f-code .p { color: #93c5fd; }
.a2f-code .q { color: #fcd34d; }
.a2f-more { margin: 0 14px 12px; }

/* ---------------------------------------------------------- report */
.a2f-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.a2f-filter {
  min-height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft-2);
  color: var(--muted); font: inherit; font-size: .84rem; cursor: pointer; transition: color .15s, border-color .15s;
}
.a2f-filter b { font-family: var(--mono); color: var(--text); margin-left: 3px; }
.a2f-filter:hover { color: var(--text); border-color: var(--line-2); }
.a2f-filter.is-on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft-2)); }

.a2f-report { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.a2f-rep {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); border-left-width: 3px; background: var(--bg-soft-2);
}
.a2f-rep--manual { border-left-color: #f43f5e; }
.a2f-rep--warn { border-left-color: #fb923c; }
.a2f-rep--info { border-left-color: #60a5fa; }
.a2f-badge {
  flex: none; min-width: 62px; text-align: center; font-size: .7rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 6px; margin-top: 1px;
}
.a2f-rep--manual .a2f-badge { color: #fecdd3; background: rgba(244, 63, 94, .18); }
.a2f-rep--warn .a2f-badge { color: #fed7aa; background: rgba(251, 146, 60, .18); }
.a2f-rep--info .a2f-badge { color: #bfdbfe; background: rgba(96, 165, 250, .16); }
.a2f-rep__body { min-width: 0; }
.a2f-rep__body p { margin: 0; font-size: .88rem; line-height: 1.5; }
.a2f-rep__body code {
  display: block; margin-top: 6px; font-family: var(--mono); font-size: .76rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.a2f-rep__ln { color: var(--accent); }

/* ------------------------------------------ passo 2: scenario e versione */
.a2f-detect { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: .84rem; color: var(--text); font-family: var(--mono); }
.a2f-detect::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.a2f-layouts { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a2f-layouts legend { margin-bottom: 8px; }
.a2f-layout {
  position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft-2);
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.a2f-layout:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.a2f-layout.is-on { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--bg-soft-2)) 0, var(--bg-soft-2) 100%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent), var(--shadow-sm); }
.a2f-layout input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a2f-layout__dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg-soft); position: relative; transition: border-color .15s; }
.a2f-layout.is-on .a2f-layout__dot { border-color: var(--accent); }
.a2f-layout.is-on .a2f-layout__dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.a2f-layout input:focus-visible + .a2f-layout__dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.a2f-layout b { display: block; font-size: .9rem; }
.a2f-layout small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; margin-top: 3px; }
.a2f-dest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.a2f-dest__field { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-soft-2); }
.a2f-dest__field .a2f-input { max-width: 260px; }
.a2f-dest__field .a2f-hint { display: block; }
.a2f-select { appearance: none; cursor: pointer; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.a2f-subtitle { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin: 6px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }

/* -------------------------------------------- suggerimenti e correzioni */
.a2f-chip--tip { border-color: color-mix(in srgb, #a78bfa 50%, var(--line)); }
.a2f-chip--tip b { color: #c4b5fd; }
.a2f-rep--tip { border-left-color: #a78bfa; }
.a2f-rep--tip .a2f-badge { color: #ddd6fe; background: rgba(167, 139, 250, .18); }
.a2f-fixes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.a2f-fix {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600;
  padding: 6px 12px; min-height: 34px; border-radius: 999px; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 10%, var(--bg-soft));
  transition: background .15s, border-color .15s, transform .15s;
}
.a2f-fix::before { content: "↺"; color: var(--accent); font-weight: 800; }
.a2f-fix:hover { background: color-mix(in srgb, var(--accent) 20%, var(--bg-soft)); border-color: var(--accent); transform: translateY(-1px); }
.a2f-fix:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a2f-applied {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 14px;
  border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, #34d399 40%, var(--line)); background: color-mix(in srgb, #34d399 8%, var(--bg-soft)); font-size: .88rem;
}

/* ----------------------------------------------- FortiGate di destinazione */
.a2f-optional {
  margin-left: 4px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px;
}
.a2f-textarea--short { min-height: 130px; }
.a2f-howto { margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft-2); }
.a2f-howto summary { cursor: pointer; padding: 10px 14px; font-size: .86rem; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.a2f-howto summary:hover { color: var(--accent); }
.a2f-howto[open] summary { border-bottom: 1px solid var(--line); }
.a2f-howto__cmd { margin: 12px 14px 4px; padding: 10px 12px; border-radius: 8px; background: #070b10; color: #cfe3dd; font-family: var(--mono); font-size: .8rem; line-height: 1.6; overflow-x: auto; }
.a2f-howto .a2f-hint { margin: 6px 14px 12px; }
.a2f-target {
  margin-top: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-soft)); box-shadow: var(--shadow-sm);
}
.a2f-target--bad { border-color: color-mix(in srgb, #fb923c 45%, var(--line)); background: color-mix(in srgb, #fb923c 8%, var(--bg-soft)); }
.a2f-target__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.a2f-target__head .a2f-mono { color: var(--muted); }
.a2f-target__facts { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--text); }
.a2f-target__ports { margin: 6px 0 0; font-size: .82rem; color: var(--muted); line-height: 1.9; }
.a2f-target__ports code { font-family: var(--mono); font-size: .78rem; padding: 2px 7px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); }
.a2f-ts { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.a2f-ts--ok { color: #6ee7b7; background: rgba(52, 211, 153, .12); }
.a2f-ts--info { color: #99f6e4; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.a2f-ts--bad { color: #fda4af; background: rgba(244, 63, 94, .14); }
.a2f-ts--muted { color: var(--muted); background: var(--bg-soft-2); }

/* ------------------------------------------------------------- note */
.a2f-notes {
  max-width: 1040px; margin: 30px auto 0; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .88rem;
}
.a2f-notes p { margin: 0 0 10px; }
.a2f-notes p:last-child { margin-bottom: 0; }
.a2f-notes strong { color: var(--text); }
.a2f-disclaimer { max-width: 1040px; margin: 22px auto 0; font-size: .78rem; color: var(--muted-2); text-align: center; }

@media (max-width: 900px) {
  /* Target al tocco da almeno 44px, misurati a 375px. */
  #a2fPage .btn, .a2f-input, .a2f-tab, .a2f-copy, .a2f-filter, .a2f-secnav a, .a2f-fix { min-height: 44px; }
  .a2f-layouts, .a2f-dest { grid-template-columns: 1fr; }
  .a2f-secnav a { display: inline-flex; align-items: center; gap: 5px; }
  .a2f-opts { grid-template-columns: 1fr; }
  .a2f-step { padding: 16px 14px 18px; }
  .a2f-tabs__spacer { display: none; }
  .a2f-tabs .btn { flex: 1 1 auto; justify-content: center; }
  /* in colonna gli elementi devono occupare tutta la larghezza: senza questo
     la riga di codice (nowrap) allarga la pagina oltre lo schermo */
  .a2f-rep { flex-direction: column; gap: 6px; align-items: stretch; }
  .a2f-code__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .a2f-check, .a2f-num, .a2f-textarea, .a2f-input, .a2f-tab, .a2f-filter, .a2f-copy { transition: none; }
  .a2f-check:hover, .a2f-num:hover { transform: none; }
}
