/* TeamHome — stile delle guide.
   Stessi token dell'app (multe-squadra/app/globals.css e DESIGN.md): sfondo crema, riquadri chiari
   senza ombra, un solo colore d'azione (il verde TeamHome), pesi 400/600/700, raggi 8/12/18 e capsula.
   Le pagine funzionano sul sito, sul telefono e stampate in A4 (Stampa → Salva come PDF). */
:root {
  --bg: #efefea;
  --surface: #fafaf7;
  --text: #1d1d1f;
  --muted: #6b6b66;
  --border: #e6e6e1;
  --separator: rgb(17 17 17 / 0.14);
  --fill: rgb(17 17 17 / 0.07);
  --bar: rgb(250 250 247 / 0.92);
  --primary: #1a7f45;
  --primary-hover: #146637;
  --on-primary: #ffffff;
  --primary-soft: #e3f2e9;
  --brand-green: #1e8e4e;
  --tile-dark: #1d1d1f;
  --danger: #d70015;
  --danger-soft: #ffe5e7;
  --warn: #a04a00;
  --warn-soft: #fff4e5;
  --navy: #2c3e75;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-object: 3px 5px 30px rgb(0 0 0 / 0.22);
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0a;
    --surface: #1a1a18;
    --text: #fafaf7;
    --muted: #9a9a94;
    --border: #34342f;
    --separator: rgb(250 250 247 / 0.16);
    --fill: rgb(250 250 247 / 0.1);
    --bar: rgb(20 20 18 / 0.88);
    --primary: #3dbb72;
    --primary-hover: #57c987;
    --on-primary: #0b0b0a;
    --primary-soft: #11301e;
    --tile-dark: #3a3a36;
    --danger: #ff453a;
    --danger-soft: #3a1311;
    --warn: #ff9f0a;
    --warn-soft: #3a2508;
    --navy: #8fa6e8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
:where(svg) { width: 1.15em; height: 1.15em; vertical-align: -0.2em; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
b, strong { font-weight: 600; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
li + li { margin-top: 4px; }
code, kbd {
  font: 600 0.88em/1 ui-monospace, "SF Mono", Consolas, monospace;
  background: var(--fill);
  border-radius: 6px;
  padding: 2px 6px;
  letter-spacing: 0;
}
.ui { font-weight: 600; white-space: nowrap; } /* nome di un pulsante o di una voce dell'app */
.path { font-weight: 600; } /* percorso: Impostazioni → Rosa */
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------------------------------------------------------------- Marchio */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tile-dark); color: #fafaf7; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-sub { font-weight: 400; color: var(--muted); font-size: 15px; letter-spacing: -0.01em; padding-left: 10px; border-left: 1px solid var(--separator); }

/* ---------------------------------------------------------------- Barra in alto */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; }
.topbar nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: var(--text); font-size: 15px; padding: 6px 12px; border-radius: 999px; }
.topbar nav a:hover { background: var(--fill); text-decoration: none; }
.topbar nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

@media (max-width: 719px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 16px 6px; gap: 6px 12px; }
  .topbar nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -6px; }
  .topbar nav a { white-space: nowrap; font-size: 14px; }
  .layout { padding: 0 16px 48px; }
}

/* ---------------------------------------------------------------- Pagina */
.layout { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) {
  .layout.with-toc { grid-template-columns: 230px minmax(0, 1fr); }
}
.content { min-width: 0; max-width: 860px; }

.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; position: sticky; top: 84px; align-self: start; padding-top: 48px; max-height: calc(100vh - 100px); overflow: auto; }
  .toc-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 8px 12px; }
  .toc ol { list-style: none; padding: 0; margin: 0; }
  .toc li + li { margin-top: 0; }
  .toc a { display: block; padding: 6px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; line-height: 1.3; }
  .toc a:hover { background: var(--fill); text-decoration: none; }
}

/* ---------------------------------------------------------------- Testata del documento */
.hero { padding: 48px 0 8px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.eyebrow svg { width: 16px; height: 16px; }
h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.028em; margin: 0 0 14px; }
.lead { font-size: 20px; line-height: 1.45; color: var(--muted); max-width: 680px; margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.024em; margin: 56px 0 14px; display: flex; align-items: center; gap: 12px; }
h2 .num { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 16px; font-weight: 700; letter-spacing: 0; }
h2 .num svg { width: 18px; height: 18px; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 28px 0 10px; }
h4 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; }
.section-lead { color: var(--muted); font-size: 18px; margin-bottom: 18px; }

/* ---------------------------------------------------------------- Riquadri */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }
.card-title { font-weight: 600; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 > .card, .grid-3 > .card { margin: 0; }

/* Pillole: piano, stato */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--fill); color: var(--text); white-space: nowrap; letter-spacing: -0.01em; vertical-align: middle; }
.pill.base { background: var(--fill); }
.pill.pro { background: var(--primary); color: var(--on-primary); }
.pill.green { background: var(--primary-soft); color: var(--primary); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.who { background: transparent; border: 1px solid var(--separator); font-weight: 400; color: var(--muted); }

/* Tessera con icona (come IconTile dell'app) */
.tile { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; color: #fff; background: var(--primary); }
.tile svg { width: 20px; height: 20px; }
.tile.green { background: #34a853; } .tile.orange { background: #f08a00; } .tile.indigo { background: #5856d6; }
.tile.red { background: #e5383b; } .tile.navy { background: #2c3e75; } .tile.gray { background: #8e8e93; }
.tile.blue { background: #0a84ff; } .tile.dark { background: var(--tile-dark); }

/* ---------------------------------------------------------------- Passi numerati */
.steps { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 0 48px; margin: 0 0 18px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 15px; letter-spacing: 0;
}
.steps > li p { margin: 4px 0 0; }

/* ---------------------------------------------------------------- Avvisi */
.callout { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; background: var(--primary-soft); }
.callout > svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--primary); }
.callout > div > :last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-soft); }
.callout.warn > svg { color: var(--warn); }
.callout.danger { background: var(--danger-soft); }
.callout.danger > svg { color: var(--danger); }
.callout.plain { background: var(--surface); }
.callout.plain > svg { color: var(--muted); }

/* ---------------------------------------------------------------- Tabelle */
.table-wrap { background: var(--surface); border-radius: var(--radius); margin: 0 0 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 12px 14px 8px; white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--separator); vertical-align: top; }
td:first-child { font-weight: 600; }
td.req::after { content: " *"; color: var(--primary); }
.table-note { font-size: 13px; color: var(--muted); margin: -8px 0 16px 4px; }

/* ---------------------------------------------------------------- Ordine (import) */
.order { list-style: none; padding: 0; margin: 0 0 16px; }
.order > li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 10px; }
.order > li + li { margin-top: 0; }
.order .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 17px; }
.order .t { font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.order .d { color: var(--muted); font-size: 15px; margin-top: 2px; }
.order .file { font: 600 13px/1 ui-monospace, Consolas, monospace; background: var(--fill); padding: 4px 8px; border-radius: 6px; letter-spacing: 0; }

/* ---------------------------------------------------------------- Indice (home delle guide) */
.guide-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 720px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 20px; color: var(--text); transition: transform 160ms var(--ease); }
.guide-card:hover { text-decoration: none; }
.guide-card:active { transform: scale(0.98); }
.guide-card .gc-title { font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.guide-card .gc-text { color: var(--muted); font-size: 15px; margin-top: 2px; }
.guide-card .gc-go { margin-top: 8px; color: var(--primary); font-weight: 600; font-size: 15px; }

/* ---------------------------------------------------------------- Figure: telefoni disegnati */
.figures { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: 8px 0 24px; justify-items: center; }
.figures.two { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 260px; }
figcaption { font-size: 14px; line-height: 1.4; color: var(--muted); text-align: center; }
figcaption b { color: var(--text); }
figcaption .fig-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; font-weight: 700; margin-right: 6px; vertical-align: 1px; letter-spacing: 0; }

.phone {
  --scr-bg: #efefea;
  width: 228px; aspect-ratio: 9 / 19; border-radius: 40px; padding: 9px;
  background: #111; box-shadow: var(--shadow-object);
  position: relative; flex: none;
  color-scheme: light; color: #1d1d1f; letter-spacing: -0.01em;
}
.phone.android { border-radius: 30px; padding: 8px; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 32px; background: var(--scr-bg); overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.3; }
.phone.android .screen { border-radius: 23px; }
.island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; border-radius: 999px; background: #111; z-index: 3; }
.punch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 999px; background: #111; z-index: 3; }
.status { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 4px; font-weight: 600; font-size: 10px; height: 30px; flex: none; }
.status.dark { color: #fff; }
.status .sig { display: inline-flex; gap: 3px; align-items: center; }
.status .sig i { display: inline-block; width: 14px; height: 7px; border-radius: 2px; border: 1px solid currentColor; }
.phone.android .status { padding: 8px 16px 4px; height: 26px; }

/* Anello «tocca qui» */
.tap { position: relative; z-index: 2; box-shadow: 0 0 0 2.5px var(--brand-green), 0 0 0 7px rgb(30 142 78 / 0.25) !important; border-radius: 10px; }
.tap-dot { position: absolute; width: 26px; height: 26px; border-radius: 999px; border: 2.5px solid var(--brand-green); background: rgb(30 142 78 / 0.18); z-index: 4; transform: translate(-50%, -50%); }

/* Pagina web dentro il browser disegnato */
.web { flex: 1; overflow: hidden; background: #efefea; padding: 14px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.web .w-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: -0.03em; }
.web .w-brand .brand-mark { width: 20px; height: 20px; border-radius: 6px; }
.web .w-brand .brand-mark svg { width: 15px; height: 15px; }
.web .w-h { font-size: 19px; line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; }
.web .w-p { color: #6b6b66; font-size: 10.5px; }
.web .w-btn { align-self: flex-start; background: #1a7f45; color: #fff; font-weight: 600; border-radius: 999px; padding: 6px 12px; font-size: 10.5px; }
.web.login { padding-top: 22px; gap: 9px; }
.web .w-field { background: #fafaf7; border-radius: 9px; padding: 8px 10px; font-size: 10px; color: #6b6b66; }
.web .w-btn.block { align-self: stretch; text-align: center; padding: 8px; }
.web .w-p.center { text-align: center; }
.web .w-p b { color: #1a7f45; }
.web .w-card { background: #fafaf7; border-radius: 10px; height: 52px; }

/* Barre di Safari e Chrome */
.safari-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 16px; background: rgb(250 250 247 / 0.96); border-top: 1px solid rgb(17 17 17 / 0.08); }
.safari-bar .addr { flex: 1; height: 28px; border-radius: 999px; background: rgb(17 17 17 / 0.07); display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; }
.safari-bar .addr svg { width: 10px; height: 10px; }
.pop { position: absolute; right: 8px; bottom: 58px; width: 66%; z-index: 2; box-shadow: 0 8px 28px rgb(0 0 0 / 0.2); }
.sheet.top { top: 38px; bottom: 6px; background: #f2f2f2; }
.dialog.android-perm { top: auto; bottom: 26px; left: 10px; right: 10px; border-radius: 24px; background: #eef1ec; text-align: center; padding: 18px 14px 12px; }
.dialog.android-perm .d-btn { display: block; background: #fff; color: #1d1d1f; border-radius: 999px; padding: 8px; font-weight: 600; }
.dialog.android-perm .d-btn.fill { background: #1a7f45; color: #fff; }
.icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: #1d1d1f; flex: none; background: rgb(17 17 17 / 0.07); }
.icon-btn svg { width: 16px; height: 16px; }
.chrome-bar { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; background: #fff; }
.chrome-bar .addr { flex: 1; height: 28px; border-radius: 999px; background: #f1f3f4; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; color: #3c4043; }
.chrome-bar .addr svg { width: 11px; height: 11px; }
.navbar-android { flex: none; height: 18px; display: flex; justify-content: center; align-items: center; background: inherit; }
.navbar-android i { width: 70px; height: 3px; border-radius: 999px; background: #1d1d1f; opacity: 0.5; }

/* Fogli e menu */
.dim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.28); z-index: 1; }
.sheet { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 2; background: #f2f2f2; border-radius: 22px; padding: 10px 8px 12px; display: flex; flex-direction: column; gap: 8px; }
.sheet .grab { width: 34px; height: 4px; border-radius: 999px; background: rgb(0 0 0 / 0.2); margin: 0 auto 2px; }
.sheet .s-head { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px; }
.sheet .s-head img { width: 28px; height: 28px; border-radius: 7px; }
.sheet .s-head b { display: block; font-size: 11px; }
.sheet .s-head span { font-size: 9.5px; color: #6b6b66; }
.sheet .apps { display: flex; gap: 8px; justify-content: space-between; padding: 2px 4px; }
.sheet .apps i { width: 34px; height: 34px; border-radius: 9px; background: #d9d9d4; display: block; }
.sheet .apps i:nth-child(1) { background: #34c759; } .sheet .apps i:nth-child(2) { background: #25d366; } .sheet .apps i:nth-child(3) { background: #0a84ff; } .sheet .apps i:nth-child(4) { background: #ffcc00; }
.list { background: #fff; border-radius: 12px; overflow: hidden; }
.list .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 11px; }
.list .row + .row { border-top: 1px solid rgb(17 17 17 / 0.09); }
.list .row svg { width: 15px; height: 15px; flex: none; }
.list .row.tap { border-radius: 8px; background: #fff; }

.menu-android { position: absolute; top: 34px; right: 6px; width: 72%; z-index: 2; background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgb(0 0 0 / 0.22); padding: 6px 0; font-size: 11px; }
.menu-android .icons { display: flex; justify-content: space-around; padding: 4px 6px 8px; border-bottom: 1px solid rgb(17 17 17 / 0.09); }
.menu-android .icons svg { width: 14px; height: 14px; color: #3c4043; }
.menu-android .mi { display: flex; align-items: center; gap: 10px; padding: 7px 12px; color: #202124; }
.menu-android .mi svg { width: 14px; height: 14px; color: #5f6368; flex: none; }
.menu-android .mi.tap { margin: 2px 6px; padding: 7px 6px; }

.dialog { position: absolute; left: 16px; right: 16px; top: 34%; z-index: 2; background: #fff; border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 11px; }
.dialog.ios { border-radius: 14px; background: #f2f2f2; padding: 12px; top: 26%; }
.dialog .d-title { font-weight: 600; font-size: 13px; }
.dialog .d-app { display: flex; align-items: center; gap: 10px; }
.dialog .d-app img { width: 38px; height: 38px; border-radius: 9px; }
.dialog .d-app b { display: block; font-size: 12px; }
.dialog .d-app span { color: #6b6b66; font-size: 10px; }
.dialog .d-actions { display: flex; justify-content: flex-end; gap: 6px; }
.dialog .d-btn { padding: 6px 12px; border-radius: 999px; font-weight: 600; color: #1a73e8; }
.dialog .d-btn.fill { background: #1a73e8; color: #fff; }
.ios-nav { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding: 2px 2px 4px; }
.ios-nav { gap: 6px; }
.ios-nav b { font-size: 10px; }
.ios-nav .cancel, .ios-nav .add { color: #0a7aff; }
.ios-nav .add { font-weight: 600; padding: 3px 6px; }
.toggle { width: 30px; height: 18px; border-radius: 999px; background: #34c759; position: relative; flex: none; }
.toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; }
.alert-ios { position: absolute; left: 22px; right: 22px; top: 36%; z-index: 2; background: rgb(242 242 242 / 0.97); border-radius: 14px; text-align: center; overflow: hidden; }
.alert-ios .a-body { padding: 14px 12px 12px; }
.alert-ios .a-body b { display: block; font-size: 12px; margin-bottom: 4px; }
.alert-ios .a-body span { font-size: 10px; color: #3c3c43; }
.alert-ios .a-btns { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgb(60 60 67 / 0.2); }
.alert-ios .a-btns span { padding: 9px 0; color: #0a7aff; font-size: 12px; }
.alert-ios .a-btns span + span { border-left: 1px solid rgb(60 60 67 / 0.2); font-weight: 600; }

/* Schermata Home */
.home { flex: 1; padding: 22px 14px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; align-content: start; background: linear-gradient(160deg, #cfe3d6, #e9e4d6 55%, #d8d2c3); }
.home.android { background: linear-gradient(170deg, #dfe7ef, #eae6dc); grid-template-columns: repeat(4, 1fr); }
.home .app { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8.5px; color: #1d1d1f; text-align: center; }
.home .app i { width: 40px; height: 40px; border-radius: 10px; background: rgb(255 255 255 / 0.65); display: block; }
.home.android .app i { border-radius: 999px; }
.home .app img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.home.android .app img { border-radius: 999px; }
.home .app.tap { box-shadow: none !important; }
.home .app.tap img { box-shadow: 0 0 0 2.5px var(--brand-green), 0 0 0 7px rgb(30 142 78 / 0.3); }
.dock { flex: none; margin: 8px 10px 12px; height: 56px; border-radius: 22px; background: rgb(255 255 255 / 0.4); display: flex; justify-content: space-around; align-items: center; }
.dock i { width: 38px; height: 38px; border-radius: 10px; background: rgb(255 255 255 / 0.7); display: block; }

/* Schermate dell'app TeamHome */
.app-top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 2px 14px 4px; }
.app-top .w-brand { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 11px; letter-spacing: -0.03em; }
.app-top .brand-mark { width: 18px; height: 18px; border-radius: 5px; }
.app-top .brand-mark svg { width: 13px; height: 13px; }
.app-top .acts { display: flex; gap: 6px; color: #1a7f45; }
.app-top .acts svg { width: 16px; height: 16px; }
.app-body { flex: 1; overflow: hidden; padding: 0 10px; display: flex; flex-direction: column; gap: 8px; }
.a-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; padding: 2px 4px 0; display: flex; align-items: center; justify-content: space-between; }
.a-title .acts { display: flex; gap: 6px; color: #1a7f45; }
.a-title .acts span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: rgb(17 17 17 / 0.06); }
.a-title .acts svg { width: 13px; height: 13px; }
.a-back { color: #1a7f45; font-size: 10.5px; padding: 0 4px; }
.a-summary { background: #fafaf7; border-radius: 12px; padding: 8px 10px; display: flex; justify-content: space-between; gap: 8px; }
.a-summary .lbl { font-size: 8.5px; color: #6b6b66; display: block; }
.a-summary .big { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.a-summary .mid { font-size: 11px; font-weight: 700; }
.a-summary .red { color: #d70015; }
.a-gt { font-size: 9.5px; font-weight: 600; padding: 2px 6px 0; }
.a-group { background: #fafaf7; border-radius: 12px; overflow: hidden; }
.a-cell { display: flex; align-items: center; gap: 7px; padding: 6px 8px; min-height: 30px; }
.a-cell + .a-cell { border-top: 1px solid rgb(17 17 17 / 0.09); margin-left: 34px; padding-left: 0; }
.a-cell .av { width: 22px; height: 22px; border-radius: 999px; background: #dcdcd5; display: grid; place-items: center; font-size: 8px; font-weight: 700; color: #3a3a36; flex: none; }
.a-cell .av.ring { box-shadow: 0 0 0 1.5px #fafaf7, 0 0 0 3px #d70015; }
.a-cell .av.ok { box-shadow: 0 0 0 1.5px #fafaf7, 0 0 0 3px #1a7f45; }
.a-cell .ic { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: none; }
.a-cell .ic svg { width: 13px; height: 13px; }
.a-cell .tx { flex: 1; min-width: 0; }
.a-cell .tx b { display: block; font-weight: 400; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-cell .tx span { display: block; font-size: 8.5px; color: #6b6b66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-cell .amt { font-weight: 600; font-size: 10.5px; }
.a-cell .amt.red { color: #d70015; }
.a-cell .chev { color: #b8b8b2; font-size: 12px; }
.a-cell .chk { width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid #c7c7c0; flex: none; }
.a-cell .chk.on { background: #1a7f45; border-color: #1a7f45; position: relative; }
.a-cell .chk.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.a-chip { font-size: 8.5px; font-weight: 600; padding: 2px 6px; border-radius: 999px; background: rgb(17 17 17 / 0.07); }
.a-chip.green { background: #e3f2e9; color: #1a7f45; }
.a-chip.orange { background: #ffe3c7; color: #b54700; }
.a-chip.yellow { background: #fff6d6; color: #8a5a00; }
.a-chip.red { background: #ffe5e7; color: #d70015; }
.a-chip.on { background: #1a7f45; color: #fff; }
.a-btn { display: block; text-align: center; background: #1a7f45; color: #fff; font-weight: 600; border-radius: 999px; padding: 7px 10px; font-size: 10.5px; }
.a-btn.light { background: rgb(17 17 17 / 0.07); color: #1a7f45; }
.a-field { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px; font-size: 10.5px; }
.a-field + .a-field { border-top: 1px solid rgb(17 17 17 / 0.09); }
.a-field span:last-child { color: #6b6b66; }
.a-msg { background: #fafaf7; border-radius: 12px; padding: 8px 10px; font-size: 9px; line-height: 1.4; white-space: pre-line; }
.a-seg { display: flex; background: rgb(17 17 17 / 0.07); border-radius: 8px; padding: 2px; font-size: 9px; font-weight: 600; }
.a-seg span { flex: 1; text-align: center; padding: 3px 0; border-radius: 6px; }
.a-seg span.on { background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
.a-banner { background: #fafaf7; border-radius: 12px; padding: 8px; display: flex; gap: 7px; align-items: center; }
.a-banner .ic { width: 22px; height: 22px; border-radius: 6px; background: #e5383b; display: grid; place-items: center; color: #fff; flex: none; }
.a-banner .ic svg { width: 13px; height: 13px; }
.a-banner b { display: block; font-size: 10px; }
.a-banner span { display: block; font-size: 8.5px; color: #6b6b66; }
.a-banner .a-btn { padding: 4px 9px; font-size: 9px; }
.tabbar { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 7px 8px 16px; background: rgb(250 250 247 / 0.94); border-top: 1px solid rgb(17 17 17 / 0.08); color: #8e8e93; }
.tabbar svg { width: 18px; height: 18px; }
.tabbar .on { color: #1a7f45; }

/* ---------------------------------------------------------------- Piè di pagina */
.doc-footer { border-top: 1px solid var(--separator); margin-top: 56px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
.doc-footer .brand { font-size: 16px; }
.doc-footer .brand-mark { width: 26px; height: 26px; border-radius: 8px; }
.doc-footer .brand-mark svg { width: 18px; height: 18px; }
.next-prev { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 720px) { .next-prev { grid-template-columns: 1fr 1fr; } }
.next-prev a { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; color: var(--text); }
.next-prev a:hover { text-decoration: none; }
.next-prev .lbl { display: block; font-size: 13px; color: var(--muted); }
.next-prev .ttl { font-weight: 600; }
.next-prev .next { text-align: right; }

/* Copertina solo in stampa */
.print-only { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- Stampa / PDF (A4) */
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
  :root { --bg: #ffffff; }
  html { font-size: 10.5pt; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.45; }
  .topbar, .toc, .next-prev, .no-print { display: none !important; }
  .print-only { display: flex; }
  .print-head { align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--separator); }
  .print-head .brand-sub { font-size: 10pt; }
  .layout { display: block; padding: 0; max-width: none; }
  .content { max-width: none; }
  .hero { padding-top: 18px; }
  h1 { font-size: 26pt; }
  .lead { font-size: 13pt; }
  h2 { font-size: 17pt; margin-top: 26px; break-after: avoid; }
  h2.break { break-before: page; margin-top: 0; padding-top: 4px; }
  h3, h4 { break-after: avoid; }
  .card, .callout, .order > li, .table-wrap, figure, .steps > li, .guide-card, tr { break-inside: avoid; }
  .card, .table-wrap, .order > li, .guide-card { border: 1px solid #e6e6e1; }
  .figures { gap: 18px 12px; grid-template-columns: repeat(4, 1fr); }
  .figures.two { grid-template-columns: repeat(3, 1fr); }
  .phone { zoom: 0.68; box-shadow: none; }
  figure { max-width: 170px; }
  figcaption { font-size: 8.5pt; }
  a { color: var(--text); }
  .doc-footer { margin-top: 28px; }
}
