/* NotOnlyFiles — stylesheet ("colorful playful")
   Font self-hosted: Bricolage Grotesque (SIL OFL), nessun servizio esterno. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

:root {
  --yellow: #FFD84D;
  --cobalt: #2B4EFF;
  --pink: #FF8FB1;
  --ink: #12122A;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #F4F5FF;
  --text: var(--ink);
  --muted: #3B3B5C;
  --line: #DADCF0;
  --accent: var(--cobalt);
  --accent-hover: #1A38E0;
  --accent-soft: #E8ECFF;
  --on-accent: #ffffff;
  --spark: var(--yellow);
  --ok: #157347; --ok-soft: #DDF6E8;
  --warn: #7A5300; --warn-soft: #FFF3C4;
  --danger: #C8102E; --danger-soft: #FFE3EA;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 28px;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.55 var(--font); background: var(--bg); color: var(--text);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* ---------- header / footer ---------- */
.site-header { max-width: 1080px; width: 100%; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 19px; letter-spacing: -.02em; }
.logo b { font-weight: 800; color: var(--accent); }
.logo > span { font-weight: 600; color: var(--text); letter-spacing: -.03em; }
.logo svg { width: 32px; height: 32px; flex: none; }
.tagline { color: var(--muted); font-size: 14px; }
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 20px 40px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 20px 28px; }

/* ---------- home ---------- */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: start; }
.intro { padding-top: 36px; position: sticky; top: 24px; }
.intro h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 800; margin: 0 0 16px; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--accent); background: linear-gradient(transparent 68%, color-mix(in srgb, var(--spark) 45%, transparent) 68%); }
.intro p { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 0 28px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.features .ic svg { width: 20px; height: 20px; }
.features strong { display: block; font-weight: 700; }
.features span { color: var(--muted); font-size: 15px; }

/* ---------- card ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card.center { max-width: 520px; margin: 24px auto 0; }
.card h1, .card h2 { font-size: 23px; line-height: 1.25; letter-spacing: -.02em; font-weight: 750; margin: 0 0 6px; text-wrap: balance; }
.badge-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent); }
.badge-ic svg { width: 24px; height: 24px; }
.badge-ic.ok { background: var(--ok-soft); color: var(--ok); }
.badge-ic.danger { background: var(--danger-soft); color: var(--danger); }
.muted { color: var(--muted); margin: 0 0 18px; }
.small { font-size: 14px; }
.error { color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; margin: 0 0 14px; font-size: 15px; }

/* ---------- form ---------- */
.section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=email], select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; min-height: 84px; }
.row { display: flex; gap: 12px; }
.row > label { flex: 1; min-width: 0; }
.pw { position: relative; display: block; margin-top: 6px; }
.pw input { margin-top: 0; padding-right: 84px; }
.pw .eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; min-width: 64px; padding: 0 10px; margin: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer;
}
.pw .eye:hover { background: var(--accent-soft); color: var(--accent); }

/* drop zone */
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 16px; cursor: pointer; text-align: center;
  border: 2px dashed var(--line); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 400;
  transition: border-color .15s, background .15s; margin: 0;
}
.drop .up { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; margin-bottom: 8px; transition: transform .15s; }
.drop .up svg { width: 22px; height: 22px; }
.drop strong { color: var(--text); font-size: 16px; font-weight: 700; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:hover .up, .drop.over .up { transform: translateY(-2px); }
.drop input { display: none; }

/* file list */
.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.files li:last-child { border-bottom: 0; }
.ext {
  width: 38px; height: 38px; border-radius: 9px; flex: none; display: grid; place-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
}
.ext.t-pdf { background: var(--danger-soft); color: var(--danger); }
.ext.t-img, .ext.t-xls { background: var(--ok-soft); color: var(--ok); }
.ext.t-zip, .ext.t-vid { background: var(--warn-soft); color: var(--warn); }
.files .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.files .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.files .size { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.files .link { color: var(--accent); text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 8px; background: var(--accent-soft); white-space: nowrap; }
.files .link:hover { background: var(--accent); color: var(--on-accent); }
.x { border: 0; background: none; width: 30px; height: 30px; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; flex: none; }
.x:hover { color: var(--danger); background: var(--danger-soft); }
.total { color: var(--muted); font-size: 14px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .x:focus-visible, .eye:focus-visible, .drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.wide { width: 100%; padding: 14px 22px; font-size: 17px; margin-top: 6px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { background: var(--danger); color: #fff; }
.btn svg { width: 18px; height: 18px; }
form .btn { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* progress */
.progress-num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 0; }
.bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.bar > div { height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width .2s; }

/* done */
.copy { display: flex; gap: 8px; margin: 0 0 14px; }
.copy input { margin: 0; flex: 1; min-width: 0; font-weight: 600; }
.box { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; color: var(--muted); }
.box strong { color: var(--text); }
.box a { word-break: break-all; }
.note { background: var(--warn-soft); color: var(--warn); padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; }
.sent { background: var(--ok-soft); color: var(--ok); padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; font-weight: 600; }
blockquote { margin: 0 0 18px; padding: 14px 16px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 4px 10px 10px 4px; overflow-wrap: anywhere; }

/* manage */
.stats { margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.stats dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stats dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.stats dd small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.off { background: var(--line); color: var(--muted); }
.danger-zone { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; margin-bottom: 4px; }
input[type=checkbox] { accent-color: var(--danger); width: 18px; height: 18px; margin: 0; }

@media (max-width: 900px) {
  .home { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 560px; margin: 0 auto; }
  .intro { padding-top: 4px; position: static; }
  .intro p { font-size: 16px; margin-bottom: 0; }
  .features { display: none; }
}
@media (max-width: 520px) {
  .site-header { padding: 16px; }
  .tagline { display: none; }
  main { padding: 4px 16px 32px; }
  .card { padding: 22px 18px; }
  .row { flex-direction: column; gap: 0; }
  .copy { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.stats .full { grid-column: 1 / -1; }

/* termini e privacy */
.legal-links { display: flex; justify-content: center; gap: 16px; margin-top: 8px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover { color: var(--accent); }
.terms { align-items: flex-start; font-size: 14px; font-weight: 400; color: var(--muted); margin: 18px 0 14px; }
.terms input { margin-top: 2px; accent-color: var(--accent); flex: none; }
.card.legal { max-width: 760px; margin: 16px auto 0; padding: 36px 40px; }
.legal h1 { font-size: 30px; margin-bottom: 4px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--text); max-width: 68ch; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.legal .lead { font-size: 17px; color: var(--muted); }
mark.todo { background: var(--warn-soft); color: var(--warn); padding: 0 4px; border-radius: 4px; }
@media (max-width: 520px) { .card.legal { padding: 24px 18px; } .legal h1 { font-size: 24px; } }

.head-right { display: flex; align-items: center; gap: 16px; }

/* menu, piani e account */
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav .nav-acc { color: var(--accent); background: var(--accent-soft); }
.plan-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.plan-line a { font-weight: 600; }
.pricing-head { text-align: center; max-width: 640px; margin: 20px auto 32px; }
.pricing-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; line-height: 1.1; font-weight: 800; margin: 0 0 12px; text-wrap: balance; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--accent); }
.plan-tag { position: absolute; top: -12px; left: 28px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h2 { font-size: 20px; margin: 0 0 8px; }
.price { margin: 0 0 18px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }
.feat { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.feat svg { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }
.plan .terms { margin: 0 0 6px; font-size: 13px; }
.plan form .btn { margin-top: 6px; }
.plan-current { text-align: center; font-weight: 700; color: var(--ok); background: var(--ok-soft); border-radius: 10px; padding: 12px; margin: 0; }
.center-note { text-align: center; max-width: 640px; margin: 24px auto 0; }
.card.wide-card { max-width: 640px; }
.form-foot { margin: 16px 0 0; text-align: center; }
details.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; }
details.danger-zone[open] summary { margin-bottom: 10px; }
.actions form { margin: 0; }
.actions form .btn { margin-top: 0; }
@media (max-width: 520px) { .site-nav a:not(.nav-acc) { padding: 7px 8px; } .head-right { gap: 8px; } }
.site-header { flex-wrap: wrap; row-gap: 10px; }
.site-nav a { white-space: nowrap; }
.plans { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
@media (max-width: 520px) { .head-right { width: 100%; justify-content: space-between; } }
.feat { align-content: start; }
.pw input::-ms-reveal, .pw input::-ms-clear { display: none; }

/* home: come funziona e domande frequenti */
.how, .faq { max-width: 1080px; margin: 72px auto 0; }
.how h2, .faq h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; font-weight: 800; margin: 0 0 24px; text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.steps .ic svg { width: 22px; height: 22px; }
.steps h3 { font-size: 18px; margin: 0 0 6px; }
.steps h3::before { content: counter(step) ". "; color: var(--accent); }
.steps p { margin: 0; color: var(--muted); }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 14px 32px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 68ch; }
.faq-more { margin: 28px 0 0; }
.tech { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: var(--muted); overflow-wrap: anywhere; margin: 0 0 16px; }
.meter { display: block; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

/* banner cookie */
.cookie-banner {
  position: fixed; z-index: 1000; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(560px, calc(100% - 32px)); box-sizing: border-box; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(15, 23, 42, .18); padding: 20px; font-size: 14px; line-height: 1.5; text-align: left;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 36px 16px 0; color: var(--muted); }
.cookie-banner p strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; margin: 0; }
.cookie-banner .cookie-actions .btn { flex: 1 1 0; min-width: 0; margin: 0; padding: 11px 16px; font-size: 15px; border: 1px solid transparent; }
.cookie-banner .cookie-actions .btn.ghost { border-color: var(--line); }
.cookie-banner .cookie-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 22px; line-height: 32px; text-align: center; cursor: pointer; }
.cookie-banner .cookie-x:hover { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 420px) { .cookie-banner .cookie-actions { flex-direction: column-reverse; } }

.cookie-banner .cookie-actions .btn { padding: 11px 10px; }
.cookie-panel { display: grid; gap: 10px; margin: 0 0 14px; }
.cookie-panel[hidden] { display: none; }
.cookie-cat { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 400; color: var(--muted); font-size: 13px; cursor: pointer; }
.cookie-cat input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.cookie-cat b { display: block; color: var(--text); font-size: 14px; }
.cookie-panel .btn.wide { margin: 0; font-size: 15px; padding: 11px 16px; }
@media (max-width: 420px) { .cookie-banner .cookie-actions { flex-direction: column-reverse; } }
.cookie-banner { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

@media (max-width: 520px) {
  body > .site-header { flex-wrap: nowrap; }
  .head-right { width: auto; }
  .site-nav { font-size: 14px; }
}
#app h2[tabindex]:focus { outline: none; }

@media (max-width: 520px) {
  body > .site-header { flex-wrap: nowrap; }
  .head-right { width: auto; }
  .site-nav { font-size: 14px; }
}
#app h2[tabindex]:focus { outline: none; }

/* ===================== Tema C: colorful playful ===================== */
html, body { overflow-x: clip; }
body { font-size: 17px; font-weight: 450; color: var(--ink); }
.home.hero, .faq, .pricing-head { width: 100vw; box-sizing: border-box; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding-left: max(24px, calc((100vw - 1136px) / 2)); padding-right: max(24px, calc((100vw - 1136px) / 2)); }
h1, h2, h3, .btn, strong, b, summary, .section-title, .plan-tag, .pill, label { font-weight: 800; }
label { font-weight: 600; font-size: 15px; }
.full-bleed, .facts, .plans { box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); background: var(--band); }

/* header: blocco giallo con logo a pillola */
body > .site-header { max-width: none; background: var(--yellow); border: 0; margin: 0; padding: 26px max(24px, calc((100% - 1136px) / 2)) 22px; border-radius: 0 0 56px 56px; position: relative; z-index: 1; }
body:has(.hero) > .site-header { border-radius: 0; }
.logo { background: #fff; color: var(--ink); font-weight: 800; font-size: 26px; letter-spacing: -.02em; padding: 8px 22px; border-radius: 999px; min-height: 48px; }
.logo .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--cobalt); margin-left: 2px; }
.site-nav { font-size: 17px; gap: 8px; }
.site-nav a { color: var(--ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; box-sizing: border-box; }
.site-nav a:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.site-nav .nav-acc, .site-nav .nav-acc:hover { background: var(--ink); color: #fff; font-weight: 800; padding: 10px 24px; }

main { padding: 48px 24px 72px; max-width: 1184px; }

/* hero giallo centrato con cerchi decorativi */
.home.hero { --band: var(--yellow); display: flex; flex-direction: column; align-items: center; gap: 44px; margin-top: -48px; padding-top: 30px; padding-bottom: 96px; position: relative; overflow: hidden;
  border-radius: 0 0 64px 64px; background: var(--yellow); }
.home.hero::before, .home.hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.home.hero::before { width: 240px; height: 240px; background: var(--pink); top: 70px; left: -90px; }
.home.hero::after { width: 160px; height: 160px; background: var(--cobalt); top: 380px; right: -60px; }
.hero > * { position: relative; z-index: 1; }
.intro { text-align: center; position: static; padding: 0; color: var(--ink); }
.intro h1 { font-size: clamp(52px, 9vw, 120px); line-height: .95; letter-spacing: -.035em; margin: 0; }
.intro h1 em { font-style: normal; background: var(--cobalt); color: #fff; padding: 0 .23em .07em; display: inline-block; border-radius: 999px; transform: rotate(-2deg); }
.intro p { color: var(--ink); font-size: 21px; max-width: 620px; margin: 28px auto 0; }

/* scheda di invio grande */
#app { width: 100%; max-width: 960px; border: 0; border-radius: 40px; padding: 28px; box-shadow: 0 14px 0 var(--cobalt); }
#step-form > :not(.drop):not(.files):not(.total), #step-progress, #step-done { padding-left: 8px; padding-right: 8px; }
#step-progress, #step-done { max-width: 620px; margin: 0 auto; padding-top: 12px; padding-bottom: 12px; text-align: center; }
#step-done .copy, #step-done .box, #step-done .note, #step-done .sent, #step-done .error { text-align: left; }
#step-progress .badge-ic, #step-done .badge-ic { margin: 0 auto 16px; }
#step-done .actions { justify-content: center; }
.drop { background: var(--cobalt); color: #fff; border: 4px dashed #fff; outline: 4px solid var(--cobalt); outline-offset: -4px; border-radius: 28px; min-height: 300px; padding: 48px 24px; justify-content: center; gap: 12px; }
.drop:hover, .drop.over { background: #2342E6; border-color: var(--yellow); }
.drop .up { width: 96px; height: 96px; background: var(--yellow); color: var(--ink); border: 0; margin-bottom: 6px; }
.drop .up svg { width: 50px; height: 50px; stroke-width: 2.4; }
.drop strong { color: #fff; font-size: clamp(32px, 5vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.drop > span:not(.up):not(.browse) { color: rgba(255,255,255,.92); font-size: 18px; }
.drop .browse { margin-top: 8px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 18px; padding: 14px 32px; min-height: 52px; box-sizing: border-box; border-radius: 999px; display: inline-flex; align-items: center; }
.plan-line { margin-bottom: 16px; }
.plan-line a { color: var(--cobalt); }
.section { border-top: 0; padding-top: 10px; margin-top: 18px; }
.section-title { color: var(--cobalt); letter-spacing: .12em; font-size: 13px; }
#app .section { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 20px; }
#app .section > .section-title { grid-column: 1 / -1; }
#app .section > label:has(textarea) { grid-column: 1 / -1; }
input[type=text], input[type=password], input[type=email], select, textarea { border: 3px solid var(--ink); border-radius: 20px; background: #fff; padding: 14px 20px; min-height: 56px; font-size: 17px; margin-top: 8px; }
.pw { margin-top: 8px; }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--accent-soft); }
.pw .eye { right: 10px; color: var(--ink); }
.pw .eye:hover { background: var(--yellow); color: var(--ink); }
.terms { color: var(--muted); }

/* pulsanti */
.btn { border-radius: 999px; padding: 12px 26px; min-height: 52px; box-sizing: border-box; background: var(--pink); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn:hover { background: #FF7AA3; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.wide { font-size: 24px; min-height: 68px; border-width: 4px; box-shadow: 0 6px 0 var(--ink); margin-top: 8px; }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--yellow); }
.btn.danger { background: var(--danger); color: #fff; }
.btn:disabled { background: #ECECF4; color: #8A8AA6; border-color: #C9C9DA; box-shadow: none; transform: none; }
.copy .btn { box-shadow: none; }

/* schede delle altre pagine */
.card { border: 3px solid var(--ink); border-radius: 40px; box-shadow: 0 14px 0 var(--cobalt); padding: 34px; }
.card.center { margin-top: 32px; }
.card h1, .card h2 { font-size: 32px; letter-spacing: -.03em; }
.badge-ic { width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.badge-ic svg { width: 44px; height: 44px; }
.badge-ic.ok { background: var(--pink); }
.badge-ic.danger { background: var(--pink); }
.ext { width: 48px; height: 48px; border-radius: 16px; }
.ext, .ext.t-img, .ext.t-xls { background: var(--accent-soft); color: var(--cobalt); }
.ext.t-pdf { background: #FFE3EA; color: #B0124A; }
.ext.t-zip, .ext.t-vid { background: #FFF3C4; color: #7A5300; }
.files .link { border-radius: 999px; background: var(--yellow); color: var(--ink); padding: 9px 16px; }
.files .link:hover { background: var(--ink); color: #fff; }
.pill.ok { background: var(--yellow); color: var(--ink); }
.box, .stats div, blockquote, .tech { border-radius: 22px; border: 0; background: #F4F5FF; }
.note, .sent, .error { border-radius: 18px; }
.bar { height: 16px; border: 3px solid var(--ink); background: #fff; }
.bar > div { background: var(--pink); }
input[type=checkbox] { accent-color: var(--cobalt); width: 20px; height: 20px; }

/* fascia blu con pillole */
.facts { --band: var(--cobalt); list-style: none; margin: 0; padding: 56px 0 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.facts li { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 20px; padding: 12px 26px; border-radius: 999px; }
.facts li:nth-child(2) { background: var(--pink); }
.facts li:nth-child(3) { background: #fff; }
.facts svg { width: 22px; height: 22px; }

/* come funziona: schede colorate */
.how { max-width: none; margin: 0; padding: 96px 0 88px; }
.how h2, .faq h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.035em; max-width: 780px; margin: 0 0 56px; }
.faq h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.steps { gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.steps li { border: 0; border-radius: 36px; padding: 36px; background: var(--pink); box-shadow: none; }
.steps li:nth-child(2) { background: var(--yellow); }
.steps li:nth-child(3) { background: var(--cobalt); color: #fff; }
.steps li:nth-child(3) p { color: rgba(255,255,255,.92); }
.steps .ic { width: 88px; height: 88px; border-radius: 50%; background: #fff; color: var(--ink); margin: 0; }
.steps .ic svg { width: 44px; height: 44px; }
.steps h3 { font-size: 30px; letter-spacing: -.02em; margin: 24px 0 10px; }
.steps h3::before { color: inherit; }
.steps p { color: var(--ink); font-size: 17px; }

/* domande: blocco rosa arrotondato */
.faq { max-width: none; margin-top: 0; margin-bottom: -72px; padding-top: 88px; padding-bottom: 104px; border-radius: 64px 64px 0 0; background: var(--pink); }
.faq > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq > h2 { max-width: 860px; }
.faq details { background: #fff; border: 0; border-radius: 28px; padding: 4px 28px; margin-bottom: 14px; }
.faq summary { font-size: 20px; padding: 18px 52px 18px 0; }
.faq summary::after { content: "+"; width: 40px; height: 40px; border-radius: 50%; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; background: var(--yellow); color: var(--ink); }
.faq details p { color: var(--ink); font-size: 17px; margin-bottom: 20px; }
.faq-more { margin-top: 32px; }
.faq-more .btn.ghost { background: var(--yellow); border-color: var(--ink); }

/* piani */
.pricing-head { max-width: none; margin-top: -48px; margin-bottom: 0; padding-top: 40px; padding-bottom: 80px; text-align: center; border-radius: 0 0 64px 64px; background: var(--yellow); }
body:has(.pricing-head) > .site-header { border-radius: 0; }
.pricing-head h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.035em; max-width: 900px; margin: 0 auto 18px; }
.pricing-head .muted { color: var(--ink); font-size: 19px; }
.plans { --band: #fff; max-width: none; padding: 64px 0 24px; gap: 28px; }
.plan { border: 3px solid var(--ink); border-radius: 36px; box-shadow: none; padding: 36px; background: #fff; }
.plan.featured { background: var(--cobalt); color: #fff; border-color: var(--cobalt); box-shadow: 0 14px 0 var(--ink); }
.plan.featured .price span, .plan.featured .feat svg { color: var(--yellow); }
.plan.featured .terms, .plan.featured .terms a { color: rgba(255,255,255,.9); }
.plan.featured .btn { background: var(--yellow); }
.plan h2 { font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }
.price b { font-size: 60px; letter-spacing: -.04em; }
.feat li { font-size: 17px; }
.feat svg { color: var(--cobalt); }
.plan-tag { background: var(--pink); color: var(--ink); border: 3px solid var(--ink); top: -18px; font-size: 14px; padding: 4px 14px; }
.plan-current { background: var(--yellow); color: var(--ink); border-radius: 999px; }

.card.legal { box-shadow: 0 14px 0 var(--pink); }

/* footer scuro */
footer { background: var(--ink); color: #C9C9E0; border: 0; margin: 72px 0 0; padding: 44px 24px; font-size: 15px; }
main:has(.faq) + footer { margin-top: 0; }
footer a, .legal-links a { color: #fff; font-weight: 700; text-decoration: none; }
.legal-links a:hover { color: var(--yellow); }
footer .copy-line { color: var(--yellow); font-weight: 800; font-size: 18px; }

.cookie-banner { border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--cobalt); }
.cookie-cat { border-radius: 18px; }

@media (max-width: 900px) {
  .home.hero::after { top: auto; bottom: 120px; }
}
@media (max-width: 520px) {
  body > .site-header { padding: 16px; flex-wrap: wrap; gap: 10px; }
  .logo { font-size: 20px; padding: 6px 16px; min-height: 44px; }
  .site-nav a { padding: 8px 12px; }
  .site-nav .nav-acc { padding: 8px 16px; }
  main { padding: 40px 16px 56px; }
  .home.hero { margin-top: -40px; padding-bottom: 64px; border-radius: 0 0 40px 40px; }
  .faq { border-radius: 40px 40px 0 0; }
  .pricing-head { border-radius: 0 0 40px 40px; }
  .intro p { font-size: 18px; }
  #app { padding: 16px; border-radius: 30px; }
  .drop { min-height: 240px; padding: 36px 16px; }
  .card { padding: 24px 18px; border-radius: 30px; }
  .facts li { font-size: 17px; padding: 10px 20px; }
  .steps li { padding: 28px; }
  .faq details { padding: 2px 20px; }
  .pricing-head { margin-top: -40px; }
}

.pw input { padding-right: 84px; }
.home.hero { z-index: 1; }
.facts { position: relative; z-index: 0; margin-top: -64px; padding-top: 120px; }
@media (max-width: 520px) { .facts { margin-top: -40px; padding-top: 96px; } }
.btn.ghost { border: 3px solid var(--ink); }
.btn:disabled, .plan.featured .btn:disabled { background: #ECECF4; color: #8A8AA6; border-color: #C9C9DA; box-shadow: none; transform: none; }
.badge-ic.ok, .badge-ic.danger { color: var(--ink); }
.price { flex-wrap: wrap; }
.price b { font-size: 56px; }
.price span { white-space: nowrap; }

/* rosa solo per piccoli dettagli */
.btn { background: var(--cobalt); color: #fff; }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.ghost:hover { background: var(--yellow); }
.plan.featured .btn { background: var(--yellow); color: var(--ink); }
.home.hero::before { width: 72px; height: 72px; top: 120px; left: 7%; background: var(--pink); }
.home.hero > .intro::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--pink); right: 13%; top: 36px; }
.steps li:nth-child(1) { background: var(--yellow); }
.steps li:nth-child(2) { background: #fff; border: 3px solid var(--ink); }
.steps li:nth-child(2) .ic { background: var(--yellow); }
.steps h3::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 50%; background: var(--pink); color: var(--ink); font-size: 18px; vertical-align: 3px; }
.faq { background: var(--yellow); }
.faq-more .btn.ghost { background: #fff; }
.badge-ic.ok { background: var(--cobalt); color: #fff; }
.badge-ic.danger { background: var(--pink); }
.bar > div { background: var(--cobalt); }
.card.legal { box-shadow: 0 14px 0 var(--cobalt); }
@media (max-width: 520px) {
  .home.hero::before { width: 44px; height: 44px; top: 8px; left: -14px; }
  .home.hero::after { width: 90px; height: 90px; right: -50px; }
  .home.hero > .intro::after { width: 16px; height: 16px; right: 4%; top: 6px; }
}

/* mascotte (disegno originale) seduta sulla scheda di invio */
.app-wrap { position: relative; width: 100%; max-width: 960px; }
.app-wrap #app { position: relative; z-index: 1; }
.mascot { position: absolute; z-index: 2; width: 190px; height: auto; right: -36px; top: -164px; pointer-events: none; transform: rotate(4deg); }
@media (max-width: 1100px) { .mascot { right: 12px; } }
@media (max-width: 700px) { .home.hero { gap: 90px; } .mascot { width: 104px; top: -88px; right: 8px; } }
.mascot-big { display: block; width: 150px; height: auto; margin: 0 auto 10px; }
.card.sad { text-align: center; }
.card.sad .muted { max-width: 380px; margin-left: auto; margin-right: auto; }
@media (max-width: 520px) { .mascot-big { width: 120px; } }
.app-wrap:has(#step-done:not([hidden])) .mascot, .app-wrap:has(#step-progress:not([hidden])) .mascot { display: none; }
