/* =========================================================
   Município Theme — Main Stylesheet
   ========================================================= */

/* ----- Custom Properties ----- */
:root {
    --c-primary:      #B2A386;
    --c-primary-dark: #6b2d2c;
    --c-accent:       #B2A386;
    --c-accent-hover: #6b2d2c;
    --c-light:        #f4f6f8;
    --c-white:        #ffffff;
    --c-text:         #1e2530;
    --c-muted:        #64748b;
    --c-border:       #dde3ea;
    --c-footer-bg:    #B2A386;
    --c-brand:        #B2A386;

    --container-max:  1240px;
    --header-height:  72px;
    --gap:            2rem;
    --radius:         0;
    --transition:     0.25s ease;
    --c-highlight:    #B2A386;

    --font-body:      'Inter', system-ui, sans-serif;
    --font-display:   'Poppins', system-ui, sans-serif;
}

/* ----- Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text);
    background: var(--c-white);
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

p {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}
/* keep tightly-styled p elements from being justified */
.slide-caption p,
.footer-copy,
.muted,
.btn,
.mb-pin-zoom,
.related-card p,
.testimonial-quote p,
.team-row-name + p,
[data-placeholder] p { text-align: inherit; }

/* Section-TOC is hidden on interior pages (the menu provides the same anchors) */
.section-toc { display: none; }

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: 1.5rem;
    overflow: hidden;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: var(--c-white);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    max-height: 48px;
    width: auto;
}

.site-name-link {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Inline brand logo (fallback when no Custom Logo is set) */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    line-height: 1;
}
.site-brand-mark {
    width: 30px;
    height: 44px;
    color: var(--c-primary);
    flex-shrink: 0;
    display: block;
}
.site-brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1;
    color: var(--c-primary);
    letter-spacing: -0.01em;
}
.brand-word { font-weight: 700; }
.brand-word--italic {
    font-style: italic;
    font-weight: 600;
    color: var(--c-accent);
}
@media (max-width: 540px) {
    .site-brand-mark { width: 24px; height: 36px; }
    .site-brand-text { font-size: 1.1rem; }
}

/* Header brand is hidden until the user scrolls past the page banner */
.site-header .site-brand,
.site-header .custom-logo-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
body.has-scrolled .site-header .site-brand,
body.has-scrolled .site-header .custom-logo-link {
    opacity: 1;
    pointer-events: auto;
}

/* Brand logo placed over each banner (injected by JS) */
.banner-logo {
    position: absolute;
    top: 120px;
    left: 20px;
    z-index: 10;
    color: #ffffff;
}
.banner-logo .site-brand-mark { color: #ffffff; }
.banner-logo .site-brand-text  { color: #ffffff; }
.banner-logo .brand-word--italic { color: rgba(255, 255, 255, 0.85); }

/* Navigation */
.main-nav {
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-list li a {
    position: relative;
    display: block;
    padding: 0.45rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text);
    transition: color var(--transition);
    white-space: nowrap;
    background: transparent;
}

/* Animated underline on hover/active */
.nav-list > li > a::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.2rem;
    height: 1px;
    background: var(--c-highlight);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--transition);
    will-change: transform;
    backface-visibility: hidden;
}
.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a,
.nav-list > li.current_page_item > a,
.nav-list > li.current-menu-ancestor > a {
    color: var(--c-highlight);
    background: transparent;
}
.nav-list > li > a:hover::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current_page_item > a::after,
.nav-list > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.lang-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-list li a {
    display: block;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-muted);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.lang-list li a:hover,
.lang-list li.current-lang a {
    color: var(--c-white);
    background: var(--c-primary);
    border-color: var(--c-primary);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.nav-toggle:hover { background: var(--c-light); }

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--c-primary-dark);
}

.hero-carousel--fixed {
    height: 500px;
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}
.hero-carousel--fixed .carousel-track { height: 500px; }

.carousel-track {
    position: relative;
    height: clamp(380px, 65vh, 700px);
}

/* Decorative bottom-left SVG overlay is now applied to
   .hero-carousel--fixed via ::after (rule grouped with .ponto-banner / .page-header below) */

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 14, 14, 0.25);
}

.slide-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.slide-caption p {
    color: var(--c-white);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 1.25rem;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 10;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--c-white);
    cursor: pointer;
    transition: background var(--transition);
}

.carousel-btn:hover { background: rgba(255, 255, 255, 0.35); }
.carousel-btn svg { width: 18px; height: 18px; }

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.carousel-dot.is-active,
.carousel-dot:hover {
    background: var(--c-white);
    transform: scale(1.3);
}

/* =========================================================
   HERO QUOTE
   ========================================================= */
.hero-quote {
    padding: 5rem 0;
    background: var(--c-white);
    text-align: center;
    border-bottom: 1px solid var(--c-border);
}

.quote-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-inline: auto;
}

.quote-body {
    max-width: 680px;
    margin-inline: auto;
    position: relative;
}

.quote-body::before {
    content: '\201C';
    display: block;
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    color: var(--c-accent);
    opacity: 0.35;
    margin-bottom: -1.5rem;
}

.quote-body p {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: var(--c-muted);
}

/* =========================================================
   MAP SECTION
   ========================================================= */
.map-section {
    padding: 4rem 0;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 2rem;
    text-align: left;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-white);
    min-height: 500px;
}

.map-wrapper > * {
    width: 100%;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    color: var(--c-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 2rem;
}

/* =========================================================
   GENERIC PAGE
   ========================================================= */
.main-content { padding: 0 0 4rem; }
.main-content--landing { padding-bottom: 0; }

.page-layout {
    max-width: 800px;
}

.page-header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--c-border);
}

.page-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1.25;
}

.page-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--c-text);
}

.page-content h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; color: var(--c-primary); }
.page-content h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.5rem; color: var(--c-primary); }
.page-content p  { margin-bottom: 1.25rem; }
.page-content a  { color: var(--c-accent); text-decoration: underline; }
.page-content a:hover { color: var(--c-accent-hover); }
.page-content ul, .page-content ol { padding-left: 0; margin-bottom: 1.25rem; }
.page-content ul { list-style: disc; list-style-position: inside; }
.page-content ol { list-style: decimal; list-style-position: inside; }
/* Saber mais inside page-content keeps its custom layout, no bullets */
.page-content .ponto-saber-mais-icons,
.page-content .ponto-saber-mais-icons li {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.page-content li { margin-bottom: 0.35rem; }

/* =========================================================
   POST GRID (index / archive)
   ========================================================= */
.archive-header {
    margin-bottom: 2.5rem;
}

.archive-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--gap);
    margin-bottom: 3rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-white);
    transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.post-card-thumb img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img { transform: scale(1.04); }

.post-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem;
    gap: 0.75rem;
}

.post-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
}

.post-card-title a { color: var(--c-text); transition: color var(--transition); }
.post-card-title a:hover { color: var(--c-accent); }

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--c-muted);
    flex: 1;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid transparent;
    align-self: flex-start;
}

.btn-primary {
    background: var(--c-accent);
    color: var(--c-white);
}

.btn-primary:hover {
    background: var(--c-accent-hover);
}

.btn-outline {
    background: transparent;
    color: var(--c-primary);
    border-color: var(--c-primary);
}

.btn-outline:hover {
    background: var(--c-primary);
    color: var(--c-white);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--c-border);
    transition: all var(--transition);
}

.nav-links a:hover { background: var(--c-light); }
.nav-links .current { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }

/* =========================================================
   FOOTER
   ========================================================= */

.custom-logo {
    width: 70px;
    height: 70px;
}
  
.site-footer {
    background: var(--c-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding-top: 3.5rem;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    flex-wrap: wrap;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    flex: 1;
    width: 100px;
}

.footer-brand img { height: 100px; filter: brightness(0) invert(1); opacity: 0.85; }

.footer-site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-white);
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.65;
}

.footer-nav { flex: 2; }

.footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
}

.footer-nav-list li a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-nav-list li a:hover { color: var(--c-white); }

.footer-bottom {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .header-inner {
        grid-template-columns: auto auto 1fr;
        grid-template-areas: "logo toggle lang";
    }

    .site-logo  { grid-area: logo; }
    .nav-toggle { grid-area: toggle; display: flex; }
    .lang-selector { grid-area: lang; justify-self: end; }

    .main-nav {
        display: none;
        position: fixed;
        inset: var(--header-height) 0 0 0;
        background: var(--c-white);
        overflow-y: auto;
        padding: 1.5rem;
        border-top: 1px solid var(--c-border);
        z-index: 99;
    }

    .main-nav.is-open { display: flex; flex-direction: column; align-items: flex-start; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }

    .nav-list li { width: 100%; }
    .nav-list li a { font-size: 1rem; padding: 0.75rem 1rem; width: 100%; }
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; gap: 2rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .hero-quote { padding: 3.5rem 0; }
    .map-section { padding: 2.5rem 0; }
    .main-content { padding: 2rem 0 3rem; }
}

/* =========================================================
   SHARED — chips, section headings, placeholders, muted
   ========================================================= */
.chip {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    margin: 0 0.25rem 0.4rem 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.06);
    color: var(--c-text);
}
.chip-link { transition: background var(--transition), color var(--transition); }
.chip-link:hover { background: var(--c-primary); color: var(--c-white); }
.chip-area { background: rgba(46, 134, 193, 0.18); color: var(--c-accent-hover); }
.chip-tema { background: rgba(27, 61, 111, 0.12); color: var(--c-primary); }

.section-heading-left {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-primary);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--c-border);
}
.section-lead { color: var(--c-muted); margin-bottom: 1.25rem; }
.muted { color: var(--c-muted); }

.page-layout-wide { max-width: 100%; }
.page-intro { margin-bottom: 2.5rem; }

/* placeholder image squares (no real img) */
[data-placeholder] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-brand);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}
[data-placeholder]::before { content: attr(data-placeholder); }

/* =========================================================
   PONTO — single page
   ========================================================= */
.ponto-banner {
    position: relative;
    overflow: hidden;
    height: 500px;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    background-color: var(--c-brand);
    background-image: none !important;
}
.ponto-banner-overlay {
    position: absolute; inset: 0;
    background: transparent;
    pointer-events: none;
}

.ponto-breadcrumb {
    margin: 2rem 0 1rem;
}
.ponto-breadcrumb a {
    display: inline-block;
    padding: 0.4rem 0;
    color: var(--c-muted);
    font-size: 0.85rem;
    transition: color var(--transition);
}
.ponto-breadcrumb a:hover { color: var(--c-brand); }

.ponto-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--c-text);
    margin: 1.5rem 0 1.5rem;
    max-width: 900px;
    text-align: left;
}

.ponto-chips .chip {
    background: rgba(255,255,255,0.9);
    color: var(--c-primary);
    font-weight: 700;
}
.ponto-chips .chip-tema { background: rgba(255,255,255,0.75); }

/* Categoria icon + name above the ponto title (fragment-driven) */
.ponto-cat-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.5rem 0 0.5rem;
}
.ponto-cat-badge {
    display: block;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    pointer-events: none;
}
.ponto-cat-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* When a #categoria fragment is active, swap title roles:
   the categoria name becomes the H1, the ponto title becomes the subtitle. */
body.has-cat-fragment .ponto-cat-head {
    gap: 1rem;
    margin: 1.5rem 0 0;
    align-items: center;
}
body.has-cat-fragment .ponto-cat-badge {
    width: 56px;
    height: 56px;
}
body.has-cat-fragment .ponto-cat-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--cat-color, var(--c-brand));
}
body.has-cat-fragment .ponto-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--c-muted);
    margin: 0.25rem 0 1.5rem;
    line-height: 1.4;
}

.ponto-body { padding-top: 3.5rem; padding-bottom: 4rem; }

.ponto-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
    margin-top: 30px;
}
@media (max-width: 900px) {
    .ponto-body-grid { grid-template-columns: 1fr; }
}

.ponto-empty { color: var(--c-muted); }

.ponto-meta-card {
    background: var(--c-light);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.ponto-meta-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    margin-bottom: 0.75rem;
}
.ponto-coords { font-size: 0.9rem; margin-bottom: 1rem; }
.ponto-meta-card .btn { display: block; margin-bottom: 0.5rem; text-align: center; width: 100%; }

.ponto-share { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ponto-share a {
    padding: 0.4rem 0.9rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.ponto-share a:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

.ponto-minimap-section { margin-top: 3rem; }
.ponto-minimap-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}
.ponto-minimap-link::after {
    /* Transparent overlay so the entire map area is the click target,
       even over Mapbox's own canvas / marker. */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}
.ponto-minimap-link:hover #ponto-minimap,
.ponto-minimap-link:focus-visible #ponto-minimap {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}
#ponto-minimap {
    width: 100%; height: 400px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.ponto-related {
    margin-top: 3rem;
    padding: 0;
}
.ponto-morada, .ponto-autor { font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.55; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.related-thumb {
    height: 140px;
    background-color: var(--c-light);
    background-size: cover;
    background-position: center;
}
.related-body { padding: 1rem; }
.related-area {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-accent);
    margin-bottom: 0.35rem;
}
.related-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text);
    line-height: 1.35;
}

/* =========================================================
   TEAM (Equipa)
   ========================================================= */
.team-section { margin-top: 3.5rem; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.75rem;
}
.team-card {
    text-align: center;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.team-photo {
    width: 120px; height: 120px;
    border-radius: 50%;
    background-color: var(--c-light);
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem;
    border: 3px solid var(--c-white);
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.team-photo[data-placeholder] {
    font-size: 2.2rem;
    background: var(--c-brand);
    color: #fff;
}
.team-name { font-size: 1.05rem; font-weight: 700; color: var(--c-primary); margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.team-bio { font-size: 0.9rem; color: var(--c-text); line-height: 1.55; }

/* =========================================================
   SECTION NAV / TOC
   ========================================================= */
.section-toc {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: var(--c-light);
    border-radius: var(--radius);
    margin-bottom: 2.5rem;
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    backdrop-filter: blur(8px);
}
.section-toc a {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-primary);
    border-radius: var(--radius);
    transition: background var(--transition);
}
.section-toc a:hover { background: rgba(27, 61, 111, 0.1); }

.page-section { padding-top: 1rem; padding-bottom: 2rem; scroll-margin-top: calc(var(--header-height) + 60px); }

/* placeholder cards (events, media, podcasts) */
.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.placeholder-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex; flex-direction: column;
}
.placeholder-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-3px); }
.placeholder-img {
    height: 160px;
    font-size: 3rem;
}
.placeholder-card h3 {
    font-size: 1.05rem;
    padding: 1rem 1.25rem 0.25rem;
    color: var(--c-primary);
    line-height: 1.35;
}
.placeholder-card .meta {
    padding: 0 1.25rem;
    font-size: 0.78rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}
.placeholder-card p { padding: 0 1.25rem 1.25rem; font-size: 0.9rem; color: var(--c-text); flex: 1; }
.placeholder-card .btn { margin: 0 1.25rem 1.25rem; }

/* publications */
.pub-list { list-style: none; padding: 0; }
.pub-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--c-border);
}
.pub-year { font-family: var(--font-display); font-size: 1.5rem; color: var(--c-accent); font-weight: 700; }
.pub-title { font-size: 1rem; font-weight: 600; color: var(--c-text); margin-bottom: 0.25rem; }
.pub-cite { font-size: 0.85rem; color: var(--c-muted); font-style: italic; }

/* testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.testimonial {
    background: var(--c-light);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 0;
}
.testimonial-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--c-text);
    margin: 0 0 1rem;
}
.testimonial-quote p { margin-bottom: 0.5rem; }
.testimonial-author {
    display: flex; align-items: center; gap: 0.85rem;
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
}
.testimonial-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background-color: var(--c-border);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}
.testimonial-name { font-weight: 600; color: var(--c-primary); font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--c-muted); }

/* media */
.placeholder-card--media .placeholder-img { font-size: 4rem; }

/* logos */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
    padding: 1rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--c-muted);
    transition: all var(--transition);
}
.logo-item:hover { color: var(--c-primary); border-color: var(--c-primary); }

/* educacao — feature block */
.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (max-width: 800px) { .feature-block { grid-template-columns: 1fr; } }
.feature-img {
    height: 320px;
    border-radius: var(--radius);
    font-size: 4rem;
}
.feature-text ul { padding-left: 1.5rem; list-style: disc; margin-top: 1rem; }
.feature-text ul li { margin-bottom: 0.4rem; }

/* documentos */
.doc-list { list-style: none; padding: 0; }
.doc-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}
.doc-icon { font-size: 2rem; text-align: center; }
.doc-title { font-weight: 600; color: var(--c-text); }
.doc-sub { font-size: 0.85rem; color: var(--c-muted); }

.bib-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 760px) { .bib-cols { grid-template-columns: 1fr; } }
.bib-list { padding-left: 1.5rem; list-style: square; }
.bib-list li { margin-bottom: 0.6rem; line-height: 1.55; color: var(--c-text); }
.bib-cols h3 { color: var(--c-primary); margin-bottom: 0.8rem; font-size: 1.15rem; }

/* contactos */
.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.channel-list { list-style: none; padding: 0; }
.channel-list li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--c-border);
}
.channel-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--c-muted);
    font-weight: 600;
}
.channel-list a { color: var(--c-accent); }
.channel-list a:hover { color: var(--c-accent-hover); }

.contact-form-wrap { }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 540px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--c-text);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--c-text);
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(46, 134, 193, 0.18);
}
.contact-form .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.contact-form .btn { align-self: flex-start; padding: 0.75rem 1.75rem; }

.form-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.form-alert--success { background: #e6f4ea; color: #1e6b3c; border: 1px solid #b6dbc3; }
.form-alert--error   { background: #fdecec; color: #8a1f1f; border: 1px solid #f1baba; }

/* =========================================================
   REBRAND — square all corners, keep circles
   ========================================================= */
*, *::before, *::after {  }
/* keep things that are intentionally circular */
.carousel-dot,
.cat-dot,
.team-photo,
.testimonial-avatar,
.mb-marker--dot { border-radius: 50% !important; }

/* =========================================================
   LANDING — Financiamento section
   ========================================================= */
.landing-financiamento {
    padding: 4rem 0 5rem;
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
}
.landing-financiamento .container {
    display: flex;
    justify-content: center;
}
.landing-financiamento img {
    max-width: 900px;
    width: 100%;
    height: auto;
}

/* =========================================================
   FOOTER — logo snaps left, menu visible, no tagline
   ========================================================= */
.footer-inner {
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    flex: 0 0 auto;
    min-width: 0;
}
.footer-brand .site-brand,
.footer-brand .site-brand--footer {
    color: var(--c-white);
}
.site-brand--footer .site-brand-mark { color: var(--c-white); }
.site-brand--footer .site-brand-text { color: var(--c-white); }
.site-brand--footer .brand-word--italic { color: rgba(255, 255, 255, 0.78); }

.footer-nav {
    flex: 0 1 auto;
}
.footer-nav-list { justify-content: flex-end; }

/* page-specific tweaks */
.page-template-page-projeto .main-content { padding-bottom: 6rem; }

/* =========================================================
   FOOTER (rebranded: white bg, financiamento centered + paragraph)
   ========================================================= */
.site-footer {
    background: var(--c-white) !important;
    color: var(--c-text) !important;
    padding: 0 0 2rem;
    border-top: none;
}
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    border-top: 1px solid var(--c-border);
    padding-top: 3rem;
}
.footer-inner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.footer-inner-top .footer-financiamento { margin-left: auto; }
.footer-copyright {
    font-size: 0.75rem;
    color: var(--c-muted);
    text-align: center;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
}
.footer-inner-top .site-brand {
    color: var(--c-brand);
    flex-shrink: 0;
    gap: 0.4rem;
}
.footer-inner-top .site-brand-mark {
    color: var(--c-brand);
    width: 14px;
    height: 20px;
}
.footer-inner-top .site-brand-text  {
    color: var(--c-brand);
    font-size: 0.7rem;
    gap: 0.15rem;
    letter-spacing: 0;
}
.footer-inner-top .site-brand-text .brand-word { font-weight: 700; }
.footer-financiamento {
    display: block;
    flex: 1;
    max-width: 700px;
    height: auto;
}
@media (max-width: 640px) {
    .footer-inner-top { gap: 1.5rem; justify-content: center; }
    .footer-financiamento { max-width: 100%; }
}
.footer-disclaimer {
    max-width: fit-content;
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--c-muted);
    text-align: justify;
    hyphens: auto;
}
.footer-disclaimer a {
    color: var(--c-brand);
    word-break: break-all;
}

/* =========================================================
   CATEGORIAS PAGE
   ========================================================= */
.categorias-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}
.categoria-item {
    width: 100%;
}
.categoria-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--c-border);
    border-left: 6px solid var(--cat-color, var(--c-border));
    transition: transform var(--transition), box-shadow var(--transition);
    color: var(--c-text);
}
.categoria-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.categoria-item-icon {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    max-width: none;
}
.categoria-item-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cat-color, var(--c-text));
}

/* =========================================================
   PONTO end-of-page block
   (author initials, Saber mais, Bibliografia)
   ========================================================= */
.ponto-end {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.ponto-initials {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--c-muted);
    align-self: flex-end;
}
.ponto-saber-mais .section-heading-left { margin-top: 0; }
.ponto-saber-mais-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ponto-saber-mais-icons li { margin: 0; }
.ponto-saber-mais-icons a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--cat-color, var(--c-border));
    background: #fff;
    color: var(--cat-color, var(--c-text));
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background var(--transition);
}
.ponto-saber-mais-icons a:hover { background: var(--c-light); }
.ponto-saber-mais-icons img {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
    max-width: none;
}

.ponto-bibliografia .section-heading-left { margin-top: 0; }
.ponto-bibliografia .page-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--c-text);
}
.ponto-bibliografia .page-content p { margin-bottom: 0.6rem; }

/* =========================================================
   FIX — let dropdowns escape the .container overflow:hidden clip
   ========================================================= */
.site-header,
.site-header .container,
.site-header .header-inner,
.site-header .main-nav,
.site-header .nav-list,
.site-footer,
.site-footer .container,
.footer-inner,
.footer-nav,
.footer-nav-list {
    overflow: visible !important;
}

/* =========================================================
   Map chips — show categoria icon next to the name
   ========================================================= */
.mb-chip {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}
.mb-chip-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    flex-shrink: 0;
    object-fit: contain;
}

/* =========================================================
   PROJETO — team as accordion, one per row, full width
   ========================================================= */
.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}
.team-row {
    border: 1px solid var(--c-border);
    border-left: 6px solid var(--c-highlight);
    background: var(--c-white);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.team-row[open] { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }

.team-row-head {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    user-select: none;
}
.team-row-head::-webkit-details-marker { display: none; }
.team-row-head::marker { display: none; content: ''; }

.team-row-photo {
    width: 96px;
    height: 96px;
    background-color: var(--c-light);
    background-size: cover;
    background-position: center;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.team-row-photo[data-placeholder] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-brand);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
}
.team-row-meta { min-width: 0; }
.team-row-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-primary);
    margin: 0;
    line-height: 1.25;
}
.team-row-role {
    font-size: 0.78rem;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.15rem;
}
.team-row-chev {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--c-highlight);
    transition: transform var(--transition);
}
.team-row[open] .team-row-chev { transform: rotate(180deg); }

.team-row-bio {
    padding: 0 1.25rem 1.25rem;
    color: var(--c-text);
    line-height: 1.75;
    border-top: 1px solid var(--c-border);
    padding-top: 1rem;
}
.team-row-bio p { margin-bottom: 0.75rem; }
.team-row-bio p:last-child { margin-bottom: 0; }

/* =========================================================
   SHARED BANNER OVERLAY (the white SVG shape)
   Applied to .ponto-banner and .page-header
   ========================================================= */
:root {
    --hero-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='338' height='500' viewBox='0 0 338 500'%3E%3Cpath fill='white' d='M230.805 0C232.242 3.72256 232.695 7.79935 231.814 11.7402C235.451 12.7804 238.377 15.9807 239.089 19.6611C239.8 23.4216 238.298 27.5029 235.373 29.8232C238.694 29.7434 242.094 31.7438 243.675 34.7842C245.256 37.7445 244.544 41.0249 242.567 43.8252C261.78 68.3089 281.151 93.1926 293.801 121.757C306.451 150.321 311.827 183.447 301.944 213.132C297.833 225.293 291.192 237.535 293.01 250.257C293.879 256.418 296.647 262.099 299.73 267.46C306.135 278.742 313.646 289.223 322.264 298.824C328.352 305.545 335.151 312.267 337.286 321.068C339.421 329.63 336.574 338.911 331.355 345.952C326.137 353.073 318.705 358.194 311.036 362.354C310.878 374.196 328.035 380.277 330.803 391.719C331.91 396.199 331.039 400.921 329.379 405.241C325.742 414.763 318.468 422.843 309.376 427.244C313.883 433.485 317.836 440.527 318.231 448.288C318.627 456.049 314.278 464.45 306.925 466.45C302.656 467.57 297.912 466.61 294.117 468.771C291.034 470.451 289.294 473.811 288.267 477.172C286.129 484.298 286.723 492.436 286.294 500H0V0H230.805Z'/%3E%3C/svg%3E");
}

/* ----- Promote .page-header to a real banner (matches ponto-banner) ----- */
.page-header {
    position: relative;
    overflow: hidden;
    height: 500px;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto 2rem;
    padding: 0;
    border: none;
    background: var(--c-brand);
}
/* Page title now lives outside the banner, in normal content flow */
.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--c-text);
    text-align: left;
    margin: 1.5rem 0 2rem;
    max-width: var(--container-max);
}

/* ----- SVG overlay (bottom-left flush) on banners + landing carousel ----- */
.ponto-banner { overflow: hidden; }
.ponto-banner::after,
.page-header::after,
.hero-carousel--fixed::after {
    content: '';
    position: absolute;
    left: -150px;
    bottom: 0;
    width: 338px;
    height: 500px;
    background: var(--hero-shape) no-repeat bottom left / 338px 500px;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.18));
}

/* keep ponto title and chips clear of the SVG */
@media (min-width: 761px) {
    .ponto-banner-overlay .container > * { padding-left: 358px; }
}

/* mobile: hide the decorative overlay so content stays readable */
@media (max-width: 760px) {
    .ponto-banner::after,
    .page-header::after,
    .hero-carousel--fixed::after { display: none; }
    .page-header { height: 280px; }
}

/* =========================================================
   NAV — Categorias dropdown
   ========================================================= */
.nav-list > li,
.footer-nav-list > li { position: relative; }

.nav-list .sub-menu,
.footer-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    display: none;
    position: absolute;
    min-width: 240px;
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    z-index: 200;
}
.nav-list .sub-menu { top: 100%; left: 0; }
/* In the footer, the dropdown should open upwards (footer bg is dark) */
.footer-nav-list .sub-menu { bottom: 100%; left: 0; }

.nav-list > li:hover > .sub-menu,
.nav-list > li:focus-within > .sub-menu,
.footer-nav-list > li:hover > .sub-menu,
.footer-nav-list > li:focus-within > .sub-menu { display: block; }

.nav-list .sub-menu li,
.footer-nav-list .sub-menu li { width: 100%; }

.nav-list .sub-menu li a,
.footer-nav-list .sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--c-text);
    white-space: nowrap;
    background: transparent;
}
.nav-list .sub-menu li a:hover,
.footer-nav-list .sub-menu li a:hover {
    background: var(--c-light);
    color: var(--c-primary);
}

.cat-dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 999px !important;
    background: #000;
    flex-shrink: 0;
}

/* Caret on the Categorias parent menu item (injected by the walker filter) */
.cat-caret {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.7em;
    transform: translateY(-1px);
    pointer-events: none;
}
@media (max-width: 900px) {
    .cat-caret { display: none; }
}

/* term archive page — title block in body */
.term-title-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 1.5rem;
}
.term-eyebrow { display: none; }
.term-title-wrap .page-title {
    margin: 0;
    text-align: left;
    color: var(--cat-color, var(--c-text));
}
.term-icon {
    display: block;
    width: 56px;
    height: 56px;
    max-width: none;
    flex-shrink: 0;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 900px) {
    .nav-list .sub-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        min-width: 0;
        background: transparent;
    }
}

/* =========================================================
   Lightbox (ponto gallery images)
   ========================================================= */
.ponto-content a.lb-trigger { cursor: zoom-in; }

body.lb-open { overflow: hidden; }

.lb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 5rem;
    box-sizing: border-box;
}
.lb-overlay[hidden] { display: none; }

.lb-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.lb-img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 7rem);
    width: auto;
    height: auto;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.lb-caption {
    color: #fff;
    font-size: 0.95rem;
    text-align: center;
    max-width: 60ch;
    line-height: 1.4;
    opacity: 0.9;
}

.lb-overlay button {
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 0;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.lb-overlay button:hover,
.lb-overlay button:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}
.lb-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lb-prev  { top: 50%; left: 1rem;  transform: translateY(-50%); }
.lb-next  { top: 50%; right: 1rem; transform: translateY(-50%); }

@media (max-width: 720px) {
    .lb-overlay { padding: 3rem 0.75rem; }
    .lb-prev    { left: 0.5rem; width: 40px; height: 40px; }
    .lb-next    { right: 0.5rem; width: 40px; height: 40px; }
    .lb-close   { top: 0.5rem; right: 0.5rem; width: 40px; height: 40px; }
}
