/* Complementos controlados sobre style-blue.css mantendo 100% da identidade PortoLaw */

/* Corrigir overflow do mapa Google em tablet/telemóvel */
#PortoLaw iframe {
    width: 100% !important;
    max-width: 100%;
    display: block;
    border: 0;
}

/* Cabeçalho interno para subpáginas */
.page-banner {
    background: linear-gradient(rgba(15, 25, 38, 0.78), rgba(15, 25, 38, 0.78)), url('../images/title-bg.jpg') center center no-repeat;
    background-size: cover;
    padding: 130px 0 60px;
    color: #fff;
    text-align: center;
}
.page-banner h1 {
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    text-transform: uppercase;
}
.page-banner p {
    color: #e2e8f0;
    font-size: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.page-breadcrumb {
    margin-top: 14px;
    font-size: 13px;
    color: #cbd5e1;
}
.page-breadcrumb a {
    color: #009fff;
}

/* Secção de conteúdo interno */
.inner-section {
    padding: 60px 0;
    background: #fff;
}
.inner-section.bg-light {
    background: #f5f5f5;
}

/* Cartões clicáveis mantendo o aspeto original */
.service-thumb a.card-link,
.team-thumb a.card-link {
    color: inherit;
    display: block;
}
.service-thumb a.card-link:hover h4,
.team-thumb a.card-link:hover h4 {
    color: #009fff;
}

/* Formulários: checkbox RGPD + honeypot */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.privacy-check {
    font-size: 12px;
    color: #555;
    margin: 8px 0 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    line-height: 1.4;
}
.privacy-check input[type="checkbox"] {
    width: auto !important;
    height: auto !important;
    margin-top: 2px;
    flex-shrink: 0;
}
.privacy-check a {
    color: #009fff;
    text-decoration: underline !important;
}

/* Artigo editorial (Partilha de Saber) */
.article-prose {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}
.article-prose h2, .article-prose h3, .article-prose h4 {
    color: #272727;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}
.article-prose p {
    color: #444;
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 16px;
    font-weight: 400;
}
.article-prose ul, .article-prose ol {
    list-style: initial;
    padding-left: 24px;
    margin-bottom: 18px;
}
.article-prose ol {
    list-style: decimal;
}
.article-prose li {
    margin-bottom: 8px;
    color: #444;
}
.article-prose blockquote {
    border-left: 4px solid #009fff;
    background: #f8fafc;
    padding: 14px 18px;
    margin: 18px 0;
    color: #333;
}
.article-card {
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border-bottom: 3px solid #009fff;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}
.article-card-img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}
.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}
.article-meta span {
    margin-right: 12px;
}
.article-card-body h3 {
    font-size: 19px;
    line-height: 1.35;
    margin: 0 0 10px;
}
.article-card-body h3 a {
    color: #272727;
}
.article-card-body h3 a:hover {
    color: #009fff;
}
.article-card-body p {
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

/* Rodapé com links legais discretos */
.footer-links {
    margin-top: 8px;
    font-size: 13px;
}
.footer-links a {
    color: #ffffff;
    margin: 0 10px;
    opacity: 0.9;
}
.footer-links a:hover {
    opacity: 1;
    text-decoration: underline !important;
}

/* Banner de Cookies RGPD */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #f8fafc;
    padding: 14px 20px;
    z-index: 99999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    display: none;
}
.cookie-banner-inner {
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cookie-banner p {
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.cookie-banner a {
    color: #38bdf8;
    text-decoration: underline !important;
}
.cookie-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-btn {
    border: 0;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 3px;
    cursor: pointer;
}
.cookie-btn-accept {
    background: #009fff;
    color: #fff;
}
.cookie-btn-essential {
    background: #475569;
    color: #fff;
}

/* Subpáginas: navbar sempre legível sobre fundo branco se não for home */
.navbar.subpage-navbar {
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}
.navbar.subpage-navbar .whtlogo {
    display: none !important;
}
.navbar.subpage-navbar .logocolor {
    display: block !important;
}
.navbar.subpage-navbar .nav li a {
    color: #555 !important;
}
.navbar.subpage-navbar .nav li a:hover {
    color: #009fff !important;
}
.navbar.subpage-navbar .calltxt {
    color: #009fff !important;
    border-left-color: #009fff !important;
}

/* Garantir contraste legível na barra sticky em tablet (768px+) */
.is-sticky .custom-navbar .nav li a {
    color: #555 !important;
}
.is-sticky .custom-navbar .nav li a:hover {
    color: #009fff !important;
}
.is-sticky .custom-navbar .calltxt {
    color: #009fff !important;
    border-left-color: #009fff !important;
}

/* Partilha de Saber na homepage: link na imagem mantendo estilo do título e sem overflow */
.hmblog .mainblogpost {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #0f172a;
}
.hmblog .postimg a {
    display: block;
    position: relative;
}
.hmblog .postimg a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.35) 55%, rgba(15, 23, 42, 0.1) 100%);
    pointer-events: none;
}
.hmblog .postimg img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.hmblog .postinfo {
    pointer-events: none;
    left: 24px;
    right: 24px;
    bottom: 24px;
}
.hmblog .postinfo h3 {
    display: block;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
@media (max-width: 767px) {
    .hmblog .postimg img {
        height: 200px;
    }
    .hmblog .postinfo {
        position: static !important;
        padding: 18px 18px 20px;
        background: #0f172a;
    }
    .hmblog .date {
        padding: 6px 12px;
        width: auto;
        display: inline-flex;
        align-items: baseline;
        gap: 6px;
        margin-bottom: 10px;
    }
    .hmblog .date strong {
        display: inline;
        font-size: 18px;
    }
    .hmblog .date span {
        display: inline;
        font-size: 13px;
    }
    .hmblog .postinfo h3 {
        font-size: 18px;
        line-height: 1.35;
    }
}
