:root {
    --primary: #1c2f57;
    --primary-dark: #13213d;
    --primary-light: #314f8f;
    --accent: #f08c2a;
    --accent-dark: #d97412;
    --surface: #ffffff;
    --surface-alt: #f9fbff;
    --bg: #f5f7fb;
    --text: #1f2937;
    --muted: #667085;
    --success: #0f766e;
    --danger: #b42318;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 6px 20px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 12px 30px rgba(17, 24, 39, 0.12);
    --transition: all 0.26s ease;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.section-title { margin-top: 0; margin-bottom: 0.45rem; font-size: clamp(1.45rem, 2.4vw, 2rem); color: var(--primary-dark); line-height: 1.2; }
.section-lead { margin: 0 0 1.2rem; color: var(--muted); max-width: 74ch; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--site-header-gradient, linear-gradient(to right, rgba(49, 79, 143, 0.95), rgba(19, 33, 61, 1)));
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; position: relative; }
.header-brand { display: flex; flex-direction: column; text-decoration: none; gap: 0.25rem; }
.header-logo-img { width: 185px; height: auto; border-radius: 4px; background: #fff; padding: 0.2rem; }
.header-tagline { font-size: 0.78rem; color: #f7d5b2; font-weight: 600; }
.header-accent { height: 3px; background: linear-gradient(90deg, var(--accent), #f4b77c, var(--accent)); }

.nav-main { display: flex; gap: 1.1rem; }
.nav-main a { text-decoration: none; color: #fff; font-weight: 600; font-size: 0.92rem; opacity: 0.92; }
.nav-main a:hover { color: #ffd9b0; }
.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.hero {
    background-image:
        radial-gradient(circle at 85% 12%, rgba(240, 140, 42, 0.22), transparent 46%),
        var(--site-header-gradient, linear-gradient(to right, rgba(49, 79, 143, 0.95), rgba(19, 33, 61, 1)));
    color: #fff;
    padding: clamp(3rem, 8vw, 5.5rem) 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 52%;
    background: var(--site-footer-gradient, linear-gradient(to right, rgba(49, 79, 143, 0.95), rgba(19, 33, 61, 1)));
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}
.hero > .container {
    position: relative;
    z-index: 1;
}
.hero--has-image {
    background-image:
        linear-gradient(140deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.38) 100%),
        var(--hero-photo);
    background-size: auto, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}
.hero--has-image::before {
    opacity: 0.2;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-grid--split { grid-template-columns: 1.4fr 0.8fr; }
.hero-grid--full { grid-template-columns: 1fr; }
.hero-copy .badge { margin-bottom: 0.65rem; }
.hero h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em; }
.hero p { margin: 0; color: #dbe4f5; font-size: 1.06rem; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-indicador {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(3px);
    box-shadow: var(--shadow-md);
}
.hero-indicador strong { font-size: 2rem; display: block; color: #fff; }
.hero-indicador span { color: #e8f0ff; }
.hero-kpis { display: grid; gap: 0.75rem; align-content: start; }

.hero-atuacao {
    margin-top: clamp(1.5rem, 4vw, 2.75rem);
    padding-top: clamp(1.35rem, 3vw, 2.1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.hero-atuacao .section-title { color: #fff; }
.hero-atuacao .section-lead { color: rgba(232, 240, 255, 0.92); margin-bottom: 1.1rem; }
.cards-atuacao {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
/* Parágrafos dos cards: .hero p herdava cor clara; fundo do card é branco */
.hero-atuacao .card p {
    color: #111;
}

.btn {
    display: inline-block;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    padding: 0.74rem 1.2rem;
    border: 2px solid transparent;
    transition: var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(240, 140, 42, 0.28); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 22px rgba(217, 116, 18, 0.25); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.page-hero { padding: 2.6rem 0 1.3rem; }
.page-hero h1 { color: var(--primary-dark); margin: 0 0 0.5rem; font-size: clamp(2rem, 4vw, 2.8rem); }
.section { padding: 2.6rem 0; }
.section-alt { background: #eef2f8; }

.cards { display: grid; gap: 1.2rem; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e6eaf0;
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.obra-thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 0.6rem; }
.card h2, .card h3 { margin-top: 0; color: var(--primary); }
.card-full { grid-column: 1 / -1; }
.check-list { margin: 0.6rem 0; padding-left: 1.2rem; }
.check-list li { margin: 0.35rem 0; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.kpi span { display: block; font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.kpi small { color: var(--muted); }

.badge {
    display: inline-block;
    background: #e6efff;
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.mapa-placeholder {
    background: #fff;
    border: 2px dashed #b8c2d4;
    border-radius: 10px;
    padding: 1.2rem;
}
.clientes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.clientes-showcase-head {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid #dbe4f3;
    background: linear-gradient(140deg, #eef3ff 0%, #f8fbff 48%, #ffffff 100%);
}
.clientes-showcase-head .badge { margin-bottom: 0.55rem; }
.clientes-showcase-head .section-title { margin-bottom: 0.45rem; }
.obras-home-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.55rem;
    align-items: center;
}
.obras-home-viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, #ffffff 0%, #f4f7fc 100%);
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(226, 232, 243, 0.95);
    padding: 0.45rem 0.35rem;
}
.obras-carousel-prev { grid-column: 1; grid-row: 1; }
.obras-carousel-next { grid-column: 3; grid-row: 1; }
.obras-home-track {
    position: relative;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Suavidade só via scrollTo no JS — evita luta com scroll-behavior + snap. */
    scroll-behavior: auto;
    padding: 0.25rem 0.35rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.obras-home-track::-webkit-scrollbar {
    display: none;
}
.obras-home-slide {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.obras-home-slide.is-carousel-active {
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}
.obra-thumb-wrap {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.65rem;
    background: #e8eef8;
    line-height: 0;
}
.obra-thumb-wrap .obra-thumb {
    margin-bottom: 0;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.obras-home-slide.is-carousel-active .obra-thumb-wrap .obra-thumb {
    transform: scale(1.03);
}
.obras-home-dots {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-height: 1.25rem;
}
.obras-home-dots:empty {
    display: none;
}
.obras-home-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c5cce0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.obras-home-dots button:hover {
    background: #9fb0d4;
}
.obras-home-dots button.is-active {
    background: var(--primary);
    transform: scale(1.35);
    box-shadow: 0 0 0 3px rgba(49, 79, 143, 0.2);
}
.obras-home-dots button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.obras-carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(208, 213, 221, 0.95);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.obras-carousel-btn:hover {
    border-color: #89a7df;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(49, 79, 143, 0.12);
}
.obras-carousel-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.obras-home-carousel--single {
    grid-template-columns: 1fr;
}
.obras-home-carousel--single .obras-carousel-prev,
.obras-home-carousel--single .obras-carousel-next {
    display: none;
}
.obras-home-carousel--single .obras-home-viewport {
    grid-column: 1;
    grid-row: 1;
}
.obras-home-carousel--single .obras-home-dots {
    display: none;
}
.clientes-home-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.55rem;
    align-items: center;
}
.clientes-home-viewport {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(165deg, #ffffff 0%, #f4f7fc 100%);
    box-shadow: 0 8px 32px rgba(17, 24, 39, 0.07), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(226, 232, 243, 0.95);
    padding: 0.45rem 0.35rem;
}
.clientes-home-track {
    position: relative;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Suavidade só via scrollTo no JS — evita luta com scroll-behavior + snap. */
    scroll-behavior: auto;
    padding: 0.25rem 0.35rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.clientes-home-track::-webkit-scrollbar {
    display: none;
}
.clientes-home-slide {
    flex: 0 0 min(100%, 260px);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.clientes-home-slide.is-carousel-active {
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.1);
}
.clientes-home-slide .cliente-content {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
}
.cliente-nome {
    margin: 0;
    text-align: center;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.35;
}
.clientes-home-carousel--single {
    grid-template-columns: 1fr;
}
.clientes-home-carousel--single .obras-carousel-prev,
.clientes-home-carousel--single .obras-carousel-next {
    display: none;
}
.clientes-home-carousel--single .clientes-home-viewport {
    grid-column: 1;
    grid-row: 1;
}
.clientes-home-carousel--single .obras-home-dots {
    display: none;
}
.mapa-contato-wrap { margin-top: 0.5rem; }
.mapa-contato-area { height: 360px; border-radius: var(--radius-md); border: 1px solid #e2e8f3; overflow: hidden; position: relative; z-index: 0; }
.mapa-contato-area .leaflet-container { z-index: 1 !important; }

.carousel-arrow {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}
.carousel-arrow:disabled { opacity: 0.45; cursor: not-allowed; }
.cliente-item {
    background: var(--surface);
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b4a66;
    padding: 0.75rem 0.9rem;
}
.cliente-item:hover { border-color: #bfd1f3; box-shadow: var(--shadow-sm); }
.cliente-content {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cliente-content--stack {
    width: 100%;
    flex-direction: column;
    gap: 0.48rem;
}
.cliente-logo-link { display: inline-flex; align-items: center; justify-content: center; }
.cliente-logo {
    width: 138px;
    height: 56px;
    object-fit: contain;
    margin: 0;
    flex: 0 0 auto;
}
.cliente-logo-fallback {
    border-radius: 8px;
    background: #eff3fb;
    color: var(--primary);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
}
.cliente-item:hover .cliente-item-name { color: var(--primary); }
.cliente-item-name {
    margin: 0;
    text-align: center;
    color: #263a62;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}
.muted { color: var(--muted); }

.empresa-socios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2.25rem 2rem;
    grid-gap: 2.25rem 2rem;
    padding: 0.5rem 0 0.25rem;
}
.socio-card { text-align: left; position: relative; padding-top: 3.8rem; }
.socio-avatar-wrap {
    position: absolute;
    top: -34px;
    left: 1.2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(28, 47, 87, 0.2);
    background: #dbe4f5;
}
.socio-avatar { width: 100%; height: 100%; object-fit: cover; }
.socio-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(140deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.socio-cargo { color: var(--accent-dark); font-size: 0.9rem; font-weight: 700; margin-bottom: 0.45rem; display: inline-block; }

.socio-nome { margin: 0 0 0.35rem; color: var(--primary-dark); font-size: clamp(1.1rem, 2vw, 1.25rem); }
.socio-bio-excerpt {
    margin: 0 0 0.75rem;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.65;
    text-align: left;
}
.socio-read-more {
    margin-top: 0.15rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.88rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(28, 47, 87, 0.22);
    box-shadow: none;
}
.socio-read-more:hover {
    background: rgba(28, 47, 87, 0.06);
    border-color: var(--primary);
    color: var(--primary-dark);
}
.socio-read-more:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Overlay só com div (sem dialog nativo) — compatível com qualquer host/browser */
.socio-bio-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: rgba(19, 33, 61, 0.45);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.socio-bio-overlay[hidden] {
    display: none !important;
}
.socio-bio-overlay.is-open {
    display: flex !important;
}
.socio-bio-overlay .socio-bio-dialog-panel {
    width: min(34rem, 100%);
    max-width: calc(100vw - 2rem);
}
.socio-card .socio-bio-full {
    display: none !important;
}
.socio-bio-dialog-panel {
    position: relative;
    background: linear-gradient(165deg, #dce8f9 0%, #e8f1fc 35%, #f6f9ff 68%, #ffffff 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid #d3e2f2;
    padding: 1.35rem 1.35rem 1.2rem;
    max-height: min(78vh, 36rem);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.socio-bio-dialog-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--radius-sm);
    background: #f0f4fb;
    color: var(--primary-dark);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.socio-bio-dialog-close:hover {
    background: #e2e9f5;
    color: var(--primary);
}
.socio-bio-dialog-head {
    flex-shrink: 0;
    text-align: center;
    padding: 0 2.5rem 0.15rem;
}
.socio-bio-dialog-portrait {
    width: 96px;
    height: 96px;
    margin: 0 auto 0.85rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(28, 47, 87, 0.18);
    background: #dbe4f5;
}
.socio-bio-dialog-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.socio-bio-dialog-photo[hidden],
.socio-bio-dialog-photo-fallback[hidden] {
    display: none;
}
.socio-bio-dialog-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(140deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.socio-bio-dialog-heading {
    margin: 0;
    padding: 0 0 0.25rem;
    font-size: clamp(1.15rem, 2.2vw, 1.35rem);
    color: var(--primary-dark);
    line-height: 1.3;
    text-wrap: balance;
}
.socio-bio-dialog-cargo {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-dark);
    line-height: 1.35;
}
.socio-bio-dialog-cargo[hidden] {
    display: none;
}
.socio-bio-dialog-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    margin: 0;
    padding-right: 0.2rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(28, 47, 87, 0.1);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.68;
    text-align: left;
}
.socio-bio-dialog-body .socio-bio-dialog-para {
    margin: 0 0 0.88rem;
}
.socio-bio-dialog-body .socio-bio-dialog-para:last-child {
    margin-bottom: 0;
}

.servicos-hero {
    background: linear-gradient(130deg, #e7eefc 0%, #f6f8fd 50%, #fff 100%);
    border: 1px solid #e2e8f3;
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.1rem);
}
.service-card { height: 100%; display: flex; flex-direction: column; }
.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef3ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}
.service-card ul { margin-top: 0.2rem; }

.indicador-card { text-align: center; }
.indicador-metric {
    display: block;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.45rem;
}
.indicador-caption { color: var(--muted); font-size: 0.88rem; display: block; }

.portfolio-filtros-card { margin-bottom: 1.2rem; }
.portfolio-filtros-card .portfolio-filtros { margin: 0; }

.mapa-intro-card { background: linear-gradient(130deg, #f7faff 0%, #ffffff 100%); border: 1px solid #dfe8f5; }
.map-popup-title { margin: 0 0 0.35rem; color: var(--primary-dark); font-size: 0.95rem; }
.map-popup-meta { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.82rem; }

.contact-details-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.contact-details-list li { background: #f8faff; border: 1px solid #e0e8f5; padding: 0.8rem; border-radius: var(--radius-sm); }
.field-error { color: var(--danger); font-size: 0.78rem; font-weight: 600; display: block; min-height: 1em; }

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 99;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    background: #25d366;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); }
.whatsapp-float .fa-brands.fa-whatsapp { font-size: 1.75rem; line-height: 1; display: block; }

.instagram-feed-card { padding: 0.85rem; }
.instagram-feed-iframe {
    width: 100%;
    min-height: 520px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    display: block;
}
.instagram-feed-empty {
    min-height: 220px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.55rem;
    text-align: center;
    padding: 1.2rem;
}
.instagram-feed-empty p { margin: 0; }

.portfolio-filtros { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.portfolio-filtros select { padding: 0.55rem 0.65rem; border: 1px solid #d0d5dd; border-radius: 8px; }

.mapa-page-wrap {
    display: grid;
    grid-template-columns: 320px 1fr;
    border: 1px solid #e1e6ef;
    border-radius: 10px;
    overflow: hidden;
    min-height: 500px;
    position: relative;
    isolation: isolate;
}
.mapa-lista { background: #fff; border-right: 1px solid #e7ecf3; overflow-y: auto; position: relative; z-index: 0; max-height: 500px; }
.mapa-lista h2 { margin: 0; padding: 0.9rem 1rem; font-size: 1rem; color: var(--primary); border-bottom: 1px solid #eef1f7; }
.mapa-lista-item { width: 100%; text-align: left; border: 0; background: #fff; padding: 0.75rem 1rem; border-bottom: 1px solid #f2f4f8; cursor: pointer; }
.mapa-lista-item:hover { background: #f7f9fd; }
.mapa-lista-item .item-nome { display: block; font-weight: 700; color: var(--primary); }
.mapa-lista-item .item-meta { display: block; color: var(--muted); font-size: 0.85rem; }
.mapa-area {
    min-height: 500px;
    height: 500px;
    position: relative;
    z-index: 0;
    overflow: hidden;
    background: #f0f3f8;
}
.mapa-area .leaflet-container {
    z-index: 1 !important;
    font-family: inherit;
}
.mapa-area #mapa { width: 100%; height: 100%; min-height: 100%; }
.mapa-iframe-wrap { border-radius: 10px; overflow: hidden; box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.mapa-iframe { width: 100%; height: 420px; border: 0; display: block; }

.pin-obra-wrap { background: none !important; border: none !important; }
.pin-obra { position: relative; width: 32px; height: 32px; }
.pin-obra::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: var(--accent); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pin-obra::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; }

.obra-thumb-wrap { overflow: hidden; border-radius: 8px; }
.obra-lightbox-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}
.obra-lightbox-trigger .obra-thumb { width: 100%; transition: transform 0.2s ease; }
.obra-lightbox-trigger:hover .obra-thumb { transform: scale(1.03); }

.obra-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 16, 28, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.obra-lightbox[hidden] { display: none !important; }
.obra-lightbox-img {
    max-width: min(96vw, 1100px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}
.obra-lightbox-close,
.obra-lightbox-prev,
.obra-lightbox-next {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.35rem 0.65rem;
}
.obra-lightbox-close { top: 1rem; right: 1rem; }
.obra-lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.obra-lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.obra-lightbox-close:hover,
.obra-lightbox-prev:hover,
.obra-lightbox-next:hover { background: rgba(255,255,255,0.22); }

.contato-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.form-contato label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; color: #475467; }
.form-contato input, .form-contato textarea {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0.7rem;
    font: inherit;
}
.form-contato input:focus,
.form-contato textarea:focus {
    border-color: #89a7df;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(49, 79, 143, 0.15);
}
.alert { padding: 0.65rem 0.8rem; border-radius: 8px; margin-bottom: 0.8rem; }
.alert-success { background: #e7f7ec; color: #126737; border: 1px solid #8bd9a7; }
.alert-error { background: #fdecec; color: #9f1c1c; border: 1px solid #f3a9a9; }

.site-footer {
    margin-top: auto;
    background: var(--site-footer-gradient, linear-gradient(to right, rgba(49, 79, 143, 0.95), rgba(19, 33, 61, 1)));
    color: rgba(255,255,255,0.9);
}
.footer-accent { height: 3px; background: linear-gradient(90deg, var(--accent), #f4b77c, var(--accent)); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; padding: 2rem 0; }
.footer-logo-img { width: 170px; border-radius: 4px; background: #fff; padding: 0.15rem; margin-bottom: 0.8rem; }
.footer-title { margin-top: 0; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.06em; }
.footer-contact p { margin: 0.4rem 0; }
.footer-contact a.footer-contact-link {
    color: inherit;
    text-decoration: none;
}
.footer-contact a.footer-contact-link:hover {
    color: #ffd9b0;
    text-decoration: underline;
}
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-links a { text-decoration: none; color: #e4e9f5; }
.footer-links a:hover { color: #ffd9b0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; text-align: center; }
.footer-copy { margin: 0; color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-social {
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
}
.footer-social a {
    text-decoration: none;
    color: #ffd9b0;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 217, 176, 0.35);
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}
.footer-social a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 980px) {
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid--split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .clientes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mapa-page-wrap { grid-template-columns: 1fr; }
    .mapa-lista { border-right: 0; border-bottom: 1px solid #e7ecf3; max-height: 240px; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-main {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
        z-index: 20;
    }
    .nav-main.ativo { display: flex; }
    .nav-main a { padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .cards-2, .cards-3, .contato-grid, .form-grid, .kpis, .clientes-grid, .footer-grid { grid-template-columns: 1fr; }
    .instagram-feed-iframe { min-height: 430px; }
    .socio-card { padding-top: 3.4rem; }
    .socio-avatar-wrap { width: 62px; height: 62px; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.35rem; right: 12px; bottom: 12px; }
}
