/* Med Rio Design System V18 — camada visual não destrutiva */
:root {
  --mr-navy:#071e36; --mr-navy-2:#0b2949; --mr-blue:#1769e0;
  --mr-teal:#0d7a5f; --mr-mint:#20c997; --mr-orange:#f28c28;
  --mr-ink:#152235; --mr-muted:#5b6879; --mr-bg:#f5f8fb;
  --mr-line:#dfe7ef; --mr-white:#fff; --mr-radius:22px;
  --mr-shadow:0 18px 48px rgba(7,30,54,.10);
  --mr-shadow-hover:0 26px 65px rgba(7,30,54,.16);
}

html{scroll-behavior:smooth;scroll-padding-top:92px}
body.medrio-v18{background:var(--mr-bg);color:var(--mr-ink);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;overflow-x:hidden}
body.medrio-v18 *,body.medrio-v18 *::before,body.medrio-v18 *::after{box-sizing:border-box}
body.medrio-v18 img{max-width:100%;height:auto}
body.medrio-v18 a,body.medrio-v18 button{transition:transform .22s ease,box-shadow .22s ease,background-color .22s ease,color .22s ease,border-color .22s ease}
body.medrio-v18 a:focus-visible,body.medrio-v18 button:focus-visible,body.medrio-v18 input:focus-visible,body.medrio-v18 textarea:focus-visible,body.medrio-v18 select:focus-visible{outline:3px solid rgba(32,201,151,.48);outline-offset:3px}

/* Cabeçalhos e barras de acesso */
body.medrio-v18 .medrio-ecosystem,body.medrio-v18 .quick-access{background:rgba(5,25,46,.96)!important;border-bottom:1px solid rgba(255,255,255,.1)!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
body.medrio-v18 .medrio-ecosystem a,body.medrio-v18 .quick-access a{border-radius:999px!important}
body.medrio-v18 nav:not(.medrio-ecosystem):not(.quick-access){box-shadow:0 8px 30px rgba(7,30,54,.07);border-bottom:1px solid rgba(7,30,54,.07)}
body.medrio-v18 .nav-inner,body.medrio-v18 .quick-access-inner{max-width:1240px!important}
body.medrio-v18 .nav-logo img{object-fit:contain!important;height:auto!important;max-height:54px!important;width:auto!important}
body.medrio-v18 .nav-cta,body.medrio-v18 .btn-primary,body.medrio-v18 .btn-main,body.medrio-v18 .hero-btns a,body.medrio-v18 .hero-actions a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px!important;font-weight:800!important;letter-spacing:-.01em}
body.medrio-v18 .nav-cta:hover,body.medrio-v18 .btn-primary:hover,body.medrio-v18 .btn-main:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(13,122,95,.24)}

/* Tipografia, ritmo e largura */
body.medrio-v18 h1,body.medrio-v18 h2,body.medrio-v18 h3{letter-spacing:-.035em;text-wrap:balance}
body.medrio-v18 h1{line-height:1.04!important}
body.medrio-v18 h2{line-height:1.12!important}
body.medrio-v18 p{line-height:1.7}
body.medrio-v18 .container,body.medrio-v18 .section-inner,body.medrio-v18 .hero-container{max-width:1200px!important}
body.medrio-v18 section:not(.hero){scroll-margin-top:94px}
body.medrio-v18 .section-title{max-width:820px;margin-left:auto;margin-right:auto}
body.medrio-v18 .section-sub{max-width:720px;margin-left:auto;margin-right:auto;color:var(--mr-muted)}

/* Cartões e formulários */
body.medrio-v18 :is(.dif-card,.hub-card,.blog-card,.coverage-card,.profile-card,.card,.trail-card,.reward-card,.news-card,.source-card){border-radius:var(--mr-radius)!important;border:1px solid rgba(7,30,54,.09)!important;box-shadow:0 10px 32px rgba(7,30,54,.07)!important;overflow:hidden}
body.medrio-v18 :is(.dif-card,.hub-card,.blog-card,.coverage-card,.profile-card,.card,.trail-card,.reward-card,.news-card,.source-card):hover{transform:translateY(-5px);box-shadow:var(--mr-shadow-hover)!important;border-color:rgba(13,122,95,.24)!important}
body.medrio-v18 input,body.medrio-v18 select,body.medrio-v18 textarea{min-height:50px;border-radius:14px!important;border:1px solid #ccd8e4!important;background:#fff!important;padding:12px 15px!important;color:var(--mr-ink)!important}
body.medrio-v18 textarea{min-height:128px}
body.medrio-v18 input:focus,body.medrio-v18 select:focus,body.medrio-v18 textarea:focus{border-color:var(--mr-teal)!important;box-shadow:0 0 0 4px rgba(13,122,95,.1)!important}

/* Home */
body.page-home .hero{min-height:min(760px,82vh)!important;padding:92px 24px 76px!important;background:radial-gradient(circle at 82% 18%,rgba(32,201,151,.2),transparent 34%),linear-gradient(135deg,#061b31 0%,#0a3153 58%,#0b514d 100%)!important}
body.page-home .hero h1{font-size:clamp(2.7rem,5.4vw,5.4rem)!important;max-width:1050px!important}
body.page-home .hero p{max-width:760px!important;font-size:clamp(1rem,1.6vw,1.25rem)!important}
body.page-home .stats-row{margin-top:54px!important;padding-top:30px!important}
body.page-home :is(.diferenciais-section,.sobre,.hub-section,.historia-section,.blog-section,.coverage-section,.contato-section){padding-top:clamp(66px,7vw,100px)!important;padding-bottom:clamp(66px,7vw,100px)!important}
body.page-home .hub-card{min-height:285px}
body.page-home .timeline-vertical{max-width:870px;margin-inline:auto}

/* MatchFarma */
body.page-matchfarma .hero{min-height:620px!important;background:radial-gradient(circle at 85% 15%,rgba(0,210,161,.22),transparent 35%),linear-gradient(135deg,#061b31,#083c45 72%,#075c4d)!important}
body.page-matchfarma .hero-inner{max-width:1100px!important}
body.page-matchfarma .hero h1{font-size:clamp(2.55rem,5vw,4.8rem)!important}
body.page-matchfarma :is(.section,.launch,.community){padding-top:clamp(64px,7vw,96px)!important;padding-bottom:clamp(64px,7vw,96px)!important}

/* Academia — corrige o painel visual e reduz a página excessivamente longa */
body.page-academia .hero{min-height:650px!important;padding:82px 24px!important;background:radial-gradient(circle at 82% 24%,rgba(242,140,40,.22),transparent 34%),linear-gradient(135deg,#061b31,#0b3152 70%,#44301d)!important}
body.page-academia .hero-container{gap:clamp(34px,6vw,78px)!important;align-items:center!important}
body.page-academia .hero h1{font-size:clamp(2.45rem,4.6vw,4.65rem)!important}
body.page-academia .hero-visual{min-width:0!important}
body.page-academia .hero-image-wrapper{padding:12px!important;border-radius:28px!important;background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(255,255,255,.04))!important;border:1px solid rgba(255,255,255,.2)!important;box-shadow:0 34px 90px rgba(0,0,0,.34)!important;overflow:hidden!important}
body.page-academia .hero-image-wrapper img{display:block!important;width:100%!important;height:auto!important;max-height:560px!important;object-fit:contain!important;border-radius:18px!important;box-shadow:none!important;transform:none!important;background:#fff!important}
body.page-academia .hero-image-wrapper:hover img{transform:none!important}
body.page-academia :is(.beneficios-parceiros,.trilhas,.rewards,.testimonials,.cta-section,.section){padding-top:clamp(58px,6.5vw,90px)!important;padding-bottom:clamp(58px,6.5vw,90px)!important}

/* Conteúdo e páginas de serviço */
body.page-informativos .hero,body.page-receita .hero,body.page-promocoes .hero,body.page-parceiros .hero{background:radial-gradient(circle at 85% 18%,rgba(32,201,151,.18),transparent 32%),linear-gradient(135deg,#061b31,#0a3153 68%,#0b514d)!important}
body.page-informativos :is(.section,.news-section,.sources-section),body.page-receita :is(.section,.content-section),body.page-promocoes :is(.section,.offers-section),body.page-parceiros :is(.section,.content-section){padding-top:clamp(62px,7vw,96px)!important;padding-bottom:clamp(62px,7vw,96px)!important}
body.page-informativos article img,body.page-promocoes article img{aspect-ratio:16/9;object-fit:cover}
body.page-legal main{max-width:900px!important;margin:48px auto!important;padding:clamp(28px,5vw,58px)!important;background:#fff;border:1px solid var(--mr-line);border-radius:var(--mr-radius);box-shadow:var(--mr-shadow)}

/* Rodapé */
body.medrio-v18 footer{background:linear-gradient(135deg,#05182b,#082943)!important;border-top:1px solid rgba(255,255,255,.08);padding-top:58px!important}
body.medrio-v18 footer img{object-fit:contain;max-height:64px;width:auto}

@media (max-width:900px){
  html{scroll-padding-top:72px}
  body.medrio-v18 .nav-inner{padding-inline:18px!important}
  body.medrio-v18 .hero-container{grid-template-columns:1fr!important;text-align:center!important}
  body.medrio-v18 .hero-content{max-width:760px!important;margin-inline:auto!important}
  body.medrio-v18 .hero-btns,body.medrio-v18 .hero-actions{justify-content:center!important}
  body.page-academia .hero-visual{width:min(680px,100%);margin-inline:auto}
  body.page-home .hero{min-height:auto!important;padding-top:72px!important}
}
@media (max-width:640px){
  body.medrio-v18 .medrio-ecosystem,body.medrio-v18 .quick-access{overflow-x:auto;white-space:nowrap}
  body.medrio-v18 .hero{padding:62px 18px!important;min-height:auto!important}
  body.medrio-v18 .hero h1{font-size:clamp(2.15rem,11vw,3.15rem)!important}
  body.medrio-v18 .hero p{font-size:1rem!important}
  body.medrio-v18 .hero-btns,body.medrio-v18 .hero-actions{display:grid!important;width:100%!important;gap:12px!important}
  body.medrio-v18 .hero-btns a,body.medrio-v18 .hero-actions a{width:100%!important}
  body.medrio-v18 :is(.diferenciais-section,.sobre,.hub-section,.historia-section,.blog-section,.coverage-section,.contato-section,.section){padding:58px 18px!important}
  body.medrio-v18 :is(.dif-card,.hub-card,.blog-card,.coverage-card,.profile-card,.card){border-radius:18px!important}
  body.page-academia .hero-image-wrapper{padding:7px!important;border-radius:20px!important}
  body.page-legal main{margin:20px 14px!important;padding:24px 18px!important}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}body.medrio-v18 *,body.medrio-v18 *::before,body.medrio-v18 *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
