:root {
  --brand: #194681;
  --brand-dark: #12325d;
  --brand-light: #2d5f9d;
  --gold: #d4a843;
  --gold-light: #faf3e0;
  --surface: #ffffff;
  --surface-alt: #f7fafa;
  --surface-warm: #eef5f6;
  --border: #d4e4e7;
  --border-light: #e8f0f2;
  --text: #1a2b30;
  --text-secondary: #4d6269;
  --text-muted: #5e7580;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 8px 32px rgba(25, 70, 129, 0.06);
  --shadow-elevated: 0 16px 48px rgba(25, 70, 129, 0.10);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --success: #166534;
  --warning: #92400e;
  --danger: #991b1b;
  --content-max: 1480px;
  --topbar-max: 1680px;
  --page-pad: clamp(20px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--surface);
  color: var(--text);
  margin: 0;
  padding-top: 56px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
[ng-cloak], .ng-cloak { display: none !important; }

/* ── Topbar (estilo PDM / CMB) ── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px; background: var(--brand);
  box-shadow: 0 2px 12px rgba(18, 50, 93, 0.22);
}
.topbar-inner {
  max-width: var(--topbar-max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 18px; padding: 0 var(--page-pad);
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; flex-shrink: 0;
}
.topbar-logo {
  height: 36px; width: auto; display: block; flex-shrink: 0;
}
.topbar-brand-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: linear-gradient(145deg, var(--gold), #b8892a);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.topbar-brand-text {
  font-weight: 800; font-size: 0.92rem; letter-spacing: 0.01em; white-space: nowrap;
}
.topbar-brand-sub {
  display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 1px;
}
.topbar-nav {
  display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0;
  overflow-x: auto;
}
.topbar-link {
  color: rgba(255,255,255,.88); text-decoration: none;
  padding: 7px 10px; border-radius: 6px; font-size: 0.82rem; font-weight: 600;
  white-space: nowrap; transition: background var(--transition), color var(--transition);
}
.topbar-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.topbar-link--cta {
  background: var(--gold); color: var(--brand-dark) !important;
  margin-left: 6px; padding: 7px 14px;
}
.topbar-link--cta:hover { background: #e0b84f; }
.topbar-link--emphasis {
  background: rgba(255,255,255,.12);
  color: #fff !important;
}
.topbar-link--emphasis:hover { background: rgba(255,255,255,.2); }
.topbar-utils { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: flex; gap: 3px; }
.lang-switch button {
  border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff;
  border-radius: 4px; padding: 3px 7px; font-size: 0.68rem; font-weight: 700; cursor: pointer;
}
.lang-switch button.active { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

/* ── Hero com foto ── */
.hero {
  position: relative; min-height: 0;
  display: flex; align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(18,50,93,.92) 0%, rgba(25,70,129,.78) 45%, rgba(13,34,64,.55) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(212,168,67,.28), transparent 50%),
    linear-gradient(160deg, #12325d 0%, #194681 50%, #0d2240 100%);
  color: #fff; overflow: hidden;
}
.hero--photo {
  min-height: clamp(420px, 58vh, 560px);
  background:
    linear-gradient(105deg, rgba(12,28,52,.88) 0%, rgba(18,50,93,.72) 42%, rgba(18,50,93,.35) 100%),
    url("assets/hero/barcelos-ponte.jpg") center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35; pointer-events: none;
}
.hero--photo::before { opacity: .2; }
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--content-max); margin: 0 auto;
  padding: 64px var(--page-pad) 88px; width: 100%;
}
.hero-copy { max-width: 42rem; }
.hero-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.hero-brand {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800;
  line-height: 1.06; margin: 0 0 16px; letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem); opacity: .92;
  max-width: 36rem; margin: 0 0 28px; font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-gold {
  background: var(--gold); color: var(--brand-dark); border: none; border-radius: 10px;
  padding: 14px 24px; font-weight: 800; font-size: 1rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}
.btn-gold:hover { background: #e0b84f; transform: translateY(-1px); color: var(--brand-dark); }
.btn-ghost {
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45);
  border-radius: 10px; padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── Sections ── */
.section { max-width: var(--content-max); margin: 0 auto; padding: 64px var(--page-pad); }
.section--alt { background: var(--surface-alt); max-width: none; padding: 64px 0; }
.section--alt .section-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-pad); }
.section-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-light); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.45rem, 3vw, 1.85rem); font-weight: 800;
  color: var(--brand-dark); margin: 0 0 10px; letter-spacing: -0.01em;
}
.section-sub { color: var(--text-muted); margin: 0 0 28px; max-width: 44rem; font-size: 1.02rem; }

.indicators {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-top: -48px; position: relative; z-index: 2;
  max-width: var(--content-max); margin-left: auto; margin-right: auto; padding: 0 var(--page-pad);
}
.indicator-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-elevated);
  padding: 22px 18px; border: 1px solid var(--border); text-align: center;
}
.indicator-card .value { font-size: 1.7rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.indicator-card .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

.feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feature-item h3 {
  font-size: 1.05rem; font-weight: 750; color: var(--brand-dark); margin: 0 0 8px;
}
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.feature-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; margin-bottom: 12px;
  background: var(--gold-light); color: var(--brand-dark); font-weight: 800; font-size: 0.9rem;
}

.news-list { display: grid; gap: 16px; }
.news-item {
  display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: start;
  padding: 18px 0; border-bottom: 1px solid var(--border-light);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-size: 0.78rem; font-weight: 700; color: var(--brand-light);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.news-item h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brand-dark); }
.news-item p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.disclaimer {
  background: var(--gold-light); border-left: 4px solid var(--gold);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 28px 0 0; font-size: 0.9rem;
  color: var(--text-secondary);
}

.btn-primary {
  background: var(--brand); color: #fff; border: none; border-radius: 10px;
  padding: 12px 20px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }
.btn-secondary {
  background: #fff; color: var(--brand); border: 1.5px solid var(--brand);
  border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-secondary:hover { background: var(--surface-warm); color: var(--brand-dark); }
.btn-link {
  background: none; border: none; color: var(--brand-light); font-weight: 700;
  cursor: pointer; padding: 0; text-decoration: underline;
}

/* ── Process / Wizard ── */
.process-page { background: linear-gradient(180deg, #eef5f8 0%, #fff 220px); min-height: calc(100vh - 56px); }
.process-wrap { max-width: 920px; margin: 0 auto; padding: 40px var(--page-pad) 72px; }
.process-wrap--wide { max-width: 1100px; }
.sim-hub {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px;
}
.sim-hub-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 10px;
}
.sim-hub-card h2 { margin: 0; font-size: 1.15rem; color: var(--brand-dark); }
.sim-hub-card p { margin: 0; color: var(--text-secondary); flex: 1; }
.result-sections { display: grid; gap: 14px; margin-top: 8px; }
@media (max-width: 800px) {
  .sim-hub { grid-template-columns: 1fr; }
}
.process-hero { text-align: center; margin-bottom: 28px; }
.process-hero .hero-actions { justify-content: center; }
.process-hero .sim-landing-features { text-align: left; }
.process-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800;
  color: var(--brand-dark); margin: 0 0 10px; letter-spacing: -0.02em;
}
.process-hero p { color: var(--text-muted); margin: 0 auto; max-width: 34rem; }

.progress-track {
  height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 0 0 10px;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 99px; transition: width .35s ease;
}
.progress-meta {
  display: flex; justify-content: space-between; font-size: 0.82rem;
  color: var(--text-muted); margin-bottom: 22px; font-weight: 600;
}

.step-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; justify-content: center; }
.step-pill {
  padding: 6px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  background: #fff; border: 1px solid var(--border); color: var(--text-muted);
}
.step-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-pill.done { background: #dcfce7; border-color: #bbf7d0; color: var(--success); }

.process-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 28px 26px;
  border-left: 4px solid var(--brand);
}
.process-card h2 {
  font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); margin: 0 0 6px;
}
.process-card .step-intro { color: var(--text-muted); margin: 0 0 22px; font-size: 0.95rem; }

    .field { margin-bottom: 22px; }
.field > label, .field-label {
  display: block; font-weight: 700; font-size: 0.92rem; color: var(--text);
  margin-bottom: 10px;
}
.field .help { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 13px 15px; font: inherit; background: #fff; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(25,70,129,.12);
}
.field-input-wrap {
  position: relative;
}
.field-input-wrap .field-affix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; color: var(--brand-light); font-size: 0.9rem; pointer-events: none;
}
.field-input-wrap input { padding-right: 42px; }

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.choice-grid--4 { grid-template-columns: repeat(4, 1fr); }
.choice-grid--activity { grid-template-columns: repeat(2, 1fr); }
.choice-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  text-align: left; width: 100%;
  border: 1.5px solid var(--border); border-radius: 14px;
  background: #fff; padding: 16px 16px 14px;
  cursor: pointer; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition), transform var(--transition);
}
.choice-card:hover {
  border-color: var(--brand-light);
  box-shadow: 0 8px 24px rgba(25,70,129,.08);
  transform: translateY(-1px);
}
.choice-card.is-active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f3f7fc 0%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(25,70,129,.12), 0 8px 24px rgba(25,70,129,.06);
}
.choice-card__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-warm); color: var(--brand);
  flex-shrink: 0;
}
.choice-card.is-active .choice-card__icon {
  background: var(--brand); color: #fff;
}
.choice-card__icon svg { width: 22px; height: 22px; display: block; }
.choice-card__title {
  font-weight: 800; font-size: 0.95rem; color: var(--brand-dark); line-height: 1.25;
}
.choice-card__sub {
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; margin: 0;
}
.choice-card--compact {
  flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px;
}
.choice-card--compact .choice-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
}
.choice-card--compact .choice-card__icon svg { width: 18px; height: 18px; }

/* Size chips */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-btn {
  border: 1.5px solid var(--border); background: #fff; color: var(--text);
  border-radius: 999px; padding: 9px 16px; font: inherit; font-weight: 700;
  font-size: 0.88rem; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.chip-btn:hover { border-color: var(--brand-light); color: var(--brand); }
.chip-btn.is-active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.chip-btn.is-warn.is-active {
  background: #92400e; border-color: #92400e;
}

/* Yes / No segmented */
.yn-toggle {
  display: inline-grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface-alt); min-width: 180px; max-width: 280px; width: 100%;
}
.yn-toggle button {
  border: none; background: transparent; padding: 11px 14px;
  font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  color: var(--text-secondary); transition: background var(--transition), color var(--transition);
}
.yn-toggle button + button { border-left: 1.5px solid var(--border); }
.yn-toggle button.is-active {
  background: var(--brand); color: #fff;
}
.yn-toggle button.is-active-no {
  background: #6b7280; color: #fff;
}

/* Destination tiles */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.dest-tile {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 12px; background: #fff; cursor: pointer; margin: 0;
  width: 100%; text-align: left; font: inherit; color: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.dest-tile:hover { border-color: var(--brand-light); }
.dest-tile.is-on {
  border-color: var(--brand);
  background: #f3f7fc;
  box-shadow: 0 0 0 3px rgba(25,70,129,.1);
}
.dest-tile.is-warn.is-on {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 0 0 3px rgba(217,119,6,.12);
}
.dest-tile input { position: absolute; opacity: 0; pointer-events: none; }
.dest-tile__check {
  width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--border); background: #fff;
  display: grid; place-items: center; margin-top: 1px;
}
.dest-tile.is-on .dest-tile__check {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.dest-tile.is-warn.is-on .dest-tile__check {
  background: #d97706; border-color: #d97706;
}
.dest-tile__check svg { width: 12px; height: 12px; opacity: 0; }
.dest-tile.is-on .dest-tile__check svg { opacity: 1; }
.dest-tile__body { min-width: 0; }
.dest-tile__label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--brand-dark); }
.dest-tile__hint { display: block; font-size: 0.72rem; color: #92400e; margin-top: 2px; }

/* Landing polish */
.sim-landing-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 28px 0 8px;
}
.sim-feature {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 16px; text-align: left;
  box-shadow: var(--shadow-card);
}
.sim-feature__icon {
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-light)); color: #fff;
}
.sim-feature__icon svg { width: 20px; height: 20px; }
.sim-feature strong {
  display: block; font-size: 0.92rem; color: var(--brand-dark); margin-bottom: 4px;
}
.sim-feature span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.4; }

.step-section-title {
  margin: 28px 0 14px;
  font-size: 0.78rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--brand-light);
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
}
.step-section-title:first-child {
  border-top: 0; padding-top: 0; margin-top: 0;
}

.step-pill {
  display: inline-flex; align-items: center; gap: 6px;
}
.step-pill__num {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 0.68rem; font-weight: 800;
  background: rgba(0,0,0,.06);
}
.step-pill.active .step-pill__num { background: rgba(255,255,255,.25); }
.step-pill.done .step-pill__num { background: #86efac; color: #166534; }

.result-card--integrated {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}
.result-card--integrated:hover { box-shadow: var(--shadow-elevated); }

@media (max-width: 720px) {
  .choice-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .choice-grid--activity { grid-template-columns: 1fr; }
  .sim-landing-features { grid-template-columns: 1fr; }
}
.form-actions {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap;
}

/* ── Results ── */
.results-header { text-align: center; margin-bottom: 28px; }
.results-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--brand-dark); margin: 0 0 8px;
}
.results-summary {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 18px 0 8px;
}
.summary-chip {
  padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  background: #fff; border: 1px solid var(--border);
}
.results-group { margin-bottom: 28px; }
.results-group h2 {
  font-size: 1rem; font-weight: 800; color: var(--brand-dark);
  margin: 0 0 12px; display: flex; align-items: center; gap: 8px;
}
.result-list { display: grid; gap: 12px; }
.result-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 20px; box-shadow: var(--shadow-card);
  display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: start;
}
.result-card h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--brand-dark); }
.result-card .amount {
  font-size: 1.35rem; font-weight: 800; color: var(--brand); white-space: nowrap; text-align: right;
}
.result-card .amount small {
  display: block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-top: 2px;
}
.result-meta { font-size: 0.88rem; color: var(--text-muted); grid-column: 1 / -1; }
.result-actions { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.result-explanations {
  grid-column: 1 / -1; margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--text-secondary);
}
.badge-status {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; margin-bottom: 8px;
}
.status-potencialmente_aplicavel { background: #dcfce7; color: #166534; }
.status-condicionado { background: #fef3c7; color: #92400e; }
.status-nao_aplicavel { background: #fee2e2; color: #991b1b; }
.status-aviso_indisponivel { background: #e5e7eb; color: #374151; }
.status-confirmacao_legislativa,
.status-confirmacao_especializada { background: #e0e7ff; color: #3730a3; }
.status-possivel_enquadramento { background: #fef3c7; color: #92400e; }
.status-dados_insuficientes { background: #f3f4f6; color: #4b5563; }
.result-card--integrated {
  display: block;
  padding: 22px 24px;
}
.result-card--integrated .amount { margin: 10px 0 14px; text-align: left; }
.result-card--integrated .result-detail-blocks {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.result-card--integrated .result-detail-blocks h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.deepen-panel {
  margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-alt);
  border: 1px dashed var(--border);
}
.deepen-panel h4 { margin: 0 0 10px; font-size: 0.95rem; color: var(--brand-dark); }

.catalog-note {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow-card);
}
.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
}
.catalog-item {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px;
}
.catalog-item h3 { margin: 0 0 6px; font-size: 1rem; color: var(--brand-dark); }
.catalog-item p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

#map { height: 420px; border-radius: var(--radius); border: 1px solid var(--border); }

.page-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 48px var(--page-pad) 40px;
}
.page-hero-inner { max-width: var(--content-max); margin: 0 auto; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.page-hero p { margin: 0; opacity: .9; max-width: 42rem; }

.footer {
  background: var(--brand-dark); color: rgba(255,255,255,.78); padding: 40px var(--page-pad); margin-top: 0;
  font-size: 0.9rem;
}
.footer-inner {
  max-width: var(--topbar-max); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer a { color: var(--gold); text-decoration: none; }
.footer strong { color: #fff; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-logo {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover;
  background: #fff; flex-shrink: 0;
}
.footer-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.footer-note { margin-top: 8px; opacity: .75; font-size: 0.82rem; }

.page-hero--avisos {
  background:
    linear-gradient(115deg, rgba(18,50,93,.9), rgba(25,70,129,.75)),
    url("assets/hero/barcelos-galo.jpg") center/cover no-repeat;
}
.home-split {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: stretch;
}
.home-avisos-visual {
  min-height: 220px; border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(18,50,93,.25), rgba(18,50,93,.55)),
    url("assets/hero/barcelos-galo.jpg") center/cover no-repeat;
  box-shadow: var(--shadow-card);
}
.section--avisos-home {
  background: var(--gold-light);
  max-width: none;
  padding: 64px var(--page-pad);
}
.section--avisos-home .home-split {
  max-width: var(--content-max);
  margin: 0 auto;
}
.btn-secondary {
  background: #fff; color: var(--brand); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 18px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-secondary:hover { border-color: var(--brand-light); color: var(--brand-dark); }
.aviso-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.aviso-code {
  font-size: 0.72rem; font-weight: 700; color: var(--brand);
  background: #e8eef6; padding: 2px 8px; border-radius: 999px;
}

/* ── Área do Investidor ── */
.area-section { max-width: 1100px; }
.area-auth { max-width: 480px; }
.area-auth-lead { margin: 0 0 16px; color: var(--text-secondary); }
.area-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.area-auth-tabs .btn-secondary.active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.area-welcome {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.area-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
  border-bottom: 1px solid var(--border); padding-bottom: 10px;
}
.area-tabs button {
  background: transparent; border: 0; padding: 8px 14px; border-radius: 8px;
  font-weight: 700; color: var(--text-secondary); cursor: pointer;
}
.area-tabs button.active { background: var(--brand); color: #fff; }
.area-panel-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; color: var(--brand-dark); }
.pedido-list { display: flex; flex-direction: column; gap: 12px; }
.pedido-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; background: #fff;
}
.pedido-head {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  margin-bottom: 6px; flex-wrap: wrap;
}
.pedido-item p { margin: 0 0 8px; color: var(--text-secondary); white-space: pre-wrap; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .amount { text-align: left; }
  .news-item { grid-template-columns: 1fr; }
  .topbar-brand-sub { display: none; }
  .topbar-nav { display: none; }
  .topbar-mobile-cta { display: inline-flex !important; }
  .home-split { grid-template-columns: 1fr; }
  .footer-links { align-items: flex-start; text-align: left; }
}
.topbar-mobile-cta { display: none; }

@media (max-width: 600px) {
  .hero--photo { min-height: 360px; }
  .hero-inner { padding: 40px 16px 64px; }
  .process-card { padding: 20px 16px; }
}

/* ── Avisos Portugal 2030 ── */
.avisos-section { max-width: var(--content-max); }
.avisos-toolbar { margin-bottom: 20px; }
.avisos-meta {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.avisos-meta a { color: var(--brand); font-weight: 600; text-decoration: none; }
.avisos-filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 10px;
}
.avisos-filters .form-control,
.avisos-filters .form-select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; padding: 10px 12px;
}
.avisos-count {
  font-size: 0.9rem; color: var(--text-secondary); margin: 8px 0 16px; font-weight: 600;
}
.avisos-empty {
  padding: 28px; background: var(--surface-alt); border-radius: var(--radius);
  color: var(--text-muted); text-align: center;
}
.avisos-grid { display: flex; flex-direction: column; gap: 12px; }
.aviso-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.aviso-card.is-open { border-color: var(--brand-light); box-shadow: var(--shadow-card); }
.aviso-card-head {
  display: block; width: 100%; text-align: left; background: transparent;
  border: 0; padding: 18px 20px; cursor: pointer; color: inherit;
}
.aviso-card-head:hover { background: var(--surface-alt); }
.aviso-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.aviso-card h2 {
  font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--brand-dark); line-height: 1.35;
}
.aviso-id { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.aviso-norte {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--gold-light); color: var(--brand-dark); padding: 2px 8px; border-radius: 999px;
}
.aviso-meta-row { font-size: 0.86rem; color: var(--text-secondary); }
.aviso-dates { margin-top: 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aviso-dotacao { font-weight: 700; color: var(--brand); }
.badge-status.st-open { background: #dcfce7; color: var(--success); }
.badge-status.st-scheduled { background: #e0f2fe; color: #075985; }
.badge-status.st-closed { background: #fee2e2; color: var(--danger); }
.aviso-detail {
  border-top: 1px solid var(--border-light);
  padding: 16px 20px 20px; background: var(--surface-warm);
}
.aviso-dl {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0 0 12px;
}
.aviso-dl .full { grid-column: 1 / -1; }
.aviso-dl dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.aviso-dl dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--text); }
.aviso-note { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.avisos-pager {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px;
}

@media (max-width: 900px) {
  .avisos-filters { grid-template-columns: 1fr 1fr; }
  .aviso-dl { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .avisos-filters { grid-template-columns: 1fr; }
}
