/* ══════════════════════════════════════════════
           HERO SECTION
           ══════════════════════════════════════════════ */
        .hero-section {
            position: relative;
            height: clamp(420px, 60vh, 560px);
            overflow: hidden;
            display: flex;
            align-items: center;
        }

        /* Slides de fundo */
        .hero-slides {
            position: absolute;
            inset: 0;
        }

        .hero-slide {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 1s ease;
            will-change: opacity;
        }

        .hero-slide.is-active { opacity: 1; }

        /* Sem zoom contínuo: o scale de 6s forçava re-rasterização da camada inteira
           a cada frame (76% do tempo em Paint no profiler). Só crossfade de opacidade. */
        .hero-slide-bg {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            /* Sem repeat: com contain no mobile (slide-banner), a arte
               azulejava para preencher a altura que sobra. */
            background-repeat: no-repeat;
            background-color: var(--color-neutral-3);
        }

        .hero-slide-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                105deg,
                rgba(0,0,0,0.88) 0%,
                rgba(10,5,5,0.72) 55%,
                rgba(0,0,0,0.45) 100%
            );
        }

        /* Slide-banner (FISP 2026): a arte é a peça inteira, 1920×560 —
           mesma proporção do hero no desktop, então cover encaixa sem
           corte perceptível. O fundo branco casa com o da própria arte. */
        .hero-slide--banner .hero-slide-bg {
            background-color: #f7f5f4;
        }

        /* Em tela estreita o hero fica mais alto que largo: cover cortaria
           o banner até sobrar só o miolo. Contain mostra a peça inteira,
           e o fundo claro preenche as sobras sem emenda visível. */
        @media (max-width: 968px) {
            .hero-slide--banner .hero-slide-bg {
                background-size: contain;
            }
        }

        /* Camadas de conteúdo empilhadas — crossfade via opacity, sem recriação de DOM */
        .hero-layers {
            position: relative;
            z-index: 2;
            display: grid;
            width: 100%;
        }

        /* Conteúdo — grid 2 colunas */
        /* Anti-fantasma: o conteúdo que sai some rápido (0.25s) e o que entra
           aguarda 0.3s antes do fade-in — os textos nunca se sobrepõem. */
        .hero-content {
            grid-area: 1 / 1;
            padding-top: calc(var(--header-height) / 2);
            padding-bottom: 2.5rem;
            display: grid;
            grid-template-columns: 1fr clamp(260px, 30vw, 380px);
            gap: clamp(1.5rem, 3vw, 3rem);
            align-items: center;
            opacity: 0;
            transition: opacity 0.25s ease;
            pointer-events: none;
            will-change: opacity;
        }

        .hero-content.is-active {
            opacity: 1;
            pointer-events: auto;
            transition: opacity 0.6s ease 0.3s;
        }

        .hero-text { max-width: 600px; }

        .hero-title {
            font-size: clamp(1.6rem, 3.5vw, 3.6rem);
            font-weight: 900;
            color: var(--color-white);
            line-height: 1.08;
            margin: 0.75rem 0 1.1rem;
            text-shadow: 0 2px 16px rgba(0,0,0,0.5);
        }

        .hero-subtitle {
            font-size: clamp(0.82rem, 1.4vw, 1.05rem);
            color: rgba(255,255,255,0.72);
            line-height: 1.7;
            margin-bottom: 2rem;
            max-width: 500px;
        }

        /* ── Visual direito ── */
        .hero-visual {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        /* Logo (ARMTEX) */
        .hero-visual-logo-wrap {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.55);
            backdrop-filter: blur(12px);
            border: 1.5px solid rgba(245,90,0,0.4);
            border-radius: 1.5rem;
            padding: 2.5rem 2rem;
            width: 100%;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
            text-decoration: none;
            box-shadow: 0 0 60px rgba(245,90,0,0.15);
        }

        .hero-visual-logo-wrap:hover {
            border-color: rgba(245,90,0,0.75);
            box-shadow: 0 0 80px rgba(245,90,0,0.3);
        }

        .hero-visual-logo {
            width: 100%;
            max-width: 540px;
            height: auto;
            filter: drop-shadow(0 6px 40px rgba(245,90,0,0.65));
            image-rendering: -webkit-optimize-contrast;
            /* Suprime a lente de Pesquisa Visual do Edge (imagem decorativa) */
            pointer-events: none;
        }

        /* Logos RE-VESTE e ARMTEX — sem card: logo integrado à imagem de fundo */
        .hero-visual-logo-wrap--reveste,
        .hero-visual-logo-wrap--reveste:hover,
        .hero-visual-logo-wrap--armtex,
        .hero-visual-logo-wrap--armtex:hover {
            background: transparent;
            border: none;
            box-shadow: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
        }

        .hero-visual-logo-wrap--reveste .hero-visual-logo {
            filter: drop-shadow(0 0 20px rgba(255,255,255,0.4));
            transform: scale(1.27);
        }

        .hero-visual-logo-wrap--armtex .hero-visual-logo {
            filter: drop-shadow(0 6px 40px rgba(245,90,0,0.5));
            transform: scale(1.92);
        }

        /* Indicadores */
        .hero-indicators {
            position: absolute;
            bottom: 1.25rem;
            left: 0;
            right: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            z-index: 3;
        }

        .hero-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            border: none;
            /* Cinza médio: visível tanto nos slides escuros quanto no
               banner claro (branco translúcido sumia no fundo branco). */
            background: rgba(125,125,125,0.55);
            cursor: pointer;
            transition: all var(--transition-normal);
            padding: 0;
        }

        .hero-dot:hover {
            background: rgba(125,125,125,0.85);
        }

        .hero-dot.is-active {
            width: 28px;
            border-radius: 4px;
            background: var(--color-primary);
            box-shadow: 0 0 10px var(--color-primary-glow);
        }

        .hero-pause-btn {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1px solid rgba(125,125,125,0.5);
            background: transparent;
            color: rgba(125,125,125,0.9);
            font-size: 0.55rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            transition: all var(--transition-fast);
            flex-shrink: 0;
        }

        .hero-pause-btn:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
            background: rgba(196,30,58,0.15);
        }

        /* ══════════════════════════════════════════════
           STATS SECTION
           ══════════════════════════════════════════════ */
        .stats-section {
            background: transparent;
            border-top: 1px solid var(--color-border-subtle);
            border-bottom: 1px solid var(--color-border-subtle);
            padding: 1rem 0;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 0;
        }

        .stat-card {
            text-align: center;
            padding: 0.9rem 0.75rem;
            border-right: 1px solid var(--color-border-subtle);
            position: relative;
        }

        .stat-card:last-child { border-right: none; }

        .stat-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 0.55rem;
            color: var(--color-primary);
        }

        .stat-icon svg {
            width: 26px;
            height: 26px;
        }

        .stat-value {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 0.3rem;
        }

        .stat-number {
            font-family: var(--font-heading);
            font-size: clamp(2rem, 3.2vw, 2.8rem);
            font-weight: 900;
            color: var(--color-text);
            line-height: 1;
        }

        .stat-suffix {
            font-family: var(--font-heading);
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--color-primary-light);
            display: inline;
        }

        .stat-label {
            font-size: 0.72rem;
            color: var(--color-text-muted);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-top: 0.4rem;
        }

        /* ══════════════════════════════════════════════
           PRODUCTS SECTION
           ══════════════════════════════════════════════ */
        .products-section { background: var(--color-neutral-1); }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 1.25rem;
        }

        .product-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all var(--transition-normal);
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-8px);
            border-color: rgba(196,30,58,0.3);
            box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 30px rgba(196,30,58,0.08);
        }

        .product-card-image {
            height: 160px;
            background: linear-gradient(135deg, var(--color-neutral-3) 0%, rgba(196,30,58,0.08) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid var(--color-border-subtle);
            overflow: hidden;
        }

        .product-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform var(--transition-normal);
            /* Suprime a lente de Pesquisa Visual do Edge sobre a imagem
               (o clique continua funcionando no link pai do card) */
            pointer-events: none;
        }

        .product-card:hover .product-card-img {
            transform: scale(1.05);
        }

        .product-card-body {
            padding: 1.1rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .product-card-title {
            font-size: 1rem;
            font-weight: 700;
            height: 3.9rem;
            overflow: hidden;
            color: var(--color-text);
            line-height: 1.3;
        }

        .product-card-standard-slot {
            height: 1.75rem;
            display: flex;
            align-items: center;
        }

        .product-card-standard {
            display: inline-block;
            font-size: 0.68rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--color-primary);
            background: rgba(196,30,58,0.08);
            border: 1px solid rgba(196,30,58,0.2);
            border-radius: var(--radius-sm);
            padding: 0.15rem 0.5rem;
        }

        .product-card-desc {
            font-size: 0.83rem;
            color: var(--color-text-muted);
            line-height: 1.55;
        }

        /* ══════════════════════════════════════════════
           DIVISOR
           ══════════════════════════════════════════════ */
        .section-divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1.5rem;
            padding: 0 clamp(1rem, 4vw, 3rem);
            max-width: 1280px;
            margin: 2.5rem auto 0.5rem;
        }

        .section-divider + .products-section,
        .section-divider + .services-section,
        .section-divider + .blog-section {
            padding-top: 1rem;
        }

        .products-section,
        .services-section {
            padding-bottom: 1rem;
        }

        .section-divider-label {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--color-primary-light);
            white-space: nowrap;
            padding: 0.3rem 1rem;
            border: 1px solid rgba(196,30,58,0.25);
            border-radius: var(--radius-full);
            background: rgba(196,30,58,0.06);
        }

        /* ══════════════════════════════════════════════
           SERVICES SECTION
           ══════════════════════════════════════════════ */
        .services-section { background: var(--color-neutral-1); }

        /* Cards de serviço reutilizam o design .product-card da seção de produtos */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 1.25rem;
            max-width: 1100px;
            margin: 0 auto;
        }

        /* Títulos de serviço têm 1–2 linhas: dispensa a altura fixa de 3 linhas dos produtos */
        .services-grid .product-card-title { height: auto; }

        /* ══════════════════════════════════════════════
           CLIENTS SECTION
           ══════════════════════════════════════════════ */
        .clients-section {
            background: var(--color-surface);
            border-top: 1px solid var(--color-border-subtle);
            border-bottom: 1px solid var(--color-border-subtle);
            padding-top: 2.5rem;
        }

        .clients-section .section-header {
            margin-bottom: 1.5rem;
        }

        .clients-carousel {
            overflow: hidden;
            position: relative;
            mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
            -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
        }

        .clients-track {
            display: flex;
            gap: 2rem;
            animation: carousel-scroll 120s linear infinite;
            width: max-content;
        }

        .clients-track:hover { animation-play-state: paused; }

        @keyframes carousel-scroll {
            from { transform: translateX(0); }
            to   { transform: translateX(-50%); }
        }

        .client-logo-item {
            flex-shrink: 0;
            padding: 1.25rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .client-logo-img {
            height: 90px;
            width: auto;
            max-width: 220px;
            object-fit: contain;
            filter: brightness(1);
            transition: filter var(--transition-fast);
        }

        .client-logo-item:hover .client-logo-img {
            filter: brightness(1.15);
        }

        /* ══════════════════════════════════════════════
           BLOG SECTION
           ══════════════════════════════════════════════ */
        .blog-section { background: var(--color-neutral-1); padding-top: 2.5rem; }

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .blog-card {
            background: var(--color-surface);
            border: 1px solid var(--color-border-subtle);
            border-radius: var(--radius-lg);
            overflow: hidden;
            transition: all var(--transition-normal);
            display: flex;
            flex-direction: column;
        }

        .blog-card:hover {
            transform: translateY(-6px);
            border-color: rgba(196,30,58,0.3);
            box-shadow: var(--shadow-red);
        }

        .blog-card-image {
            height: 180px;
            background: linear-gradient(135deg, var(--color-neutral-3), var(--color-neutral-2));
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid var(--color-border-subtle);
        }

        .blog-card-img-placeholder { font-size: 3.5rem; opacity: 0.4; }

        .blog-card-real-img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform var(--transition-normal);
        }

        .blog-card:hover .blog-card-real-img { transform: scale(1.05); }

        .blog-card-category {
            position: absolute;
            top: 0.75rem;
            left: 0.75rem;
            background: rgba(196,30,58,0.15);
            border: 1px solid rgba(196,30,58,0.3);
            color: var(--color-primary-light);
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            padding: 0.25rem 0.65rem;
            border-radius: var(--radius-full);
        }

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

        .blog-card-meta {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.78rem;
            color: var(--color-text-faint);
        }

        .meta-sep { color: var(--color-text-faint); }

        .blog-card-title {
            font-size: 1.05rem;
            font-weight: 700;
            line-height: 1.4;
        }

        .blog-card-title a {
            color: var(--color-text);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        .blog-card-title a:hover { color: var(--color-primary-light); }

        .blog-card-excerpt {
            font-size: 0.875rem;
            color: var(--color-text-muted);
            line-height: 1.6;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .blog-card-link {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--color-primary-light);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        .blog-card-link:hover { color: var(--color-primary-dark); }

        /* ══════════════════════════════════════════════
           HELPERS
           ══════════════════════════════════════════════ */
        .section-footer-link {
            text-align: center;
            margin-top: 1rem;
        }

        /* ══════════════════════════════════════════════
           RESPONSIVO
           ══════════════════════════════════════════════ */
        @media (max-width: 1200px) {
            .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .products-grid { grid-template-columns: repeat(3, 1fr); }
        }

        @media (max-width: 1024px) {
            .stats-grid { grid-template-columns: repeat(3, 1fr); }
            .stat-card { border-bottom: 1px solid var(--color-border-subtle); }
            .stat-card:nth-child(3n) { border-right: none; }
            .stat-card:nth-last-child(-n+2) { border-bottom: none; }
            .blog-grid { grid-template-columns: repeat(2, 1fr); }
            .hero-visual-logo-wrap { padding: 1.5rem 1.25rem; }
            .hero-visual-logo { max-width: 280px; }
        }

        @media (max-width: 860px) {
            .hero-content { grid-template-columns: 1fr; padding-top: 2.5rem; padding-bottom: 3.5rem; }
            .hero-visual { display: none; }
            /* Altura flexível: com height fixa + overflow hidden, slides de texto
               longo (RE-VESTE) eram cortados em telas estreitas. */
            .hero-section { height: auto; min-height: clamp(380px, 55vh, 480px); }
        }

        @media (max-width: 768px) {
            .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
            .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
            .services-grid { grid-template-columns: repeat(2, 1fr); }
            .blog-grid { grid-template-columns: 1fr; }
            .stats-grid { grid-template-columns: repeat(2, 1fr); }
            .stat-card:nth-child(3n) { border-right: revert; }
            .stat-card:nth-child(odd) { border-right: 1px solid var(--color-border-subtle); }
            .stat-card:nth-child(even) { border-right: none; }
            .stat-card:nth-last-child(-n+2) { border-bottom: none; }
        }

        @media (max-width: 560px) {
            /* Cards com imagem ficam ilegíveis 2-a-2 em telas muito estreitas */
            .services-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 480px) {
            .products-grid { grid-template-columns: repeat(2, 1fr); }
        }
