/* ID Digital — Layout V5 (banner-hero, fiel ao mockup escolhido) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #ffffff;
    --bg-soft: #f5f3ee;
    --bg-dark: #0d1117;
    --bg-darker: #060a10;
    --ink: #0d1117;
    --ink-soft: #4a4f57;
    --ink-faint: #8d929b;
    --line: #e2dfd6;
    --line-dark: #1f242c;
    --accent: #16a596;
    --accent-soft: #1ec3b1;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg); color: var(--ink); line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

.display { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -2px; line-height: 0.92; }
.italic { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; letter-spacing: -1px; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; position: relative; }

/* === TOPBAR === */
.topbar {
    background: var(--bg-darker); color: rgba(255,255,255,0.72);
    font-size: 13px; padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: rgba(255,255,255,0.95); text-decoration: none; font-weight: 500; }
.topbar .phone { font-weight: 700; color: white; }
.topbar .phone-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-left: 6px; }

/* === HERO === */
.hero {
    position: relative; min-height: 100vh;
    background-color: var(--bg-darker);
    background-image:
        linear-gradient(135deg, rgba(13, 17, 23, 0.78) 0%, rgba(13, 17, 23, 0.55) 50%, rgba(13, 17, 23, 0.85) 100%),
        url('/assets/img/hero-bg.svg');
    background-size: cover; background-position: center;
    color: white; overflow: hidden;
    display: flex; flex-direction: column;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(217, 119, 6, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Header dentro do hero — position absolute garante que fica colado ao topo,
   independentemente do flex layout do .hero. Em páginas internas é relative. */
.site-header {
    position: relative; z-index: 10;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Variant light — usado em páginas internas (fundo branco/bege) */
.site-header-light {
    background: white;
    border-bottom: 1px solid var(--line);
}
.site-header-light .logo { color: var(--ink); }
.site-header-light .nav-links a { color: var(--ink-soft); }
.site-header-light .nav-links a:hover { color: var(--ink); }
.site-header-light .nav-links a::after { background: var(--accent); }
.site-header-light .btn { background: var(--ink); color: white; border-color: var(--ink); }
.site-header-light .btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.site-header nav { display: flex; align-items: center; gap: 48px; }
.logo {
    display: inline-flex; align-items: center;
    text-decoration: none; color: white;
    line-height: 0;
}
.logo img {
    display: block;
    height: 44px; width: auto;
}
.nav-links {
    display: flex; gap: 32px; list-style: none;
    flex: 1; justify-content: center;
}
.nav-links a {
    color: rgba(255,255,255,0.85); text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: color 0.2s; position: relative;
    padding: 6px 0;
}
.nav-links a:hover { color: white; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px; background: var(--accent-soft);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px; border: 1px solid white; background: white;
    color: var(--bg-darker); text-decoration: none;
    font-weight: 600; font-size: 14px; letter-spacing: 0.2px;
    transition: all 0.2s; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: white; }
.btn .ar { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 18px; line-height: 0; }
.btn-ghost {
    background: transparent; color: white; border-color: rgba(255,255,255,0.4);
}
.btn-ghost:hover { border-color: white; background: white; color: var(--bg-darker); }

/* Hero body */
.hero-body {
    flex: 1;
    padding: 56px 0 80px;
    position: relative; z-index: 5;
}
/* Faixa horizontal abaixo do nav com counter "01 / 04 — WEB DESIGN" */
.hero-counter-bar-wrap {
    position: relative; z-index: 5;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 18px 0 16px;
}
.hero-counter {
    display: flex; align-items: center; justify-content: center;
    gap: 16px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px; letter-spacing: 2.5px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}
.hero-counter .num-current { color: white; font-weight: 700; }
.hero-counter-progress {
    width: 60px; height: 1px; background: rgba(255,255,255,0.18);
    position: relative;
}
.hero-counter-progress::after {
    content: ''; position: absolute; left: 0; top: 0;
    width: 25%; height: 100%;
    background: var(--accent-soft);
}
.hero-kicker {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.7); font-weight: 500;
    margin-bottom: 32px;
}
.hero-kicker::before {
    content: ''; width: 32px; height: 1px; background: var(--accent-soft);
}
.hero h1 {
    font-size: clamp(56px, 11vw, 168px);
    margin-bottom: 32px;
    text-transform: uppercase;
}
.hero h1 .em {
    text-transform: none; font-family: 'Instrument Serif', serif;
    font-style: italic; font-weight: 400; color: var(--accent-soft);
    letter-spacing: -3px;
}
.hero p {
    font-size: 19px; max-width: 720px;
    color: rgba(255,255,255,0.85); line-height: 1.55;
    font-weight: 400; margin-bottom: 48px;
}
.hero-stats {
    display: flex; gap: 64px; padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 64px; font-weight: 800; letter-spacing: -3px;
    line-height: 1; color: white; margin-bottom: 8px;
}
.stat-num sup {
    font-size: 32px; color: var(--accent-soft);
    margin-left: 4px; vertical-align: top; line-height: 1;
}
.stat-lbl {
    font-size: 13px; color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

.scroll-indicator {
    position: absolute; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); font-weight: 600;
    z-index: 10;
}
.scroll-indicator::after {
    content: ''; width: 1px; height: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
    margin-left: 4px;
}

/* === SECTIONS GENÉRICAS === */
section:not(.hero) { padding: 140px 0; }
.section-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; letter-spacing: 3px; color: var(--accent);
    margin-bottom: 24px; font-weight: 600; text-transform: uppercase;
    display: flex; align-items: center; gap: 12px;
}
.section-num::before {
    content: ''; width: 32px; height: 1px; background: var(--accent);
}
.section-head {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
    margin-bottom: 80px; align-items: end;
}
.section-head h2 {
    font-size: clamp(48px, 7vw, 104px);
    text-transform: uppercase; line-height: 0.95;
}
.section-head h2 .em {
    text-transform: none; font-family: 'Instrument Serif', serif;
    font-style: italic; font-weight: 400; color: var(--accent);
    letter-spacing: -2px;
}
.section-head .lead {
    font-size: 19px; color: var(--ink-soft); line-height: 1.55;
    max-width: 480px;
}

/* === ÁREAS (Section 01) === */
.areas {
    background: var(--bg-soft); border-top: 1px solid var(--line);
}
.areas-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.area {
    background: white; padding: 56px 48px;
    border: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
    transition: transform 0.3s, border-color 0.3s;
    position: relative; min-height: 380px;
    display: flex; flex-direction: column;
}
.area:hover { transform: translateY(-4px); border-color: var(--ink); }
.area-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; color: var(--ink-faint); letter-spacing: 2px;
    margin-bottom: 80px;
}
.area h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 48px; font-weight: 800; letter-spacing: -1.5px;
    line-height: 1; margin-bottom: 12px;
}
.area h3 .em {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-weight: 400; color: var(--accent); letter-spacing: -1px;
}
.area p {
    color: var(--ink-soft); font-size: 16px; line-height: 1.65;
    flex: 1; margin-bottom: 24px;
}
.area-list {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 24px; border-top: 1px solid var(--line);
}
.area-list span {
    background: var(--bg-soft); border: 1px solid var(--line);
    padding: 6px 12px; font-size: 12px; color: var(--ink-soft);
    font-weight: 500;
}

/* === SERVIÇOS — LISTA === */
.services-list {
    border-top: 1px solid var(--line);
}
.service {
    display: grid; grid-template-columns: 80px 1fr 2fr 80px 60px;
    gap: 32px; align-items: center;
    padding: 32px 0; border-bottom: 1px solid var(--line);
    text-decoration: none; color: inherit;
    position: relative; transition: padding 0.3s, background 0.3s;
}
.service:hover { padding-left: 24px; padding-right: 24px; background: var(--bg-soft); }
.service:hover .service-num { color: var(--accent); }
.service:hover .service-name { transform: translateX(8px); }
.service:hover .service-name .em { color: var(--accent); }
.service:hover .plus { background: var(--accent); color: white; border-color: var(--accent); transform: rotate(90deg); }
.service-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; color: var(--ink-faint); letter-spacing: 2px;
    transition: color 0.3s;
}
.service-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px; font-weight: 700; letter-spacing: -0.8px;
    line-height: 1.05; transition: transform 0.3s;
}
.service-name .em {
    font-family: 'Instrument Serif', serif; font-style: italic;
    font-weight: 400; color: var(--ink); letter-spacing: -0.5px;
    transition: color 0.3s;
}
.service-desc {
    color: var(--ink-soft); font-size: 15px; line-height: 1.6;
}
.service-cat {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 500;
}
.plus {
    width: 44px; height: 44px; border: 1px solid var(--ink);
    background: white; color: var(--ink);
    display: grid; place-items: center;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700;
    font-size: 22px; line-height: 1;
    transition: all 0.3s;
    margin-left: auto;
}

/* === PORTFOLIO (dark) === */
.portfolio-section {
    background: var(--bg-darker); color: white; padding: 140px 0;
}
.portfolio-section .section-num { color: var(--accent-soft); }
.portfolio-section .section-num::before { background: var(--accent-soft); }
.portfolio-section h2 { color: white; }
.portfolio-section h2 .em { color: var(--accent-soft); }
.portfolio-section .lead { color: rgba(255,255,255,0.7); }
.portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.project {
    text-decoration: none; color: white;
    transition: transform 0.3s;
}
.project:hover { transform: translateY(-6px); }
.project-img {
    aspect-ratio: 4 / 5;
    background-size: cover; background-position: center;
    margin-bottom: 20px; position: relative; overflow: hidden;
}
.project-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(13, 17, 23, 0.7));
}
.project:nth-child(1) .project-img { background-image: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.project:nth-child(2) .project-img { background-image: linear-gradient(135deg, #0d4744, #1ec3b1); }
.project:nth-child(3) .project-img { background-image: linear-gradient(135deg, #064e3b, #10b981); }
.project-cat {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 8px;
}
.project h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px; font-weight: 700; letter-spacing: -0.5px;
    margin-bottom: 8px;
}
.project-loc {
    font-size: 14px; color: rgba(255,255,255,0.55);
}

/* === CTA SECTION === */
.cta-section {
    background: var(--bg-soft); padding: 140px 0;
}
.cta-grid {
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
    align-items: start;
}
.cta-grid h2 {
    font-size: clamp(48px, 6.5vw, 88px);
    text-transform: uppercase; line-height: 0.95; margin-bottom: 24px;
}
.cta-grid h2 .em {
    text-transform: none; font-family: 'Instrument Serif', serif;
    font-style: italic; font-weight: 400; color: var(--accent);
    letter-spacing: -2px;
}
.cta-grid p {
    color: var(--ink-soft); font-size: 17px; line-height: 1.6;
    margin-bottom: 32px;
}
.process {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.process-item {
    border-top: 1px solid var(--ink); padding-top: 20px;
}
.process-num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; color: var(--ink-faint); letter-spacing: 2px;
    margin-bottom: 12px; font-weight: 600;
}
.process-item h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px; font-weight: 700; margin-bottom: 8px;
    letter-spacing: -0.4px;
}
.process-item p {
    font-size: 14px; color: var(--ink-soft); line-height: 1.5;
    margin-bottom: 0;
}

/* === FOOTER === */
.site-footer {
    background: var(--bg-darker); color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
}
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
    padding-bottom: 48px;
}
.footer-top .logo { color: white; margin-bottom: 24px; }
.footer-top p { font-size: 15px; line-height: 1.7; max-width: 320px; margin-bottom: 24px; }
.footer-top h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: white; font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
    margin-bottom: 20px; text-transform: uppercase;
}
.footer-top ul { list-style: none; }
.footer-top li { margin-bottom: 10px; font-size: 14px; }
.footer-top a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; }
.footer-top a:hover { color: var(--accent-soft); }

/* === FOOTER PARTNERS — slider marquee === */
.footer-partners {
    position: relative;
    padding: 32px 0;
    overflow: hidden;
    /* viewport variables: ajustar tamanho/gap por breakpoint via media query */
    --logo-w: 220px;
    --logo-h: 100px;
    --logo-gap: 32px;
    --scroll-speed: 50s;
}
/* fade nas pontas — funde com o fundo escuro do footer */
.footer-partners::before,
.footer-partners::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.footer-partners::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-darker) 0%, transparent 100%);
}
.footer-partners::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-darker) 0%, transparent 100%);
}
.partner-track {
    display: flex;
    align-items: center;
    width: max-content;
    gap: var(--logo-gap);
    animation: partner-scroll var(--scroll-speed) linear infinite;
}
.partner-track:hover { animation-play-state: paused; }
@keyframes partner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.partner-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--logo-w);
    height: var(--logo-h);
    flex-shrink: 0;
    color: rgba(255,255,255,0.5);
    transition: color 0.25s, opacity 0.25s, transform 0.25s;
    text-decoration: none;
}
.partner-logo img {
    max-width: 100%;
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.25s, transform 0.25s;
}
/* Filtro monochrome SÓ para SVGs (placeholders simples a preto).
   PNG/JPG/WebP coloridos passam tal e qual o seu colorido. */
.partner-logo img[src$=".svg"] {
    filter: brightness(0) invert(1);
    opacity: 0.5;
}
.partner-logo:hover img { opacity: 1; transform: translateY(-1px); }
.partner-logo:hover img[src$=".svg"] { opacity: 0.95; }

/* Respeitar utilizadores que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
    .partner-track { animation: none; }
}

/* === NEWSLETTER COMPACTA === */
.footer-newsletter--compact {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: center;
    text-align: left;
}
.footer-newsletter--compact .newsletter-head h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: white; font-size: 14px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; margin: 0 0 4px;
}
.footer-newsletter--compact .newsletter-sub {
    display: block;
    font-size: 13px; line-height: 1.5;
    color: rgba(255,255,255,0.55);
}
.footer-newsletter--compact .newsletter-form {
    margin: 0;
    max-width: none;
}
.footer-newsletter--compact .newsletter-input-row {
    display: flex; gap: 0;
}
.footer-newsletter--compact .newsletter-input {
    flex: 1; padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: white; font: inherit; font-size: 14px;
    outline: none; transition: border-color 0.2s, background 0.2s;
}
.footer-newsletter--compact .newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter--compact .newsletter-input:focus {
    border-color: var(--accent); background: rgba(255,255,255,0.08);
}
.footer-newsletter--compact .newsletter-btn {
    padding: 12px 22px;
    background: var(--accent); color: white;
    border: 1px solid var(--accent);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700; font-size: 13px; letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer; transition: background 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}
.footer-newsletter--compact .newsletter-btn:hover { background: var(--accent-strong, #c0670c); }
.footer-newsletter--compact .newsletter-gdpr {
    display: flex; gap: 8px; align-items: flex-start;
    margin-top: 10px;
    font-size: 11px; line-height: 1.5;
    color: rgba(255,255,255,0.5);
    text-align: left;
    cursor: pointer;
}
.footer-newsletter--compact .newsletter-gdpr input[type="checkbox"] {
    margin-top: 1px; flex-shrink: 0;
    width: 13px; height: 13px;
    accent-color: var(--accent);
    cursor: pointer;
}
.footer-newsletter--compact .newsletter-gdpr a {
    color: var(--accent-soft, var(--accent));
    text-decoration: underline;
}

.footer-bot {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: rgba(255,255,255,0.5);
    padding-top: 28px;
}
.footer-bot a { color: inherit; text-decoration: none; }

/* === PÁGINAS INTERNAS (não-home) === */
.page-hero {
    background: var(--bg-soft); border-top: 1px solid var(--line);
    padding: 100px 0 80px;
}
.page-hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 800; letter-spacing: -2px;
    line-height: 0.95; text-transform: uppercase;
    margin-bottom: 24px;
}
.page-hero h1 .em {
    text-transform: none; font-family: 'Instrument Serif', serif;
    font-style: italic; font-weight: 400; color: var(--accent);
    letter-spacing: -2px;
}
.page-hero .lead {
    font-size: 19px; color: var(--ink-soft); line-height: 1.55;
    max-width: 640px;
}

/* === ARTICLE CARDS (blog) === */
.articles-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}
.article-card {
    background: white; border: 1px solid var(--line);
    text-decoration: none; color: var(--ink);
    transition: transform 0.3s, border-color 0.3s;
}
.article-card:hover { transform: translateY(-4px); border-color: var(--ink); }
.article-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-card-body { padding: 24px; }
.article-card .meta {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--ink-faint); margin-bottom: 12px; font-weight: 600;
}
.article-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
    line-height: 1.15; margin-bottom: 12px;
}
.article-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px;
    font-family: 'Bricolage Grotesque', sans-serif;
    text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft);
}
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--line); background: white;
    font-family: inherit; font-size: 15px; color: var(--ink);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* === ALERTS === */
.alert { padding: 14px 20px; margin-bottom: 24px; border-left: 4px solid; font-size: 14px; }
.alert-success { background: #ecfdf5; border-color: #059669; color: #065f46; }
.alert-error { background: #fef2f2; border-color: #dc2626; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #2563eb; color: #1e40af; }

/* === PAGINATION === */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination a, .pagination span {
    padding: 12px 18px; border: 1px solid var(--line); background: white;
    font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700;
    text-decoration: none; color: var(--ink);
}
.pagination .active { background: var(--ink); color: white; border-color: var(--ink); }
.pagination a:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .section-head { grid-template-columns: 1fr; gap: 24px; }
    .areas-grid { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .service { grid-template-columns: 60px 1fr 60px; }
    .service-desc, .service-cat { display: none; }
}
@media (max-width: 600px) {
    .container { padding: 0 24px; }
    .topbar-inner { flex-direction: column; gap: 6px; align-items: flex-start; }
    .hero-stats { flex-direction: column; gap: 32px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    /* Footer mobile — proposta B: Logo full + (Digital | Infraestrutura) + Empresa full c/ 2col */
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding-bottom: 32px;
    }
    .footer-top > :nth-child(1) { grid-column: 1 / -1; } /* Logo: full width */
    .footer-top > :nth-child(2),
    .footer-top > :nth-child(3) { grid-column: span 1; } /* Digital + Infraestrutura: 1 coluna cada */
    .footer-top > :nth-child(4) { grid-column: 1 / -1; } /* Empresa: full width */
    .footer-top > :nth-child(4) ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 16px;
    }
    .footer-top > :nth-child(4) ul li { margin-bottom: 0; padding: 6px 0; }
    .footer-top h4 {
        font-size: 12px;
        letter-spacing: 1.2px;
        margin-bottom: 14px;
        color: var(--accent);
    }
    .footer-top li { margin-bottom: 8px; font-size: 14px; }
    .footer-top p { font-size: 14px; max-width: none; margin-bottom: 16px; }
    /* Fim footer mobile B */
    .footer-partners {
        --logo-w: 130px;
        --logo-h: 70px;
        --logo-gap: 16px;
        --scroll-speed: 30s;
    }
    .footer-partners::before,
    .footer-partners::after { width: 40px; }
    .partner-logo img { height: 36px; }
    .footer-newsletter--compact { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .footer-newsletter--compact .newsletter-gdpr { text-align: left; }
    .footer-newsletter--compact .newsletter-input-row { flex-direction: column; gap: 10px; }
    .footer-newsletter--compact .newsletter-btn { justify-content: center; }
    .footer-bot { flex-direction: column; gap: 12px; align-items: flex-start; }
    .process { grid-template-columns: 1fr; }
    section:not(.hero) { padding: 80px 0; }
}

/* =============================================================== */
/* SERVICE DETAIL — Layout A (editorial split + galeria + demo)    */
/* =============================================================== */

/* Hero */
.service-hero {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 64px 0 48px;
}
.service-hero .section-num {
    margin-bottom: 24px;
}
.service-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
}
.service-hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    text-transform: uppercase;
    line-height: 0.92;
    margin: 0;
}
.service-hero h1 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -2px;
}
.service-hero .lead {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}

/* Conteúdo split */
.service-content { background: white; }
.service-content-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    padding: 64px 0;
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: 32px;
    align-self: start;
}
.sidebar-block { margin-bottom: 32px; }
.sidebar-block:last-child { margin-bottom: 0; }
.sidebar-label {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--ink-faint);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.sidebar-toc nav { display: flex; flex-direction: column; }
.sidebar-toc nav a {
    font-size: 13px;
    padding: 8px 0 8px 14px;
    color: var(--ink-soft);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    line-height: 1.4;
}
.sidebar-toc nav a:hover { color: var(--ink); }
.sidebar-toc nav a.active {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--accent);
}
.sidebar-toc nav a.toc-sub { padding-left: 28px; font-size: 12px; }
.sidebar-cta { padding-top: 24px; border-top: 1px solid var(--line); }
.sidebar-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1;
    color: var(--ink);
    margin-bottom: 4px;
}
.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
}
.btn-block:hover { background: var(--accent); }
.btn-block .ar {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 16px;
    line-height: 0;
}
.sidebar-contact { padding-top: 24px; border-top: 1px solid var(--line); }
.sidebar-phone {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}
.sidebar-phone:hover { color: var(--ink); }
.sidebar-email {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
}
.sidebar-email:hover { color: var(--accent); }

/* Body — typography para HTML do admin */
.service-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-soft);
    min-width: 0; /* permite shrink dentro do grid */
}
.service-body h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: var(--ink);
    margin: 40px 0 16px;
    line-height: 1.2;
    scroll-margin-top: 32px;
}
.service-body h2:first-child { margin-top: 0; }
.service-body h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--ink);
    margin: 32px 0 12px;
    scroll-margin-top: 32px;
}
.service-body p { margin-bottom: 16px; }
.service-body img {
    margin: 24px 0;
    border: 1px solid var(--line);
    max-width: 100%;
    height: auto;
}
.service-body ul,
.service-body ol { margin: 16px 0 16px 24px; }
.service-body li { margin-bottom: 6px; }
.service-body a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    transition: color 0.2s;
}
.service-body a:hover { color: var(--ink); }
.service-body blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
}
.service-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.service-body th,
.service-body td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    text-align: left;
}
.service-body th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }

/* Galeria */
.service-gallery {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    padding: 96px 0;
}
.service-gallery .section-num { margin-bottom: 24px; }
.service-gallery-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 48px;
}
.service-gallery-head h2 {
    font-size: clamp(40px, 5.5vw, 64px);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
}
.service-gallery-head h2 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -1.5px;
}
.service-gallery-head .lead {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.layout-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.layout-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
}
.browser-bar {
    background: #ecebe5;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid var(--line);
}
.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.browser-bar span:nth-child(1) { background: #ed6a5e; }
.browser-bar span:nth-child(2) { background: #f5bf4f; }
.browser-bar span:nth-child(3) { background: #62c554; }
.layout-card-frame { background: white; }
.layout-card-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border: 0;
    margin: 0;
}
.layout-card-body {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}
.layout-card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.2px;
    margin-bottom: 4px;
}
.layout-card-caption {
    font-size: 13px;
    color: var(--ink-faint);
}

/* Demo button (dark section + animated button) */
.service-demo {
    background: var(--bg-darker);
    color: white;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.service-demo::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.service-demo > .container { position: relative; }
.service-demo .section-num {
    color: var(--accent-soft);
    margin-bottom: 16px;
}
.service-demo .section-num::before { background: var(--accent-soft); }
.service-demo h2 {
    font-size: clamp(36px, 5vw, 56px);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 12px;
    color: white;
}
.service-demo h2 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-soft);
    letter-spacing: -1.5px;
}
.service-demo p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 480px;
}
.service-demo-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 36px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.4s;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
}
.demo-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--accent);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}
.demo-btn:hover { color: white; }
.demo-btn:hover::before { left: 0; }
.demo-btn-text,
.demo-btn-arrow { position: relative; z-index: 2; }
.demo-btn-arrow {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 0;
    transition: transform 0.3s;
}
.demo-btn:hover .demo-btn-arrow { transform: translateX(8px); }

/* FAQ */
.service-faq { background: white; padding: 96px 0; border-top: 1px solid var(--line); }
.service-faq .section-num { margin-bottom: 24px; }
.service-faq-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: start;
}
.service-faq h2 {
    font-size: clamp(40px, 5vw, 64px);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0;
}
.service-faq h2 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -1.5px;
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
    flex: 1;
}
.faq-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    transition: all 0.3s;
    flex-shrink: 0;
}
.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.faq-answer {
    padding: 0 0 24px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
}

/* Related */
.service-related { background: var(--bg-soft); padding: 96px 0; border-top: 1px solid var(--line); }
.service-related .section-num { margin-bottom: 24px; }
.service-related h2 {
    font-size: clamp(40px, 5vw, 64px);
    text-transform: uppercase;
    line-height: 0.95;
}
.service-related h2 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -1.5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-hero-grid,
    .service-gallery-head,
    .service-faq-grid { grid-template-columns: 1fr; gap: 24px; }
    .service-content-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
    .service-sidebar { position: static; }
    .service-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .service-demo-grid { grid-template-columns: 1fr; gap: 32px; }
    .demo-btn { width: fit-content; }
}
@media (max-width: 600px) {
    .service-gallery-grid { grid-template-columns: 1fr; }
    .service-hero,
    .service-gallery,
    .service-demo,
    .service-faq,
    .service-related { padding: 56px 0; }
}

/* =============================================================== */
/* PÁGINAS — Clientes / Parceiros / Comunicados                    */
/* =============================================================== */

/* Page hero (partilhado) — grid 1.4fr/1fr */
.page-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
}
.page-hero-grid h1 {
    font-size: clamp(48px, 8vw, 96px);
    text-transform: uppercase;
    line-height: 0.92;
    margin: 0;
}
.page-hero-grid h1 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -2px;
}
.page-hero-grid .lead {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.section-h2-mid {
    font-size: clamp(40px, 5vw, 64px);
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 48px;
}
.section-h2-mid .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -1.5px;
}

/* === CLIENTES === */
.clients-featured {
    background: white;
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.clients-featured .section-num { margin-bottom: 32px; }
.clients-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.client-featured-card {
    background: var(--bg-soft);
    padding: 40px 32px;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
}
.client-featured-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
}
.client-featured-card img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    align-self: flex-start;
}
.client-name-fallback {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.5px;
}
.client-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin-top: auto;
}

.clients-grid-section {
    background: var(--bg-soft);
    padding: 96px 0;
    border-top: 1px solid var(--line);
}
.clients-grid-section .section-num { margin-bottom: 16px; }
.clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.client-logo {
    background: white;
    padding: 32px 24px;
    display: grid;
    place-items: center;
    min-height: 120px;
    text-decoration: none;
    color: var(--ink);
    transition: background 0.2s;
}
.client-logo:hover { background: var(--bg-soft); }
.client-logo img {
    max-width: 140px;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
.client-logo:hover img { filter: grayscale(0); opacity: 1; }
.client-logo-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: -0.3px;
}

/* === PARCEIROS === */
.partners-list-section {
    background: white;
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.partner-card {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.partner-card:hover {
    transform: translateY(-4px);
    border-color: var(--ink);
}
.partner-card .partner-logo {
    height: 140px;
    background: white;
    display: grid;
    place-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--line);
    /* Override do footer marquee para o contexto da grid de parceiros */
    width: auto;
    flex-shrink: initial;
}
.partner-card .partner-logo img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    /* Reset filtros e opacity do footer marquee */
    filter: none;
    opacity: 1;
}
.partner-name-fallback {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    letter-spacing: -0.5px;
}
.partner-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.partner-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}
.partner-desc {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.partner-link {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.partner-card:hover .partner-link { gap: 12px; }

/* === COMUNICADOS === */
.communications-section {
    background: white;
    padding: 80px 0;
    border-top: 1px solid var(--line);
}
.communications-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
}
.communication-item {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: inherit;
    transition: padding 0.3s, background 0.3s;
}
.communication-item:hover {
    padding-left: 24px;
    padding-right: 24px;
    background: var(--bg-soft);
}
.communication-item:hover .communication-arrow { transform: translateX(8px); }
.communication-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    gap: 4px;
    padding-right: 24px;
    border-right: 1px solid var(--line);
}
.comm-day {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -1.5px;
    line-height: 1;
}
.comm-month {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1.5px;
}
.comm-year {
    font-size: 11px;
    color: var(--ink-faint);
    letter-spacing: 1px;
}
.communication-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0 0 8px;
}
.communication-excerpt {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}
.communication-arrow {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 28px;
    color: var(--ink-faint);
    transition: transform 0.3s, color 0.3s;
    text-align: right;
}
.communication-item:hover .communication-arrow { color: var(--accent); }

/* Communication detail */
.comm-title-display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--ink);
    margin: 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* CTA block (re-utilizável) */
.page-cta {
    background: var(--bg-darker);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.page-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}
.cta-block {
    position: relative;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.cta-block h2 {
    font-size: clamp(40px, 5vw, 56px);
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 16px;
    color: white;
}
.cta-block h2 .em {
    text-transform: none;
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent-soft);
    letter-spacing: -1.5px;
}
.cta-block p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 32px;
}
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    background: white;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s, gap 0.3s;
}
.btn-cta:hover {
    background: var(--accent);
    color: white;
    gap: 18px;
}
.btn-cta .ar {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 22px;
    line-height: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
    .clients-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-grid { grid-template-columns: 1fr; }
    .communication-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .communication-arrow { display: none; }
    .comm-day { font-size: 28px; }
}

/* =============================================================== */
/* COMUNICADO INDIVIDUAL — alinhado pelo logo                       */
/* =============================================================== */
.comm-hero { padding: 56px 0 64px; }
.comm-hero .back-link { margin-bottom: 24px; }
.comm-date { margin-bottom: 28px; }
.comm-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: end;
}
.comm-excerpt {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
}
.comm-cover-wrap {
    margin-top: -40px;
    position: relative;
    z-index: 5;
    margin-bottom: 0;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.comm-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    border: 1px solid var(--line);
}
.comm-body-section {
    background: white;
    padding: 72px 0 96px;
}
.comm-body-inner { max-width: 960px; }
.comm-prose {
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink-soft);
}
.comm-prose p { margin-bottom: 16px; }
.comm-prose img { margin: 24px 0; max-width: 100%; height: auto; border: 1px solid var(--line); }
.comm-prose ul, .comm-prose ol { margin: 16px 0 16px 24px; }
.comm-prose li { margin-bottom: 6px; }
.comm-prose a {
    color: var(--accent);
    border-bottom: 1px solid currentColor;
    text-decoration: none;
    transition: color 0.2s;
}
.comm-prose a:hover { color: var(--ink); }
.comm-prose blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--accent);
    background: var(--bg-soft);
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    color: var(--ink);
}
.comm-back-cta {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.btn-back-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s, gap 0.3s;
}
.btn-back-cta:hover { background: var(--accent); gap: 18px; }
.btn-back-cta .ar {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 18px;
    line-height: 0;
}
@media (max-width: 1024px) {
    .comm-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =============================================================== */
/* UTILITY — coluna de leitura/form alinhada pelo logo             */
/* (o .container fica 1320px como o header; .prose-block dentro    */
/* limita a largura do texto/form mas alinhado à esquerda)         */
/* =============================================================== */
.prose-block {
    max-width: 800px;
    /* sem margin auto — fica alinhado à esquerda do container */
}
.prose-block-wide { max-width: 1100px; }

/* =============================================================== */
/* CHECKBOX RGPD                                                    */
/* =============================================================== */
.gdpr-consent {
    margin: 32px 0;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.gdpr-consent label {
    display: flex; gap: 12px; align-items: flex-start;
    cursor: pointer;
}
.gdpr-consent input[type="checkbox"] {
    width: 18px; height: 18px; flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}
.gdpr-consent a {
    color: var(--accent);
    text-decoration: underline;
}

/* =============================================================== */
/* LAYOUT 2-COLUNAS — form/conteúdo + sidebar info empresa          */
/* =============================================================== */
.content-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(280px, 400px);
    gap: 80px;
    align-items: start;
}
.content-with-sidebar > .main { min-width: 0; }
.content-with-sidebar > .side {
    position: sticky; top: 100px;
    padding: 28px;
    background: var(--bg-darker);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.08);
}
.content-with-sidebar > .side h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
.content-with-sidebar > .side .side-block {
    padding-bottom: 20px; margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.content-with-sidebar > .side .side-block:last-child {
    border-bottom: 0; padding-bottom: 0; margin-bottom: 0;
}
.content-with-sidebar > .side .side-block strong {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
    font-weight: 600;
}
.content-with-sidebar > .side .side-block p {
    font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.85);
}
.content-with-sidebar > .side .side-block a {
    font-size: 14px; line-height: 1.6;
    color: var(--accent); text-decoration: none;
}
.content-with-sidebar > .side .side-block a:hover { text-decoration: underline; }
.content-with-sidebar > .side .phone-tariff {
    color: rgba(255,255,255,0.4) !important;
}

/* Layout para form de orçamento — form + sidebar */
.form-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}
.form-with-sidebar > .main { min-width: 0; }
.form-with-sidebar > .side {
    padding: 32px;
    background: var(--bg-darker); color: white;
    border: 1px solid var(--line);
}
.form-with-sidebar > .side h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
}
.form-with-sidebar > .side .why-list {
    list-style: none; padding: 0; margin: 0 0 32px;
}
.form-with-sidebar > .side .why-list li {
    padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 14px; line-height: 1.6;
    display: flex; gap: 10px; align-items: flex-start;
}
.form-with-sidebar > .side .why-list li:last-child { border-bottom: 0; }
.form-with-sidebar > .side .why-list li::before {
    content: "—"; color: var(--accent); flex-shrink: 0;
}
.form-with-sidebar > .side .contact-block {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15);
}
.form-with-sidebar > .side .contact-block strong {
    display: block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.5); margin-bottom: 6px; margin-top: 12px;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600;
}
.form-with-sidebar > .side .contact-block strong:first-child { margin-top: 0; }
.form-with-sidebar > .side .contact-block a {
    color: var(--accent); font-size: 16px; text-decoration: none;
}

/* Mobile: stack everything */
@media (max-width: 900px) {
    .content-with-sidebar,
    .form-with-sidebar {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .content-with-sidebar > .side {
        position: static;
    }
}

/* =============================================================== */
/* NOTAS REGULAMENTARES — tarifa de chamadas e nota de IVA          */
/* =============================================================== */
.phone-tariff {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-faint);
    margin-top: 2px;
    letter-spacing: 0.2px;
}
/* Variante para fundos escuros (topbar, sidebar do orçamento, footer) */
.phone-tariff--dark {
    color: rgba(255, 255, 255, 0.5);
}

.price-vat {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-faint);
    margin-top: 4px;
}
.price-vat--dark {
    color: rgba(255, 255, 255, 0.55);
}

/* =============================================================== */
/* SHOP / MARKETPLACE                                               */
/* =============================================================== */
.shop-cats {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.shop-cat {
    padding: 8px 16px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 14px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    transition: all 0.2s;
}
.shop-cat:hover { border-color: var(--ink); color: var(--ink); }
.shop-cat.is-active {
    background: var(--ink); color: white; border-color: var(--ink);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.shop-card {
    display: block;
    border: 1px solid var(--line);
    background: white;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    overflow: hidden;
}
.shop-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--ink);
}
.shop-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.shop-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.shop-card-img--placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); color: white;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800; font-size: 56px;
    letter-spacing: -2px;
}
.shop-card-body { padding: 24px; }
.shop-card-cat {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 8px;
}
.shop-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px; font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
}
.shop-card-desc {
    font-size: 14px; color: var(--ink-soft);
    line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card-foot {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding-top: 16px; border-top: 1px solid var(--line);
}
.shop-card-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700; font-size: 22px; color: var(--ink);
    line-height: 1;
}
.shop-card-price small {
    display: block;
    font-size: 10px; font-weight: 500; letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 4px;
}
.shop-card-arrow {
    font-size: 20px; color: var(--ink-faint); transition: color 0.2s, transform 0.2s;
}
.shop-card:hover .shop-card-arrow { color: var(--accent); transform: translateX(2px); }

/* BREADCRUMBS (usado em product detail, service detail, blog show, etc) */
.breadcrumbs {
    font-size: 13px;
    color: var(--ink-soft);
    margin: 24px 0 32px;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--ink-faint);
    margin-left: 6px;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs li[aria-current="page"] { color: var(--ink); font-weight: 500; }
.breadcrumbs span { color: var(--ink-faint); }

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 64px;
    align-items: start;
}
.product-main { min-width: 0; }
.product-description { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.product-description h2, .product-description h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-top: 32px; margin-bottom: 16px;
}
.product-description p { margin-bottom: 16px; }
.product-description ul, .product-description ol { margin: 16px 0 16px 24px; }
.product-description ul li, .product-description ol li { margin-bottom: 8px; }
.product-features {
    list-style: none; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px;
}
.product-features li {
    padding-left: 24px; position: relative;
    font-size: 15px; color: var(--ink-soft);
}
.product-features li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--accent); font-weight: 700;
}
.product-gallery {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin-bottom: 32px;
}
.product-gallery img {
    width: 100%; border: 1px solid var(--line);
}

.product-side { position: sticky; top: 100px; }
.product-buy-box {
    border: 2px solid var(--ink);
    background: white;
    padding: 28px;
    margin-bottom: 24px;
}
.product-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 36px; font-weight: 800;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}
.product-price small {
    display: block;
    font-size: 11px; font-weight: 500; letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: 6px;
}
.product-meta-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.product-meta-row span { color: var(--ink-soft); }
.product-meta-row strong { color: var(--ink); font-weight: 700; }
.product-buy-form { margin-top: 20px; }
.product-buy-form .btn-block {
    display: block; width: 100%;
    padding: 14px;
    background: var(--ink); color: white;
    border: 1px solid var(--ink);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none; text-align: center;
    transition: background 0.2s;
}
.product-buy-form .btn-block:hover { background: var(--accent); border-color: var(--accent); }
.btn-block-ghost {
    display: block; width: 100%;
    padding: 12px;
    background: transparent; color: var(--ink);
    border: 1px solid var(--line);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    text-decoration: none; text-align: center;
    margin-top: 12px;
    transition: all 0.2s;
}
.btn-block-ghost:hover { border-color: var(--ink); }
.product-trust {
    padding: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 13px; line-height: 1.7;
    color: var(--ink-soft);
}
.product-trust strong { color: var(--ink); font-weight: 700; }
.product-trust > div + div {
    margin-top: 8px; padding-top: 8px;
    border-top: 1px solid var(--line);
}
.product-related { margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--line); }

/* CART */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}
.cart-table th, .cart-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.cart-table th {
    background: var(--bg-soft);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700; font-size: 12px; letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ink);
}
.cart-col-qty { width: 110px; }
.cart-col-num { width: 130px; text-align: right !important; font-variant-numeric: tabular-nums; }
.cart-qty-input {
    width: 70px; padding: 8px;
    border: 1px solid var(--line);
    text-align: center;
    font: inherit;
}
.cart-remove-btn {
    background: transparent; border: 0;
    width: 32px; height: 32px;
    color: var(--ink-faint);
    font-size: 22px; cursor: pointer;
    transition: color 0.2s;
}
.cart-remove-btn:hover { color: #dc2626; }
.cart-actions {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 48px;
}
.cart-totals {
    max-width: 380px; margin-left: auto;
    padding: 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.cart-totals-row {
    display: flex; justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
}
.cart-totals-total {
    margin-top: 8px; padding-top: 16px;
    border-top: 1px solid var(--line);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px; font-weight: 800;
    color: var(--ink);
}
.cart-checkout-btn {
    display: block; width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: var(--accent); color: white;
    border: 1px solid var(--accent);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none; text-align: center;
    transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--ink); border-color: var(--ink); }

/* CHECKOUT */
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 380px);
    gap: 64px;
    align-items: start;
}
.checkout-main { min-width: 0; }
.checkout-side {
    position: sticky; top: 100px;
    padding: 28px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}
.checkout-items {
    list-style: none; padding: 0; margin: 0 0 24px;
}
.checkout-items li {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    gap: 12px;
}
.checkout-items li:last-child { border-bottom: 0; }
.checkout-items li small { color: var(--ink-faint); }
.checkout-totals { padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-totals > div {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.checkout-totals .checkout-total {
    margin-top: 8px; padding-top: 12px;
    border-top: 1px solid var(--line);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px; font-weight: 800;
    color: var(--ink);
}
.btn-block-paypal {
    display: block; width: 100%;
    padding: 16px;
    background: #ffc439; color: #003087;
    border: 1px solid #ffc439;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px; font-weight: 800;
    cursor: pointer;
    text-decoration: none; text-align: center;
    margin-top: 20px;
    transition: background 0.2s;
}
.btn-block-paypal:hover { background: #ffb700; }
.checkout-note {
    margin-top: 16px;
    font-size: 12px; line-height: 1.5;
    color: var(--ink-faint);
}

/* DOWNLOADS */
.downloads-list {
    display: flex; flex-direction: column; gap: 16px;
}
.download-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    gap: 24px;
}
.download-item .dl-version {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--ink); color: white;
    font-size: 11px; font-family: ui-monospace, monospace;
}
.download-item .dl-meta {
    margin-top: 6px;
    font-size: 12px; color: var(--ink-faint);
}

/* Mobile */
@media (max-width: 800px) {
    .product-layout, .checkout-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-side, .checkout-side { position: static; }
    .product-features { grid-template-columns: 1fr; }
    .cart-totals { max-width: none; }
    .download-item { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* =================================================================
   HERO CAROUSEL
   ================================================================= */

/* Stack de imagens de fundo — uma por slide, fade entre elas */
.hero-bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
}
.hero-bg-slide.is-active { opacity: 1; }

/* Quando há imagem activa, esconder o SVG default do .hero (só fica como fallback) */
.hero-carousel .hero-bg-slide:not([style*="background-image"]) {
    /* Slide sem imagem custom — manter o background gradient + svg do .hero */
    opacity: 0;
}
.hero-carousel .hero-bg-slide.is-active:not([style*="background-image"]) {
    opacity: 0; /* não mostra nada — o background do .hero (SVG default) brilha através */
}

/* Garantir que o conteúdo do hero está acima das imagens de fundo */
.hero-carousel .site-header,
.hero-carousel .hero-counter-bar-wrap,
.hero-carousel .hero-body,
.hero-carousel .scroll-indicator,
.hero-carousel::before,
.hero-carousel::after {
    z-index: 2;
}
.hero-carousel { position: relative; }

/* Slides de texto — empilhados num grid cell (fluxo normal mantém altura) */
.hero-slides {
    display: grid;
    grid-template-columns: 1fr;
}
.hero-slide {
    /* Todos no mesmo grid cell — empilhados visualmente,
       mas o navegador mede a altura pelo maior conteúdo */
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0s;
}

/* CTA do hero (botão verde dentro do slide) */
.hero-cta-row { margin-top: 24px; }
.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent, #16a596);
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent, #16a596);
    transition: background 0.2s, transform 0.2s, gap 0.25s;
}
.btn-hero-cta:hover {
    background: var(--accent-soft, #1ec3b1);
    border-color: var(--accent-soft, #1ec3b1);
    transform: translateY(-1px);
    gap: 14px;
}
.btn-hero-cta span { font-weight: 400; }

/* Dots de navegação */
.hero-dots {
    display: flex;
    gap: 10px;
    margin-top: 32px;
    align-items: center;
}
.hero-dot {
    width: 32px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, width 0.25s;
}
.hero-dot:hover { background: rgba(255,255,255,0.45); }
.hero-dot.is-active {
    background: white;
    width: 48px;
}
.hero-dot:focus-visible {
    outline: 2px solid var(--accent, #16a596);
    outline-offset: 4px;
}

/* Respeitar prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-bg-slide,
    .hero-slide,
    .hero-dot { transition: none; }
}

/* Mobile — dots mais pequenos */
@media (max-width: 768px) {
    .hero-dot { width: 24px; }
    .hero-dot.is-active { width: 36px; }
}

/* Cover image dos serviços — aparece antes do texto descritivo */
.service-cover {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    display: block;
}

/* =================================================================
   FOOTER — redes sociais (alimentadas via /admin/settings/empresa)
   ================================================================= */
.footer-social-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 220px;
}
.footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-social-list li { margin: 0; }
.footer-social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #c0c4c8;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}
.footer-social-icon:hover {
    background: var(--accent, #16a596);
    border-color: var(--accent, #16a596);
    color: white;
    transform: translateY(-2px);
}

/* =================================================================
   SERVICE PRICING — planos de preços (frontoffice)
   ================================================================= */
.service-pricing {
    padding: 80px 0;
    background: var(--bg);
}
.service-pricing .display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.service-pricing .display .em { color: var(--accent); }

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 32px;
}
@media (min-width: 700px) {
    .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    background: white;
    border: 1px solid var(--line, #e6e8eb);
    border-radius: 14px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22, 165, 150, 0.08);
    border-color: rgba(22, 165, 150, 0.3);
}
.pricing-card.is-featured {
    border: 2px solid var(--accent, #16a596);
    background: linear-gradient(180deg, white 0%, rgba(22, 165, 150, 0.04) 100%);
}
.pricing-card.is-featured:hover {
    box-shadow: 0 12px 32px rgba(22, 165, 150, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent, #16a596);
    color: white;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14px;
    color: var(--ink-soft, #5d6166);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}
.pricing-tagline {
    font-size: 12px;
    color: var(--ink-faint, #898d92);
    line-height: 1.5;
    margin-bottom: 24px;
    min-height: 36px;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.pricing-currency {
    font-size: 20px;
    color: var(--ink-soft, #5d6166);
    font-weight: 500;
}
.pricing-amount {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--ink, #18191b);
}
.pricing-period {
    font-size: 13px;
    color: var(--ink-faint, #898d92);
    margin-bottom: 24px;
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--ink, #18191b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 28px;
    transition: background 0.2s;
}
.pricing-cta:hover { background: #2a2d31; color: white; }
.pricing-card.is-featured .pricing-cta {
    background: var(--accent, #16a596);
}
.pricing-card.is-featured .pricing-cta:hover { background: #1ec3b1; }

.pricing-divider {
    height: 0.5px;
    background: var(--line, #e6e8eb);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink, #18191b);
    line-height: 1.5;
}
.pricing-features li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent, #16a596);
}
.pricing-features li.is-disabled {
    color: var(--ink-faint, #898d92);
    text-decoration: line-through;
}
.pricing-features li.is-disabled svg {
    color: #c0c4c8;
}
.pricing-features li.is-highlighted {
    font-weight: 600;
}
.pricing-features li.is-highlighted svg {
    color: var(--accent, #16a596);
}

.pricing-footnote {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--ink-faint, #898d92);
}
.pricing-footnote a {
    color: var(--accent, #16a596);
    text-decoration: none;
}
.pricing-footnote a:hover { text-decoration: underline; }

/* =================================================================
   PROSE HEADINGS — neutralizar h2/h3/h4 visualmente
   Mantém a tag semântica (SEO) mas mostra como texto normal a negrito.
   Aplica-se a todos os contentores de conteúdo gerado no editor.
   ================================================================= */
.comm-prose h2, .comm-prose h3, .comm-prose h4,
.product-description h2, .product-description h3, .product-description h4,
.service-body h2, .service-body h3, .service-body h4,
.blog-content h2, .blog-content h3, .blog-content h4,
.portfolio-content h2, .portfolio-content h3, .portfolio-content h4,
.page-content h2, .page-content h3, .page-content h4 {
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0;
    line-height: inherit;
    margin: 1.2em 0 0.4em;
}

/* =================================================================
   CONTENT DOWNLOADS — secção de ficheiros anexos no frontoffice
   ================================================================= */
.downloads-section {
    margin: 24px auto 60px;
}
.downloads-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 32px;
}
.downloads-eyebrow {
    color: var(--accent, #16a596);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.downloads-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.downloads-intro {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.downloads-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.download-item {
    background: white;
    border: 0.5px solid var(--line);
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.download-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 165, 150, 0.06);
    border-color: rgba(22, 165, 150, 0.3);
    color: var(--ink);
    text-decoration: none;
}
.download-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.download-icon.is-pdf { background: #d93025; }
.download-icon.is-zip { background: #f59e0b; }
.download-icon.is-img { background: #16a596; }
.download-icon.is-doc { background: #2563eb; }
.download-icon.is-xls { background: #16a34a; }
.download-icon.is-default { background: #6b7280; }

.download-info {
    flex: 1;
    min-width: 0;
}
.download-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-meta {
    font-size: 12px;
    color: var(--ink-faint);
}
.download-meta span {
    margin-right: 10px;
}
.download-meta span:first-child {
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.download-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}
.download-action svg {
    transition: transform 0.15s;
}
.download-item:hover .download-action svg {
    transform: translateY(2px);
}

/* =================================================================
   MOBILE NAV — hambúrguer + drawer overlay (full-screen)
   ================================================================= */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    line-height: 0;
}
.site-header-light .mobile-nav-toggle { color: var(--ink); }
.site-header:not(.site-header-light) .mobile-nav-toggle { color: white; }

body.no-scroll {
    overflow: hidden;
}

.mobile-nav-drawer {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
}
.mobile-nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.mobile-nav-drawer-logo img {
    height: 36px;
    width: auto;
    display: block;
}
.mobile-nav-close {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    line-height: 0;
}

.mobile-nav-drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.mobile-nav-drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-drawer-nav a {
    display: block;
    padding: 16px 20px;
    color: var(--ink);
    text-decoration: none;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav-drawer-nav a:hover,
.mobile-nav-drawer-nav a:active {
    background: var(--bg);
    color: var(--accent);
}

.mobile-nav-drawer-foot {
    padding: 20px 24px 24px;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.mobile-nav-drawer-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.mobile-nav-drawer-cta:hover {
    background: var(--accent);
    color: white;
}

/* Activar mobile nav abaixo de 900px */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-header nav { gap: 16px; justify-content: space-between; }
}

/* =================================================================
   MOBILE — auditoria completa, ajustes para viewport <= 768px
   ================================================================= */
@media (max-width: 900px) {
    /* Listagem de serviços */
    .service {
        grid-template-columns: 60px 1fr auto;
        gap: 16px;
        padding: 24px 0;
    }
    .service-desc { display: none; }
    .service-num { font-size: 16px; }
    .service-name { font-size: 22px; }
    .service .plus { width: 36px; height: 36px; font-size: 20px; }
    .service:hover { padding-left: 12px; padding-right: 12px; }

    /* Service detail */
    .service-faq-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Product detail */
    .product-features { grid-template-columns: 1fr; }
    .product-gallery { grid-template-columns: 1fr 1fr; }

    /* Comunicado/Página/Blog */
    .comm-cover-wrap, .comm-body-inner { padding: 0 4px; }

    /* Hero */
    .hero h1 { letter-spacing: -2px; }
}

@media (max-width: 600px) {
    /* Areas grid (homepage) */
    .areas-grid { grid-template-columns: 1fr; }
    .area { padding: 32px 24px; }

    /* Topbar fica compacto */
    .topbar { padding: 8px 0; font-size: 12px; }

    /* Hero h1 tamanho mais razoável */
    .hero h1 {
        font-size: clamp(40px, 14vw, 80px);
        letter-spacing: -1.5px;
        margin-bottom: 24px;
    }

    /* Footer top — 1 coluna em mobile */
    .footer-top { grid-template-columns: 1fr; gap: 32px; }

    /* Product gallery 1 col em phones pequenos */
    .product-gallery { grid-template-columns: 1fr; }

    /* Service hero */
    .service-name { font-size: 20px; }

    /* Section padding mais reduzido */
    section { padding: 56px 0; }

    /* Cards/grids: forçar 1 col */
    .blog-grid,
    .portfolio-grid,
    .clients-logo-grid,
    .services-grid,
    .products-grid,
    .comm-grid,
    .pricing-grid,
    .faq-grid,
    .testimonials-grid,
    .partners-grid {
        grid-template-columns: 1fr !important;
    }

    /* Tabelas com scroll horizontal se necessário */
    .table-wrap, .responsive-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Botões wider */
    .btn { padding: 10px 18px; font-size: 13px; }

    /* H2/H3 dimensions */
    h2, .h2 { font-size: clamp(28px, 7vw, 40px) !important; line-height: 1.2; }
    h3, .h3 { font-size: clamp(20px, 5vw, 28px) !important; }

    /* Forms */
    input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"], textarea, select {
        font-size: 16px; /* Evita zoom automático no iOS */
    }
}

/* Imagens responsivas universais */
img { max-width: 100%; height: auto; }

/* =================================================================
   CONTACT PAGE — formulário responsivo
   ================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}
.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-grid {
        gap: 32px;
    }
}

/* =================================================================
   FOOTER SOCIAL ROW — linha centrada de ícones (substitui a coluna "Segue-nos")
   ================================================================= */
.footer-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 24px 0 32px;
}
.footer-social-row .footer-social-icon {
    width: 40px;
    height: 40px;
}
.footer-social-row .footer-social-icon svg {
    width: 18px;
    height: 18px;
}

/* =================================================================
   HERO SPLIT — título à esquerda, lead à direita
   Usado em: blog/show, portfolio/show, communication, service-show
   ================================================================= */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
}
.hero-split-left { min-width: 0; }
.hero-split-right { padding-bottom: 14px; min-width: 0; }
.hero-split-right .lead { max-width: 540px; }

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }
    .hero-split-right { padding-bottom: 0; }
}

/* =================================================================
   PORTFOLIO SHOW — título adaptativo, não parte palavras a meio
   ================================================================= */
.project-hero-title {
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.0;
    letter-spacing: -1.5px;
    margin-bottom: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

@media (max-width: 600px) {
    .project-hero-title {
        font-size: clamp(36px, 10vw, 56px);
        letter-spacing: -1px;
    }
}

/* =================================================================
   SHOP INDEX — título auto-ajustável (sem quebras forçadas)
   ================================================================= */
.shop-hero-title,
.services-hero-title,
.quote-hero-title {
    font-size: 96px;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 0;
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}
