/* Tarjama24 — area clienti. Stessa identità del sito tarjama24.com:
   blu notte ed Europa, verde e rosso di Italia e Marocco, titoli in Source Serif 4, testo in Inter, arabo in Noto Naskh. */
@font-face { font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif 4 Variable"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/source-serif-4-latin-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Noto Naskh Arabic Variable"; font-style: normal; font-display: swap; font-weight: 400 700; src: url(fonts/noto-naskh-arabic-arabic-wght-normal.woff2) format("woff2-variations"); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC; }

:root {
  --eu: #003399; --eu-2: #1747b8; --navy: #0a1a3f; --night: #061230;
  --green: #009246; --green-d: #007a3b; --red: #ce2b37; --red-d: #a51f2b; --ma-green: #006233; --gold: #f5b800; --amber: #9a5b00;
  --text: #18213a; --muted: #5b6782; --line: #e2e7f1; --paper: #f5f7fc; --card: #ffffff;
  --radius: 18px;
  --shadow: 0 2px 6px rgba(10, 26, 63, .05), 0 18px 40px -22px rgba(10, 26, 63, .28);
  --stripe: linear-gradient(90deg, var(--green) 0 16.66%, #fff 16.66% 33.33%, var(--red) 33.33% 50%, var(--eu) 50% 66.66%, #c1272d 66.66% 83.33%, var(--ma-green) 83.33% 100%);
  --font-body: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Source Serif 4 Variable", Georgia, "Times New Roman", serif;
  --wrap: 760px;
}
[dir="rtl"] { --font-body: "Noto Naskh Arabic Variable", "Inter Variable", Tahoma, sans-serif; --font-head: "Noto Naskh Arabic Variable", Georgia, serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--font-body); background: var(--paper); color: var(--text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
}
[dir="rtl"] body { font-size: 17.5px; line-height: 1.8; }
a { color: var(--eu); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.5; letter-spacing: 0; }
h1 { font-size: 1.6rem; margin: 0 0 6px; font-weight: 700; text-wrap: balance; }
h2 { font-size: 1.25rem; margin: 0 0 10px; font-weight: 700; }
h3 { font-family: var(--font-body); font-size: .82rem; margin: 22px 0 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] h3 { font-size: 1rem; text-transform: none; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: embed; }
.ic { flex: none; display: inline-block; vertical-align: -.18em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* ── Testata ── */
.stripe { height: 5px; background: var(--stripe); }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; min-width: 0; line-height: 1.15; }
.brand-mark { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(140deg, var(--eu-2), var(--navy)); color: #fff; font-family: "Source Serif 4 Variable", Georgia, serif; font-weight: 800; font-size: 1rem; position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--stripe); }
.brand-text { min-width: 0; display: flex; flex-direction: column; }
.brand-name { font-family: "Source Serif 4 Variable", Georgia, serif; font-size: 1.32rem; font-weight: 800; letter-spacing: -.02em; }
.brand-name i { font-style: normal; color: var(--green); }
.brand-name u { text-decoration: none; color: var(--red); }
.brand small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .brand small { font-size: .85rem; }
.topnav { display: none; align-items: center; gap: 4px; }
.topnav a { padding: 9px 13px; border-radius: 999px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav a:hover { background: rgba(0, 51, 153, .07); }
.topnav a.on { background: var(--navy); color: #fff; }
.langs { position: relative; flex: none; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: .88rem; cursor: pointer; font-family: "Inter Variable", system-ui, sans-serif; }
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary { border-color: var(--eu); color: var(--eu); }
.lang-list { position: absolute; top: 48px; inset-inline-end: 0; min-width: 168px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 2px; }
.lang-list button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: start; cursor: pointer; }
.lang-list button:hover { background: var(--paper); }
.lang-list button.on { background: rgba(0, 51, 153, .08); color: var(--eu); }

main { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 18px 16px 8px; flex: 1; }
main:focus, main:focus-visible { outline: none; }

/* ── Schede e bottoni ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; margin-bottom: 4px; }
.card-head > div { display: contents; }
.card-head h1 { margin: 0; }
.card-head p { grid-column: 1 / -1; margin: 12px 0 0; }
.tile { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.t-blue { background: rgba(0, 51, 153, .08); color: var(--eu); }
.t-green { background: rgba(0, 146, 70, .1); color: var(--green-d); }
.t-red { background: rgba(206, 43, 55, .09); color: var(--red); }
.t-gold { background: rgba(245, 184, 0, .18); color: var(--amber); }
.t-teal { background: rgba(15, 118, 110, .1); color: #0f766e; }

.btn, .primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s, color .2s; }
.btn:hover, .primary:hover, .secondary:hover { transform: translateY(-1px); }
.primary, .btn-primary { background: linear-gradient(135deg, var(--red), var(--red-d)); color: #fff; box-shadow: 0 10px 22px -12px rgba(206, 43, 55, .8); }
.secondary, .btn-ghost { background: #fff; color: var(--navy); border-color: rgba(10, 26, 63, .22); }
.secondary:hover, .btn-ghost:hover { border-color: var(--eu); color: var(--eu); }
.btn-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); }
.primary, .secondary { width: 100%; margin-top: 16px; }
.primary:disabled { opacity: .6; transform: none; cursor: progress; }
.pay-go { background: linear-gradient(135deg, var(--eu-2), var(--eu)); box-shadow: 0 10px 22px -12px rgba(0, 51, 153, .8); }
.link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 10px; padding: 10px 16px; border: 0; background: transparent; color: var(--eu); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }

/* ── Home ── */
.hero { position: relative; margin: -18px calc(50% - 50vw) 0; padding: 34px 16px 84px; color: #fff; background: radial-gradient(620px 320px at 0% 0%, rgba(0, 146, 70, .42), transparent 70%), radial-gradient(640px 380px at 100% 100%, rgba(206, 43, 55, .4), transparent 70%), linear-gradient(165deg, #0b2a7a, var(--navy) 55%, var(--night)); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url(pattern.svg); background-size: 120px; opacity: .13; pointer-events: none; }
.hero-in { position: relative; max-width: var(--wrap); margin: 0 auto; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 7px 14px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); font-size: .82rem; font-weight: 600; color: #e3e9f7; }
[dir="rtl"] .hero-kicker { font-size: .95rem; }
.hero-kicker .ic { color: #5fe39a; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 6.4vw, 2.9rem); line-height: 1.1; margin-bottom: 12px; }
[dir="rtl"] .hero h1 { line-height: 1.45; }
.hero-text { margin: 0; max-width: 34rem; color: #c7d3f2; font-size: 1.04rem; }

.actions { position: relative; display: grid; gap: 12px; margin: -52px 0 16px; }
.action { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--navy); text-decoration: none; transition: transform .15s, border-color .2s; }
.action:hover { transform: translateY(-2px); border-color: rgba(0, 51, 153, .35); }
.action-ico { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; }
.action-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.action-text b { font-family: var(--font-head); font-size: 1.12rem; font-weight: 700; line-height: 1.25; }
.action-text small { color: var(--muted); font-size: .88rem; line-height: 1.4; }
[dir="rtl"] .action-text small { font-size: .98rem; }
.action > .ic:last-child { color: #9aa6c0; }
[dir="rtl"] .action > .ic:last-child, [dir="rtl"] .mini-link .ic { transform: scaleX(-1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { display: inline-flex; gap: 7px; align-items: center; padding: 8px 13px; border-radius: 999px; background: rgba(0, 51, 153, .07); color: var(--eu); text-decoration: none; font-weight: 700; direction: ltr; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; letter-spacing: .03em; }
.chip small { color: var(--muted); font-weight: 500; font-family: "Inter Variable", system-ui, sans-serif; letter-spacing: 0; }

/* ── Moduli ── */
form label, fieldset { display: block; margin: 16px 0 0; font-weight: 650; color: var(--navy); font-size: .95rem; }
[dir="rtl"] form label, [dir="rtl"] fieldset { font-size: 1.02rem; }
form label small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
input, select, textarea { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; background: #fbfcff; color: var(--text); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--eu); box-shadow: 0 0 0 4px rgba(0, 51, 153, .12); background: #fff; }
input::placeholder, textarea::placeholder { color: #8b96ad; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.doc-chip { margin: 0 !important; font-weight: 500 !important; }
.doc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.doc-chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: .9rem; color: var(--text); transition: border-color .15s, background .15s, color .15s; }
[dir="rtl"] .doc-chip span { font-size: 1rem; }
.doc-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.doc-chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pick-btn { display: flex !important; align-items: center; justify-content: center; gap: 8px; margin: 0 !important; min-height: 54px; padding: 10px; border-radius: 14px; font-size: .92rem; line-height: 1.25; background: linear-gradient(135deg, var(--eu-2), var(--eu)); color: #fff !important; text-align: center; cursor: pointer; font-weight: 650 !important; }
.pick-btn.alt { background: #fff; color: var(--navy) !important; border: 1.5px dashed rgba(10, 26, 63, .3); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.thumb img { display: block; width: 100%; height: 90px; object-fit: cover; }
.thumb .pdf { display: grid; place-items: center; height: 90px; font-weight: 800; color: var(--red); }
.thumb small { display: block; padding: 3px 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb button { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(10, 26, 63, .78); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .88rem !important; color: var(--muted) !important; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--eu); }
.error { color: var(--red); font-weight: 650; min-height: 1px; margin: 10px 0 0; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }

.done { text-align: center; padding-block: 30px; }
.done-ico { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: rgba(0, 146, 70, .12); color: var(--green-d); display: grid; place-items: center; }
.code { margin: 16px auto; padding: 16px; border: 2px dashed rgba(0, 51, 153, .4); border-radius: 16px; background: rgba(0, 51, 153, .04); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .12em; color: var(--eu); }
.btns { display: grid; gap: 0; }

/* ── Codice: stato e verifica ── */
.code-form { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.code-form input { margin: 0; min-height: 56px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.08rem; letter-spacing: .06em; text-transform: uppercase; }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; font-family: "Inter Variable", system-ui, sans-serif; font-size: .92rem; }
.code-form .primary { margin: 0; }
.note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: .84rem; color: var(--muted); }
[dir="rtl"] .note { font-size: .95rem; }
.note .ic { margin-top: 3px; color: var(--green-d); }
.open-note { margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* Controllo di sicurezza (anti-robot) */
.guard { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font-size: .9rem; font-weight: 600; color: var(--navy); transition: border-color .25s, background .25s; }
[dir="rtl"] .guard { font-size: 1rem; }
.guard-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.guard-ico > span { display: none; line-height: 0; }
.guard[data-state="idle"] .g-idle, .guard[data-state="run"] .g-run, .guard[data-state="ok"] .g-ok, .guard[data-state="fail"] .g-fail { display: block; }
.guard-text { flex: 1; min-width: 0; }
.guard-brand { flex: none; font-family: "Source Serif 4 Variable", Georgia, serif; font-size: .78rem; font-weight: 800; color: #9aa6c0; letter-spacing: -.01em; }
.guard-spin { display: block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 51, 153, .2); border-top-color: var(--eu); animation: guard-spin .7s linear infinite; }
@keyframes guard-spin { to { transform: rotate(360deg); } }
.guard[data-state="run"] { border-color: rgba(0, 51, 153, .35); }
.guard[data-state="ok"] { border-color: rgba(0, 146, 70, .45); background: rgba(0, 146, 70, .06); color: var(--green-d); }
.guard[data-state="ok"] .guard-ico { background: var(--green); border-color: var(--green); color: #fff; }
.guard[data-state="fail"] { border-color: rgba(206, 43, 55, .45); background: rgba(206, 43, 55, .06); color: var(--red-d); }
.guard[data-state="fail"] .guard-ico { color: var(--red); }

.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.steps li { position: relative; display: flex; align-items: center; gap: 13px; padding: 9px 0; color: var(--muted); }
.steps li i { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #cbd3e3; background: #fff; flex: 0 0 auto; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 10.5px; top: 33px; width: 3px; height: calc(100% - 24px); background: var(--line); }
.steps li.past { color: var(--text); }
.steps li.past i { background: var(--green); border-color: var(--green); }
.steps li.past::after { background: var(--green) !important; }
.steps li.now { color: var(--navy); font-weight: 750; }
.steps li.now i { border-color: var(--eu); background: #fff; box-shadow: 0 0 0 5px rgba(0, 51, 153, .14); }
.ready { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 146, 70, .1); color: var(--green-d); font-weight: 650; }
.badge { display: inline-block; padding: 6px 13px; border-radius: 999px; font-weight: 700; }
.badge.no { background: rgba(206, 43, 55, .1); color: var(--red); }
.money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.money div { padding: 12px 10px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.money span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.3; }
[dir="rtl"] .money span { font-size: .86rem; }
.money b { font-size: 1.02rem; white-space: nowrap; color: var(--navy); }
.money .due b { color: var(--red); }
.money .ok b { color: var(--green-d); }
.docs { padding: 0; margin: 0; list-style: none; display: grid; gap: 6px; }
.docs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.docs small { color: var(--muted); white-space: nowrap; }

.guide { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; background: #fff; }
.guide summary { padding: 15px 16px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--eu); }
.guide[open] summary::after { content: "–"; }
.guide ul { margin: 0; padding: 0 16px 14px; padding-inline-start: 34px; }
.guide li { margin: 6px 0; }

/* ── Menu in basso (telefono) ── */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 24px -16px rgba(10, 26, 63, .35); }
.tabs a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 10px 2px 9px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 650; line-height: 1.2; }
[dir="rtl"] .tabs a { font-size: .82rem; }
.tabs a.on { color: var(--eu); }
.tabs a.on::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--eu); }

/* ── Piè di pagina ── */
.foot { margin-top: 26px; background: var(--night); color: #aab7d6; font-size: .9rem; }
.foot::before { content: ""; display: block; height: 4px; background: var(--stripe); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 26px 16px calc(94px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.foot-brand { color: #fff; margin-bottom: 4px; }
.foot-brand small { color: #aab7d6; }
.foot-brand .brand-name u { color: #ff6b75; }
.foot-brand .brand-name i { color: #3ddc84; }
.foot p { margin: 0; }
.foot a { color: #e3e9f7; }
.foot-line { display: flex; align-items: flex-start; gap: 9px; }
.foot-line .ic { margin-top: 4px; color: #7f8fb5; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px !important; }
.foot-links a { font-weight: 650; }
.foot-copy { margin-top: 8px !important; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; color: #7f8fb5; }

/* ── Pagamenti ── */
.pays { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pays li { padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .9rem; }
.pays li.pay-in_verifica b { color: var(--amber); }
.pays li.pay-confermato b { color: var(--green-d); }
.pays li.pay-non_arrivato b { color: var(--red); }
.due-box { display: grid; gap: 2px; margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: rgba(206, 43, 55, .06); border: 1px solid rgba(206, 43, 55, .22); }
.due-box span { font-size: .82rem; color: var(--muted); }
.due-box b { font-family: var(--font-head); font-size: 1.6rem; color: var(--red); }
.due-box small { color: var(--muted); }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.method { display: grid; place-items: center; min-height: 58px; padding: 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-weight: 700; text-decoration: none; text-align: center; transition: border-color .15s, transform .15s; }
.method:hover { border-color: var(--eu); transform: translateY(-1px); }
.benef { display: grid; gap: 8px; margin: 12px 0; padding: 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.benef div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.benef span { font-size: .82rem; color: var(--muted); min-width: 90px; }
.copy-line { display: flex; align-items: center; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.mini { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(0, 51, 153, .25); background: rgba(0, 51, 153, .06); color: var(--eu); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.warn { padding: 12px 14px; border-radius: 14px; background: rgba(206, 43, 55, .07); color: var(--red-d); font-size: .9rem; font-weight: 600; }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.who legend { grid-column: 1 / -1; }
.who-opt { margin: 0 !important; }
.who-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.who-opt span { display: grid; place-items: center; min-height: 48px; padding: 8px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; text-align: center; cursor: pointer; }
.who-opt input:checked + span { border-color: var(--eu); background: rgba(0, 51, 153, .06); color: var(--eu); }

/* ── Area partner ── */
.agency-line { margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 51, 153, .06); color: var(--eu); }
.dossier { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 5px; }
.dossier:last-child { border-bottom: 0; }
.dossier-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dossier .step { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(245, 184, 0, .2); color: var(--amber); white-space: nowrap; }
.dossier.step-pronta .step { background: rgba(0, 146, 70, .12); color: var(--green-d); }
.dossier.step-consegnata .step { background: rgba(0, 51, 153, .08); color: var(--eu); }
.dossier.step-annullata .step { background: rgba(206, 43, 55, .1); color: var(--red); }
.dossier-money { display: flex; gap: 16px; font-size: .9rem; flex-wrap: wrap; }
.dossier-money .due b { color: var(--red); }
.dossier-money .ok b { color: var(--green-d); }
.mini-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; text-decoration: none; }
.partner-tools { display: flex; gap: 10px; }
.partner-tools .link { margin-top: 0; }

/* ── Verifica pubblica di traduzioni e ricevute ── */
.verify-card { position: relative; overflow: hidden; padding-top: 34px; text-align: center; }
.verify-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--green); }
.verify-card.bad::before { background: var(--red); }
.verify-card .seal { width: 148px; height: 148px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 146, 70, .2) 0 46%, rgba(0, 146, 70, .08) 47% 70%, transparent 71%); }
.verify-card.bad .seal { background: radial-gradient(circle, rgba(206, 43, 55, .18) 0 46%, rgba(206, 43, 55, .07) 47% 70%, transparent 71%); }
.verify-card .seal svg { display: block; filter: drop-shadow(0 10px 14px rgba(0, 98, 51, .32)); animation: seal-in .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.verify-card.bad .seal svg { filter: drop-shadow(0 10px 14px rgba(165, 31, 43, .3)); }
.seal-shape { fill: #0a9a4c; }
.verify-card.bad .seal-shape { fill: var(--red); }
.seal-mark { fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
@keyframes seal-in { from { transform: scale(.55); opacity: 0; } to { transform: none; opacity: 1; } }
.verify-card .kicker { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
[dir="rtl"] .verify-card .kicker { font-size: .92rem; letter-spacing: 0; text-transform: none; }
.verify-card h2 { font-size: 1.8rem; margin-bottom: 8px; }
.verify-card.ok h2 { color: var(--green-d); }
.verify-card.bad h2 { color: var(--red-d); }
.verify-card > p { max-width: 34rem; margin-inline: auto; }
.verify-time { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px auto 0 !important; font-size: .82rem; color: var(--muted); }
[dir="rtl"] .verify-time { font-size: .92rem; }
.verify-rows { display: grid; gap: 0; margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-align: start; }
.verify-rows div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.verify-rows div:nth-child(even) { background: #fff; }
.verify-rows div:last-child { border-bottom: 0; }
.verify-rows span { color: var(--muted); font-size: .88rem; }
.verify-rows b { text-align: end; overflow-wrap: anywhere; color: var(--navy); }
.verify-dl { display: grid; gap: 8px; margin-top: 14px; }
.verify-dl .secondary { margin-top: 0; font-size: .95rem; }

@media (max-width: 380px) {
  .tabs a { font-size: .66rem; }
  .brand small { display: none; }
  .money b { font-size: .92rem; }
}
@media (min-width: 640px) {
  main { padding-top: 26px; }
  .hero { margin-top: -26px; padding: 54px 24px 104px; }
  .actions { margin-top: -62px; }
  .card { padding: 28px 26px; }
  .actions { grid-template-columns: 1fr 1fr; }
  .code-form { grid-template-columns: 1fr auto; }
  .code-form .primary { width: auto; min-width: 150px; }
  .btns { grid-template-columns: 1fr 1fr; gap: 12px; }
  .btns .link { grid-column: 1 / -1; }
  h1 { font-size: 1.85rem; }
}
/* Schermo grande: menu in alto al posto di quello in basso */
@media (min-width: 900px) {
  :root { --wrap: 1000px; }
  main > .card, main > div > .card, main > p { max-width: 760px; margin-inline: auto; }
  .tabs { display: none; }
  .topnav { display: flex; }
  .top-in { min-height: 72px; padding: 0 24px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-name { font-size: 1.5rem; }
  .brand small { font-size: .78rem; }
  .hero { padding: 76px 24px 124px; }
  .foot-in { padding: 36px 24px 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
