/* Profile Manager — stile comune del sito (stessa struttura di ForceKIT) */
:root {
  --bg: #f6f8fb; --bg-2: #edf2f8; --surface: #ffffff; --surface-raised: #ffffff;
  --text: #0f172a; --text-dim: #475569; --text-dimmer: #8792a3; --border: #e2e8f0;
  --accent: #0284c7; --accent-2: #06a6b8; --accent-soft: rgba(2, 132, 199, 0.09); --accent-line: rgba(2, 132, 199, 0.35);
  --grad: linear-gradient(120deg, #075985 0%, #0284c7 45%, #14b8a6 100%);
  --grad-text: linear-gradient(110deg, #0284c7 0%, #0891b2 50%, #14b8a6 100%);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 30px 80px rgba(7, 89, 133, 0.18), 0 4px 14px rgba(15, 23, 42, 0.06);
  --radius: 18px; --accent-deep: #075985;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e14; --bg-2: #0f151e; --surface: #131a24; --surface-raised: #17202c;
    --text: #edf1f7; --text-dim: #a3afc0; --text-dimmer: #6c7889; --border: #222c3a;
    --accent: #38bdf8; --accent-2: #5eead4; --accent-soft: rgba(56, 189, 248, 0.14); --accent-line: rgba(56, 189, 248, 0.4);
    --grad-text: linear-gradient(110deg, #7dd3fc 0%, #38bdf8 45%, #5eead4 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e14; --bg-2: #0f151e; --surface: #131a24; --surface-raised: #17202c;
  --text: #edf1f7; --text-dim: #a3afc0; --text-dimmer: #6c7889; --border: #222c3a;
  --accent: #38bdf8; --accent-2: #5eead4; --accent-soft: rgba(56, 189, 248, 0.14); --accent-line: rgba(56, 189, 248, 0.4);
  --grad-text: linear-gradient(110deg, #7dd3fc 0%, #38bdf8 45%, #5eead4 100%);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(640px 380px at 15% -4%, rgba(2, 132, 199, 0.13), transparent 70%),
    radial-gradient(560px 360px at 88% -8%, rgba(6, 166, 184, 0.13), transparent 70%), var(--bg);
  background-repeat: no-repeat;
}
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent-soft); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.serif, .lede, .sans { font-family: var(--sans) !important; }

/* intestazione */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(170%); -webkit-backdrop-filter: blur(16px) saturate(170%); border-bottom: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.top-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav { display: flex; gap: 18px; margin-left: 6px; font-size: 14px; font-weight: 600; }
.nav a { color: var(--text-dim); white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.langnav { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--bg-2); }
.langnav a { padding: 3px 7px; border-radius: 7px; color: var(--text-dim); font-size: 11px; font-weight: 800; }
.langnav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.menu { position: relative; display: none; }
.menu summary { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 2px; min-width: 220px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.menu-list a:not(.btn) { padding: 9px 12px; border-radius: 9px; color: var(--text); font-weight: 600; font-size: 14.5px; }
.menu-list a:not(.btn):hover, .menu-list a.active { background: var(--accent-soft); color: var(--accent); }
.menu-list .btn { justify-content: center; margin-top: 6px; }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 560px) { header.top .cta-top { display: none; } .langnav a { padding: 3px 5px; } }

/* pulsanti */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(2, 132, 199, 0.3); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--accent-line); }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; }

/* pagine interne (privacy, termini, supporto, guida): stessa tipografia della home */
body:not(.home) main { padding-top: 48px; }
body:not(.home) main > h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 850; line-height: 1.08; letter-spacing: -0.03em; }
body:not(.home) main > .eyebrow, body:not(.home) .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
body:not(.home) main h2 { font-weight: 800; letter-spacing: -0.02em; }
body:not(.home) .lede { color: var(--text-dim); }
body:not(.home) .toc a { border-radius: 999px; }
body:not(.home) .callout, body:not(.home) .card { border-radius: 16px; }

/* pie' di pagina */
body > footer, .wrap > footer { max-width: 1160px; margin: 24px auto 0; padding: 32px 20px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  border-top: 1px solid var(--border); color: var(--text-dimmer); font-size: 13px; }
.wrap > footer { padding-left: 0; padding-right: 0; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--text-dim); }
footer a:hover { color: var(--accent); }

/* immagini a grandezza piena (popup) */
.lb { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 56px 72px 72px;
  background: rgba(6, 12, 22, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lb.open { display: flex; animation: lbIn .18s ease-out; }
@keyframes lbIn { from { opacity: 0; } }
.lb figure { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; max-height: 100%; margin: 0; }
.lb img { display: block; max-width: min(1400px, 100%); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); background: #fff; }
.lb figcaption { color: #e2e8f0; font-size: 14.5px; font-weight: 600; text-align: center; }
.lb button { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, 0.26); }
.lb .lb-x { top: 16px; right: 16px; }
.lb .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb .lb-n { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(226, 232, 240, 0.7); font-size: 12.5px; font-weight: 700; }
@media (max-width: 640px) { .lb { padding: 56px 12px 64px; } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 10px; transform: none; } }
[data-zoom] { cursor: zoom-in; }

/* firma "made by ♥ CreativeApp": staccata sul bordo sinistro, solo dove non tocca il contenuto */
.maker { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: none; align-items: center; gap: 5px; padding: 4px 10px 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dimmer); font-size: 11.5px; font-weight: 600; white-space: nowrap; transition: color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.maker b { color: var(--text-dim); font-weight: 800; }
.maker svg { width: 12px; height: 12px; fill: #f43f5e; transform-origin: center; }
.maker:hover { color: var(--text-dim); border-color: var(--accent-line); box-shadow: var(--shadow); }
.maker:hover b { color: var(--text); }
.maker:hover svg { animation: fkBeat .9s ease-in-out infinite; }
@keyframes fkBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .maker:hover svg { animation: none; } }
@media (min-width: 1420px) { .maker { display: inline-flex; } .maker span { display: none; } }
@media (min-width: 1580px) { .maker span { display: inline; } }

/* indice delle sezioni e pie' di pagina a piu' righe */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.toc a { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--text-dim); font-size: 13px; font-weight: 700; }
.toc a:hover { color: var(--accent); }
footer .fl { display: grid; gap: 4px; max-width: 70ch; }
/* nomi lunghi: il marchio resta su una riga anche sul telefono */
.brand { white-space: nowrap; }
@media (max-width: 420px) { .wrap { padding: 0 16px; } .top-in { gap: 10px; } .top-right { gap: 8px; } .brand { gap: 7px; font-size: 14px; } .langnav a { padding: 3px 4px; } }
