/* ============ RESET & VARIABILI ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFD60A;
  --yellow-soft: #FFF3B0;
  --black: #0A0A0A;
  --white: #FAFAF7;
  --gray: #6B6B6B;
  --gray-light: #E8E8E4;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.serif-italic { font-family: 'Libre Caslon Text', Georgia, serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'Inter Tight', sans-serif; }

/* ============ GRAIN OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ============ NAVIGATION ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--black); }

.logo {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot {
  width: 12px; height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--black);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--yellow);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--black);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  border-radius: 100px;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--yellow); color: var(--black); }

.menu-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 200;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  margin: 4px 0;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--black);
    padding: 100px 32px 40px;
    margin: 0;
    z-index: 150;
    gap: 0;
    overflow-y: auto;
  }
  .nav-links.open li {
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 18px 0;
  }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-links.open a {
    color: var(--white);
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 32px;
    letter-spacing: -0.01em;
    display: block;
    padding: 4px 0;
  }
  .nav-links.open a::after { display: none; }
  .nav-links.open a:hover { color: var(--yellow); }

  body.menu-open { overflow: hidden; }
}

/* ============ BOTTONI ============ */
.btn {
  padding: 16px 28px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* ============ PAGE HERO ============ */
.page-hero {
  padding: 160px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  top: 20%;
  right: -15%;
  width: 500px; height: 500px;
  background: var(--yellow);
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.35;
  z-index: 0;
}
.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--gray);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--black); }
.breadcrumb .current { color: var(--black); }

.page-eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
}

.page-title {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 1000px;
}
.page-title em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.page-title .highlight {
  background: var(--yellow);
  padding: 0 12px;
  display: inline-block;
  transform: rotate(-1deg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--gray);
  max-width: 720px;
  margin-bottom: 40px;
}

.page-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-top: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  max-width: 900px;
}
.page-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-meta-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.page-meta-value {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 400;
}

/* ============ CONTENT SECTIONS ============ */
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px;
}
.content-section.narrow { max-width: 880px; }

.section-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 40px; height: 1px;
  background: var(--black);
}

.h-2 {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  max-width: 900px;
}
.h-2 em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.rich-text {
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}
.rich-text p { margin-bottom: 20px; }
.rich-text strong { font-weight: 700; }
.rich-text em { font-family: 'Libre Caslon Text', Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.05em; }
.rich-text a { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }

/* ============ PROCESS TIMELINE ============ */
.process {
  background: var(--black);
  color: var(--white);
  padding: 100px 40px;
  margin: 0 -40px;
}
.process-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.process-inner .h-2 { color: var(--white); }
.process-inner .section-label { color: rgba(255,255,255,0.6); }
.process-inner .section-label::before { background: var(--yellow); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  overflow: hidden;
}
.step {
  background: var(--black);
  padding: 36px 30px;
  position: relative;
  transition: background 0.3s;
}
.step:hover { background: rgba(255,214,10,0.08); }
.step-num {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 64px;
  line-height: 0.9;
  color: var(--yellow);
  margin-bottom: 16px;
}
.step-title {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.step-time {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  color: var(--yellow);
  margin-top: 16px;
  letter-spacing: 0.1em;
}

/* ============ TEST CARDS (strumenti usati) ============ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s;
}
.tool-card:hover {
  background: var(--yellow);
  transform: translateY(-4px);
}
.tool-acronym {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tool-name {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.4;
  margin-bottom: 16px;
  font-style: italic;
  font-family: 'Libre Caslon Text', Georgia, serif;
}
.tool-card:hover .tool-name { color: var(--black); }
.tool-desc {
  font-size: 14px;
  line-height: 1.6;
}
.tool-tag {
  font-family: 'Inter Tight', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border: 1px solid var(--black);
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 900px;
}
.faq-item {
  border-bottom: 1.5px solid var(--gray-light);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item:first-child { border-top: 1.5px solid var(--gray-light); }
.faq-q {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: color 0.2s;
}
.faq-item:hover .faq-q { color: var(--gray); }
.faq-item:hover .faq-q { color: #000; }
.faq-toggle {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}
.faq-item.open .faq-toggle {
  background: var(--yellow);
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, padding 0.3s;
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray);
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding-top: 16px;
}

/* ============ CTA BOX ============ */
.cta-box {
  background: var(--yellow);
  border-radius: 24px;
  padding: 60px 48px;
  max-width: var(--max-width);
  margin: 80px auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: var(--black);
  border-radius: 50%;
  opacity: 0.05;
}
.cta-title {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-title em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.cta-desc {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 90%;
}
.cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta-visual {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-align: right;
  color: var(--black);
  position: relative;
  z-index: 1;
}
.cta-visual em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

@media (max-width: 800px) {
  .cta-box { grid-template-columns: 1fr; padding: 40px 28px; }
  .cta-visual { text-align: left; font-size: 72px; }
}

/* ============ FOOTER ============ */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 40px 40px;
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 40px;
}
.footer-brand {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.footer-brand em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--yellow);
}
.footer-tagline {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  max-width: 400px;
  line-height: 1.5;
}
.footer-col h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand { font-size: 48px; }
}

/* ============================================================ */
/* ============ STICKY CTA MOBILE ============================== */
/* ============================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 90;
  background: var(--black);
  color: var(--white);
  padding: 16px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.12);
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
  transform: translateY(120%);
  opacity: 0;
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta.hidden { transform: translateY(120%); opacity: 0; pointer-events: none; }
.sticky-cta-arrow { font-size: 18px; line-height: 1; }

@media (max-width: 900px) {
  .sticky-cta { display: flex; }
  body.menu-open .sticky-cta {
    transform: translateY(120%);
    opacity: 0;
  }
}

/* ============================================================ */
/* ============ OTTIMIZZAZIONI MOBILE PAGINE ================== */
/* ============================================================ */
@media (max-width: 768px) {

  /* === PAGE HERO === */
  .page-hero { padding: 110px 22px 50px; }
  .page-hero-bg {
    width: 320px; height: 320px;
    right: -30%;
    top: 5%;
    filter: blur(80px);
    opacity: 0.4;
  }
  .breadcrumb { font-size: 11px; margin-bottom: 22px; flex-wrap: wrap; }
  .page-eyebrow { font-size: 10px; }
  .page-title {
    font-size: 42px;
    line-height: 1;
    margin-bottom: 24px;
    word-break: break-word;
  }
  .page-title .highlight { padding: 0 8px; }
  .page-lede { font-size: 18px; line-height: 1.5; margin-bottom: 28px; }

  .page-meta {
    flex-direction: column;
    gap: 14px;
    padding: 18px 0;
  }
  .page-meta-item { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .page-meta-label { font-size: 10px; }
  .page-meta-value { font-size: 15px; }

  /* === CONTENT SECTION === */
  .content-section { padding: 50px 22px; }
  .content-section.narrow { padding: 50px 22px; }
  .h-2 { font-size: 28px; line-height: 1.1; margin-bottom: 22px; }
  .section-label { font-size: 10px; margin-bottom: 16px; }
  .section-label::before { width: 24px; }
  .rich-text { font-size: 16px; line-height: 1.65; }
  .rich-text p { margin-bottom: 16px; }

  /* === PROCESS / STEPS === */
  .process { padding: 60px 22px; margin: 0 -22px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 28px 22px; }
  .step-num { font-size: 48px; }
  .step-title { font-size: 19px; }
  .step-desc { font-size: 13px; }

  /* === TOOLS GRID === */
  .tools-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .tool-card { padding: 24px 22px; }
  .tool-acronym { font-size: 30px; }
  .tool-name { font-size: 13px; }
  .tool-desc { font-size: 13px; }

  /* === FAQ === */
  .faq-list { font-size: 14px; }
  .faq-item { padding: 18px 0; }
  .faq-q { font-size: 17px; gap: 14px; }
  .faq-toggle { width: 28px; height: 28px; font-size: 16px; flex-shrink: 0; }
  .faq-a { font-size: 14px; }

  /* === CTA BOX === */
  .cta-box {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 20px;
    margin: 50px auto;
    border-radius: 18px;
  }
  .cta-title { font-size: 28px; }
  .cta-desc { font-size: 15px; max-width: 100%; }
  .cta-visual {
    text-align: left;
    font-size: 56px;
    line-height: 0.9;
  }
  .cta-btns .btn { width: 100%; justify-content: center; }

  /* === BOTTONI === */
  .btn { padding: 14px 22px; font-size: 14px; }

  /* === FOOTER === */
  footer { padding: 60px 22px 30px; }
  .footer-tagline { font-size: 15px; }
  .footer-bottom {
    font-size: 11px;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Spazio per non sovrapporre lo sticky CTA */
  body { padding-bottom: 80px; }
}

@media (max-width: 380px) {
  .page-hero { padding: 100px 18px 40px; }
  .page-title { font-size: 36px; }
  .page-lede { font-size: 16px; }
  .content-section { padding: 44px 18px; }
  .h-2 { font-size: 26px; }
  .step-title { font-size: 18px; }
  .cta-title { font-size: 26px; }
  .cta-visual { font-size: 48px; }
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

/* ============================================================================
   WIDGET QUESTIONARI INLINE (pagine /test-adhd-asrs, /test-autismo-adulti)
   ============================================================================ */
.qz-widget {
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 18px;
  padding: 32px;
  margin: 24px 0;
}
.qz-start { width: 100%; justify-content: center; }
.qz-progress { height: 4px; background: var(--gray-light); border-radius: 2px; margin-bottom: 24px; overflow: hidden; }
.qz-progress-fill { height: 100%; background: var(--yellow); transition: width .3s; }
.qz-qnum { font-family: 'Inter Tight', sans-serif; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.qz-question { font-family: 'DM Serif Display', 'Times New Roman', serif; font-size: 22px; line-height: 1.3; margin-bottom: 20px; }
.qz-options { display: grid; gap: 10px; }
.qz-option { padding: 14px 18px; border: 1.5px solid var(--gray-light); border-radius: 12px; cursor: pointer; transition: all .2s; font-size: 15px; display: flex; align-items: center; gap: 12px; }
.qz-option:hover { border-color: var(--black); background: var(--yellow-soft); }
.qz-option.selected { border-color: var(--black); background: var(--yellow); }
.qz-circle { width: 20px; height: 20px; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; position: relative; }
.qz-option.selected .qz-circle::after { content: ''; position: absolute; inset: 3px; background: var(--black); border-radius: 50%; }
.qz-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; align-items: center; }
.qz-nav .btn { flex: 1; justify-content: center; }
.qz-result { text-align: left; }
.qz-score { background: var(--black); color: var(--white); padding: 32px; border-radius: 16px; margin-bottom: 24px; text-align: center; }
.qz-score-num { font-family: 'DM Serif Display', 'Times New Roman', serif; font-size: 72px; line-height: 1; color: var(--yellow); }
.qz-score-max { font-size: 30px; color: rgba(255,255,255,.5); }
.qz-score-label { font-family: 'Inter Tight', sans-serif; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.qz-interpretation { padding: 24px; border-radius: 12px; margin-bottom: 24px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); }
.qz-interpretation h3 { font-family: 'DM Serif Display', 'Times New Roman', serif; font-size: 22px; font-weight: 400; margin-bottom: 10px; }
.qz-interpretation p { line-height: 1.6; font-size: 15px; }
.qz-disclaimer { font-size: 13px; color: var(--gray); line-height: 1.6; margin-bottom: 24px; padding: 16px; background: var(--gray-light); border-radius: 8px; }
@media (max-width: 600px) {
  .qz-widget { padding: 22px; }
  .qz-question { font-size: 19px; }
  .qz-nav { flex-direction: column-reverse; }
  .qz-nav .btn { width: 100%; }
}

/* ============================================================================
   STILI ARTICOLO (condivisi — usati dalle pagine in /articoli/)
   ============================================================================ */
.article-hero {
  padding: 140px 40px 60px;
  position: relative;
  overflow: hidden;
}
.article-hero-bg {
  position: absolute;
  top: 20%; right: -15%;
  width: 460px; height: 460px;
  background: var(--yellow);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.32;
  z-index: 0;
}
.article-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.article-meta-top {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  color: var(--gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.article-cat {
  background: var(--black);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
}
.article-meta-top .dot {
  width: 4px; height: 4px;
  background: var(--gray);
  border-radius: 50%;
}

.article-title {
  font-family: 'DM Serif Display', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.article-title em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.article-lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--gray);
  margin-bottom: 40px;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1.5px solid var(--gray-light);
}
.author-img {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--black);
  background-image: url('/assets/giulio.jpeg');
  background-size: cover;
  background-position: center;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 18px;
}
.author-role {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  color: var(--gray);
}

/* Corpo articolo */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 60px;
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.75;
}
.article-body p {
  margin-bottom: 24px;
  color: var(--black);
}
.article-body p:first-of-type::first-letter {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  background: var(--yellow);
  padding: 6px 10px;
}
.article-body h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 56px 0 20px;
}
.article-body h2 em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
}
.article-body h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin: 36px 0 16px;
}
.article-body strong { font-weight: 700; }
.article-body em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-size: 1.04em;
}
.article-body a {
  color: var(--black);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.article-body a:hover { text-decoration-color: var(--black); }
.article-body blockquote {
  margin: 36px 0;
  padding: 24px 32px;
  border-left: 4px solid var(--yellow);
  background: var(--yellow-soft, #FFF3B0);
  border-radius: 0 12px 12px 0;
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
}
.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
.article-body li {
  margin-bottom: 8px;
  padding-left: 8px;
}
.article-body sup {
  font-size: 11px;
  vertical-align: super;
  line-height: 0;
}
.article-body sup a {
  text-decoration: none;
  color: var(--black);
  background: var(--yellow);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
}

/* Box importante / nota */
.article-callout {
  margin: 36px 0;
  padding: 24px 28px;
  background: var(--black);
  color: var(--white);
  border-radius: 14px;
}
.article-callout-label {
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  font-weight: 600;
}
.article-callout p { margin: 0; color: var(--white); font-size: 17px; line-height: 1.55; }

/* References */
.article-references {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px;
  border-top: 2px solid var(--black);
}
.article-references h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 20px;
}
.article-references ol {
  list-style: decimal;
  margin-left: 20px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}
.article-references li {
  margin-bottom: 12px;
  padding-left: 6px;
}
.article-references a { color: var(--gray); text-decoration: underline; }

/* Articoli correlati / footer CTA */
.article-cta {
  background: var(--yellow);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 820px;
  margin: 60px auto;
  text-align: center;
}
.article-cta h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.article-cta h3 em {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-style: italic;
}
.article-cta p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .article-hero { padding: 110px 22px 40px; }
  .article-title { font-size: 36px; line-height: 1.05; }
  .article-lede { font-size: 18px; }
  .article-meta-top { font-size: 11px; gap: 10px; }
  .article-body { padding: 32px 22px 40px; font-size: 16px; line-height: 1.7; }
  .article-body p:first-of-type::first-letter {
    font-size: 2.4em;
    padding: 2px 8px;
    margin: 0 6px 0 0;
    line-height: 1;
  }
  .article-body h2 { font-size: 24px; margin: 40px 0 16px; }
  .article-body h3 { font-size: 20px; margin: 28px 0 12px; }
  .article-body blockquote { padding: 18px 20px; font-size: 17px; margin: 28px 0; }
  .article-references { padding: 32px 22px; }
  .article-cta { padding: 32px 24px; margin: 40px 22px; }
  .article-cta h3 { font-size: 26px; }
  .article-callout { padding: 18px 20px; }
}
