/* ============================================================
   NOVA GROUP — Guide subdomain
   Design system mirror del sito principale novagroup.space
   ============================================================ */

:root {
  /* Palette (HSL → hex per riferimento)
     background  hsl(237 100% 8%)  = #000229
     foreground  hsl(0 0% 95%)     = #f2f2f2
     primary     hsl(73 91% 52%)   = #c8f02e (lime CTA)
     accent      hsl(192 100% 50%) = #00d2ff
     nova-blue   hsl(233 90% 36%)  = #0a32af
     muted       hsl(233 40% 18%)
     border      hsl(233 40% 20%)
     card        hsl(233 60% 12%)
  */
  --background: 237 100% 8%;
  --foreground: 0 0% 95%;
  --muted: 233 40% 18%;
  --muted-foreground: 220 15% 60%;
  --border: 233 40% 20%;
  --card: 233 60% 12%;
  --primary: 73 91% 52%;
  --primary-foreground: 237 100% 8%;
  --accent: 192 100% 50%;
  --nova-blue: 233 90% 36%;

  --gradient-hero: linear-gradient(135deg, hsl(237 100% 8%) 0%, hsl(233 90% 36%) 100%);
  --gradient-cta: linear-gradient(135deg, hsl(233 90% 36%) 0%, hsl(192 100% 50%) 100%);

  --radius: 0.75rem;
  --header-h: 92px;

  --font-sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Safety net globale: nessun elemento può causare overflow orizzontale */
html, body { overflow-x: hidden; max-width: 100%; }
.container { overflow-x: visible; min-width: 0; }

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

::selection { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ----------------------------------------------------------------
   Header / Nav
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsla(237, 100%, 8%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  height: var(--header-h);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img { height: 28px; width: auto; }

.nav__menu {
  display: none;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) { .nav__menu { display: flex; } }

.nav__menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}
.nav__menu a:hover { color: hsl(var(--foreground)); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.nav__cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

.nav__mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  cursor: pointer;
}
@media (min-width: 1024px) { .nav__mobile-toggle { display: none; } }

.nav__mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
}
.nav__mobile-menu.is-open { display: flex; }
.nav__mobile-menu a {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
}
.nav__mobile-menu a:hover { background: hsl(var(--muted)); }

/* ----------------------------------------------------------------
   Page layout
   ---------------------------------------------------------------- */
main { padding-top: var(--header-h); min-height: calc(100vh - var(--header-h)); }

.hero {
  padding: 4rem 0 3rem;
  background: var(--gradient-hero);
  border-bottom: 1px solid hsl(var(--border));
  overflow: hidden;
  max-width: 100%;
}
.hero__breadcrumb {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.hero__breadcrumb a { color: hsl(var(--accent)); }
.hero__breadcrumb a:hover { text-decoration: underline; }
.hero__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: hsla(192, 100%, 50%, 0.12);
  color: hsl(var(--accent));
  border: 1px solid hsla(192, 100%, 50%, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero__desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 720px;
  margin: 0;
}
.hero__meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Article (guide content)
   ---------------------------------------------------------------- */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  padding: 3rem 0 5rem;
}
@media (min-width: 1024px) {
  .article-wrap { grid-template-columns: minmax(0, 1fr) 240px; }
}

.article {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
  max-width: 760px;
  min-width: 0;
  width: 100%;
}
.article h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.article h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.article h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.article p { margin: 1rem 0; }
.article strong { color: hsl(var(--foreground)); font-weight: 700; }
.article em { color: hsl(var(--foreground)); }
.article a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: hsla(192, 100%, 50%, 0.4);
}
.article a:hover { text-decoration-color: hsl(var(--accent)); }
.article ul, .article ol { padding-left: 1.5rem; margin: 1rem 0; }
.article li { margin: 0.5rem 0; }
.article blockquote {
  border-left: 3px solid hsl(var(--primary));
  background: hsla(73, 91%, 52%, 0.06);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  color: hsl(var(--foreground));
  font-style: italic;
}
.article code {
  background: hsl(var(--muted));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
.article pre {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
.article pre code { background: none; padding: 0; }
.article hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 2.5rem 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article th, .article td {
  border-bottom: 1px solid hsl(var(--border));
  padding: 0.75rem 0.5rem;
  text-align: left;
}
.article th {
  background: hsla(233, 60%, 12%, 0.6);
  font-weight: 700;
  color: hsl(var(--foreground));
}
.article img { border-radius: var(--radius); margin: 1.5rem 0; }
.article .headerlink {
  margin-left: 0.5rem;
  opacity: 0;
  font-size: 0.85em;
  color: hsl(var(--accent));
  text-decoration: none;
}
.article h2:hover .headerlink,
.article h3:hover .headerlink,
.article h4:hover .headerlink { opacity: 1; }

/* TOC sidebar */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  align-self: start;
  padding: 1.25rem;
  background: hsla(233, 60%, 12%, 0.4);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  max-height: calc(100vh - var(--header-h) - 2rem);
  overflow-y: auto;
}
.toc__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem;
}
.toc ul { list-style: none; padding-left: 0.75rem; margin: 0; }
.toc > ul { padding-left: 0; }
.toc li { margin: 0.4rem 0; }
.toc a {
  color: hsl(var(--muted-foreground));
  display: block;
  padding: 0.125rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
  transition: all 0.15s ease;
}
.toc a:hover { color: hsl(var(--foreground)); border-left-color: hsl(var(--accent)); }

/* ----------------------------------------------------------------
   Index / homepage delle guide
   ---------------------------------------------------------------- */
.index-hero {
  padding: 6rem 0 4rem;
  background: var(--gradient-hero);
  border-bottom: 1px solid hsl(var(--border));
  text-align: center;
}
.index-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.index-hero p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  max-width: 640px;
  margin: 0 auto;
}

.index-grid { padding: 4rem 0 5rem; }
.index-cat__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--accent));
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid hsl(var(--border));
}
.index-cat { margin-bottom: 3rem; }
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--accent));
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
  flex-grow: 1;
}
.card__meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: hsl(var(--muted-foreground));
}

/* ----------------------------------------------------------------
   Landing page (index)
   ---------------------------------------------------------------- */

.lp-hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: hsl(var(--background));
}
@media (min-width: 768px) { .lp-hero { padding: 10rem 0 8rem; } }

.lp-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, hsla(233, 90%, 36%, 0.6) 0%, transparent 60%),
    radial-gradient(50% 60% at 80% 30%, hsla(192, 100%, 50%, 0.18) 0%, transparent 65%),
    radial-gradient(70% 60% at 50% 100%, hsla(73, 91%, 52%, 0.10) 0%, transparent 65%),
    var(--gradient-hero);
  z-index: 0;
}
.lp-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(0, 0%, 100%, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.lp-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 920px;
}

.lp-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: hsla(192, 100%, 50%, 0.12);
  color: hsl(var(--accent));
  border: 1px solid hsla(192, 100%, 50%, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.lp-tag--accent {
  background: hsla(73, 91%, 52%, 0.12);
  color: hsl(var(--primary));
  border-color: hsla(73, 91%, 52%, 0.35);
}

.lp-hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.lp-hero__accent {
  background: var(--gradient-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-hero__lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: hsl(var(--muted-foreground));
  max-width: 720px;
  margin: 0 auto 2.5rem;
}
@media (min-width: 768px) { .lp-hero__lead { font-size: 1.375rem; } }

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}
.lp-btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 24px -8px hsla(73, 91%, 52%, 0.5);
}
.lp-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px hsla(73, 91%, 52%, 0.6);
}
.lp-btn--ghost {
  background: hsla(0, 0%, 100%, 0.06);
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  backdrop-filter: blur(8px);
}
.lp-btn--ghost:hover {
  background: hsla(0, 0%, 100%, 0.1);
  border-color: hsl(var(--accent));
}
.lp-btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.0625rem;
  border-radius: 0.75rem;
}

/* Sections */
.lp-section {
  padding: 5rem 0;
  border-top: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .lp-section { padding: 7rem 0; } }
.lp-section--alt { background: hsla(233, 60%, 12%, 0.4); }
.lp-section--cta {
  text-align: center;
  background:
    radial-gradient(80% 80% at 50% 0%, hsla(233, 90%, 36%, 0.3) 0%, transparent 70%),
    hsl(var(--background));
}
.lp-section--cta h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.lp-section--cta p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
}
.lp-cta__note {
  font-size: 0.9375rem !important;
  margin-top: 2rem !important;
}
.lp-cta__note a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.lp-section__head h2,
.lp-section h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1rem;
}
.lp-section__head p {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Categorie grid */
.lp-cat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) { .lp-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lp-cat-grid { grid-template-columns: repeat(4, 1fr); } }

.lp-cat {
  padding: 2rem 1.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}
.lp-cat:hover {
  transform: translateY(-3px);
  border-color: hsla(192, 100%, 50%, 0.5);
}
.lp-cat__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: hsl(var(--accent));
  margin-bottom: 1rem;
  font-feature-settings: "tnum";
}
.lp-cat h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.lp-cat p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}

/* Features */
.lp-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) { .lp-features { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

.lp-feature {
  padding-left: 1.25rem;
  border-left: 2px solid hsl(var(--primary));
}
.lp-feature h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.lp-feature p {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  line-height: 1.65;
}

/* Access */
.lp-access {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.lp-access h2 { margin-top: 1rem; }
.lp-access p {
  font-size: 1.0625rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  margin: 1rem 0;
}
.lp-access a {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-url-card {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.875rem 1.5rem;
  margin: 1.5rem 0;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 1rem;
  color: hsl(var(--foreground));
}
.lp-url-card__protocol { color: hsl(var(--muted-foreground)); }
.lp-url-card strong { color: hsl(var(--foreground)); font-weight: 700; }
.lp-url-card__slug { color: hsl(var(--primary)); font-weight: 600; }

/* ----------------------------------------------------------------
   Article — figures, infografiche, placeholder
   ---------------------------------------------------------------- */

.article figure {
  margin: 2rem 0;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}
.article figure img,
.article figure svg {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}
.article figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}
.article figcaption strong {
  color: hsl(var(--foreground));
  font-style: normal;
  display: block;
  margin-bottom: 0.25rem;
}

.article .infografica {
  margin: 2.5rem 0;
  padding: 1.25rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.article .infografica__head {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}
.article .infografica img,
.article .infografica svg {
  border: none;
  background: transparent;
  margin: 0;
}

.article .placeholder-asset {
  margin: 2rem 0;
  padding: 2.5rem 1.5rem;
  background: hsla(73, 91%, 52%, 0.05);
  border: 2px dashed hsla(73, 91%, 52%, 0.4);
  border-radius: var(--radius);
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}
.article .placeholder-asset strong {
  display: block;
  color: hsl(var(--primary));
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.article .callout {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: hsla(192, 100%, 50%, 0.06);
  border: 1px solid hsla(192, 100%, 50%, 0.3);
  border-left: 3px solid hsl(var(--accent));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article .callout--warning {
  background: hsla(73, 91%, 52%, 0.06);
  border-color: hsla(73, 91%, 52%, 0.3);
  border-left-color: hsl(var(--primary));
}
.article .callout--risk {
  background: hsla(0, 84%, 60%, 0.06);
  border-color: hsla(0, 84%, 60%, 0.3);
  border-left-color: hsl(var(--destructive));
}
.article .callout p:first-child { margin-top: 0; }
.article .callout p:last-child { margin-bottom: 0; }
.article .callout__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--accent));
  margin-bottom: 0.5rem;
}
.article .callout--warning .callout__label { color: hsl(var(--primary)); }
.article .callout--risk .callout__label { color: hsl(var(--destructive)); }

/* ----------------------------------------------------------------
   "Chi è Nova" section
   ---------------------------------------------------------------- */

.lp-about {
  max-width: 1000px;
  margin: 0 auto;
}

.lp-about__statement {
  max-width: 820px;
  margin: 0 auto 3rem;
  text-align: left;
}
.lp-about__statement p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: hsl(var(--foreground));
  margin: 0 0 1.25rem;
}
.lp-about__statement p:last-child { margin-bottom: 0; }
.lp-about__statement strong { color: hsl(var(--foreground)); font-weight: 700; }

.lp-about__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .lp-about__pillars { grid-template-columns: repeat(2, 1fr); } }

.lp-pillar {
  padding: 1.5rem 1.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.lp-pillar__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--accent));
  margin-bottom: 0.625rem;
}
.lp-pillar p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  margin: 0;
}

.lp-about__cta {
  text-align: center;
  margin-top: 2rem;
}
.lp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--accent));
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid hsla(192, 100%, 50%, 0.4);
  padding-bottom: 2px;
  transition: all 0.18s ease;
}
.lp-link-arrow:hover {
  color: hsl(var(--primary));
  border-bottom-color: hsl(var(--primary));
}

/* ----------------------------------------------------------------
   Cookie banner
   ---------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  box-shadow: 0 -8px 32px hsla(0, 0%, 0%, 0.4);
  animation: cookie-slide-up 0.35s ease-out;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}
@media (min-width: 768px) {
  .cookie-banner__inner {
    padding: 1.25rem 2rem;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

.cookie-banner__text {
  flex: 1;
}
.cookie-banner__title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--accent));
  margin: 0 0 0.5rem;
}
.cookie-banner__desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
  margin: 0;
}
.cookie-banner__desc a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__desc a:hover { color: hsl(var(--accent)); }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.cookie-btn--ghost {
  background: transparent;
  color: hsl(var(--foreground));
}
.cookie-btn--ghost:hover { background: hsl(var(--muted)); }
.cookie-btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}
.cookie-btn--primary:hover { filter: brightness(1.08); }

body.has-cookie-banner { padding-bottom: 140px; }
@media (min-width: 768px) { body.has-cookie-banner { padding-bottom: 90px; } }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.footer {
  background: hsl(var(--background));
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); } }

.footer__brand {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 1rem;
}
.footer__address {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin: 0;
}
.footer__col-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}
.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.footer__links a {
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}
.footer__links a:hover { color: hsl(var(--foreground)); }

.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: hsl(var(--muted));
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  transition: background 0.15s ease;
}
.footer__social a:hover { background: hsl(var(--nova-blue)); }
.footer__social svg { width: 20px; height: 20px; }

.footer__bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 2rem;
}
.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}
.footer__legal-links a {
  color: hsl(var(--muted-foreground));
}
.footer__legal-links a:hover { color: hsl(var(--foreground)); }

.footer__disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   Responsive refinements — mobile / tablet / notebook
   ---------------------------------------------------------------- */

/* MOBILE first: testo più compatto, hero ridotto, padding contenuti più stretti */
@media (max-width: 767px) {
  /* Article body — font-size LEGGIBILE su mobile */
  .article {
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 100%;
    width: 100%;
    min-width: 0;
  }
  .article h2 {
    font-size: 1.625rem;
    margin-top: 2.25rem;
    line-height: 1.2;
  }
  .article h3 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    line-height: 1.25;
  }
  .article h4 {
    font-size: 1.0625rem;
    margin-top: 1.25rem;
  }
  .article p {
    margin: 0.875rem 0;
  }

  /* Article wrap padding ridotto */
  .article-wrap {
    padding: 1.5rem 0 3rem;
    gap: 2rem;
  }

  /* Container con padding laterale generoso per leggibilità */
  .container {
    padding: 0 1.25rem;
  }

  /* Hero in mobile: padding ridotto, font-size H1 contenuto, header fisso considerato */
  .hero {
    padding: 6.5rem 0 2rem;
  }
  .hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
  }
  .hero__desc {
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero__meta {
    gap: 0.75rem;
    font-size: 0.8125rem;
    flex-wrap: wrap;
  }
  .hero__breadcrumb {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .hero__category {
    font-size: 0.6875rem;
    padding: 0.2rem 0.6rem;
  }

  /* Tabelle: scroll orizzontale su mobile per evitare overflow del layout */
  .article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    white-space: nowrap;
  }
  .article th, .article td {
    padding: 0.625rem 0.625rem;
    font-size: 0.875rem;
  }

  /* Callout padding ridotto su mobile */
  .article .callout {
    padding: 1rem 1.125rem;
    margin: 1.25rem 0;
  }

  /* CTA buttons full-width su mobile, riducono il rischio di overflow del testo */
  .article .lp-btn,
  .lp-btn {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }
  .article .lp-btn--lg,
  .lp-btn--lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  /* Pre/code: font-size leggermente ridotto */
  .article pre {
    font-size: 0.8125rem;
    padding: 0.875rem;
  }

  /* Figure: caption più piccola */
  .article figcaption {
    font-size: 0.8125rem;
  }

  /* Blockquote padding ridotto */
  .article blockquote {
    padding: 0.875rem 1rem;
    margin: 1.25rem 0;
  }
}

/* TABLET: layout intermedio (480-1023px) — la sidebar TOC resta nascosta sotto i 1024px,
   ma il contenuto sfrutta più spazio orizzontale rispetto al mobile */
@media (min-width: 480px) and (max-width: 1023px) {
  .article {
    font-size: 1.0625rem;
  }
  .article h2 {
    font-size: 1.75rem;
  }
  .article h3 {
    font-size: 1.3rem;
  }
  .article-wrap {
    padding: 2rem 0 4rem;
  }
}

/* TABLET landscape / NOTEBOOK piccolo: 768-1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding: 7rem 0 3.5rem;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
  }
}

/* NOTEBOOK / DESKTOP: TOC sidebar attiva da 1024px (già in CSS),
   ottimizziamo lo spazio tipografico */
@media (min-width: 1024px) {
  .article {
    font-size: 1.0625rem;
  }
}

/* LARGE DESKTOP (≥1440px): max-width più generoso, ma article resta leggibile */
@media (min-width: 1440px) {
  .article {
    max-width: 820px;
  }
  .article h2 {
    font-size: 2rem;
  }
}

/* Figure / SVG: sempre fluid, viewBox scala (già garantito da img,svg {max-width:100%}).
   Aggiungiamo background coerente con il dark theme per i SVG dentro figure. */
.article figure img,
.article figure svg {
  width: 100%;
  height: auto;
}

/* Motion graphics: rispettiamo prefers-reduced-motion globalmente sul sito */
@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;
  }
}

/* ----------------------------------------------------------------
   Print
   ---------------------------------------------------------------- */
@media print {
  .nav, .footer, .toc, .nav__mobile-menu { display: none !important; }
  main { padding-top: 0; }
  body { background: white; color: black; }
  .article a { color: inherit; text-decoration: none; }
}
