/* MAX WANTED — pagine articolo ed elenchi (generate da scripts/build.mjs) */
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #170722; font-weight: 700; }
.skip:focus { top: 12px; }
.nav--solid { background: rgba(10, 6, 18, .72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); padding-top: 14px; padding-bottom: 14px; box-shadow: 0 1px 0 var(--line); }
.page .footer { margin-top: 40px; }

/* ---------- testata articolo ---------- */
.post { position: relative; }
.post::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 70% 0%, rgba(255, 46, 136, .26), transparent 70%), radial-gradient(60% 50% at 10% 10%, rgba(123, 47, 247, .25), transparent 70%);
}
.post__head { max-width: 1000px; margin: 0 auto; padding: 150px var(--pad) 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.post__title { margin: 18px 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 5.8rem); line-height: .95; text-transform: uppercase; text-wrap: balance; }
.post__dek { margin: 0; max-width: 780px; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.45; color: rgba(251, 243, 234, .86); }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.post__meta b { color: var(--ink); }
.share { padding: 7px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; cursor: pointer; }
.share:hover { background: rgba(255, 255, 255, .14); }
.post__cover { max-width: 1240px; margin: 10px auto 0; padding: 0 var(--pad); }
.post__cover img { width: 100%; height: auto; border-radius: 26px; box-shadow: 0 40px 120px -40px rgba(255, 46, 136, .45), inset 0 0 0 1px var(--line); }

.post__langs { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.post__langs a { color: var(--gold); }
.post__langs a:hover { color: var(--pink); }

/* ---------- corpo + colonna laterale ---------- */
.post__layout { max-width: 1240px; margin: 0 auto; padding: 56px var(--pad) 30px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.post__body { min-width: 0; max-width: 760px; }
.post__layout--single { grid-template-columns: minmax(0, 760px); justify-content: center; padding-top: 10px; }
.post__aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-box { padding: 22px; border-radius: 20px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.aside-box__title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); }
.aside-box__note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.aside-count__time { margin: 0; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: rgba(251, 243, 234, .7); }
.aside-count__time b { font-weight: 400; color: var(--ink); }
.aside-tool { display: block; background: radial-gradient(120% 120% at 100% 0%, rgba(255, 46, 136, .2), transparent 60%), var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 46, 136, .4); transition: box-shadow .4s var(--ease); }
.aside-tool:hover { box-shadow: inset 0 0 0 1px var(--pink), 0 20px 60px -30px rgba(255, 46, 136, .6); }
.aside-tool__title { margin: 0 0 12px; font-family: var(--display); font-size: 1.7rem; line-height: 1.02; text-transform: uppercase; color: var(--ink); }
.aside-tool__cta { font-size: 14px; font-weight: 700; color: var(--pink); }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aside-list a { display: block; font-weight: 600; line-height: 1.3; }
.aside-list a:hover { color: var(--pink); }
.aside-list time { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }

/* ---------- testo ---------- */
.prose { font-size: 18px; line-height: 1.72; color: rgba(251, 243, 234, .9); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 .6em; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.02; text-transform: uppercase; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.3rem; line-height: 1.3; color: var(--ink); }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 209, 102, .45); text-underline-offset: 3px; transition: color .2s; }
.prose a:hover { color: var(--pink); }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--pink); font-size: 1.1em; color: var(--ink); }
.prose hr { margin: 2.4em 0; border: 0; height: 1px; background: var(--line); }
.prose img { max-width: 100%; height: auto; border-radius: 18px; }
.table-wrap { margin: 1.6em 0; overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .03); }
.prose tr:last-child td { border-bottom: 0; }

.keyfacts { margin: 0 0 2em; padding: 24px 28px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 209, 102, .1), rgba(255, 46, 136, .06)); box-shadow: inset 0 0 0 1px rgba(255, 209, 102, .35); }
.keyfacts__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px !important; font-family: var(--display); font-size: 1.4rem; text-transform: uppercase; color: var(--gold); }
.keyfacts__title svg { width: 20px; height: 20px; fill: var(--gold); }
.keyfacts ul { margin: 0; }
.toc { margin: 0 0 2em; padding: 20px 26px; border-radius: 18px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; }
.toc__title { margin: 0 0 6px !important; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--pink); }

/* ---------- video (si carica solo al clic) ---------- */
.yt { margin: 2em 0; }
.yt__btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; cursor: pointer; box-shadow: inset 0 0 0 1px var(--line); }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .7s var(--ease), filter .7s; }
.yt__btn:hover img { transform: scale(1.03); filter: brightness(1.12); }
.yt__play { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; translate: -50% -50%; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 12px 50px rgba(255, 46, 136, .6); transition: scale .4s var(--ease); }
.yt__play::after { content: ""; position: absolute; left: 36px; top: 28px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #170722; }
.yt__btn:hover .yt__play { scale: 1.1; }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; }
.yt figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ---------- foto ufficiali nel testo ([[photo:...]]) ---------- */
.photo { margin: 2em 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: 20px; background: var(--night-2); box-shadow: 0 30px 80px -40px rgba(255, 46, 136, .5), inset 0 0 0 1px var(--line); }
.photo figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.photo figcaption span { white-space: nowrap; opacity: .75; }

/* ---------- faq, fonti, invito ---------- */
.post__faq details { border-bottom: 1px solid var(--line); }
.post__faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.post__faq summary::-webkit-details-marker { display: none; }
.post__faq summary::after { content: "+"; flex: 0 0 auto; font-size: 22px; line-height: 1; color: var(--pink); transition: transform .4s var(--ease); }
.post__faq details[open] summary::after { transform: rotate(45deg); }
.post__faq details p { margin: 0 0 18px; }
.post__sources ol { font-size: 15px; line-height: 1.6; }
.post__sources span { color: var(--muted); }
.post__cta { margin-top: 3em; padding: 32px; border-radius: 26px; background: radial-gradient(120% 120% at 100% 0%, rgba(255, 46, 136, .25), transparent 60%), var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 46, 136, .35); }
.post__cta-title { margin: 0 0 6px !important; font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--ink); }
.post__cta .btn { margin-top: 8px; text-decoration: none; color: #170722; }

/* ---------- correlati ed elenchi ---------- */
.related { max-width: 1240px; margin: 0 auto; padding: 40px var(--pad) 60px; }
.related__title { margin: 0 0 32px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; text-transform: uppercase; }
.listing { max-width: 1320px; margin: 0 auto; padding: 150px var(--pad) 60px; }
.listing__head { margin-bottom: 44px; }
.listing__head .h2 { font-size: clamp(3.2rem, 8vw, 7rem); }
.listing__intro { max-width: 680px; margin: 18px 0 26px; font-size: 18px; color: var(--muted); }
.listing__back { display: inline-block; margin-bottom: 18px; font-weight: 700; color: var(--pink); }
.listing__back:hover { color: var(--ink); }
.listing__block { margin-bottom: 56px; }
.listing > .tiles--compact { margin-bottom: 48px; }
.listing__h { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; text-transform: uppercase; }
.listing__h svg { width: 30px; height: 30px; fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1000px) {
  .post__layout { grid-template-columns: 1fr; gap: 30px; }
  .post__aside { position: static; }
}
@media (max-width: 700px) {
  .post__head { padding-top: 120px; }
  .prose { font-size: 17px; }
  .keyfacts { padding: 20px; }
  .post__cover img { border-radius: 18px; }
  .listing { padding-top: 120px; }
}

/* riquadro del quiz nella colonna laterale */
.aside-quiz { background: radial-gradient(120% 120% at 100% 0%, rgba(60, 120, 255, .22), transparent 60%), radial-gradient(120% 120% at 0% 100%, rgba(255, 46, 136, .18), transparent 60%), var(--night-2); box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .45); }
.aside-quiz:hover { box-shadow: inset 0 0 0 1px #60a5fa, 0 20px 60px -30px rgba(96, 165, 250, .6); }
.aside-quiz .aside-box__title { color: #60a5fa; }
