/* Font ospitati sul sito (nessuna richiesta a Google: niente dati dei visitatori a terzi) */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); 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: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-latin-wght-normal.woff2') format('woff2'); 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: 'Lora'; font-style: italic; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-latin-wght-italic.woff2') format('woff2'); 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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Lora'; font-style: italic; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-latin-ext-wght-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('../assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Lora'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Lora'; font-style: italic; font-display: swap; font-weight: 400 700; src: url('../assets/fonts/lora-cyrillic-wght-italic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* Gradus — sito web. Basato su Grafiche/gradus_brand_pack */
:root {
  --crema: #FDFBF0;
  --navy: #1F2937;
  --emerald: #16A34A;
  --emerald-dark: #15803D;
  --amber: #FBBF24;
  --white: #FFFFFF;

  --bg: var(--crema);
  --bg-alt: #F6F2E1;
  --surface: var(--white);
  --text: var(--navy);
  --muted: #5B6472;
  --line: rgba(31, 41, 55, 0.10);
  --emerald-soft: rgba(22, 163, 74, 0.10);
  --amber-soft: rgba(251, 191, 36, 0.22);

  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 12px;
  --shadow: 0 4px 6px -1px rgba(31, 41, 55, 0.05), 0 1px 2px rgba(31, 41, 55, 0.04);
  --shadow-lg: 0 30px 60px -20px rgba(31, 41, 55, 0.28), 0 10px 20px -10px rgba(31, 41, 55, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin: 0; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--crema); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:focus-visible, .icon-btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-primary { background: var(--emerald); color: var(--white); }
.btn-primary:hover { background: var(--emerald-dark); }
.btn-primary:disabled { background: #9CA3AF; cursor: not-allowed; }
.btn-ghost { border-color: rgba(31, 41, 55, 0.2); color: var(--navy); background: transparent; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--font-heading); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--emerald-dark); background: var(--emerald-soft); padding: 6px 12px; border-radius: 999px; margin: 0 0 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.hero h1 { font-size: clamp(40px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--emerald); }
.lead { font-size: 18px; color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--emerald); font-weight: 700; margin-right: 6px; }

/* App mockup */
.window { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #F3F1E6; border-bottom: 1px solid var(--line); }
.tl { width: 11px; height: 11px; border-radius: 50%; }
.tl.r { background: #F87171; } .tl.y { background: var(--amber); } .tl.g { background: #4ADE80; }
.window-title { margin-left: 12px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window-body { display: grid; grid-template-columns: 190px 1fr; min-height: 400px; }
.m-side { background: var(--bg); border-right: 1px solid var(--line); padding: 14px 10px; font-size: 12px; }
.m-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 4px 6px 6px; }
.m-label:not(:first-child) { margin-top: 16px; }
.m-ch, .m-tool { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; }
.m-ch b { width: 18px; height: 18px; border-radius: 5px; background: var(--line); display: grid; place-items: center; font-size: 10px; }
.m-ch span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ch i, .m-tool i { font-style: normal; color: var(--muted); font-size: 10px; }
.m-tool { justify-content: space-between; color: var(--navy); }
.m-ch.active { background: var(--emerald-soft); color: var(--emerald-dark); font-weight: 600; }
.m-ch.active b { background: var(--emerald); color: var(--white); }
.m-progress { height: 6px; background: var(--line); border-radius: 4px; margin: 18px 6px 6px; overflow: hidden; }
.m-progress span { display: block; height: 100%; background: var(--emerald); border-radius: 4px; }
.m-progress-l { font-size: 10px; color: var(--muted); margin: 0 6px; }
.m-page-wrap { background: #EEEBDD; padding: 20px; display: flex; justify-content: center; }
.m-page { background: var(--white); width: 100%; max-width: 330px; padding: 18px 26px 14px; box-shadow: 0 2px 8px rgba(31, 41, 55, .08); font-family: var(--font-heading); display: flex; flex-direction: column; }
.m-head, .m-foot { display: flex; justify-content: space-between; font: 9px var(--font-body); color: var(--muted); }
.m-head { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 14px; }
.m-foot { margin-top: auto; padding-top: 10px; }
.m-page h4 { font-size: 16px; margin-bottom: 8px; }
.m-page p { font-size: 10.5px; line-height: 1.6; margin: 0 0 8px; }
.m-page u { text-decoration-color: var(--emerald); text-decoration-thickness: 2px; }
.m-lines span { display: block; height: 5px; background: #ECEAE2; border-radius: 3px; margin: 7px 0; }
.m-fig { margin: 10px 0; }
.m-img { height: 70px; border-radius: 4px; background: linear-gradient(160deg, #BBF7D0, #FEF3C7 60%, #FDE68A); position: relative; overflow: hidden; }
.m-img::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -30px; height: 60px; background: var(--emerald); opacity: .35; border-radius: 50%; }
.m-fig small { display: block; font: 9px var(--font-body); color: var(--emerald-dark); margin-top: 4px; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--emerald); margin: 0 0 10px; }
.kicker-light { color: #4ADE80; }
.section h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 600; }
.sub { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(31, 41, 55, 0.08); }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature h3 { font-size: 19px; font-weight: 600; margin: 16px 0 8px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); }
.f-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--emerald-soft); display: grid; place-items: center; }
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--emerald-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(4n+2) .f-icon, .feature:nth-child(4n+3) .f-icon { background: var(--amber-soft); }
.feature:nth-child(4n+2) .f-icon svg, .feature:nth-child(4n+3) .f-icon svg { stroke: #B45309; }

/* Demo */
.demo { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; min-height: 540px; }
.demo-side { background: var(--bg); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; }
.demo-side-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0 6px 10px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; }
.icon-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ch { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 10px; align-items: center; padding: 9px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; user-select: none; background: transparent; }
.ch:hover { background: rgba(31, 41, 55, .04); }
.ch.active { background: var(--emerald-soft); border-color: rgba(22, 163, 74, .25); }
.ch.dragging { opacity: .4; }
.ch.drop-before { box-shadow: inset 0 3px 0 var(--emerald); }
.ch.drop-after { box-shadow: inset 0 -3px 0 var(--emerald); }
.ch-num { width: 24px; height: 24px; border-radius: 6px; background: var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; grid-row: span 2; }
.ch.active .ch-num { background: var(--emerald); color: var(--white); }
.ch-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-stats { font-size: 12px; color: var(--muted); grid-column: 2; }
.ch-move { grid-row: span 2; display: flex; flex-direction: column; gap: 2px; opacity: 0; transition: opacity .15s; }
.ch:hover .ch-move, .ch.active .ch-move, .ch:focus-within .ch-move { opacity: 1; }
.ch-move button { width: 22px; height: 18px; border: 0; border-radius: 4px; background: rgba(31, 41, 55, .06); color: var(--navy); font-size: 10px; cursor: pointer; padding: 0; }
.ch-move button:hover:not(:disabled) { background: var(--emerald); color: var(--white); }
.ch-move button:disabled { opacity: .3; cursor: default; }
.demo-total { margin-top: auto; padding: 14px 6px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.demo-total b { color: var(--navy); }
.demo-total .bar { height: 6px; border-radius: 4px; background: var(--line); margin: 8px 0 6px; overflow: hidden; }
.demo-total .bar span { display: block; height: 100%; background: var(--emerald); transition: width .3s; }

.demo-main { background: #EEEBDD; display: flex; flex-direction: column; }
.demo-toolbar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.demo-toolbar label { display: flex; align-items: center; gap: 8px; }
.demo-toolbar select { font: 500 13px var(--font-body); color: var(--navy); padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }
.toast { font-size: 12px; color: var(--emerald-dark); background: var(--emerald-soft); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.toast.show { opacity: 1; }
.demo-page { background: var(--white); margin: 28px auto; width: min(620px, 100% - 32px); flex: 1; padding: 28px 52px 22px; box-shadow: 0 4px 16px rgba(31, 41, 55, .08); display: flex; flex-direction: column; }
.demo-head, .demo-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.demo-head { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 22px; }
.demo-foot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 18px; }
.demo-title { font: 600 26px var(--font-heading); color: var(--navy); border: 0; padding: 0; margin-bottom: 14px; background: transparent; width: 100%; }
.demo-title:focus { outline: none; box-shadow: 0 2px 0 var(--amber); }
.demo-editor { flex: 1; min-height: 260px; outline: none; font-family: 'Lora', serif; font-size: 16px; line-height: 1.75; }
.demo-editor p { margin: 0 0 12px; }
.demo-editor:empty::before { content: "Scrivi qui, oppure incolla del testo da Word o da una pagina web…"; color: #A3A9B3; }

/* Extras */
.extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.extra { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.extra h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.extra h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); margin-right: 10px; vertical-align: middle; transform: translateY(-2px); }
.extra p { margin: 0; color: var(--muted); font-size: 15px; }

/* Export */
.section-dark { background: var(--navy); color: var(--crema); }
.section-dark h2 { color: var(--crema); }
.section-dark .sub { color: #C9CDD4; }
.export-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.formats li { background: rgba(253, 251, 240, .06); border: 1px solid rgba(253, 251, 240, .12); border-radius: 10px; padding: 14px; }
.formats b { display: block; font: 700 18px var(--font-heading); color: var(--crema); }
.formats span { font-size: 12px; color: #AEB4BE; }
.formats li:nth-child(1) b, .formats li:nth-child(2) b, .formats li:nth-child(10) b { color: #4ADE80; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 34px 24px; position: relative; }
.dl .os { width: 42px; height: 42px; fill: var(--navy); margin-bottom: 14px; }
.dl h3 { font-size: 22px; font-weight: 600; }
.dl p { color: var(--muted); font-size: 14px; margin: 8px 0 12px; }
.dl .pkg { font-size: 12px; font-weight: 600; color: var(--emerald-dark); background: var(--emerald-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 20px; }
.dl .btn { margin-top: auto; width: 100%; }
.dl.mine { border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-soft), var(--shadow); }
.dl.mine::before { content: "Il tuo sistema"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--navy); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--emerald); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #C9CDD4; padding: 48px 0; border-top: 1px solid rgba(253, 251, 240, .08); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.site-footer .brand { color: var(--crema); margin-bottom: 6px; }
.site-footer p { margin: 0; font-family: var(--font-heading); font-style: italic; }
.site-footer .small { font: 13px var(--font-body); color: #8C939E; margin-top: 10px; }

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .window { transform: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .export-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .demo { grid-template-columns: 1fr; }
  .demo-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .ch-move { opacity: 1; }
  .downloads { grid-template-columns: 1fr; }
  .formats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .hero { padding: 36px 0 60px; }
  .features { grid-template-columns: 1fr; }
  .window-body { grid-template-columns: 1fr; }
  .m-side { display: none; }
  .demo-page { padding: 22px 22px 16px; margin: 16px auto; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Novità */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 72px; }
.news-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.news-item h3 { font-size: 18px; font-weight: 600; margin: 10px 0 6px; }
.news-item p { margin: 0; color: var(--muted); font-size: 15px; }
.news-item a { color: var(--emerald-dark); font-weight: 600; }
.news-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--navy); background: var(--amber); padding: 2px 8px; border-radius: 999px; }
.soon-head { margin-top: 0; }
.formats li.soon { opacity: .55; border-style: dashed; }
.formats li.soon b { color: #C9CDD4 !important; }

/* Download */
.dl-multi { display: flex; gap: 6px; width: 100%; margin-top: auto; }
.dl-multi .btn { flex: 1; padding: 12px 8px; }
.dl .btn { margin-top: auto; }
.dl-size { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 1.2em; }
.manual-card { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 24px; text-decoration: none; transition: border-color .2s; }
.manual-card:hover { border-color: var(--emerald); }
.manual-card svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--emerald-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.manual-card span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.manual-card b { font: 600 18px var(--font-heading); }
.manual-card small { color: var(--muted); font-size: 14px; }
.dl-note { text-align: center; color: var(--muted); font-size: 14px; margin: 18px auto 0; max-width: 680px; }

@media (max-width: 1020px) { .news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .news { grid-template-columns: 1fr; }
  .manual-card { flex-direction: column; align-items: flex-start; }
}

/* manuali in 8 lingue */
.manuals { margin-top: 20px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.manuals-head { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.manuals-head svg { width: 40px; height: 40px; flex-shrink: 0; fill: none; stroke: var(--emerald-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.manuals-head span { display: flex; flex-direction: column; gap: 2px; }
.manuals-head small { color: var(--muted); font-size: 14px; }
.manual-langs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.manual-lang { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); transition: border-color .2s, background .2s; }
.manual-lang:hover { border-color: var(--emerald); background: rgba(22,163,74,.06); }
.manual-lang .dl-size { font-size: 12px; color: var(--muted); }
.feature.is-new { position: relative; }
.feature.is-new::after { content: "0.5"; position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--amber); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 760px) { .manual-langs { grid-template-columns: repeat(2, 1fr); } }
.nowrap { white-space: nowrap; }
.feature.is-new06 { position: relative; border-color: var(--emerald); }
.feature.is-new06::after { content: "0.6"; position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: #fff; background: var(--emerald); padding: 2px 8px; border-radius: 999px; }

/* ---------- Sito in 8 lingue ---------- */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: none; }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--navy); border-color: var(--navy); }
.lang-menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-menu ul { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); }
.lang-menu li a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--navy) !important; font-size: 15px; font-weight: 500; }
.lang-menu li a:hover { background: var(--emerald-soft); }
.lang-menu li a[aria-current="page"] { font-weight: 700; color: var(--emerald-dark) !important; }
.lang-menu li a[aria-current="page"]::after { content: " ✓"; }
.lang-menu li a[dir="rtl"] { text-align: right; }
details.lang-menu { background: none; border: 0; margin: 0; }
.manual-lang.mine { border-color: var(--emerald); background: rgba(22,163,74,.08); }
.dl.mine::before { content: attr(data-mine); }
.dl.mine:not([data-mine])::before { content: "Il tuo sistema"; }
.demo-editor:empty::before { content: attr(data-placeholder); }
@media (max-width: 820px) {
  .lang-menu { margin-top: 10px; }
  .lang-menu ul { position: static; box-shadow: none; margin-top: 6px; display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav .lang-menu li a { padding: 10px 12px; border-bottom: 0; }
}

/* cinese e giapponese: niente corsivi finti, caratteri di sistema */
:lang(zh) body, :lang(ja) body { line-break: strict; }
:lang(zh) { --font-body: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; --font-heading: Lora, "Songti SC", "Noto Serif CJK SC", "SimSun", serif; }
:lang(ja) { --font-body: Inter, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif; --font-heading: Lora, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif; }
:lang(zh) em, :lang(ja) em, :lang(zh) .site-footer p, :lang(ja) .site-footer p, :lang(ar) em, :lang(ar) .site-footer p { font-style: normal; }
:lang(zh) .kicker, :lang(ja) .kicker, :lang(zh) .news-tag, :lang(ja) .news-tag { letter-spacing: .04em; }
:lang(ar) { --font-body: Inter, "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-heading: "Noto Naskh Arabic", "Geeza Pro", "Times New Roman", Lora, serif; }
:lang(ar) .kicker, :lang(ar) .m-label, :lang(ar) .demo-side-head, :lang(ar) .news-tag { letter-spacing: 0; }
:lang(ar) body { line-height: 1.75; }

/* arabo: da destra a sinistra */
[dir="rtl"] .hero-points li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .window { transform: perspective(1600px) rotateY(6deg) rotateX(2deg); transform-origin: right center; }
[dir="rtl"] .window-title { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .m-side { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .demo-side { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .extras { border-left: 0; border-right: 1px solid var(--line); }
[dir="rtl"] .extra { border-right: 0; border-left: 1px solid var(--line); }
[dir="rtl"] .extra h3::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .feature.is-new::after, [dir="rtl"] .feature.is-new06::after { right: auto; left: 16px; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .m-ch i, [dir="rtl"] .m-tool i { direction: ltr; }
[dir="rtl"] .dl-size, [dir="rtl"] .formats b { direction: ltr; unicode-bidi: isolate; }
@media (max-width: 820px) { [dir="rtl"] .demo-side { border-left: 0; } }

/* ---------- piè di pagina: link legali e contatti ---------- */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 14px; font: 13.5px var(--font-body); }
.footer-links a, .site-footer .small a { color: #C9CDD4; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 205, 212, .35); }
.footer-links a:hover, .site-footer .small a:hover { color: var(--crema); }

/* contatore dei download: nel riquadro di ogni sistema, sotto il peso del file */
.dl .dl-count { font-size: 12px; font-weight: 600; color: var(--emerald-dark, #15803D); margin-top: 2px; }
.dl .dl-count[hidden] { display: none; }

/* ---------- riquadro cookie ---------- */
.consent { position: fixed; z-index: 1000; inset-inline: 16px; bottom: 16px; margin-inline: auto; max-width: 560px; padding: 18px 20px; background: #fff; color: var(--navy); border: 1px solid rgba(31, 41, 55, .14); border-radius: 14px; box-shadow: 0 24px 60px -12px rgba(31, 41, 55, .35); font: 14px/1.55 var(--font-body); }
.consent p { margin: 0 0 10px; }
.consent .consent-title { font: 600 17px var(--font-heading); margin-bottom: 6px; }
.consent a { color: var(--emerald-dark, #15803D); }
.consent-opt { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13.5px; }
.consent-opt input { margin-top: 3px; accent-color: #16A34A; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }

/* ---------- pagine legali ---------- */
.legal-page .site-header { position: sticky; }
.legal-main { max-width: 820px; padding-top: 32px; padding-bottom: 64px; }
.legal-main h1 { font-size: clamp(28px, 4vw, 40px); margin: 8px 0 6px; }
.legal-updated { color: #5B6472; font-size: 14px; margin: 0 0 18px; }
.legal-langs { font-size: 13px; color: #5B6472; margin: 0; }
.legal-langs a { color: inherit; }
.legal-toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.legal-toc a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(22, 163, 74, .1); color: #15803D; text-decoration: none; font-size: 14px; }
.legal-sec { padding-top: 22px; border-top: 1px solid rgba(31, 41, 55, .1); margin-top: 22px; scroll-margin-top: 80px; }
.legal-sec h2 { font-size: 26px; margin-bottom: 12px; }
.legal-sec h3 { font-size: 18px; margin: 18px 0 8px; }
.legal-sec p, .legal-sec li { line-height: 1.65; }
.legal-sec ul { padding-inline-start: 22px; }
.legal-sec li { margin-bottom: 8px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.legal-table th, .legal-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid rgba(31, 41, 55, .12); vertical-align: top; }
@media (max-width: 640px) { .legal-table { display: block; overflow-x: auto; } .consent-actions { justify-content: stretch; } .consent-actions .btn { flex: 1; } }

/* ---------- 0.9: novità, pagine interne, contatti, guide ---------- */
.feature.is-new09 { position: relative; border-color: var(--amber); }
.feature.is-new09::after { content: "0.9"; position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: var(--navy); background: var(--amber); padding: 2px 8px; border-radius: 999px; }
[dir="rtl"] .feature.is-new09::after { right: auto; left: 16px; }
.page-nav { display: flex; align-items: center; gap: 18px; font: 500 15px var(--font-body); }
.page-nav a:not(.btn) { color: var(--text); text-decoration: none; }
.page-nav a:not(.btn):hover { color: var(--emerald-dark); }
@media (max-width: 560px) { .page-nav { gap: 10px; font-size: 14px; } .page-nav .btn { display: none; } }
.crumbs { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.crumbs a { color: inherit; }

.contact-form { display: grid; gap: 18px; margin: 26px 0 18px; max-width: 680px; }
.cf-field { display: grid; gap: 6px; font: 600 15px var(--font-body); }
.cf-field small { font-weight: 400; font-size: 13px; color: var(--muted); }
.cf-field input, .cf-field select, .cf-field textarea { font: 400 16px var(--font-body); color: var(--text); background: var(--surface); border: 1px solid rgba(31, 41, 55, .2); border-radius: 10px; padding: 11px 13px; width: 100%; box-sizing: border-box; }
.cf-field textarea { resize: vertical; min-height: 180px; line-height: 1.55; }
.cf-field input[type=file] { padding: 9px; background: var(--bg-alt); }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: 2px solid var(--emerald); outline-offset: 1px; border-color: transparent; }
.req { color: #B45309; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-privacy { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.cf-status { font-size: 15px; }
.cf-status.is-ok { color: var(--emerald-dark); font-weight: 600; }
.cf-status.is-err { color: #B91C1C; }
.cf-direct { font-size: 14px; color: var(--muted); }

.guide-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.guide-list a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.guide-list a:hover { border-color: var(--emerald); transform: translateY(-1px); }
.guide-list b { font: 600 18px/1.3 var(--font-heading); }
.guide-list span { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.guide-list-home { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 1100px; margin-inline: auto; }
.guides-all { text-align: center; margin-top: 8px; }
.guide h2 { font-size: 24px; margin: 30px 0 10px; }
.guide p, .guide li { line-height: 1.7; }
.guide .lead { font-size: 18px; color: #374151; }
.guide table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.guide th, .guide td { text-align: start; padding: 8px 10px; border-bottom: 1px solid rgba(31, 41, 55, .12); vertical-align: top; }
.guide th { background: var(--bg-alt); }
.guide pre { background: var(--navy); color: #F3F4F6; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; direction: ltr; text-align: left; }
[dir="rtl"] .guide pre { direction: rtl; text-align: right; }
.guide code { background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
@media (max-width: 640px) { .guide table { display: block; overflow-x: auto; } }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 34px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--emerald-soft); border: 1px solid rgba(22, 163, 74, .25); }
.guide-cta div { flex: 1; min-width: 220px; }
.guide-cta b { font: 600 19px var(--font-heading); }
.guide-cta p { margin: 4px 0 0; color: #374151; }
.guide-more { font-size: 22px; margin-top: 10px; }
.license-text { margin: 14px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.license-text summary { cursor: pointer; font-weight: 600; }
.license-text h3 { font-size: 20px; margin: 16px 0 6px; }
.license-text h4 { font-size: 16px; margin: 14px 0 4px; }

/* badge versione 0.10 sulle nuove funzionalità */
.feature.is-new010 { position: relative; border-color: var(--emerald); }
.feature.is-new010::after { content: "0.10"; position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; color: #fff; background: var(--emerald); padding: 2px 8px; border-radius: 999px; }
[dir="rtl"] .feature.is-new010::after { right: auto; left: 16px; }
