/* ==========================================================================
   MeuGuia — Guias práticos + novo visual da página inicial (2026-11-14)
   Ficheiro novo: não substitui css/style.css nem css/theme-overrides.css
   ========================================================================== */

/* ---------- Guias: página de artigo ---------- */
.page-guia .guia, .page-guias .guias-hub { padding-bottom: 3rem; }
.guia-article { max-width: 1120px; margin: 0 auto; }
.guia-hero { padding: .4rem 0 1.2rem; }
.guia-hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--forest);
  margin: .2rem 0 .8rem;
  text-wrap: balance;
}
.guia-lede { font-size: 1.14rem; line-height: 1.6; color: #2c2a27; max-width: 62ch; margin: 0 0 1rem; }
.guia-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .84rem; color: var(--subtle); margin: 0 0 1.2rem; padding: 0; }
.guia-meta span + span::before { content: "•"; margin-right: 1.1rem; color: var(--line-strong); }
.guia-hero__fig, .guia-fig { margin: 0 0 1.6rem; }
.guia-hero__fig img, .guia-fig img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 20px; box-shadow: var(--shadow); background: var(--teal-soft);
}
.guia-hero__fig figcaption, .guia-fig figcaption { font-size: .84rem; color: var(--subtle); margin-top: .55rem; line-height: 1.45; }

.guia-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2.6rem; align-items: start; }
.guia-side { position: sticky; top: calc(var(--header-h, 80px) + 16px); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.side-card::before { content: "Resumo rápido"; display: block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.guia-facts { margin: 0; }
.guia-facts > div { padding: .6rem 0; border-top: 1px solid var(--line); }
.guia-facts > div:first-child { border-top: 0; padding-top: 0; }
.guia-facts dt { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--subtle); }
.guia-facts dd { margin: .12rem 0 0; font-size: .94rem; line-height: 1.45; color: var(--ink); }

.guia-toc { background: var(--teal-soft); border-radius: var(--radius); padding: 1rem 1.3rem; margin: 0 0 1.8rem; }
.guia-toc strong { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); margin-bottom: .4rem; }
.guia-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.guia-toc li { break-inside: avoid; padding: .12rem 0; font-size: .95rem; }
.guia-toc a { color: var(--forest); text-decoration: none; border-bottom: 1px solid rgba(31,74,68,.25); }
.guia-toc a:hover { border-bottom-color: var(--forest); }

.guia-body { font-size: 1.05rem; line-height: 1.75; color: #232120; }
.guia-body h2 { font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.2; color: var(--forest); margin: 2.2rem 0 .7rem; scroll-margin-top: calc(var(--header-h, 80px) + 14px); }
.guia-body h3 { font-size: 1.12rem; margin: 1.5rem 0 .4rem; color: var(--forest-mid); }
.guia-body p { margin: 0 0 1rem; }
.guia-body ul, .guia-body ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.guia-body li { margin: .3rem 0; }
.guia-body li::marker { color: var(--teal); font-weight: 700; }
.guia-body a { color: var(--teal); text-underline-offset: 2px; }
.guia-body strong { color: #1b1a19; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 420px; }
.table-wrap th { background: var(--forest); color: #fff; text-align: left; padding: .6rem .8rem; font-size: .82rem; letter-spacing: .03em; }
.table-wrap td { padding: .6rem .8rem; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.table-wrap tbody tr:nth-child(even) td { background: #fbfaf7; }
.guia-tip { background: #fff8ec; border: 1px solid #f0d9ae; border-left: 5px solid var(--accent); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin: 0 0 1.4rem; font-size: 1rem; }
.guia-tip strong { color: var(--accent); text-transform: uppercase; font-size: .76rem; letter-spacing: .07em; margin-right: .4rem; }

.guia-faq { margin: 2.4rem 0 1.6rem; }
.guia-faq h2 { margin-top: 0; }
.guia-faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 .6rem; }
.guia-faq summary { cursor: pointer; font-weight: 700; padding: .85rem 1.1rem; list-style: none; position: relative; padding-right: 2.6rem; color: var(--forest); }
.guia-faq summary::-webkit-details-marker { display: none; }
.guia-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--teal); }
.guia-faq details[open] summary::after { content: "−"; }
.guia-faq details p { margin: 0; padding: 0 1.1rem 1rem; color: #2f2d2a; font-size: 1rem; }

.guia-src { margin: 1.8rem 0; padding: 1rem 1.2rem; background: var(--sand); border-radius: var(--radius-sm); }
.guia-src h2 { font-size: 1.05rem !important; margin: 0 0 .5rem !important; font-family: var(--sans) !important; }
.guia-src ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; }
.guia-src li { margin: .25rem 0; word-break: break-word; }

.guia-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(135deg, var(--forest) 0%, var(--teal) 100%); color: #fff; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0; }
.guia-cta strong { font-size: 1.15rem; display: block; }
.guia-cta p { margin: .2rem 0 0; opacity: .9; font-size: .98rem; }
.guia-cta .btn { background: #fff; color: var(--forest); font-weight: 800; }
.guia-cta .btn:hover { background: var(--teal-soft); }
.guia-note { font-size: .84rem; color: var(--subtle); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1.6rem; }
.guia-rel { margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.guia-rel h2 { font-family: var(--serif); font-size: 1.5rem; color: var(--forest); margin: 0 0 1rem; }

/* ---------- Cartões de guia (usados no índice, nos relacionados e na página inicial) ---------- */
.guias-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card-guia { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card-guia:hover, .card-guia:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--teal); }
.card-guia__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-soft); }
.card-guia__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.card-guia:hover .card-guia__media img { transform: scale(1.04); }
.card-guia__body { display: flex; flex-direction: column; gap: .45rem; padding: .95rem 1.05rem 1.1rem; flex: 1; }
.card-guia__body strong { font-size: 1.02rem; line-height: 1.3; color: var(--forest); }
.card-guia__desc { font-size: .88rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.chip { display: inline-block; align-self: flex-start; background: var(--teal-soft); color: var(--forest); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.chip-link { text-decoration: none; padding: .38rem .8rem; font-size: .78rem; border: 1px solid transparent; }
.chip-link:hover { border-color: var(--teal); background: #fff; }

/* ---------- Índice de guias ---------- */
.guias-hub__hero { padding: .6rem 0 1.4rem; }
.guias-hub__hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--forest); margin: .2rem 0 .8rem; }
.guias-sec { margin: 2.4rem 0 0; scroll-margin-top: calc(var(--header-h, 80px) + 14px); }
.guias-sec h2 { font-family: var(--serif); font-size: 1.6rem; color: var(--forest); margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--teal-soft); }
.guias-trust { margin: 3rem 0 0; padding: 1.3rem 1.5rem; background: var(--sand); border-radius: var(--radius); }
.guias-trust h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--forest); }
.guias-trust p { margin: 0; color: var(--muted); }

/* ---------- Página inicial renovada ---------- */
.home-hero { position: relative; color: #fff; background: var(--forest); overflow: hidden; border-bottom: 0; padding: 0; }
.home-hero__bg { position: absolute; inset: 0; }
.home-hero__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,36,33,.92) 0%, rgba(14,36,33,.78) 42%, rgba(14,36,33,.25) 100%); }
.home-hero__inner { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 4.6rem); max-width: 760px; }
.home-hero .eyebrow { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(4px); }
.home-hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 3.8rem); line-height: 1.07; margin: .2rem 0 1rem; letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.home-hero .lead { font-size: 1.15rem; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 56ch; margin: 0 0 1.6rem; }
.home-hero .search-panel { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.home-hero .hero-note { color: rgba(255,255,255,.78); margin-top: 1rem; }
.home-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 0; }
.home-ctas .btn { padding: .7rem 1.2rem; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-light:hover { background: #fff; color: var(--forest); }
.home-credit { position: absolute; right: .9rem; bottom: .6rem; z-index: 2; font-size: .7rem; color: rgba(255,255,255,.7); }
.home-credit a { color: inherit; }

.home-trust { background: #fff; border-bottom: 1px solid var(--line); }
.home-trust ul { list-style: none; margin: 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.home-trust li { display: flex; gap: .7rem; align-items: center; font-size: .9rem; color: var(--muted); line-height: 1.35; }
.home-trust b { display: block; color: var(--forest); font-size: 1rem; }
.home-trust .ic { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); font-size: 1.2rem; }

.home-guias .section-head { align-items: end; }
.home-guias .guias-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-guias .card-guia:first-child { grid-column: span 2; }
.home-guias .card-guia:first-child .card-guia__media { aspect-ratio: 21 / 9; }
.home-guias .card-guia:first-child .card-guia__body strong { font-size: 1.3rem; }

.cat-emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--teal-soft); font-size: 1.6rem; margin-bottom: .6rem; }
.home-topics { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.home-topics a { display: inline-block; padding: .5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--forest); text-decoration: none; }
.home-topics a:hover { background: var(--teal-soft); border-color: var(--teal); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .guia-layout { grid-template-columns: 1fr; gap: 1.2rem; }
  .guia-side { position: static; order: -1; }
  .guias-grid, .home-guias .guias-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-guias .card-guia:first-child { grid-column: span 2; }
  .home-trust ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .guias-grid, .home-guias .guias-grid { grid-template-columns: 1fr; }
  .home-guias .card-guia:first-child { grid-column: auto; }
  .home-guias .card-guia:first-child .card-guia__media { aspect-ratio: 16 / 9; }
  .guia-toc ol { columns: 1; }
  .guia-hero__fig img, .guia-fig img { border-radius: 14px; }
  .guia-body { font-size: 1.02rem; }
  .home-hero__bg::after { background: linear-gradient(180deg, rgba(14,36,33,.82), rgba(14,36,33,.9)); }
  .home-trust ul { grid-template-columns: 1fr; }
  .guia-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .card-guia, .card-guia__media img { transition: none; }
  .card-guia:hover { transform: none; }
}
@media print {
  .guia-side, .guia-toc, .guia-cta, .site-header, .site-footer { display: none; }
}

/* Botão "Adicionar negócio" do cabeçalho: texto sempre legível */
.site-header .header-cta, .site-header .header-cta:hover { color: #fff !important; }

/* cabeçalho com mais ligações: evita o botão cortado em ecrãs médios */
@media (min-width: 761px) {
  .header-inner { gap: .8rem; }
  .site-nav { gap: .15rem .95rem; }
  .site-nav a { font-size: .86rem; }
  .header-cta { padding: .6rem .9rem; font-size: .82rem; }
}
@media (min-width: 761px) {
  .site-nav { gap: .15rem .6rem; }
  .site-nav a { font-size: .8rem; }
  .brand-logo { max-width: 104px; height: auto; }
}
.home-credit { right: auto; left: .9rem; }
@media (min-width: 761px) {
  .site-nav a, .site-nav .header-cta { flex: 0 0 auto; white-space: nowrap; }
  .site-nav { gap: .15rem .75rem; }
  .header-cta { padding: .6rem .95rem; }
}
@media (max-width: 640px) {
  .home-guias .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .home-guias .section-head > a { white-space: nowrap; font-weight: 700; }
}

/* Menu longo (13 ligações): abaixo de 1100px usa o menu "hambúrguer" em vez de partir em 2-3 linhas */
@media (min-width: 761px) and (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .7rem 1.2rem 1.1rem; gap: .1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .8rem .2rem; font-size: .95rem; }
  .site-nav a.header-cta { width: 100%; border-radius: 12px; margin-top: .25rem; text-align: center; padding: .8rem .2rem; }
}
@media (min-width: 1201px) and (max-width: 1320px) {
  .site-nav { gap: .15rem .55rem; }
  .site-nav a { font-size: .78rem; }
  .site-nav a.header-cta { padding: .5rem .75rem; font-size: .76rem; }
  .brand-logo { max-width: 96px; }
}
