body {
  background: #f7f7f8;
}

.topbar #logo img {
  max-height: 58px;
}

.section-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.hero-filosofia {
  position: relative;
  width: 100%;
  max-width: 1088px;
min-height: 480px;
  overflow: hidden;
  margin: 0 auto;
  background-image: url("../img/banner.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(184, 23, 33, 0.88) 0%,
    rgba(184, 23, 33, 0.72) 34%,
    rgba(184, 23, 33, 0.28) 62%,
    rgba(184, 23, 33, 0.05) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 32px;
  color: #ffffff;
  max-width: 620px;
}

.hero-content h1 {
  margin: 0 0 12px 0;
  font-size: 40px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-content h2 {
  margin: 0 0 10px 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: #f5e8e8;
}

.hero-content a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .hero-filosofia {
    height: 300px;
    background-position: center center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(184, 23, 33, 0.92) 0%,
      rgba(184, 23, 33, 0.78) 55%,
      rgba(184, 23, 33, 0.30) 100%
    );
  }

  .hero-content {
    padding: 20px 24px;
    max-width: 90%;
  }

  .hero-content h1 {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .hero-content h2 {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .hero-content h3 {
    font-size: 17px;
  }

  .hero-content p {
    font-size: 13px;
  }
}

.form-section {
  background: #fff;
  border: 1px solid #e1e5ec;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.form-section h2 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 1rem;
}

.required-note {
  color: #8b1d1d;
  font-weight: 600;
}

.proprie-spese-notice {
  border: 2px solid #b81721;
  border-left-width: 8px;
  border-radius: 6px;
  background: #fff7f7;
  padding: 1rem 1.25rem;
  color: #4d1f22;
}

.proprie-spese-notice .custom-control-label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.proprie-spese-notice .custom-control-label::before,
.proprie-spese-notice .custom-control-label::after {
  top: 0.18rem;
}

#overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(255, 255, 255, 0.75);
  z-index: 2000;
}

.cv-spinner {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ddd;
  border-top-color: #4e73df;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
