/* Italiano per te: palette and type from the brand guide.
   --accent-strong / --success-strong are darker shades of the same hue, used
   only where Terracotta or Salvia carry text in light mode, to reach 4.5:1. */
:root {
  color-scheme: light dark;
  --primary: #1f4fd8;
  --on-primary: #ffffff;
  --accent: #c9582f;
  --accent-strong: #ab4b28;
  --on-accent: #ffffff;
  --success: #2f7d55;
  --success-strong: #2c744f;
  --ink: #14213d;
  --muted: #5b6475;
  --background: #fbf8f3;
  --surface: #efeae1;
  --border: #d9d1c3;
  --night: #14213d;
  --on-night: #fbf8f3;
  --on-night-muted: #c9cfdb;
  --glow: #f3c98b;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --gutter: 1rem;
  --max: 70rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #7c9bff;
    --on-primary: #0f1626;
    --accent: #f08a63;
    --accent-strong: #f08a63;
    --on-accent: #0f1626;
    --success: #6fc69a;
    --success-strong: #6fc69a;
    --ink: #f3f0ea;
    --muted: #a7afbf;
    --background: #0f1626;
    --surface: #1a2336;
    --border: #2c3750;
    --night: #0a101d;
    --on-night: #f3f0ea;
    --on-night-muted: #a7afbf;
    --glow: #e9b874;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.25rem, 1.6rem + 3.2vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem);
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--background);
  border-radius: 0.5rem;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 40em) {
  :root {
    --gutter: 1.5rem;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-accent:hover {
  filter: brightness(1.08);
}

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

.btn-primary:hover {
  filter: brightness(1.08);
}

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

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.badge-link {
  display: inline-block;
  border-radius: 0.6rem;
}

.badge-link img {
  height: 3.5rem;
  width: auto;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.soon svg {
  width: 1.5rem;
  height: 1.5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 92%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 4rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 3rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1;
  white-space: nowrap;
}

.logo img {
  width: 2.25rem;
  height: 2.25rem;
}

.logo em {
  font-style: italic;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
  padding-inline: 0.75rem;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.5rem;
}

.site-nav a:hover {
  color: var(--primary);
}

.lang-switch {
  display: flex;
  gap: 0.125rem;
  margin-left: 0.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  min-width: 3rem;
  justify-content: center;
  padding-inline: 0.5rem;
  font-weight: 400;
  color: var(--muted);
}

.lang-switch a[aria-current='page'] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* JS adds .js to <html>; without JS the nav simply wraps below the logo. */
@media (max-width: 52em) {
  .header-bar {
    flex-wrap: wrap;
  }

  .site-nav {
    flex-basis: 100%;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

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

  .js .site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 0.5rem 1rem;
    border-top: 1px solid var(--border);
  }

  .js .site-nav.is-open ul {
    flex-direction: column;
  }

  .lang-switch {
    margin: 0.5rem 0 0;
    padding: 0.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (min-width: 52.01em) {
  .site-nav {
    order: 1;
  }

  .header-cta {
    order: 2;
    margin-left: 0.5rem;
  }
}

@media (max-width: 25em) {
  .header-bar {
    gap: 0.375rem;
  }

  .logo {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .logo img {
    width: 2rem;
    height: 2rem;
  }

  .header-cta {
    padding-inline: 0.75rem;
  }

  .menu-toggle {
    padding-inline: 0.5rem;
  }
}

abbr[title] {
  text-decoration: none;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.section-alt {
  background: var(--surface);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 40em) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 56em) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 40em) and (max-width: 55.99em) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
}

.section-alt .card {
  background: var(--background);
}

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

.card-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.line-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.small {
  font-size: 1rem;
}

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

.hero {
  padding-block: 2.5rem 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56em) {
  .hero {
    padding-block: 4.5rem 5.5rem;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-copy h1 {
  margin-bottom: 0.75rem;
}

.hero-descriptor {
  margin-bottom: 0.25rem;
  font-size: 1.3125rem;
  font-weight: 700;
}

.hero-value {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 1rem;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.trust svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--success-strong);
}

/* "La porta aperta di sera": a lit arch, the phone stands in the doorway. */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  max-width: 24rem;
  margin-inline: auto;
  padding: 2rem 1.5rem 0;
}

.doorway {
  position: absolute;
  inset: 0 0 -3.5rem;
  border-radius: 12rem 12rem 0 0;
  background: var(--night);
  overflow: hidden;
}

.doorway::before {
  content: '';
  position: absolute;
  inset: 12% 14% 0;
  border-radius: 10rem 10rem 0 0;
  background: radial-gradient(120% 80% at 50% 100%, var(--glow) 0%, color-mix(in srgb, var(--glow) 45%, var(--night)) 55%, var(--night) 100%);
  opacity: 0.9;
}

.phone {
  position: relative;
  width: min(15.5rem, 70vw);
  padding: 0.6rem;
  border-radius: 2.6rem;
  background: #0b0f19;
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.45);
}

.phone img {
  width: 100%;
  border-radius: 2.05rem;
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 48em) {
  .founder {
    grid-template-columns: 16rem 1fr;
    gap: 3rem;
  }
}

.founder-photo {
  width: 100%;
  max-width: 16rem;
  border-radius: var(--radius-lg);
}

.founder figure {
  margin: 0 0 1.5rem;
}

.founder blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.3;
}

.founder blockquote p {
  margin: 0;
}

.founder figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.scores {
  width: 100%;
  max-width: 30rem;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.scores caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.scores th,
.scores td {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.scores td {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scores tfoot th,
.scores tfoot td {
  border-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
}

.scores tfoot td {
  color: var(--accent-strong);
}

.honest-note {
  max-width: 34rem;
  padding-left: 1rem;
  border-left: 4px solid var(--accent);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ---------- Prove ---------- */

.free-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-weight: 700;
}

.free-note svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--success-strong);
  flex: none;
}

/* ---------- Compare table ---------- */

.compare-wrap {
  max-width: 48rem;
}

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--background);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 1rem;
}

.compare th,
.compare td {
  padding: 0.875rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-display);
  font-size: 1.125rem;
  background: var(--background);
}

.compare td {
  width: 5.75rem;
  text-align: center;
}

.compare thead th:not(:first-child) {
  text-align: center;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare .yes,
.compare .no {
  display: inline-flex;
  justify-content: center;
}

.compare .yes svg,
.compare .no svg {
  width: 1.375rem;
  height: 1.375rem;
}

.compare .yes {
  color: var(--success-strong);
}

.compare .no {
  color: var(--muted);
}

.compare .price-row th,
.compare .price-row td {
  background: color-mix(in srgb, var(--primary) 8%, var(--background));
  font-weight: 700;
}

.compare .price-row td {
  font-size: 1.0625rem;
}

@media (min-width: 40em) {
  .compare th,
  .compare td {
    padding-inline: 1.25rem;
  }

  .compare td {
    width: 10rem;
  }
}

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

.privacy-band {
  background: var(--night);
  color: var(--on-night);
}

.privacy-band .lead,
.privacy-band .muted {
  color: var(--on-night-muted);
}

.privacy-band a {
  color: var(--on-night);
}

.privacy-band .card-icon {
  color: var(--glow);
}

.privacy-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  gap: 0.75rem;
}

.privacy-list svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  color: var(--glow);
}

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

.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--primary);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details > div {
  padding-bottom: 1rem;
}

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

.final-cta {
  text-align: center;
}

.final-cta .store-badges {
  justify-content: center;
}

.final-cta h2 {
  max-width: 34rem;
  margin-inline: auto;
}

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

.site-footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding-inline: 0.5rem;
}

.footer-links li:first-child a {
  padding-left: 0;
}

.disclaimer {
  max-width: 44rem;
  color: var(--muted);
}

.tricolore {
  display: flex;
  width: 3rem;
  height: 0.25rem;
  margin-bottom: 1rem;
  border-radius: 1px;
  overflow: hidden;
}

.tricolore span {
  flex: 1;
}

.tricolore span:nth-child(1) {
  background: #009246;
}

.tricolore span:nth-child(2) {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--border);
}

.tricolore span:nth-child(3) {
  background: #ce2b37;
}

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

.compare-note {
  margin-top: 1rem;
}

.app-lang {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Legal and support pages ---------- */

.legal {
  padding-block: 2.5rem 4rem;
}

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.5rem;
}

.prose li + li {
  margin-top: 0.375rem;
}

.updated {
  color: var(--muted);
  font-size: 1rem;
}

.translation-note {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--primary);
  background: var(--surface);
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 1rem;
}

.prose .summary,
.prose .contact {
  margin-block: 1.5rem 2rem;
}

.prose .summary h2,
.prose .contact h2 {
  margin-top: 0;
}

.prose .summary ul {
  margin-bottom: 0;
}

.contact-email {
  font-size: 1.25rem;
  font-weight: 700;
}

.contact .btn svg {
  width: 1.375rem;
  height: 1.375rem;
}

.table-scroll {
  overflow-x: auto;
  margin-bottom: 1em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.prose th,
.prose td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.changelog {
  font-size: 1rem;
}

.not-found .footer-links {
  margin-top: 1rem;
}
