/* ==========================================================================
   MeuGuia — CSS profissional
   Tipografia editorial, espaço, contraste e cartões limpos
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,500;8..60,600;8..60,700&display=swap");

:root {
  --forest: #16332f;
  --forest-mid: #1f4a44;
  --teal: #2a6a62;
  --teal-soft: #e7f1ef;
  --sand: #f6f1ea;
  --paper: #fbf8f4;
  --white: #ffffff;
  --ink: #161616;
  --muted: #5c5854;
  --subtle: #7a746c;
  --line: #e6dfd4;
  --line-strong: #d4cbbd;
  --ok: #1f6b4a;
  --ok-bg: #e5f4ec;
  --accent: #b35a1f;
  --shadow: 0 10px 30px rgba(22, 51, 47, 0.08);
  --shadow-sm: 0 2px 8px rgba(22, 51, 47, 0.05);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --header-h: 80px;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest-mid);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--forest);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  flex-shrink: 0;
}

.brand:hover {
  color: inherit;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  color: var(--subtle);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 0.15rem;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

@media (max-width: 560px) {
  .brand-logo {
    height: 32px;
  }
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.35rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.3rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  text-decoration: none;
  transition: 0.18s ease;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.btn:hover {
  color: inherit;
  transform: translateY(-1px);
}

.btn-primary,
.header-cta {
  background: var(--forest);
  color: #fff;
}

.btn-primary:hover,
.header-cta:hover {
  background: var(--forest-mid);
  color: #fff;
}

.btn-disabled {
  background: var(--sand);
  color: var(--subtle);
  cursor: not-allowed;
  border: 1px dashed var(--line-strong);
}

.btn-disabled:hover {
  transform: none;
  background: var(--sand);
  color: var(--subtle);
}

.link-disabled {
  color: var(--subtle);
  text-decoration: line-through;
  cursor: not-allowed;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #934716;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
}

.header-cta {
  white-space: nowrap;
  padding: 0.68rem 1.05rem;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding: 4.2rem 0 3rem;
  background:
    radial-gradient(circle at 92% 8%, rgba(42, 106, 98, 0.09), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
}

.lead,
.page-hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 48ch;
}

.search-panel {
  margin-top: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.55rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  gap: 0.35rem;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.9rem;
}

.search-field + .search-field {
  border-left: 1px solid var(--line);
}

.search-field label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}

.search-field input,
.field input,
.field select,
.field textarea {
  border: 0;
  padding: 0.2rem 0;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  width: 100%;
}

.search-field input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
}

.search-panel .btn {
  align-self: stretch;
  min-width: 138px;
}

.hero-note {
  margin-top: 0.95rem;
  font-size: 0.86rem;
  color: var(--subtle);
}

.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0.7rem;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--teal-soft);
}

.hero-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--teal-soft);
}

.hero-collage a {
  display: block;
  height: 100%;
  min-height: 0;
  background: var(--white);
}

.hero-collage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.9rem;
  background: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  padding: 0.75rem 0.4rem 0.45rem;
}

.stat {
  text-align: center;
  padding: 0.55rem 0.2rem;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.stat span {
  font-size: 0.75rem;
  color: var(--subtle);
}

/* --------------------------------------------------------------------------
   Secções
   -------------------------------------------------------------------------- */
.section {
  padding: 4.2rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.7rem;
}

.section-head h2,
.panel h2,
.panel h3,
.related h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.section-head p,
.listing-body p,
.step p,
.prose p,
.prose li {
  color: var(--muted);
}

.section-head p {
  margin: 0.4rem 0 0;
}

.page-hero {
  padding: 2.4rem 0 0.2rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
}

.demo-banner {
  background: #f4eadb;
  color: #6a4a22;
  border: 1px solid #e8d5b5;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  margin: 1.1rem 0 1.4rem;
}

/* --------------------------------------------------------------------------
   Cartões
   -------------------------------------------------------------------------- */
.grid-cats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.9rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: 0.2s ease;
}

.card-link {
  display: block;
  color: inherit;
  height: 100%;
}

.card-link:hover {
  color: inherit;
}

.card-link:hover .card,
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8ddd8;
}

.cat-card {
  padding: 1.2rem 1.05rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 176px;
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  font-size: 1.15rem;
  overflow: hidden;
}

.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  background: var(--white);
}

.cat-card h2,
.cat-card h3 {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
}

.cat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
}

.cat-count {
  font-size: 0.75rem;
  color: var(--subtle);
  font-weight: 700;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.listing-card .thumb {
  height: 176px;
  background: var(--sand);
  position: relative;
}

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

.listing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.listing-card .cover-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #dfe9e6;
}

.listing-card .cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.listing-card:hover .cover-thumb img {
  transform: scale(1.035);
}

.listing-card .cover-thumb .listing-logo {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 74px;
  height: 74px;
  object-fit: contain;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(14,47,43,.2);
  transform: none;
}

.listing-card:hover .cover-thumb .listing-logo { transform: none; }

.listing-card .listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.listing-card .listing-body > .btn {
  align-self: flex-start;
  margin-top: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.badge-ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.thumb .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.listing-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.75rem;
  color: var(--subtle);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.listing-body h2,
.listing-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
}

.listing-body p {
  margin: 0 0 0.95rem;
  font-size: 0.93rem;
}

.listing-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.phone {
  font-weight: 700;
  font-size: 0.88rem;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.city-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  color: inherit;
  font-weight: 700;
}

.city-chip:hover {
  color: inherit;
  border-color: var(--teal);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.city-chip span {
  color: var(--subtle);
  font-weight: 600;
  font-size: 0.78rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 0.95rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
}

.step p {
  margin: 0;
}

.cta-band {
  background: var(--forest);
  color: #fff;
  border-radius: 28px;
  padding: 2.5rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.6rem;
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 600;
}

.cta-band p {
  margin: 0;
  opacity: 0.88;
}

.cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-shrink: 0;
}

.cta-band .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.cta-band .btn-accent {
  background: #fff;
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   Listagens
   -------------------------------------------------------------------------- */
.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.95rem;
  margin-bottom: 1.4rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--subtle);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.72rem 0.85rem;
  background: var(--paper);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.7rem;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  color: inherit;
}

.page-btn[aria-current="page"],
.page-btn:hover {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* --------------------------------------------------------------------------
   Detalhe
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.86rem;
  color: var(--subtle);
  margin: 1.2rem 0 0.5rem;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line-strong);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.2rem;
  margin: 1rem 0 2.5rem;
}

.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.4rem;
}

.panel h2,
.panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.detail-title h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0.6rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  background: var(--sand);
}

.gallery-side {
  display: grid;
  gap: 0.6rem;
}

.gallery img:first-child {
  min-height: 250px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  font-size: 0.94rem;
}

.info-list span {
  color: var(--subtle);
}

.side-actions {
  display: grid;
  gap: 0.55rem;
}

.hours {
  display: grid;
  gap: 0.35rem;
  font-size: 0.93rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
}

.map-box {
  height: 180px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(22, 51, 47, 0.08), rgba(179, 90, 31, 0.08)),
    repeating-linear-gradient(0deg, transparent, transparent 18px, rgba(22, 22, 22, 0.04) 19px),
    repeating-linear-gradient(90deg, transparent, transparent 18px, rgba(22, 22, 22, 0.04) 19px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.related {
  margin-bottom: 2.8rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
}

.entity-logo {
  width: min(260px, 68%);
  height: auto;
  display: block;
  margin: 0.4rem auto 1.2rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.entity-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.listing-card .thumb.logo-thumb {
  height: 180px;
  display: grid;
  place-items: center;
  background: #fff;
  padding: 0.8rem;
}

.listing-card .thumb.logo-thumb img {
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.prose h2 {
  margin-top: 1.9rem;
  font-family: var(--serif);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #102421;
  color: #e7efe9;
  padding: 3.2rem 0 1.4rem;
  margin-top: 0.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 1.8rem;
}

.site-footer a {
  color: #c9d6d0;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.footer-brand p {
  color: #b7c4be;
}

.socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #2d4a44;
  display: grid;
  place-items: center;
  color: #fff;
}

.legal {
  border-top: 1px solid #1d3a35;
  margin-top: 2.1rem;
  padding-top: 1rem;
  color: #93a49e;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.muted { color: var(--muted); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid,
  .detail-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-cats,
  .grid-cards,
  .steps,
  .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .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: 0.7rem 1.2rem 1.1rem;
    gap: 0.1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav .header-cta {
    padding: 0.8rem 0.2rem;
  }

  .header-cta {
    width: 100%;
    border-radius: 12px;
    margin-top: 0.25rem;
    text-align: center;
  }

  .search-panel,
  .form-grid,
  .toolbar,
  .grid-cards,
  .steps,
  .city-grid,
  .grid-cats {
    grid-template-columns: 1fr;
  }

  .search-field + .search-field {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    padding: 2.2rem 0 2rem;
  }

  .hero-card {
    display: none;
  }

  .section {
    padding: 2.7rem 0;
  }

  .gallery,
  .gallery-side {
    grid-template-columns: 1fr;
  }
}


/* Galerias de imagens e vídeos */
.chip-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 2rem; }
.chip { display:inline-flex; align-items:center; padding:.4rem .8rem; border-radius:999px; border:1px solid var(--line); background:#fff; color:inherit; text-decoration:none; font-size:.9rem; }
.chip:hover, .chip:focus-visible { border-color:#2a6a62; background:#f4faf8; }
.media-section { margin-bottom:2.8rem; scroll-margin-top:5.5rem; }
.media-head { display:flex; justify-content:space-between; gap:1rem; align-items:baseline; margin-bottom:1rem; }
.media-head p { color:var(--muted); margin:0; }
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.media-card { position:relative; margin:0; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; box-shadow:var(--shadow-sm); }
.media-card { cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.media-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); border-color:#c8ddd8; }
.media-card img { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; background:#fff; }
.media-card .media-logo { position:absolute; left:12px; top:12px; width:72px; height:72px; aspect-ratio:1; object-fit:contain; padding:3px; background:#fff; border:3px solid #fff; border-radius:14px; box-shadow:0 7px 20px rgba(14,47,43,.22); }
.media-card figcaption { display:grid; gap:.15rem; padding:.75rem .9rem 1rem; }
.media-card figcaption span { color:var(--muted); font-size:.85rem; }
.credit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:1rem; margin:0 0 2rem; }
.credit-card { overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-sm); }
.credit-card img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.credit-card > div { padding:1rem; }
.credit-card h2 { margin:.2rem 0 .65rem; font-size:1.05rem; }
.credit-card p { color:var(--muted); font-size:.9rem; }
.visual-pair { position:relative; padding:0 !important; }
.credit-card .credit-photo { width:100%; aspect-ratio:16/9; object-fit:cover; }
.credit-card .credit-logo { position:absolute; left:12px; bottom:12px; width:88px; height:88px; aspect-ratio:1; object-fit:contain; border:3px solid #fff; border-radius:14px; background:#fff; box-shadow:0 7px 20px rgba(14,47,43,.22); }
.video-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.1rem; }
.video-card { background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; padding-bottom:1rem; box-shadow:var(--shadow-sm); }
.video-frame { position:relative; aspect-ratio:16/9; background:#111; }
.video-frame iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.video-card h3 { font-size:1.05rem; margin:.85rem 1rem .25rem; }
.video-card .muted, .video-card p { margin:0 1rem .8rem; color:var(--muted); }
.video-card .btn { margin:0 1rem; }

.prose { max-width: 78ch; }
.prose h1 { font-family: var(--serif); letter-spacing: -0.03em; }
.prose h2 { font-family: var(--serif); font-size: 1.4rem; margin: 2rem 0 0.7rem; }
.entity-hero-media, .entity-side-media {
  margin: 0 0 1.3rem; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.entity-hero-media img, .entity-side-media img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
}
.entity-hero-media figcaption, .entity-side-media figcaption {
  padding: .65rem .9rem .8rem; color: var(--muted); font-size: .88rem;
}
.trust-row { display:flex; flex-wrap:wrap; gap:.45rem; margin:.6rem 0 1.1rem; }
.trust-pill {
  font-size:.76rem; font-weight:700; background:var(--ok-bg); color:var(--ok);
  border-radius:999px; padding:.28rem .7rem;
}
.trust-pill.warn { background:#f7eee6; color:var(--accent); }
.article-layout {
  display:grid; grid-template-columns:minmax(0,1.7fr) minmax(240px,.8fr);
  gap:1.5rem; margin:.6rem 0 3rem; align-items:start;
}
.article-side { position:sticky; top:calc(var(--header-h) + 1rem); }
.side-card {
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:1.1rem 1.15rem; margin-bottom:.9rem;
}
.confirm-note {
  background:#f7eee6; border:1px solid #ecd7c4; color:#6a3a16;
  border-radius:14px; padding:.9rem 1rem; font-size:.92rem;
}
.faq-list details {
  background:#fff; border:1px solid var(--line); border-radius:12px;
  padding:.75rem .95rem; margin:0 0 .55rem;
}
.faq-list summary { cursor:pointer; font-weight:700; }
.related-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:.7rem; }
.related-card {
  background:#fff; border:1px solid var(--line); border-radius:14px;
  padding:.85rem .95rem; display:block; color:inherit;
}
.related-card:hover { border-color:var(--teal); color:inherit; }
.related-card span { color:var(--muted); font-size:.86rem; }
.search-results { display:grid; gap:.75rem; margin:1rem 0 2rem; }
.search-empty-hint { font-weight:700; color:var(--forest-mid); margin:1.2rem 0 .6rem; font-size:.92rem; }
.search-empty .chip-row { margin-bottom: .5rem; }
.search-suggestions { margin-top:.5rem; }
.search-hit {
  background:#fff; border:1px solid var(--line); border-radius:16px;
  padding:1rem 1.1rem;
}
.search-hit.listing-card { padding:0; }
.search-result-card { display:grid; grid-template-columns:minmax(190px, 260px) 1fr; }
.search-result-card .cover-thumb { height:100%; min-height:190px; }
.listing-card .thumb.logo-thumb {
  display:grid; place-items:center; background:#fff; min-height:150px;
}
.listing-card .thumb.logo-thumb img { width:min(70%,180px); object-fit:contain; }
.demo-banner { display:none !important; }
@media (max-width:980px) {
  .article-layout { grid-template-columns:1fr; }
  .article-side { position:static; }
  .related-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .search-result-card { grid-template-columns:1fr; }
  .search-result-card .cover-thumb { height:190px; min-height:0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .card, .btn, .listing-card .cover-thumb img { transition:none; }
  .listing-card:hover .cover-thumb img { transform:none; }
}

/* --------------------------------------------------------------------------
   Sistema visual por entidade — marcas oficiais e capas editoriais
   -------------------------------------------------------------------------- */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.cover-thumb {
  position: relative;
  overflow: hidden;
  background: #e7efec;
}

.listing-card .cover-thumb > img:first-child,
.media-card > a > img:first-child {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.listing-card .listing-logo,
.media-card .media-logo,
.credit-card .credit-logo {
  box-sizing: border-box;
  object-fit: contain;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(14,47,43,.12);
  box-shadow: 0 10px 26px rgba(7,37,33,.2);
}

.listing-card .listing-logo {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  width: 74px !important;
  height: 74px !important;
  padding: 10px;
  border-radius: 16px;
}

.logo-panel {
  min-height: 250px;
  display: grid;
  grid-template-rows: minmax(190px,1fr) auto;
  place-items: center;
  background:
    radial-gradient(circle at 18% 15%, rgba(214,170,79,.13), transparent 33%),
    linear-gradient(135deg,#fff,#f5f9f7);
}

.logo-panel > a {
  width: 100%;
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.8rem;
}

.entity-hero-media.logo-panel img {
  width: min(220px, 52%);
  height: min(220px, 32vw);
  min-height: 130px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgba(14,47,43,.12));
}

.entity-side-media.editorial-cover img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.logo-panel figcaption,
.entity-side-media figcaption {
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.95);
}

.logo-placeholder {
  width: min(430px, 82%);
  min-height: 150px;
  padding: 1.4rem;
  border: 2px dashed #b9cbc6;
  border-radius: 18px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: .45rem;
  color: var(--forest);
}

.logo-placeholder strong { font: 700 1.25rem/1.25 var(--serif); }
.logo-placeholder span { color: var(--muted); font-size: .86rem; }

.logo-unconfirmed {
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  color: var(--forest);
  font-weight: 800;
  line-height: 1;
}

.logo-unconfirmed small {
  font-size: 7px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
}

.media-card .logo-unconfirmed,
.credit-card .logo-unconfirmed {
  position: absolute;
  z-index: 2;
  left: 12px;
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 14px;
}

.media-card .logo-unconfirmed { top: 12px; }
.credit-card .logo-unconfirmed { bottom: 12px; }
.credit-card .credit-logo { padding: 10px; }

.media-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,270px),1fr));
}

.media-card figcaption {
  min-height: 116px;
  align-content: start;
}

.media-card {
  content-visibility: auto;
  contain-intrinsic-size: 340px 360px;
}

.media-card[hidden] { display: none; }

.media-more {
  display: flex;
  width: fit-content;
  margin: 1.1rem auto 0;
}

.credit-grid {
  grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr));
}

.entity-hero-media,
.entity-side-media,
.listing-card,
.media-card,
.credit-card {
  contain: layout paint;
}

@media (min-width: 760px) {
  .prose > .entity-hero-media,
  .prose > .entity-side-media {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .container { width: min(100% - 1.25rem, var(--container)); }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 3rem); overflow-wrap: anywhere; }
  .media-head { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .media-head h2 { margin-bottom: .1rem; }
  .chip-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .45rem; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; }
  .logo-panel { min-height: 220px; }
  .logo-panel > a { min-height: 180px; padding: 1.25rem; }
  .entity-hero-media.logo-panel img { width: min(180px,58%); height: min(180px,48vw); }
  .article-layout { gap: .9rem; }
  .article-layout .prose { min-width: 0; }
  .listing-card .listing-logo { width: 62px !important; height: 62px !important; padding: 8px; }
  .media-card .media-logo,
  .media-card .logo-unconfirmed { width: 62px; height: 62px; }
}

@media (max-width: 420px) {
  .container { width: min(100% - .9rem, var(--container)); }
  .page-hero { padding-top: 1.45rem; }
  .page-hero h1 { font-size: clamp(1.78rem, 9.4vw, 2.35rem); }
  .media-grid { gap: .75rem; }
  .media-card,
  .listing-card,
  .entity-hero-media,
  .entity-side-media { border-radius: 14px; }
  .entity-hero-media figcaption,
  .entity-side-media figcaption { font-size: .8rem; }
  .btn { max-width: 100%; white-space: normal; text-align: center; }
}


/* Bandeiras dos países */
.country-flag-frame{display:block;width:100%;aspect-ratio:3/2;max-height:240px;margin:0 0 1.15rem;overflow:hidden;border:1px solid rgba(10,55,51,.14);border-radius:14px;background:#f5f7f6;box-shadow:0 10px 28px rgba(13,51,47,.1)}
.country-flag{display:block;width:100%;height:100%;object-fit:cover}
.country-hero-flag{display:block;width:min(280px,72vw);height:auto;margin:0 0 1.35rem;border:1px solid rgba(10,55,51,.14);border-radius:18px;box-shadow:0 16px 34px rgba(13,51,47,.14)}
.country-eyebrow{display:inline-flex!important;align-items:center;gap:.55rem}
.country-eyebrow img{display:block;width:45px;height:30px;object-fit:cover;border-radius:5px;border:1px solid rgba(10,55,51,.16);box-shadow:0 4px 10px rgba(13,51,47,.1)}
@media(max-width:640px){.country-flag-frame{max-height:190px}.country-hero-flag{width:min(220px,74vw)}}

/* ============================================================
   Botão "Ouvir esta página" (leitura em voz alta, lado direito)
   ============================================================ */
.tts-widget{position:fixed;right:18px;bottom:22px;z-index:70;display:flex;flex-direction:column;align-items:flex-end;gap:.5rem;font-family:var(--sans)}
.tts-row{display:flex;align-items:center;gap:.4rem}
.tts-btn{display:inline-flex;align-items:center;gap:.5rem;background:var(--forest);color:var(--white);border:none;border-radius:999px;padding:.7rem 1.05rem;font-family:var(--sans);font-weight:700;font-size:.85rem;line-height:1;box-shadow:var(--shadow);cursor:pointer;transition:background .15s ease,transform .1s ease}
.tts-btn:hover{background:var(--forest-mid)}
.tts-btn:active{transform:scale(.96)}
.tts-btn:focus-visible{outline:3px solid var(--teal);outline-offset:2px}
.tts-btn svg{width:17px;height:17px;flex:none}
.tts-btn[data-state="playing"]{background:var(--accent)}
.tts-btn[data-state="paused"]{background:var(--teal)}
.tts-stop{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:999px;border:1px solid var(--line-strong);background:var(--white);color:var(--muted);cursor:pointer;box-shadow:var(--shadow-sm)}
.tts-stop svg{width:14px;height:14px}
.tts-stop:hover{color:var(--ink);border-color:var(--muted)}
.tts-status{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-sm);padding:.4rem .7rem;font-size:.75rem;box-shadow:var(--shadow-sm);max-width:220px;text-align:right}
@media(max-width:640px){.tts-widget{right:12px;bottom:14px}.tts-btn{padding:.6rem .85rem;font-size:.8rem}.tts-btn span{display:none}.tts-stop{width:34px;height:34px}}
@media print{.tts-widget{display:none}}
