/*
Theme Name: City Hall Child - Vila Pouca de Aguiar
Description: Tema filho personalizado para a Junta de Freguesia de Vila Pouca de Aguiar.
Author: Softowner
Template: city-hall
Version: 1.1.0
Text Domain: city-hall-child
*/

:root{--jf-blue:#0b4ca3;--jf-blue2:#1768c7;--jf-green:#3aaa35;--jf-yellow:#f6b63f;--jf-dark:#18212b;--jf-muted:#647180;--jf-light:#f4f7fb;--jf-white:#fff;--jf-border:#e3e8ee;--jf-shadow:0 16px 40px rgba(20,40,70,.10);--jf-radius:18px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0!important;background:#fff!important;color:var(--jf-dark)!important;font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.6!important}
a{color:inherit}
.jf-skip-link{position:absolute;left:-9999px;top:10px;z-index:9999;background:#fff;padding:10px 16px}.jf-skip-link:focus{left:10px}
.jf-site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);border-bottom:1px solid var(--jf-border);box-shadow:0 4px 18px rgba(20,40,70,.06);backdrop-filter:blur(10px)}
.jf-header-inner{width:min(1240px,calc(100% - 40px));height:88px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:30px}
.jf-brand{display:flex;align-items:center;gap:13px;text-decoration:none}.jf-brand img{width:58px!important;height:58px!important;object-fit:contain!important;border-radius:12px}.jf-brand span{display:flex;flex-direction:column;line-height:1.15}.jf-brand strong{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:var(--jf-dark)}.jf-brand small{font-size:19px;font-weight:800;color:var(--jf-blue)}
.jf-menu{display:flex!important;align-items:center;gap:24px!important;margin:0!important;padding:0!important;list-style:none!important}.jf-menu li{margin:0!important}.jf-menu a{font-size:15px;font-weight:700;text-decoration:none;color:#283748;transition:.2s}.jf-menu a:hover{color:var(--jf-blue)}
.jf-menu-toggle{display:none;border:1px solid var(--jf-border);background:#fff;border-radius:9px;padding:9px 14px;font-weight:700}
.jf-home{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden}.jf-container{width:min(1180px,calc(100% - 40px));margin:0 auto}
.jf-hero{min-height:680px;position:relative;display:grid;place-items:center;background-size:cover;background-position:center 48%;color:#fff;text-align:center}.jf-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,25,45,.80),rgba(8,25,45,.48) 55%,rgba(8,25,45,.26))}.jf-hero__content{position:relative;z-index:1;width:min(920px,calc(100% - 40px));padding:90px 20px}.jf-hero__logo{width:112px!important;height:112px!important;object-fit:contain!important;padding:7px;background:#fff;border-radius:22px;box-shadow:0 15px 36px rgba(0,0,0,.25);margin:0 auto 24px!important}.jf-kicker{margin:0 0 8px!important;font-size:18px!important;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:#fff!important}.jf-hero h1{margin:0!important;color:#fff!important;font-size:clamp(44px,6vw,76px)!important;line-height:1.06!important;letter-spacing:-.035em;text-shadow:0 5px 18px rgba(0,0,0,.3)}.jf-hero__lead{margin:20px auto 0!important;font-size:clamp(18px,2vw,23px)!important;color:rgba(255,255,255,.92)!important}.jf-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px;justify-content:center}.jf-btn{display:inline-flex!important;align-items:center;justify-content:center;min-height:52px;padding:0 26px!important;border-radius:10px!important;font-weight:800!important;text-decoration:none!important;transition:.2s;border:2px solid transparent}.jf-btn:hover{transform:translateY(-2px)}.jf-btn--primary{background:var(--jf-blue)!important;color:#fff!important}.jf-btn--outline{border-color:#fff!important;color:#fff!important;background:transparent!important}.jf-btn--white{background:#fff!important;color:var(--jf-blue)!important}
.jf-section{padding:90px 0!important;margin:0!important}.jf-section--light{background:var(--jf-light)}.jf-section--blue{background:linear-gradient(135deg,var(--jf-blue),#073471);color:#fff}.jf-section__head{text-align:center;max-width:760px;margin:0 auto 44px}.jf-section__head--row{max-width:none;display:flex;justify-content:space-between;align-items:end;text-align:left}.jf-section__head h2,.jf-about h2,.jf-notices-intro h2,.jf-contact-band h2{margin:4px 0 10px!important;font-size:clamp(34px,4vw,52px)!important;line-height:1.1!important;color:var(--jf-dark)!important;letter-spacing:-.025em}.jf-section__head p{margin:0!important;color:var(--jf-muted)!important;font-size:18px!important}.jf-eyebrow{display:block;color:var(--jf-blue);font-size:13px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.jf-eyebrow--light{color:#b9d6ff}.jf-text-link{font-weight:800;color:var(--jf-blue)!important;text-decoration:none!important}
.jf-quick-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}.jf-card{display:flex!important;align-items:center;gap:18px;padding:24px!important;background:#fff!important;border:1px solid var(--jf-border)!important;border-radius:var(--jf-radius)!important;box-shadow:0 8px 24px rgba(20,40,70,.06)!important;text-decoration:none!important;color:var(--jf-dark)!important;transition:.2s}.jf-card:hover{transform:translateY(-4px);box-shadow:var(--jf-shadow)!important;border-color:#c8d7e9!important}.jf-card__icon{width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;background:#eaf2fc;color:var(--jf-blue);border-radius:14px}.jf-card__icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.jf-card__content{display:flex;flex-direction:column;min-width:0}.jf-card__content strong{font-size:19px}.jf-card__content small{font-size:14px;color:var(--jf-muted);line-height:1.45}.jf-card__arrow{margin-left:auto;font-size:23px;color:#9aabba}
.jf-news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:24px!important}.jf-news-card{background:#fff!important;border:1px solid var(--jf-border);border-radius:var(--jf-radius)!important;overflow:hidden;box-shadow:0 9px 28px rgba(20,40,70,.07)}.jf-news-card__image{height:220px;display:grid;place-items:center;background:linear-gradient(135deg,#e7f0fc,#d7e6f8);text-decoration:none}.jf-news-card__image img{width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important}.jf-news-card__image span{font-size:48px;font-weight:900;color:var(--jf-blue)}.jf-news-card__body{padding:24px}.jf-news-card time{font-size:13px;font-weight:800;color:var(--jf-blue);text-transform:uppercase}.jf-news-card h3{margin:9px 0!important;font-size:23px!important;line-height:1.25!important}.jf-news-card h3 a{text-decoration:none!important;color:var(--jf-dark)!important}.jf-news-card p{color:var(--jf-muted)!important;margin:0 0 16px!important}
.jf-notices-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;align-items:start}.jf-notices-intro h2{color:#fff!important}.jf-notices-intro p{color:rgba(255,255,255,.78)!important;font-size:18px!important;margin-bottom:28px!important}.jf-list{display:grid;gap:12px}.jf-list__item{display:flex!important;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:14px!important;text-decoration:none!important;color:#fff!important}.jf-list__item span{display:flex;flex-direction:column}.jf-list__item small{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#b9d6ff}.jf-list__item strong{font-size:17px}.jf-list__item time{white-space:nowrap;color:rgba(255,255,255,.72)}
.jf-about{display:grid!important;grid-template-columns:1.12fr .88fr!important;gap:60px!important;align-items:center}.jf-about__image{position:relative}.jf-about__image:after{content:"";position:absolute;left:-18px;bottom:-18px;width:130px;height:130px;background:var(--jf-yellow);border-radius:20px;z-index:-1}.jf-about__image img{display:block;width:100%!important;height:500px!important;object-fit:cover!important;border-radius:22px!important;box-shadow:var(--jf-shadow);margin:0!important}.jf-about__content p{font-size:18px!important;color:var(--jf-muted)!important;line-height:1.75!important;margin-bottom:28px!important}
.jf-contact-band{padding:70px 0;background:var(--jf-dark);color:#fff}.jf-contact-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:20px;align-items:stretch}.jf-contact-band h2{color:#fff!important;font-size:38px!important}.jf-contact-band p{color:rgba(255,255,255,.68)!important}.jf-contact-box{padding:24px;border:1px solid rgba(255,255,255,.13);border-radius:15px;background:rgba(255,255,255,.06);display:flex;flex-direction:column;justify-content:center}.jf-contact-box small{color:#9fb2c6;text-transform:uppercase;letter-spacing:.1em;font-weight:800}.jf-contact-box strong{font-size:17px;margin-top:7px}
.jf-empty{grid-column:1/-1;padding:34px;border:1px dashed #cbd6e1;border-radius:16px;background:#f9fbfd;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--jf-muted)}.jf-empty strong{color:var(--jf-dark);font-size:19px}.jf-empty--blue{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.22);color:rgba(255,255,255,.72)}.jf-empty--blue strong{color:#fff}
.jf-site-footer{background:#0e151d;color:#c7d0da;padding:54px 0 0}.jf-footer-grid{width:min(1180px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:50px;padding-bottom:42px}.jf-site-footer h2,.jf-site-footer h3{color:#fff;margin:0 0 14px}.jf-site-footer a{display:block;color:#c7d0da;text-decoration:none;margin:6px 0}.jf-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 20px;text-align:center;font-size:13px}
body.home .site-content,body.home .content-area,body.home .site-main,body.home .entry-content{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}body.home .entry-header,body.home .page-header,body.home .entry-title{display:none!important}
@media(max-width:980px){.jf-primary-nav{display:none;position:absolute;left:0;right:0;top:88px;background:#fff;border-top:1px solid var(--jf-border);box-shadow:0 12px 20px rgba(20,40,70,.10)}.jf-primary-nav.is-open{display:block}.jf-menu{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;padding:14px 20px!important}.jf-menu a{display:block;padding:10px}.jf-menu-toggle{display:block}.jf-quick-grid,.jf-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.jf-notices-layout,.jf-about{grid-template-columns:1fr!important}.jf-contact-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.jf-header-inner{width:calc(100% - 24px);height:76px}.jf-brand img{width:48px!important;height:48px!important}.jf-brand strong{font-size:11px}.jf-brand small{font-size:15px}.jf-primary-nav{top:76px}.jf-container{width:calc(100% - 28px)}.jf-hero{min-height:610px}.jf-hero__content{padding:70px 12px}.jf-hero__logo{width:92px!important;height:92px!important}.jf-kicker{font-size:14px!important}.jf-hero h1{font-size:43px!important}.jf-section{padding:66px 0!important}.jf-section__head--row{display:block}.jf-section__head--row .jf-text-link{display:inline-block;margin-top:15px}.jf-quick-grid,.jf-news-grid,.jf-contact-grid{grid-template-columns:1fr!important}.jf-about__image img{height:300px!important}.jf-footer-grid{grid-template-columns:1fr;gap:24px}.jf-card{padding:20px!important}}
/* Submenus do cabeçalho */
.jf-menu,
.jf-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jf-menu > li {
    position: relative;
}

.jf-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    padding: 10px 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 12px 30px rgba(15, 35, 55, 0.16);
    z-index: 9999;
}

.jf-menu .sub-menu li {
    display: block;
    width: 100%;
}

.jf-menu .sub-menu a {
    display: block;
    padding: 11px 18px;
    color: #172638;
    white-space: nowrap;
    text-decoration: none;
}

.jf-menu .sub-menu a:hover {
    background: #eef5fc;
    color: #005da8;
}

/* Mostrar submenu ao passar o rato ou usar teclado */
.jf-menu li:hover > .sub-menu,
.jf-menu li:focus-within > .sub-menu {
    display: block;
}
/* Páginas internas do tema filho */
.jf-page-main {
    margin: 0;
    padding: 0;
}

.jf-page-content {
    margin: 0;
}

.jf-page-content .entry-content {
    margin: 0;
}

/* ==================================================
   PÁGINA INDIVIDUAL DE NOTÍCIA
================================================== */

.jf-news-single {
    background: #ffffff;
    padding-bottom: 80px;
}

.jf-news-header {
    background: #f3f6fa;
    padding: 70px 24px 55px;
}

.jf-news-header .jf-container,
.jf-news-content,
.jf-news-image {
    max-width: 1050px;
    margin-left: auto;
    margin-right: auto;
}

.jf-news-back {
    display: inline-block;
    margin-bottom: 30px;
    color: #005da8;
    font-weight: 700;
    text-decoration: none;
}

.jf-news-back:hover {
    color: #2f9b46;
}

.jf-news-label {
    display: block;
    margin-bottom: 12px;
    color: #005da8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.jf-news-header h1 {
    max-width: 850px;
    margin: 0 0 18px;
    color: #172638;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
}

.jf-news-meta {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

.jf-news-image {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 24px 20px;
}

.jf-news-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0,0,0,.12);
}

.jf-news-content {
    padding: 55px 24px 0;
    color: #334155;
    font-size: 18px;
    line-height: 1.85;
}

.jf-news-content p {
    margin: 0 0 26px;
}

.jf-news-content h2,
.jf-news-content h3 {
    color: #172638;
    margin-top: 42px;
}

.jf-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

@media (max-width: 700px) {
    .jf-news-header {
        padding: 45px 20px 38px;
    }

    .jf-news-image {
        padding-top: 30px;
    }

    .jf-news-content {
        padding-top: 35px;
        font-size: 17px;
    }
}
/* ==================================================
   ARQUIVO DE NOTÍCIAS
================================================== */

.jf-news-archive {
    background: #ffffff;
}

.jf-news-archive-header {
    background: #f3f6fa;
    padding: 70px 24px 55px;
}

.jf-news-archive-header .jf-container,
.jf-news-archive-body .jf-container {
    max-width: 1180px;
    margin: 0 auto;
}

.jf-news-archive-header h1 {
    margin: 4px 0 14px;
    color: #172638;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
}

.jf-news-archive-header p {
    max-width: 700px;
    margin: 0;
    color: #64748b;
    font-size: 18px;
}

.jf-news-archive-body {
    padding: 65px 24px 85px;
}

.jf-news-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.jf-news-archive-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e9ef;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(20, 40, 70, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.jf-news-archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(20, 40, 70, 0.14);
}

.jf-news-card-image {
    display: block;
    height: 260px;
    overflow: hidden;
    background: #eef2f6;
}

.jf-news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jf-news-placeholder {
    width: 100%;
    height: 100%;
    background: #eef2f6;
}

.jf-news-card-content {
    padding: 26px;
}

.jf-news-card-content time {
    display: block;
    margin-bottom: 12px;
    color: #005da8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.jf-news-card-content h2 {
    margin: 0 0 14px;
    font-size: 24px;
    line-height: 1.25;
}

.jf-news-card-content h2 a {
    color: #172638;
    text-decoration: none;
}

.jf-news-card-content h2 a:hover {
    color: #005da8;
}

.jf-news-card-content p {
    margin: 0 0 22px;
    color: #64748b;
    line-height: 1.65;
}

.jf-news-read-more {
    color: #005da8;
    font-weight: 700;
    text-decoration: none;
}

.jf-news-read-more:hover {
    color: #2f9b46;
}

.jf-news-pagination {
    margin-top: 50px;
}

.jf-news-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jf-news-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ec;
    border-radius: 8px;
    color: #172638;
    text-decoration: none;
}

.jf-news-pagination .current,
.jf-news-pagination .page-numbers:hover {
    background: #005da8;
    border-color: #005da8;
    color: #ffffff;
}

@media (max-width: 950px) {
    .jf-news-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .jf-news-archive-header {
        padding: 48px 20px 38px;
    }

    .jf-news-archive-body {
        padding: 40px 20px 60px;
    }

    .jf-news-archive-grid {
        grid-template-columns: 1fr;
    }

    .jf-news-card-image {
        height: 230px;
    }
}
/* Listagens de documentos: atas, editais, regulamentos, etc. */
.document-list-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 45px 24px 75px;
}

.document-list-page .wp-block-details {
    margin-bottom: 18px;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(20, 40, 70, 0.06);
    overflow: hidden;
}

.document-list-page .wp-block-details summary {
    cursor: pointer;
    padding: 20px 24px;
    color: #172638;
    font-size: 20px;
    font-weight: 700;
    list-style: none;
}

.document-list-page .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.document-list-page .wp-block-details summary::after {
    content: "+";
    float: right;
    color: #005da8;
    font-size: 25px;
    line-height: 1;
}

.document-list-page .wp-block-details[open] summary::after {
    content: "−";
}

.document-list-page .wp-block-details[open] summary {
    background: #f3f6fa;
}

.document-list-page .wp-block-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 16px 24px;
    border-top: 1px solid #edf1f5;
}

.document-list-page .wp-block-file a:first-child {
    color: #172638;
    font-weight: 600;
    text-decoration: none;
}

.document-list-page .wp-block-file a:first-child:hover {
    color: #005da8;
}

.document-list-page .wp-block-file__button {
    flex-shrink: 0;
    margin: 0 !important;
    padding: 9px 17px !important;
    border-radius: 8px !important;
    background: #005da8 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600;
    text-decoration: none;
}

.document-list-page .wp-block-file__button:hover {
    background: #2f9b46 !important;
}

@media (max-width: 650px) {
    .document-list-page {
        padding: 30px 18px 55px;
    }

    .document-list-page .wp-block-file {
        align-items: flex-start;
        flex-direction: column;
    }
}
.contact-card {
    height: 100%;
    background: #ffffff;
    border: 1px solid #e1e7ed;
    border-radius: 16px;
    padding: 30px !important;
    box-shadow: 0 8px 25px rgba(20, 40, 70, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20, 40, 70, 0.14);
}

.contact-card svg {
    color: #005da8 !important;
    fill: #005da8 !important;
}

.contact-card h3,
.contact-card h4 {
    color: #172638;
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    color: #64748b;
    line-height: 1.6;
    text-decoration: none;
}

.contact-card a:hover {
    color: #005da8;
}
.contact-map {
    max-width: 1120px;
    margin: 22px auto 60px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(20, 40, 70, 0.14);
}

.contact-map iframe {
    display: block;
    width: 100% !important;
    height: 460px !important;
    border: 0;
}

@media (max-width: 700px) {
    .contact-map iframe {
        height: 360px !important;
    }
}

.contact-form-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 45px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.contact-form-section h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #172638;
    font-size: 34px;
}

.contact-form-section label {
    display: block;
    margin-bottom: 18px;
    color: #172638;
    font-weight: 600;
}

.contact-form-section input,
.contact-form-section textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 15px;
    border: 1px solid #d8e0e8;
    border-radius: 9px;
    font: inherit;
}

.contact-form-section textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-section input:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-color: #005da8;
    box-shadow: 0 0 0 3px rgba(0, 93, 168, 0.12);
}

.contact-form-section input[type="submit"] {
    width: auto;
    padding: 12px 24px;
    background: #005da8;
    color: #ffffff;
    border: 0;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.contact-form-section input[type="submit"]:hover {
    background: #2f9b46;
}
/* CONTACTOS — RESPONSIVO */

/* Container dos quatro cartões */


/* Cartões */
.contact-card {
    min-width: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Evitar que email/morada rebentem o cartão */
.contact-card p,
.contact-card a {
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Mapa */
.contact-map {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 22px auto 60px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 14px 35px rgba(20, 40, 70, 0.14);
}

.contact-map iframe {
    display: block;
    width: 100% !important;
    height: 460px !important;
    border: 0;
}

/* Formulário */
.contact-form-section {
    width: calc(100% - 40px);
    max-width: 1120px;
    margin: 0 auto 80px;
    box-sizing: border-box;
}

.contact-form-section input,
.contact-form-section textarea,
.contact-form-section select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Tablet: 2 cartões por linha */
@media (max-width: 900px) {
    .contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-map iframe {
        height: 400px !important;
    }
}

/* Telemóvel: 1 cartão por linha */
@media (max-width: 600px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }

    .contact-card {
        padding: 24px 20px !important;
    }

    .contact-map {
        width: calc(100% - 32px);
        margin: 20px auto 40px;
        border-radius: 12px;
    }

    .contact-map iframe {
        height: 320px !important;
    }

    .contact-form-section {
        width: calc(100% - 32px);
        margin-bottom: 55px;
        padding: 26px 18px;
        border-radius: 14px;
    }

    .contact-form-section h2 {
        font-size: 27px;
    }

    .contact-form-section input[type="submit"] {
        width: 100%;
    }
}