/* Global */
:root {
    --purple: #3C1053;
    --pink: #D0006F;
    --magenta-medium: #D0006F;
    --gray-1: #666666;
    --gray-2: #333333;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: normal;
    color: var(--gray-1);
    background-color: #FBF0F0;
}

h1,
h2 {
    font-family: Arial, Helvetica, sans-serif;
}

.closed-area h3 {
    font-family: Arial, Helvetica, sans-serif;
}

.ff-cormorant {
    font-family: Arial, Helvetica, sans-serif;
}

.text-gradient-purple {
    background: linear-gradient(to bottom, var(--purple) 0%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 10px;
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 1240px;
    }
}

b {
    font-weight: bold;
}

section.content {
    margin-top: 74px;
}

section.content h2 {
    font-weight: bold;
    font-size: 45px;
    line-height: 45px;
    color: var(--purple);
}

section.content h3 {
    font-weight: bold;
    font-size: 20px;
    line-height: 30px;
}

.closed-area section.content h3 {
    font-weight: bold;
    font-size: 35px;
    line-height: 100%;
}

.closed-area section.content h4 {
    font-weight: bold;
    font-size: 20px;
    line-height: 30px;
}

.bg-purple {
    background-color: var(--purple) !important;
}

.bg-magenta {
    background-color: var(--magenta-medium) !important;
}

.text-purple {
    color: var(--purple) !important;
}

.text-gray1 {
    color: var(--gray-1) !important;
}

.text-gray2 {
    color: var(--gray-2) !important;
}

.mt-53px {
    margin-top: 53px;
}

.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    max-height: 97%;
}

.card {
    border: none;
    border-radius: 0;
    color: var(--gray-2);
}

.card img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.radius-top-17px {
    border-top-left-radius: 17px !important;
    border-top-right-radius: 17px !important;
}

.radius-top-right-17px {
    border-top-right-radius: 17px !important;
}

.radius-bottom-17px {
    border-bottom-left-radius: 17px !important;
    border-bottom-right-radius: 17px !important;
}

.btn.btn-azmed {
    border: 2px solid var(--purple);
    background-color: var(--purple);
    color: #ffffff;
    border-radius: 100px;
}

.btn-azmed:hover,
.btn-azmed:focus {
    background-color: #ffffff;
    color: var(--purple);
}

.dialog-balloon {
    margin-top: 20px;
    background-color: var(--magenta-medium);
    position: relative;
}

.dialog-balloon:not(.no-arrow)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 15px solid #D0006F;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Section banner */
.banner {
    background-image: url(../img/bg-banner.png);
    background-size: cover;
    background-position: center;
}

.banner h1 {
    font-size: 84px;
    font-weight: bold;
    line-height: 84px;
}

/* Header */
.header {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: center;
    top: 540px;
    left: 0;
    z-index: 5;
}

/* Quando o menu deve virar fixo */
.header.sticky {
    position: fixed;
    top: 20px;
}

header .bg-menu {
    border-radius: 20px;
    box-shadow: 0 0 15px 10px #c518a51a;
}

header .menu {
    display: flex;
    padding: 0;
    margin: 0;
}

header .menu li a.active:before,
header .menu li a:hover:before {
    width: 38px;
    height: 1px;
    display: block;
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    content: "";
}

header .menu li a {
    color: #fff;
    text-decoration: none;
    position: relative;
}

header .menu li.last a {
    color: #fff;
    background: #de6c50;
    padding: 2px 12px;
    border-radius: 8px;
    transition: ease all 0.4s;
    border: 1px solid transparent;
    display: none;
}

header .menu li {
    list-style: none;
}

header .menu li a {
    display: inline-block;
    white-space: nowrap;
    /* impede quebra de linha */
    text-decoration: none;
    color: var(--gray-2);
    ;
}


.menu-item.active {
    background-color: var(--purple);
    color: var(--white);
    border-radius: 100px;
}

/* Mostra quando o link tiver a classe active */
.menu-item.active .linha-ativa {
    display: block;
}


@media (max-width: 991px) {
    .header {
        top: calc(100% - 20px);
    }
}

/*Menu mobile */
@media (max-width: 991.8px) {
    header .abrirMenu {
        width: 58px;
        float: right;
        z-index: 1000;
        position: relative;
        text-align: center;
        color: var(--gray-2);
        font-size: 24px;
        height: 40px;
        line-height: 20px;
        padding-left: 82px;
        margin-right: 37px;
        font-family: "Poppins";
        padding-top: 8px;
    }

    header .abrirMenu span {
        position: absolute;
        left: 0;
        color: var(--gray-2);
    }

    header .abrirMenu.change span {
        opacity: 1;
    }

    header .abrirMenu div {
        width: 22px;
        height: 2px;
        background-color: var(--gray-2);
        margin: 4px 0 0;
        transition: 0.4s;
        position: relative;
        transform: rotate(0deg);
    }

    header .abrirMenu div.bar3 {
        margin-bottom: 0;
    }

    @keyframes topbarOpen {
        0% {
            top: 0px;
            transform: rotate(0deg);
            background: #fff;
        }

        50% {
            top: 6px;
            transform: rotate(0deg);
            background: #fff;
        }

        100% {
            top: 6px;
            transform: rotate(-45deg);
            background: #fff;
        }
    }

    @keyframes middlebarOpen {
        0% {
            width: 22px;
            left: 0;
        }

        100% {
            width: 0px;
            left: 11px;
        }
    }

    @keyframes bottombarOpen {
        0% {
            top: 0px;
            transform: rotate(0deg);
            background: #fff;
        }

        50% {
            top: -6px;
            transform: rotate(0deg);
            background: #fff;
        }

        100% {
            top: -6px;
            transform: rotate(45deg);
            background: #fff;
        }
    }

    header .abrirMenu.change .bar1 {
        animation: topbarOpen 0.25s;
        top: 6px;
        transform: rotate(-45deg);
        background: var(--gray-2);
    }

    /* Fade out the second bar */
    header .abrirMenu.change .bar2 {
        animation: middlebarOpen 0.5s;
        width: 0px;
        left: 11px;
    }

    /* Rotate last bar */
    header .abrirMenu.change .bar3 {
        animation: topbarOpen 0.25s;
        top: -6px;
        transform: rotate(45deg);
        background: var(--gray-2);
    }

    @keyframes topbarClose {
        0% {
            top: 6px;
            transform: rotate(-45deg);
            background: #fff;
        }

        50% {
            top: 6px;
            transform: rotate(0deg);
            background: #fff;
        }

        100% {
            top: 0px;
            transform: rotate(0deg);
            background: #fff;
        }
    }

    @keyframes middlebarClose {
        0% {
            width: 0px;
            left: 11px;
        }

        100% {
            width: 22px;
            left: 0px;
        }
    }

    @keyframes bottombarClose {
        0% {
            top: -6px;
            transform: rotate(45deg);
            background: #fff;
        }

        50% {
            top: -6px;
            transform: rotate(0deg);
            background: #fff;
        }

        100% {
            top: 0px;
            transform: rotate(0deg);
            background: #fff;
        }
    }

    header .abrirMenu.close .bar1 {
        animation: topbarClose 1s;
        top: 0px;
        transform: rotate(0deg);
        background: #fff;
    }

    /* Fade out the second bar */
    header .abrirMenu.close .bar2 {
        animation: middlebarClose 0.5s;
        width: 22px;
        left: 0;
    }

    /* Rotate last bar */
    header .abrirMenu.close .bar3 {
        animation: bottombarClose 1s;
        top: 0px;
        transform: rotate(0deg);
        background: #fff;
    }

    header .menu {
        top: 60px;
        width: calc(100% - 24px);
        padding: 0 40px !important;
        display: block;
        background: rgba(255, 255, 255, 76%);
        box-shadow: 0px 483px 135px 0px rgba(0, 0, 0, 0), 0px 309px 124px 0px rgba(0, 0, 0, 0.01), 0px 174px 104px 0px rgba(0, 0, 0, 0.05), 0px 77px 77px 0px rgba(0, 0, 0, 0.09), 0px 19px 42px 0px rgba(0, 0, 0, 0.1);
        border-radius: 40px;
        overflow: hidden;
        height: 0;
        -webkit-transition: all 0.5s ease;
        -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
        transition: all 0.5s ease;
        left: 0;
        position: fixed;
        overflow-y: auto;
        display: block !important;
        margin: 0 12px;
    }

    header .menu .nav-menu li a.active,
    header .menu .nav-menu li a:hover {
        color: #f1f1f1;
    }

    header .menu li {
        display: block;
        margin-bottom: 20px;
    }

    header .menu li:first-child {
        margin-top: 15px;
    }

    header .menu li:last-child {
        margin-bottom: 15px;
    }

    header .menu li a {
        display: inline-block;
    }

    header .menu li a:before {
        display: none;
    }

    header .menu.active {
        max-height: 1000px;
        z-index: 100;
        height: auto;
        margin: 0 12px;
    }

    header .menu li.last {
        position: relative;
        right: initial;
        margin: 0;
    }

    header .menu li .submenu li {
        margin: 10px 0 0;
        padding: 0;
    }

    header .menu li .submenu li a {
        max-width: 162px;
        border-radius: 50px;
    }
}

/* ANS */
.card-saber-exame {
    padding: 61px 60px 39px 57px;
}

.card-rol {
    padding: 50px 28px 46px 40px
}

.procedures {
    margin-top: 73px;
}

.card-procedure {
    border-radius: 17px;
}

.card-procedure p {
    display: flex;
    align-items: center;
    min-height: 150px;
}

.procedure-1 {
    width: 380px;
    margin-top: -40px;
}

.procedure-2 {
    width: 170px;
    margin-top: -53px;
}

/* Medicamentos */
.img-bg-medicamentos {
    background-image: url(../img/medicamentos-01.png);
    background-position: bottom;
    background-size: cover;
    width: 100%;
    padding-top: 100%;
    border-radius: 17px;
}

.info-exams {
    padding: 3rem 0;
}

.info-exams-content {
    background-color: var(--magenta-medium);
    border-radius: 107.47px;
    color: #fff;
    gap: 2rem;
    position: relative;
}

.info-exams-img {
    position: absolute;
    left: -10px;
}

.info-exams-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.info-exams-text {
    margin-left: 291px;
    flex: 1;
}

.info-exams-text p {
    font-size: 19px;
    margin: 0;
    max-width: 745px;
}

.info-exams-text strong {
    font-weight: 700;
}

.dut {
    padding-top: 38px;
    padding-left: 50px;
    padding-right: 45px;
    border-radius: 17px;
    background: linear-gradient(169deg, var(--purple) 50%, var(--pink) 100%);
    color: #fff;
}

.dut-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.dut-line {
    flex-shrink: 0;
    height: 149px;
    width: auto;
}

/* Escalas */
.box-icon-escalas {
    border-radius: 17px 0 0 17px;
}

.box-text-escalas {
    border-radius: 0 17px 17px 0;
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

section.escalas .dialog-balloon {
    padding: 24px 79px 24px 95px;
}

section.escalas .dialog-balloon h3 {
    font-size: 18px;
}

/* referências */
section.references {
    font-size: 14px;
    line-height: 140%;
}

.text-references-2 {
    font-size: 12px;
}

/* Saphnelo */
.card-default-treatment {
    padding: 68px 36px 62px 33px;
    border-radius: 17px 0 0 17px;
}

.card-default-treatment-text {
    padding: 38px 42px 36px 70px;
    border-radius: 0 17px 17px 0;
}

.card-default-treatment-text ol {
    list-style: none;
    counter-reset: item;
    margin: 0;
    padding-left: 0;
}

.card-default-treatment-text ol li {
    counter-increment: item;
    padding-left: 64px;
    position: relative;
}

.card-default-treatment-text ol li:not(:first-child) {
    margin-top: 24px;
}

.card-default-treatment-text ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--magenta-medium);
    /* cor do círculo */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Orientacao */
.box-staps {
    position: relative;
}

/* Linha contínua de timeline (atrás dos círculos) */
.box-staps ol {
    list-style: none;
    counter-reset: item;
    margin: 0;
    padding-left: 0;
    position: relative;
}

/* Linha inteira da timeline */
.box-staps ol::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 0;
    width: 5px;
    height: 94%;
    background: var(--white);
    opacity: 1;
    border-radius: 0;
    z-index: 0;
}

.box-staps ol>li {
    counter-increment: item;
    padding-left: 64px;
    position: relative;
    margin-top: 32px;
}

.box-staps ol>li:first-child {
    margin-top: 0;
}

/* Círculos numerados (sobre a timeline) */
.box-staps ol>li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    color: var(--magenta-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 0 3px var(--bg-magenta, transparent);
    /* opcional para destacar */
}

/* 2º nível */
.box-staps ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* 3º nível → traço "-" */
.box-staps ul ul li {
    list-style: none;
    position: relative;
    padding-left: 14px;
}

.box-staps ul ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
}

.title-criteria {
    margin-top: 47px;
    margin-bottom: 38px;
}

.subtitle-criteria {
    margin-top: 32px;
    margin-bottom: 20px;
}

.subtitle-criteria.with-text {
    margin-bottom: 10px;
}

.text-criteria {
    margin-top: 0;
    margin-bottom: 24px;
}

@media (min-width: 992px) {
    .limit-width-desktop {
        max-width: 731px;
    }
}

@media (max-width: 1199px) {
    .banner h1 {
        font-size: 70px;
        font-weight: bold;
        line-height: 80px;
    }
}

@media (max-width: 991px) {
    .banner h1 {
        font-size: 60px;
        font-weight: bold;
        line-height: 60px;
    }

    section.content h2 {
        font-weight: bold;
        font-size: 35px;
        line-height: 40px;
        color: var(--purple);
    }

    .radius-bottom-mobile-17px {
        border-bottom-left-radius: 17px !important;
        border-bottom-right-radius: 17px !important;
    }

    .card-saber-exame {
        padding: 24px;
    }

    .card-rol {
        padding: 1rem 1.5rem;
    }

    .dut {
        padding-bottom: 38px;
    }

    .dut-content {
        flex-direction: column;
        gap: 0;
    }

    .dut-content hr {
        border-top: 5px solid var(--magenta-medium);
        opacity: 1;
        color: var(--magenta-medium);
        width: 149px;
        margin: 0 auto 1rem;
    }

    section.escalas .dialog-balloon {
        padding: 24px 79px;
    }

    .img-bg-medicamentos {
        background-position: 100% 45%;
        background-repeat: no-repeat;
        padding-top: 35%;
    }

    .info-exams-img {
        position: relative;
        top: -75px;
        text-align: center;
    }

    .info-exams-img img {
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .info-exams-text {
        margin-top: -65px;
        margin-left: 0;
        flex: 1;
    }

    .info-exams-text p {
        max-width: 100%;
        padding: 0 3rem;
    }

    /* referências */
    section.references {
        font-size: 10px;
    }

    .text-references-2 {
        font-size: 10px;
    }

    .card-procedure p {
        min-height: auto;
    }

    .card-default-treatment {
        padding: 32px;
        border-radius: 17px 17px 0 0;
    }

    .card-default-treatment-text {
        padding: 32px;
        border-radius: 0 0 17px 17px;
    }
}