/*
 Theme Name:   Blocksy Security Center Child
 Template:     blocksy
 Version:      1.0.0
*/

:root {
    --sc-yellow: #FFD500;
}

/* Sem banner de título na home (hero customizado substitui-o) */
body.home .hero-section,
body.home .entry-header {
    display: none !important;
}

body.home .ct-container-full {
    padding-top: 0 !important;
}

/* Altura do header: 117px medido no original (só a linha do menu, sem a barra de topo que não usamos) */
body {
    --header-height: 117px !important;
}

[data-row="middle"] {
    --height: 117px !important;
}

/* Esconder o texto do título, mostrar só a imagem do logo */
.site-title-container .site-title {
    display: none !important;
}

.site-logo-container {
    --logo-max-height: 90px !important;
}

/* Espaçamento e tipografia do menu principal, igual ao original */
nav[data-id="menu"] > ul.menu > li > a.ct-menu-link {
    padding: 0 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.3px !important;
    text-transform: uppercase !important;
}

/* Botão "Ligue-nos Agora" (header) */
a.sc-call-now-btn,
a.sc-call-now-btn:visited {
    display: inline-block !important;
    background-color: var(--theme-palette-color-1) !important;
    color: #fff !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 0.6em 1.4em !important;
    border-radius: 4px !important;
    transition: opacity 0.2s ease;
}

a.sc-call-now-btn:hover {
    opacity: 0.85;
    color: #fff !important;
}

/* FAQ accordion (<details name>, exclusivo, sem JS) */
.sc-faq-item {
    border: 1px solid var(--theme-palette-color-1);
    border-radius: 4px;
    margin-bottom: 40px; /* antes 24px + <br> do wpautop = 48px; ligeiramente mais junto a pedido */
    overflow: hidden;
}

/* O wpautop mete um <br> entre shortcodes [sc_faq_item] em linhas separadas */
.sc-faq-item + br {
    display: none;
}

.sc-faq-item summary {
    background-color: var(--theme-palette-color-1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0.9em 1.2em;
    list-style: none;
    position: relative;
}

.sc-faq-item summary::-webkit-details-marker {
    display: none;
}

.sc-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.2em;
    font-size: 1.2em;
}

.sc-faq-item[open] summary::after {
    content: "\2212";
}

.sc-faq-content {
    padding: 1em 1.2em;
}

/* Secções full-width (rompe o contentor limitado do Blocksy, como no site original) */
.sc-fullwidth {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

/* Banner de título da página (hero-section nativo do Blocksy) também a full-width, como no original */
.hero-section {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

.hero-section .entry-header {
    max-width: 1290px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2em;
    padding-right: 2em;
    box-sizing: border-box;
}

/* Fundo escuro no banner de título (páginas que não a home), como no site original */
body:not(.home) .hero-section {
    background-color: var(--theme-palette-color-3);
    background-image: linear-gradient(rgba(15,15,15,0.75), rgba(15,15,15,0.75)), url('https://securitycenter.pt/wp-content/uploads/2026/09/closeup-of-a-professional-locksmith-installing-a-new-lock-on-a-house-exterior-door-with-the-inside-qs9znqkimeci87tngt5nzidkvv7lbz8y544jenfr40.jpg');
    background-size: cover;
    background-position: center;
    padding: 2.5em 0;
}

body:not(.home) .hero-section .page-title,
body:not(.home) .hero-section h1 {
    color: #fff !important;
}

body:not(.home) .hero-section .ct-breadcrumbs,
body:not(.home) .hero-section .ct-breadcrumbs a {
    color: #ddd !important;
}

/* Hero da home */
.sc-hero {
    background-color: var(--theme-palette-color-3);
    color: #fff;
    display: flex;
    min-height: clamp(450px, 55vw, 850px);
    text-align: left;
}

.sc-hero-text {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em 3em 2em max(2em, calc((100vw - 1290px) / 2 + 2em));
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
}

/* Imagem de chaves muito esbatida atrás do texto (original: overlay com opacidade 0.08, cover, centrada) */
.sc-hero-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/uploads/2026/09/lock-with-several-keys-U3XEQCM.jpg") center / cover no-repeat;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

.sc-hero-slideshow {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
}

.sc-hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: sc-hero-fade 25s infinite;
}

.sc-hero-slideshow img:nth-of-type(1) { animation-delay: 0s; }
.sc-hero-slideshow img:nth-of-type(2) { animation-delay: 5s; }
.sc-hero-slideshow img:nth-of-type(3) { animation-delay: 10s; }
.sc-hero-slideshow img:nth-of-type(4) { animation-delay: 15s; }
.sc-hero-slideshow img:nth-of-type(5) { animation-delay: 20s; }

@keyframes sc-hero-fade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    20% { opacity: 1; }
    24% { opacity: 0; }
    100% { opacity: 0; }
}

@media (max-width: 780px) {
    .sc-hero {
        flex-direction: column;
        min-height: auto;
    }
    .sc-hero-slideshow {
        height: 260px;
    }
}

.sc-hero h1 {
    color: #fff !important;
    max-width: 560px;
    font-family: 'Inter', sans-serif;
    font-size: 52px;
    font-weight: 600 !important;
    line-height: 1.1;
}

.sc-hero h1 .sc-hero-highlight {
    color: var(--theme-palette-color-1);
    display: block;
    white-space: nowrap;
}

.sc-hero p.sc-hero-eyebrow { /* especificidade acima de .sc-hero p (Heebo 300) */
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin: 0 0 16px;
}

.sc-hero p {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #dedede;
    margin-bottom: 1.5em;
}

.sc-hero-cta-btn {
    display: inline-block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #fff !important;
    background-color: var(--theme-palette-color-1);
    padding: 20px 40px;
    border-radius: 0;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.sc-hero-cta-btn:hover {
    opacity: 0.85;
}

@media (min-width: 781px) and (max-width: 1360px) {
    /* Painel de texto = metade do ecrã: escalar para "Na Security Center," caber numa linha (largura útil = 50vw - 80px) */
    .sc-hero h1 {
        font-size: clamp(30px, calc((50vw - 80px) * 0.104), 52px);
    }
}

@media (max-width: 780px) {
    /* Fluido: "Na Security Center," cabe sempre numa linha (324px a 34px; largura útil = 100vw - 80px) */
    .sc-hero h1 {
        font-size: clamp(24px, calc((100vw - 80px) * 0.104), 34px);
    }
}

/* Checklist amarela */
.sc-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 0;
}

.sc-checklist li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 300;
    color: #555;
}

.sc-checklist li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--sc-yellow, #FFD500);
    background-color: var(--theme-palette-color-3);
    border-radius: 50%;
    width: 1.1em;
    height: 1.1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    top: 0.1em;
}

/* Grelha de serviços (home) — 8 blocos, 3-3-2, tal como no original */
.sc-services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin: 2em 0;
    border: 1px solid var(--theme-palette-color-5);
    border-top: none;
    border-left: none;
}

.sc-services-grid > *:nth-child(1),
.sc-services-grid > *:nth-child(2),
.sc-services-grid > *:nth-child(3),
.sc-services-grid > *:nth-child(4),
.sc-services-grid > *:nth-child(5),
.sc-services-grid > *:nth-child(6) {
    grid-column: span 2;
}

.sc-services-grid > *:nth-child(7),
.sc-services-grid > *:nth-child(8) {
    grid-column: span 3;
}

.sc-service-card {
    border-left: 1px solid var(--theme-palette-color-5);
    border-top: 1px solid var(--theme-palette-color-5);
    padding: 2.5em 2em;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #fff;
}

.sc-service-card h3 {
    margin: 0 0 0.6em;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.sc-service-card h3 a {
    color: inherit !important;
    text-decoration: none;
}

.sc-service-card p {
    color: #555;
    font-weight: 300;
    margin-bottom: 1em;
    transition: color 0.3s ease;
}

.sc-service-icon {
    width: auto;
    height: 56px;
    object-fit: contain;
    margin-bottom: 1em;
}

.sc-service-cta {
    color: var(--theme-palette-color-1) !important;
    font-weight: 700;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
}

.sc-service-cta::after {
    content: "\2192";
    margin-left: 0.4em;
}

/* Card de introdução (1º bloco, texto+CTA, fundo branco) */
.sc-service-intro h3 {
    font-size: 1.6em;
}

.sc-service-intro .sc-hero-eyebrow {
    color: #000 !important;
}

.sc-service-intro .sc-service-cta {
    display: inline-block;
    background-color: var(--sc-yellow, #FFD500);
    color: #000 !important;
    padding: 0.8em 1.6em;
    margin-top: 0.5em;
}

.sc-service-intro .sc-service-cta::after {
    content: "";
    margin: 0;
}

/* 2º bloco: preto por defeito (destaque fixo, como no original) */
.sc-service-card-dark,
.sc-service-card:hover:not(.sc-service-intro) {
    background-color: #0f0f0f;
}

.sc-service-card-dark h3,
.sc-service-card:hover:not(.sc-service-intro) h3 {
    color: #fff;
}

.sc-service-card-dark p,
.sc-service-card:hover:not(.sc-service-intro) p {
    color: #ccc;
}

@media (max-width: 900px) {
    .sc-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sc-services-grid > * {
        grid-column: span 1 !important;
    }
}

@media (max-width: 600px) {
    .sc-services-grid {
        grid-template-columns: 1fr;
    }
    .sc-services-grid > * {
        grid-column: span 1 !important;
    }
}

/* Selos de certificação */
.sc-cert-badges {
    display: flex;
    align-items: center;
    gap: 2em;
    flex-wrap: wrap;
}

.sc-cert-badges img {
    max-height: 90px !important;
    width: auto !important;
    object-fit: contain;
}

.sc-cert-badges img[alt="Certificação RPV"] {
    max-height: 216px !important;
}

/* Stack de fotos sobrepostas (secção "A escolha certa para a sua Segurança") */
.sc-photo-stack {
    position: relative;
    width: 100%;
    max-width: 418px;
    height: 450px;
}

.sc-photo-stack::before,
.sc-photo-stack::after {
    content: "";
    position: absolute;
    width: 62px;
    height: 62px;
    background-color: var(--sc-yellow, #FFD500);
    z-index: 0;
}

.sc-photo-stack::before {
    top: 11px;
    left: 317px;
}

.sc-photo-stack::after {
    top: 371px;
    left: 317px;
}

.sc-photo-stack img {
    position: absolute;
    border-radius: 0 !important;
    object-fit: cover;
}

.sc-photo-stack .sc-photo-main {
    left: 0;
    top: 0;
    width: 334px;
    height: 450px;
    z-index: 1;
}

.sc-photo-stack .sc-photo-secondary {
    left: 188px;
    top: 73px;
    width: 230px;
    height: 298px;
    z-index: 2;
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

@media (max-width: 780px) {
    .sc-photo-stack {
        height: 340px;
        max-width: 316px;
    }
    .sc-photo-stack .sc-photo-main {
        width: 252px;
        height: 340px;
    }
    .sc-photo-stack .sc-photo-secondary {
        left: 142px;
        top: 55px;
        width: 174px;
        height: 225px;
    }
    .sc-photo-stack::before {
        left: 235px;
        top: -7px;
    }
    .sc-photo-stack::after {
        left: 235px;
        top: 280px;
        bottom: auto;
    }
}

.sc-eyebrow-dark {
    color: #000 !important;
}

.sc-page-intro p {
    font-weight: 300;
    color: #555;
}

.sc-checklist-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.5em;
}

@media (max-width: 780px) {
    .sc-photo-stack {
        padding-right: 0;
        margin-bottom: 2em;
    }
    .sc-checklist-2col {
        grid-template-columns: 1fr;
    }
}

/* Imagem de marcas parceiras */
.sc-brands-image {
    margin: 1.5em 0;
    text-align: center;
}

.sc-brands-image img {
    max-width: 100%;
    height: auto;
}

/* Grelha "Marcas" (logos individuais normalizados por área visual; cinzento, cor no hover), 28 set 2026 */
.sc-brands {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
}

.sc-brands > h2 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
    margin: 0 0 40px;
}

.sc-brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.sc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 16px;
}

.sc-brand img {
    display: block;
    max-width: 100%;
    height: auto;
    filter: grayscale(1);
    opacity: 0.65;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.sc-brand:hover img {
    filter: none;
    opacity: 1;
}

/* Ecrãs tácteis não têm hover: mostrar logos a cores */
@media (hover: none) {
    .sc-brand img {
        filter: none;
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .sc-brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 780px) {
    .sc-brands {
        padding-top: 30px;
    }
    .sc-brands > h2 {
        font-size: 24px;
        text-align: center;
    }
    .sc-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sc-brand {
        min-height: 90px;
        padding: 12px;
    }
}

/* Grelha de logos de parceiros (página cofres) */
.sc-partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
    flex-wrap: wrap;
    background-color: var(--theme-palette-color-6);
    padding: 2em max(2em, calc((100vw - 1290px) / 2 + 2em));
    margin: 2em 0;
}

.sc-partner-logos img {
    max-height: 60px;
    width: auto;
}


/* Grelha "Reconhece estas situações?" (réplica do original: 2x2, contentor 1120px, medido 28 set 2026) */
.sc-situations {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
}

.sc-situations > h2 {
    padding-left: 0;
    margin: 0 0 40px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
    color: #000;
}

.sc-situations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 30px;
    margin: 0;
}

.sc-situation-card {
    display: grid;
    grid-template-columns: 50px 1fr;
    column-gap: 15px;
    align-items: center;
    align-content: start;
    min-height: 150px;
    padding: 34px 50px;
    background-color: #f1f1f2;
    border: 1px solid #e6e6e8;
}

.sc-situation-card img.sc-situation-icon {
    width: 50px;
    height: 50px;
    display: block;
}

.sc-situation-card span {
    display: block;
    margin: 8px 0 15px;
    font-family: Inter, sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    color: #E7293C;
}

@media (max-width: 780px) {
    .sc-situations > h2 {
        padding-left: 0;
        text-align: center;
        font-size: 24px;
        margin-bottom: 60px;
    }
    .sc-situations-grid {
        grid-template-columns: 1fr;
    }
    .sc-situation-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 200px;
        text-align: center;
    }
    .sc-situation-card span {
        margin: 23px 0 16px;
        font-size: 20px;
    }
}

/* Parágrafo "A Security Center pode ajudar!" + botão amarelo (medido no original, 28 set 2026) */
.sc-help-cta {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 60px;
    text-align: center;
}

.sc-help-cta p {
    margin: 0 0 34px;
    color: #555;
}

.sc-yellow-btn {
    display: inline-block;
    padding: 18px 32px;
    background-color: #FFD500;
    color: #000 !important;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover no vermelho do texto dos cartões "Reconhece estas situações?" (#E7293C) */
.sc-yellow-btn:hover,
.sc-yellow-btn:focus-visible {
    background-color: #E7293C;
    color: #fff !important;
}

@media (max-width: 780px) {
    .sc-help-cta {
        padding-top: 30px;
    }
    .sc-yellow-btn {
        padding: 15px 30px;
    }
}

/* Bloco intro texto+imagem (páginas de serviço) */
.sc-page-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: center;
    padding: 3em 0;
}

.sc-page-intro img {
    border-radius: 6px;
    width: 100%;
    height: auto;
}

@media (max-width: 780px) {
    .sc-page-intro {
        grid-template-columns: 1fr;
    }
}

/* Banda CTA vermelha "Ligue Agora" */
.sc-emergency-band {
    background-color: var(--theme-palette-color-3);
    background-image: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://securitycenter.pt/wp-content/uploads/2026/09/close-up-of-family-holding-key-for-a-new-apartment.jpg');
    background-size: cover;
    background-position: 0 90%; /* igual ao original: mostra as mãos com as chaves */
}

.sc-cta-band {
    background-color: var(--theme-palette-color-1);
    color: #fff;
    padding: 1.5em max(2em, calc((100vw - 1290px) / 2 + 2em));
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1em;
    margin: 0 0 0;
}

.sc-cta-band > div {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}

.sc-cta-band h2 {
    color: #fff !important;
    margin: 0;
    font-size: 1.5em;
}

.sc-cta-band a.sc-cta-btn {
    background-color: #fff !important;
    color: var(--theme-palette-color-1) !important;
    padding: 0.7em 1.6em;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none !important;
}

/* Banda "Em caso de emergência" da home: réplica do original (tudo centrado, etiqueta + título + botão vermelho), 28 set 2026 */
.sc-cta-band.sc-emergency-band {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 58px 2em 60px;
    text-align: center;
}

.sc-emergency-band .sc-emergency-eyebrow {
    margin: 0 0 6px;
    font-family: "Nunito Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #fff;
}

.sc-cta-band.sc-emergency-band h2 {
    margin: 0 0 20px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.sc-cta-band.sc-emergency-band a.sc-cta-btn {
    display: inline-block;
    background-color: #E7293C !important;
    color: #fff !important;
    padding: 18px 32px;
    border-radius: 0;
    font-family: "Nunito Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

/* Colada à grelha de lojas que vem a seguir (o layout constrained do Blocksy dá 24px de margem inferior) */
.entry-content > .sc-emergency-band {
    margin-bottom: 0 !important;
}

/* O wpautop envolve o botão num <p> com margem inferior: anular para a altura bater com o original (247px) */
.sc-emergency-band > p:last-child {
    margin: 0;
}

@media (max-width: 780px) {
    .sc-cta-band.sc-emergency-band h2 {
        font-size: 24px;
    }
}

/* Grelha de lojas (Content Block reutilizável) */
.sc-store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5em;
    background-color: var(--theme-palette-color-3);
    padding: 3em max(2em, calc((100vw - 1290px) / 2 + 2em));
}

/* Imagem de chaves muito esbatida no fundo da grelha de lojas (original: overlay opacidade 0.05, cover, posição 0 30 por cento) */
.sc-store-grid {
    position: relative;
    isolation: isolate;
}

.sc-store-grid::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/wp-content/uploads/2026/09/keys-concept-PL2AUMD.jpg") 0 30% / cover no-repeat;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.sc-store-card {
    color: #fff;
    border: 2px solid #555;
    border-radius: 2px;
    padding: 30px;
    box-sizing: border-box;
}

.sc-store-card h3 {
    color: #fff !important;
    font-size: 1.1em;
    margin-bottom: 0.5em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--theme-palette-color-1);
    display: inline-block;
}

.sc-store-card .sc-store-label {
    color: #999;
    font-size: 0.8em;
    text-transform: uppercase;
    margin: 0.6em 0 0.1em;
}

.sc-store-card p {
    margin: 0.1em 0;
    font-size: 0.9em;
    color: #ddd;
}

.sc-store-card a {
    color: var(--theme-palette-color-1) !important;
    text-decoration: none;
}

/* Manter expressões inteiras na mesma linha (ex.: "Contacte-nos hoje" no hero) */
.sc-nowrap {
    white-space: nowrap;
}

/* ── Rodapé próprio (functions.php: blocksy_output_footer), 28 set 2026 ── */
.sc-footer {
    background-color: #0a0a0a;
    color: #b5b5b5;
    border-top: 3px solid #E7293C;
    font-family: 'Heebo', sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
}

.sc-footer-inner {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 2em;
}

.sc-footer-main {
    padding: 72px 0 56px;
}

.sc-footer-main .sc-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.sc-footer a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-footer a:hover,
.sc-footer a:focus-visible {
    color: #fff;
}

/* Coluna da marca */
.sc-footer-logo img {
    display: block;
    width: 160px;
    height: auto;
    margin-bottom: 24px;
}

.sc-footer-brand p {
    max-width: 330px;
    margin: 0 0 28px;
    color: #9a9a9a;
}

.sc-footer-sos {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px 12px 12px;
    border: 1px solid #2a2a2a;
    transition: border-color 0.2s ease;
}

.sc-footer-sos:hover,
.sc-footer-sos:focus-visible {
    border-color: #E7293C;
}

.sc-footer-sos-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #E7293C;
}

.sc-footer-sos-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.sc-footer-sos > span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.sc-footer-sos small {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: #9a9a9a;
}

/* Colunas de links */
.sc-footer-col h3 {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 12px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff !important;
}

.sc-footer-col h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background-color: #E7293C;
}

.sc-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sc-footer-col li {
    margin: 0 0 10px;
}

.sc-footer-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sc-footer-contacts svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: #E7293C;
}

.sc-footer-cta {
    display: inline-block;
    margin-top: 18px;
    padding: 16px 28px;
    background-color: #FFD500;
    color: #000 !important;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

.sc-footer-cta:hover,
.sc-footer-cta:focus-visible {
    background-color: #E7293C;
    color: #fff !important;
}

/* Barra inferior */
.sc-footer-bottom {
    border-top: 1px solid #1f1f1f;
    padding: 18px 0;
    font-size: 13px;
    color: #7d7d7d;
}

.sc-footer-bottom .sc-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.sc-footer-bottom p {
    margin: 0;
}

/* Coluna Contactos em flex vertical: o Livro de Reclamações desce até ao fundo da linha
   (as colunas do grid esticam até à altura da mais alta), sem aumentar a altura do rodapé */
.sc-footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sc-footer-livro {
    margin-top: auto;
    padding-top: 24px; /* distância mínima ao botão quando esta coluna é a mais alta */
}

.sc-footer-livro img {
    display: block;
    width: auto;
    height: 46px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.sc-footer-livro:hover img {
    opacity: 1;
}

/* Páginas legais na barra do copyright: junto ao copyright, com separador; o crédito fica à direita */
.sc-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
    margin-right: auto;
}

.sc-footer-legal > * + *::before {
    content: "·";
    margin: 0 12px;
    color: #4a4a4a;
}

.sc-footer-bottom .sc-footer-legal a,
.sc-footer-bottom .sc-footer-legal span {
    color: #7d7d7d;
}

.sc-footer-bottom .sc-footer-legal span[aria-current] {
    color: #b5b5b5;
}

.sc-footer-bottom .sc-footer-legal a:hover,
.sc-footer-bottom .sc-footer-legal a:focus-visible {
    color: #fff;
}

.sc-footer-bottom p + .sc-footer-legal::before {
    content: "·";
    margin: 0 12px;
    color: #4a4a4a;
}

.sc-footer-bottom .sc-footer-inner {
    column-gap: 0;
}

.sc-footer-bottom .sc-footer-credit {
    font-size: 12px;
    color: #7d7d7d;
}

@media (max-width: 1024px) {
    .sc-footer-main .sc-footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
}

@media (max-width: 600px) {
    .sc-footer-main {
        padding: 56px 0 40px;
    }
    .sc-footer-main .sc-footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .sc-footer-bottom .sc-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .sc-footer-legal {
        justify-content: center;
        margin-right: 0;
    }
}

/* Páginas que terminam com a grelha de lojas: colar a grelha ao rodapé (o Blocksy dá 60px de padding-bottom ao contentor) */
.ct-container-full:has(.sc-store-grid) {
    padding-bottom: 0 !important;
}

/* Animação de entrada do hero, como no original (Elementor "animated-slow" = 2s):
   "SERVIÇOS SOS" entra pela esquerda (fadeInLeft) e o título pela direita (fadeInRight) */
@keyframes sc-fadeInLeft {
    from { opacity: 0; transform: translate3d(-100%, 0, 0); }
    to   { opacity: 1; transform: none; }
}

@keyframes sc-fadeInRight {
    from { opacity: 0; transform: translate3d(100%, 0, 0); }
    to   { opacity: 1; transform: none; }
}

.sc-hero {
    overflow: clip; /* o título a entrar pela direita não cria scroll horizontal */
}

.sc-hero-text {
    z-index: 1; /* texto por cima do slideshow enquanto entra */
}

.sc-hero p.sc-hero-eyebrow {
    animation: sc-fadeInLeft 2s both;
}

/* Título em três blocos (as quebras de linha ficam iguais, o destaque já era display:block):
   linhas brancas entram pela direita, "máxima proteção" a vermelho entra pela esquerda */
.sc-hero h1 .sc-hero-line {
    display: block;
    animation: sc-fadeInRight 2s both;
}

.sc-hero h1 .sc-hero-highlight {
    animation: sc-fadeInLeft 2s both;
}

@media (prefers-reduced-motion: reduce) {
    .sc-hero p.sc-hero-eyebrow,
    .sc-hero h1 .sc-hero-line,
    .sc-hero h1 .sc-hero-highlight {
        animation: none;
    }
}

/* Grelha "Como podemos ajudar?" (filas 3-3-2): 1.ª e 3.ª fila entram pela direita, 2.ª pela esquerda,
   quando cada bloco entra no ecrã (classe .sc-in posta pelo script em functions.php) */
.sc-services-grid {
    overflow-x: clip; /* blocos a entrar de lado não criam scroll horizontal */
}

.sc-services-grid.sc-anim-ready > * {
    opacity: 0;
}

.sc-services-grid.sc-anim-ready > .sc-in:nth-child(-n+3),
.sc-services-grid.sc-anim-ready > .sc-in:nth-child(n+7) {
    animation: sc-fadeInRight 1.5s both;
}

.sc-services-grid.sc-anim-ready > .sc-in:nth-child(n+4):nth-child(-n+6) {
    animation: sc-fadeInLeft 1.5s both;
}

/* Hover dos cartões de serviço mais suave: ao passar o rato depressa por vários cartões eles quase não escurecem.
   Entrada 0.6s com 0.1s de atraso, saída 0.45s; título, texto e fundo sincronizados */
.sc-service-card,
.sc-service-card h3,
.sc-service-card p {
    transition-property: background-color, color;
    transition-duration: 0.45s;
    transition-timing-function: ease;
    transition-delay: 0s;
}

.sc-service-card:hover:not(.sc-service-intro),
.sc-service-card:hover:not(.sc-service-intro) h3,
.sc-service-card:hover:not(.sc-service-intro) p {
    transition-duration: 0.6s;
    transition-delay: 0.1s;
}

/* Banner de título das páginas interiores, como no original (medido nas FAQs): encostado ao cabeçalho,
   345px de altura, título centrado Inter 34px/600; sem breadcrumbs (decisão do utilizador) */
body:not(.home) .ct-container-full {
    padding-top: 0 !important;
}

body:not(.home) .hero-section {
    display: flex;
    align-items: center;
    min-height: 345px;
    padding: 0 !important;
}

body:not(.home) .hero-section .entry-header {
    width: 100%;
    text-align: center;
}

body:not(.home) .hero-section .page-title {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
}

body:not(.home) .hero-section .ct-breadcrumbs {
    display: none;
}

/* FAQs: a mesma imagem do banner original */
body.page-id-29 .hero-section {
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2026/09/two-plumbers-showing-young-woman-where-to-put-signature.jpg.webp');
    background-position: 0 20%;
}

/* FAQs: o layout constrained do Blocksy impõe 24px de margem aos filhos do entry-content; 40px a pedido */
.entry-content > .sc-faq-item {
    margin-bottom: 40px !important;
}

/* Banner de cada página interior com a imagem do original (véu preto 0.75, cover), 29 set 2026 */
body.page-id-32 .hero-section { /* Serviços */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/install-the-door-handle-with-a-lock.jpg.webp');
    background-position: 0 50%;
}

body.page-id-30 .hero-section { /* Contacto */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/man-installing-of-the-door-with-lock-key-security.jpg.webp');
    background-position: 0 59%;
}

body.page-id-28 .hero-section { /* Condomínios */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/09/exterior-of-apartment-building.jpg.webp');
    background-position: 0 50%;
}

body.page-id-20 .hero-section { /* Urgência Domicílio */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/install-the-door-handle-with-a-lock.jpg.webp');
    background-position: 0 50%;
}

body.page-id-27 .hero-section { /* Piquetes Urgência Domicílio */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/09/modern-door-key-in-the-core-of-the-lock-secure-lock-security-concept-closed-door-closeup-.jpg.webp');
    background-position: 0 50%;
}

body.page-id-26 .hero-section { /* Serviços Técnicos */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/09/the-hand-opens-the-door-slightly-detail-of-a-white-interior-door-with-a-chrome-door-handle-and.jpg.webp');
    background-position: 0 50%;
}

body.page-id-21 .hero-section { /* Automatismos e Portões de Garagem */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/a-locked-storage-unit.jpg.webp');
    background-position: 0 50%;
}

body.page-id-24 .hero-section { /* Venda e Colocação de Cofres */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/closeup-rotation-dial-number-key-lock-on-safe-box-for-security-code-image-concept.jpg.webp');
    background-position: 0 50%;
}

body.page-id-23 .hero-section { /* Controlo de Acessos */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/using-mobile-smartphone-app.jpg.webp');
    background-position: 0 50%;
}

body.page-id-22 .hero-section { /* Portas Blindadas e Corta Fogo */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/install-the-door-handle-with-a-lock.jpg.webp');
    background-position: 0 50%;
}

body.page-id-25 .hero-section { /* Serviço Automóvel */
    background-image: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('/wp-content/uploads/2024/08/modern-car-ignition-keys.jpg.webp');
    background-position: 0 50%;
}


/* Condomínios: como o original — banner 370px, texto + formulário de adesão sobre fundo com imagem (29 set 2026) */
body.page-id-28 .hero-section {
    min-height: 370px;
}

body.page-id-28 .hero-section .page-title {
    max-width: 900px;
    margin: 0 auto;
    font-size: 45px;
}

.sc-condo {
    /* véu branco a 94% sobre a foto, como no original (só se vê um padrão muito esbatido) */
    background: linear-gradient(rgba(255,255,255,0.94), rgba(255,255,255,0.94)), url('/wp-content/uploads/2024/09/robin-spielmann-591331-unsplash.jpg.webp') center / cover no-repeat;
    padding: 60px 0;
}

.sc-condo-inner {
    display: grid;
    grid-template-columns: 1fr 446px;
    gap: 60px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 25px;
    align-items: start;
}

.sc-condo-text p,
.sc-condo-text li {
    color: #000;
}

.sc-condo-text ol {
    padding-left: 1.2em;
}

/* Formulário de adesão: grelha 3 / 1 / 2 / 2 como no original */
.sc-condo-form fieldset {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 10px;
}

.sc-condo-form .ff-el-group {
    grid-column: span 6;
    margin-bottom: 12px;
}

.sc-condo-form .ff-el-group:has(input[name="nome"]),
.sc-condo-form .ff-el-group:has(input[name="email"]),
.sc-condo-form .ff-el-group:has(input[name="telefone"]) {
    grid-column: span 2;
}

.sc-condo-form .ff-el-group:has(input[name="cidade"]),
.sc-condo-form .ff-el-group:has(input[name="regiao"]),
.sc-condo-form .ff-el-group:has(input[name="codigo_postal"]),
.sc-condo-form .ff-el-group:has(input[name="pais"]) {
    grid-column: span 3;
}

.sc-condo-form .ff_submit_btn_wrapper {
    grid-column: span 6;
}

.sc-condo-form .ff-el-input--label label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #000;
}

.sc-condo-form input.ff-el-form-control {
    height: 42px;
    border: 1px solid #e7e7e7;
    border-radius: 0;
    background: #fff;
    font-size: 16px;
}

.sc-condo-form .ff-btn-submit {
    width: 100%;
    height: 54px;
    border-radius: 0 !important;
    background-color: #E7293C !important;
    color: #fff !important;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.3px !important;
    text-transform: uppercase !important;
}

@media (max-width: 900px) {
    .sc-condo-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    body.page-id-28 .hero-section .page-title {
        font-size: 28px;
    }
    .sc-condo-form .ff-el-group:has(input[name="nome"]),
    .sc-condo-form .ff-el-group:has(input[name="email"]),
    .sc-condo-form .ff-el-group:has(input[name="telefone"]),
    .sc-condo-form .ff-el-group:has(input[name="cidade"]),
    .sc-condo-form .ff-el-group:has(input[name="regiao"]),
    .sc-condo-form .ff-el-group:has(input[name="codigo_postal"]),
    .sc-condo-form .ff-el-group:has(input[name="pais"]) {
        grid-column: span 6;
    }
}

/* Condomínios: secção encostada ao banner e à grelha de lojas (sem os 40px + 24px do Blocksy) */
body.page-id-28 .hero-section {
    margin-bottom: 0 !important;
}

.entry-content > .sc-condo {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Contacto: título centrado e formulário um pouco mais estreito, centrado (29 set 2026) */
body.page-id-30 .entry-content > h2 {
    text-align: center;
}

body.page-id-30 .entry-content > .fluentform {
    max-width: 960px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Banda "Ligue Agora" das páginas de serviço, como no original (29 set 2026):
   126px, título 34px à esquerda, um só botão branco largo "PEDIR ORÇAMENTO" com ícone de telefone */
.sc-cta-band:not(.sc-emergency-band) {
    min-height: 126px;
    padding: 15px max(2em, calc((100vw - 1100px) / 2));
    flex-wrap: nowrap;
}

.sc-cta-band:not(.sc-emergency-band) h2 {
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
}

.sc-cta-band a.sc-cta-btn.sc-cta-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 455px;
    max-width: 100%;
    padding: 20px 40px;
    background-color: #fff !important;
    color: #000 !important;
    border-radius: 0;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sc-cta-band a.sc-cta-btn.sc-cta-quote::before {
    content: "";
    width: 16px;
    height: 16px;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.2 15.2 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sc-cta-band a.sc-cta-btn.sc-cta-quote:hover,
.sc-cta-band a.sc-cta-btn.sc-cta-quote:focus-visible {
    background-color: #0f0f0f !important;
    color: #fff !important;
}

@media (max-width: 780px) {
    .sc-cta-band:not(.sc-emergency-band) {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        padding: 30px 2em;
    }
    .sc-cta-band:not(.sc-emergency-band) h2 {
        font-size: 26px;
    }
}

/* Cofres e CarKeyService: introdução compacta e faixa de logótipos como no original */
body.page-id-24 .sc-page-intro ,
body.page-id-25 .sc-page-intro {
    grid-template-columns: 510px 480px;
    gap: 35px;
    max-width: 1025px;
    margin: 0 auto;
    padding: 65px 0;
}

body.page-id-24 .sc-page-intro h2 ,
body.page-id-25 .sc-page-intro h2 {
    font-size: 25px;
    font-weight: 600;
    line-height: 30px;
    color: #000;
}

body.page-id-24 .sc-page-intro p ,
body.page-id-25 .sc-page-intro p {
    font-size: 16px;
    line-height: 18px;
    text-align: justify;
    color: #555;
}

body.page-id-24 .sc-page-intro img ,
body.page-id-25 .sc-page-intro img {
    width: 480px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

body.page-id-24 .sc-partner-logos {
    background-color: #e6e6e6;
    min-height: 126px;
    padding: 0 1em;
    margin: 0;
    gap: 93px;
}

body.page-id-24 .sc-partner-logos img {
    width: 210px;
    height: auto;
    max-height: 99px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    body.page-id-24 .sc-page-intro ,
body.page-id-25 .sc-page-intro {
        grid-template-columns: 1fr 1fr;
        padding: 50px 2em;
    }
    body.page-id-24 .sc-page-intro img ,
body.page-id-25 .sc-page-intro img {
        width: 100%;
        height: auto;
    }
    body.page-id-24 .sc-partner-logos {
        gap: 40px;
        padding: 20px 1em;
    }
    body.page-id-24 .sc-partner-logos img {
        width: 150px;
    }
}

@media (max-width: 780px) {
    body.page-id-24 .sc-page-intro ,
body.page-id-25 .sc-page-intro {
        grid-template-columns: 1fr;
    }
}

/* Banda "Ligue Agora" encostada à grelha de lojas (o layout constrained do Blocksy dá 24px de margem inferior) */
.entry-content > .sc-cta-band {
    margin-bottom: 0 !important;
}

/* CarKeyService: logótipo pequeno por baixo do texto, como no original */
.sc-page-intro .sc-intro-logo {
    display: block;
    width: 122px !important;
    height: auto !important;
    margin-top: 18px;
    border-radius: 0 !important;
}

/* Acertos (29 set 2026): logótipos dos cofres agrupados ao centro; botão da banda e logótipos no mobile */
body.page-id-24 .sc-partner-logos {
    display: flex;
    justify-content: center !important;
    align-items: center;
}

body.page-id-24 .sc-partner-logos img {
    flex: 0 0 210px;
    margin: 0 !important;
}

@media (max-width: 780px) {
    .sc-cta-band a.sc-cta-btn.sc-cta-quote {
        width: 100%;
        padding: 18px 20px;
    }
    body.page-id-24 .sc-partner-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
        gap: 24px 20px;
        padding: 24px 1em;
    }
    body.page-id-24 .sc-partner-logos img {
        width: 130px;
        flex: none;
    }
}

/* O wpautop mete <br> entre as imagens (linhas separadas no conteúdo): cada <br> contava como item com o seu gap */
.sc-partner-logos br {
    display: none;
}

/* Cofres e CarKeyService: a introdução começa logo a seguir ao banner (o espaço vem do padding de 65px, como no original) */
body.page-id-24 .hero-section,
body.page-id-25 .hero-section {
    margin-bottom: 0 !important;
}

/* Banda "Ligue Agora": o wpautop envolve o botão num <p> com margem inferior, o que o desalinhava 12px para cima */
.sc-cta-band:not(.sc-emergency-band) > p {
    margin: 0;
}

/* Sombra ligeira no botão "Pedir orçamento" para se destacar do fundo vermelho */
.sc-cta-band a.sc-cta-btn.sc-cta-quote {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.sc-cta-band a.sc-cta-btn.sc-cta-quote:hover,
.sc-cta-band a.sc-cta-btn.sc-cta-quote:focus-visible {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Página Serviços como no original (29 set 2026): uma secção por serviço (título centrado 34px + intro compacta)
   seguida de banda vermelha só com o botão "Pedir orçamento" centrado */
body.page-id-32 .hero-section {
    margin-bottom: 0 !important;
}

.sc-serv-item {
    padding-top: 60px;
}

.entry-content > .sc-serv-item,
.entry-content > .sc-cta-band--center {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.sc-serv-title {
    margin: 0 0 30px;
    text-align: center;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.2;
}

.sc-serv-title a {
    color: #000 !important;
    text-decoration: none !important;
}

.sc-serv-title a:hover {
    color: var(--theme-palette-color-1) !important;
}

/* Intro compacta reutilizável (mesmas medidas das páginas de cofres e CarKey) */
.sc-page-intro.sc-intro-compact {
    grid-template-columns: 510px 480px;
    gap: 35px;
    max-width: 1025px;
    margin: 0 auto;
    padding: 75px 0 65px;
    align-items: center;
}

.sc-intro-compact h3 {
    margin: 0 0 18px;
    font-size: 25px;
    font-weight: 600;
    line-height: 30px;
    color: #000;
}

.sc-intro-compact p {
    margin: 0;
    font-size: 16px;
    line-height: 18px;
    text-align: justify;
    color: #555;
}

.sc-intro-compact img {
    width: 480px;
    height: auto;
    border-radius: 0;
}

.sc-cta-band.sc-cta-band--center {
    justify-content: center;
}

.sc-cta-band--center a.sc-cta-btn.sc-cta-quote {
    width: 430px;
}

@media (max-width: 1100px) {
    .sc-page-intro.sc-intro-compact {
        grid-template-columns: 1fr 1fr;
        padding: 30px 2em 50px;
    }
    .sc-intro-compact img {
        width: 100%;
    }
}

@media (max-width: 780px) {
    .sc-page-intro.sc-intro-compact {
        grid-template-columns: 1fr;
    }
    .sc-serv-item {
        padding-top: 40px;
    }
    .sc-serv-title {
        font-size: 26px;
        padding: 0 1em;
    }
}

/* Controlo de Acessos: mesmo desenho compacto das páginas de cofres e CarKey (o original é igual) */
body.page-id-23 .hero-section {
    margin-bottom: 0 !important;
}

body.page-id-23 .sc-page-intro.sc-intro-compact {
    padding: 65px 0;
}

.sc-intro-compact h2 {
    margin: 0 0 18px;
    font-size: 25px;
    font-weight: 600;
    line-height: 30px;
    color: #000;
}

@media (max-width: 1100px) {
    body.page-id-23 .sc-page-intro.sc-intro-compact {
        padding: 50px 2em;
    }
}

@media (max-width: 600px) {
    .sc-footer-bottom p + .sc-footer-legal::before {
        display: none;
    }
}

/* Mobile: espaço no fundo do rodapé para o botão fixo do WhatsApp não tapar as ligações legais */
@media (max-width: 600px) {
    .sc-footer-bottom {
        padding-bottom: 96px;
    }
}
