/* ==========================================================================
   NUVARYO — EDITORIAL PRODUCT PAGE
   ========================================================================== */

/* Font locali: eliminano richieste a Google Fonts e mantengono il rendering
   prevedibile anche quando servizi esterni non sono raggiungibili. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}

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

@font-face {
  font-family: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("../fonts/lora-latin-variable.woff2") format("woff2");
}

:root {
  --paper: #f6f7f3;
  --surface: #fcfcf9;
  --ink: #181b19;
  --text: #383e3a;
  --muted: #68706a;
  --line: #dce1dc;
  --accent: #56866d;
  --accent-text: #4b765f;
  --accent-dark: #35634d;
  --accent-strong: #244f3b;
  --accent-soft: #e1f0e7;
  --featured: #e8f3ec;

  --font-display: "Fraunces Variable", Georgia, serif;
  --font-body: "Inter Variable", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-brand: "Lora Variable", Georgia, serif;

  --reading: 720px;
  --home-wide: 980px;
  --wide: 1120px;
  --gutter: clamp(24px, 5vw, 52px);
  --header-height: 78px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --shadow-menu: 0 18px 44px rgba(24, 27, 25, 0.1);

  --label-size: 0.68rem;
  --label-spacing: 0.09em;

  /*
   * Evidenziatore proporzionale al corpo del testo.
   * L'altezza e il sollevamento usano em, quindi non dipendono dal line-height.
   */
  --marker-color: rgba(169, 205, 187, 0.44);
  --marker-height: 1.08em;
  --marker-shift: 0.02em;
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.72;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:where(a, button, summary, [tabindex]) {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid rgba(53, 99, 77, 0.5);
  outline-offset: 3px;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--font-display);
  text-wrap: balance;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.2rem, 7vw, 5.75rem);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.038em;
}

h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.4;
}

strong {
  color: inherit;
  font-weight: 700;
}

::selection {
  background: rgba(169, 205, 187, 0.58);
  color: var(--ink);
}

/* Layout
   ========================================================================== */

.layout-wide {
  width: min(calc(100% - (var(--gutter) * 2)), var(--wide));
  margin-inline: auto;
}

.reading-column {
  width: min(calc(100% - (var(--gutter) * 2)), var(--reading));
  margin-inline: auto;
}

.layout-wide .reading-column {
  width: min(100%, var(--reading));
}

#sintesi,
.article-section,
.comparison-section,
.final-section,
.sources {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

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

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

/* Shared editorial labels
   ========================================================================== */

.eyebrow,
.article-meta__category,
.article-meta__reading,
.summary-grid dt,
.spec-list dt,
.comparison-table thead,
.sources h2 {
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent-text);
}

/* Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 243, 0.96);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand__badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
}

.brand__word {
  font-family: var(--font-brand);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand:hover .brand__word {
  color: var(--accent-dark);
}

.header-menu {
  position: relative;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--ink);
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(86, 134, 109, 0.45);
  outline-offset: 3px;
}

.menu-toggle__icon {
  display: grid;
  gap: 4px;
}

.menu-toggle__icon span {
  width: 20px;
  height: 1.5px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open .menu-toggle__icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle__icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.article-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - (var(--gutter) * 2)));
  display: grid;
  padding: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-menu);
  overflow: hidden;
}

.article-nav__title {
  margin: 0;
  padding: 10px 16px 8px;
  color: var(--accent);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  line-height: 1.35;
  text-transform: uppercase;
}

.article-nav__links {
  display: grid;
}

.article-nav a {
  padding: 11px 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.article-nav a + a {
  border-top: 1px solid rgba(220, 225, 220, 0.72);
}

.article-nav a:hover,
.article-nav a:focus-visible,
.article-nav a[aria-current="location"] {
  background: rgba(225, 240, 231, 0.58);
  color: var(--accent-dark);
}

/* Article header
   ========================================================================== */

.article-header {
  padding: 86px 0 72px;
}

.article-lead {
  margin-bottom: 46px;
}

.article-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 26px;
}

.article-meta__primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.article-meta__category {
  color: var(--accent-text);
}

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

.article-meta__reading::before {
  content: "·";
  margin-right: 18px;
  color: var(--muted);
  font-weight: 400;
}

.article-meta__updated {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.45;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.article-tags li {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid #d6dfd9;
  border-radius: 999px;
  background: rgba(225, 240, 231, 0.42);
  color: #5d6861;
  font-size: 0.65rem;
  font-weight: 600;
}

.standfirst {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.18rem, 2.2vw, 1.42rem);
  line-height: 1.62;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.article-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.editorial-note {
  margin-right: auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.share-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: #9ab5a6;
  background: var(--accent-soft);
  color: var(--ink);
}

.share-button:focus-visible {
  outline: 2px solid rgba(86, 134, 109, 0.45);
  outline-offset: 3px;
}


/* Summary
   ========================================================================== */

.summary-card {
  position: relative;
  isolation: isolate;
  padding: 40px 0 38px;
  color: #244033;
}

.summary-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 -42px;
  background: var(--accent-soft);
}

.summary-card h2 {
  max-width: 630px;
  margin-bottom: 30px;
  font-size: clamp(1.75rem, 3.2vw, 2.42rem);
  line-height: 1.15;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
  border-top: 1px solid rgba(36, 64, 51, 0.2);
}

.summary-grid > div {
  padding: 18px 20px 18px 0;
  border-bottom: 1px solid rgba(36, 64, 51, 0.2);
}

.summary-grid > div:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid rgba(36, 64, 51, 0.2);
}

.summary-grid dt {
  margin-bottom: 6px;
  color: var(--accent-text);
}

.summary-grid dd {
  margin: 0;
  color: #244033;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #244033;
  font-weight: 700;
  text-decoration-color: rgba(86, 134, 109, 0.78);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.microcopy,
.verification {
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 400;
  line-height: 1.55;
}

.summary-card .microcopy {
  margin: 9px 0 0;
  color: rgba(36, 64, 51, 0.64);
}

/* Article content
   ========================================================================== */

.article-body {
  color: var(--text);
}

.article-section {
  padding: 58px 0 0;
}

.article-section + .article-section {
  margin-top: 0;
}

.article-section p {
  margin-bottom: 22px;
  text-wrap: pretty;
}

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

.marker {
  color: inherit;
  font-weight: 700;
  padding-inline: 0.045em;
  background-image: linear-gradient(
    var(--marker-color),
    var(--marker-color)
  );
  background-repeat: no-repeat;
  background-size: 100% var(--marker-height);
  background-position: 0 calc(50% + var(--marker-shift));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Specification list
   ========================================================================== */

.spec-list {
  margin: 30px 0 18px;
  border-top: 1px solid var(--ink);
}

.spec-list--compact {
  margin-top: 26px;
}

.spec-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 1.15fr;
  gap: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
}

.verification {
  margin-bottom: 0;
}


/* Comparison
   ========================================================================== */

.comparison-section {
  padding: 84px 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.comparison-intro {
  margin-bottom: 38px;
  color: var(--text);
}

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

.table-scroll {
  max-width: var(--reading);
  margin-inline: auto;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
}

.table-scroll:focus-visible {
  outline: 2px solid rgba(86, 134, 109, 0.45);
  outline-offset: 4px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th + th,
.comparison-table th + td,
.comparison-table td + td {
  border-left: 1px solid var(--line);
}

.comparison-table thead {
  color: var(--muted);
}

.comparison-table tbody th {
  width: 27%;
  color: var(--ink);
  font-weight: 700;
}

.comparison-table .is-featured {
  background: var(--featured);
}

.comparison-table thead .is-featured {
  color: var(--accent-dark);
}

.comparison-table td:not(.is-featured) {
  color: var(--muted);
}

.comparison-conclusion {
  margin-top: 30px;
  color: var(--text);
}

/* FAQ
   ========================================================================== */

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

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

.faq-list summary {
  position: relative;
  padding: 20px 40px 20px 0;
  color: var(--ink);
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.faq-list summary:hover,
.faq-list summary:active,
.faq-list summary:focus,
.faq-list summary:focus-visible,
.faq-list details[open] > summary {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

.faq-list summary:focus {
  outline: none;
}

.faq-list summary:focus-visible {
  outline: 2px solid rgba(53, 99, 77, 0.5);
  outline-offset: 3px;
}

.faq-list summary::selection,
.faq-list summary *::selection {
  color: inherit;
  background: transparent;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 2px;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

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

.faq-list p {
  margin: 0;
  padding: 0 42px 22px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.68;
}

/* Verdict, sources and footer
   ========================================================================== */

.final-section {
  margin-top: 58px;
  padding: 50px 0 52px;
  border-top: 1px solid var(--ink);
}

.final-section h2,
.final-section > p:not(.eyebrow, .microcopy) {
  max-width: 650px;
}

.primary-cta {
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent-dark);
  color: #fff;
  font-size: clamp(0.78rem, 2.3vw, 0.86rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease;
}

.primary-cta:hover {
  background: var(--accent-strong);
}

.primary-cta:active {
  transform: translateY(1px);
}

.primary-cta:focus-visible {
  outline: 3px solid rgba(86, 134, 109, 0.34);
  outline-offset: 3px;
}

.final-section .microcopy {
  margin: 18px 0 0;
}

.sources {
  margin-bottom: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.sources h2 {
  margin-bottom: 14px;
  color: var(--ink);
}

.sources p {
  margin-bottom: 12px;
}

.source-list {
  margin: 0 0 18px;
  padding-left: 18px;
}

.source-list li + li {
  margin-top: 6px;
}

.source-list a {
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-block: 34px 46px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--font-brand);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.footer-brand img {
  width: 28px;
  height: 18px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible,
.site-footer nav a[aria-current="page"] {
  color: var(--accent-dark);
}



/* Homepage
   ========================================================================== */

.home-header-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}

.home-header-link:hover,
.home-header-link:focus-visible {
  color: var(--accent-dark);
}

.home-hero {
  width: min(calc(100% - (var(--gutter) * 2)), var(--home-wide));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 78px);
  padding-block: clamp(86px, 10vw, 126px) clamp(82px, 9vw, 112px);
}

.home-hero__content {
  max-width: 650px;
}

.home-hero h1 {
  margin-bottom: 36px;
  font-size: clamp(3.65rem, 6.4vw, 6.35rem);
}

.home-hero h1 span {
  display: block;
}

.home-manifesto {
  max-width: 640px;
  color: var(--text);
  font-size: clamp(1.04rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.home-manifesto p {
  margin-bottom: 20px;
}

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

.home-hero__visual {
  margin: 0;
  align-self: center;
}

.home-hero__visual img {
  width: 100%;
  max-height: 590px;
  object-fit: contain;
}

.home-index {
  width: min(calc(100% - (var(--gutter) * 2)), var(--home-wide));
  padding-bottom: clamp(96px, 11vw, 140px);
}

.home-index__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 38px;
  border-top: 1px solid var(--ink);
}

.home-index__header h2 {
  margin-bottom: 0;
}

.home-index__header > p {
  max-width: 390px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-block: 38px 42px;
}

.category-chip {
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #d2dad4;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  cursor: pointer;
}

.category-chip:hover,
.category-chip:focus-visible {
  border-color: #9bb4a5;
  color: var(--ink);
}

.category-chip:focus-visible {
  outline: 2px solid rgba(86, 134, 109, 0.38);
  outline-offset: 3px;
}

.category-chip[aria-pressed="true"] {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

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

.home-article-card {
  border-bottom: 1px solid var(--line);
}

.home-article-card[hidden] {
  display: none;
}

.home-article-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 42px;
  padding-block: 34px 38px;
  color: inherit;
  text-decoration: none;
}

.home-article-card__meta,
.home-article-card h3,
.home-article-card p {
  grid-column: 1;
}

.home-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: var(--label-size);
  font-weight: 700;
  letter-spacing: var(--label-spacing);
  line-height: 1.35;
  text-transform: uppercase;
}

.home-article-card__meta span:first-child {
  color: var(--accent-text);
}

.home-article-card h3 {
  max-width: 780px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 2.8rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-article-card p {
  max-width: 690px;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-article-card__action {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.home-article-card__link:hover h3,
.home-article-card__link:focus-visible h3 {
  color: var(--accent-dark);
}

.home-article-card__link:focus-visible {
  outline: 2px solid rgba(86, 134, 109, 0.38);
  outline-offset: 5px;
}

.home-empty {
  padding-block: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.home-empty p {
  margin: 0;
}

/* Legal pages
   ========================================================================== */

.legal-page {
  padding-block: clamp(64px, 9vw, 104px) clamp(86px, 11vw, 140px);
}

.legal-page__header {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-page__header h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-page__intro {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.08rem;
}

.legal-page__updated {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.legal-content {
  color: var(--text);
}

.legal-content section {
  padding-block: 46px;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.45rem);
}

.legal-content p,
.legal-content li {
  max-width: 700px;
}

.legal-content a {
  color: var(--accent-dark);
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .home-hero,
  .home-index {
    width: min(calc(100% - (var(--gutter) * 2)), var(--reading));
  }

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

  .home-hero__content {
    max-width: var(--reading);
  }

  .home-hero__visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .home-hero {
    gap: 40px;
    padding-block: 58px 76px;
  }

  .home-hero h1 {
    margin-bottom: 30px;
    font-size: clamp(3.15rem, 14vw, 4.65rem);
  }

  .home-manifesto {
    font-size: 1.03rem;
  }

  .home-hero__visual {
    width: min(100%, 500px);
  }

  .home-index__header {
    display: block;
  }

  .home-index__header > p {
    margin: 16px 0 0;
  }

  .category-filters {
    margin-block: 30px 32px;
  }

  .category-chip {
    min-height: 44px;
  }

  .home-article-card__link {
    display: block;
    padding-block: 28px 31px;
  }

  .home-article-card h3 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
  }

  .home-article-card__action {
    display: inline-block;
    margin-top: 20px;
  }
}

/* 404
   ========================================================================== */

.not-found {
  min-height: calc(100svh - var(--header-height) - 132px);
  display: grid;
  place-items: center;
  padding-block: 72px;
}

.not-found__content {
  max-width: 620px;
}

.not-found__content p {
  color: var(--text);
}

.not-found__content a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .article-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    width: auto;
    height: calc(100dvh - var(--header-height));
    padding: 18px var(--gutter) 40px;
    border: 0;
    border-radius: 0;
    background: var(--paper);
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .article-nav__title,
  .article-nav__links {
    width: min(100%, var(--reading));
    margin-inline: auto;
  }

  .article-nav__title {
    padding: 22px 0 12px;
  }

  .article-nav a {
    width: 100%;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .article-nav a + a {
    border-top: 0;
  }

  .article-nav a:hover,
  .article-nav a:focus-visible,
  .article-nav a[aria-current="location"] {
    background: transparent;
    color: var(--accent-dark);
  }
}

/* Tablet: il menu resta un popover compatto; l'overlay è riservato agli
   smartphone, dove lo spazio orizzontale è realmente limitato. */
@media (min-width: 761px) and (max-width: 1024px) {
  .article-nav {
    position: absolute;
    inset: auto 0 auto auto;
    top: calc(100% + 10px);
    width: min(320px, calc(100vw - (var(--gutter) * 2)));
    height: auto;
    display: grid;
    padding: 8px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-menu);
    overflow: hidden;
    overscroll-behavior: auto;
  }

  .article-nav__title,
  .article-nav__links {
    width: auto;
    margin-inline: 0;
  }

  .article-nav__title {
    padding: 10px 16px 8px;
  }

  .article-nav a {
    width: auto;
    padding: 11px 16px;
    border-bottom: 0;
    color: var(--muted);
    font-size: 0.78rem;
  }

  .article-nav a + a {
    border-top: 1px solid rgba(220, 225, 220, 0.72);
  }

  .article-nav a:hover,
  .article-nav a:focus-visible,
  .article-nav a[aria-current="location"] {
    background: rgba(225, 240, 231, 0.58);
    color: var(--accent-dark);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 72px;
    --label-size: 0.66rem;
  }

  body {
    font-size: 17px;
  }

  .brand {
    gap: 10px;
  }

  .brand__badge {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__word {
    font-size: 1.58rem;
  }

  .article-header {
    padding: 58px 0 54px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .standfirst {
    font-size: 1.13rem;
  }

  .article-tools {
    margin-top: 25px;
  }

  .editorial-note {
    display: none;
  }

  .summary-card {
    padding: 30px 0 28px;
  }

  .summary-card::before {
    inset-inline: calc(var(--gutter) * -1);
  }

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

  .summary-grid > div,
  .summary-grid > div:nth-child(even) {
    padding: 15px 0;
    border-left: 0;
  }

  .article-section {
    padding-top: 36px;
  }

  .article-section--faq {
    padding-top: 50px;
  }

  .final-section {
    margin-top: 50px;
    padding: 46px 0 48px;
  }

  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .comparison-section {
    padding: 62px 0;
  }

  .table-scroll {
    max-width: none;
    margin-inline: calc(var(--gutter) * -1);
    overflow: visible;
    border-top: 0;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tr {
    padding: 20px 0;
    border-top: 1px solid var(--line);
  }

  .comparison-table th,
  .comparison-table td,
  .comparison-table th + td,
  .comparison-table td + td {
    padding: 6px var(--gutter);
    border: 0;
  }

  .comparison-table tbody th {
    width: auto;
    margin-bottom: 5px;
    font-size: 1rem;
  }

  .comparison-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: var(--label-size);
    font-weight: 700;
    letter-spacing: var(--label-spacing);
    text-transform: uppercase;
  }

  .comparison-table td.is-featured {
    margin-top: 8px;
    padding-block: 14px;
    background: var(--featured);
  }

  .comparison-table td:not(.is-featured) {
    padding-top: 14px;
    padding-bottom: 12px;
  }

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

@media (max-width: 420px) {
  .article-meta__primary {
    gap: 6px 12px;
  }

  .article-meta__reading::before {
    margin-right: 12px;
  }

  .primary-cta {
    width: 100%;
    padding-inline: 12px;
    font-size: 0.77rem;
  }

  .site-footer nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
}

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

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