:root {
    --primary: #d66a28;
    --primary-dark: #b5551e;
    --dark: #12100e;
    --light: #f8f6f4;
    --gray: #6b6b6b;
    --radius: 14px;
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark);
    background: #fff;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
    font-weight: 600;
}

.text-primary {
    color: var(--primary) !important;
}

.section {
    padding: 5rem 0;
}

.section-title {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title .eyebrow {
    display: inline-block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .5rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0;
}

.page-content {
    max-width: 920px;
    margin: 0 auto;
}

.intro-text {
    margin-bottom: 3rem;
}

.intro-text .hl {
    color: var(--primary);
    font-weight: 700;
}

.intro-callout {
    border-left: 4px solid var(--primary);
    background: rgba(214, 106, 40, .06);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.75rem;
}

.section-title.text-start {
    margin-bottom: 1.25rem;
}

/* Topbar */
.topbar {
    background: var(--dark);
    color: #d8d4d0;
    font-size: .85rem;
}

.topbar a {
    color: #d8d4d0;
}

.topbar a:hover {
    color: #fff;
}

.a11y-controls {
    display: flex;
    gap: .35rem;
}

.a11y-controls button {
    background: transparent;
    border: 1px solid #4a4744;
    color: #d8d4d0;
    border-radius: 6px;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    padding: .35rem .5rem;
    cursor: pointer;
}

.a11y-controls button:hover {
    background: #4a4744;
    color: #fff;
}

.a11y-controls-mobile button {
    color: var(--dark);
    border-color: #ccc;
}

.a11y-controls-mobile button:hover {
    background: var(--light);
}

.idioma-toggle-mobile {
    color: var(--dark) !important;
}

.topbar .dropdown-menu {
    z-index: 1030;
    background: var(--dark);
    border: 1px solid #3a3733;
}

.topbar .dropdown-menu .dropdown-item {
    color: #e8e6e3;
}

.topbar .dropdown-menu .dropdown-item:hover,
.topbar .dropdown-menu .dropdown-item:focus {
    background: #2a2825;
    color: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
}

.topbar .social-icon {
    background: var(--primary);
    color: var(--dark);
    margin-left: .4rem;
    transition: background .15s ease;
}

.topbar .social-icon:hover {
    background: var(--primary-dark);
}

/* Navbar */
.site-navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.site-navbar .navbar-brand img {
    height: 52px;
}

.site-navbar .nav-link {
    font-weight: 600;
    color: var(--dark);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--primary);
}

.site-navbar .dropdown-menu {
    border: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    border-radius: var(--radius);
    padding: .5rem;
}

.site-navbar .dropdown-toggle::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: .45em;
    vertical-align: 1px;
    content: "";
    border: 0;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.site-navbar .dropdown-item {
    border-radius: 8px;
    padding: .55rem .9rem;
    border-left: 3px solid transparent;
}

.site-navbar .dropdown-item:hover {
    background: var(--light);
    color: var(--dark);
    font-weight: 700;
    border-left-color: var(--primary);
}

@media (max-width: 991.98px) {
    .site-navbar {
        position: relative;
    }

    .site-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 100%);
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 16px 30px rgba(0, 0, 0, .15);
        padding: 0 1rem 1rem;
    }
}

.mega-menu {
    width: 460px;
    max-width: 90vw;
    padding: 1.5rem;
}

.mega-menu.show {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 1.5rem;
}

.mega-menu .mega-links {
    display: flex;
    flex-direction: column;
}

.mega-menu .mega-links .dropdown-item {
    white-space: normal;
}

.mega-feature {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 230px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.mega-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 16, 14, 0) 35%, rgba(18, 16, 14, .92) 100%);
}

.mega-feature-body {
    position: relative;
    z-index: 1;
    padding: 1.1rem;
}

.mega-feature-body h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: .6rem;
    font-size: .95rem;
}

@media (max-width: 767px) {
    .mega-menu {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .mega-menu .mega-links {
        grid-template-columns: 1fr;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

.hero .eyebrow {
    color: #ffd9ae;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 780px;
}

.hero.hero-plain {
    background-color: #17151c;
    background-size: cover;
}

@media (max-width: 767.98px) {
    .hero.hero-plain {
        min-height: 0;
        aspect-ratio: 1504 / 704;
        background-size: contain;
    }
}

.hero-link {
    position: absolute;
    inset: 0;
}

/* Secao com video em loop de fundo */
.video-loop-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    color: #fff;
}

.video-loop-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.video-loop-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 16, 14, .74);
}

.video-loop-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1.5rem;
}

.video-loop-content h2 {
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    font-weight: 700;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.3;
}

.section-dark-photo {
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

/* Quick access */
.quick-access {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.quick-access .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 992px) {
    .quick-access .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.quick-card {
    background: rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    color: #fff;
    transition: transform .15s ease, background .15s ease;
    height: 100%;
}

.quick-card:hover {
    background: rgba(255, 255, 255, .22);
    transform: translateY(-4px);
    color: #fff;
}

.quick-card i {
    font-size: 1.9rem;
    margin-bottom: .75rem;
}

.quick-card span {
    display: block;
    font-weight: 700;
}

.quick-access-light {
    background: var(--light);
    color: var(--dark);
}

.quick-access-light .quick-card {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.quick-access-light .quick-card i {
    color: var(--primary);
}

.quick-access-light .quick-card:hover {
    background: #fff;
    color: var(--dark);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .1);
}

/* About */
.about-media {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    background: var(--light) center/cover no-repeat;
}

.about-section {
    position: relative;
    overflow: hidden;
}

.about-section > .container {
    position: relative;
    z-index: 1;
}

.about-logo-watermark {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 46%;
    max-width: 620px;
    aspect-ratio: 1;
    transform: translateY(-50%);
    background: url('../img/watermark.png') center / contain no-repeat;
    opacity: .50;
    z-index: 0;
    pointer-events: none;
}

.about-media-col {
    position: relative;
}

.about-media-col .video-cover {
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .about-logo-watermark {
        display: none;
    }
}

.video-cover {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--light) center/cover no-repeat;
    object-fit: cover;
    cursor: pointer;
    border: 0;
    padding: 0;
    width: 100%;
    display: block;
}

.video-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    transition: background .15s ease;
}

.video-cover:hover::after {
    background: rgba(0, 0, 0, .4);
}

.video-cover .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform .15s ease;
}

.video-cover .play-icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    animation: pulseAnel 1.8s ease-out infinite;
}

@keyframes pulseAnel {
    0% {
        transform: scale(1);
        opacity: .6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.video-cover:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-cover .play-icon i {
    position: relative;
    color: var(--primary);
    font-size: 2rem;
    margin-left: 5px;
}

/* News */
.news-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

.news-card h3 {
    font-size: 1.05rem;
    margin: .5rem 0 0;
}

.news-card ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.news-card li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-card li + li {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.news-card li a {
    color: var(--dark);
    font-weight: 600;
}

.news-card li a:hover {
    color: var(--primary);
}

.news-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.news-thumb .dia {
    font-size: 1.15rem;
    font-weight: 800;
}

.news-thumb .mes {
    font-size: .6rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .03em;
}

.scroll-row {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scroll-row::-webkit-scrollbar {
    display: none;
    height: 0;
}

.scroll-row > * {
    scroll-snap-align: start;
    flex: 0 0 auto;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-header-row .section-title {
    margin: 0;
    text-align: left;
    max-width: 640px;
}

.carousel-nav {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}

.carousel-nav button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .15s ease, border-color .15s ease;
}

.carousel-nav button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.carousel-nav.carousel-nav-dark button {
    border-color: #ddd8d3;
    color: var(--dark);
}

.carousel-nav.carousel-nav-dark button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(214, 106, 40, .07) 0 1px, transparent 1px 14px);
    pointer-events: none;
}

.bg-pattern > .container {
    position: relative;
    z-index: 1;
}

.video-card {
    width: 280px;
}

.video-card-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-card img {
    border-radius: var(--radius);
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .3s ease;
}

.video-card:hover img {
    transform: scale(1.06);
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.05rem;
    transition: transform .15s ease, background .15s ease;
}

.video-card:hover .video-card-play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card p {
    color: #fff;
    font-weight: 600;
    margin-top: .75rem;
}

.evento-lista-mes {
    color: var(--dark);
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .05em;
    border-bottom: 2px solid var(--primary);
    padding-bottom: .5rem;
    margin-top: 2.5rem;
}

.evento-lista-mes:first-child {
    margin-top: 0;
}

.evento-lista-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

a.evento-lista-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(18, 16, 14, .08);
}

.evento-lista-corpo {
    flex: 1;
    min-width: 0;
}

.evento-lista-corpo h6 {
    font-weight: 700;
    color: var(--dark);
}

.evento-lista-local {
    font-size: .8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-bottom: .25rem;
}

.evento-lista-cta {
    flex: none;
    font-weight: 700;
    color: var(--primary);
    font-size: .85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* Eventos em destaque */
.evento-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #ececec;
    height: 100%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
    transition: transform .15s ease, box-shadow .15s ease;
}

.evento-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 16, 14, .1);
}

.evento-imagem {
    position: relative;
}

.evento-imagem img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.evento-data {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    border-radius: 10px;
    padding: .4rem .8rem;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    line-height: 1.1;
}

.evento-data .dia {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
}

.evento-data .mes {
    display: block;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
}

.evento-body {
    padding: 1.25rem;
}

.evento-body h6 {
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--dark);
}

.evento-local {
    font-size: .8rem;
    color: var(--gray);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* Avaliacoes */
.review-card {
    width: 320px;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .9rem;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.review-name {
    font-weight: 700;
    line-height: 1.2;
}

.review-stars {
    color: #fbbc04;
    font-size: .8rem;
    letter-spacing: 1px;
}

.review-source {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--gray);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.review-source i {
    color: #4285F4;
}

/* Cards de curso EAD */
.curso-card {
    width: 250px;
}

.curso-card .curso-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.curso-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.curso-card:hover img {
    transform: scale(1.06);
}

.curso-card .curso-body {
    padding-top: .85rem;
}

.curso-card .curso-tag {
    position: absolute;
    top: 14px;
    left: 0;
    background: var(--dark);
    color: #fff;
    padding: .4rem 1.2rem .4rem 1rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
}

.curso-card h6 {
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--dark);
}

.vendor-row img {
    height: 65px;
    width: auto;
    transition: transform .2s ease, filter .2s ease;
}

.vendor-row a:hover img {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 6px 10px rgba(18, 16, 14, .18));
}

/* Newsletter */
.newsletter-col {
    position: relative;
}

.newsletter-panel {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: #fff;
}

.newsletter-panel a {
    color: #fff;
    text-decoration: underline;
}

.newsletter-panel .form-control,
.newsletter-panel .form-select {
    border: 0;
    height: 50px;
}

/* Paineis de busca (ex: Inspetores Certificados, Consumiveis) */
.search-panel {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(18, 16, 14, .08);
}

.search-panel .form-control:not(textarea),
.search-panel .form-select,
.search-panel .btn {
    height: 48px;
}

/* Foco dos campos de formulario com a cor da FBTS (Bootstrap usa azul por padrao) */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .25rem rgba(214, 106, 40, .25);
}

.nav-pills .nav-link {
    color: var(--dark);
    font-weight: 600;
    border-radius: 50px;
}

.nav-pills .nav-link.active {
    background: var(--primary);
    color: #fff;
}

/* Paginas institucionais: grade de areas de atuacao */
.area-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
}

.area-card i {
    font-size: 1.6rem;
    color: var(--primary);
    flex-shrink: 0;
}

.area-card span {
    font-weight: 600;
    color: var(--dark);
}

a.area-card {
    transition: background .15s ease, transform .15s ease;
}

a.area-card:hover {
    background: #f0ece8;
    transform: translateY(-2px);
}

/* Paginas institucionais: pilares (missao / visao / valores) */
.pilar-card {
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}

.pilar-card .pilar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: var(--primary);
}

.pilar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pilar-card ul li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .6rem;
}

.pilar-card ul li i {
    color: var(--primary);
    margin-top: .2rem;
}

.contato-grupo {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ececec;
}

.contato-grupo a {
    color: var(--dark);
    text-decoration: none;
}

.contato-grupo a:hover {
    color: var(--primary);
}

/* Linha do tempo diagonal */
.timeline-section {
    padding-top: 1.5rem;
}

.timeline-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.timeline-track {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 5rem 1.5rem;
    transform: rotate(-3.5deg);
    scrollbar-width: none;
    min-width: 0;    
    background-image: repeating-linear-gradient(90deg, var(--primary) 0 10px, transparent 10px 20px);
    background-position: center;
    background-repeat: repeat-x;
    background-size: 20px 2px;
    background-attachment: local;
}

.timeline-track::-webkit-scrollbar {
    display: none;
}

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 0 0 220px;
}

.timeline-item-wide {
    flex-basis: 300px;
}

.timeline-icon {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: .35rem;
}

.timeline-item-inner {
    transform: rotate(3.5deg);
    text-align: center;
    background: #fff;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 1.1rem 1rem;
    box-shadow: 0 12px 26px rgba(18, 16, 14, .1);
}

.timeline-year {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

.timeline-text {
    display: block;
    font-size: .82rem;
    color: var(--gray);
    margin-top: .3rem;
    line-height: 1.4;
}

.timeline-nav-btn {
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(214, 106, 40, .35);
    transition: transform .15s ease;
}

.timeline-nav-btn:hover {
    transform: scale(1.08);
}

@media (max-width: 767.98px) {
    .timeline-track {
        transform: none;
        padding: 1.5rem .5rem;
        background-image: none;
    }

    .timeline-item-inner {
        transform: none;
    }
}

/* Proposta de valor: publico x valor gerado */
.valor-row {
    display: grid;
    grid-template-columns: 1fr auto 1.4fr;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1.5rem;
}

.valor-row + .valor-row {
    margin-top: 1rem;
}

.valor-publico {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.valor-publico i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.valor-publico span {
    font-weight: 700;
}

.valor-row .bi-arrow-right {
    color: #c7c4c0;
    font-size: 1.3rem;
}

.valor-gerado {
    color: var(--gray);
}

@media (max-width: 767px) {
    .valor-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .valor-row .bi-arrow-right {
        display: none;
    }
}

/* Carta institucional */
.carta-perfil {
    background: var(--light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.carta-card {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: -60px auto 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(18, 16, 14, .18);
    padding: 3rem;
    text-align: center;
}

.carta-quote {
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(214, 106, 40, .18);
}

.carta-card .carta-foto {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
    margin: 0 auto 1.25rem;
}

.carta-card .section-title {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .carta-card {
        margin-top: -30px;
        padding: 2rem 1.5rem;
    }

    .carta-quote {
        top: .85rem;
        left: 1.25rem;
        font-size: 2.5rem;
    }
}

.carta-perfil img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .1);
    margin-bottom: 1rem;
}

.carta-perfil h5 {
    margin-bottom: .1rem;
}

.carta-texto p {
    color: var(--gray);
}

.carta-assinatura {
    border-left: 3px solid var(--primary);
    padding-left: 1.25rem;
    margin-top: 2rem;
}

.carta-assinatura strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--dark);
}

.certificacao-feature-group {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 40L40 0' stroke='white' stroke-opacity='0.15' stroke-width='2'/%3E%3C/svg%3E"), linear-gradient(135deg, #e8823f 0%, var(--primary) 45%, var(--primary-dark) 100%);
    background-repeat: repeat, no-repeat;
    background-size: 40px 40px, auto;
}

.certificacao-feature {
    background: transparent;
    padding: 4.5rem 0;
}

.certificacao-feature h4 {
    color: #fff;
}

.certificacao-feature p {
    color: rgba(255, 255, 255, .88);
}

/* Cards de certificacao */
.cert-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    height: 100%;
}

.cert-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.cert-card:hover img {
    transform: scale(1.06);
}

.cert-card .cert-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18, 16, 14, 0) 40%, rgba(18, 16, 14, .85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.cert-card h5 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
}

.cert-card .cert-overlay i {
    color: #fff;
    margin-left: auto;
    font-size: 1.3rem;
    align-self: center;
}

/* Cards de acao rapida */
.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .6rem;
    background: var(--light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    height: 100%;
    transition: background .15s ease, transform .15s ease, border-color .15s ease;
}

.action-card:hover {
    background: #f0ece8;
    border-color: var(--primary);
    transform: translateY(-3px);
    color: var(--dark);
}

.action-card i {
    font-size: 1.6rem;
    color: var(--primary);
}

.action-card span {
    font-weight: 700;
    font-size: .9rem;
    color: var(--dark);
}

/* Diretorio de instituicoes reconhecidas */
.instituicao-card {
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}

.instituicao-card h5 {
    font-size: 1.05rem;
}

.instituicao-card p {
    color: var(--gray);
    font-size: .9rem;
    margin-bottom: .35rem;
}

.instituicao-card i {
    color: var(--primary);
    width: 1.2rem;
}

/* Calendario de atividades */
#calendario {
    margin: 1rem 0 3rem;
}

.fc-event.info {
    background: var(--primary);
    border-color: var(--primary);
}

.fc-event.success {
    background: #2f9e44;
    border-color: #2f9e44;
}

.fc .fc-button-primary {
    background: var(--dark);
    border-color: var(--dark);
}

.fc .fc-button-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: var(--primary);
    border-color: var(--primary);
}

.fc .fc-daygrid-day.fc-day-today {
    background: rgba(214, 106, 40, .08);
}

/* Internal page header */
.page-header {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    text-align: left;
    background-color: var(--dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 3rem 0;
}

.page-header-subtitle {
    max-width: 620px;
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 1.05rem;
}

.page-header h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    margin: 0;
}

/* Sidebar nav */
.side-nav .list-group-item {
    border: 0;
    border-radius: 10px !important;
    margin-bottom: .35rem;
    font-weight: 600;
    color: var(--dark);
}

.side-nav .list-group-item.active {
    background: var(--primary);
    color: #fff;
}

.side-nav .list-group-item:not(.active):hover {
    background: var(--light);
}

/* Result table */
.table-fbts thead {
    background: var(--primary);
    color: #fff;
}

.table-fbts th,
.table-fbts td {
    vertical-align: middle;
}

/* Certificado do inspetor (inspetores-certificados-exibir.php) */
.certificado-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--light);
}

.certificado-logo {
    max-height: 60px;
    flex-shrink: 0;
}

.certificado-header-titulo {
    text-align: right;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.certificado-perfil {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.certificado-foto {
    width: 90px;
    height: 110px;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    border: 1px solid #e3e0dc;
    flex-shrink: 0;
}

.certificado-matricula {
    color: var(--primary);
    font-weight: 700;
}

.certificado-manutencao {
    background: var(--light);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.certificado-secao-titulo {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .9rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.certificado-acoes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid #e3e0dc;
    padding-top: 1.5rem;
    margin-top: 1rem;
}

/* Footer */
.site-footer {
    background: #17151c;
    color: #a9a6b0;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: .6rem;
}

.site-footer a {
    color: #a9a6b0;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .social-icon {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: var(--dark);
}

.site-footer .social-icon:hover {
    background: var(--primary-dark);
}

.site-footer .bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .85rem;
    padding: 1.25rem 0;
}

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    height: 56px;
    padding: 0 1.25rem 0 0;
    border-radius: 50px;
    background: #25d366;
    display: flex;
    align-items: center;
    gap: .65rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    z-index: 1000;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, bottom .2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}

/* Evita sobrepor o rodape (politica de privacidade/cookies) quando a
   pagina rola ate o fim — ver observador em app.js */
.whatsapp-float.whatsapp-float-alto {
    bottom: 6.5rem;
}

.whatsapp-float-icon {
    position: relative;
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float-text {
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: .85rem;
    line-height: 1.2;
    white-space: nowrap;
}

/* Aviso de cookies (LGPD) */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark);
    color: #e8e6e3;
    padding: 1.25rem;
    z-index: 1100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}

.cookie-banner a {
    color: #ffd9ae;
}

.cookie-banner .btn-outline-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #6b6864;
}

.whatsapp-float-icon i {
    position: relative;
    color: #fff;
    font-size: 1.6rem;
}

@media (max-width: 576px) {
    .whatsapp-float {
        padding: 0;
    }

    .whatsapp-float-text {
        display: none;
    }
}

.accordion {
    --bs-accordion-active-color: var(--dark);
    --bs-accordion-active-bg: rgba(214, 106, 40, .12);
    --bs-accordion-border-color: rgba(214, 106, 40, .25);
    --bs-accordion-btn-focus-border-color: var(--primary);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(214, 106, 40, .25);
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2312100e'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d66a28'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Alto contraste */
html[data-theme="contraste"] {
    --primary: #d9d9d9;
    --primary-dark: #ffffff;
    --dark: #000000;
    --light: #000000;
}

html[data-theme="contraste"] body {
    background: #000;
    color: #f2f2f2;
}

html[data-theme="contraste"] .topbar,
html[data-theme="contraste"] .site-navbar,
html[data-theme="contraste"] .site-footer,
html[data-theme="contraste"] .bg-light,
html[data-theme="contraste"] .news-card,
html[data-theme="contraste"] .newsletter-panel {
    background: #000 !important;
    color: #f2f2f2 !important;
    border-color: #808080 !important;
}

html[data-theme="contraste"] .site-navbar .nav-link,
html[data-theme="contraste"] .quick-card,
html[data-theme="contraste"] .about-media,
html[data-theme="contraste"] .review-card {
    background: #000 !important;
    color: #f2f2f2 !important;
    border: 1px solid #808080;
}

html[data-theme="contraste"] a,
html[data-theme="contraste"] .text-primary,
html[data-theme="contraste"] .eyebrow {
    color: #ffffff !important;
    text-decoration: underline;
}

html[data-theme="contraste"] .btn-primary {
    background: #f2f2f2 !important;
    border-color: #f2f2f2 !important;
    color: #000 !important;
}

html[data-theme="contraste"] img {
    filter: grayscale(1) contrast(1.15);
}

/* ==========================================================================
   Teste de layout — A FBTS (site/a-fbts.php)
   Classes prefixadas "afbts-" para ficar isolado nesta pagina, sem afetar
   o .page-header nem os outros componentes usados no resto do site.
   ========================================================================== */
.afbts-hero {
    position: relative;
    background: linear-gradient(135deg, #e8823f 0%, var(--primary) 48%, var(--primary-dark) 100%);
    padding: 4.5rem 0 5rem;
}

.afbts-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

.afbts-hero-copy h1 {
    color: #fff;
    font-size: clamp(2.25rem, 4vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.afbts-hero-copy p {
    color: rgba(255, 255, 255, .88);
    font-size: 1.05rem;
    max-width: 46ch;
    margin-bottom: 1.75rem;
}

.afbts-hero-actions {
    display: flex;
    gap: .9rem;
    flex-wrap: wrap;
}

.afbts-btn-light,
.afbts-btn-ghost {
    font-weight: 700;
    padding: .85rem 1.6rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.afbts-btn-light {
    background: #fff;
    color: var(--dark);
}

.afbts-btn-light:hover {
    background: var(--dark);
    color: #fff;
}

.afbts-btn-ghost {
    border: 1.5px solid rgba(255, 255, 255, .55);
    color: #fff;
}

.afbts-btn-ghost:hover {
    background: rgba(255, 255, 255, .15);
    border-color: #fff;
    color: #fff;
}

.afbts-hero-media {
    position: relative;
    margin-bottom: -90px;
}

.afbts-hero-media::before {
    content: "";
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 80px 0 0 0;
    z-index: 0;
}

.afbts-hero-media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
    border-radius: 80px 0 0 0;
    box-shadow: 0 30px 55px rgba(0, 0, 0, .28);
}

.afbts-stats {
    background: #fff;
    padding: 130px 0 1.5rem;
}

.afbts-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}

.afbts-stat {
    text-align: center;
    padding: 1.75rem 1rem;
    border-left: 1px solid #ececec;
}

.afbts-stat:first-child {
    border-left: 0;
}

.afbts-stat strong {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: .4rem;
}

.afbts-stat span {
    font-size: .82rem;
    color: var(--gray);
}

.afbts-photo-frame {
    position: relative;
    display: block;
}

.afbts-photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: 80px 0 0 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.acreditacao-selo {
    border: 1px solid #dedad5;
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
}

.acreditacao-selo img {
    max-height: 90px;
    margin-bottom: .85rem;
}

.acreditacao-selo span {
    display: block;
    font-weight: 700;
    font-size: .85rem;
    color: var(--dark);
}

.afbts-photo-tag {
    position: absolute;
    left: -1px;
    bottom: 1.5rem;
    background: var(--dark);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: .6rem 1.25rem;
    border-radius: 0 50px 50px 0;
}

.afbts-area-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    height: 100%;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.afbts-area-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(18, 16, 14, .08);
}

.afbts-area-card i {
    flex: none;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.25rem;
}

.afbts-area-card span {
    font-weight: 700;
    color: var(--dark);
}

@media (max-width: 991.98px) {
    .afbts-hero-grid {
        grid-template-columns: 1fr;
    }

    .afbts-hero-media {
        margin-bottom: 0;
        max-width: 420px;
    }

    .afbts-stats {
        padding-top: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .afbts-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .afbts-stat:nth-child(3) {
        border-left: 0;
    }

    .afbts-stat:nth-child(3),
    .afbts-stat:nth-child(4) {
        border-top: 1px solid #ececec;
    }
}

@media print {
    .topbar,
    .site-navbar,
    .site-footer,
    .fundadores-section,
    .whatsapp-float,
    .cookie-banner,
    .page-header,
    #backToTop,
    #google_translate_element,
    #imprimir .btn {
        display: none !important;
    }

    /* O CSS que o proprio widget do VLibras injeta (depois do app.css, com
       a mesma especificidade de classe) vence "[vw] { display:none }" na
       guerra de cascata. Sobe a especificidade com "html body" na frente. */
    html body [vw],
    html body [vw] * {
        display: none !important;
        visibility: hidden !important;
    }

    #imprimir .certificado-header,
    #imprimir .certificado-perfil {
        display: flex !important;
        flex-wrap: nowrap !important;
    }

    #imprimir.section {
        padding-top: 1rem !important;
    }
}
