:root {
  --primary: #1976F3;
  --primary-hover: #0F5FD8;
  --primary-light: #5CA5FF;
  --accent: #45C3FF;
  --background: #0B0F19;
  --surface: #121826;
  --surface-light: #1C2433;
  --border: #2A3448;
  --divider: #39475D;
  --text: #FFFFFF;
  --text-secondary: #B8C1D1;
  --text-disabled: #738097;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #38BDF8;
  --gradient-ab: linear-gradient(135deg, #1976F3 0%, #2893FF 40%, #45C3FF 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 12px;
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.a11y-large-text {
  font-size: 112.5%;
}

html.theme-light {
  --background: #F7FAFC;
  --surface: #FFFFFF;
  --surface-light: #EEF4FF;
  --border: #D5DFEF;
  --divider: #C3D0E2;
  --text: #0B0F19;
  --text-secondary: #344054;
  --text-disabled: #667085;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

html.a11y-contrast {
  --background: #000000;
  --surface: #05080F;
  --surface-light: #101827;
  --border: #5CA5FF;
  --divider: #5CA5FF;
  --text-secondary: #E5ECF8;
  --text-disabled: #C6D0E0;
}

html.a11y-reduced-motion,
html.a11y-reduced-motion * {
  scroll-behavior: auto !important;
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
}

html.a11y-readable-font body,
html.a11y-readable-font button,
html.a11y-readable-font input,
html.a11y-readable-font select,
html.a11y-readable-font textarea {
  font-family: "Atkinson Hyperlegible", Inter, ui-sans-serif, system-ui, sans-serif;
}

html.a11y-readable-font h1,
html.a11y-readable-font h2,
html.a11y-readable-font h3,
html.a11y-readable-font .footer-brand strong,
html.a11y-readable-font .metrics-strip strong,
html.a11y-readable-font .accessibility-toggle-mark {
  font-family: "Atkinson Hyperlegible", Inter, ui-sans-serif, system-ui, sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(25, 118, 243, 0.10), transparent 360px),
    var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

html.theme-light body {
  background:
    linear-gradient(180deg, rgba(25, 118, 243, 0.12), transparent 360px),
    var(--background);
}

html.theme-light .site-header,
html.theme-light .clienti-topbar {
  background: rgba(255, 255, 255, 0.86);
}

html.theme-light .hero-panel,
html.theme-light .accessibility-panel,
html.theme-light .cookie-banner {
  background: rgba(255, 255, 255, 0.96);
}

html.theme-light .terminal-card,
html.theme-light .mockup-instructions,
html.theme-light .mockup-sources {
  background: #F2F6FC;
}

html.theme-light .contact-form input,
html.theme-light .contact-form select,
html.theme-light .contact-form textarea,
html.theme-light .auth-form input {
  background: #FFFFFF;
}

html.theme-light pre {
  color: var(--text-secondary);
}

html.a11y-contrast .site-header,
html.a11y-contrast .clienti-topbar,
html.a11y-contrast .hero-panel,
html.a11y-contrast .accessibility-panel,
html.a11y-contrast .cookie-banner {
  background: rgba(0, 0, 0, 0.96);
}

html.a11y-contrast .terminal-card,
html.a11y-contrast .mockup-instructions,
html.a11y-contrast .mockup-sources,
html.a11y-contrast .contact-form input,
html.a11y-contrast .contact-form select,
html.a11y-contrast .contact-form textarea,
html.a11y-contrast .auth-form input {
  background: #000000;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(69, 195, 255, 0.35);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  transform: translateY(-140%);
}

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

.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;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", Inter, ui-sans-serif, sans-serif;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 860px;
  font-size: clamp(3rem, 7vw, 6.9rem);
}

h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.35rem);
}

h3 {
  font-size: 1.22rem;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  min-height: 76px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 18px;
  background: rgba(11, 15, 25, 0.78);
  border: 1px solid rgba(42, 52, 72, 0.78);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(11, 15, 25, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 154px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.site-nav,
.clienti-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a,
.footer-links a {
  padding: 9px 12px;
  color: var(--text-secondary);
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  background: var(--surface-light);
  outline: none;
}

.site-nav .nav-cta {
  color: var(--text);
  background: var(--primary);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--primary-hover);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.hero {
  min-height: 94svh;
  padding: 152px max(20px, calc((100vw - 1160px) / 2)) 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 58px;
  align-items: center;
}

.hero-copy-wrap {
  min-width: 0;
}

.hero-copy {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--text-secondary);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 18px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--primary);
  box-shadow: 0 18px 42px rgba(25, 118, 243, 0.30);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--primary-hover);
  outline: none;
}

.button-secondary,
.button-secondary-dark,
.button-quiet {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-secondary-dark:hover,
.button-secondary-dark:focus-visible,
.button-quiet:hover,
.button-quiet:focus-visible {
  background: var(--surface-light);
  outline: none;
}

.hero-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 22px;
  background: rgba(18, 24, 38, 0.72);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.hero-panel > img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 14px;
}

.terminal-card {
  overflow: hidden;
  background: #070A11;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.terminal-bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  background: var(--divider);
  border-radius: 50%;
}

.terminal-bar span:first-child {
  background: var(--error);
}

.terminal-bar span:nth-child(2) {
  background: var(--warning);
}

.terminal-bar span:nth-child(3) {
  background: var(--success);
}

pre {
  margin: 0;
  padding: 18px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.metrics-strip div {
  display: grid;
  gap: 4px;
  min-height: 118px;
  padding: 22px;
  background: var(--surface);
}

.metrics-strip strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.12rem;
}

.metrics-strip span,
.section-heading p,
.service-card p,
.portfolio-card p,
.method-list p,
.contact-copy p,
.form-status,
.empty-state p {
  color: var(--text-secondary);
}

.section,
.method-section {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0;
}

.section-heading {
  display: grid;
  gap: 18px;
  max-width: 830px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 690px;
  margin: 0;
  font-size: 1.05rem;
}

.service-grid,
.portfolio-grid,
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.portfolio-card,
.mockup-card,
.estimate-panel,
.empty-state,
.contact-form,
.auth-card,
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.service-card {
  display: grid;
  gap: 16px;
  min-height: 250px;
  padding: 24px;
}

.service-card svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.service-card p {
  margin: 0;
}

.method-section {
  display: grid;
  gap: 28px;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-list li {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.method-list span {
  color: transparent;
  background: var(--gradient-ab);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.4rem;
  font-weight: 800;
}

.method-list p {
  margin: 8px 0 0;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  overflow: hidden;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.portfolio-card div {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.portfolio-card p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.72fr);
  gap: 42px;
  align-items: start;
}

.contact-copy p {
  max-width: 620px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.contact-links svg {
  width: 18px;
  height: 18px;
}

.contact-form,
.auth-form {
  display: grid;
  gap: 16px;
}

.contact-form {
  padding: 24px;
}

.contact-form label,
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.auth-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  color: var(--text);
  background: #080C14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.auth-form input:focus {
  border-color: var(--primary-light);
  outline: 3px solid rgba(25, 118, 243, 0.22);
}

.contact-form .button,
.auth-form .button,
.mockup-card .button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0;
  color: var(--text-disabled);
  border-top: 1px solid var(--border);
}

.footer-brand {
  display: grid;
  gap: 5px;
}

.footer-brand strong {
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 720px;
}

.footer-links button {
  padding: 9px 12px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.footer-links button:hover,
.footer-links button:focus-visible {
  color: var(--text);
  background: var(--surface-light);
  outline: none;
}

.accessibility-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  place-items: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--text);
  background: rgba(18, 24, 38, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.accessibility-toggle:hover,
.accessibility-toggle:focus-visible {
  color: var(--text);
  background: var(--primary);
}

.accessibility-toggle-mark {
  color: transparent;
  background: var(--gradient-ab);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1;
}

.accessibility-panel,
.cookie-banner {
  position: fixed;
  z-index: 70;
  display: grid;
  gap: 16px;
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  color: var(--text);
  background: rgba(18, 24, 38, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.accessibility-panel[hidden],
.cookie-banner[hidden] {
  display: none;
}

.accessibility-panel {
  left: 18px;
  bottom: 78px;
}

.accessibility-panel h2,
.cookie-banner h2 {
  font-size: 1.55rem;
}

.accessibility-panel p,
.cookie-banner p {
  margin: 0;
  color: var(--text-secondary);
}

.accessibility-panel a,
.cookie-banner a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.accessibility-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-options {
  display: grid;
  gap: 10px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #080C14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

html.theme-light .cookie-option {
  background: #F2F6FC;
}

html.a11y-contrast .cookie-option {
  background: #000000;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.cookie-option input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.cookie-option span {
  display: grid;
  gap: 3px;
}

.cookie-option strong {
  color: var(--text);
  font-size: 0.94rem;
}

.cookie-option small {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.accessibility-actions button {
  min-height: 42px;
  padding: 9px 12px;
  color: var(--text);
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.accessibility-actions button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary-light);
}

.cookie-banner {
  right: 18px;
  bottom: 18px;
}

.cookie-actions {
  align-items: center;
}

.cookie-actions .button {
  min-height: 44px;
  padding: 10px 14px;
}

/* Area clienti */
.auth-body,
.clienti-body {
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  align-content: center;
  width: var(--container);
  min-height: 100vh;
  margin: 0 auto;
  padding: 52px 0;
}

.auth-brand {
  width: fit-content;
  margin-bottom: 28px;
}

.auth-brand .brand-logo {
  width: 190px;
  height: 76px;
}

.auth-card {
  width: min(520px, 100%);
  padding: 30px;
}

.auth-card h1 {
  font-size: 2.35rem;
}

.auth-card p {
  margin: 16px 0 0;
  color: var(--text-secondary);
}

.auth-error {
  padding: 12px 14px;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 10px;
  font-weight: 800;
}

.auth-form {
  margin-top: 24px;
}

.auth-form input[name="access_code"] {
  text-transform: uppercase;
}

.clienti-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(11, 15, 25, 0.90);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.clienti-topbar .brand-logo {
  width: 150px;
  height: 58px;
}

.clienti-actions form {
  margin: 0;
}

.clienti-shell {
  width: var(--container);
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 0 72px;
}

.clienti-heading {
  max-width: 680px;
}

.clienti-heading h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0;
}

.clienti-heading p {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.access-code-inline {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  color: var(--accent);
  background: rgba(69, 195, 255, 0.10);
  border: 1px solid rgba(69, 195, 255, 0.22);
  border-radius: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 800;
}

.staff-note {
  width: fit-content;
  max-width: 780px;
  margin: 28px 0 0;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 10px;
  font-weight: 800;
}

.clienti-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 380px);
  align-items: start;
  gap: 22px;
  margin-top: 30px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
}

.mockup-card {
  display: grid;
  gap: 0;
  align-content: start;
  overflow: hidden;
  padding: 0;
}

.mockup-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mockup-preview {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080C14;
}

.mockup-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease, opacity .25s ease;
}

.mockup-preview:hover img {
  opacity: .9;
  transform: scale(1.025);
}

.mockup-preview span {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: var(--accent);
  background: rgba(8, 12, 20, .78);
  border: 1px solid rgba(69, 195, 255, .28);
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.mockup-card-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.mockup-card h2,
.estimate-panel h2 {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.16;
}

.mockup-state,
.mockup-client {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.mockup-state {
  color: var(--accent);
  background: rgba(69, 195, 255, 0.10);
}

.mockup-client {
  color: var(--text-secondary);
  background: var(--surface-light);
}

.mockup-card p,
.empty-state p {
  margin: 0;
}

.mockup-card p {
  color: var(--text-secondary);
  font-size: .94rem;
}

.mockup-instructions,
.mockup-sources {
  display: grid;
  gap: 7px;
  padding: 13px;
  background: #080C14;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.mockup-instructions strong,
.mockup-sources strong {
  color: var(--accent);
  font-size: 0.82rem;
}

.mockup-sources ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mockup-sources a {
  color: var(--primary-light);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.estimate-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.estimate-panel .eyebrow {
  margin: 0;
}

.estimate-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: .95rem;
}

.estimate-main {
  display: grid;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(69, 195, 255, .12), rgba(118, 92, 255, .10));
  border: 1px solid rgba(69, 195, 255, .22);
  border-radius: 10px;
}

.estimate-main span {
  color: var(--text-secondary);
  font-size: .88rem;
  font-weight: 800;
}

.estimate-main strong {
  color: var(--accent);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1;
}

.estimate-group {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.estimate-group h3 {
  margin: 0;
  color: var(--text);
  font-size: .92rem;
}

.estimate-group dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.estimate-group dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-secondary);
  font-size: .9rem;
}

.estimate-group dt,
.estimate-group dd {
  margin: 0;
}

.estimate-group dd {
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.estimate-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: .9rem;
}

.estimate-total {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 13px;
  background: rgba(69, 195, 255, .12);
  border: 1px solid rgba(69, 195, 255, .28);
  border-radius: 10px;
}

.estimate-total span {
  color: var(--text-secondary);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.estimate-total strong {
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.estimate-link {
  justify-content: center;
  margin-top: 2px;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: 34px;
  padding: 30px;
}

.empty-state svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

/* Mockup helloworld */
.hello-mockup {
  display: grid;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 70px max(20px, calc((100vw - 1160px) / 2));
  background: var(--background);
}

.hello-panel {
  width: min(760px, 100%);
}

.hello-panel h1 {
  font-size: clamp(3rem, 7vw, 6rem);
}

.hello-panel > p {
  max-width: 580px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 1.16rem;
}

.hello-window {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin-top: 34px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hello-window span {
  width: 58px;
  height: 8px;
  background: var(--gradient-ab);
  border-radius: 999px;
}

.hello-window p {
  margin: 0;
  color: var(--text-secondary);
}

/* Legal pages */
.legal-main {
  padding-top: 126px;
}

.legal-hero,
.legal-layout {
  width: var(--container);
  margin: 0 auto;
}

.legal-hero {
  padding: 62px 0 34px;
}

.legal-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.legal-hero p {
  max-width: 760px;
  color: var(--text-secondary);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  padding: 28px 0 96px;
}

.legal-nav {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 8px;
  align-self: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-nav a {
  padding: 9px 10px;
  color: var(--text-secondary);
  border-radius: 8px;
  font-weight: 800;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  color: var(--text);
  background: var(--surface-light);
  outline: none;
}

.legal-content {
  display: grid;
  gap: 18px;
}

.legal-card {
  padding: 26px;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(310px, calc(100vw - 24px));
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero-grid,
  .contact-section,
  .legal-layout,
  .clienti-workspace {
    grid-template-columns: 1fr;
  }

  .estimate-panel {
    position: static;
  }

  .service-grid,
  .portfolio-grid,
  .mockup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-nav {
    position: static;
  }
}

@media (max-width: 700px) {
  :root {
    --container: min(100% - 28px, 1160px);
  }

  .site-header {
    min-height: 66px;
  }

  .brand-logo {
    width: 124px;
    height: 46px;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 58px;
  }

  .hero-actions,
  .site-footer,
  .clienti-topbar,
  .clienti-actions {
    align-items: stretch;
  }

  .site-footer,
  .clienti-topbar {
    grid-template-columns: 1fr;
  }

  .clienti-topbar,
  .clienti-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .metrics-strip,
  .service-grid,
  .portfolio-grid,
  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .method-section {
    padding: 70px 0;
  }

  .method-list li {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .auth-card,
  .legal-card {
    padding: 20px;
  }

  .auth-shell {
    align-content: start;
  }

  .auth-card h1,
  .clienti-heading h1 {
    font-size: 2.35rem;
  }

  .clienti-shell {
    padding: 46px 0 70px;
  }

  .mockup-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .estimate-group dl div {
    flex-direction: column;
    gap: 2px;
  }

  .estimate-group dd {
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .accessibility-toggle {
    left: 14px;
    bottom: 14px;
  }

  .accessibility-panel {
    left: 14px;
    bottom: 72px;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
  }

  .cookie-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
