/* Primeira etapa do novo visual. Escopo restrito à página inicial. */
body.home-page {
  --ink: #080e38;
  --red: #0054dc;
  --banner-blue: #0756bb;
  --lime: #ffda32;
  --cream: #fff;
  --page-bg: #f2f8ff;
  --home-blue: #0054dc;
  --home-yellow: #ffda32;
  color: var(--ink);
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.home-page svg:not(:where(.leaflet-container *, .maplibregl-map *)) { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.home-page .home-icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.home-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home-page :is(a, button, input, summary):focus-visible { outline: 3px solid #3489ef; outline-offset: 4px; }
.home-page main { min-height: 0; padding: 22px 0 32px; }
.home-page .home-content-surface { gap: 24px; padding: 0; background: #fff; border-radius: 24px; box-shadow: 0 12px 45px #123b6010; }
.home-page .home-discovery-section { --ink: #080e38; --red: #0054dc; --cream: #fff; padding: 0 0 22px; scroll-margin-top: 18px; }
.home-page .home-discovery-hero { overflow: visible; border-radius: 24px 24px 0 0; background: transparent; }
.home-page .home-discovery-visual {
  min-height: 350px; padding: 38px 42px 50px; border-radius: 24px 24px 18px 18px;
  background: linear-gradient(90deg, #064da9fa 0%, #0756bbe6 28%, #0756bb55 65%, #0756bb0a 100%), linear-gradient(0deg, #043c8999, transparent 65%), var(--home-hero-image, url('brejo-city-aerial.webp')) center 54% / cover no-repeat, #0756bb;
}
.home-page .home-discovery-visual::after { display: none; }
.home-page .home-discovery-intro { width: min(580px, 75%); }
.home-page .home-discovery-intro h1 { max-width: 540px; font: 800 clamp(44px, 5.2vw, 64px)/.99 Manrope, sans-serif; letter-spacing: -2.5px; text-wrap: initial; color: #fff; }
.home-page .home-discovery-intro h1 span { color: var(--home-yellow); }
.home-page .home-discovery-description { max-width: 365px; margin: 14px 0 0; font-size: 16px; line-height: 1.35; color: #fff; text-wrap: pretty; }
.home-search-area { position: relative; z-index: 3; margin: -25px 28px 0; }
.home-search { display: flex; min-height: 54px; gap: 12px; align-items: center; padding: 6px 7px 6px 18px; border: 1px solid #e4ebf5; border-radius: 999px; background: #fff; box-shadow: 0 5px 16px #073c7b20; scroll-margin-top: 24px; }
.home-search > svg { flex: 0 0 23px; color: #162957; }
.home-search input { min-width: 0; width: 100%; padding: 8px 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: 400 16px/1.3 'DM Sans', sans-serif; }
.home-search input::placeholder { color: #68788e; opacity: 1; }
.home-search input:focus-visible { outline-offset: 2px; }
.home-search button { display: grid; flex: 0 0 54px; height: 40px; place-items: center; padding: 0; border: 0; border-radius: 24px; background: var(--home-yellow); color: #091342; cursor: pointer; }
.home-search button:hover { background: #ffe46b; }
.home-search-results { margin-top: 14px; padding: 18px; border: 1px solid #dce8f6; border-radius: 20px; background: #fff; box-shadow: 0 10px 32px #123b6012; }
.home-search-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-search-heading h2 { margin: 0; font: 800 18px/1.3 Manrope, sans-serif; }
.home-search-heading button { flex: 0 0 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #eef5ff; color: var(--ink); font-size: 27px; cursor: pointer; }
#homeSearchStatus { margin: 8px 0 14px; font-size: 14px; color: #53647b; }
.home-search-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-search-result { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e6eef8; border-radius: 14px; }
.home-search-result:hover { background: #f1f7ff; border-color: #bcd5f7; }
.home-search-result-media { display: grid; flex: 0 0 60px; width: 60px; height: 60px; overflow: hidden; place-items: center; border-radius: 12px; background: #e5f1ff; font: 800 24px Manrope, sans-serif; }
.home-search-result-media img { width: 100%; height: 100%; object-fit: cover; }
.home-search-result-copy { flex: 1; min-width: 0; }
.home-search-result strong { display: block; font: 800 15px/1.3 Manrope, sans-serif; overflow-wrap: anywhere; }
.home-search-result small { display: block; margin-top: 5px; font-size: 12px; color: #52637a; overflow-wrap: anywhere; }
.home-search-result > svg { flex: 0 0 19px; width: 19px; color: var(--home-blue); }
.home-page .home-discovery-category-entry { width: 100%; margin: 0; padding: 0; }
.home-page .home-discovery-benefits { gap: 12px; }
.home-page .home-category-trigger { min-height: 112px; align-content: start; gap: 8px; padding: 14px 10px; border: 2px solid transparent; border-radius: 16px; background: #fff3bf; color: var(--ink); transition: border-color .18s ease; }
.home-page .home-category-trigger:hover { transform: none; border-color: #8ab4ed; }
.home-page .home-category-trigger.is-active { border-color: #0054dc; color: var(--ink); box-shadow: inset 0 0 0 1px #0054dc; }
.home-page .home-category-trigger strong { display: block; max-width: 230px; font: 800 16px/1.1 Manrope, sans-serif; text-transform: none; text-wrap: balance; }
.home-page .home-discovery-benefit-icon { width: 46px; height: 46px; flex-basis: auto; border-radius: 0; background: transparent; color: #10244b; box-shadow: none; }
.home-page .home-discovery-benefit-icon svg { width: 40px; height: 40px; fill: #ffdc46; stroke: #10244b; stroke-width: 1.6; }
.home-page .home-discovery-benefit-icon[data-home-theme-icon] svg { width: 46px; height: 46px; stroke-width: 2; }
.home-page .home-discovery-benefit-icon .home-icon-blue { fill: #63b8f7; }
.home-page .home-discovery-benefit-icon .home-icon-light { fill: #fff; }
.home-page .home-discovery-benefit-icon .category-custom-icon { width: 46px; height: 46px; }
.home-page .home-category-trigger.is-active .home-discovery-benefit-icon { transform: none; box-shadow: none; }
.home-page .home-category-card { margin: 24px 0 0; padding: 0 28px; }
.home-page .home-category-heading { width: 100%; justify-content: center; align-items: center; margin: 0 0 18px; padding: 0; text-align: center; scroll-margin-top: 24px; }
.home-page .home-category-heading h2 { font: 800 23px/1.2 Manrope, sans-serif; letter-spacing: -.9px; }
.home-text-button { display: inline-flex; min-height: 44px; flex-shrink: 0; align-items: center; justify-content: center; gap: 6px; padding: 5px 0; border: 0; background: transparent; color: var(--home-blue); font: 700 13px/1.2 'DM Sans', sans-serif; cursor: pointer; }
.home-text-button svg { width: 18px; height: 18px; }
.home-page .home-category-card .categories-subcategory-panel { width: 100%; margin: 22px 0 0; padding: 18px; border: 1px solid #9dbde8; border-radius: 18px; background: #fff; box-shadow: none; }
.home-page .categories-subcategory-panel::before, .home-page .categories-subcategory-panel::after { display: block; content: ''; position: absolute; left: var(--category-pointer, 50%); border: 0; clip-path: polygon(50% 0, 100% 100%, 0 100%); transform: translateX(-50%); transition: left .2s ease; }
.home-page .category-menu .categories-subcategory-panel::before { top: -12px; width: 22px; height: 12px; background: #9dbde8; }
.home-page .category-menu .categories-subcategory-panel::after { top: -10px; width: 18px; height: 10px; background: #fff; }
.home-page #homeCategoriesToggle { display: flex; width: max-content; max-width: 100%; margin: 6px 0 0 auto; }
.home-page .categories-subcategory-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.home-page .categories-subcategory-list > :last-child:nth-child(3n + 1) { grid-column: auto; }
.home-page .home-category-card .subcategory-menu-item { width: 100%; grid-template-rows: 68px auto; align-content: start; gap: 6px; padding: 0; border-radius: 12px; color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.25; }
.home-page .subcategory-menu-media, .home-page .subcategory-menu-media:has(img) { display: grid; width: 100%; height: 68px; aspect-ratio: auto; padding: 8px; overflow: hidden; place-items: center; border-radius: 13px; background: #ebf6ff !important; }
.home-page .subcategory-menu-media img { width: 48px; height: 48px; object-fit: contain; }
.home-page .home-category-card .subcategory-menu-item > span:last-of-type { width: 100%; min-width: 0; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: auto; text-wrap: balance; }
.home-page .subcategory-menu-item:hover { color: var(--home-blue); transform: none; }
.home-category-empty { grid-column: 1 / -1; padding: 14px 0; font-size: 14px; color: #53647b; }
.home-page .home-map-section { position: relative; isolation: isolate; padding: 0 28px; }
.home-page .home-map-title { color: var(--ink); font: 800 18px/1.25 Manrope, sans-serif; letter-spacing: -.4px; text-align: left; }
.home-page .home-map-profile-caption { padding: 24px 10px 10px; background: linear-gradient(transparent, #080e38eb); }
.home-page .home-map-profile-caption strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.home-page :is(.custom-cards-title, .custom-banner-title, .base-section-title) { color: var(--ink); letter-spacing: -.7px; }
.home-page #cards > .custom-cards-title { justify-content: flex-start; min-height: auto; }
.home-page .custom-cards-section { border-radius: 18px; background: #f7faff; }
.home-page .custom-cards-section.places-highlight-section { --places-section-padding: 0px; padding: 10px 0 0; background: transparent; }
.home-page .deal-grid.places-highlights { gap: 14px; padding: 4px 22px 14px; scroll-padding-inline: 22px; }
.home-page .place-highlight-display { flex-basis: clamp(180px, 24vw, 260px); }
.home-page .place-highlight-card { border-color: #dce6f3; box-shadow: 0 5px 14px #123b6014; }
.home-page .place-highlight-identity { gap: 8px; padding: 36px 12px 12px; }
.home-page .place-highlight-media { width: clamp(32px, 4vw, 48px); border-radius: 9px; }
.home-page .place-highlight-name { font-size: 15px; line-height: 1.25; letter-spacing: -.3px; }
.home-page .place-highlight-tag:not(.is-dot), .home-page .place-highlight-extra { min-height: 20px; padding: 3px 6px; font-size: 11px; }
.home-page .tourism-scroll-shell .tourism-scroll-arrow { top: 50%; bottom: auto; width: 40px; height: 40px; padding: 0 0 3px; border: 1px solid #c7dcf8; border-radius: 50%; background: #fff; box-shadow: 0 3px 12px #123b6026; color: var(--home-blue); font-size: 32px; transform: translateY(-50%); }
.home-page .tourism-scroll-arrow--previous { left: 4px; }
.home-page .tourism-scroll-arrow--next { right: 4px; }
.home-page .tourism-scroll-shell .tourism-scroll-arrow:hover:not(:disabled) { background: #e8f2ff; transform: translateY(-50%); }
.home-page .tourism-scroll-shell .tourism-scroll-arrow:focus-visible { outline-color: var(--home-blue); }
.home-page .banner-destination, .home-page a.banner-carousel-viewport { display: block; }
.home-page .site-footer { background: #fff; }

@media (min-width: 761px) {
  .home-page .home-discovery-category-entry { max-width: 780px; margin-inline: auto; padding: 0 28px; }
  .home-page .home-search-area { max-width: 820px; margin-inline: auto; padding: 0 28px; }
  .home-page .home-category-card { margin-top: 28px; }
  .home-page .categories-subcategory-list { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-page main { padding: 0 0 24px; }
  .home-page .home-content-surface { width: 100%; gap: 22px; border-radius: 0; box-shadow: none; }
  .home-page .home-content-surface > section { width: var(--content-width); margin-inline: auto; }
  body.home-page .home-content-surface > .home-discovery-section { width: 100%; margin: 0; padding-bottom: 0; }
  .home-page .home-discovery-hero { border-radius: 0; }
  .home-page .home-discovery-visual { min-height: 224px; padding: 12px 20px 32px; border-radius: 0 0 17px 17px; background: linear-gradient(90deg, #064da9ef 0%, #0756bbcc 39%, #0756bb22 85%), linear-gradient(0deg, #043c89aa 0%, #043c8940 40%, transparent 70%), var(--home-hero-image, url('brejo-city-aerial.webp')) 58% center / cover no-repeat, #0756bb; }
  .home-page .home-discovery-intro { width: 100%; }
  .home-page .home-discovery-intro h1 { max-width: 290px; font-size: clamp(36px, 10vw, 46px); line-height: .98; letter-spacing: -1.9px; }
  .home-page .home-discovery-description { max-width: 260px; margin-top: 10px; font-size: 14px; line-height: 1.35; }
  .home-search-area { margin: -24px 14px 0; }
  .home-search { gap: 10px; min-height: 50px; padding-left: 15px; }
  .home-search > svg { flex-basis: 21px; width: 21px; }
  .home-search input { font-size: 16px; letter-spacing: -.4px; }
  .home-search button { flex-basis: 49px; height: 36px; }
  .home-search-results { padding: 12px; }
  .home-search-list { grid-template-columns: minmax(0, 1fr); }
  .home-page .home-discovery-category-entry { width: 100%; margin: 0; padding: 0; }
  .home-page .home-discovery-benefits { gap: 8px; }
  .home-page .home-category-trigger { min-height: 94px; gap: 6px; padding: 10px 4px; border-radius: 14px; }
  .home-page .home-category-trigger strong { font-size: clamp(10px, 3vw, 14px); line-height: 1.05; letter-spacing: -.3px; overflow-wrap: anywhere; }
  .home-page .home-discovery-benefit-icon, .home-page .home-discovery-benefit-icon .category-custom-icon { width: 38px; height: 38px; }
  .home-page .home-discovery-benefit-icon[data-home-theme-icon] svg { width: 38px; height: 38px; }
  .home-page .home-category-card { margin: 20px 0 0; padding: 0 14px; }
  .home-page .home-category-heading { margin-bottom: 16px; }
  .home-page .home-category-heading h2 { font-size: clamp(17px, 4.7vw, 22px); letter-spacing: -.8px; }
  .home-text-button { gap: 4px; font-size: 12px; }
  .home-page .categories-subcategory-list { gap: 9px 10px; }
  .home-page .home-category-card .categories-subcategory-panel { margin-top: 20px; padding: 14px 10px; border-radius: 16px; }
  .home-page .home-category-card .subcategory-menu-item { grid-template-rows: 50px auto; font-size: 11px; letter-spacing: -.2px; }
  .home-page .subcategory-menu-media, .home-page .subcategory-menu-media:has(img) { height: 50px; border-radius: 11px; padding: 5px; }
  .home-page .subcategory-menu-media img { width: 39px; height: 39px; }
  .home-page .place-highlight-display { flex-basis: min(68%, 240px); scroll-snap-align: start; }
  .home-page .place-highlight-name { font-size: 14px; }
  .home-page .home-map-section { padding: 14px; border-radius: 18px; background: #f3f8ff; }
  .home-page .site-footer-inner { width: 100%; }
}
@media (max-width: 360px) {
  .home-page .home-discovery-benefits { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto; transition: none; }
}

/* Convite institucional permanente; a posição é controlada pelo painel. */
.home-page .home-registration-section { padding: 0 28px; }
.home-registration-banner { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: center; gap: 28px; padding: 26px 30px; overflow: hidden; border: 1px solid #f4e1a5; border-radius: 18px; background: #fff3bd; }
.home-registration-copy { min-width: 0; }
.home-registration-badge { display: inline-flex; align-items: center; min-height: 26px; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; background: #0756bb; color: #fff; font: 800 12px/1.2 Manrope, sans-serif; }
.home-page .home-registration-copy h2 { max-width: 480px; margin: 0; color: #080e38; font: 800 clamp(23px, 3vw, 32px)/1.12 Manrope, sans-serif; letter-spacing: -.9px; text-wrap: balance; }
.home-registration-copy p { max-width: 440px; margin: 10px 0 0; color: #314b6b; font-size: 15px; line-height: 1.5; }
.home-registration-art { width: 100%; }
.home-page .home-registration-art svg { display: block; width: 100%; height: auto; fill: none; stroke: none; }
@media (max-width: 760px) {
  .home-page .home-registration-section { padding: 0 14px; }
  .home-registration-banner { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; padding: 18px 16px; border-radius: 15px; }
  .home-registration-badge { min-height: 24px; margin-bottom: 10px; padding: 5px 9px; font-size: 11px; }
  .home-page .home-registration-copy h2 { font-size: clamp(20px, 5.4vw, 26px); letter-spacing: -.6px; }
  .home-registration-copy p { margin-top: 8px; font-size: 13px; }
}
