.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: #b7dcb6;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(106,191,105,0.3);
}

.form-control {
  background-color: rgba(255,255,255,0.5);
  border-radius: 7px;
}

.form-check-input:checked {
  background-color: #16bd24;
  border-color: rgb(24, 209, 39);
}

/* privacy policy */

.privacy-policy {
  padding: 1rem;
}

.privacy-policy h3 {
  font-family: 'Noto Sans';
  font-weight: 600;
}

.privacy-policy h2 {
  font-family: 'Noto Sans';
  font-weight: 500;
  color: #2c3e50;
}

.privacy-policy p {
  font-size: 1rem;
  line-height: 1.6;
  color: #34495e;
}

.privacy-policy ul {
  list-style-type: disc;
  margin-left: 20px;
}

.card-img-top {
  height: 250px;
  width: 100%;
  object-fit: contain;
}

.title-underline {
  width: 70px;
  height: 4px;
  background-color: #3e9614;
  margin-top: 0.25rem;
  border-radius: 2px;
}

/* Pulsante con logo Amazon */

.book-link-btn {
  align-self: center;
  gap: 0.5rem;
  background-color: #4CAF50;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
  width: 76%;
}

.book-link-btn:hover {
  background-color: #45a049;
}

.author-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
}

.author-link {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.author-link-arrow {
  transition: transform 0.2s ease;
}

.author-link:hover .author-link-arrow {
  transform: translateX(4px);
}

.col-lg-4.sticky-sidebar {
  z-index: 100;
  position: sticky;
  top: 8.5rem;
  align-self: start;
  height: fit-content;
}

.esito-wrapper {
  min-height: calc(100vh - 160px);
  padding-top: 4.5rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at top, #f2fff4 0, #ffffff 55%, #f7f7f7 100%);
}

.esito-card {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.esito-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: pop-in 0.4s ease-out, pulse 1.8s infinite ease-in-out 0.4s;
  box-shadow: 0 0 0 rgba(0,0,0,0.1);
}

@keyframes pop-in {
  0% {
    transform: scale(0.5) translateY(10px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0.15);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 12px 4px rgba(0,0,0,0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0,0,0,0);
  }
}

/* Bottoni più compatti */

.btn-sm-custom {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-radius: 0.45rem;
}

.btn-soft-primary {
  background-color: rgba(68, 140, 68, 0.1);
  border-color: rgba(68, 140, 68, 0.35);
  color: #245a24;
}

.btn-soft-primary:hover {
  background-color: rgba(68, 140, 68, 0.18);
  border-color: rgba(68, 140, 68, 0.55);
  color: #1f4b1f;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
  margin: 1.5rem 0;
}

.small-muted {
  font-size: 0.85rem;
  color: #7a7a7a;
}

.accordion-button {
  background-color: white;
}

/* ===== Promo top bar ===== */

:root {
  --promo-bg: #0F4D3A;
  --promo-text: #fff;
  --promo-highlight: #F2C94C;
}

.promo-topbar {
  background: var(--promo-bg);
  color: var(--promo-text);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1032;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.promo-text {
  line-height: 1.2;
}

.promo-highlight {
  color: var(--promo-highlight);
  font-weight: 800;
}

.promo-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .5rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  opacity: .95;
  white-space: nowrap;
}

.promo-cta {
  font-weight: 600;
  white-space: nowrap;
  opacity: .95;
}

.promo-cta:hover {
  opacity: 1;
  text-decoration: underline;
}

/* =======BUTTONS ARTICOLO========== */

.btn-cta {
  display: block;
  max-width: 460px;
  margin: 40px auto;
  padding: 20px 28px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 16px;
  background: #227A54;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(34,122,84,.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-cta:hover {
  background: #1f6e4c;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(34,122,84,.45);
}

.btn-primary {
  display: inline-block;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  background: #227A54;
  color: #fff;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}

.btn-primary:hover {
  background: #1f6e4c;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  background: #fcd116;
  color: #2b2b2b;
  text-decoration: none;
  transition: background .15s ease, transform .1s ease;
}

.btn-secondary:hover {
  background: #f3c900;
  transform: translateY(-1px);
}

.btn-inline {
  display: inline;
  padding: 0;
  margin: 0;
  font-weight: 600;
  color: #227A54;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border-radius: 0;
}

.btn-inline:hover {
  color: #1f6e4c;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 10px;
  background: #fcd116;
  color: #2b2b2b;
  text-decoration: none;
}

.btn-download::before {
  content: "⬇";
  font-size: 1rem;
}

.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

#search-filter {
  width: 100%;
  max-width: 600px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: white;
}

#search-filter:focus {
  border-color: #1cc950;
  box-shadow: 0 0 0 3px rgba(28, 201, 28, 0.2);
}

