/* Pagina: /risolvere-equazione-con-bhaskara/ */

.equazioni-page {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #212529;
}

.equazioni-page h1 {
  font-size: clamp(2rem, 7vw, 3.3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.equazioni-page h2 {
  font-size: clamp(1.55rem, 4.7vw, 2.2rem);
  line-height: 1.22;
  font-weight: 750;
  margin-bottom: 1rem;
}

.equazioni-page p {
  max-width: 78ch;
}

.hero-box {
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.35rem 1.4rem rgba(0, 0, 0, 0.045);
}

.eyebrow {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #5f6368;
}

.formula-main {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.3rem;
  padding: 1.15rem 0.75rem;
  overflow-x: auto;
  white-space: nowrap;
  font-size: clamp(1.65rem, 7vw, 2.8rem);
  font-weight: 750;
  line-height: 1.15;
}

.fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  min-width: max-content;
}

.numerator {
  padding: 0 0.35rem 0.25rem;
}

.denominator {
  border-top: 2px solid currentColor;
  padding: 0.25rem 0.35rem 0;
}

.calculator-card {
  border: 1px solid #d9e5ff;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(13, 110, 253, 0.08);
}

.calculator-head {
  padding: 1.15rem 1.2rem;
  background: #eef5ff;
  border-bottom: 1px solid #d9e5ff;
}

.calculator-body {
  padding: 1.2rem;
}

.equation-preview {
  text-align: center;
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 700;
  padding: 0.8rem 0.5rem;
  border-radius: 0.7rem;
  background: #f8f9fa;
}

.calculator-body .form-label {
  font-size: 1.05rem;
  font-weight: 700;
}

.calculator-body .form-control {
  min-height: 58px;
  font-size: 1.3rem;
  border-radius: 0.65rem;
}

.calc-button {
  min-height: 58px;
  font-size: 1.18rem;
  font-weight: 750;
  border-radius: 0.7rem;
}

.result-box {
  padding: 1rem;
  border: 1px solid #dfe3e8;
  border-radius: 0.8rem;
  background: #fbfcfd;
}

.result-title {
  font-weight: 800;
  font-size: 1.12rem;
}

.result-value {
  font-size: clamp(1.4rem, 6vw, 2rem);
  font-weight: 800;
}

.content-section {
  margin-top: 2.6rem;
}

.math-box {
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  text-align: center;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  font-weight: 750;
  border: 1px solid #dee2e6;
  border-radius: 0.8rem;
  background: #f8f9fa;
  overflow-x: auto;
}

.math-box-primary {
  background: #eef5ff;
  border-color: #cfe2ff;
}

.steps-list {
  margin: 1.3rem 0 0;
  padding-left: 1.35rem;
}

.steps-list li {
  margin-bottom: 1rem;
  padding-left: 0.35rem;
}

.result-table th,
.result-table td {
  padding: 0.9rem;
  font-size: 1.03rem;
}

.solution-example {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  max-width: 420px;
  margin: 1rem auto;
}

.solution-example > div {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  padding: 0.9rem;
  border-radius: 0.75rem;
  background: #eaf7ee;
  border: 1px solid #cbe8d3;
}

.bhaskara-figure {
  text-align: center;
  margin: 1.4rem auto;
}

.bhaskara-figure img {
  height: auto;
  max-width: 100%;
}

.bhaskara-figure figcaption {
  margin-top: 0.55rem;
  color: #6c757d;
  font-size: 0.95rem;
}

.faq-list details {
  border: 1px solid #dee2e6;
  border-radius: 0.7rem;
  background: #fff;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 750;
  padding: 1rem 1.05rem;
  font-size: 1.06rem;
}

.faq-list details p {
  padding: 0 1.05rem 1rem;
  margin: 0;
}

.related-box {
  border-top: 1px solid #e6e8eb;
  padding-top: 1.6rem;
}

@media (min-width: 768px) {
  .hero-box,
  .calculator-head,
  .calculator-body {
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }

  .solution-example {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .equazioni-page {
    font-size: 1.08rem;
    line-height: 1.62;
  }

  .hero-box {
    padding: 1rem;
    border-radius: 0.85rem;
  }

  .calculator-head,
  .calculator-body {
    padding: 1rem;
  }

  .formula-main {
    justify-content: flex-start;
    font-size: 1.62rem;
  }

  .content-section {
    margin-top: 2.25rem;
  }

  .math-box {
    font-size: 1.35rem;
  }
}
