/* Pyweber: {{placeholders}} soltos entre tags invertem a ordem no HTML final */
.pw-slot {
    display: contents;
}

:root {
    --site-nav-height: 4.5rem;
}

/* fixed: sticky falha na homepage por causa de overflow-x no body (index.css) */
body:has(.site-nav) {
    padding-top: var(--site-nav-height);
}

body:has(.site-nav) [id] {
    scroll-margin-top: calc(var(--site-nav-height) + 0.5rem);
}

.site-nav {
    background: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
}

.site-nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
}

.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}

.site-nav-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    border-radius: 9999px;
    border: 2px solid #C8102E;
    flex-shrink: 0;
}

.site-nav-brand-title {
    color: #C8102E;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
}

.site-nav-brand-sub {
    color: #1A5C4A;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.2;
}

.site-nav-menu {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    flex-wrap: nowrap;
}

@media (min-width: 1024px) {
    .site-nav-menu { display: flex; }
}

@media (min-width: 1280px) {
    .site-nav-menu {
        gap: 0.85rem;
        font-size: 0.875rem;
    }
}

.site-nav-link {
    color: #374151;
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.site-nav-link:hover,
.site-nav-link--active {
    color: #C8102E;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.site-nav-cta {
    background: #C8102E;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.15s;
    white-space: nowrap;
}

.site-nav-cta:hover { background: #991b1b; }

.site-nav-cta--desktop { display: none; }

@media (min-width: 1024px) {
    .site-nav-cta--desktop { display: inline-block; }
}

.site-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    color: #374151;
    cursor: pointer;
}

.site-nav-toggle:hover,
.site-nav-toggle[aria-expanded="true"] {
    border-color: #C8102E;
    color: #C8102E;
    background: #fff5f6;
}

@media (min-width: 1024px) {
    .site-nav-toggle { display: none; }
}

.site-nav-toggle-icon--close { display: none; }

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon--open { display: none; }

.site-nav-toggle[aria-expanded="true"] .site-nav-toggle-icon--close { display: inline; }

.site-nav--mobile-open .site-nav-menu,
.site-nav--mobile-open .site-nav-cta--desktop {
    display: none !important;
}

.site-mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 60;
    border-top: 1px solid #f3f4f6;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    max-height: calc(100dvh - var(--site-nav-height));
    flex-direction: column;
}

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

@media (min-width: 1024px) {
    .site-mobile-nav,
    .site-mobile-nav.open {
        display: none !important;
    }
}

.site-mobile-nav-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.5rem 1.25rem 0.25rem;
    flex: 1;
    min-height: 0;
}

.site-mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-mobile-link {
    display: block;
    padding: 0.7rem 0.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
}

.site-mobile-link:hover,
.site-mobile-link.site-nav-link--active {
    color: #C8102E;
}

.site-mobile-cta {
    display: block;
    flex-shrink: 0;
    margin: 0.75rem 1.25rem 1rem;
    text-align: center;
    background: #C8102E;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.7rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
}

body.site-nav-open {
    overflow: hidden;
}

.site-nav-more {
    position: relative;
    list-style: none;
}

.site-nav-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.site-nav-more-btn:hover,
.site-nav-more-btn--active,
.site-nav-more-btn[aria-expanded="true"] {
    color: #C8102E;
}

.site-nav-more-caret {
    font-size: 0.65rem;
    transition: transform 0.15s;
}

.site-nav-more-btn[aria-expanded="true"] .site-nav-more-caret {
    transform: rotate(180deg);
}

.site-nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 11rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.65rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    z-index: 70;
}

.site-nav-more-menu.open {
    display: block;
}

.site-nav-more-link {
    display: block;
    padding: 0.55rem 1rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-nav-more-link:hover,
.site-nav-more-link.site-nav-link--active {
    color: #C8102E;
    background: #fff5f5;
}

.site-footer {
    background: #111827;
    color: #fff;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.site-footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.site-footer-logo {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    border: 1px solid #fbbf24;
}

.site-footer-name {
    font-weight: 700;
    font-size: 0.875rem;
}

.site-footer-name--accent { color: #fbbf24; }

.site-footer-tagline {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.site-footer-heading {
    font-weight: 700;
    color: #fbbf24;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.site-footer-links,
.site-footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: #9ca3af;
}

.site-footer-links li,
.site-footer-contact li {
    margin-bottom: 0.5rem;
}

.site-footer-links a,
.site-footer-contact a {
    color: #9ca3af;
    text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-contact a:hover { color: #fbbf24; }

.site-footer-contact li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.site-footer-contact i {
    color: #fbbf24;
    margin-top: 0.15rem;
}

.site-footer-bottom {
    max-width: 80rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (min-width: 768px) {
    .site-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.site-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.site-footer-legal a {
    color: #6b7280;
    text-decoration: none;
}

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

.site-breadcrumb {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
}

.site-breadcrumb a {
    color: #C8102E;
    text-decoration: none;
    font-weight: 600;
}

.site-breadcrumb a:hover { text-decoration: underline; }

.site-breadcrumb span { margin: 0 0.35rem; }

.public-page-main {
    min-height: 50vh;
}
