/**
 * CSS projetado especialmente para os conteúdos de recomendações de eleições.
 * Em inglês, usamos o termo "elecions advices", assim o prefixo desse grupo de regras será pip-ea-*
 * para diferenciar de outros pontos neste momento.
 * o máximo possível deve-se evitar classes e utilizar regras diretas dentro dos componentes.
 * classes específicas devem ser usadas somente em casos de componentes claros
 */

.pip-ea-home-bg + .fwh-blockquote {
    margin-top: 40px !important;
}

/* ***** LAYOUT - elections advices home ***** */

.pip-ea-home-bg {
    width: 100%;
    background-color: #DEDFE0;
    padding-top: 16px;
    padding-bottom: 16px;
}

.pip-ea-integration-container .pip-ea-home-bg {
    background-color: white;
}

.pip-ea-home-container {
    width: auto;
    max-width: 1180px;
    margin: 16px auto 16px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    border-radius: 56px;
    padding: 40px;
    background-color: white;
    font-size: 16px;
    font-family: var(--font-family-eesti-regular);
    line-height: 1.16em;
    color: #181734;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.08);
}

.pip-ea-integration-container .pip-ea-home-container {
    padding: 40px 16px;
    border: 0;
    box-shadow: none;
}

.pip-ea-home-container > h1 + p {
    color: #636466;
    max-width: 85ch;
}

.pip-ea-integration-container .pip-ea-home-container h1 + p {
    margin: 0 auto;
    max-width: 85ch;
    text-align: center;
}

.pip-ea-integration-container .pip-ea-home-container h1 + p + p,
.pip-ea-integration-container .pip-ea-home-container strong,
.pip-ea-integration-container .pip-ea-home-container em {
    max-width: 120ch;
    margin: 0 auto;
    text-align: center;
}

.pip-ea-home-container h1 {
    font-size: 48px;
    line-height: 1.16em;
    max-width: 30ch;
    font-family: var(--font-family-eesti-bold);
}

.pip-ea-integration-container .pip-ea-home-container h1 {
    max-width: 40ch;
    margin: 0 auto;
    text-align: center;
}

@media screen and (max-width: 920px) {
    .pip-ea-home-container h1 {
        font-size: 36px;
    }
}

@media screen and (max-width: 600px) {
    .pip-ea-home-container h1 {
        font-size: 32px;
    }
}

@media screen and (max-width: 480px) {
    .pip-ea-home-container h1 {
        font-size: 24px;
    }
}

.pip-ea-home-container nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));;
    gap: 16px;
}

.pip-ea-home-container nav a {
    background-color: #FFE4B5;
    border-bottom: 2px solid #FDD16E;
    border-radius: 24px;
    padding: 24px 16px;
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #2C2F53;
    text-align: center;
    font-family: var(--font-family-eesti-bold);
    transition: ease background-color 0.3s;
}

@media screen and (max-width: 1040px) {
    .pip-ea-home-container nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));;
        gap: 24px;
    }
}

@media screen and (max-width: 560px) {
    .pip-ea-home-container nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));;
        gap: 16px;
    }
}

@media screen and (max-width: 400px) {
    .pip-ea-home-container nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.pip-ea-home-container nav a:hover {
    background-color: #FDD16E;
}

.pip-ea-home-container nav a strong {
    border: 2px solid #FDD16E;
    border-radius: 32px;
    width: 64px;
    height: 64px;
    line-height: 64px;
    flex: 0 0 64px;
    text-align: center;
    background-color: white;
    font-size: 32px;
    transition: ease border-color 0.3s;
}

.pip-ea-home-container nav a:hover strong {
    border-color: #2C2F53;
}

.pip-ea-home-container nav a span {
    font-size: 16px;
}

@media screen and (max-width: 1180px) {
    .pip-ea-home-container {
        max-width: calc(100% - 32px);
        margin: 16px;
    }
}

@media screen and (max-width: 920px) {
    .pip-ea-home-container {
        border-radius: 32px;
        padding: 24px;
    }
}

.pip-ea-home-container em a {
    color: #d06a6a !important;
    text-decoration: none;
}

.pip-ea-home-container em a:hover {
    color: #fdd16e !important;
}

/* **** BOX DOWNLOAD **** */

.pip-ea-box-download {
    margin-top: 32px;
    display: flex;
    gap: 24px;
}

.pip-ea-integration-container .pip-ea-box-download {
    justify-content: space-around;
    margin: 16px auto 0 auto;
}

.pip-ea-integration-container .pip-ea-box-download strong {
    text-align: left !important;
}

.pip-ea-box-download {
    flex-direction: row;
}

.pip-ea-box-download > div:first-child {
    flex: 0 0 190px;
}

.pip-ea-box-download > div:first-child > a img {
    width: 100%;
    max-width: 190px;
    height: auto;
}

.pip-ea-box-download > div:nth-child(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pip-ea-box-download .pip-ea-only-mobile {
    display: none;
}

.pip-ea-box-download strong.pip-ea-only-mobile {
    margin-bottom: 10px;
}

.pip-ea-box-download strong {
    font-family: var(--font-family-eesti-bold);
    font-weight: bold;
    color: #2C2F53;
}

@media screen and (max-width: 740px) {
    .pip-ea-box-download {
        flex-direction: column;
        align-items: center;
    }

    .pip-ea-box-download .pip-ea-only-mobile {
        display: block;
    }

    .pip-ea-box-download > div:first-child > a {
        width: 100%;
    }

    .pip-ea-box-download > div:first-child > a > img {
        width: 100%;
        height: auto;
        max-width: 440px;
        text-align: center;
    }

    .pip-ea-box-download > div:nth-child(2) {
        width: 100%;
    }

    .pip-ea-box-download > div:nth-child(2) > .pip-ea-btn {
        width: 100%;
        text-align: center;
    }

    .pip-ea-box-download .pip-ea-only-desktop {
        display: none;
    }

    .pip-ea-box-download.pip-ea-box-recommendation-series > div:first-child > a {
        width: 100%;
        display: block;
    }

    .pip-ea-box-download.pip-ea-box-recommendation-series > div:first-child > a > img {
        max-width: 260px;
        margin: 0 auto;
        display: block;
    }
}

.pip-ea-box-download.pip-ea-box-recommendation-series strong {
    font-family: var(--font-family-eesti-regular);
    font-weight: normal;
    color: #2C2F53;
}

.pip-ea-box-download.pip-ea-box-recommendation-series strong strong {
    font-family: var(--font-family-eesti-bold);
    font-weight: bold;
}

.pip-ea-box-download.pip-ea-box-recommendation-series .pip-ea-btn {
    color: white !important;
}

/* **** FORMULÁRIO MAILCHIMP **** */

#mc_embed_signup {
    clear: left;
    max-width: 600px;
    min-width: 300px;
}

#mc_embed_signup {
    font-size: 14px;
    font-family: var(--font-family-eesti-regular);
    line-height: 1.16em;
    color: #181734;
}

#mc_embed_signup form {
    margin: 0;
}

#mc_embed_signup h2 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: normal;
}

#mc_embed_signup input, #mc_embed_signup select {
    padding: 8px !important;
    border-radius: 8px !important;
}

#mc_embed_signup .mc-field-group select {
    width: 100%;
    height: 32px;
    line-height: 17px;
}

#mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    font-size: 12px;
    font-style: italic;
    margin: 0;
}

#mc_embed_signup .mc-field-group input[type=checkbox] {
    display: inline-block;
    margin-right: 5px;
}

#mc_embed_signup .pip-ea-box-download-checkbox {
    display: flex;
    gap: 15px;
}

#mc_embed_signup .pip-ea-box-download-checkbox label {
    flex: 1;
}

.pip-ea-box-download-form #mc_embed_signup .button {
    background-color: #2C2F53;
    border-radius: 20px;
    height: 40px;
    line-height: 40px;
    padding: 0 16px !important;
    font-family: var(--font-family-eesti-bold);
    font-size: 16px;
    color: white !important;
    width: fit-content;
    text-decoration: none;
    margin: 0;
}

.pip-ea-box-download-form #mc_embed_signup .button[disabled] {
    background-color: #636466;
    color: white !important;
    cursor: not-allowed;
    opacity: 0.7;
}

#mc_embed_signup div#mce-responses {
    float: unset;
    top: unset;
    padding: 0;
    overflow: unset;
    width: unset;
    margin: unset;
    clear: both;
}

#mc_embed_signup div.response {
    margin: 0 0 20px;
    padding: 0;
    font-weight: bold;
    float: unset;
    top: unset;
    z-index: unset;
    width: unset;
    color: #70A7A5 !important;;
}

/* **** BTN **** */

.pip-ea-btn {
    background-color: #2C2F53;
    border-radius: 20px;
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-family: var(--font-family-eesti-bold);
    font-size: 16px;
    color: white !important;
    width: fit-content;
    text-decoration: none;
}

/* ***** LAYOUT ***** */

.pip-ea-advice-container {
    width: auto;
    max-width: 1180px;
    margin: 24px auto 48px auto;
    display: flex;
    flex-direction: row;
    gap: 24px;
    position: relative;

    --pip-ea-blue-title: #181734;
    --pip-ea-blue-texts: #2C2F53;
    --pip-ea-grey-border: #DEDFE0;
}

@media screen and (max-width: 1180px) {
    .pip-ea-advice-container {
        max-width: calc(100% - 10px);
        margin: 24px 16px 24px 16px;
    }
}

.pip-ea-advice-left {
    width: 240px;
    flex-shrink: 0;
}

.pip-ea-advice-main {
    width: calc(100% - 240px - 24px);
    flex-grow: 1;
    font-family: var(--font-family-eesti-regular);
    font-size: 16px;
    line-height: 18.5px;
    color: black;
}

@media screen and (max-width: 768px) {
    .pip-ea-advice-container {
        flex-direction: column;
    }

    .pip-ea-advice-left {
        width: 100%;
    }

    .pip-ea-advice-main {
        width: 100%;
    }
}

/* **** ARTICLE **** */

.pip-ea-advice-main article h2,
.pip-ea-advice-main article p,
.pip-ea-advice-main article h3,
.pip-ea-advice-main article .pip-ea-actions,
.pip-ea-advice-main article .pip-ea-box,
.pip-ea-advice-main article .pip-ea-box-pictures {
    margin-right: 16px;
}

.pip-ea-advice-main article header.pip-ea-only-desktop {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.pip-ea-advice-main article header.pip-ea-only-desktop div {
    flex: 1;
}

.pip-ea-advice-main article header img {
    width: 100%;
    height: auto;
}

.pip-ea-advice-main article header h1 {
    background-color: #FDD16E;
    padding: 16px 24px;
    font-size: 32px;
    line-height: 1.16em;
    font-family: var(--font-family-eesti-bold);
    color: var(--pip-ea-blue-title);
    margin: 0;
}

.pip-ea-advice-main article header p {
    padding: 16px 24px 0 24px;
    font-size: 24px;
    line-height: 1.16em;
    font-family: var(--font-family-eesti-regular);
    color: var(--pip-ea-blue-title);
}

.pip-ea-advice-main article header.pip-ea-only-mobile h1 {
    border-radius: 32px 32px 0 0;
}

.pip-ea-advice-main article header.pip-ea-only-mobile p {
    padding-left: 0;
}

.pip-ea-advice-main article header.pip-ea-only-mobile {
    display: none;
}

@media screen and (max-width: 960px) {
    .pip-ea-advice-main article header.pip-ea-only-mobile {
        display: flex;
        flex-direction: column;
    }

    .pip-ea-advice-main article header.pip-ea-only-desktop {
        display: none;
    }
}

.pip-ea-advice-main article h2 {
    margin-top: 32px;
    margin-bottom: 28px;
    font-size: 28px;
    line-height: 1.16em;
    padding-bottom: 8px;
    font-family: var(--font-family-eesti-bold);
    color: var(--pip-ea-blue-title);
    border-bottom: 4px solid #FDD16E;
    width: fit-content;
}

.pip-ea-advice-main article p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.16em;
    font-family: var(--font-family-eesti-regular);
    color: var(--pip-ea-blue-title);
}

.pip-ea-advice-main article small {
    font-size: 0.75em;
}

.pip-ea-advice-main article ul.pip-ea-list {
    list-style: disc;
    margin-left: 24px;
    padding-left: 16px;
    margin-bottom: 16px;
}

.pip-ea-advice-main article ul.pip-ea-list li {
    line-height: 1.16em;
    margin-bottom: 6px;
}

.pip-ea-advice-main article h3 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.16em;
    font-family: var(--font-family-eesti-bold);
    color: var(--pip-ea-blue-title);
}

.pip-ea-advice-main article a {
    color: #d06a6a !important;
    text-decoration: none;
}

.pip-ea-advice-main article a:hover {
    color: #fdd16e !important;
}

.pip-ea-box {
    clear: both;
    margin-top: 24px;
    margin-bottom: 24px;
    background-color: #FFE4B5;
    padding: 24px 24px 8px 24px;
    border-radius: 24px;
}

.pip-ea-box-pictures {
    border: 8px solid #70A7A5;
    background-color: white;
    padding: 48px 64px;
    font-size: 32px;
    font-family: var(--font-family-eesti-bold);
    color: var(--pip-ea-blue-title);
    line-height: 1.16em;
    margin-bottom: 32px;
}

.pip-ea-actions ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pip-ea-actions ul li {
    background: #DEDFE0;
    font-size: 17px;
    line-height: 1.16em;
    padding: 24px 24px 24px 24px;
    border-radius: 24px;
    font-family: var(--font-family-eesti-regular);
    color: var(--pip-ea-blue-title);
}

.pip-ea-advice-main article table {
    border: 2px solid var(--pip-ea-grey-border);
}

.pip-ea-advice-main article table td, .pip-ea-advice-main article table th {
    border: 1px solid var(--pip-ea-grey-border);
    padding: 6px;
    border-collapse: collapse;
}

/* **** PICTURES **** */

.pip-ea-pictures img {
    width: 100%;
    max-width: fit-content;
    height: auto;
}

img.pip-ea-picture-desktop {display: block;}
img.pip-ea-picture-tablet {display: none; max-width: 540px; }
img.pip-ea-picture-mobile {display: none;}

@media screen and (min-width: 540px) and (max-width: 980px) {
    img.pip-ea-picture-desktop {display: none;}
    img.pip-ea-picture-tablet {display: block;}
    img.pip-ea-picture-mobile {display: none;}
}

@media screen and (max-width: 540px) {
    img.pip-ea-picture-desktop {display: none;}
    img.pip-ea-picture-tablet {display: none;}
    img.pip-ea-picture-mobile {display: block;}
}

/* **** MENU **** */

.pip-ea-advice-menu {
    width: 100%;
    position: sticky;
    top: 16px;
    font-family: var(--font-family-eesti-bold);
    color: var(--pip-ea-blue-texts);
    font-size: 16px;
    line-height: 18.5px;
    display: flex;
    gap: 16px;
    flex-direction: column;
}

.pip-ea-advice-menu a {
    color: var(--pip-ea-blue-texts) !important;
    text-decoration: none;
    transition: ease background-color 0.3s;
}

.pip-ea-advice-menu nav {
    border: 2px solid var(--pip-ea-grey-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.pip-ea-advice-menu > a {
    padding-bottom: 6px;
    border-bottom: 2px solid var(--pip-ea-blue-texts);
    width: fit-content;
}

.pip-ea-advice-menu nav a {
    border-bottom: 2px solid var(--pip-ea-grey-border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pip-ea-advice-menu nav a:hover {
    background-color: #EEEEEE;
}

.pip-ea-advice-menu nav a.pip-ea-active {
    background-color: var(--pip-ea-grey-border);
}

.pip-ea-advice-menu nav a strong {
    border: 2px solid var(--pip-ea-blue-texts);
    border-radius: 16px;
    width: 32px;
    height: 32px;
    line-height: 28px;
    flex: 0 0 32px;
    text-align: center;
    background-color: white;
}

.pip-ea-advice-menu nav a span {
    margin-top: 2px;
}

.pip-ea-advice-menu a:last-child {
    border-bottom: 0;
}

nav#pip-ea-menu-mobile a.pip-ea-active span {
    flex-grow: 1;
}

nav#pip-ea-menu-mobile a.pip-ea-active img {
    transition: ease transform 0.3s;
}
nav#pip-ea-menu-mobile.pip-ea-close a.pip-ea-active img {
    transform: rotate(180deg);
}

nav#pip-ea-menu-mobile.pip-ea-open a.pip-ea-active img {
    transform: rotate(0);
}

nav#pip-ea-menu-mobile a.pip-ea-menu-mobile-item {
    transition: ease opacity 0.1s;
}

.pip-ea-advice-menu nav#pip-ea-menu-mobile {
    display: none;
}

@media screen and (max-width: 768px) {
    .pip-ea-advice-menu nav#pip-ea-menu-desktop {
        display: none;
    }

    .pip-ea-advice-menu nav#pip-ea-menu-mobile {
        display: flex;
    }
}

/* <div class="pip-ea-box-download"> */
/* <div> */
/* <strong class="pip-ea-only-mobile">{$texto}</strong> */
/* <a href="{$url}" target="_blank" id="pip-ea-box-download-thumb"> */
/* <img src="{$imgPath}" alt="Imagem de capa do documento PDF referente ao guia: {$title}"/> */
/* </a> */
/* </div> */
/* <div> */
/* <strong class="pip-ea-only-desktop" style="font-weight: normal; font-family: var(--font-family-eesti-regular)">{$texto}</strong> */
/* <a href="{$url}" target="_blank" class="pip-ea-btn" style="color: white !important;">Acesse aqui</a> */
/* </div> */
/* </div> */