/* RDM: floating navigation, capsule buttons and a consistent icon scale. */
.rdm-prest {
  --rdm-ui-dark: #0d2d36;
  --rdm-ui-line: #a7e4da30;
  --rdm-ui-accent: #80efd2;
  --rdm-ui-button: linear-gradient(135deg, #a1f7da, #64dfd3);
}
body.rdm-prest-home { background: linear-gradient(#081c25,#081c25) top / 100% 140px no-repeat, #fff; }
.rdm-prest #masthead.site-header {
  position: sticky; top: calc(16px + var(--rdm-admin-bar-visible, 0px));
  width: calc(100% - 48px); max-width: 1240px; margin: 20px auto;
  padding: 0; border: 1px solid var(--rdm-ui-line); border-radius: 999px;
  background: linear-gradient(135deg, #173f49, #0c2b35 80%);
  box-shadow: 0 8px 28px #03151c24, inset 0 1px #d8fff509;
  backdrop-filter: none; -webkit-backdrop-filter: none; color: #e5f2f3;
  --rdm-nav-color: #d2e5e8; --rdm-nav-text-shadow: none;
}
.rdm-prest #masthead .site-header__inner {
  min-height: 76px; width: 100%; max-width: none; padding: 10px 18px 10px 24px; gap: 28px;
}
.rdm-prest #masthead .site-branding { flex: 0 0 auto; }
.rdm-prest #masthead .site-logo a { min-height: 48px; min-width: 56px; justify-content: center; }
.rdm-prest #masthead .site-logo :is(img.logo-default,img.logo-scrolled) {
  width: 56px; height: 46px; max-height: 46px; object-fit: contain;
}
.rdm-prest #masthead .main-navigation { flex: 1 1 auto; gap: 28px; justify-content: flex-end; }
.rdm-prest #masthead .main-navigation > div:not(.rdm-menu-panel-heading) { margin-inline: auto; }
.rdm-prest #masthead .main-navigation > div > ul { gap: clamp(18px,2.2vw,32px); align-items: center; }
.rdm-prest #masthead .main-navigation a:not(.rdm-header-cta) {
  color: #c5dce1; font-size: .875rem; font-weight: 550; letter-spacing: -.01em;
  text-shadow: none; text-decoration: none; transition: color 160ms ease;
}
.rdm-prest #masthead .main-navigation a:not(.rdm-header-cta):hover,
.rdm-prest #masthead .main-navigation a[aria-current='page'] {
  color: #fff; text-shadow: 0 0 16px #83f5da55;
}
.rdm-prest #masthead .main-navigation a[aria-current='page'] { font-weight: 650; }
.rdm-prest #masthead .lml-current {
  min-height: 40px; border-radius: 999px; border-color: #aed6d42e; background: #d0fff508; color: #d5e9ec;
}
.rdm-prest #masthead .lml-dropdown[open] > .lml-current { background: #d0fff51a; }
.rdm-prest #masthead .lml-switcher a.lml-language { color: #153a43; }
.rdm-prest #masthead .lml-dropdown > .lml-switcher { top: calc(100% + 12px); }
.rdm-prest #masthead :is(a,button,summary):focus-visible { outline: 2px solid #80efd2; outline-offset: 5px; }

/* Shared touch target, geometry and brand treatment for calls to action. */
.rdm-prest :is(.rdm-button,.wp-element-button,.wp-block-button__link,button[type='submit'],input[type='submit']) {
  min-height: 54px; padding: 14px 24px; border-radius: 999px; gap: 12px;
  font-size: .9375rem; line-height: 1.35; font-weight: 600; letter-spacing: -.015em;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.rdm-prest :is(.rdm-button,.wp-element-button,.wp-block-button__link,button[type='submit'],input[type='submit']):hover { filter: none; }
.rdm-prest .rdm-button .rdm-icon { width: 20px; height: 20px; }
.rdm-prest .rdm-button[href^='https://wa.me/'] > .rdm-icon--whatsapp { order: -1; }
.rdm-prest .rdm-button[href^='https://wa.me/'],
.rdm-prest #masthead .rdm-header-cta[href^='https://wa.me/'],
.rdm-prest .rdm-whatsapp-float {
  background: var(--rdm-ui-button); color: #103c38; border-color: #9bf3da;
  box-shadow: 0 4px 20px #5ce4c518, inset 0 1px #f2fffba3;
}
.rdm-prest .rdm-button[href^='https://wa.me/']:hover,
.rdm-prest #masthead .rdm-header-cta[href^='https://wa.me/']:hover,
.rdm-prest .rdm-whatsapp-float:hover {
  background: linear-gradient(135deg,#bafbe7,#80eddf); color: #103c38;
  box-shadow: 0 6px 24px #5ce4c52b, inset 0 1px #f2fffba3; transform: translateY(-1px);
}
.rdm-prest #masthead .rdm-header-cta { display: inline-flex; gap: 10px; flex: 0 0 auto; min-height: 48px; padding: 12px 20px; max-width: none; white-space: nowrap; }
.rdm-prest .rh-hero .rdm-button--outline { border-color: #718f99; }
.rdm-prest .rdm-whatsapp-float { min-height: 54px; padding: 14px 20px; }
.rdm-prest .rdm-whatsapp-float .rdm-icon { width: 24px; height: 24px; }
.rdm-prest .rdm-icon { display: inline-block; flex-shrink: 0; overflow: hidden; }
.rdm-prest .rdm-icon-box { width: 56px; height: 56px; border-radius: 18px; background: #eff8f7; border-color: #d4e8e5; color: #167d7c; }
.rdm-prest .rdm-icon-box .rdm-icon { width: 26px; height: 26px; }
.rdm-prest .rdm-surface--dark .rdm-icon-box { background: #173b43; border-color: #32585f; color: #80efd2; }
.rdm-prest .rh-value-icon .rdm-icon { width: 26px; height: 26px; }
.rdm-menu-panel-heading { display: none; }

@media (max-width: 1100px) {
  .rdm-prest #masthead.site-header { width: calc(100% - 24px); max-width: 760px; margin-block: 12px; top: calc(12px + var(--rdm-admin-bar-visible, 0px)); border-radius: 28px; }
  .rdm-prest #masthead .site-header__inner { min-height: 72px; padding: 10px 12px 10px 18px; justify-content: space-between; }
  .rdm-prest #masthead .site-logo :is(img.logo-default,img.logo-scrolled) { width: 50px; height: 42px; max-height: 42px; }
  .rdm-prest #masthead .menu-toggle {
    width: 46px; height: 46px; border-radius: 16px; color: #103c38;
    border: 1px solid #9bf3da; background: var(--rdm-ui-button);
    box-shadow: 0 0 16px #5ce4c51a, inset 0 1px #f2fffba3;
  }
  .rdm-prest #masthead .menu-toggle .rdm-icon { width: 22px; height: 22px; }
  .rdm-prest .rdm-nav-backdrop { background: #041b25aa; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .rdm-prest .rdm-mobile-navigation {
    inset: auto 12px 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 24px); max-width: 560px; max-height: calc(100dvh - 32px - var(--rdm-admin-bar-visible, 0px));
    height: auto; margin-inline: auto; padding: 20px 24px 24px;
    border: 1px solid #d4e5e4; border-radius: 28px;
    color: #153942; background: #f5faf9; --rdm-panel-color: #153942;
    box-shadow: 0 24px 80px #00161d4d;
    transform: translateY(calc(100% + 40px));
    transition: transform 220ms cubic-bezier(.2,.75,.25,1);
  }
  .rdm-prest .rdm-mobile-navigation.is-open { transform: translateY(0); }
  .rdm-prest .rdm-menu-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
  .rdm-menu-panel-heading > span { font-size: 1.125rem; font-weight: 650; letter-spacing: -.02em; }
  .rdm-prest .rdm-mobile-navigation .rdm-menu-close {
    position: static; display: inline-flex; justify-content: center; align-items: center;
    min-width: 44px; width: 44px; height: 44px; padding: 10px; margin: 0;
    border-radius: 50%; border: 1px solid #c7dcdb; background: transparent; color: #153942;
  }
  .rdm-prest .rdm-mobile-navigation > div > ul { padding: 0; margin: 0; }
  .rdm-prest .rdm-mobile-navigation > div > ul > li:not(.lml-menu-item) > a {
    display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 0;
    border-bottom: 1px solid #d5e3e2; border-radius: 0; font-size: 1rem; font-weight: 550; line-height: 1.35;
    color: #153942; text-shadow: none; text-decoration: none;
  }
  .rdm-prest .rdm-mobile-navigation > div > ul > li:not(.lml-menu-item) > a::after {
    content: ''; width: 8px; height: 8px; flex-shrink: 0; border-top: 1.5px solid #6b8a8d; border-right: 1.5px solid #6b8a8d; transform: rotate(45deg); margin-right: 4px;
  }
  .rdm-prest .rdm-mobile-navigation > div > ul > li:not(.lml-menu-item) > a[aria-current='page'] { color: #08706b; font-weight: 700; }
  .rdm-prest .rdm-mobile-navigation a:not(.rdm-header-cta):hover { background: transparent; color: #08706b; }
  .rdm-prest .rdm-mobile-navigation .lml-menu-item { margin-block: 18px 0; }
  .rdm-prest .rdm-mobile-navigation .lml-current { min-height: 44px; width: max-content; padding: 8px 12px; border-radius: 999px; background: #e9f3f1; border-color: #ccdfdc; }
  .rdm-prest .rdm-mobile-navigation .lml-dropdown { display: block; }
  .rdm-prest .rdm-mobile-navigation .lml-dropdown > .lml-switcher { position: static; display: flex; flex-direction: row; gap: 4px; margin-top: 8px; box-shadow: none; width: max-content; max-width: 100%; padding: 4px; }
  .rdm-prest .rdm-mobile-navigation .lml-switcher a.lml-language { display: inline-flex; gap: 6px; padding: 10px; }
  .rdm-prest .rdm-mobile-navigation .rdm-header-cta { max-width: none; width: 100%; margin-top: 20px; min-height: 54px; }
  .rdm-prest .rdm-mobile-navigation :is(a,button,summary):focus-visible { outline: 2px solid #137d78; outline-offset: 3px; }
  .rdm-prest.rdm-menu-open { overflow: hidden; }
  .no-js .rdm-prest #masthead .site-header__inner { flex-wrap: wrap; }
  .no-js .rdm-prest #masthead .main-navigation { flex-basis: 100%; }
}
@media (max-width: 600px) {
  .rdm-prest .rdm-actions .rdm-button { min-height: 54px; padding-inline: 20px; font-size: .875rem; }
  .rdm-prest .rh-hero-grid { gap: 28px; padding-top: 12px; }
  .rdm-prest .rh-hero-visual { width: 100%; margin: 0; border-radius: 20px; }
  .rdm-prest .rh-hero-visual img { height: 220px; }
  .rdm-prest .rh-hero-visual figcaption { inset-inline: 20px; }
  .rdm-prest .rh-hero-visual figcaption strong { max-width: 25ch; font-size: 1rem; }
  .rdm-prest .rdm-whatsapp-float { width: 56px; height: 56px; padding: 14px; }
  .rdm-prest .rdm-whatsapp-float .rdm-icon { width: 25px; height: 25px; }
  .rdm-prest .rdm-footer-branding__logo { width: 66px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .rdm-prest :is(.rdm-mobile-navigation,.rdm-button,.rdm-whatsapp-float) { transition: none; }
  .rdm-prest :is(.rdm-button,.rdm-whatsapp-float):hover { transform: none; }
}
