/* =====================================================
   RC Hero Block — style.css (frontend)
   ===================================================== */

.rc-hero {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #182b3b;
}

/* Immagine di sfondo */
.rc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay */
.rc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Container */
.rc-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 5rem clamp(1.25rem, 3vw, 2.5rem);
}

/* Content box */
.rc-hero__content {
  max-width: 640px;
}

/* Allineamento */
.rc-hero--align-left  .rc-hero__content { margin-left: 0; margin-right: auto; text-align: left; }
.rc-hero--align-center .rc-hero__content { margin-left: auto; margin-right: auto; text-align: center; }
.rc-hero--align-right  .rc-hero__content { margin-left: auto; margin-right: 0; text-align: right; }

/* Overline */
.rc-hero__overline {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dcb0b4;
}

/* Titolo */
.rc-hero__title {
  margin: 0 0 1.25rem;
  font-family: 'Jost', sans-serif;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
}

.rc-hero__title-italic {
  display: block;
  font-style: italic;
  font-weight: 300;
  color: #dcb0b4;
}

/* Descrizione */
.rc-hero__desc {
  margin: 0 0 2.5rem;
  font-family: 'Jost', sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 400;
  line-height: 1.82;
  color: rgba(252, 249, 245, 0.85);
  max-width: 48ch;
}

.rc-hero--align-center .rc-hero__desc,
.rc-hero--align-right  .rc-hero__desc {
  max-width: 100%;
}

/* Bottoni */
.rc-hero__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.rc-hero--align-center .rc-hero__actions { justify-content: center; }
.rc-hero--align-right  .rc-hero__actions { justify-content: flex-end; }

.rc-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease,
              border-color .2s ease, transform .15s ease;
}

.rc-hero__btn:hover { transform: translateY(-1px); }

/* Stile: primary */
.rc-hero__btn--primary {
  background-color: #21374c;
  border-color: #21374c;
  color: #fcf9f5 !important;
}
.rc-hero__btn--primary:hover {
  background-color: #2f4b63;
  border-color: #2f4b63;
  color: #fcf9f5 !important;
}

/* Stile: light */
.rc-hero__btn--light {
  background-color: #fcf9f5;
  border-color: #fcf9f5;
  color: #21374c !important;
}
.rc-hero__btn--light:hover {
  background-color: #fff;
  border-color: #fff;
  color: #182b3b !important;
}

/* Stile: outline-light */
.rc-hero__btn--outline-light {
  background-color: transparent;
  border-color: rgba(252, 249, 245, 0.6);
  color: #fcf9f5 !important;
}
.rc-hero__btn--outline-light:hover {
  background-color: rgba(252, 249, 245, 0.1);
  border-color: rgba(252, 249, 245, 0.9);
  color: #fff !important;
}

/* Stile: outline-dark */
.rc-hero__btn--outline-dark {
  background-color: transparent;
  border-color: #21374c;
  color: #21374c !important;
}
.rc-hero__btn--outline-dark:hover {
  background-color: #21374c;
  color: #fcf9f5 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .rc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rc-hero--align-center .rc-hero__actions,
  .rc-hero--align-right  .rc-hero__actions {
    align-items: center;
  }
}
