/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Child theme do Blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* Aplicar fonte Poppins em todo o site */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

 .stk-row.stk-80d7c10-column {
    display: flex;
    align-items: stretch;
 }

 .stk-row.stk-80d7c10-column > .stk-block-column {
    display: flex;
    align-self: stretch;
    min-height: 0;
 }

 .stk-row.stk-80d7c10-column > .stk-block-column > .stk-column-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
 }

 .stk-row.stk-80d7c10-column > .stk-block-column > .stk-column-wrapper > .stk-container {
    display: flex;
    flex: 1;
    min-height: 0;
 }

 .stk-row.stk-80d7c10-column > .stk-block-column > .stk-column-wrapper > .stk-container > .stk-block-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    min-height: 0;
 }

 @media (max-width: 768px) {
    .stk-row.stk-80d7c10-column {
        display: block;
    }

    .stk-row.stk-80d7c10-column > .stk-block-column {
        display: block;
    }
 }

/* Margin nos lados do container do header */
.ct-container-fluid {
    padding: 0 40px;
}

/* Estilos para container Stackable com notícias */
.stk-block-columns.stk-1b81909 {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.stk-block-columns.stk-1b81909 .stk-row {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.stk-block-columns.stk-1b81909 .stk-block-column {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.stk-block-columns.stk-1b81909 .stk-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
    box-sizing: border-box;
}

.stk-block-columns.stk-1b81909 .stk-block-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Responsivo - Mobile para container de notícias */
@media (max-width: 768px) {
    .stk-block-columns.stk-1b81909 {
        padding: 0 20px;
    }

    .stk-block-columns.stk-1b81909 .stk-block-column {
        padding: 0;
    }

    .stk-block-columns.stk-1b81909 .stk-container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .stk-block-columns.stk-1b81909 {
        padding: 0 15px;
    }
}


/* Remover padding em mobile para bloco stk-bbbe2e7 */
@media (max-width: 768px) {
    .stk-block-columns.stk-bbbe2e7 {
        padding: 0 !important;
        margin: 0 !important;
    }

    .stk-block-columns.stk-bbbe2e7 .stk-row {
        padding: 0 !important;
        margin: 0 !important;
    }

    .stk-block-columns.stk-bbbe2e7 .stk-block-column {
        padding: 0 !important;
        margin: 0 !important;
    }

    .stk-block-columns.stk-bbbe2e7 .stk-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    .stk-block-columns.stk-bbbe2e7 .stk-block-content {
        padding: 0 !important;
        margin: 0 !important;
    }

    .testemunha-container{
        max-height:100px;
    }
}

/* Estilos para títulos com classe title-pages - sublinhado animado */
.title-pages .stk-block-heading__text,
.title-pages h1,
.title-pages h2,
.title-pages h3,
.title-pages h4,
.title-pages h5,
.title-pages h6 {
    position: relative;
}

.title-pages .stk-block-heading__text em,
.title-pages h1 em,
.title-pages h2 em,
.title-pages h3 em,
.title-pages h4 em,
.title-pages h5 em,
.title-pages h6 em {
    position: relative;
    display: inline-block;
}

.title-pages .stk-block-heading__text .nectar-scribble,
.title-pages h1 .nectar-scribble,
.title-pages h2 .nectar-scribble,
.title-pages h3 .nectar-scribble,
.title-pages h4 .nectar-scribble,
.title-pages h5 .nectar-scribble,
.title-pages h6 .nectar-scribble {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    overflow: visible;
}

.title-pages .stk-block-heading__text .nectar-scribble path,
.title-pages h1 .nectar-scribble path,
.title-pages h2 .nectar-scribble path,
.title-pages h3 .nectar-scribble path,
.title-pages h4 .nectar-scribble path,
.title-pages h5 .nectar-scribble path,
.title-pages h6 .nectar-scribble path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: nectarScribbleDrawTitlePages 1.8s ease-out forwards;
}

@keyframes nectarScribbleDrawTitlePages {
    to {
        stroke-dashoffset: 0;
    }
}

/* Estilos para formulário de contacto */
.stk-b11bbc8-inner-blocks {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.stk-b11bbc8-inner-blocks .stk-block-heading {
    margin-bottom: 10px;
}

.stk-b11bbc8-inner-blocks .stk-block-heading__text {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.stk-b11bbc8-inner-blocks .stk-block-text {
    margin-bottom: 30px;
}

.stk-b11bbc8-inner-blocks .stk-block-text__text {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Estilos do Formidable Forms */
#frm_form_1_container {
    margin-top: 0;
}

.frm_form_fields fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.frm_form_fields legend {
    display: none;
}

.frm_fields_container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Estilos para campos do formulário */
.frm_form_field {
    margin-bottom: 0;
}

.frm_primary_label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.frm_required {
    color: #e53e3e;
    margin-left: 2px;
}

/* Inputs e textareas */
.frm_form_field input[type="text"],
.frm_form_field input[type="email"],
.frm_form_field input[type="tel"],
.frm_form_field textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    background-color: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.frm_form_field input[type="text"]:focus,
.frm_form_field input[type="email"]:focus,
.frm_form_field input[type="tel"]:focus,
.frm_form_field textarea:focus {
    outline: none;
    border-color: #49B9C4;
    box-shadow: 0 0 0 3px rgba(73, 185, 196, 0.1);
}

.frm_form_field input[type="text"]:hover,
.frm_form_field input[type="email"]:hover,
.frm_form_field input[type="tel"]:hover,
.frm_form_field textarea:hover {
    border-color: rgba(0, 0, 0, 0.25);
}

.frm_form_field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Descrição do campo */
.frm_description {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 6px;
    line-height: 1.4;
}

/* Campos full width */
.frm_full {
    width: 100%;
}

/* Botão de submissão */
.frm_submit {
    margin-top: 8px;
}

.frm_button_submit {
    background: #49B9C4;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(73, 185, 196, 0.2);
}

.frm_button_submit:hover {
    background: #3a9ca5;
    box-shadow: 0 4px 12px rgba(73, 185, 196, 0.3);
    transform: translateY(-1px);
}

.frm_button_submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(73, 185, 196, 0.25);
}

/* Campo hidden (honeypot) */
#frm_field_9_container {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Campo captcha */
#frm_field_8_container {
    margin-bottom: 0;
}

/* Estados de erro */
.frm_form_field input.frm_error,
.frm_form_field textarea.frm_error {
    border-color: #e53e3e;
}

.frm_error_style {
    color: #e53e3e;
    font-size: 13px;
    margin-top: 6px;
}

/* Mensagens de sucesso */
.frm_message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
}

.frm_message.frm_success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

/* Responsivo */
@media (max-width: 768px) {
    .stk-b11bbc8-inner-blocks {
        padding: 30px 15px;
    }

    .stk-b11bbc8-inner-blocks .stk-block-heading__text {
        font-size: 26px;
    }

    .stk-b11bbc8-inner-blocks .stk-block-text__text {
        font-size: 16px;
    }

    .frm_fields_container {
        gap: 20px;
    }

    .frm_button_submit {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .stk-b11bbc8-inner-blocks {
        padding: 20px 10px;
    }

    .frm_form_field input[type="text"],
    .frm_form_field input[type="email"],
    .frm_form_field input[type="tel"],
    .frm_form_field textarea {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Estilos para banner-links com efeito blur */
.stk-3ca0b58.banner-links,
.banner-links.stk-3ca0b58 {
    position: relative;
    background: rgb(255 255 255 / 60%) !important;
    backdrop-filter: blur(12px) saturate(10%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
}

/* Garantir que o conteúdo fica acima */
.stk-3ca0b58.banner-links > *,
.banner-links.stk-3ca0b58 > * {
    position: relative;
    z-index: 1;
}

/* Ajustes para os elementos internos */
.stk-3ca0b58.banner-links .stk-row,
.banner-links.stk-3ca0b58 .stk-row {
    position: relative;
    z-index: 1;
}

/* Fallback para navegadores que não suportam backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
    .stk-3ca0b58.banner-links,
    .banner-links.stk-3ca0b58 {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}

/* Ajustes responsivos para o blur */
@media (max-width: 768px) {
    .stk-3ca0b58.banner-links,
    .banner-links.stk-3ca0b58 {
        backdrop-filter: blur(10px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
        margin: 0 !important;
        width: 100%;
    }
    
    /* Organizar portais externos em grid 2x2 */
    .portais-externos .stk-row.stk-b7ff4c4-column {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 12px !important;
    }
    
    .portais-externos .stk-block-column {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 70px !important;
        padding: 12px !important;
    }
    
    /* Logos centralizados */
    .portais-externos .stk-block-image,
    .portais-externos .stk-img-wrapper,
    .portais-externos .stk-link {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .portais-externos img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 50px !important;
        object-fit: contain !important;
    }
    
    /* Botão Área Reservada ao lado do SIGA */
    .portais-externos .stk-block-column.stk-cccefc0 {
        grid-column: auto !important;
        min-height: 70px !important;
        padding: 12px !important;
    }
    
    .portais-externos .stk-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
}

