/* =========================================================
   SecuLens — foglio di stile principale
   ========================================================= */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
	--bg: #060F22;
	--bg-2: #0B1426;
	--panel: #0E1A33;
	--panel-2: #12203D;
	--line: rgba(130, 160, 220, .14);
	--line-2: rgba(130, 160, 220, .24);
	--ink: #EEF3FF;
	--ink-2: #B3C0D9;
	--muted: #7D8CAA;
	--blue: #2E7BFF;
	--cyan: #19C6FF;
	--crit: #FF4D5E;
	--warn: #FFB020;
	--ok: #22C58B;
	--grad: linear-gradient(120deg, #2E7BFF 0%, #19C6FF 100%);

	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-display: "Inter Display", "Inter", system-ui, sans-serif;

	--wrap: 1200px;
	--r-lg: 20px;
	--r-md: 14px;
	--r-sm: 10px;
	--gap: clamp(20px, 3vw, 32px);
	--section: clamp(80px, 11vw, 140px);
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink-2);
	font: 400 17px/1.6 var(--f-body);
	font-feature-settings: "cv11", "ss01";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
	font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 28px -10px rgba(46, 123, 255, .8); }
.btn--primary:hover { color: #fff; box-shadow: 0 10px 34px -8px rgba(25, 198, 255, .75); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--cyan); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 15px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: rgba(6, 15, 34, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font: 800 22px/1 var(--f-display); color: #fff; letter-spacing: -.01em; }
.brand__name span { color: var(--blue); }
.custom-logo { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 26px; }
.nav__list a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav__list a:hover, .nav__list .current-menu-item > a { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; margin: auto; position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px;
		padding: 24px 20px 28px; background: var(--bg-2); border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
	}
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav__list { flex-direction: column; gap: 4px; }
	.nav__list a { display: block; padding: 10px 0; font-size: 18px; }
	.nav__cta { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px);
	background:
		radial-gradient(60% 70% at 78% 40%, rgba(46, 123, 255, .16), transparent 70%),
		radial-gradient(40% 50% at 10% 0%, rgba(25, 198, 255, .08), transparent 70%);
}
.hero::after { /* trama esagonale molto leggera */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%232E7BFF' stroke-opacity='.07'/%3E%3C/svg%3E");
	mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%);
	-webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__kicker { color: var(--cyan); font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.hero__title {
	font: 800 clamp(40px, 5.6vw, 72px)/1.02 var(--f-display); letter-spacing: -.035em; color: #fff;
	text-wrap: balance;
}
.hero__text { margin-top: 24px; font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 15px; }
.hero__facts li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.hero__facts .icon { width: 18px; height: 18px; color: var(--cyan); }

/* La lente */
.lens-scene { margin: 0; position: relative; }
.lens-scene__svg { width: 100%; touch-action: pan-y; cursor: none; user-select: none; -webkit-user-select: none; }
@media (hover: none) { .lens-scene__svg { cursor: default; } }
.ls-zone { font: 600 13px var(--f-body); fill: var(--muted); letter-spacing: .02em; }
.ls-zone--on { fill: var(--cyan); }
.ls-link { fill: none; stroke: rgba(130, 160, 220, .18); stroke-width: 1.5; }
.ls-link--crit { stroke: var(--crit); stroke-width: 2.5; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 77, 94, .7)); }
.ls-link--warn { stroke: rgba(255, 176, 32, .55); stroke-width: 1.5; }
.ls-link--ok { stroke: rgba(34, 197, 139, .45); stroke-width: 1.5; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.ls-fw { fill: var(--bg-2); stroke: rgba(130, 160, 220, .3); stroke-width: 1.5; }
.ls-fw--on { stroke: var(--blue); stroke-width: 2.5; fill: #0D1B3A; }
.ls-fw-halo { fill: rgba(46, 123, 255, .1); stroke: rgba(46, 123, 255, .3); }
.ls-fw-icon rect, .ls-fw-icon path { fill: none; stroke: var(--cyan); stroke-width: 2; }
.ls-fw-label { font: 700 12px var(--f-body); letter-spacing: .14em; fill: var(--muted); text-transform: uppercase; }
.ls-fw-label--on { fill: #fff; }
.ls-node { fill: #33415F; }
.ls-node--crit { fill: var(--crit); }
.ls-node--warn { fill: var(--warn); }
.ls-node--ok { fill: var(--ok); }
.ls-pulse { fill: none; stroke-width: 2; opacity: .5; }
.ls-pulse--crit { stroke: var(--crit); animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.ls-pulse--warn { stroke: var(--warn); opacity: .35; }
.ls-pulse--ok { stroke: none; }
@keyframes pulse { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.ls-host { font: 600 14px var(--f-body); fill: #8796B4; }
.ls-host--on { fill: #fff; }
.ls-blur { fill: rgba(130, 160, 220, .14); }
.ls-finding { font: 600 12.5px var(--f-body); }
.ls-finding--crit { fill: #FF8592; }
.ls-finding--warn { fill: #FFC85C; }
.ls-finding--ok { fill: #5EDBAE; }
.ls-reveal-bg { fill: #081430; }
.lens__ring { fill: none; stroke: url(#lens-ring); stroke-width: 3; }
.lens__hex { fill: none; stroke: rgba(25, 198, 255, .35); stroke-width: 1.2; }
.lens__shine { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 3; stroke-linecap: round; }
.lens-scene__caption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: 14px; color: var(--ink-2); padding-left: 4px; }
.lens-scene__hint { flex-basis: 100%; color: var(--muted); font-size: 13.5px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.legend-dot:first-child { margin-left: 0; }
.legend-dot--crit { background: var(--crit); }
.legend-dot--warn { background: var(--warn); }
.legend-dot--ok { background: var(--ok); }

/* ---------- Sezioni ---------- */
.section { padding: var(--section) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font: 800 clamp(32px, 4vw, 50px)/1.08 var(--f-display); letter-spacing: -.028em; color: #fff; text-wrap: balance; }
.section__title--sm { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 24px; }
.section__lead { margin-top: 20px; font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 40em; }
.section__head--center .section__lead { margin-inline: auto; }
.section__aside { margin-top: 24px; padding-left: 16px; border-left: 2px solid var(--blue); font-size: 15.5px; color: var(--muted); max-width: 30em; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 40px); }

/* Moduli */
.modules { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.module { padding: 26px 0; border-top: 1px solid var(--line); }
.module:nth-child(-n+2) { border-top: 0; padding-top: 4px; }
.module__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(46, 123, 255, .12); color: var(--cyan); margin-bottom: 16px; }
.module__title { font-size: 19px; margin-bottom: 8px; }
.module__text { font-size: 15.5px; line-height: 1.6; }
.module:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px; margin-top: 16px; border: 1px solid rgba(46, 123, 255, .35); border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(46, 123, 255, .1), rgba(25, 198, 255, .03)); }
.module:last-child .module__icon { grid-row: span 2; margin: 0; }

/* ---------- Grafici ---------- */
.section--score { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.sample-note { text-align: center; font-size: 14px; color: var(--muted); margin: -24px auto 28px; }
.charts { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.panel__head { margin-bottom: 14px; }
.panel__title { font-size: 17px; font-weight: 600; }
.panel__sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.panel--gauge { grid-column: span 5; }
.panel--trend { grid-column: span 7; }
.panel--donut { grid-column: span 5; }
.panel--stack { grid-column: span 7; }
.panel--dumbbell { grid-column: 1 / -1; }
.chart { position: relative; width: 100%; flex: 1; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-body); }

.gauge-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; flex: 1; }
.area-picker { display: flex; flex-direction: column; gap: 4px; }
.area-picker button {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	width: 100%; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid transparent;
	background: transparent; color: var(--ink-2); font-size: 15px; cursor: pointer; text-align: left;
	transition: background-color .2s, border-color .2s, color .2s;
}
.area-picker button:hover { background: rgba(255, 255, 255, .03); color: #fff; }
.area-picker button[aria-checked="true"] { background: var(--panel-2); border-color: var(--line-2); color: #fff; }
.pill { min-width: 38px; padding: 3px 8px; border-radius: 999px; font: 700 13px/1.2 var(--f-body); text-align: center; font-variant-numeric: tabular-nums; }
.pill--crit { background: rgba(255, 77, 94, .16); color: #FF8592; }
.pill--warn { background: rgba(255, 176, 32, .16); color: #FFC85C; }
.pill--ok { background: rgba(34, 197, 139, .16); color: #5EDBAE; }

.progress { margin-top: 14px; display: flex; align-items: center; gap: 16px; }
.progress__track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.progress__bar { height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.progress__label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.progress__label strong { color: #fff; font-variant-numeric: tabular-nums; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); margin-top: 12px; list-style: none; }
.chart-legend li { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart-legend i.dot { border-radius: 50%; }
.chart-legend i.hollow { background: transparent !important; border: 2px solid #7D8CAA; }

.donut-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.donut-list { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.donut-list li { display: grid; grid-template-columns: 12px auto auto; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; cursor: default; transition: background-color .2s; }
.donut-list li.is-hot { background: rgba(255, 255, 255, .05); }
.donut-list i { width: 12px; height: 12px; border-radius: 3px; }
.donut-list b { color: #fff; font-variant-numeric: tabular-nums; text-align: right; min-width: 2.5em; }

.tooltip {
	position: absolute; z-index: 5; pointer-events: none; min-width: 120px;
	background: #16264A; border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px;
	font-size: 13.5px; line-height: 1.45; color: var(--ink-2); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
	opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .12s;
	white-space: nowrap;
}
.tooltip.is-on { opacity: 1; }
.tooltip strong { color: #fff; display: block; font-size: 14px; margin-bottom: 2px; }
.tooltip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tooltip .row span { display: inline-flex; align-items: center; gap: 6px; }
.tooltip i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.tooltip b { color: #fff; font-variant-numeric: tabular-nums; }

.chart-table { margin-top: 14px; font-size: 13.5px; }
.chart-table summary { color: var(--muted); cursor: pointer; width: max-content; }
.chart-table summary:hover { color: var(--ink); }
.chart-table table { margin-top: 10px; border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.chart-table th { color: var(--muted); font-weight: 500; }
.chart-table td { color: var(--ink-2); }

/* ---------- Finestra applicazione ---------- */
.window { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.window__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.window__bar i:nth-child(2) { background: #FEBC2E; }
.window__bar i:nth-child(3) { background: #28C840; }
.window__bar span { margin-left: 10px; }

/* Superficie annotata */
.annotated { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 36px; align-items: center; }
.annotated__stage { position: relative; }
.annotated__stage img { width: 100%; }
.hotspot {
	position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; padding: 0; cursor: pointer;
	border: 2px solid #fff; background: rgba(25, 198, 255, .85); box-shadow: 0 0 0 4px rgba(25, 198, 255, .25);
	transition: transform .2s, background-color .2s;
}
.hotspot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(25, 198, 255, .6); animation: ring 2.2s ease-out infinite; }
.hotspot:hover, .hotspot.is-active { transform: scale(1.15); background: var(--blue); }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.annotated__notes { list-style: none; display: grid; gap: 6px; counter-reset: n; }
.annotated__notes li { padding: 14px 16px 14px 18px; border-radius: var(--r-md); border-left: 2px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.annotated__notes li.is-active { background: var(--panel); border-left-color: var(--cyan); }
.annotated__notes h3 { font-size: 16px; margin-bottom: 4px; }
.annotated__notes p { font-size: 15px; }

/* ---------- Flusso e report ---------- */
.split--flow { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.steps { list-style: none; display: grid; gap: 26px; position: relative; }
.steps::before { content: ""; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--blue), rgba(25, 198, 255, .1)); }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 18px; position: relative; }
.step__n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--blue); color: #fff; font-weight: 700; font-size: 15px; }
.step__title { font-size: 18px; margin: 5px 0 6px; }
.step__text { font-size: 15.5px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-left: 54px; }
.chips li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }

.report-demo { position: relative; }
.report-page {
	background: #fff; color: #1B2540; border-radius: 6px; padding: 30px 30px 26px; aspect-ratio: 1 / 1.25;
	box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 22px 22px 0 -2px #C9D6EE, 44px 44px 0 -4px #8EA3C9;
	transform: rotate(-2deg); max-width: 440px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px;
	transition: transform .5s;
}
.report-demo.is-built .report-page { transform: rotate(0); }
.rp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 2px solid #2E7BFF; padding-bottom: 12px; font-size: 11px; color: #5B6B8C; font-weight: 600; }
.rp-head img { width: 110px; }
.rp-client { font-size: 13px; color: #5B6B8C; }
.rp-summary { display: flex; gap: 18px; align-items: center; }
.rp-ring { width: 76px; flex: none; }
.rp-ring circle { fill: none; stroke: #E8EDF6; stroke-width: 8; }
.rp-ring .rp-ring__val { stroke: var(--warn); stroke-dasharray: 0 100; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dasharray 1.2s .2s; }
.report-demo.is-built .rp-ring__val { stroke-dasharray: 72 100; }
.rp-ring text { font: 800 22px var(--f-display); fill: #1B2540; }
.rp-lines { flex: 1; display: grid; gap: 8px; }
.rp-lines i { display: block; height: 7px; border-radius: 4px; background: #E3E9F4; }
.rp-h { font-weight: 700; font-size: 12.5px; color: #1B2540; margin-top: 4px; }
.rp-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 70px; align-items: end; }
.rp-bars i { display: block; height: calc(var(--v) * 100%); background: var(--c); border-radius: 4px 4px 0 0; transform-origin: bottom; transform: scaleY(.04); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.report-demo.is-built .rp-bars i { transform: scaleY(1); }
.report-demo.is-built .rp-bars i:nth-child(2) { transition-delay: .1s; }
.report-demo.is-built .rp-bars i:nth-child(3) { transition-delay: .2s; }
.report-demo.is-built .rp-bars i:nth-child(4) { transition-delay: .3s; }
.rp-table { list-style: none; display: grid; gap: 0; font-size: 11.5px; }
.rp-table li { display: grid; grid-template-columns: 56px 1fr; column-gap: 10px; padding: 7px 0; border-top: 1px solid #E8EDF6; color: #1B2540; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.rp-table li span { grid-column: 2; color: #5B6B8C; font-weight: 400; }
.rp-table .sev { grid-row: span 2; align-self: center; font-size: 10px; padding: 3px 0; text-align: center; border-radius: 4px; }
.sev--crit { background: #FFE3E6; color: #C21F33; }
.sev--warn { background: #FFF1D6; color: #9A5E00; }
.report-demo.is-built .rp-table li { opacity: 1; transform: none; }
.report-demo.is-built .rp-table li:nth-child(2) { transition-delay: .5s; }
.report-demo.is-built .rp-table li:nth-child(1) { transition-delay: .4s; }
.report-demo.is-built .rp-table li:nth-child(3) { transition-delay: .6s; }
.report-demo__bar { display: flex; align-items: center; gap: 16px; margin: 70px auto 0; max-width: 480px; }
.report-demo__bar .btn { white-space: nowrap; flex: none; }
.report-demo__status { font-size: 14px; color: var(--muted); }

/* ---------- Schermate ---------- */
.shots { display: grid; grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr); gap: 28px; align-items: start; }
.shots__tabs { display: grid; gap: 6px; }
.shots__tabs [role="tab"] {
	text-align: left; padding: 16px 18px; border-radius: var(--r-md); background: transparent; border: 1px solid transparent; cursor: pointer;
	transition: background-color .2s, border-color .2s;
}
.shots__tabs [role="tab"]:hover { background: rgba(255, 255, 255, .025); }
.shots__tabs [aria-selected="true"] { background: var(--panel); border-color: var(--line-2); box-shadow: inset 2px 0 0 var(--cyan); }
.shots__tab-title { display: block; font-weight: 600; color: #fff; font-size: 16px; }
.shots__tab-text { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.shots__zoom { display: block; padding: 0; border: 0; background: none; width: 100%; cursor: zoom-in; }
.shots__pane img { width: 100%; }
.shots__pane:not([hidden]) img { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1800px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 8, 20, .88); backdrop-filter: blur(4px); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; margin: auto; }
.lightbox__close { position: absolute; top: -46px; right: 0; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: #fff; padding: 8px 14px; border-radius: var(--r-sm); cursor: pointer; }

/* ---------- Sicurezza ---------- */
.section--security { background: radial-gradient(60% 80% at 0% 50%, rgba(46, 123, 255, .1), transparent 70%); }
.statement { font: 800 clamp(36px, 4.6vw, 60px)/1.04 var(--f-display); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.guarantees { list-style: none; display: grid; gap: 14px; }
.guarantee { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); }
.guarantee__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: var(--ok); background: rgba(34, 197, 139, .1); }
.guarantee__title { font-size: 18px; margin-bottom: 6px; }
.guarantee p { font-size: 15.5px; }

/* ---------- Requisiti ---------- */
.audience { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(56px, 7vw, 90px); margin-bottom: clamp(56px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.audience__icon { color: var(--cyan); display: block; margin-bottom: 14px; }
.audience__icon .icon { width: 30px; height: 30px; }
.audience h3 { font-size: 19px; margin-bottom: 8px; }
.audience p { font-size: 15.5px; }
.req { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 15px; }
.specs dd { margin: 0; color: var(--ink); font-size: 15.5px; }
.downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.download { text-decoration: none; color: var(--ink-2); display: block; }
.download img { border-radius: 10px; border: 1px solid var(--line-2); transition: transform .3s, border-color .3s; }
.download:hover img { transform: translateY(-4px); border-color: var(--cyan); }
.download span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.download strong { display: block; color: #fff; font-size: 15.5px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; color: #fff; font-size: 17.5px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p { padding: 0 40px 24px 0; font-size: 16px; max-width: 46em; }

/* ---------- Contatti ---------- */
.section--contact { background: radial-gradient(60% 90% at 100% 100%, rgba(25, 198, 255, .1), transparent 70%), var(--bg-2); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { list-style: none; display: grid; gap: 12px; margin-top: 30px; }
.contact__list li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.contact__list .icon { color: var(--ok); width: 20px; height: 20px; }
.contact__direct { margin-top: 30px; font-size: 15.5px; }
.contact__form { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label > span { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
	width: 100%; padding: 13px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--bg);
	color: #fff; font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2319C6FF' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 198, 255, .2); }
.form__check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.form__check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.form__check span { margin: 0 !important; font-weight: 400 !important; }
.form__hp { position: absolute !important; left: -9999px; }
.form .btn { justify-self: start; }
.form-notice { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: 15px; }
.form-notice--ok { background: rgba(34, 197, 139, .12); color: #7BE6BF; border: 1px solid rgba(34, 197, 139, .35); }
.form-notice--warn { background: rgba(255, 176, 32, .1); color: #FFD07A; border: 1px solid rgba(255, 176, 32, .35); }
.form-notice--err { background: rgba(255, 77, 94, .1); color: #FF9AA5; border: 1px solid rgba(255, 77, 94, .35); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer__brand p { margin-top: 14px; color: var(--muted); }
.site-footer__title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.site-footer__links { list-style: none; display: grid; gap: 9px; }
.site-footer__links a { color: var(--muted); text-decoration: none; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.site-footer__legal { list-style: none; display: flex; gap: 18px; }
.site-footer__legal a { color: var(--muted); }
.site-footer__note { flex: 1 1 100%; max-width: 60em; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 50px); background: radial-gradient(50% 100% at 80% 0%, rgba(46, 123, 255, .14), transparent 70%); }
.page-hero__title { font: 800 clamp(34px, 4.6vw, 56px)/1.06 var(--f-display); letter-spacing: -.03em; max-width: 18em; }
.page-hero__meta { color: var(--cyan); margin-bottom: 14px; font-size: 15px; }
.page-hero__text { margin: 18px 0 30px; max-width: 36em; }
.page-hero__code { font: 800 clamp(80px, 14vw, 160px)/1 var(--f-display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.prose { max-width: 760px; padding-bottom: var(--section); font-size: 17.5px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font: 700 30px/1.2 var(--f-display); margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid var(--blue); color: var(--ink); }
.prose img, .prose__cover { border-radius: var(--r-md); }
.prose code { background: var(--panel); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.post-list { display: grid; gap: 18px; padding-bottom: var(--section); max-width: 860px; }
.post-card { padding: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.post-card__date { color: var(--muted); font-size: 14px; }
.post-card__title { font-size: 23px; margin: 6px 0 10px; }
.post-card__title a { color: #fff; text-decoration: none; }
.post-card__title a:hover { color: var(--cyan); }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }

/* ---------- Comparsa progressiva ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.panel--gauge, .panel--trend, .panel--donut, .panel--stack { grid-column: 1 / -1; }
	.annotated { grid-template-columns: 1fr; }
	.annotated__notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.shots { grid-template-columns: 1fr; }
	.shots__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.shots__tab-text { display: none; }
}
@media (max-width: 900px) {
	.hero__grid, .split, .split--flow, .contact, .req { grid-template-columns: 1fr; }
	.split__head { position: static; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.audience { grid-template-columns: 1fr; gap: 28px; }
	.report-demo { margin-top: 20px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.modules { grid-template-columns: 1fr; }
	.module:nth-child(2) { border-top: 1px solid var(--line); padding-top: 26px; }
	.gauge-wrap, .donut-wrap { grid-template-columns: 1fr; }
	.shots__tabs { grid-template-columns: 1fr 1fr; }
	.annotated__notes { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.specs div { grid-template-columns: 1fr; gap: 4px; }
	.chips { padding-left: 0; }
	.panel { padding: 18px; }
	.hotspot { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
	.report-page { box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9), 12px 12px 0 -2px #C9D6EE, 24px 24px 0 -4px #8EA3C9; padding: 22px; }
	.report-demo__bar { flex-direction: column; align-items: flex-start; margin-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
