/* ============================================================================
   Gestionali Produsoft — Website design system (multi-dominio)
   Stile SaaS moderno (ispirazione Hubspot / Monday / Notion).
   Un solo foglio di stile per tutti i domini: il brand (colori) arriva da
   variabili CSS impostate inline da seo.php in base a DOMAIN_CONFIG.php.
   Dipende da Bootstrap 5.3.2 (layout/grid/utilities) già caricato in head.
   ============================================================================ */

:root {
	/* Brand: i valori reali vengono sovrascritti inline per dominio (--brand, --brand-strong, --accent). */
	--brand: #2563eb;
	--brand-strong: #1d4ed8;
	--brand-soft: #eff4ff;
	--accent: #06b6d4;

	--ink: #0f172a;          /* testo principale */
	--ink-soft: #475569;     /* testo secondario */
	--ink-muted: #94a3b8;    /* testo tenue */
	--line: #e2e8f0;         /* bordi */
	--bg: #ffffff;
	--bg-alt: #f8fafc;       /* sezioni alternate */
	--bg-dark: #0b1220;      /* footer / sezioni scure */

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
	--shadow-md: 0 10px 30px -12px rgba(15, 23, 42, .25);
	--shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);

	--container: 1180px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.container { max-width: var(--container); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { color: var(--ink-soft); }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #e5edff; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b7c2dc; }

.eyebrow {
	display: inline-block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--brand-strong);
	background: var(--brand-soft);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 46ch; }
.section .lead.mx-auto { max-width: 60ch; }

/* ---- Buttons ---------------------------------------------------------- */
.btn { font-weight: 600; border-radius: var(--radius-sm); padding: .7rem 1.4rem; transition: all .18s ease; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.02rem; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-brand:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.btn-light { background: #fff; color: var(--brand-strong); border-color: #fff; }
.btn-light:hover { background: #f1f5ff; color: var(--brand-strong); }

/* ---- Navbar ----------------------------------------------------------- */
.site-nav {
	background: rgba(255, 255, 255, .85);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 1030;
}
.site-nav .navbar-brand img { height: 34px; width: auto; }
.site-nav .nav-link { color: var(--ink); font-weight: 600; font-size: .96rem; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-strong); }
.site-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: .5rem; }
.site-nav .dropdown-item { border-radius: 8px; font-weight: 500; padding: .55rem .8rem; }
.site-nav .dropdown-item:hover { background: var(--brand-soft); color: var(--brand-strong); }
.site-nav .gc-features-menu.is-mega.show { display: grid; grid-template-columns: 1fr 1fr; min-width: 480px; }
@media (max-width: 575px) { .site-nav .gc-features-menu.is-mega { grid-template-columns: 1fr; min-width: auto; } }

/* ---- Answer-first (AEO) ----------------------------------------------- */
.answer-lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink); font-weight: 500; border-left: 4px solid var(--brand); padding: 6px 0 6px 18px; margin: 0; }
.answer-lead strong { font-weight: 800; }

/* ---- Logo parametrico ------------------------------------------------- */
.gc-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.gc-logo--v { flex-direction: column; gap: 8px; text-align: center; }
.gc-logo__mark { display: inline-flex; flex: none; }
.gc-logo__mark svg { height: 38px; width: 38px; display: block; }
.gc-logo__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.08; white-space: nowrap; }
.gc-logo__t1 { font-size: .8rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.gc-logo__t2 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.01em; color: var(--brand-strong); }
.gc-logo__tld { opacity: .55; font-weight: 700; }
.site-footer .gc-logo__t1 { color: #9fb0cf; }
.site-footer .gc-logo__t2 { color: #fff !important; }

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(60% 60% at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent) 0%, transparent 60%),
		radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 55%);
}
.hero h1 .hl { color: var(--brand-strong); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-muted); font-size: .9rem; }
.hero-trust i { color: var(--brand); margin-right: 6px; }
.hero-visual { border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; background: #fff; }

/* Mockup dashboard (SVG/HTML, niente screenshot reali) */
.mockup { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.mockup-bar { display: flex; gap: 7px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mockup-bar span:nth-child(1) { background: #f87171; }
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }
.mockup-body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.mockup-kpi { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.mockup-kpi b { display: block; font-size: 1.5rem; color: var(--ink); }
.mockup-kpi small { color: var(--ink-muted); }
.mockup-row { grid-column: 1 / -1; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--brand-soft), #fff); border: 1px solid var(--line); }
.mockup-row.short { width: 60%; }

/* ---- Logos / trustbar ------------------------------------------------- */
.trustbar { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trustbar p { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); margin-bottom: 14px; }

/* ---- Feature grid ----------------------------------------------------- */
.feature-card {
	background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 28px; height: 100%; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.feature-ico {
	width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand-strong); font-size: 1.35rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: .96rem; margin: 0; }

/* ---- Split (alternating feature rows) ---------------------------------
   Spaziatura tra colonne via gutter Bootstrap (NON 'gap': il gap su una row
   flex con colonne al 50% causa overflow e mandava a capo il mockup). */
.split { align-items: center; --bs-gutter-x: 3rem; --bs-gutter-y: 2.5rem; }
.split .checklist li { margin-bottom: 10px; color: var(--ink-soft); }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
	content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
	position: absolute; left: 0; top: 2px; color: var(--brand); font-size: .9rem;
}

/* ---- Steps ------------------------------------------------------------ */
.step { text-align: center; padding: 18px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }

/* ---- Pricing ---------------------------------------------------------- */
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.price-card.featured::after {
	content: "Più scelto"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
	padding: 4px 14px; border-radius: 999px; text-transform: uppercase;
}
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.price-amount small { font-size: 1rem; color: var(--ink-muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0; }
.price-card ul li { padding: 8px 0 8px 28px; position: relative; border-top: 1px solid var(--line); color: var(--ink-soft); }
.price-card ul li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--brand); }

/* ---- FAQ -------------------------------------------------------------- */
.faq .accordion-button { font-weight: 700; color: var(--ink); }
.faq .accordion-button:not(.collapsed) { color: var(--brand-strong); background: var(--brand-soft); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; border-color: var(--line); }
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom: 12px; overflow: hidden; }

/* ---- CTA band --------------------------------------------------------- */
.cta-band {
	border-radius: var(--radius); padding: 56px; text-align: center; color: #fff;
	background: linear-gradient(120deg, var(--brand) 0%, var(--brand-strong) 60%, var(--accent) 140%);
	box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); }

/* ---- Forms ------------------------------------------------------------ */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 32px; }
.form-control, .form-select { border-radius: var(--radius-sm); padding: .7rem .9rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }

/* ---- Footer ----------------------------------------------------------- */
.site-footer { background: var(--bg-dark); color: #b7c2dc; padding: 64px 0 28px; }
.site-footer h5 { color: #fff; font-size: .95rem; font-weight: 700; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer a { color: #b7c2dc; font-size: .94rem; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-logo img { height: 36px; filter: brightness(0) invert(1); opacity: .92; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .86rem; color: #8392b0; }

/* ---- Reveal on scroll ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Cookie bar ------------------------------------------------------- */
#cookie_bar {
	position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 560px; margin: 0 auto;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	padding: 18px 20px; z-index: 1060;
}
#cookie_bar p { font-size: .88rem; margin-bottom: 12px; }

/* ---- App mockup (vettoriale, riutilizzabile) -------------------------- */
.mk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.mk-top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mk-dot { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mk-dot:nth-child(1) { background: #f87171; } .mk-dot:nth-child(2) { background: #fbbf24; } .mk-dot:nth-child(3) { background: #34d399; }
.mk-url { margin-left: 10px; height: 18px; flex: 1; max-width: 62%; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.mk-win { display: grid; grid-template-columns: 60px 1fr; min-height: 300px; }
.mk-rail { background: var(--bg-alt); border-right: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mk-rail .mk-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); margin-bottom: 6px; }
.mk-rail i { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-muted); font-size: .85rem; }
.mk-rail i.on { background: var(--brand); color: #fff; }
.mk-main { padding: 16px 18px; }
.mk-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mk-h b { font-size: .92rem; color: var(--ink); }
.mk-pill { font-size: .58rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; }
.mk-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mk-kpi { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mk-kpi b { display: block; font-size: 1.25rem; color: var(--ink); line-height: 1.1; }
.mk-kpi small { color: var(--ink-muted); font-size: .62rem; }
.mk-chart { display: flex; align-items: flex-end; gap: 7px; height: 96px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.mk-chart span { flex: 1; background: linear-gradient(var(--brand), color-mix(in srgb, var(--brand) 35%, #fff)); border-radius: 4px 4px 0 0; }
.mk-list { margin-top: 4px; }
.mk-li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.mk-av { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); flex: none; }
.mk-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; font-size: .8rem; flex: none; }
.mk-grow { flex: 1; min-width: 0; }
.mk-line { height: 8px; border-radius: 4px; background: var(--line); }
.mk-line.w70 { width: 70%; } .mk-line.w50 { width: 50%; } .mk-line.w40 { width: 40%; margin-top: 5px; }
.mk-badge { font-size: .56rem; padding: 3px 8px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.mk-badge.green { background: #dcfce7; color: #16a34a; } .mk-badge.amber { background: #fef3c7; color: #d97706; }
.mk-badge.blue { background: var(--brand-soft); color: var(--brand-strong); } .mk-badge.gray { background: #e2e8f0; color: #475569; }
.mk-kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-col { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.mk-col > small { font-size: .58rem; color: var(--ink-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mk-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px; margin-top: 7px; box-shadow: var(--shadow-sm); }
.mk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.mk-cal span { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 6px; font-size: .54rem; color: var(--ink-muted); padding: 3px 0 0 4px; }
.mk-cal span.ev { background: var(--brand); color: #fff; border-color: var(--brand); }
.mk-cal span.ev2 { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-strong); }
.mk-docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mk-doc { border: 1px solid var(--line); border-radius: 8px; padding: 14px 6px 10px; text-align: center; }
.mk-doc i { font-size: 1.4rem; color: var(--brand-strong); }
.mk-doc small { display: block; margin-top: 6px; font-size: .56rem; color: var(--ink-muted); }
.mk-table { width: 100%; border-collapse: collapse; font-size: .64rem; }
.mk-table th { color: var(--ink-muted); text-align: left; padding: 6px; border-bottom: 1px solid var(--line); font-weight: 600; }
.mk-table td { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.mk-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mk-prod { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.mk-prod .mk-thumb { height: 46px; border-radius: 8px; background: var(--brand-soft); margin-bottom: 8px; }

/* ---- Stats band ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; color: var(--brand-strong); line-height: 1; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ---- Benefit / icon list --------------------------------------------- */
.benefit { display: flex; gap: 16px; align-items: flex-start; }
.benefit .feature-ico { flex: none; margin-bottom: 0; }
.benefit h3 { font-size: 1.08rem; margin-bottom: 4px; }
.benefit p { font-size: .95rem; margin: 0; }

/* ---- Pricing comparison table ---------------------------------------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th { background: var(--bg-alt); font-weight: 700; color: var(--ink); }
.compare thead th.feat, .compare td.feat { text-align: left; color: var(--ink-soft); font-weight: 500; }
.compare th.hot { color: var(--brand-strong); }
.compare td i.fa-check { color: var(--brand); } .compare td i.fa-minus { color: var(--ink-muted); }
.compare tr:last-child td { border-bottom: 0; }

/* ---- Info cards (contatti) ------------------------------------------- */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; }
.info-card .feature-ico { margin-bottom: 12px; }

/* ---- Integrations / pills -------------------------------------------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.pill i { color: var(--brand); }

/* ---- Blog ------------------------------------------------------------- */
.post-card h2, .post-card h3 { margin-bottom: 8px; }
.post-meta { color: var(--ink-muted); font-size: .85rem; margin-top: auto; }
.post-card { display: flex; flex-direction: column; }
.post-body { font-size: 1.05rem; }
.post-body p { margin-bottom: 1rem; }
.post-body h2 { font-size: 1.4rem; margin: 28px 0 10px; }

/* ---- Legal body ------------------------------------------------------- */
.legal-body h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.legal-body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body ul { padding-left: 20px; }
.legal-body li { margin-bottom: 6px; }

@media (max-width: 991px) {
	.section { padding: 60px 0; }
	.hero { padding: 56px 0 44px; }
	.cta-band { padding: 40px 22px; }
	.mockup-body { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
	.mk-docs { grid-template-columns: repeat(2, 1fr); }
	.compare { display: block; overflow-x: auto; }
}
@media (max-width: 575px) {
	.mk-win { grid-template-columns: 46px 1fr; }
	.mk-kpis { grid-template-columns: 1fr 1fr; }
	.mk-kanban, .mk-prods { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.reveal { transition: none; opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ============================================================================
   GUIDA / MANUALE D'USO  (pagine guida e guida-topic — condivise, noindex)
   ============================================================================ */

/* Card dell'indice guida */
.guide-card { display: flex; flex-direction: column; }
.guide-card .guide-card-link { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--brand-strong); font-size: .92rem; }
.guide-card:hover .guide-card-link i { transform: translateX(3px); }
.guide-card .guide-card-link i { transition: transform .2s ease; }

/* Layout argomento */
.guida-wrap .help-index { position: relative; }
.guide-nav-box { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); box-shadow: var(--shadow-sm); }
.guide-nav-title { color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; font-weight: 800; margin: 0 0 10px; }
.guide-nav ul { list-style: none; margin: 0 0 4px; padding: 0; }
.guide-nav li { margin: 0; }
.guide-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink-soft); font-size: .92rem; font-weight: 500; line-height: 1.3; }
.guide-nav a:hover { background: var(--brand-soft); color: var(--brand-strong); }
.guide-nav a.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }
.guide-nav .step { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-alt); color: var(--ink-soft); font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; text-align: center; align-self: flex-start; margin-top: 1px; }
.guide-nav a.active .step { background: var(--brand); color: #fff; }
.guide-nav-topics a { font-size: .88rem; }

/* Corpo */
.guide-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.help-group-container { display: none; animation: guideFade .25s ease; }
.help-group-container.active { display: block; }
@keyframes guideFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.guide-section-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 18px; scroll-margin-top: 110px; }
.guide-section-body { font-size: 1.02rem; }
.guide-section-body h3 { margin: 30px 0 12px; scroll-margin-top: 110px; font-size: clamp(1.15rem, 2vw, 1.35rem); padding-top: 8px; border-top: 1px solid var(--line); }
.guide-section-body h3:first-child { border-top: 0; padding-top: 0; }
.guide-section-body h4 { margin: 22px 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.guide-section-body p { color: var(--ink-soft); }
.guide-section-body ul, .guide-section-body ol { padding-left: 22px; }
.guide-section-body li { margin-bottom: 8px; color: var(--ink-soft); }

/* Indice di sezione (TOC) */
.section-toc { border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: var(--radius-sm); padding: 14px 18px; margin: 0 0 24px; }
.section-toc-title { font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: 0 0 8px; }
.section-toc ul { list-style: none; margin: 0; padding: 0; }
.section-toc-list { columns: 2; column-gap: 36px; }
.section-toc li { margin: 5px 0; break-inside: avoid; }
.section-toc a { display: flex; align-items: baseline; gap: 8px; color: var(--brand-strong); font-weight: 600; font-size: .94rem; }
.section-toc a:hover { text-decoration: underline; }
.section-toc-num { flex: 0 0 auto; min-width: 2.4em; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
@media (max-width: 575px) { .section-toc-list { columns: 1; } }

/* Callout (tip / note / example / warning) */
.guide-section-body blockquote { border-radius: var(--radius-sm); padding: 14px 16px 14px 44px; margin: 20px 0; position: relative; font-size: .96rem; border: 1px solid var(--line); }
.guide-section-body blockquote::before { font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 16px; top: 14px; font-size: 1rem; }
.guide-section-body blockquote.tip { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.guide-section-body blockquote.tip::before { content: "\f0eb"; color: #059669; }
.guide-section-body blockquote.note { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, var(--line)); color: var(--ink); }
.guide-section-body blockquote.note::before { content: "\f05a"; color: var(--brand); }
.guide-section-body blockquote.example { background: #fefce8; border-color: #fde68a; color: #713f12; }
.guide-section-body blockquote.example::before { content: "\f0eb"; color: #ca8a04; }
.guide-section-body blockquote.warning { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.guide-section-body blockquote.warning::before { content: "\f071"; color: #dc2626; }

/* Navigazione tra argomenti (prev / su / next) */
.nav-argomenti { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.nav-argomenti .nav-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 16px; color: var(--ink-soft); font-size: .9rem; background: var(--bg); }
.nav-argomenti .nav-btn small { display: block; color: var(--ink-muted); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.nav-argomenti .nav-btn:hover { border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
.nav-argomenti .nav-btn.prev { grid-column: 1; justify-self: stretch; width: 100%; justify-content: flex-start; font-weight: 700; }
.nav-argomenti .nav-btn.up   { grid-column: 2; justify-self: center; font-weight: 600; white-space: nowrap; }
.nav-argomenti .nav-btn.next { grid-column: 3; justify-self: stretch; width: 100%; justify-content: flex-end; text-align: right; font-weight: 700; }

@media (max-width: 991px) {
	.guide-nav-box { position: static; margin-bottom: 24px; }
	.nav-argomenti .nav-btn small { display: none; }
	.nav-argomenti .nav-btn { max-width: none; }
	.nav-argomenti .nav-btn.up { display: none; }
}
