/* togivy.com — stile comune (palette 2026-10-15: blu Togivy + corallo + verde acqua) */
:root {
  --primary: #1F4E9A;
  --primary-pressed: #163B78;
  --navy: #0E1B3C;
  --coral: #FF6B5B;
  --teal: #00D9A3;
  --cream: #FDFBF7;
  --text: #0E1B3C;
  --muted: #5B6478;
  --bg: #FFFFFF;
  --card: #F6F7FA;
  --line: #E4E7EE;
  --tint: #E6EEF9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #4F86D6;
    --primary-pressed: #3A6FBF;
    --text: #F2F4F8;
    --muted: #A3ABBD;
    --bg: #0B1226;
    --card: #141D36;
    --line: #26304C;
    --tint: #1A2747;
    --cream: #0F1830;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── Intestazione ─────────────────────────────────────────────── */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { height: 38px; width: auto; display: block; }
nav.menu { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav.menu a { color: var(--muted); font-weight: 500; }
nav.menu a:hover { color: var(--text); text-decoration: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang a, .lang span { padding: 5px 10px; color: var(--muted); }
.lang span[aria-current] { background: var(--text); color: var(--bg); }
.lang a:hover { text-decoration: none; color: var(--text); }

/* ── Sezione principale ───────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 84px 0 76px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; top: -120px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 22% 38%, rgba(31, 78, 154, .13), transparent 70%),
    radial-gradient(32% 40% at 80% 30%, rgba(255, 107, 91, .12), transparent 70%),
    radial-gradient(30% 26% at 55% 72%, rgba(0, 217, 163, .08), transparent 70%);
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 18px; }
h1 { font-size: clamp(40px, 7.2vw, 68px); line-height: 1.03; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 620px; margin: 0 auto 34px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: 17px; border: 0; cursor: pointer; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-pressed); text-decoration: none; }
.btn-primary:active { background: var(--primary-pressed); transform: translateY(1px); }
.btn[aria-disabled="true"] { cursor: default; }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ── Sezioni ──────────────────────────────────────────────────── */
section.block { padding: 56px 0; }
section.block.alt { background: var(--cream); }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
.section-lead { color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
section.alt .card { background: var(--bg); }
.card h3 { margin: 16px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--primary); }
.icon.coral { background: rgba(255, 107, 91, .14); color: var(--coral); }
.icon.teal { background: rgba(0, 217, 163, .16); color: #00A57B; }
.icon svg { width: 24px; height: 24px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 16px; }
.steps h3 { margin: 14px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust div { padding: 4px 0; }
.trust strong { display: block; font-size: 17px; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 15px; }

/* ── Pagine interne (supporto) ───────────────────────────────── */
.page h1 { font-size: clamp(34px, 6vw, 48px); margin-top: 36px; }
details { border-top: 1px solid var(--line); padding: 18px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 10px 0 0; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin: 32px 0; }
.contact a.mail { font-size: 22px; font-weight: 700; }

/* ── Footer ───────────────────────────────────────────────────── */
footer.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--text); }

@media (max-width: 600px) {
  nav.menu .hide-sm { display: none; }
  .logo { height: 32px; }
  .hero { padding: 56px 0 52px; }
  section.block { padding: 44px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
