/* Vivipedia 28.6 RC25 — pagine centrali ricomposte
   Unifica il volto delle pagine principali e nasconde i blocchi storici di cantiere.
   Non modifica funzioni, sessioni, pagamenti, API o contenuti protetti. */

body.v286-core-page {
  --v286-page-max: 1180px;
  --v286-page-gutter: clamp(1rem, 4vw, 2rem);
  --v286-surface: rgba(255, 253, 247, .88);
  --v286-surface-strong: #fffdf7;
  --v286-border: var(--v242-line, rgba(20, 36, 31, .16));
  --v286-ink: var(--v242-ink, #14241f);
  --v286-muted: #5d6b63;
  --v286-sage: var(--v242-sage, #405e4a);
  --v286-clay: var(--v242-clay, #b96f4a);
  --v286-gold: var(--v242-oro, #d8a63f);
  --v286-serif: var(--v242-serif, Georgia, "Times New Roman", serif);
}

.v286-core-page main {
  overflow: clip;
  padding-bottom: clamp(2rem, 6vw, 5rem);
}

.v286-core-page .hero:not(.v240-hero):not(.v201-store-hero),
.v286-core-page .v242-page-intro {
  position: relative;
  max-width: var(--v286-page-max);
  margin: 1.35rem auto 1rem;
  padding: clamp(2rem, 5vw, 4.2rem) var(--v286-page-gutter);
  overflow: hidden;
  border: 1px solid var(--v286-border);
  border-radius: clamp(1.75rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 86% 8%, rgba(216, 166, 63, .18), transparent 21rem),
    linear-gradient(135deg, rgba(255, 253, 247, .98), rgba(243, 234, 216, .88) 55%, rgba(223, 234, 222, .78));
  box-shadow: 0 24px 70px rgba(20, 36, 31, .09);
}

.v286-core-page .hero:not(.v240-hero):not(.v201-store-hero)::after,
.v286-core-page .v242-page-intro::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(64, 94, 74, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 3.2rem rgba(64, 94, 74, .04), 0 0 0 6.4rem rgba(185, 111, 74, .025);
  pointer-events: none;
}

.v286-core-page .hero:not(.v240-hero):not(.v201-store-hero) > *,
.v286-core-page .v242-page-intro > * {
  position: relative;
  z-index: 1;
}

.v286-core-page .hero h1,
.v286-core-page .v242-page-intro h1 {
  max-width: 17ch;
  margin: .65rem 0 1rem;
  color: var(--v286-ink);
  font-family: var(--v286-serif);
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.v286-core-page .hero > p,
.v286-core-page .v242-page-intro p {
  max-width: 68ch;
  color: var(--v286-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.v286-core-page .kicker,
.v286-core-page .v242-badge,
.v286-core-page .v280-kicker,
.v286-core-page .v282-overline,
.v286-core-page .v284-kicker {
  letter-spacing: .11em;
}

.v286-core-page .btn {
  min-height: 44px;
}

/* Guide: la promessa viene prima della selezione editoriale. */
.v286-core-guides .v283-route-feature {
  margin-top: 0;
  margin-bottom: 2.25rem;
}

.v286-core-guides .v283-route-feature-inner {
  box-shadow: 0 18px 48px rgba(20, 36, 31, .055);
}

/* Percorsi: un'unica famiglia di pannelli, senza aspetto da pagina tecnica. */
.v286-core-paths main > .section {
  max-width: var(--v286-page-max);
  margin: 1rem auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--v286-page-gutter);
  border: 1px solid var(--v286-border);
  border-radius: 1.75rem;
  background: var(--v286-surface);
  box-shadow: 0 16px 46px rgba(20, 36, 31, .055);
}

.v286-core-paths main > .section > h2,
.v286-core-account #v235Dashboard > .section > h2,
.v286-core-space #v235Dashboard > .section > h2 {
  margin-top: 0;
  color: var(--v286-ink);
  font-family: var(--v286-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.v286-core-paths select,
.v286-core-account input,
.v286-core-account select,
.v286-core-account textarea {
  min-height: 46px;
  border-color: var(--v286-border);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .9);
}

.v286-core-paths .grid > .card,
.v286-core-paths .list > .card {
  border-top: 4px solid var(--v286-sage);
}

/* Kit: una sola introduzione e solo lo scaffale utile all'utente. */
.v286-core-kits .v253-inserted,
.v286-core-kits .v241-page-hero,
.v286-core-kits .v240-hero,
.v286-core-kits .v201-store-hero,
.v286-core-kits .v201-path,
.v286-core-kits .v185-kit-clarity,
.v286-core-kits .v203-bridge-note,
.v286-core-kits .v210-home-asset,
.v286-core-kits .v214-commerce-note,
.v286-core-kits .v238-commercial-section,
.v286-core-kits .v258-onboarding-strip,
.v286-core-kits .v264-product-bridge,
.v286-core-kits .v265-library-public,
.v286-core-kits .v266-product-strip,
.v286-core-kits .v267-choice-bridge,
.v286-core-kits .v268-plan-strip,
.v286-core-kits .v269-assurance {
  display: none !important;
}

.v286-core-kits .v242-page-intro .v242-section-title {
  align-items: end;
  margin: 0;
}

.v286-core-kits main > .section:not(.v242-page-intro) {
  max-width: var(--v286-page-max);
  margin: 1rem auto;
  padding: clamp(1.25rem, 3vw, 2rem) var(--v286-page-gutter);
  border: 1px solid var(--v286-border);
  border-radius: 1.75rem;
  background: var(--v286-surface);
  box-shadow: 0 16px 46px rgba(20, 36, 31, .05);
}

.v286-core-kits .v241-kit-shelf,
.v286-core-kits .v201-shelf .grid {
  gap: 1rem;
}

.v286-core-kits .v241-kit-card,
.v286-core-kits .v201-shelf .card {
  border-radius: 1.35rem;
  box-shadow: none;
}

.v286-core-kits .v201-shelf:nth-of-type(even) {
  background: linear-gradient(135deg, rgba(223, 234, 222, .62), rgba(255, 253, 247, .92));
}

/* Area utente: dashboard e profilo restano; i ponti di release spariscono. */
.v286-core-account .v268-after-buy,
.v286-core-account .v265-account-library,
.v286-core-account .v254-account-bridge,
.v286-core-account .v258-onboarding-strip,
.v286-core-account .v264-product-bridge,
.v286-core-account .v269-assurance {
  display: none !important;
}

.v286-core-account #login-required,
.v286-core-account #protected-area,
.v286-core-account #v235Dashboard {
  max-width: var(--v286-page-max);
  margin-right: auto;
  margin-left: auto;
}

.v286-core-account #v235Dashboard > .section,
.v286-core-space #v235Dashboard > .section,
.v286-core-space #v235LoggedOut {
  margin: 1rem 0;
  padding: clamp(1.2rem, 3vw, 1.9rem);
  border: 1px solid var(--v286-border);
  border-radius: 1.6rem;
  background: var(--v286-surface);
  box-shadow: 0 14px 38px rgba(20, 36, 31, .045);
}

.v286-core-account #v235Dashboard > .section:nth-child(even),
.v286-core-space #v235Dashboard > .section:nth-child(even) {
  background: linear-gradient(135deg, rgba(223, 234, 222, .58), rgba(255, 253, 247, .94));
}

.v286-core-account .danger-zone {
  border-color: rgba(185, 111, 74, .24);
}

/* Mio spazio: una sola apertura, poi quaderni e dashboard reale. */
.v286-core-space .v241-page-hero,
.v286-core-space .v241-desktop-board,
.v286-core-space .v240-hero,
.v286-core-space .v235-hero,
.v286-core-space .v286-history-note {
  display: none !important;
}

.v286-core-space .v242-page-intro {
  margin-bottom: 1rem;
}

.v286-core-space .v284-space {
  max-width: var(--v286-page-max);
  margin: 1rem auto;
  padding: 0 var(--v286-page-gutter);
}

.v286-core-space #v235LoggedOut,
.v286-core-space #v235Dashboard {
  max-width: var(--v286-page-max);
  margin-right: auto;
  margin-left: auto;
}

/* Archivio: navigazione leggibile e categorie come sezioni editoriali, non muri di card. */
.v286-core-archive .archive-hero {
  margin-bottom: 1.25rem;
}

.v286-core-archive .archive-hero h1 {
  max-width: 20ch;
}

.v286-core-archive .article-toc {
  max-height: 12rem;
  margin-top: 1.35rem;
  padding: .75rem;
  overflow: auto;
  border: 1px solid var(--v286-border);
  border-radius: 1.25rem;
  background: rgba(255, 253, 247, .76);
  scrollbar-width: thin;
}

.v286-core-archive .article-toc .btn {
  min-height: 38px;
  padding: .55rem .75rem;
  box-shadow: none;
}

.v286-core-archive .v282-path,
.v286-core-archive #v236-editorial-entry,
.v286-core-archive main > .section:not(.article-area) {
  max-width: var(--v286-page-max);
  margin: 1rem auto;
}

.v286-core-archive .v282-path {
  border: 1px solid var(--v286-border);
  border-radius: 1.75rem;
  background: linear-gradient(135deg, rgba(223, 234, 222, .72), rgba(255, 253, 247, .94));
  box-shadow: 0 18px 48px rgba(20, 36, 31, .055);
}

.v286-core-archive .article-area {
  max-width: var(--v286-page-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--v286-page-gutter);
  border: 0;
  border-top: 1px solid var(--v286-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.v286-core-archive .article-area .section-head {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(18rem, 1.2fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
}

.v286-core-archive .article-area .section-head h2 {
  margin: .35rem 0 0;
  color: var(--v286-ink);
  font-family: var(--v286-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.v286-core-archive .article-area .section-head p {
  margin: 0;
  color: var(--v286-muted);
  line-height: 1.6;
}

.v286-core-archive .article-area .card {
  border-radius: 1.35rem;
  box-shadow: 0 12px 34px rgba(20, 36, 31, .04);
}

.v286-core-archive .article-area .card:hover,
.v286-core-archive .article-area .card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(64, 94, 74, .36);
  box-shadow: 0 18px 42px rgba(20, 36, 31, .08);
}

@media (max-width: 820px) {
  .v286-core-page .hero:not(.v240-hero):not(.v201-store-hero),
  .v286-core-page .v242-page-intro {
    margin-top: .75rem;
  }

  .v286-core-kits .v242-page-intro .v242-section-title,
  .v286-core-archive .article-area .section-head {
    display: block;
  }

  .v286-core-kits .v242-page-intro .v242-section-title p,
  .v286-core-archive .article-area .section-head p {
    margin-top: 1rem;
  }

  .v286-core-archive .article-toc {
    display: flex;
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .v286-core-archive .article-toc .btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .v286-core-page .hero h1,
  .v286-core-page .v242-page-intro h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .v286-core-page .actions {
    align-items: stretch;
  }

  .v286-core-page .actions .btn {
    width: 100%;
    justify-content: center;
  }

  .v286-core-paths main > .section,
  .v286-core-kits main > .section:not(.v242-page-intro),
  .v286-core-account #v235Dashboard > .section,
  .v286-core-space #v235Dashboard > .section,
  .v286-core-space #v235LoggedOut {
    border-radius: 1.25rem;
  }

  .v286-core-archive .article-area {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v286-core-archive .article-area .card {
    transition: none;
  }

  .v286-core-archive .article-area .card:hover {
    transform: none;
  }
}

/* Le categorie molto lunghe dell'archivio vengono renderizzate quando entrano nel viewport. */
.v286-core-archive .article-area {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
