/*
Theme Name: Astra Child - Fundição Mundial
Theme URI: https://fundicaomundial.com.br
Author: Antigravity AI
Description: Tema B2B Premium para Fundição Mundial, baseado no Astra.
Template: astra
Version: 3.0.0
Text Domain: astra-child
*/

/* ==========================================================================
   DESIGN SYSTEM v3 — Fundição Mundial
   Paleta extraída da identidade visual: Vermelho #CC0000 + Preto/Carvão
   ========================================================================== */

:root {
    /* Brand Colors */
    --fm-red: #CC0000;
    --fm-red-dark: #A30000;
    --fm-red-glow: rgba(204, 0, 0, 0.10);
    --fm-red-subtle: rgba(204, 0, 0, 0.06);

    /* Neutrals */
    --fm-black: #1a1a1a;
    --fm-charcoal: #2b2b2b;
    --fm-graphite: #3d3d3d;
    --fm-iron: #555555;
    --fm-steel: #777777;
    --fm-ash: #999999;
    --fm-fog: #cccccc;
    --fm-smoke: #e5e5e5;
    --fm-pearl: #f2f2f2;
    --fm-white: #ffffff;

    /* Typography */
    --fm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --fm-font-display: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --fm-space-xs: 8px;
    --fm-space-sm: 16px;
    --fm-space-md: 24px;
    --fm-space-lg: 40px;
    --fm-space-xl: 64px;
    --fm-space-2xl: 100px;
    --fm-space-3xl: 120px;

    /* Radius */
    --fm-radius-sm: 4px;
    --fm-radius-md: 8px;
    --fm-radius-lg: 12px;

    /* Shadows — subtle and professional */
    --fm-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --fm-shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --fm-shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --fm-shadow-xl: 0 16px 50px rgba(0,0,0,0.12);

    /* Transition */
    --fm-ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout — ultrawide containment */
    --fm-max-width: 1140px;
    --fm-max-width-wide: 1320px;
}

/* ==========================================================================
   BASE RESET
   ========================================================================== */

*:focus,
*:focus-visible,
*:active {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

a, a:focus, a:active, a:visited,
button, button:focus, button:active,
input:focus, textarea:focus, select:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

body.page-template-template-home-b2b *:focus,
body.page-template-template-home-b2b *:active,
body.page-template-template-home-b2b *:focus-visible {
    outline: none !important;
    outline-color: transparent !important;
    outline-style: none !important;
    box-shadow: none !important;
}

body.page-template-template-home-b2b {
    margin: 0;
    padding: 0;
    font-family: var(--fm-font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--fm-iron);
    background: var(--fm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Strip ALL Astra chrome from our template */
body.page-template-template-home-b2b .site-header,
body.page-template-template-home-b2b #masthead,
body.page-template-template-home-b2b .ast-above-header-wrap,
body.page-template-template-home-b2b .ast-below-header-wrap,
body.page-template-template-home-b2b .site-footer,
body.page-template-template-home-b2b #colophon,
body.page-template-template-home-b2b .ast-breadcrumbs-wrapper,
body.page-template-template-home-b2b .ast-footer-overlay { display: none !important; }

body.page-template-template-home-b2b #page { overflow-x: hidden; }

/* FULL-WIDTH OVERRIDE: Force every Astra wrapper to 100% */
body.page-template-template-home-b2b .site-content,
body.page-template-template-home-b2b .ast-container,
body.page-template-template-home-b2b .ast-full-width-container,
body.page-template-template-home-b2b .ast-separate-container,
body.page-template-template-home-b2b .ast-page-builder-template,
body.page-template-template-home-b2b .content-area,
body.page-template-template-home-b2b .site-main,
body.page-template-template-home-b2b .entry-content,
body.page-template-template-home-b2b article.page,
body.page-template-template-home-b2b .ast-article-single,
body.page-template-template-home-b2b #primary {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
    border: none !important;
    background: none !important;
}

body.page-template-template-home-b2b * { box-sizing: border-box; }

/* ==========================================================================
   TYPOGRAPHY — Sober & Corporate
   ========================================================================== */

.page-template-template-home-b2b h1,
.page-template-template-home-b2b h2,
.page-template-template-home-b2b h3,
.page-template-template-home-b2b h4 {
    font-family: var(--fm-font-display);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 var(--fm-space-sm);
    color: var(--fm-black);
}

/* Container — centered on ultrawide */
.fm-container {
    width: 100%;
    max-width: var(--fm-max-width);
    margin: 0 auto;
    padding: 0 var(--fm-space-md);
}

.fm-container--wide {
    max-width: var(--fm-max-width-wide);
}

/* Section header pattern */
.fm-sh {
    text-align: center;
    margin-bottom: var(--fm-space-xl);
}

.fm-sh__label {
    display: inline-block;
    font-family: var(--fm-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--fm-red);
    margin-bottom: var(--fm-space-xs);
}

.fm-sh__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    color: var(--fm-black);
    margin-bottom: var(--fm-space-xs);
    letter-spacing: -0.3px;
}

.fm-sh__desc {
    font-size: 1.05rem;
    color: var(--fm-steel);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Dark sections */
.fm-dark .fm-sh__title { color: var(--fm-white); }
.fm-dark .fm-sh__desc { color: var(--fm-ash); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.fm-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.35s var(--fm-ease);
}

.fm-nav.is-scrolled {
    background: rgba(26, 26, 26, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    box-shadow: 0 1px 20px rgba(0,0,0,0.15);
}

.fm-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fm-nav__logo img {
    height: 54px;
    transition: all 0.3s var(--fm-ease);
}

.fm-nav.is-scrolled .fm-nav__logo img {
    height: 44px;
}

.fm-nav__menu {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.fm-nav__link {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.25s var(--fm-ease);
}

.fm-nav__link:hover {
    color: var(--fm-white);
}

.fm-nav__cta {
    padding: 9px 22px !important;
    background: var(--fm-red) !important;
    border-radius: var(--fm-radius-sm) !important;
    color: var(--fm-white) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: all 0.25s var(--fm-ease) !important;
}

.fm-nav__cta:hover {
    background: var(--fm-red-dark) !important;
}

.fm-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.fm-nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--fm-white);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.fm-hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fm-hero__media {
    position: absolute;
    inset: 0;
}

.fm-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.62);
}

.fm-hero__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 860px;
    padding: 0 var(--fm-space-md);
}

.fm-hero__certs-list {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 8px 24px;
    margin: 0 auto var(--fm-space-lg) auto;
    color: rgba(255,255,255,0.6);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 2px;
}

.fm-hero__certs-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fm-hero__certs-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fm-red);
}

.fm-hero h1 {
    font-family: var(--fm-font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--fm-white);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--fm-space-md);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.fm-hero h1 em {
    font-style: normal;
    color: var(--fm-red);
}

.fm-hero__text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    max-width: 720px;
    margin: 0 auto var(--fm-space-lg);
    line-height: 1.75;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.fm-hero__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.fm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--fm-font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--fm-radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--fm-ease);
}

.fm-btn--red {
    background: var(--fm-red);
    color: var(--fm-white);
}

.fm-btn--red:hover {
    background: var(--fm-red-dark);
    color: var(--fm-white);
}

.fm-btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}

.fm-btn--outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.35);
    color: var(--fm-white);
}

/* ==========================================================================
   STATS (inside hero)
   ========================================================================== */

.fm-hero__stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-stats__bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.fm-stat {
    text-align: center;
    padding: 14px var(--fm-space-sm);
    position: relative;
}

.fm-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 28px;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.fm-stat__num {
    font-family: var(--fm-font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--fm-white);
    line-height: 1;
    margin-bottom: 2px;
}

.fm-stat__num span {
    color: var(--fm-red);
    font-size: 1.4rem;
}

.fm-stat__label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   3 STEPS
   ========================================================================== */

.fm-steps {
    padding: 64px 0;
    background-color: var(--fm-cloud);
    position: relative;
}

.fm-steps::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/img/bg-technical-v2.png') center center / cover no-repeat;
    opacity: 0.10;
    pointer-events: none;
}

.fm-steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--fm-space-lg);
}

/* Flow layout with arrows */
.fm-steps__flow {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.fm-steps__flow .fm-step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fm-steps__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: var(--fm-red);
    font-size: 1.4rem;
    opacity: 0.35;
    flex-shrink: 0;
    margin-top: -40px;
}

.fm-steps__cta {
    text-align: center;
    margin-top: 32px;
    flex-shrink: 0;
}

.fm-step-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-md);
    overflow: hidden;
    border: 1px solid var(--fm-smoke);
    transition: all 0.35s var(--fm-ease);
}

.fm-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--fm-shadow-lg);
    border-color: rgba(204, 0, 0, 0.15);
}

.fm-step-card__img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.fm-step-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--fm-ease);
}

.fm-step-card:hover .fm-step-card__img img {
    transform: scale(1.05);
}

.fm-step-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 40%,
        rgba(20, 20, 20, 0.5) 100%
    );
}

.fm-step-card__num {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--fm-font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fm-white);
    background: var(--fm-red);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.fm-step-card__body {
    padding: var(--fm-space-md);
    border-top: 3px solid var(--fm-red);
    flex-shrink: 0;
}

.fm-step-card__body h3 {
    font-family: var(--fm-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--fm-black);
}

.fm-step-card__body p {
    font-size: 0.88rem;
    color: var(--fm-steel);
    line-height: 1.65;
}

@media screen and (max-width: 768px) {
    .fm-steps__flow {
        flex-direction: column;
        gap: var(--fm-space-md);
    }
    .fm-step-card__img {
        min-height: 180px;
    }
    .fm-steps__arrow {
        display: none;
    }
}

/* ==========================================================================
   SEGMENTS
   ========================================================================== */

.fm-segments {
    padding: 48px 0;
    background: var(--fm-black);
}

.fm-segments .fm-sh {
    margin-bottom: 28px;
}

.fm-segments .fm-sh__title {
    font-size: 1.6rem;
}

.fm-segments .fm-sh__desc {
    font-size: 0.85rem;
}

.fm-seg-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: start;
}

.fm-seg-card {
    background: var(--fm-charcoal);
    border-radius: var(--fm-radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.35s var(--fm-ease);
    text-align: center;
    cursor: pointer;
}

.fm-seg-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 0, 0, 0.3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.fm-seg-card__img {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.fm-seg-card__img img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0.95);
    transition: all 0.4s var(--fm-ease);
}

.fm-seg-card:hover .fm-seg-card__img img {
    filter: brightness(1.1);
    transform: scale(1.08);
}

.fm-seg-card__info {
    padding: 10px 14px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fm-seg-card__info h4 {
    font-family: var(--fm-font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fm-white);
    margin-bottom: 2px;
    transition: color 0.3s;
}

.fm-seg-card:hover .fm-seg-card__info h4 {
    color: var(--fm-red);
}

.fm-seg-card__info span {
    font-size: 0.68rem;
    color: var(--fm-ash);
    letter-spacing: 0.3px;
}

/* Card expand (in-card detail) */
.fm-seg-card {
    transition: all 0.35s var(--fm-ease);
}

.fm-seg-card.is-active {
    border-color: rgba(204, 0, 0, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    z-index: 2;
}

.fm-seg-card__detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--fm-ease);
}

.fm-seg-card.is-active .fm-seg-card__detail {
    max-height: 250px;
}

.fm-seg-card__detail-inner {
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.fm-seg-card__detail-inner p {
    font-size: 0.72rem;
    color: var(--fm-ash);
    line-height: 1.5;
    margin-bottom: 10px;
}

.fm-seg-card__thumbs {
    display: flex;
    gap: 6px;
}

.fm-seg-card__thumb {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    padding: 6px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}

.fm-seg-card__thumb:hover {
    border-color: rgba(204,0,0,0.3);
}

.fm-seg-card__thumb img {
    height: 50px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 4px;
}

.fm-seg-card__thumb span {
    display: block;
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
}

/* ==========================================================================
   BLOG / INSIGHTS
   ========================================================================== */

.fm-blog {
    padding: 64px 0;
    background: var(--fm-pearl);
}

.fm-blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.fm-blog-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-md);
    overflow: hidden;
    border: 1px solid var(--fm-smoke);
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--fm-ease);
    display: flex;
    flex-direction: column;
}

.fm-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: rgba(204,0,0,0.15);
}

.fm-blog-card__img {
    height: 200px;
    overflow: hidden;
}

.fm-blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--fm-ease);
}

.fm-blog-card:hover .fm-blog-card__img img {
    transform: scale(1.06);
}

.fm-blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--fm-smoke);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--fm-ash);
}

.fm-blog-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fm-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fm-blog-card__meta time {
    font-size: 0.72rem;
    color: var(--fm-steel);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-blog-card__cat {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--fm-red);
    background: rgba(204,0,0,0.08);
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fm-blog-card__title {
    font-family: var(--fm-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fm-charcoal);
    margin-bottom: 8px;
    line-height: 1.35;
    transition: color 0.3s;
}

.fm-blog-card:hover .fm-blog-card__title {
    color: var(--fm-red);
}

.fm-blog-card__excerpt {
    font-size: 0.82rem;
    color: var(--fm-steel);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.fm-blog-card__cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fm-red);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.fm-blog-card:hover .fm-blog-card__cta {
    gap: 12px;
}

.fm-blog__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: var(--fm-white);
    border-radius: var(--fm-radius-md);
    border: 1px dashed var(--fm-smoke);
}

.fm-blog__empty p {
    font-size: 0.92rem;
    color: var(--fm-steel);
}

.fm-blog__footer {
    text-align: center;
    margin-top: 32px;
}

.fm-blog__btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--fm-charcoal);
    color: var(--fm-charcoal);
    border-radius: var(--fm-radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--fm-ease);
}

.fm-blog__btn:hover {
    background: var(--fm-charcoal);
    color: var(--fm-white);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.fm-faq {
    padding: var(--fm-space-3xl) 0;
    position: relative;
    background-color: var(--fm-white);
}

.fm-faq__logo-wrapper {
    height: 90px; 
    width: 90px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--fm-white);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fm-faq__logo-wrapper:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.fm-faq__small-logo {
    height: 55px;
    width: 55px;
    object-fit: contain;
    border-radius: 0;
    transform: translateY(4px);
}

.fm-faq .fm-container {
    position: relative;
    z-index: 2;
}

.fm-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.fm-faq__item {
    margin-bottom: 12px;
    border: 1px solid var(--fm-fog); /* Fixed missing border variable */
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    overflow: hidden;
    position: relative;
    transition: all 0.25s var(--fm-ease);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.fm-faq__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: background 0.25s var(--fm-ease);
}

.fm-faq__item:hover {
    border-color: #d1d1d1;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.fm-faq__item:hover::before {
    background: var(--fm-red);
}

.fm-faq__item.active {
    border-color: var(--fm-red);
}

.fm-faq__item.active::before {
    background: var(--fm-red);
}

.fm-faq__q {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 18px 20px;
    background: var(--fm-white) !important;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--fm-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--fm-charcoal) !important;
    text-align: left;
    gap: var(--fm-space-sm);
    transition: color 0.25s;
}

.fm-faq__q:hover {
    color: var(--fm-red) !important;
}

.fm-faq__q:focus,
.fm-faq__q:focus-visible,
.fm-faq__q:active,
.fm-faq__q:focus:active {
    outline: none !important;
    box-shadow: none !important;
    background: var(--fm-white) !important;
    color: var(--fm-charcoal) !important;
}

.fm-faq__item.active .fm-faq__q,
.fm-faq__item.active .fm-faq__q:focus,
.fm-faq__item.active .fm-faq__q:active,
.fm-faq__item.active .fm-faq__q:hover {
    background: var(--fm-red) !important;
    color: var(--fm-white) !important;
}

.fm-faq__q i {
    font-size: 0.7rem;
    color: var(--fm-ash);
    transition: transform 0.3s var(--fm-ease), color 0.3s;
    flex-shrink: 0;
}

.fm-faq__item.active .fm-faq__q i {
    transform: rotate(180deg);
    color: var(--fm-white) !important;
}

.fm-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--fm-ease);
}

.fm-faq__a-body {
    padding: 0 20px 18px;
    color: var(--fm-steel);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.fm-cta {
    padding: var(--fm-space-2xl) 0;
    background: var(--fm-black);
    text-align: center;
}

.fm-cta h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    color: var(--fm-white);
    margin-bottom: var(--fm-space-xs);
    font-weight: 700;
}

.fm-cta p {
    color: var(--fm-ash);
    font-size: 1rem;
    margin-bottom: var(--fm-space-lg);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.fm-cta__btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.fm-footer {
    background: #111111;
    padding: var(--fm-space-xl) 0 0;
    color: var(--fm-ash);
}

.fm-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: var(--fm-space-lg);
    padding-bottom: var(--fm-space-xl);
}

.fm-footer__logo {
    max-width: 160px;
    margin-bottom: var(--fm-space-sm);
}

.fm-footer__brand p {
    color: var(--fm-steel);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 280px;
}

.fm-footer h4 {
    font-family: var(--fm-font-display);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fm-white);
    margin-bottom: var(--fm-space-md);
    font-weight: 600;
}

.fm-footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: var(--fm-steel);
}

.fm-footer__contact i {
    color: var(--fm-red);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    margin-top: 5px;
}

.fm-footer__contact a {
    color: var(--fm-ash);
    text-decoration: none;
    transition: color 0.25s var(--fm-ease);
}

.fm-footer__contact a:hover {
    color: var(--fm-white);
}

.fm-footer__social {
    display: flex;
    gap: 8px;
    margin-top: var(--fm-space-sm);
}

.fm-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-ash);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s var(--fm-ease);
}

.fm-footer__social a:hover {
    background: var(--fm-red);
    border-color: var(--fm-red);
    color: var(--fm-white);
}

.fm-footer__certs {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: var(--fm-space-lg);
    margin-top: -16px;
    padding-bottom: var(--fm-space-lg);
}

.fm-footer__certs h4 {
    text-align: center;
}

.fm-footer__certs-logos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--fm-space-xl);
    max-width: 600px;
    margin: 0 auto;
}

.fm-footer__certs-logos a {
    display: inline-block;
    transition: transform 0.3s var(--fm-ease);
}

.fm-footer__certs-logos a:hover {
    transform: translateY(-3px);
}

.fm-footer__certs-logos a:first-child {
    justify-self: flex-end;
}

.fm-footer__certs-logos a:nth-child(2) {
    justify-self: center;
}

.fm-footer__certs-logos a:last-child {
    justify-self: flex-start;
}

.fm-footer__certs-logos img {
    height: 60px;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: opacity 0.3s var(--fm-ease);
}

.fm-footer__certs-logos a[aria-label="ISO 9001"] img {
    height: 66px;
    margin: 0 16px;
}

.fm-footer__certs-logos a:hover img {
    opacity: 1;
}

.fm-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: var(--fm-space-sm) 0;
    text-align: center;
    font-size: 0.78rem;
    color: var(--fm-steel);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */

.fm-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--fm-ease), transform 0.6s var(--fm-ease);
}

.fm-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.fm-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s var(--fm-ease), transform 0.45s var(--fm-ease);
}

.fm-stagger.visible > *:nth-child(1) { transition-delay: 0.04s; }
.fm-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.fm-stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.fm-stagger.visible > *:nth-child(4) { transition-delay: 0.16s; }
.fm-stagger.visible > *:nth-child(5) { transition-delay: 0.20s; }
.fm-stagger.visible > *:nth-child(6) { transition-delay: 0.24s; }
.fm-stagger.visible > *:nth-child(7) { transition-delay: 0.28s; }
.fm-stagger.visible > *:nth-child(8) { transition-delay: 0.32s; }
.fm-stagger.visible > *:nth-child(9) { transition-delay: 0.36s; }
.fm-stagger.visible > *:nth-child(10) { transition-delay: 0.40s; }
.fm-stagger.visible > *:nth-child(11) { transition-delay: 0.44s; }
.fm-stagger.visible > *:nth-child(12) { transition-delay: 0.48s; }

.fm-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .fm-stats__bar { grid-template-columns: repeat(2, 1fr); }
    .fm-stat:nth-child(2)::after { display: none; }
    .fm-footer__grid { grid-template-columns: 1fr 1fr; }
    .fm-process__grid { grid-template-columns: repeat(2, 1fr); }
    .fm-seg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 768px) {
    .fm-nav { padding: 12px 0; }
    .fm-nav__logo img { height: 36px; max-width: 75vw; object-fit: contain; }
    .fm-nav__menu { 
        display: flex;
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 30px 30px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        transition: right 0.4s var(--fm-ease);
        z-index: 999;
    }
    .fm-nav__menu.is-active { right: 0; }
    .fm-nav__menu li { width: 100%; margin-bottom: 20px; }
    .fm-nav__link { font-size: 1.1rem; display: block; }
    .fm-nav__cta { display: inline-block; }

    .fm-nav__toggle { display: flex; z-index: 1001; position: relative; }
    .fm-nav__toggle span { transition: all 0.3s var(--fm-ease); }
    .fm-nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .fm-nav__toggle.is-active span:nth-child(2) { opacity: 0; }
    .fm-nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .fm-nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--fm-ease);
    }
    .fm-nav-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .fm-hero { max-height: 100vh; }
    .fm-hero h1 { font-size: 1.6rem; }

    .fm-stats__bar { grid-template-columns: repeat(2, 1fr); }
    .fm-stat::after { display: none !important; }
    .fm-stat__num { font-size: 1.5rem; }
    .fm-stat { padding: 14px 10px; }



    .fm-seg-grid { grid-template-columns: repeat(2, 1fr); }

    .fm-process__grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }

    .fm-tl::before { left: 16px; }
    .fm-tl__item:nth-child(odd),
    .fm-tl__item:nth-child(even) {
        padding-left: 44px;
        padding-right: 0;
        justify-content: flex-start;
        text-align: left;
    }
    .fm-tl__dot { left: 16px; }

    .fm-footer__grid { grid-template-columns: 1fr; gap: var(--fm-space-lg); }
}

@media screen and (max-width: 480px) {
    .fm-hero__inner { padding-bottom: 110px; }
    .fm-seg-grid { grid-template-columns: repeat(2, 1fr); }
    .fm-hero__btns { flex-direction: column; align-items: center; }
    .fm-cta__btns { flex-direction: column; align-items: center; }
}


/* Process Line – horizontal flow with arrows */
.fm-process-line {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: nowrap;
}

.fm-pl-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}

.fm-pl-step:hover .fm-pl-step__img {
    border-color: var(--fm-red);
    transform: scale(1.06);
}

.fm-pl-step__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-pl-step__num {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fm-red);
    color: var(--fm-white);
    font-family: var(--fm-font-display);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px 10px 0 0;
    letter-spacing: 1px;
}

/* Arrows between steps */
.fm-pl-arrow {
    display: flex;
    align-items: center;
    padding-top: 46px;
    color: var(--fm-red);
    font-size: 0.8rem;
    opacity: 0.5;
    flex-shrink: 0;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .fm-process-line {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 0;
    }
    .fm-pl-step {
        flex: 0 0 calc(100% / 4);
    }
    .fm-pl-arrow {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .fm-process-line {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .fm-pl-step {
        flex: none;
        flex-direction: row;
        text-align: left;
        gap: 14px;
        width: 100%;
        max-width: 320px;
        padding: 10px 16px;
        background: var(--fm-white);
        border-radius: var(--fm-radius-md);
        border: 1px solid var(--fm-smoke);
    }
    .fm-pl-step__img {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .fm-pl-step__desc {
        max-width: none;
    }
    .fm-pl-arrow {
        display: flex;
        padding-top: 0;
        transform: rotate(90deg);
    }
}


/* ==========================================================================
   NOVO LAYOUT DE NOTICIAS (HOME)
   ========================================================================== */
.fm-news-layout {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

/* Coluna 1: Destaque Principal */
.fm-news-col-main {
    display: flex;
    flex-direction: column;
}
.fm-news-hero {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    aspect-ratio: 16/10;
    text-decoration: none;
    transition: transform 0.3s ease;
}
.fm-news-hero:hover {
    transform: translateY(-3px);
}
.fm-news-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fm-news-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}
.fm-news-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}
.fm-news-hero__content h3 {
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
    font-family: var(--fm-font-display);
}
.fm-news-hero__content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 10px 0 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fm-news-main-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.fm-news-main-link:hover .fm-news-hero {
    transform: translateY(-3px);
}
.fm-news-hero__meta {
    margin-top: 18px;
    padding: 0 5px;
}
.fm-news-hero__meta .fm-news__cat {
    margin-bottom: 8px;
}
.fm-news-hero__meta p {
    color: var(--fm-iron);
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
}

.fm-news__cat {
    display: inline-block;
    color: var(--fm-red);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

/* Coluna 2: Textos Centralizados */
.fm-news-col-center {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid #e0e0e0;
    padding-right: 30px;
}
.fm-news-text {
    display: block;
    text-decoration: none;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s ease;
}
.fm-news-text:first-child {
    padding-top: 0;
}
.fm-news-text:last-child {
    border-bottom: none;
}
.fm-news-text:hover h3 {
    color: var(--fm-red);
}
.fm-news-text h3 {
    font-size: 1.15rem;
    color: var(--fm-charcoal);
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    transition: color 0.2s ease;
}
.fm-news-text p {
    font-size: 0.9rem;
    color: var(--fm-iron);
    margin: 8px 0 0 0;
    line-height: 1.4;
}

/* Coluna 3: Thumbnail Lateral */
.fm-news-col-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.fm-news-sidecard {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: flex-start;
}
.fm-news-sidecard:hover h3 {
    color: var(--fm-red);
}
.fm-news-sidecard__img {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}
.fm-news-sidecard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fm-news-sidecard__text {
    flex: 1;
}
.fm-news-sidecard__text h3 {
    font-size: 1rem;
    color: var(--fm-charcoal);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    transition: color 0.2s ease;
}

@media screen and (max-width: 1024px) {
    .fm-news-layout {
        grid-template-columns: 1fr 1fr;
    }
    .fm-news-col-main {
        grid-column: 1 / -1;
    }
    .fm-news-col-center {
        border-right: none;
        padding-right: 0;
    }
}
@media screen and (max-width: 768px) {
    .fm-news-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .fm-news-hero {
        aspect-ratio: 4/3;
    }
    .fm-news-hero__content h3 {
        font-size: 1.3rem;
    }
    .fm-news-text {
        padding: 15px 0;
    }
}

/* Esconder cabecalho e rodape padrao do Astra */
body.page-template-template-home-b2b header#masthead, body.page-template-template-home-b2b footer#colophon, body.page-template-template-home-b2b .site-footer { display: none !important; }

.fm-post-text-wrap h3, .fm-post-text-wrap p, .fm-post-text-wrap ul, .fm-post-text-wrap li { clear: none !important; } .fm-post-img-left { float: left; width: 45%; max-width: 350px; margin: 0 25px 15px 0; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .fm-post-img-right { float: right; width: 45%; max-width: 350px; margin: 0 0 15px 25px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); } .fm-clearfix::after { content: ''; display: table; clear: both; } .fm-post-section { margin-bottom: 40px; }

/* ------------------------------------- */
/* ESTILOS PARA OS POSTS DO BLOG (IMAGENS ALINHADAS) */
/* ------------------------------------- */
.fm-post-text-wrap h3, 
.fm-post-text-wrap p, 
.fm-post-text-wrap ul, 
.fm-post-text-wrap li {
    clear: none !important;
}
.fm-post-img-left {
    float: left;
    width: 45%;
    max-width: 350px;
    margin: 0 25px 15px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.fm-post-img-right {
    float: right;
    width: 45%;
    max-width: 350px;
    margin: 0 0 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.fm-clearfix::after {
    content: "";
    display: table;
    clear: both;
}
.fm-post-section {
    margin-bottom: 40px;
}
