* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
}

/* ── Header ── */
header {
    background: #1a1a2e;
    padding: 12px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    gap: 6px;
}

.header-nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    background: rgba(255,255,255,0.12);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    margin-left: auto;
    padding: 6px 10px;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 12px 16px;
        position: relative;
    }
    .nav-toggle {
        display: block;
    }
    .header-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 2px;
        padding-bottom: 8px;
    }
    .header-nav.open {
        display: flex;
    }
    .header-nav a {
        padding: 10px 12px;
        border-radius: 6px;
    }
}

main {
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Hero ── */
.hero {
    /* Troca o gradiente por uma imagem: background-image: url('assets/img/vila-real.jpg'); */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin: -20px -20px 30px -20px;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 30px;
}

/* ── Search form ── */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.search-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 1rem;
    outline: none;
}

.search-form button {
    padding: 16px 24px;
    background: #e94560;
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    white-space: nowrap;
}

.search-form button:hover {
    background: #c73652;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 24px 20px;
    color: #aaa;
    font-size: 0.85rem;
    margin-top: 40px;
    border-top: 1px solid #eee;
}

footer a {
    color: #aaa;
    text-decoration: none;
}

footer a:hover {
    color: #e94560;
}

/* ── Section title ── */
.section-title {
    margin-bottom: 16px;
    color: #333;
}

/* ── Category cards ── */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 28px 20px;
    text-decoration: none;
    color: #222;
    border-radius: 10px;
    text-align: center;
    transition: 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.card i {
    font-size: 2rem;
    color: #e94560;
    margin-bottom: 12px;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* ── Empresa card ── */
.empresa-card {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.empresa-card h2 {
    margin-top: 0;
}

.empresa-card h2 a {
    color: #1a1a2e;
    text-decoration: none;
}

.empresa-card h2 a:hover {
    color: #e94560;
}

.empresa-card p {
    color: #555;
    margin: 6px 0;
}

.empresa-card i {
    color: #e94560;
    margin-right: 6px;
}

/* ── Categoria hero ── */
.cat-hero {
    position: relative;
    margin: -20px -20px 30px -20px;
    overflow: hidden;
}

.cat-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-hero-overlay {
    position: relative;
    background: rgba(0,0,0,0.55);
    text-align: center;
    padding: 50px 20px;
    color: white;
}

.cat-hero-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.85;
}

.cat-hero-overlay h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}

.cat-hero-overlay p {
    margin: 0;
    opacity: 0.75;
    font-size: 0.95rem;
}

/* ── Categoria grid ── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.cat-card {
    background: white;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: 0.2s;
}

.cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.cat-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cat-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #1a1a2e;
}

.cat-card-local {
    font-size: 0.78rem;
    color: #999;
}

.cat-card-local i {
    color: #e94560;
    margin-right: 3px;
}

.cat-card-desc {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.cat-card-servicos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-card-tag {
    background: #f0f0f0;
    color: #555;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
}

.cat-card-tag-more {
    background: #e94560;
    color: white;
}

.cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
    margin-top: auto;
}

.cat-card-footer i {
    color: #e94560;
    margin-right: 4px;
}

.cat-card-ver {
    color: #e94560;
    font-size: 0.82rem;
    font-weight: 500;
}

.cat-card-ver i {
    margin-right: 0;
    margin-left: 4px;
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .cat-grid { grid-template-columns: 1fr; }

    .cat-hero { margin: -20px -20px 20px -20px; }
    .cat-hero-overlay { padding: 30px 16px; }
    .cat-hero-overlay h1 { font-size: 1.35rem; }
    .cat-hero-icon { font-size: 1.8rem; }

    .cat-card { padding: 16px; }
    .cat-card-header { gap: 10px; }
    .cat-card-header h2 { font-size: 0.95rem; }
    .cat-card-local { font-size: 0.75rem; word-break: break-word; }
    .cat-card-footer { font-size: 0.8rem; flex-wrap: wrap; gap: 8px; }
}

/* ── Categoria badge (search results) ── */
.categoria-badge {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.categoria-badge i {
    color: #e94560;
}

/* ── Search header (search.php) ── */
.search-header {
    background: #1a1a2e;
    padding: 20px;
    margin: -20px -20px 30px -20px;
}

.search-header .search-form {
    max-width: 700px;
}

/* ── Tempo ── */
.tempo-hero {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 60%, #1a1a2e 100%);
    color: white;
    padding: 50px 20px;
    margin: -20px -20px 30px -20px;
    text-align: center;
}

.tempo-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.tempo-cidade {
    font-size: 1rem;
    opacity: 0.75;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tempo-atual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tempo-icone {
    width: 90px;
    height: 90px;
}

.tempo-graus {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
}

.tempo-desc {
    display: block;
    font-size: 1.1rem;
    opacity: 0.85;
    margin-top: 4px;
}

.tempo-detalhes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.tempo-detalhes i {
    color: #e94560;
    margin-right: 4px;
}

.tempo-erro {
    color: #ffaaaa;
    font-size: 1rem;
}

.tempo-previsao {
    margin-bottom: 30px;
}

.tempo-dias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
}

.tempo-dia-card {
    background: white;
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.tempo-dia-card img {
    width: 56px;
    height: 56px;
}

.tempo-dia-nome {
    font-weight: bold;
    color: #1a1a2e;
    margin: 0 0 2px;
}

.tempo-dia-data {
    font-size: 0.8rem;
    color: #888;
    margin: 0 0 6px;
}

.tempo-dia-temp {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin: 4px 0 2px;
}

.tempo-dia-desc {
    font-size: 0.78rem;
    color: #666;
    margin: 0;
}

.tempo-update {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 10px;
}

.tempo-update a {
    color: #e94560;
    text-decoration: none;
}

.tempo-dica {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff8e1;
    border-left: 4px solid #e94560;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
}

.tempo-dica i {
    color: #e94560;
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tempo-dica p {
    margin: 0;
    color: #444;
    line-height: 1.5;
}

.tempo-sobre {
    background: white;
    border-radius: 10px;
    padding: 28px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-top: 30px;
}

.tempo-sobre h2 {
    color: #1a1a2e;
    margin-top: 0;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.tempo-sobre p {
    color: #555;
    line-height: 1.75;
    margin: 0 0 14px;
}

.tempo-sobre p:last-child {
    margin-bottom: 0;
}

/* ── Empresa Page ── */
.emp-cover {
    position: relative;
    margin: -20px -20px 0 -20px;
    overflow: hidden;
}

.emp-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emp-cover-overlay {
    position: relative;
    background: rgba(0,0,0,0.55);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: white;
}

.emp-logo-placeholder {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: white;
}

.emp-cover-overlay h1 {
    margin: 0 0 10px;
    font-size: 1.9rem;
}

.emp-cat-badge {
    background: rgba(255,255,255,0.15);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
}

.emp-body {
    padding-top: 22px;
}

.emp-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 18px;
}

.emp-card h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    color: #1a1a2e;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.emp-card h2 i {
    color: #e94560;
    margin-right: 8px;
}

.emp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #444;
    font-size: 0.95rem;
}

.emp-row:last-child {
    border-bottom: none;
}

.emp-row i {
    color: #e94560;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.emp-row a {
    color: #1a1a2e;
    text-decoration: none;
}

.emp-row a:hover {
    color: #e94560;
}

.emp-servicos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.emp-servico-tag {
    background: #f0f0f0;
    color: #444;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.84rem;
}

.emp-descricao {
    color: #555;
    line-height: 1.75;
    margin: 0;
}

.emp-horario {
    width: 100%;
    border-collapse: collapse;
}

.emp-horario tr {
    border-bottom: 1px solid #f5f5f5;
}

.emp-horario tr:last-child {
    border-bottom: none;
}

.emp-horario tr.hoje td {
    font-weight: bold;
    color: #1a1a2e;
}

.emp-horario td {
    padding: 8px 4px;
    color: #555;
    font-size: 0.92rem;
}

.emp-horario td:first-child {
    width: 110px;
}

.emp-fechado {
    color: #e94560;
    font-size: 0.88rem;
}

.emp-voltar a {
    color: #e94560;
    text-decoration: none;
    font-size: 0.9rem;
}

.emp-voltar a:hover {
    text-decoration: underline;
}

/* ── Desporto ── */
.desp-hero {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2838 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: -20px -20px 30px -20px;
}

.desp-hero-inner h1 { margin: 10px 0 8px; font-size: 2rem; }
.desp-hero-inner p  { margin: 0; opacity: .75; font-size: 1rem; }

.desp-liga-badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .85rem;
    margin-bottom: 8px;
}

.desp-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 720px) {
    .desp-grid { grid-template-columns: 1fr; }
}

.desp-section {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    margin-bottom: 20px;
}

.desp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.desp-section-header h2 { margin: 0; font-size: 1rem; color: #1a1a2e; }
.desp-section-header h2 i { color: #e94560; margin-right: 8px; }
.desp-section-header a { font-size: .82rem; color: #e94560; text-decoration: none; }
.desp-section-header a:hover { text-decoration: underline; }

/* Tabela resumo */
.desp-tabela-header,
.desp-tabela-row {
    display: grid;
    grid-template-columns: 30px 1fr 30px 30px 30px 30px 36px;
    gap: 4px;
    align-items: center;
    padding: 7px 4px;
    font-size: .85rem;
}

.desp-tabela-header { color: #aaa; font-size: .78rem; font-weight: bold; border-bottom: 1px solid #f0f0f0; }
.desp-tabela-row { border-bottom: 1px solid #f8f8f8; }
.desp-tabela-row:last-child { border-bottom: none; }

/* Tabela completa */
.desp-tabela-header-full,
.desp-tabela-row-full {
    display: grid;
    grid-template-columns: 30px 1fr 30px 30px 30px 30px 34px 34px 36px 38px 80px;
    gap: 4px;
    align-items: center;
    padding: 8px 4px;
    font-size: .83rem;
}

.desp-tabela-header-full { color: #aaa; font-size: .75rem; font-weight: bold; border-bottom: 2px solid #f0f0f0; }
.desp-tabela-row-full    { border-bottom: 1px solid #f8f8f8; }
.desp-tabela-row-full:last-child { border-bottom: none; }

@media (max-width: 700px) {
    .desp-tabela-header-full,
    .desp-tabela-row-full {
        grid-template-columns: 26px 1fr 26px 26px 26px 26px 26px 26px 32px 34px 70px;
        font-size: .75rem;
    }
}

.col-pos    { text-align: center; color: #aaa; font-size: .8rem; }
.col-equipa { display: flex; align-items: center; gap: 6px; font-weight: 500; color: #222; }
.col-equipa-full { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #222; }
.col-num    { text-align: center; color: #555; }
.col-forma  { display: flex; gap: 3px; }

.desp-pts { font-weight: bold; color: #1a1a2e !important; }

.team-logo-sm { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.team-logo-md { width: 30px; height: 30px; object-fit: contain; }

/* Zonas de classificação */
.zona-ucl-d  { border-left: 3px solid #f4c430; }
.zona-ucl-q  { border-left: 3px solid #3498db; }
.zona-uel    { border-left: 3px solid #e67e22; }
.zona-uecl   { border-left: 3px solid #27ae60; }
.zona-playoff{ border-left: 3px solid #e74c3c; opacity: .85; }
.zona-desc   { border-left: 3px solid #c0392b; background: #fff5f5; }

/* Legenda */
.desp-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: .78rem;
    color: #666;
}

.leg-item { display: flex; align-items: center; gap: 5px; }
.leg-cor { display: inline-block; width: 10px; height: 16px; border-radius: 2px; }
.leg-cor.zona-ucl-d  { background: #f4c430; }
.leg-cor.zona-ucl-q  { background: #3498db; }
.leg-cor.zona-uel    { background: #e67e22; }
.leg-cor.zona-uecl   { background: #27ae60; }
.leg-cor.zona-playoff{ background: #e74c3c; }
.leg-cor.zona-desc   { background: #c0392b; }

/* Forma */
.forma-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: .65rem;
    font-weight: bold;
    color: white;
}
.forma-w { background: #27ae60; }
.forma-d { background: #f39c12; }
.forma-l { background: #e74c3c; }

/* Jogos (resumo) */
.desp-jogo {
    padding: 9px 4px;
    border-bottom: 1px solid #f5f5f5;
    font-size: .85rem;
}
.desp-jogo:last-child { border-bottom: none; }

.desp-jogo-data  { color: #aaa; font-size: .75rem; margin-bottom: 3px; }
.desp-jogo-equipas { display: flex; align-items: center; gap: 8px; }
.equipa-nome     { flex: 1; color: #333; font-size: .88rem; }
.equipa-nome:last-child { text-align: right; }
.desp-jogo-vs    { color: #aaa; font-size: .8rem; flex-shrink: 0; }
.desp-score      { background: #1a1a2e; color: white; padding: 2px 10px; border-radius: 6px; font-size: .88rem; font-weight: bold; flex-shrink: 0; }
.desp-jornada    { color: #bbb; font-size: .72rem; margin-top: 2px; display: block; }

/* Jogos (página completa) */
.desp-jogo-full {
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 4px;
}
.desp-jogo-full:last-child { border-bottom: none; }
.desp-jogo-data-full { color: #aaa; font-size: .78rem; margin-bottom: 8px; }
.desp-jogo-main {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}
.desp-equipa-home { display: flex; align-items: center; gap: 8px; justify-content: flex-end; text-align: right; font-weight: 500; }
.desp-equipa-away { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.desp-marcador    { text-align: center; }
.desp-score-full  { display: block; font-size: 1.3rem; font-weight: bold; color: #1a1a2e; }
.desp-status-ft   { font-size: .7rem; color: #aaa; }

/* Navegação de jornadas */
.desp-jornadas-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.desp-jornada-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #555;
    text-decoration: none;
    font-size: .82rem;
    transition: .15s;
}
.desp-jornada-btn:hover,
.desp-jornada-btn.activo {
    background: #e94560;
    color: white;
}

.desp-update {
    text-align: center;
    font-size: .75rem;
    color: #bbb;
    margin: 12px 0 0;
}

/* ── Páginas estáticas (sobre, contacto, privacidade) ── */
.static-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin: -20px -20px 30px -20px;
}

.static-hero h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.static-hero h1 i {
    color: #e94560;
    margin-right: 10px;
}

.static-hero p {
    margin: 0;
    opacity: 0.75;
    font-size: 1rem;
}

.static-body {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.static-card {
    background: white;
    border-radius: 10px;
    padding: 28px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.static-card h2 {
    color: #1a1a2e;
    margin: 0 0 14px;
    font-size: 1.15rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.static-card p {
    color: #555;
    line-height: 1.75;
    margin: 0 0 12px;
}

.static-card p:last-child { margin-bottom: 0; }

.static-btn {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.static-btn:hover { background: #c73652; }

.sobre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 4px;
}

.sobre-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.sobre-item i {
    color: #e94560;
    font-size: 1.4rem;
}

.sobre-item strong { color: #1a1a2e; font-size: 0.95rem; }
.sobre-item span   { color: #666; font-size: 0.85rem; line-height: 1.5; }

@media (max-width: 700px) {
    .static-hero { margin: -20px -20px 20px -20px; padding: 30px 16px; }
    .static-hero h1 { font-size: 1.3rem; }
    .static-body { padding: 0; }
    .static-card { padding: 16px; }
    .sobre-grid { grid-template-columns: 1fr; }
    .sobre-item { padding: 14px; }
}

.contacto-form .form-row { margin-bottom: 14px; }
.contacto-form label { display: block; font-size: 0.85rem; color: #666; font-weight: bold; margin-bottom: 5px; }
.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%; padding: 10px 14px; border: 1px solid #ddd;
    border-radius: 8px; font-size: 0.95rem; box-sizing: border-box; font-family: inherit;
}
.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus { outline: none; border-color: #e94560; }

/* ── Blog ── */
.blog-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin: -20px -20px 30px -20px;
}

.blog-hero-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.blog-hero h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}

.blog-hero p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.95rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.blog-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    color: #222;
    display: flex;
    flex-direction: column;
    transition: 0.2s;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.blog-card-body h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #1a1a2e;
    line-height: 1.4;
}

.blog-card-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.blog-card-cat {
    display: inline-block;
    background: #e94560;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

.blog-card-date {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: auto;
}

.blog-card-date i {
    margin-right: 4px;
}

/* Blog paginação */
.blog-paginacao {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
}

.blog-paginacao a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    background: white;
    color: #444;
    text-decoration: none;
    font-size: 0.88rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.blog-paginacao a:hover {
    background: #e94560;
    color: white;
}

.blog-paginacao a.active {
    background: #e94560;
    color: white;
    font-weight: 600;
}

/* Blog artigo individual */
.blog-artigo {
    max-width: 780px;
    margin: 0 auto;
    padding: 10px 0 30px;
}

.blog-artigo h1 {
    font-size: 1.8rem;
    color: #1a1a2e;
    margin: 10px 0 8px;
    line-height: 1.3;
}

.blog-artigo-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 20px;
}

.blog-artigo-meta i {
    margin-right: 4px;
}

.blog-artigo-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}

.blog-artigo-img img {
    width: 100%;
    display: block;
}

.blog-artigo-conteudo {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.blog-artigo-conteudo h2 {
    font-size: 1.3rem;
    color: #1a1a2e;
    margin: 28px 0 12px;
}

.blog-artigo-conteudo h3 {
    font-size: 1.1rem;
    color: #1a1a2e;
    margin: 24px 0 10px;
}

.blog-artigo-conteudo p {
    margin: 0 0 16px;
}

.blog-artigo-conteudo img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.blog-artigo-conteudo ul,
.blog-artigo-conteudo ol {
    padding-left: 24px;
    margin: 0 0 16px;
}

.blog-artigo-conteudo li {
    margin-bottom: 6px;
}

.blog-artigo-conteudo blockquote {
    border-left: 4px solid #e94560;
    margin: 16px 0;
    padding: 12px 20px;
    background: #fafafa;
    color: #555;
    font-style: italic;
}

.blog-artigo-conteudo a {
    color: #e94560;
    text-decoration: underline;
}

/* Blog relacionados */
.blog-relacionados {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.blog-relacionados h2 {
    font-size: 1.2rem;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.blog-voltar {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.blog-voltar:hover {
    background: #e0e0e0;
}

@media (max-width: 700px) {
    .blog-hero { margin: -20px -20px 20px -20px; padding: 30px 16px; }
    .blog-hero h1 { font-size: 1.35rem; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-artigo h1 { font-size: 1.35rem; }
    .blog-card-body { padding: 14px 16px; }
}