:root {
  color-scheme: light;
  --navy-950: #07162f;
  --navy-900: #0d1f3c;
  --navy-700: #324664;
  --navy-600: #4d6584;
  --blue-700: #075ce9;
  --blue-600: #176ff2;
  --cyan-600: #079bd7;
  --teal-500: #12bfae;
  --teal-100: #d9f8f3;
  --blue-100: #e5efff;
  --background: #f4f8fc;
  --surface: #ffffff;
  --surface-muted: #edf3fa;
  --border: #d5e0ed;
  --border-soft: #e0eaf5;
  --border-strong: #aec0d4;
  --danger: #b42318;
  --danger-soft: #fff0ee;
  --warning: #8a5a00;
  --warning-soft: #fff6dc;
  --focus: #075ce9;
  --gradient-brand: linear-gradient(135deg, #12c8b3 0%, #079bd7 48%, #1765f2 100%);
  --gradient-action: linear-gradient(105deg, #1765f2 0%, #079bd7 52%, #12bfae 100%);
  --shadow-card: 0 12px 34px rgba(19, 59, 104, 0.09);
  --shadow-hover: 0 18px 42px rgba(7, 92, 233, 0.14);
  --shadow-device: 0 26px 56px -24px rgba(7, 22, 47, 0.45);
  --radius-card: 8px;
  --radius-control: 8px;
  --max-width: 76rem;
  --reading-width: 50rem;
  --font-sans: "Avenir Next", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--navy-900);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--blue-700);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0347b9;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 0.4rem;
}

.site-footer a:focus-visible,
.privacy-band a:focus-visible {
  outline-color: #6fe6d7;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: var(--radius-control);
  background: var(--navy-950);
  color: #fff;
  padding: 0.7rem 1rem;
  font-weight: 750;
}

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

.header-inner,
.footer-inner,
.page-shell,
.hero-inner,
.stories-heading,
.stories-list,
.collab-band,
.links-inner,
.screens-row,
.screens-note,
.centered-heading {
  width: min(calc(100% - 2rem), var(--max-width));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(213, 224, 237, 0.88);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 18px rgba(13, 31, 60, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-950);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--blue-700);
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  box-shadow: 0 6px 16px rgba(7, 92, 233, 0.22);
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  border-radius: 999px;
  color: var(--navy-700);
  padding: 0.4rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--blue-100);
  color: var(--blue-700);
}

main {
  min-height: 65vh;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-950);
  line-height: 1.16;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.6rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h3 {
  font-size: 1.15rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.eyebrow.light {
  color: #6fe6d7;
}

/* ---------- Reveal (progressive enhancement) ---------- */

.will-reveal {
  transition: opacity 420ms ease-out, transform 420ms ease-out;
}

.will-reveal.is-hidden {
  opacity: 0;
  transform: translateY(10px);
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--background);
  padding-block: clamp(2.75rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.hero::before {
  top: -18rem;
  right: -12rem;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(circle at 50% 50%, rgba(18, 191, 174, 0.22) 0%, rgba(23, 101, 242, 0.16) 42%, rgba(244, 248, 252, 0) 70%);
}

.hero::after {
  bottom: -22rem;
  left: -16rem;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle at 50% 50%, rgba(7, 155, 215, 0.16) 0%, rgba(244, 248, 252, 0) 68%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 861px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.78fr);
  }
}

.hero-copy {
  max-width: 34rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.4rem;
  border: 1px solid #cfe3f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0c3f7e;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #12bfae, #1765f2);
}

.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 6.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--blue-700);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title .accent {
    background: var(--gradient-action);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lead {
  max-width: 28rem;
  margin: 0 0 2rem;
  color: var(--navy-700);
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button-link {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: var(--gradient-action);
  box-shadow: 0 14px 30px -10px rgba(7, 92, 233, 0.55);
  color: #fff;
  padding: 0.85rem 1.6rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -12px rgba(7, 92, 233, 0.6);
  color: #fff;
}

button.button-link {
  cursor: pointer;
}

button.button-link:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button-ghost {
  display: inline-flex;
  min-height: 3.3rem;
  align-items: center;
  border: 1px solid #c6d8ec;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  color: #0c3f7e;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-ghost:hover {
  border-color: var(--blue-700);
  background: #fff;
  color: var(--blue-700);
}

.hero-assurance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin: 2.2rem 0 0;
  color: var(--navy-600);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-assurance .sep {
  color: var(--teal-500);
}

.test-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 1rem 0 0;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(103, 232, 218, 0.34);
  border-radius: 999px;
  background: rgba(7, 33, 61, 0.54);
  color: #dffbf7;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-devices {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Device frame ---------- */

.device {
  width: 100%;
  border-radius: 1.8rem;
  background: linear-gradient(165deg, #12314f 0%, #07162f 100%);
  box-shadow: var(--shadow-device);
  padding: 0.38rem;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 260ms ease;
}

.device img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
}

.device-front,
.device-back {
  margin: 0;
}

.device-front {
  position: relative;
  z-index: 2;
  width: min(58%, 16.5rem);
  border-radius: 2.1rem;
  box-shadow: 0 34px 70px -22px rgba(7, 22, 47, 0.55), 0 10px 26px -12px rgba(7, 92, 233, 0.28);
  padding: 0.45rem;
}

.device-front img {
  border-radius: 1.75rem;
}

.device-back {
  position: relative;
  z-index: 1;
  width: min(46%, 13rem);
  margin-top: 3.2rem;
  margin-left: -14%;
  background: linear-gradient(165deg, #1b3a5c 0%, #0d1f3c 100%);
}

.device-front:hover,
.device-back:hover,
.story-device:hover,
.screen-card .device:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -22px rgba(7, 22, 47, 0.5);
}

/* ---------- Screens preview ---------- */

.screens-section {
  border-block: 1px solid #e3ecf6;
  background: var(--surface);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading p {
  margin: 0;
  color: var(--navy-700);
  font-size: 1.05rem;
}

.centered-heading {
  max-width: 42rem;
  margin-bottom: 0;
  text-align: center;
}

.screens-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.screen-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  width: clamp(9.5rem, 27vw, 12rem);
  margin: 0;
}

.screen-card-offset {
  margin-top: 1.5rem;
}

.screen-card .device {
  border-radius: 1.5rem;
  box-shadow: 0 18px 38px -20px rgba(7, 22, 47, 0.42);
  padding: 0.3rem;
}

.screen-card .device img {
  border-radius: 1.25rem;
}

.screen-card figcaption {
  color: var(--navy-950);
  font-size: 0.95rem;
  font-weight: 700;
}

.screens-note {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  color: var(--navy-600);
  text-align: center;
  font-size: 0.92rem;
}

/* ---------- Feature stories ---------- */

.stories {
  background: var(--background);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.stories-heading {
  margin-bottom: 0;
}

.stories-list {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 18px 44px -28px rgba(19, 59, 104, 0.35);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.story-copy {
  max-width: 30rem;
}

.story-number {
  margin: 0 0 0.9rem;
  color: var(--blue-700);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .story-number {
    background: linear-gradient(105deg, #1765f2, #12bfae);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.story-copy h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.story-copy p:last-child {
  margin: 0;
  color: var(--navy-700);
  font-size: 1.05rem;
}

.story-device {
  width: min(100%, 14.5rem);
  justify-self: center;
}

@media (min-width: 761px) {
  .story {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.62fr);
  }

  .story-reverse {
    grid-template-columns: minmax(13rem, 0.62fr) minmax(0, 1fr);
  }
}

.collab-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 1px solid #d7e8f4;
  border-radius: 1.5rem;
  background: linear-gradient(105deg, #eaf7f5 0%, #e9f1ff 100%);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3vw, 2.5rem);
}

.collab-band .eyebrow {
  margin-bottom: 0.5rem;
}

.collab-band h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.collab-band > p {
  margin: 0;
  color: var(--navy-700);
  font-size: 1.05rem;
}

@media (min-width: 761px) {
  .collab-band {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1f3c 0%, #07162f 62%, #062232 100%);
  color: #eaf4ff;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.privacy-band::before {
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 191, 174, 0.24) 0%, rgba(7, 22, 47, 0) 68%);
  pointer-events: none;
  content: "";
}

.privacy-band-inner {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3.5rem;
  align-items: center;
  margin-inline: auto;
}

.privacy-band h2 {
  margin: 0;
  color: #fff;
}

.privacy-band p {
  margin: 0;
  color: #cfe3f6;
  font-size: 1.08rem;
}

@media (min-width: 761px) {
  .privacy-band-inner {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* ---------- Informazioni ---------- */

.links-section {
  border-top: 1px solid #e3ecf6;
  background: var(--surface);
  padding-block: clamp(3rem, 7vw, 5rem);
}

.links-inner .section-heading {
  max-width: 42rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.feature-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .feature-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature-item {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: 1.65rem;
}

.feature-item h3 {
  margin-bottom: 0.65rem;
}

.feature-item p {
  margin: 0;
  color: var(--navy-700);
}

.feature-link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--border-soft);
  border-radius: 1rem;
  background: #fbfdff;
  color: var(--navy-950);
  padding: 1.4rem;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.feature-link:hover {
  transform: translateY(-4px);
  border-color: #9bc3f8;
  box-shadow: 0 18px 38px -22px rgba(7, 92, 233, 0.4);
  color: var(--navy-950);
}

.feature-link strong {
  font-size: 1.08rem;
  font-weight: 800;
}

.feature-link span {
  color: var(--navy-600);
  font-size: 0.96rem;
}

.feature-link .arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--blue-700);
  font-size: 0.92rem;
  font-weight: 800;
}

/* ---------- Pagine interne ---------- */

.page-shell {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.page-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, #e6fbf8 0%, #edf4ff 58%, #f7faff 100%);
  padding: clamp(3.25rem, 7vw, 5.5rem) 0;
}

.page-header::after {
  position: absolute;
  top: -3rem;
  right: max(1rem, calc((100vw - var(--max-width)) / 2));
  width: 12rem;
  aspect-ratio: 1;
  background: url("stanzia-mark.svg") center / contain no-repeat;
  opacity: 0.09;
  content: "";
}

.page-header-inner,
.reading {
  width: min(calc(100% - 2rem), var(--reading-width));
  margin-inline: auto;
}

.page-header-inner {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  letter-spacing: -0.025em;
}

.page-header .eyebrow {
  color: var(--blue-700);
}

.page-header p:last-child {
  max-width: 43rem;
  margin: 0;
  color: var(--navy-700);
  font-size: 1.08rem;
}

.reading {
  margin-block: 2.25rem 4.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.reading section + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
}

.reading h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.reading h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
}

.reading p,
.reading ul,
.reading ol {
  margin-top: 0.6rem;
  margin-bottom: 0.95rem;
}

.reading li + li {
  margin-top: 0.4rem;
}

.external-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.external-links a {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
  padding: 0.95rem 1rem;
  font-weight: 750;
  text-decoration: none;
}

.external-links a:hover {
  border-color: #9bc3f8;
  background: var(--blue-100);
}

.author-reading {
  width: min(calc(100% - 2rem), 64rem);
}

.author-profile {
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.author-photo {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 4 / 5;
  justify-self: start;
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  box-shadow: var(--shadow-card);
}

.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.author-profile + section {
  margin-top: 2.6rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
}

.notice {
  border-left: 4px solid var(--warning);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--warning-soft);
  padding: 1rem 1.2rem;
}

.notice strong {
  color: #684300;
}

.action-panel,
.email-fallback {
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  padding: clamp(1.25rem, 4vw, 2rem);
}

.account-deletion-form {
  display: grid;
  gap: 1rem;
}

.account-deletion-form > label:not(.checkbox-field) {
  color: var(--navy-900);
  font-weight: 750;
}

.account-deletion-form input[type="email"] {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--navy-900);
  padding: 0.72rem 0.85rem;
  font: inherit;
}

.account-deletion-form input[type="email"]:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(7, 92, 233, 0.12);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.checkbox-field input {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  margin-top: 0.22rem;
  accent-color: var(--blue-700);
}

.form-result {
  border-left: 4px solid var(--teal-500);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--teal-100);
  padding: 0.9rem 1rem;
}

.form-result.success {
  background: var(--teal-100);
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.form-result.error {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: #7a2018;
}

.fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.secondary-button,
.secondary-link {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  border: 1px solid var(--blue-700);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--blue-700);
  padding: 0.66rem 0.95rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.secondary-button {
  cursor: pointer;
}

.secondary-button:hover,
.secondary-link:hover {
  background: var(--blue-100);
}

.meta {
  color: var(--navy-700);
  font-size: 0.94rem;
}

/* ---------- Pagine interne: layout 2026 ---------- */

.pg {
  width: min(calc(100% - 2rem), var(--pg-w, 76rem));
  margin-inline: auto;
}

.pg-50 { --pg-w: 50rem; }
.pg-64 { --pg-w: 64rem; }
.pg-70 { --pg-w: 70rem; }

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--background);
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.page-hero::before {
  position: absolute;
  z-index: -1;
  top: -16rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 191, 174, 0.2) 0%, rgba(23, 101, 242, 0.13) 44%, rgba(244, 248, 252, 0) 70%);
  pointer-events: none;
  content: "";
}

.page-hero.hero-left::before {
  right: auto;
  left: -12rem;
  background: radial-gradient(circle, rgba(7, 155, 215, 0.16) 0%, rgba(244, 248, 252, 0) 68%);
}

.page-hero .hero-chip {
  white-space: nowrap;
}

.page-hero h1 {
  margin: 0 0 1rem;
  max-width: 34rem;
  font-size: clamp(2.05rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero .accent {
  color: var(--blue-700);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .page-hero .accent {
    background: var(--gradient-action);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.page-hero .lead {
  max-width: 36rem;
  margin: 0;
  color: var(--navy-700);
  font-size: clamp(1.02rem, 2vw, 1.16rem);
}

.page-hero .hero-actions {
  margin-top: 1.75rem;
}

.page-hero .hero-assurance {
  margin-top: 1.5rem;
}

.band-white {
  border-block: 1px solid #e3ecf6;
  background: var(--surface);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.band-soft {
  background: var(--background);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}

.band-navy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1f3c 0%, #07162f 62%, #062232 100%);
  color: #eaf4ff;
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.band-navy::before {
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 191, 174, 0.24) 0%, rgba(7, 22, 47, 0) 68%);
  pointer-events: none;
  content: "";
}

.band-navy .pg {
  position: relative;
}

.band-navy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.025em;
}

.band-navy p {
  color: #cfe3f6;
  font-size: 1.05rem;
}

.band-navy a {
  color: #6fe6d7;
}

.band-navy a:hover {
  color: #b7f6ec;
}

.split-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem 3.5rem;
  align-items: center;
}

.prose-block h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.prose-block p {
  margin: 0 0 1rem;
  color: var(--navy-700);
  font-size: 1.06rem;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-block + .prose-block {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e3ecf6;
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 18px 44px -30px rgba(19, 59, 104, 0.35);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card-tint {
  border-color: #d7e8f4;
  background: linear-gradient(105deg, #eaf7f5 0%, #e9f1ff 100%);
  box-shadow: none;
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  letter-spacing: -0.02em;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
}

.card p,
.card ul,
.card ol {
  margin: 0 0 0.9rem;
  color: var(--navy-700);
}

.card li + li {
  margin-top: 0.35rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.card-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  align-items: start;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.faq-item {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 1.65rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-950);
  font-size: 1.08rem;
  line-height: 1.3;
}

.faq-item p {
  margin: 0;
}

.feature-card {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.feature-card .device {
  width: min(100%, 9.5rem);
  border-radius: 1.4rem;
  box-shadow: 0 16px 34px -20px rgba(7, 22, 47, 0.45);
  padding: 0.3rem;
}

.feature-card .device img {
  border-radius: 1.15rem;
}

.feature-card p {
  margin: 0;
}

.do-list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: flex-start;
}

.do-list h2 {
  flex: 1 1 18rem;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.025em;
}

.do-list ul {
  flex: 1 1 22rem;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 18px 44px -30px rgba(19, 59, 104, 0.35);
  padding: clamp(1.4rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 1.9rem) 2.6rem;
  color: var(--navy-700);
}

.do-list li + li {
  margin-top: 0.4rem;
}

.callout {
  border-left: 4px solid var(--teal-500);
  border-radius: 0 1rem 1rem 0;
  background: var(--teal-100);
  padding: 1.1rem 1.25rem;
}

.callout h2,
.callout h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.callout p {
  margin: 0;
  color: #1f4256;
}

.email-big {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  word-break: break-word;
}

.stack {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.stack-lg {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.85rem);
}

/* Autore */

.author-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

@media (min-width: 861px) {
  .author-split {
    grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.18fr);
  }
}

.author-split .author-photo {
  max-width: 22rem;
  border-radius: 1.5rem;
  box-shadow: 0 24px 54px -30px rgba(19, 59, 104, 0.45);
}

.external-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.4rem;
  border-color: var(--border-soft);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--navy-950);
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.external-links a:hover {
  transform: translateY(-3px);
  border-color: #9bc3f8;
  background: var(--surface);
  box-shadow: 0 16px 34px -22px rgba(7, 92, 233, 0.4);
  color: var(--navy-950);
}

.external-links .ext {
  color: var(--blue-700);
}

/* Documenti legali */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

@media (min-width: 961px) {
  .legal-layout {
    grid-template-columns: minmax(13rem, 0.85fr) minmax(0, 3fr);
  }

  .legal-toc {
    position: sticky;
    top: 5.6rem;
  }
}

.legal-toc {
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  background: #fbfdff;
  padding: 1.25rem 1.35rem;
}

.legal-toc p {
  margin: 0 0 0.7rem;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--navy-700);
  font-size: 0.95rem;
  line-height: 1.5;
}

.legal-toc li + li {
  margin-top: 0.3rem;
}

.legal-body {
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  background: var(--surface);
  box-shadow: 0 18px 44px -30px rgba(19, 59, 104, 0.35);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: var(--navy-700);
  font-size: 1.02rem;
}

.legal-body section {
  scroll-margin-top: 6rem;
}

.legal-body section + section {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid #e3ecf6;
}

.legal-body h2 {
  margin: 0 0 0.8rem;
  scroll-margin-top: 6rem;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.02em;
}

.legal-body h3 {
  margin: 1.3rem 0 0.5rem;
  font-size: 1.12rem;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 0.9rem;
}

.legal-body > section > :last-child,
.legal-body ul {
  margin-bottom: 0.9rem;
}

.legal-body section > p:last-child,
.legal-body section > ul:last-child,
.legal-body section > .callout:last-child {
  margin-bottom: 0;
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-body li + li {
  margin-top: 0.3rem;
}

.legal-body strong {
  color: var(--navy-950);
}

.legal-body .callout {
  margin: 0 0 0.9rem;
  border-radius: 0 0.9rem 0.9rem 0;
}

/* Elimina account */

.option-card .eyebrow {
  margin-bottom: 0.6rem;
}

.option-card ol,
.option-card ul {
  padding-left: 1.3rem;
}

.form-shell {
  border: 1px solid #cfe3f6;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  padding: clamp(1.15rem, 3vw, 1.6rem);
}

.email-fallback-inline {
  margin-top: 1.25rem;
  border-top: 1px solid #cfe3f6;
  padding-top: 1.25rem;
}

.email-fallback-inline h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
}

.notice h2 {
  margin: 0 0 0.6rem;
  color: #684300;
  font-size: 1.15rem;
}

.notice p {
  margin: 0 0 0.6rem;
  color: #5c4415;
}

.notice p:last-child {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .pg {
    width: min(calc(100% - 1.5rem), var(--pg-w, 76rem));
  }

  .fallback-actions,
  .fallback-actions > * {
    width: 100%;
  }
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy-950);
  color: #c5d3e4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 1rem;
}

.footer-nav a {
  color: #dbe8f6;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: #6fe6d7;
}

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

@media (max-width: 900px) {
  .author-profile {
    grid-template-columns: 1fr;
  }

  .author-photo {
    width: min(100%, 20rem);
    justify-self: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 0.9rem;
  }

  .site-nav,
  .site-nav ul {
    width: 100%;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .story-reverse .story-copy {
    order: -1;
  }

  .external-links {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .page-shell,
  .hero-inner,
  .stories-heading,
  .stories-list,
  .collab-band,
  .links-inner,
  .screens-row,
  .screens-note,
  .centered-heading,
  .page-header-inner,
  .reading,
  .privacy-band-inner {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .hero-devices {
    max-width: 22rem;
  }

  .screen-card {
    width: calc(50% - 0.75rem);
    max-width: 12rem;
  }

  .screen-card-offset {
    margin-top: 0;
  }

  .feature-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .reading {
    margin-top: 1rem;
    padding: 1.25rem;
  }

  .page-header::after {
    right: -3rem;
  }

  .fallback-actions,
  .fallback-actions > * {
    width: 100%;
  }

  .secondary-button,
  .secondary-link {
    justify-content: center;
  }
}

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

  .will-reveal,
  .will-reveal.is-hidden {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .device,
  .feature-link,
  .external-links a,
  .button-link,
  .button-ghost,
  .site-nav a {
    transition: none;
  }

  .device-front:hover,
  .device-back:hover,
  .story-device:hover,
  .screen-card .device:hover,
  .feature-link:hover,
  .external-links a:hover,
  .button-link:hover {
    transform: none;
  }
}
