/**
 * ITSOS — Striscia full-width “Siamo al tuo servizio per” + pulsanti orizzontali
 */

.itsos-contact-strip {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 40px calc(50% - 50vw) 0;
  padding: 14px 21px 12px;
  border-top: 1px solid #000;
  border-bottom: 0;
  background: #fff;
}

.itsos-contact-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.itsos-contact-strip__title {
  margin: 0 0 10px;
  font-family: var(--itsos-font-stack, "Outfit", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #000 !important;
}

.itsos-contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}

/* Pulsanti ITSOS (stesso linguaggio del primary del tema, compatti nella striscia) */
.itsos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--itsos-primary, #ff9517);
  border-radius: 0;
  background-color: var(--itsos-primary, #ff9517) !important;
  color: #fff !important;
  font-family: var(--itsos-font-stack, "Outfit", sans-serif) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.itsos-btn:hover,
.itsos-btn:focus-visible {
  background-color: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  outline: none;
}

.itsos-contact-strip .itsos-btn,
.itsos-contact-strip .itsos-btn.button.button-primary {
  flex: 1 1 auto;
  min-width: min(100%, 180px);
  max-width: 100%;
  min-height: 36px !important;
  padding: 7px 12px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Ultimo blocco prima del footer: nessun gap sotto la striscia */
.entry-content > .itsos-contact-strip:last-child {
  margin-bottom: 0 !important;
}

body:has(.entry-content > .itsos-contact-strip:last-child) .wrapper,
body:has(.entry-content > .itsos-contact-strip:last-child) main,
body:has(.entry-content > .itsos-contact-strip:last-child) .nv-single-page-wrap,
body:has(.entry-content > .itsos-contact-strip:last-child) article.page,
body:has(.entry-content > .itsos-contact-strip:last-child) .entry-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

body:has(.entry-content > .itsos-contact-strip:last-child) footer.footer,
body:has(.entry-content > .itsos-contact-strip:last-child) #footer,
body:has(.entry-content > .itsos-contact-strip:last-child) .site-footer {
  margin-top: 0 !important;
}

@media (max-width: 900px) {
  .itsos-contact-strip {
    margin-top: 32px;
    margin-bottom: 0;
    padding: 12px 16px 10px;
  }

  .itsos-contact-strip__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .itsos-contact-strip .itsos-btn {
    width: 100%;
    white-space: normal;
  }
}
