/*
 * Consulmar v21 — Principais Marcos Históricos no mobile.
 * Neutraliza exclusivamente o slider legado de 600px/position:absolute.
 * O documento mantém o scroll vertical nativo; esta secção não cria scroller.
 */

.csm-history-closing-v21 {
  display: none;
}

@media (max-width: 767px) {
  .vc_row.hist_marcs,
  .vc_row.hist_marcs * {
    box-sizing: border-box;
  }

  .vc_row.hist_marcs {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 22px 0 0 !important;
    padding: 0 8px 42px 0 !important;
    overflow: visible !important;
    overflow-y: visible !important;
    overscroll-behavior: auto !important;
    touch-action: pan-y !important;
  }

  .vc_row.hist_marcs > .wpb_column,
  .vc_row.hist_marcs > .vc_column_container,
  .vc_row.hist_marcs > .wpb_column > .vc_column-inner,
  .vc_row.hist_marcs > .vc_column_container > .vc_column-inner,
  .vc_row.hist_marcs > .wpb_column > .vc_column-inner > .wpb_wrapper,
  .vc_row.hist_marcs > .vc_column_container > .vc_column-inner > .wpb_wrapper {
    position: relative !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-y: visible !important;
    touch-action: pan-y !important;
  }

  /* Timeline sobreposta: linha à esquerda e setas à direita. */
  .vc_row.hist_marcs .hist-timeline {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 5 !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vc_row.hist_marcs .tl-years-viewport,
  .vc_row.hist_marcs .tl-years,
  .vc_row.hist_marcs .tl-year,
  .vc_row.hist_marcs .tl-dot {
    display: none !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-track {
    position: absolute !important;
    left: 9px !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 2px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: #dfe7ee !important;
    overflow: visible !important;
    transform: none !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-track::before {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: #dfe7ee !important;
    transform: translate(-50%, -50%) !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-track::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 30px !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #00436b !important;
    transform: translate(-50%, -50%) !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-fill {
    position: absolute !important;
    display: block !important;
    left: 0 !important;
    top: 30px !important;
    bottom: 0 !important;
    width: 2px !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 2px !important;
    background: #00436b !important;
    transform: none !important;
    transition: none !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-nav {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 7px !important;
    width: 30px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    pointer-events: auto !important;
    z-index: 8 !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-prev,
  .vc_row.hist_marcs .hist-timeline .tl-next {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #00436b !important;
    border-radius: 50% !important;
    background: #fcfffe !important;
    color: #00436b !important;
    box-shadow: none !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transform: none !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-prev::before,
  .vc_row.hist_marcs .hist-timeline .tl-next::before {
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }

  .vc_row.hist_marcs .hist-timeline .tl-prev::before { content: "↑" !important; }
  .vc_row.hist_marcs .hist-timeline .tl-next::before { content: "↓" !important; }

  .vc_row.hist_marcs .hist-timeline .tl-prev:disabled,
  .vc_row.hist_marcs .hist-timeline .tl-next:disabled {
    border-color: #c9d5df !important;
    color: #c9d5df !important;
    opacity: 1 !important;
  }

  /* Painel ativo imediatamente ao lado da linha. */
  .vc_row.hist_marcs .hist-slider {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: calc(100% - 42px) !important;
    max-width: calc(100% - 42px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 0 34px !important;
    padding: 0 !important;
    overflow: visible !important;
    overflow-y: visible !important;
    transform: none !important;
    touch-action: pan-y !important;
  }

  .vc_row.hist_marcs .hist-slider > .vc_row.historia,
  .vc_row.hist_marcs .vc_row.historia {
    position: relative !important;
    inset: auto !important;
    float: none !important;
    display: none !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: visible !important;
    transform: none !important;
    transition: none !important;
    z-index: 1 !important;
  }

  .vc_row.hist_marcs .hist-slider > .vc_row.historia.is-active,
  .vc_row.hist_marcs .vc_row.historia.is-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .vc_row.hist_marcs .vc_row.historia::before,
  .vc_row.hist_marcs .vc_row.historia::after {
    content: none !important;
    display: none !important;
  }

  .vc_row.hist_marcs .vc_row.historia > .wpb_column,
  .vc_row.hist_marcs .vc_row.historia > .vc_column_container,
  .vc_row.hist_marcs .vc_row.historia .wpb_column,
  .vc_row.hist_marcs .vc_row.historia .vc_column_container,
  .vc_row.hist_marcs .vc_row.historia .vc_column-inner,
  .vc_row.hist_marcs .vc_row.historia .wpb_wrapper {
    position: relative !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  .vc_row.hist_marcs .ano_1970_text,
  .vc_row.hist_marcs .hist-copy,
  .vc_row.hist_marcs .rope-wrap {
    width: calc(100% - 38px) !important;
    max-width: calc(100% - 38px) !important;
    margin-left: 0 !important;
    margin-right: 38px !important;
  }

  .vc_row.hist_marcs .ano_1970_text {
    margin-top: 30px !important;
    margin-bottom: 14px !important;
  }

  .vc_row.hist_marcs .ano_1970_text p {
    width: 100% !important;
    margin: 0 !important;
    color: #00436b !important;
    font-family: "Montserrat-Medium", "Montserrat", sans-serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.035em !important;
  }

  .vc_row.hist_marcs .hist-copy {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }

  .vc_row.hist_marcs .hist-copy p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    color: #0b3557 !important;
    font-family: "Montserrat-Regular", "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.32 !important;
    letter-spacing: -0.02em !important;
  }

  .vc_row.hist_marcs .rope-wrap {
    display: block !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }

  .vc_row.hist_marcs .rope-wrap .qs-rope {
    display: block !important;
    width: 48px !important;
    max-width: 48px !important;
    height: auto !important;
    margin: 0 !important;
  }

  .vc_row.hist_marcs .hist_img {
    position: relative !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vc_row.hist_marcs .hist_img > .vc_column-inner,
  .vc_row.hist_marcs .hist_img > .vc_column-inner > .wpb_wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vc_row.hist_marcs .hist_img .wpb_single_image,
  .vc_row.hist_marcs .hist_img .vc_figure,
  .vc_row.hist_marcs .hist_img .vc_single_image-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .vc_row.hist_marcs .hist_img img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 30px 0 0 !important;
    object-fit: cover !important;
    transform: none !important;
  }

  .vc_row.hist_marcs .csm-history-closing-source-v21 {
    display: none !important;
  }

  .vc_row.hist_marcs .csm-history-closing-v21 {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 24px 0 0 !important;
    padding: 0 !important;
  }

  .vc_row.hist_marcs .csm-history-closing-v21 p {
    width: 100% !important;
    margin: 0 !important;
    color: #00436b !important;
    font-family: "Montserrat-Medium", "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
  }
}

@media (min-width: 768px) {
  .vc_row.hist_marcs .csm-history-closing-v21 {
    display: none !important;
  }
}
