:root {
  color-scheme: light;
  --ink: #171b24;
  --muted: #5e6878;
  --line: #dce3eb;
  --surface: #ffffff;
  --soft: #f3f7fb;
  --accent: #0f7cfe;
  --accent-dark: #075fc7;
  --max-width: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 0.15rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

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

.container {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

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

.brand img {
  width: 8.5rem;
}

.header-inner nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.header-inner nav a {
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.hero {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  background: linear-gradient(145deg, #fff 58%, var(--soft) 58%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.35fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 7rem);
}

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

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 50rem;
  margin-bottom: 1.6rem;
  font-size: clamp(2.6rem, 6vw, 5.35rem);
  font-weight: 780;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.hero-text {
  max-width: 45rem;
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--accent);
  border-radius: 0.35rem;
  background: var(--accent);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.hero-mark {
  padding: 2rem;
}

.hero-mark img {
  width: 100%;
}

.product-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  scroll-margin-top: 2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 7rem);
}

.product-logo-wrap {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--soft);
}

.product-copy p:not(.eyebrow) {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--accent-dark);
  font-weight: 720;
}

.site-footer {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
  background: var(--soft);
  scroll-margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 0.65fr;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.footer-logo {
  width: 7.5rem;
  margin-bottom: 1rem;
}

.footer-grid p,
.footer-grid address {
  margin: 0;
  color: var(--muted);
}

.footer-grid h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0;
}

address {
  font-style: normal;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.footer-links a {
  font-weight: 650;
}

/* Pagine informative */
.legal-header .header-inner {
  min-height: 4.75rem;
}

.back-link {
  color: var(--accent-dark);
  font-weight: 650;
}

.legal-main {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.legal-intro,
.legal-document {
  max-width: 52rem;
  margin-inline: auto;
}

.legal-intro {
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.legal-intro h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.3rem, 5vw, 4.35rem);
}

.legal-intro p {
  max-width: 46rem;
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-document {
  padding-top: 2.75rem;
}

.legal-document section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 2rem;
}

.legal-document h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
  color: #303846;
}

.legal-document ul {
  padding-left: 1.4rem;
}

.legal-document li + li {
  margin-top: 0.65rem;
}

.notice {
  margin: 1.5rem 0;
  padding: 1.2rem 1.35rem;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}

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

.table-wrap {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
}

table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  font-size: 0.88rem;
}

tr:last-child td {
  border-bottom: 0;
}

.legal-footer {
  padding: 2rem 0;
}

.legal-footer .container {
  max-width: 52rem;
}

@media (max-width: 48rem) {
  .container {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .header-inner {
    min-height: auto;
    padding-block: 1.15rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .header-inner nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    background: linear-gradient(160deg, #fff 75%, var(--soft) 75%);
  }

  .hero-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    display: none;
  }

  .product-logo-wrap {
    padding: 1.25rem;
  }

  .footer-grid {
    gap: 2.5rem;
  }

  .legal-header .header-inner {
    min-height: 4.5rem;
    flex-direction: row;
    align-items: center;
  }
}

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