/* AuditScan — foglio di stile principale */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/newsreader-italic-latin.woff2") format("woff2");
}

:root {
  --ink: #0c1a26;
  --ink-2: #13293a;
  --ink-soft: #3a4d5e;
  --ink-muted: #6a7a89;
  --paper: #f8f5ef;
  --paper-2: #f1ede4;
  --paper-3: #e7e1d4;
  --white: #fffdf9;
  --line: #e1d9ca;
  --line-strong: #d2c7b3;
  --bronze: #b08d4f;
  --bronze-strong: #957237;
  --bronze-soft: #eadcbf;
  --bronze-wash: #f6f0e3;
  --green: #2f6b54;
  --green-soft: #e3efe8;
  --amber: #956a20;
  --amber-soft: #f7ecd7;
  --red: #8f3b34;
  --red-soft: #f6e4e0;
  --blue: #2c5678;
  --blue-soft: #e4edf4;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-soft: 0 30px 70px -40px rgba(12, 26, 38, 0.45);
  --shadow-card: 0 18px 40px -30px rgba(12, 26, 38, 0.3);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "Menlo", "Consolas", monospace;
  --container: 1180px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--bronze-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--bronze-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.muted {
  color: var(--ink-muted);
}

/* ---------- Tipografia di supporto ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-strong);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bronze);
  flex: none;
}

.eyebrow-light {
  color: var(--bronze-soft);
}

.eyebrow-light .eyebrow-dot {
  background: var(--bronze-soft);
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: var(--bronze-strong);
  border-bottom: 1px solid var(--bronze-soft);
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  gap: 10px;
  border-color: var(--bronze);
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.78em 1.35em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -16px rgba(12, 26, 38, 0.8);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--ink-muted);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(246, 242, 233, 0.32);
  color: var(--paper);
}

.btn-outline-light:hover {
  background: rgba(246, 242, 233, 0.1);
  border-color: rgba(246, 242, 233, 0.6);
}

.btn-small {
  padding: 0.55em 1em;
  font-size: 0.8rem;
}

.btn-wide {
  width: 100%;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px -30px rgba(12, 26, 38, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg {
  width: 26px;
  height: 26px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.38rem;
  letter-spacing: -0.015em;
}

.brand-text small {
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav > a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav > a:hover,
.site-nav > a.is-current {
  color: var(--ink);
}

.site-nav > a:hover::after,
.site-nav > a.is-current::after {
  transform: scaleX(1);
}

.site-nav-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 130;
}

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.6px;
  background: var(--ink);
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}

.nav-toggle span:first-child {
  top: 18px;
}

.nav-toggle span:last-child {
  top: 24px;
}

body.nav-open .nav-toggle span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(54px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 79, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  max-width: 17ch;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: italic;
  color: var(--bronze-strong);
}

.hero .lead {
  max-width: 56ch;
  margin-bottom: 30px;
}

.audit-form {
  max-width: 580px;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group:focus-within {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(176, 141, 79, 0.14), var(--shadow-card);
}

.input-icon {
  color: var(--ink-muted);
  flex: none;
}

.input-icon svg {
  width: 19px;
  height: 19px;
}

.input-group input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.8em 0.4em;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
}

.input-group input::placeholder {
  color: var(--ink-muted);
  opacity: 0.8;
}

.input-group input:focus {
  outline: none;
}

.form-note {
  margin: 12px 4px 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.form-note-light {
  color: rgba(246, 242, 233, 0.62);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points span {
  color: var(--green);
  font-size: 0.8rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.preview-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.1deg);
}

.preview-glow {
  position: absolute;
  inset: 14% 4% -6% 8%;
  background: linear-gradient(135deg, rgba(176, 141, 79, 0.22), rgba(44, 86, 120, 0.12));
  filter: blur(38px);
  border-radius: 40px;
  z-index: 0;
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.preview-badge {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-strong);
  background: var(--bronze-wash);
  border-radius: 999px;
  padding: 4px 9px;
}

.preview-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
}

.score-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: conic-gradient(var(--green) 0 72%, var(--paper-3) 72% 100%);
  position: relative;
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--white);
}

.score-ring span {
  position: relative;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--green);
}

.score-ring-b {
  background: conic-gradient(var(--green) 0 66%, var(--paper-3) 66% 100%);
}

.preview-score-text {
  display: flex;
  flex-direction: column;
}

.preview-score-text > span {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.preview-score-text strong {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  line-height: 1.1;
}

.preview-score-text strong em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.preview-score-text small {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.preview-checks {
  list-style: none;
  border-top: 1px solid var(--line);
}

.preview-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.preview-status {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.dot-pass {
  background: var(--green);
}

.dot-warn {
  background: var(--amber);
}

.dot-fail {
  background: var(--red);
}

.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  font-size: 0.63rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.preview-link {
  color: var(--bronze-strong);
  font-weight: 600;
}

.trust-strip {
  display: flex;
  align-items: center;
  gap: 20px 40px;
  flex-wrap: wrap;
  margin-top: clamp(42px, 6vw, 68px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.trust-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  list-style: none;
}

.trust-strip li {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- Sezioni ---------- */

.section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section-paper {
  background: var(--paper-2);
}

.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 18ch;
}

.section-lead {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 50ch;
  margin: 0;
}

.section-dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.section-dark::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -100px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 79, 0.16), transparent 65%);
  pointer-events: none;
}

.section-dark .container {
  position: relative;
}

.section-dark h2 {
  color: var(--paper);
}

.section-lead-light {
  color: rgba(246, 242, 233, 0.68);
}

/* ---------- Card servizio ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255, 253, 249, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--bronze-soft);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--paper-2);
  color: var(--bronze-strong);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.42rem;
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.audience-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  padding: 34px 40px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
}

.audience-band h3 {
  font-size: 1.6rem;
  max-width: 26ch;
}

.audience-band .eyebrow {
  margin-bottom: 10px;
  color: var(--bronze-soft);
}

.audience-band .eyebrow .eyebrow-dot {
  background: var(--bronze-soft);
}

.audience-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  justify-content: flex-end;
}

.audience-list li {
  font-size: 0.8rem;
  padding: 7px 14px;
  border: 1px solid rgba(246, 242, 233, 0.2);
  border-radius: 999px;
  color: rgba(246, 242, 233, 0.85);
  white-space: nowrap;
}

/* ---------- Rischio ---------- */

.risk-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 56px);
}

.risk-intro h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  max-width: 16ch;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.risk-card {
  border: 1px solid rgba(246, 242, 233, 0.14);
  background: rgba(246, 242, 233, 0.035);
  border-radius: var(--radius);
  padding: 30px;
}

.risk-number {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.7rem;
  color: var(--bronze-soft);
  margin-bottom: 20px;
}

.risk-card h3 {
  font-size: 1.42rem;
  margin-bottom: 10px;
  color: var(--paper);
}

.risk-card p {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(246, 242, 233, 0.66);
}

.risk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(246, 242, 233, 0.14);
}

.risk-actions blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.4;
  max-width: 52ch;
  color: var(--paper);
}

/* ---------- Metodo ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.step {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}

.step-number {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--bronze-strong);
}

.step h3 {
  font-size: 1.36rem;
  margin: 10px 0 8px;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.faq-intro h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.faq-intro .text-link {
  margin-top: 18px;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--bronze-strong);
  flex: none;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--bronze-strong);
}

.faq-body {
  padding: 0 36px 20px 0;
}

.faq-body p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}

.cta-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 62px);
}

.cta-card::before {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 79, 0.2), transparent 65%);
  pointer-events: none;
}

.cta-copy,
.cta-form-wrap {
  position: relative;
}

.cta-copy h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  color: var(--paper);
  max-width: 20ch;
  margin-bottom: 16px;
}

.cta-copy > p {
  color: rgba(246, 242, 233, 0.72);
  max-width: 46ch;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-soft);
}

.cta-form-wrap {
  max-width: 460px;
  justify-self: end;
  width: 100%;
}

.audit-form-light .input-group {
  background: rgba(246, 242, 233, 0.07);
  border-color: rgba(246, 242, 233, 0.2);
  box-shadow: none;
}

.audit-form-light .input-group:focus-within {
  border-color: var(--bronze-soft);
  box-shadow: 0 0 0 4px rgba(234, 220, 191, 0.14);
}

.audit-form-light .input-group input {
  color: var(--paper);
}

.audit-form-light .input-group input::placeholder {
  color: rgba(246, 242, 233, 0.52);
}

.audit-form-light .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.audit-form-light .btn-primary:hover {
  background: var(--bronze-soft);
}

.cta-contact {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: rgba(246, 242, 233, 0.6);
}

.cta-contact a {
  color: var(--bronze-soft);
  border-bottom: 1px solid rgba(234, 220, 191, 0.35);
}

/* ---------- Page hero ---------- */

.page-hero {
  padding: clamp(48px, 6vw, 84px) 0 clamp(40px, 5vw, 64px);
}

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

.page-hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  max-width: 20ch;
  margin-bottom: 22px;
}

.page-hero .lead {
  max-width: 64ch;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-hero-center {
  text-align: center;
  min-height: 62vh;
  display: flex;
  align-items: center;
}

.page-hero-center .container {
  width: 100%;
}

.page-hero-center h1 {
  max-width: 22ch;
  margin-inline: auto;
}

.page-hero-center .lead {
  margin-inline: auto;
}

.page-hero-center .eyebrow {
  justify-content: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  margin-bottom: 26px;
}

.breadcrumb a:hover {
  color: var(--bronze-strong);
}

.audit-explainer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.explain-card {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.explain-card h2 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.explain-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.audit-form-lg {
  max-width: 700px;
  margin: 30px auto 0;
}

.audit-form-lg .input-group {
  padding: 7px 7px 7px 20px;
}

.alert {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 700px;
  margin: 24px auto;
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 0.9rem;
  text-align: left;
}

.alert-error {
  background: var(--red-soft);
  border: 1px solid rgba(143, 59, 52, 0.24);
  color: #6f2a24;
}

.alert strong {
  font-weight: 600;
}

/* ---------- Articolo rischi ---------- */

.article-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 106px;
  padding-right: 20px;
  border-right: 1px solid var(--line-strong);
}

.toc-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.article-toc ol {
  list-style: none;
  counter-reset: toc;
}

.article-toc li {
  counter-increment: toc;
  border-bottom: 1px solid var(--line);
}

.article-toc li a {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.article-toc li a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.66rem;
  color: var(--bronze-strong);
  font-weight: 600;
  padding-top: 2px;
}

.article-toc li a:hover {
  color: var(--ink);
}

.toc-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bronze-strong);
}

.article {
  max-width: 720px;
}

.article > section {
  margin-bottom: clamp(44px, 6vw, 68px);
  scroll-margin-top: 110px;
}

.article h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  margin-bottom: 18px;
}

.article h3 {
  font-size: 1.3rem;
  margin: 28px 0 10px;
}

.article p {
  color: var(--ink-soft);
  font-size: 1rem;
}

.article p strong {
  color: var(--ink);
  font-weight: 600;
}

.article em {
  color: var(--ink);
}

.mail-anatomy {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  margin: 30px 0;
}

.mail-row + .mail-row {
  margin-top: 14px;
}

.mail-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 6px;
}

.mail-field {
  background: rgba(246, 242, 233, 0.06);
  border: 1px solid rgba(246, 242, 233, 0.14);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: rgba(246, 242, 233, 0.9);
  overflow-wrap: anywhere;
}

.mail-field-key {
  color: rgba(246, 242, 233, 0.55);
  margin-right: 4px;
}

.mail-field-address {
  color: var(--paper);
  font-weight: 500;
}

.mail-field-alert {
  border-color: rgba(227, 140, 128, 0.4);
  background: rgba(143, 59, 52, 0.16);
}

.mail-field-alert .mail-field-key {
  color: #e7a79e;
}

.mail-note {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: rgba(246, 242, 233, 0.56);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.mini-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.mini-card h3 {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.mini-card p {
  margin: 0;
  font-size: 0.86rem;
}

.scenario {
  border-left: 2px solid var(--bronze);
  padding: 2px 0 2px 24px;
  margin: 28px 0;
}

.scenario-head h3 {
  margin: 6px 0 10px;
}

.scenario-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-strong);
}

.scenario p {
  font-size: 0.95rem;
}

.consequence-list {
  margin-top: 24px;
}

.consequence {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
}

.consequence:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.consequence-mark {
  width: 8px;
  height: 8px;
  background: var(--bronze);
  transform: rotate(45deg);
  flex: none;
  margin-top: 9px;
}

.consequence h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.consequence p {
  margin: 0;
  font-size: 0.9rem;
}

.defense-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}

.defense-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.defense-key {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--bronze-strong);
  background: var(--bronze-wash);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.defense-card h3 {
  font-size: 1.18rem;
  margin: 0 0 6px;
}

.defense-card p {
  margin: 0;
  font-size: 0.86rem;
}

.callout {
  margin-top: 28px;
  background: var(--paper-2);
  border-left: 2px solid var(--bronze);
  border-radius: 0 14px 14px 0;
  padding: 24px 28px;
}

.callout h3 {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.callout p {
  margin: 0;
  font-size: 0.9rem;
}

.signal-list {
  list-style: none;
  margin-top: 20px;
}

.signal-list li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line-strong);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.signal-list li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.signal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--bronze-strong);
  font-weight: 600;
}

.action-list {
  list-style: none;
  counter-reset: action;
  margin-top: 20px;
}

.action-list li {
  counter-increment: action;
  position: relative;
  padding: 4px 0 20px 46px;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.action-list li::before {
  content: counter(action, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--bronze-strong);
}

.action-list li strong {
  color: var(--ink);
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-2);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--ink);
}

/* ---------- Report ---------- */

.report-hero {
  padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.report-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.back-link:hover {
  color: var(--ink);
}

.report-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-date {
  font-size: 0.74rem;
  color: var(--ink-muted);
}

.report-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.report-domain {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  overflow-wrap: anywhere;
  margin-bottom: 16px;
}

.report-heading .lead {
  max-width: 58ch;
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 26px;
  box-shadow: var(--shadow-card);
}

.score-ring-lg {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
}

.score-ring-lg::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--white);
}

.score-ring-lg span {
  position: relative;
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 600;
  line-height: 1;
}

.score-badge-text {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.score-badge-text strong {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.15;
}

.score-badge-text small {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.grade-a .score-ring-lg {
  background: conic-gradient(var(--green) 0 94%, var(--paper-3) 94% 100%);
}
.grade-a .score-ring-lg span,
.grade-a .score-label {
  color: var(--green);
}
.grade-b .score-ring-lg {
  background: conic-gradient(var(--green) 0 72%, var(--paper-3) 72% 100%);
}
.grade-b .score-ring-lg span,
.grade-b .score-label {
  color: var(--green);
}
.grade-c .score-ring-lg {
  background: conic-gradient(var(--amber) 0 58%, var(--paper-3) 58% 100%);
}
.grade-c .score-ring-lg span,
.grade-c .score-label {
  color: var(--amber);
}
.grade-d .score-ring-lg {
  background: conic-gradient(var(--red) 0 38%, var(--paper-3) 38% 100%);
}
.grade-d .score-ring-lg span,
.grade-d .score-label {
  color: var(--red);
}
.grade-f .score-ring-lg {
  background: conic-gradient(var(--red) 0 22%, var(--paper-3) 22% 100%);
}
.grade-f .score-ring-lg span,
.grade-f .score-label {
  color: var(--red);
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.report-stats dt {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.report-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.1;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.finding {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.finding-icon {
  flex: none;
  width: 24px;
  height: 24px;
}

.finding-icon svg {
  width: 24px;
  height: 24px;
}

.finding h2 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.finding p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

.finding-danger {
  background: var(--red-soft);
  border-color: rgba(143, 59, 52, 0.2);
  color: #6f2a24;
}
.finding-danger .finding-icon {
  color: var(--red);
}

.finding-warning {
  background: var(--amber-soft);
  border-color: rgba(149, 106, 32, 0.22);
  color: #6f4c12;
}
.finding-warning .finding-icon {
  color: var(--amber);
}

.finding-success {
  background: var(--green-soft);
  border-color: rgba(47, 107, 84, 0.2);
  color: #245441;
}
.finding-success .finding-icon {
  color: var(--green);
}

.finding-info {
  background: var(--blue-soft);
  border-color: rgba(44, 86, 120, 0.2);
  color: #234660;
}
.finding-info .finding-icon {
  color: var(--blue);
}

.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.check-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
}

.check-card.status-pass {
  border-top-color: var(--green);
}
.check-card.status-warn {
  border-top-color: var(--amber);
}
.check-card.status-fail {
  border-top-color: var(--red);
}
.check-card.status-info {
  border-top-color: var(--blue);
}

.check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.check-head h3 {
  font-size: 1.32rem;
}

.pill {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-pass {
  background: var(--green-soft);
  color: var(--green);
}
.pill-warn {
  background: var(--amber-soft);
  color: var(--amber);
}
.pill-fail {
  background: var(--red-soft);
  color: var(--red);
}
.pill-info {
  background: var(--blue-soft);
  color: var(--blue);
}

.check-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.check-short {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
  min-height: 2.8em;
}

.check-meter {
  height: 5px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
}

.check-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--line-strong);
}

.status-pass .check-meter span {
  background: var(--green);
}
.status-warn .check-meter span {
  background: var(--amber);
}
.status-fail .check-meter span {
  background: var(--red);
}
.status-info .check-meter span {
  background: var(--blue);
}

.check-meter-label {
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--ink-muted);
  text-align: right;
}

.check-details {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.check-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bronze-strong);
}

.check-details summary::-webkit-details-marker {
  display: none;
}

.check-details summary::after {
  content: "+";
  font-size: 1rem;
  font-weight: 400;
}

.check-details[open] summary::after {
  content: "−";
}

.check-details-body {
  padding-top: 12px;
}

.check-details-body p {
  margin: 0 0 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.check-details-body strong {
  color: var(--ink);
  font-weight: 600;
}

.raw-records {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.raw-records > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.raw-records code {
  display: block;
  font-size: 0.72rem;
  padding: 8px 10px;
  background: var(--paper-2);
  border-radius: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.report-next {
  display: grid;
  grid-template-columns: 1.32fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.next-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px);
}

.next-card h2 {
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.next-steps {
  counter-reset: next;
  list-style: none;
}

.next-steps li {
  counter-increment: next;
  position: relative;
  padding: 0 0 16px 38px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.next-steps li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--bronze-strong);
}

.report-disclaimer {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.report-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.report-cta h2 {
  font-size: 1.75rem;
  color: var(--paper);
}

.report-cta p {
  font-size: 0.9rem;
  color: rgba(246, 242, 233, 0.7);
}

.report-cta code {
  background: rgba(246, 242, 233, 0.12);
  color: var(--bronze-soft);
}

.report-cta .btn {
  margin-top: 6px;
  width: 100%;
}

.report-cta-note {
  margin: 4px 0 0;
  font-size: 0.74rem;
  color: rgba(246, 242, 233, 0.5);
}

/* ---------- Form richiesta ---------- */

.request-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}

.request-intro h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  max-width: 18ch;
  margin-bottom: 18px;
}

.request-intro .lead {
  font-size: 1rem;
}

.request-points {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.request-points li {
  display: flex;
  gap: 14px;
}

.point-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex: none;
  margin-top: 2px;
}

.request-points strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
}

.request-points span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.request-aside-note {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.request-aside-note .eyebrow {
  margin-bottom: 8px;
}

.request-aside-note p {
  font-size: 0.9rem;
}

.request-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}

.request-form-card h2 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.form-intro {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field-input {
  width: 100%;
  padding: 0.78em 0.9em;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field-input::placeholder {
  color: var(--ink-muted);
  opacity: 0.7;
}

.field-input:focus {
  outline: none;
  border-color: var(--bronze);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(176, 141, 79, 0.14);
}

textarea.field-input {
  min-height: 104px;
  resize: vertical;
}

.has-error .field-input {
  border-color: rgba(143, 59, 52, 0.55);
  background: var(--red-soft);
}

.field-error {
  margin: 0;
  font-size: 0.75rem;
  color: var(--red);
}

.field-consent {
  margin-top: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}

.checkbox-label input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}

.checkbox-label a {
  color: var(--bronze-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-submit {
  margin-top: 4px;
}

.form-submit .form-note {
  text-align: center;
  margin-top: 10px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
}

.success-icon svg {
  width: 44px;
  height: 44px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ---------- Legal ---------- */

.legal-content h2 {
  font-size: 1.55rem;
  margin: 38px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.legal-content ul {
  margin: 0 0 1.2em 1.1em;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--bronze-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  background: var(--amber-soft);
  border-left: 2px solid var(--bronze);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-bottom: 30px;
}

.legal-callout p {
  margin: 0;
  color: #6f4c12;
  font-size: 0.9rem;
}

.legal-updated {
  font-size: 0.76rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.legal-back {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 6vw, 72px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.brand-footer {
  color: var(--paper);
}

.brand-footer .brand-mark {
  background: var(--paper);
  color: var(--ink);
}

.brand-footer .brand-text strong {
  color: var(--paper);
}

.brand-footer .brand-text small {
  color: rgba(246, 242, 233, 0.55);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 0.86rem;
  color: rgba(246, 242, 233, 0.62);
}

.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-soft);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
  font-size: 0.86rem;
}

.footer-col a {
  color: rgba(246, 242, 233, 0.78);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-col .muted {
  color: rgba(246, 242, 233, 0.5);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 242, 233, 0.12);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.74rem;
  color: rgba(246, 242, 233, 0.5);
}

.footer-note {
  text-align: right;
  max-width: 56ch;
}

/* ---------- Animazioni ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards-grid .reveal:nth-child(2),
.risk-grid .reveal:nth-child(2),
.steps .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.cards-grid .reveal:nth-child(3),
.risk-grid .reveal:nth-child(3),
.steps .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.cards-grid .reveal:nth-child(4),
.steps .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.cards-grid .reveal:nth-child(5) {
  transition-delay: 0.24s;
}

.cards-grid .reveal:nth-child(6) {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .site-nav {
    gap: 22px;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    max-width: 20ch;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .preview-card {
    transform: rotate(-0.6deg);
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .risk-grid {
    grid-template-columns: 1fr 1fr;
  }

  .risk-card:last-child {
    grid-column: 1 / -1;
  }

  .risk-intro,
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 0 0 20px;
  }

  .article-toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
  }

  .article-toc li {
    border-bottom: 0;
  }

  .article-toc li a {
    padding: 4px 0;
  }

  .article {
    max-width: 100%;
  }

  .request-layout {
    grid-template-columns: 1fr;
  }

  .report-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .score-badge {
    justify-self: start;
  }

  .findings-grid {
    grid-template-columns: 1fr;
  }

  .report-next {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-form-wrap {
    justify-self: start;
    max-width: 560px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    margin: 0;
    padding: 96px 28px 32px;
    background: var(--paper);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    transform: translateX(102%);
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
    z-index: 120;
    overflow-y: auto;
  }

  .site-nav > a {
    width: 100%;
    font-size: 1.15rem;
    font-family: var(--font-serif);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav > a::after {
    display: none;
  }

  .site-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
  }

  .site-nav-actions .btn {
    width: 100%;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(12, 26, 38, 0.42);
    z-index: 110;
    backdrop-filter: blur(2px);
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand-text strong {
    font-size: 1.25rem;
  }

  .brand-text small {
    font-size: 0.54rem;
  }

  .section-head h2,
  .risk-intro h2 {
    max-width: 24ch;
  }

  .audience-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }

  .audience-list {
    justify-content: flex-start;
  }

  .checks-grid {
    grid-template-columns: 1fr;
  }

  .report-stats {
    grid-template-columns: 1fr 1fr;
  }

  .audit-explainer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-note {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }

  .input-group {
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 10px;
  }

  .input-icon {
    margin-left: 8px;
  }

  .input-group input {
    padding: 0.7em 0.2em;
    min-width: 0;
    width: calc(100% - 40px);
    flex: none;
  }

  .input-group .btn {
    width: 100%;
  }

  .hero-points {
    gap: 8px 16px;
  }

  .cards-grid,
  .risk-grid,
  .steps,
  .mini-grid,
  .defense-grid {
    grid-template-columns: 1fr;
  }

  .risk-card:last-child {
    grid-column: auto;
  }

  .risk-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-card {
    border-radius: 22px;
  }

  .cta-meta {
    flex-direction: column;
    gap: 4px;
  }

  .report-stats {
    gap: 14px;
  }

  .score-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .report-tools {
    width: 100%;
    justify-content: space-between;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .field {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .preview-card {
    padding: 20px;
  }

  .preview-score-text strong {
    font-size: 1.8rem;
  }

  .preview-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .article-toc ol {
    gap: 2px 16px;
  }

  .faq-body {
    padding-right: 0;
  }

  .mail-anatomy {
    padding: 20px;
  }
}

/* ---------- Stampa ---------- */

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .report-tools,
  .back-link,
  .report-cta,
  .findings-grid .finding-icon {
    display: none !important;
  }

  .report-hero,
  .section,
  .section-paper {
    background: #fff !important;
    padding: 12pt 0 !important;
    border: 0 !important;
  }

  .score-badge,
  .check-card,
  .next-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  .checks-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10pt;
  }

  .check-card {
    break-inside: avoid;
  }

  .check-details-body {
    display: block !important;
  }

  .check-details summary {
    color: #444;
  }

  .report-next {
    grid-template-columns: 1fr;
  }

  a {
    text-decoration: none;
    color: #000;
  }
}
