/* RecuperoNext - sobrio corporate (Additional CSS / custom stylesheet) */
:root {
  --rn-navy: #0f2a44;
  --rn-navy-2: #1a3a5c;
  --rn-text: #334155;
  --rn-muted: #64748b;
  --rn-bg: #f5f7fa;
  --rn-white: #ffffff;
  --rn-radius: 6px;
}

body {
  color: var(--rn-text);
  font-size: 18px;
  line-height: 1.65;
}

h1, .wp-block-post-title, .entry-title {
  color: var(--rn-navy) !important;
  font-size: clamp(1.75rem, 2.5vw, 2.35rem) !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem !important;
}

h2 {
  color: var(--rn-navy-2) !important;
  font-size: clamp(1.35rem, 1.8vw, 1.65rem) !important;
  line-height: 1.3 !important;
  margin-top: 2.25rem !important;
  margin-bottom: 0.85rem !important;
}

h3 {
  color: var(--rn-navy) !important;
  font-size: 1.15rem !important;
  margin-top: 1.5rem !important;
}

p { margin-bottom: 1rem; }
ul, ol { margin: 0.75rem 0 1.25rem; padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

a:not(.wp-block-button__link):not(.button):not([class*="btn"]) {
  color: var(--rn-navy-2);
}

.wp-block-button__link,
a.wp-block-button__link,
.wp-element-button {
  background: var(--rn-navy) !important;
  color: var(--rn-white) !important;
  border-radius: var(--rn-radius) !important;
  padding: 0.7rem 1.25rem !important;
  text-decoration: none !important;
  border: none !important;
  font-weight: 600 !important;
}

.wp-block-button__link:hover,
a.wp-block-button__link:hover {
  background: var(--rn-navy-2) !important;
}

/* Reduce hero/login clash if WP User Manager panel sits open */
.wpum-account-modal,
.wpum-form-wrapper.open,
.account-dropdown.is-open {
  z-index: 10050;
}

/* Soft spacing for main content */
.entry-content,
.wp-block-post-content {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
}

footer,
.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--rn-muted);
  font-size: 0.95rem;
}

/* Product soul - the software is the site */
:root {
  --rn-ink: #1a2b3c;
  --rn-paper: #f4f6f8;
  --rn-action: #e8690b;
  --rn-line: #d5dee8;
}

body {
  background: var(--rn-paper) !important;
}

/* Kubio page-title band: thin app bar, no second H1 */
#hero {
  background: #0f2a44 !important;
  background-image: none !important;
  min-height: 0 !important;
  max-height: none !important;
}
#hero .h-section-global-spacing,
#hero .wp-block-kubio-hero,
#hero .wp-block-kubio-header-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
}
#hero .wp-block-kubio-page-title,
#hero .wp-block-kubio-page-title__container,
#hero h1 {
  display: none !important;
}

/* Kill generic grey H3 cards - they flatten the product */
.entry-content h3,
.wp-block-post-content h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  margin-top: 1.4rem !important;
  margin-bottom: 0.4rem !important;
}
.entry-content h3 + ul,
.entry-content h3 + ol,
.wp-block-post-content h3 + ul,
.wp-block-post-content h3 + ol {
  background: none !important;
  border: none !important;
  padding: 0 0 0 1.25rem !important;
  border-radius: 0 !important;
}
.entry-content .wp-block-column {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.rn-page {
  max-width: 52rem;
  width: 100%;
  margin-inline: auto;
}
.rn-appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 650;
  color: #6b7a90;
  margin: 0 0 1rem;
}
.rn-appbar span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #198754;
}
.rn-page > h1:first-of-type,
.entry-content > h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem) !important;
  color: var(--rn-ink) !important;
  letter-spacing: -0.03em;
  width: auto;
  margin-bottom: 0.85rem !important;
}
/* Solo la frase di home sta stretta. Gli altri titoli usano la colonna del testo. */
.home .rn-page > h1:first-of-type { max-width: 22ch !important; }
.entry-content > h1.wp-block-post-title {
  max-width: 52rem !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left;
}
.rn-lead {
  font-size: 1.18rem;
  color: var(--rn-ink);
  max-width: none;
  margin-bottom: 1.15rem;
}
/* Same measure as .rn-page: no extra right gap vs lists/grids. */
.rn-page p,
.rn-lead {
  max-width: none;
}
.rn-btn-action {
  background: var(--rn-action) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.72rem 1.2rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block;
  border: none !important;
}
.rn-btn-action:hover { filter: brightness(0.95); color: #fff !important; }
.rn-btn-ghost {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--rn-line);
  border-radius: 8px;
  color: var(--rn-navy) !important;
  text-decoration: none !important;
  font-weight: 650;
  background: #fff;
}
.rn-cta { margin: 1.1rem 0 1.6rem; }

.rn-pricing-grid {
  display: grid;
  gap: 0;
  margin: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--rn-line);
}
.rn-pricing-grid article {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rn-line);
  background: none !important;
}
.rn-pricing-grid h2 {
  margin: 0 0 0.35rem !important;
  font-size: 1.05rem !important;
  color: var(--rn-action) !important;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.rn-shot {
  margin: 1.25rem 0 1.75rem !important;
  background: var(--rn-paper);
  padding: 14px 14px 0;
  border-radius: 12px;
  border: 1px solid #d5dee8;
}
.rn-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 16px 36px rgba(15, 42, 68, 0.16);
}
.rn-shot figcaption {
  font-size: 0.86rem;
  color: var(--rn-muted);
  padding: 0.65rem 2px 12px;
}

.rn-why {
  margin: 2rem 0 0.5rem;
}
.rn-why__lead {
  max-width: none;
  font-size: 1.12rem;
  color: var(--rn-ink);
  margin-bottom: 1.1rem;
}
.rn-why__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
}
.rn-why__actions li {
  margin: 0 !important;
  padding: 0.42rem 0.85rem;
  border: 1px solid #d5dee8;
  border-radius: 8px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--rn-navy);
}
.rn-why__points {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 0 !important;
  border-top: 1px solid #d5dee8;
  background: none !important;
}
.rn-why__points li {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-bottom: 1px solid #d5dee8;
  margin: 0 !important;
}
.rn-why__points strong {
  color: var(--rn-action);
  font-size: 0.95rem;
  line-height: 1.35;
}
.rn-why__points p {
  margin: 0;
  max-width: none;
}

.rn-why h2,
.rn-why h3 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
}

@media (max-width: 700px) {
  .rn-why__points li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* Navigation: product language, not brochure caps */
.kubio-menu a,
.wp-block-kubio-menu a,
.kubio-menu > ul > li > a {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-weight: 650 !important;
}
.kubio-menu li > ul {
  min-width: 16rem;
}
.kubio-menu li > ul > li > a {
  text-transform: none !important;
  font-size: 0.92rem !important;
  line-height: 1.35 !important;
}
html { scroll-behavior: smooth; }
#workstation, #h-perche-recuperonext, #telefono, #posta, #messaggi, #lettere, #hlr, #poste,
#scheda, #operatori, #listini, #perimetro, #net-next, #qualita {
  scroll-margin-top: 96px;
}

/* Header: product name, compact app bar */
.wp-block-kubio-logo__text {
  font-family: Mulish, system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: #fff !important;
  line-height: 1.1 !important;
}
#navigation .wp-block-kubio-navigation-section__nav,
.wp-block-kubio-navigation-section__nav {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#navigation .kubio-menu > ul > li > a,
.kubio-menu > ul > li > a,
.wp-block-kubio-menu-items a {
  color: #f4f6f8 !important;
  opacity: 1 !important;
}
.kubio-menu > ul > li.current-menu-item > a,
.kubio-menu > ul > li.current-menu-ancestor > a,
.kubio-menu > ul > li.current_page_item > a,
.kubio-menu > ul > li.current_page_ancestor > a {
  color: #fff !important;
  box-shadow: inset 0 -2px 0 #e8690b !important;
  border-bottom: none !important;
}
.kubio-menu > ul > li > a:hover {
  color: #fff !important;
}
html body #kubio .kubio-menu li > ul,
html body #kubio .kubio-dropdown-menu .sub-menu,
html body #kubio ul.sub-menu,
html body #navigation .sub-menu {
  background: #0f2a44 !important;
  background-color: #0f2a44 !important;
  border: 1px solid #1a3a5c !important;
  border-radius: 8px !important;
  padding: 6px 0 !important;
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.28) !important;
}
html body #kubio .kubio-menu li > ul > li,
html body #kubio ul.sub-menu > li {
  background: #0f2a44 !important;
  background-color: #0f2a44 !important;
}
html body #kubio .kubio-menu li > ul > li > a,
html body #kubio .kubio-menu li > ul > li > a span,
html body #kubio ul.sub-menu a,
html body #kubio ul.sub-menu a span,
html body #navigation .sub-menu a,
html body #navigation .sub-menu a span {
  color: #fff !important;
  background: #0f2a44 !important;
  background-color: #0f2a44 !important;
}
html body #kubio .kubio-menu li > ul > li > a:hover,
html body #kubio .kubio-menu li > ul > li > a.hover,
html body #kubio ul.sub-menu a:hover,
html body #navigation .sub-menu a:hover {
  background: #1a3a5c !important;
  background-color: #1a3a5c !important;
  color: #fff !important;
}

/* Hero: workstation image, not empty navy */
html body #hero.h-section-global-spacing,
html body #hero,
html body #kubio #hero,
html body #kubio .style-KFTMhA6WOVh-outer {
  min-height: 340px !important;
  max-height: 440px !important;
  height: auto !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  background-color: #0f2a44 !important;
  background-image: url("https://www.recuperonext.com/wp-content/uploads/2026/09/mockup-workstation-2.webp") !important;
  background-size: cover !important;
  background-position: center 10% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}
html body #hero .overlay-image-layer {
  background-color: rgb(15, 42, 68) !important;
  opacity: 0.28 !important;
}
/* Articolo: l'immagine in evidenza è già dentro #hero. Non ridipingerla come sfondo. */
html body.single-post #hero.h-section-global-spacing,
html body.single-post #hero,
html body.single-post #kubio #hero {
  background-image: none !important;
}
@media (max-width: 782px) {
  html body #hero.h-section-global-spacing,
  html body #hero,
  html body #kubio .style-KFTMhA6WOVh-outer {
    min-height: 220px !important;
    max-height: 280px !important;
  }
}
html body #kubio .wp-block-kubio-logo__text,
html body #kubio [class*="kubio-logo__text"],
html body #kubio .style-pCBjS67tbM7-text {
  font-family: Mulish, system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 1.2rem !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: #fff !important;
}

/* Nav opaque on light workstation; image shows below the bar */
html body #navigation,
html body #navigation .wp-block-kubio-navigation-section__nav,
html body .h-navigation_overlap,
html body .h-navigation_sticky,
html body #kubio .h-navigation_sticky,
html body #kubio .style-jZZ7ZgkWWk-outer .h-navigation_sticky:not(.extra-1) {
  background-color: #0f2a44 !important;
  background-image: none !important;
  box-shadow: none !important;
}
html body #navigation .wp-block-kubio-logo__text,
html body #kubio #navigation .wp-block-kubio-logo__text,
html body #navigation a {
  color: #fff !important;
}
html body #hero.h-section-global-spacing,
html body #hero,
html body #kubio #hero,
html body #kubio .style-KFTMhA6WOVh-outer {
  background-position: center 55% !important;
}
html body #hero .overlay-image-layer {
  background-color: rgb(15, 42, 68) !important;
  opacity: 0.18 !important;
}

#rn-cookie {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100000;
  max-width: 42rem;
  margin: 0 auto;
  background: #0f2a44;
  color: #f4f6f8;
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 42, 68, 0.28);
  font-size: 0.92rem;
  line-height: 1.45;
}
#rn-cookie p { margin: 0 0 10px; max-width: none; }
#rn-cookie a { color: #fff !important; text-decoration: underline; }
.rn-cookie-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#rn-cookie button {
  border: 1px solid #d5dee8;
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
#rn-cookie .rn-cookie-ok { background: #e8690b; border-color: #e8690b; }
.rn-faq { max-width: none; }
.rn-faq details {
  border-bottom: 1px solid #d5dee8;
  padding: 0.85rem 0;
}
.rn-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #0f2a44;
}
.rn-faq details p { margin: 0.6rem 0 0; }
.rn-legal h2 { margin-top: 1.6rem !important; }

.rn-diario-item {
  padding: 1rem 0;
  border-bottom: 1px solid #d5dee8;
}
.rn-diario-item time {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: #e8690b;
  margin-bottom: 0.25rem;
}
.rn-diario-item h3 {
  margin: 0 0 0.4rem !important;
  font-size: 1.05rem !important;
}
.rn-diario-item p { margin: 0; max-width: none; }
.rn-diario-base {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 1.25rem !important;
  background: none !important;
  border: 0 !important;
}
.rn-diario-base li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #d5dee8;
  margin: 0 !important;
}
.rn-repo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1rem 0 1.25rem;
}
@media (max-width: 782px) {
  .rn-repo-grid { grid-template-columns: 1fr; }
}
.rn-repo-grid > div {
  border: 1px solid #d5dee8;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  background: #fff;
}
.rn-repo-grid h3 { margin: 0 0 0.45rem !important; font-size: 1.05rem !important; }
.rn-repo-grid p { margin: 0; }
.rn-alert-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.8rem 0 1.2rem; }
.rn-alert-table th, .rn-alert-table td { border-bottom: 1px solid #d5dee8; padding: 0.5rem 0.6rem; text-align: left; vertical-align: top; }
.rn-alert-table th { color: #0f2a44; font-weight: 700; }
.rn-alert-mock { background: #0f2a44; color: #f4f6f8; border-radius: 8px; padding: 0.9rem 1rem; margin: 0 0 1.4rem; font-size: 0.88rem; }
.rn-alert-mock-cap { margin: 0 0 0.6rem !important; opacity: 0.75; font-size: 0.78rem; }
.rn-alert-row { padding: 0.4rem 0.55rem; margin: 0.28rem 0; border-radius: 4px; font-family: ui-monospace, monospace; }
.rn-alert-crit { background: #8b1e1e; }
.rn-alert-warn { background: #6b4a12; }
.rn-alert-ok { background: #1a4a32; }
.rn-shot { margin: 1rem 0 1.25rem; }
.rn-shot img { width: 100%; height: auto; border-radius: 8px; border: 1px solid #d5dee8; }
.rn-shot figcaption { font-size: 0.85rem; color: #5a6a7a; margin-top: 0.4rem; }
