/* index_page.css - the advertorial (centered narrow column, condensed type, green accent, grey option rows) */

/* ---- hero ---- */
.hero { padding: 28px 0 0; }
.hero-in { max-width: 820px; margin-inline: auto; padding-inline: var(--pad); }
.hero h1 {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(28px, 6.6vw, 50px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.rule {
  width: 88px;
  height: 2px;
  margin: 24px 0 22px;
  background: var(--green);
}
.dek {
  margin: 0 auto;
  max-width: 720px;
  font-family: var(--head);
  font-size: clamp(20px, 3.2vw, 27px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--ink);
}
.byline {
  margin: 16px 0 0;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--mute);
}

.media { max-width: 682px; margin: 22px auto 0; padding-inline: var(--pad); }
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #e3e3df;
}
.frame video,
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-hero video { object-position: 50% 55%; }

.rows {
  max-width: 682px;
  margin: 10px auto 0;
  padding: 0 var(--pad);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--row);
  border-radius: var(--radius);
  font-family: var(--head);
  font-size: 20px;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.row::before {
  content: "\2193";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 5px;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1;
  color: var(--green);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.row:hover { background: #e4ecdb; color: var(--ink); }
.row:hover::before { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- article body ---- */
.article { padding-top: 48px; }
.article p {
  margin-bottom: 1.25em;
  font-size: 18px;
  line-height: 1.75;
}
.article .lead { font-size: 20px; line-height: 1.65; }
.article h2,
.sec-h {
  position: relative;
  margin: 0 0 18px;
  padding-top: 26px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 38px);
  line-height: 1.16;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.article h2::before,
.sec-h::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 3px;
  background: var(--green-hi);
}
.sec { padding-top: 40px; }
.article strong { font-weight: 700; }

.article p.cta,
.next p.cta { margin: 34px 0 6px; display: flex; justify-content: center; }
.cta .btn { width: 100%; max-width: 420px; }

.fig { margin: 34px 0; }
.fig .frame { aspect-ratio: 3 / 2; }
.fig img { object-position: 50% 68%; }
.fig figcaption {
  margin-top: 10px;
  font-family: var(--head);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: var(--mute);
}

.wide-fig { max-width: 820px; margin: 40px auto; padding-inline: var(--pad); }

/* numbered steps (accent: numbered reasons) */
.steps {
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 58px;
  min-height: 42px;
  font-size: 18px;
  line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-family: var(--head);
  font-size: 22px;
  line-height: 1;
}
.steps b { font-family: var(--head); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; }

.ticks {
  margin: 20px 0 28px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  font-size: 18px;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.42em;
  width: 8px;
  height: 15px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(40deg);
}

.ticks.dots li::before {
  left: 8px;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--green-hi);
  transform: none;
}

.h3 {
  margin: 30px 0 10px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* tinted band (who it suits / what to expect) */
.band { background: var(--tint); margin-top: 52px; padding: 18px 0 44px; }
.band .article { padding-top: 0; }

/* ---- quiz (primary reference: heading, grey rows, n / total) ---- */
.quiz-sec { padding: 56px 0 10px; }
.quiz-intro { max-width: 682px; margin: 0 auto; padding-inline: var(--pad); text-align: center; }
.quiz-intro h2 {
  position: relative;
  margin: 0 0 14px;
  padding-top: 26px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 40px);
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.quiz-intro h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 3px;
  margin-left: -32px;
  background: var(--green-hi);
}
.quiz-intro p { margin: 0 0 6px; font-size: 18px; line-height: 1.65; }

.quiz { max-width: 682px; margin: 26px auto 0; padding-inline: var(--pad); }
.quiz-count {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--head);
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.meter { height: 6px; margin-bottom: 26px; background: #e4e4e4; border-radius: 3px; overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; background: var(--green-hi); border-radius: 3px; transition: width 0.3s ease; }
.q-title {
  margin: 0 0 16px;
  font-family: var(--head);
  font-weight: 400;
  font-size: clamp(23px, 4.6vw, 32px);
  line-height: 1.22;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--ink);
  outline: none;
  text-wrap: balance;
}
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  background: var(--row);
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--head);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.opt:hover { background: #e4ecdb; }
.box {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #c2c2c2;
  border-radius: 5px;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.opt[aria-checked="true"] { background: #e6f0dc; border-color: var(--green); }
.opt[aria-checked="true"] .box { background: var(--green); border-color: var(--green); }
.opt[aria-checked="true"] .box::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 7px;
  height: 14px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(40deg);
}

.qnote {
  margin: 16px 0 0;
  padding: 16px 18px;
  background: var(--tint);
  border-radius: var(--radius);
  font-size: 17px;
  line-height: 1.65;
}
.qnote-h {
  display: block;
  margin-bottom: 4px;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  background: transparent;
  border: 2px solid #c9c9c9;
  border-radius: var(--radius);
  font-family: var(--head);
  font-size: 19px;
  letter-spacing: 0.03em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-dk); }
.quiz-nav [disabled] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.quiz-nav .btn { min-width: 150px; }
.quiz-nav .btn::after { content: none; }

.quiz-result { margin-top: 6px; }
.res-badge {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--head);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}
.res-title {
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 36px);
  line-height: 1.16;
  text-align: center;
  text-wrap: balance;
  outline: none;
}
.res-text { margin: 0 0 18px; font-size: 18px; line-height: 1.7; }
.recap { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.recap li {
  padding: 12px 14px;
  background: var(--row);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.55;
}
.recap b {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.recap .is-stop b::after { content: " \2013 ostacolo concreto"; color: #8a2b16; }
.res-cta { margin: 0 0 14px; display: flex; justify-content: center; }
.res-cta[hidden],
.quiz-result[hidden],
.quiz-stage[hidden] { display: none; }
.res-cta .btn { width: 100%; max-width: 420px; }
.res-actions { display: flex; justify-content: center; }

/* ---- FAQ rows ---- */
.faq { margin: 0 0 10px; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--row);
  border-radius: var(--radius);
  font-family: var(--head);
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: background 0.18s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 5px;
  font-family: var(--body);
  font-size: 20px;
  line-height: 1;
  color: var(--green);
}
.faq[open] summary::after { content: "\2212"; }
.faq summary:hover { background: #e4ecdb; }
.faq .faq-a { padding: 16px 14px 6px; }
.faq .faq-a p { margin: 0; font-size: 17px; line-height: 1.7; }

/* ---- closing band ---- */
.next { margin-top: 64px; background: var(--dark); color: #fff; padding: 56px 0 60px; text-align: center; }
.next h2 {
  position: relative;
  margin: 0 0 16px;
  padding-top: 26px;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 38px);
  line-height: 1.16;
  letter-spacing: 0.015em;
  text-wrap: balance;
}
.next h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 64px;
  height: 3px;
  margin-left: -32px;
  background: var(--green-hi);
}
.next p { color: #ececec; font-size: 18px; line-height: 1.7; }
.next p.cta { margin-top: 28px; }
.next .btn { background: var(--green-hi); color: #111; }
.next .btn:hover { background: #73b84a; color: #111; }
.next :focus-visible { outline-color: #fff; box-shadow: none; }

@media (min-width: 480px) {
  .hero { padding-top: 36px; }
  .article p { font-size: 18.5px; }
  .opt { font-size: 21px; }
}

@media (min-width: 768px) {
  .hero { padding-top: 48px; }
  .rule { margin: 30px 0 26px; }
  .frame { aspect-ratio: 16 / 9; }
  .frame-hero video { object-position: 50% 44%; }
  .media { margin-top: 28px; }
  .article { padding-top: 64px; }
  .article p { font-size: 19px; }
  .article .lead { font-size: 22px; }
  .cta .btn { width: auto; min-width: 340px; }
  .fig { margin: 44px 0; }
  .fig .frame { aspect-ratio: 16 / 9; }
  .quiz-sec { padding-top: 76px; }
  .quiz-nav .btn { min-width: 190px; }
  .res-cta .btn { width: auto; min-width: 340px; }
  .band { margin-top: 68px; padding-bottom: 56px; }
  .next { margin-top: 80px; padding: 72px 0 76px; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 56px; }
  .article { padding-top: 76px; }
  .sec { padding-top: 54px; }
  .article p { font-size: 20px; }
  .article .lead { font-size: 23px; }
  .steps li { font-size: 19px; }
  .ticks li { font-size: 19px; }
}
