:root {
    --primary-color: #0F3D2E;
    /* Deep Green */
    --primary-light: #1A5C45;
    --secondary-color: #D4AF37;
    /* Gold */
    /* Versão escura do dourado para texto sobre fundo claro.
       O dourado puro (#D4AF37) sobre branco dá 2.1:1 e reprova na
       norma de acessibilidade (WCAG AA pede 4.5:1 para texto pequeno). */
    --gold-text: #8A6D12;
    --secondary-hover: #F2C94C;
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
    --bg-light: #FFFFFF;
    --bg-gray: #F9F9F9;
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F2C94C 100%);
    --gradient-green: linear-gradient(135deg, #0F3D2E 0%, #1A5C45 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --navbar-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    /* Impede rolagem horizontal: o badge "500+" e o card .img-2 usam
       transform/translateZ e estouram a largura da tela no celular */
    overflow-x: hidden;
}

h4,
h5,
h6 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Foco visível para navegação por teclado (o padrão do navegador
   some em alguns elementos com borda arredondada) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Os campos do formulário já têm box-shadow no foco; o outline do
   teclado fica fora dele para não sumir sobre o fundo verde */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline-offset: 1px;
}

/* Ícones em SVG inline (sem CDN): o tamanho segue o font-size do contexto */
.ic {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
    overflow: visible;
}

.btn-primary .ic,
.btn-secondary .ic {
    margin-right: 8px;
}

.social-links a .ic {
    font-size: 1.15rem;
}

/* Compensa a navbar fixa ao rolar até uma seção */
section[id],
#contactForm {
    scroll-margin-top: var(--navbar-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--secondary-color);
}

/* Dourado em texto sobre fundo claro: usa a versão escura para ficar
   legível. Onde o fundo é escuro (navbar, rodapé, bloco de contato)
   o dourado claro continua valendo. */
.history .highlight,
.services .highlight,
.products .highlight {
    color: var(--gold-text);
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-text);
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}

/* No bloco de contato (fundo verde escuro) o dourado claro tem
   contraste melhor que a versão escura */
.contact-info .section-tag {
    color: var(--secondary-color);
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translateY(-50%);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    border: 2px solid var(--text-light);
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(15, 61, 46, 0.95);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px 0;
    transition: var(--transition);
}

/* Estado "menu aberto": as barras viram um X */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero 01: composicao adaptada do Shadcn Space (MIT). */
@font-face {
    font-family: 'Google Sans';
    src: url('assets/fonts/google-sans-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Serif';
    src: url('assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}

.home-nav,
.hero {
    font-family: 'Google Sans', 'Segoe UI', system-ui, sans-serif;
    color: #131715;
}

.home-nav {
    padding: 8px clamp(12px, 2.2vw, 38px) 0;
    background: none;
    backdrop-filter: none;
}

.home-nav .container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    max-width: 1216px;
    min-height: 60px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 32px;
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.home-nav.is-scrolled .container {
    background: rgba(255, 255, 255, .77);
    backdrop-filter: blur(18px);
    border-color: rgba(17, 43, 29, .08);
    box-shadow: 0 12px 36px rgba(26, 54, 43, .08);
}

.home-nav .home-logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    font: 700 1.29rem/1 'Google Sans', 'Segoe UI', sans-serif;
    letter-spacing: -.055em;
    color: #11281f;
    white-space: nowrap;
}

.home-logo-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #122c22;
    color: #fff;
    font-size: 1.27rem;
    letter-spacing: 0;
}

.home-logo-period {
    color: #916916;
}

.home-nav .nav-links {
    gap: 1px;
    padding: 2px;
    background: #f1f2f0;
    border-radius: 999px;
}

.home-nav .nav-links a {
    padding: 7px clamp(10px, 1.1vw, 17px);
    border-radius: 999px;
    color: #555c58;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.home-nav .nav-links a:hover,
.home-nav .nav-links a[aria-current] {
    color: #152019;
    background: #fff;
}

.home-nav .nav-links .nav-contact {
    display: none;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
}

.home-nav .hamburger {
    width: 41px;
    height: 41px;
    border: 1px solid #dce3dc;
    border-radius: 50%;
    background: #fff;
}

.home-nav .hamburger span {
    width: 17px;
    height: 2px;
    margin: 4px auto;
    background: #16291f;
}

.home-nav .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.home-nav .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.hero {
    padding: clamp(132px, 13.65vw, 178px) 0 clamp(50px, 6vw, 90px);
    text-align: center;
    background:
        linear-gradient(#fff, transparent 31%, transparent 72%, #fff),
        radial-gradient(ellipse 58% 58% at 16% 50%, #e3f2fa 0%, rgba(233, 246, 252, .6) 55%, transparent 100%),
        radial-gradient(ellipse 58% 56% at 92% 48%, #fff4cb 0%, rgba(255, 249, 225, .7) 54%, transparent 100%),
        #fff;
}

.hero h1 {
    color: #111412;
    font-size: clamp(3.1rem, 8.25vw, 6.25rem);
    font-weight: 550;
    font-optical-sizing: auto;
    line-height: 1;
    letter-spacing: -.048em;
    text-wrap: balance;
}

.hero h1 > span {
    display: block;
}

.hero h1 em {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.07em;
    font-weight: 400;
    letter-spacing: -.009em;
}

.home-hero-intro {
    max-width: 38rem;
    margin: 24px auto 0;
    color: #505c58;
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 2.85vw, 34px);
    margin-top: 28px;
}

.home-pill {
    --pill-height: 48px;
    --pill-inset: 4px;
    --pill-accent: 40px;
    --pill-space: 24px;
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: none;
    min-height: var(--pill-height);
    padding: 0 calc(var(--pill-accent) + var(--pill-space) - 4px) 0 var(--pill-space);
    border-radius: 999px;
    background: #151816;
    color: #fff;
    box-shadow: 0 2px 3px rgba(25, 35, 29, .12);
    font-size: .875rem;
    font-weight: 650;
    white-space: nowrap;
    transition: padding .35s ease, background .25s ease;
}

.home-pill--compact {
    --pill-height: 40px;
    --pill-accent: 32px;
    --pill-space: 16px;
}

.home-pill:hover {
    padding-left: calc(var(--pill-accent) + var(--pill-space) - 4px);
    padding-right: var(--pill-space);
    background: #173629;
}

.home-pill-icon {
    position: absolute;
    right: var(--pill-inset);
    display: grid;
    place-items: center;
    width: var(--pill-accent);
    height: var(--pill-accent);
    border-radius: 50%;
    background: #fff;
    color: #141815;
    transition: right .35s ease, transform .35s ease;
}

.home-pill:hover .home-pill-icon {
    right: calc(100% - var(--pill-inset) - var(--pill-accent));
    transform: rotate(45deg);
}

.home-hero-region {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4c5953;
    text-align: left;
    font-size: .84rem;
    line-height: 1.35;
}

.home-hero-region strong {
    display: block;
    color: #263c31;
    font-weight: 650;
    margin-bottom: 2px;
}

.home-hero-region-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #dce7df;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    color: #29513e;
    font-size: 1.12rem;
}

.home-products {
    max-width: 1160px;
    margin-top: clamp(70px, 8.35vw, 116px);
}

.home-products h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #505c58;
    font: 450 .875rem/1.4 'Google Sans', 'Segoe UI', sans-serif;
}

.home-products h2::before,
.home-products h2::after {
    content: '';
    height: 1px;
    width: min(13.5vw, 158px);
    background: linear-gradient(to left, #c5ceca, transparent);
}

.home-products h2::after {
    background: linear-gradient(to right, #c5ceca, transparent);
}

.home-products ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    gap: 14px 20px;
    margin-top: clamp(20px, 3.25vw, 38px);
}

.home-products a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: 8px;
    color: #17231d;
    font-size: clamp(1rem, 1.65vw, 1.235rem);
    font-weight: 700;
    line-height: 1.1;
}

.home-products a:hover {
    color: #386247;
}

.home-products img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #fff;
}

@media (prefers-reduced-motion: reduce) {
    .home-nav .container,
    .home-pill,
    .home-pill-icon {
        transition: none;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .home-nav .container,
    .hero h1,
    .home-hero-intro,
    .hero-btns {
        animation: home-enter .68s ease-out backwards;
    }

    .home-hero-intro {
        animation-delay: .06s;
    }

    .hero-btns {
        animation-delay: .12s;
    }

    @keyframes home-enter {
        from { opacity: 0; transform: translateY(13px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (max-width: 900px) {
    .home-nav .container {
        grid-template-columns: 1fr auto;
        min-height: 56px;
        padding-block: 6px;
    }

    .home-nav .nav-links {
        display: none;
        position: absolute;
        inset: calc(100% + 8px) 0 auto;
        width: 100%;
        align-items: stretch;
        padding: 8px;
        border: 1px solid #e2e8e3;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(31, 55, 40, .12);
        background: #fbfcfa;
    }

    .home-nav .nav-links.active {
        display: grid;
    }

    .home-nav .nav-links a,
    .home-nav .nav-links .nav-contact {
        display: block;
        padding: 12px 16px;
        text-align: left;
    }

    .home-nav .nav-links a[aria-current] {
        background: #edf3ef;
    }

    .home-nav .hamburger {
        display: block;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: clamp(105px, 23vw, 132px);
    }

    .hero h1 {
        font-size: clamp(2rem, 10.2vw, 3.6rem);
    }

    .hero-content {
        padding-inline: 14px;
    }

    .home-hero-intro {
        max-width: 26rem;
        margin-top: 20px;
        font-size: .95rem;
    }

    .home-products {
        margin-top: 55px;
    }

    .home-products h2 {
        gap: 10px;
    }

    .home-products ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 12px;
    }

    .home-products img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .home-nav-actions .home-pill {
        display: none;
    }
}

/* History Section */
.history {
    overflow-x: clip;
    padding: clamp(60px, 10vh, 100px) 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.history-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.history-content p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    gap: 15px;
}

.feature .ic {
    font-size: 2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.feature p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Container dos cards sobrepostos da história */
.history-images {
    position: relative;
    height: 520px;
    transform-style: preserve-3d;
}

.img-card {
    position: absolute;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.img-card a {
    display: block;
    width: 100%;
    height: 100%;
}

.img-1 {
    top: 0;
    right: 0;
    width: 80%;
    height: 70%;
    z-index: 1;
    transform: translateZ(20px);
}

.img-2 {
    bottom: 0;
    left: 0;
    width: 60%;
    height: 50%;
    z-index: 2;
    border: 5px solid var(--bg-light);
    transform: translateZ(40px);
}

.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: 10%;
    right: 10%;
    background: var(--primary-color);
    color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    z-index: 3;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateZ(60px);
}

.experience-badge .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Rajdhani', 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    color: var(--secondary-color);
    line-height: 1;
}

/* Services Section */
.services {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-header p {
    color: #666;
    font-size: 1.2rem;
}

.services .section-header {
    margin-bottom: clamp(32px, 4vw, 56px);
}

.servicos-detalhes {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
}

.servicos-fotos {
    position: relative;
    isolation: isolate;
    justify-self: center;
    width: min(78%, 330px);
    aspect-ratio: 328 / 420;
}

.servicos-fotos::before {
    content: '';
    position: absolute;
    inset: -12% -12%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #e7d9fa 0%, rgba(234, 220, 251, .76) 36%, transparent 72%);
}

.servicos-fotos img {
    position: absolute;
    display: block;
    border-radius: clamp(14px, 1.6vw, 22px);
    object-fit: cover;
}

.servicos-foto-transporte {
    top: 0;
    left: 0;
    width: 78.5%;
    height: 90%;
    object-position: 38% center;
}

.servicos-foto-documentacao {
    right: 0;
    bottom: 0;
    width: 66%;
    height: 70%;
}

.servicos-lista {
    display: grid;
    gap: clamp(24px, 3.2vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.servicos-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 2vw, 24px);
}

.servicos-icone {
    display: grid;
    place-items: center;
    width: clamp(54px, 6vw, 76px);
    aspect-ratio: 1;
    border-radius: 50%;
    isolation: isolate;
}

.servicos-icone picture {
    display: block;
    width: 62%;
    mix-blend-mode: multiply;
}

.servicos-icone img {
    display: block;
    width: 100%;
    height: auto;
}

.servicos-icone[data-icone="caminhao"] {
    background: #eee8fb;
}

.servicos-icone[data-icone="rede"] {
    background: #dcfae9;
}

.servicos-icone[data-icone="escudo"] {
    background: #ffecd4;
}

.servicos-item h3 {
    margin: 0 0 6px;
    color: var(--primary-color);
    font-size: 1.15rem;
    line-height: 1.25;
}

.servicos-item p {
    max-width: 380px;
    margin: 0;
    color: #4d5954;
    font-size: 1rem;
    line-height: 1.45;
}

.servicos-contato {
    margin-top: clamp(32px, 4vw, 52px);
    text-align: center;
}

@media (max-width: 720px) {
    .servicos-detalhes {
        grid-template-columns: minmax(0, 1fr);
    }

    .servicos-fotos {
        width: min(78%, 300px);
    }

    .servicos-lista {
        width: min(100%, 420px);
        justify-self: center;
    }

    .servicos-item h3 {
        font-size: 1.0625rem;
    }
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transform: translateZ(10px);
}

.link-arrow:hover {
    color: var(--secondary-color);
    gap: 10px;
}

/* Products Section */
.products {
    padding: clamp(60px, 10vh, 100px) 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.produto-carrossel {
    --produto-passo: clamp(44px, 5vw, 60px);
    position: relative;
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 410px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #e5eae2;
    border-radius: clamp(28px, 4.8vw, 60px);
    background: #f6f8f4;
    font-family: 'Google Sans', 'Segoe UI', system-ui, sans-serif;
}

.produto-carrossel-ancora {
    position: absolute;
    top: 0;
    scroll-margin-top: calc(var(--navbar-height) + 16px);
}

.produto-carrossel-opcoes {
    position: relative;
    z-index: 1;
    background: var(--primary-color);
}

.produto-carrossel-posicao {
    position: absolute;
    top: 50%;
    left: clamp(24px, 5.2vw, 72px);
    translate: 0 -50%;
    transform: translateY(calc(var(--produto-posicao) * var(--produto-passo)));
    transition: transform .58s cubic-bezier(.22, .76, .25, 1);
}

.produto-carrossel-posicao[data-extremo="true"] {
    transition: none;
}

.produto-carrossel-opcao {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 0 clamp(15px, 2.1vw, 28px);
    border: 1px solid rgba(240, 248, 241, var(--produto-borda, .34));
    border-radius: 999px;
    background: transparent;
    color: rgba(240, 248, 241, var(--produto-texto, .85));
    font: inherit;
    font-size: .83rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: color .42s ease, background-color .42s ease, border-color .42s ease;
}

.produto-carrossel-posicao[data-distancia="2"] {
    --produto-borda: .18;
    --produto-texto: .72;
}

.produto-carrossel-posicao[data-distancia="3"] {
    --produto-borda: .09;
    --produto-texto: .62;
}

.produto-carrossel-opcao .ic {
    font-size: 1rem;
    opacity: .8;
    transition: color .42s ease, opacity .42s ease;
}

@media (hover: hover) {
    .produto-carrossel-opcao[aria-pressed="false"]:hover {
        border-color: rgba(240, 248, 241, .5);
        color: #f0f8f1;
    }
}

.produto-carrossel-opcao:focus-visible {
    outline: 2px solid #f3cb68;
    outline-offset: 2px;
}

.produto-carrossel-opcao[aria-pressed="true"] {
    border-color: #fff;
    background: #fff;
    color: var(--primary-color);
}

.produto-carrossel-opcao[aria-pressed="true"] .ic {
    color: var(--gold-text);
    opacity: 1;
}

.produto-carrossel-fotos {
    display: grid;
    place-items: center;
    min-width: 0;
}

.produto-carrossel-pilha {
    position: relative;
    width: min(59%, 420px);
    aspect-ratio: 4 / 5;
}

.produto-carrossel-foto {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: clamp(4px, .66vw, 8px) solid #fff;
    border-radius: clamp(22px, 3.4vw, 44px);
    background: #dde4db;
    opacity: 0;
    transform: scale(.72);
    pointer-events: none;
    transition: transform .62s cubic-bezier(.22, .76, .25, 1), opacity .42s ease;
}

.produto-carrossel-foto[data-posicao="anterior"],
.produto-carrossel-foto[data-posicao="proxima"] {
    z-index: 1;
    opacity: .62;
}

.produto-carrossel-foto[data-posicao="anterior"] {
    transform: translateX(-28%) scale(.85) rotate(-3deg);
}

.produto-carrossel-foto[data-posicao="proxima"] {
    transform: translateX(28%) scale(.85) rotate(3deg);
}

.produto-carrossel-foto[data-posicao="ativa"] {
    z-index: 2;
    opacity: 1;
    transform: none;
}

.produto-carrossel-foto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(.76);
    transition: filter .5s ease;
}

.produto-carrossel-foto[data-posicao="ativa"] img {
    filter: none;
}

.produto-carrossel-legenda {
    position: absolute;
    inset: auto 0 0;
    padding: 55px clamp(16px, 3vw, 36px) clamp(16px, 3vw, 36px);
    background: linear-gradient(to top, rgba(6, 19, 13, .95), rgba(6, 19, 13, .7) 61%, transparent);
    color: #fff;
    visibility: hidden;
    opacity: 0;
    translate: 0 8px;
    transition: translate .36s ease, opacity .3s ease;
}

.produto-carrossel-foto[data-posicao="ativa"] .produto-carrossel-legenda {
    visibility: visible;
    opacity: 1;
    translate: 0;
}

.produto-carrossel-legenda span {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.produto-carrossel-legenda p {
    margin: 10px 0 0;
    font-size: clamp(1rem, 1.65vw, 1.32rem);
    line-height: 1.2;
}

@media (max-width: 680px) {
    .produto-carrossel {
        --produto-passo: 44px;
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    .produto-carrossel-opcoes {
        min-height: 338px;
    }

    .produto-carrossel-posicao {
        left: 50%;
        translate: -50% -50%;
    }

    .produto-carrossel-opcao {
        min-height: 38px;
        font-size: .78rem;
    }

    .produto-carrossel-fotos {
        padding-block: 32px;
    }

    .produto-carrossel-pilha {
        width: min(62%, 290px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .produto-carrossel-posicao,
    .produto-carrossel-opcao,
    .produto-carrossel-opcao .ic,
    .produto-carrossel-foto,
    .produto-carrossel-foto img,
    .produto-carrossel-legenda {
        transition: none;
    }
}

.products-footer {
    text-align: center;
    margin-top: 40px;
}

.products-footer p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: clamp(60px, 10vh, 100px) 0;
    background-color: rgba(249, 249, 249, 0.8);
    backdrop-filter: blur(5px);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
}

.contact-info {
    background: var(--primary-color);
    padding: 80px;
    color: var(--text-light);
    transform: translateZ(20px);
}

.contact-info h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* A opacidade vale só para o parágrafo de introdução: se valer para
   todos, os links de telefone/e-mail (dourado) caem para 4.24:1 */
.contact-info > p {
    opacity: 0.8;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Telefone, e-mail e WhatsApp clicáveis no bloco de contato */
.info-item a {
    color: var(--secondary-color);
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--text-light);
    border-bottom-color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Rede social sem URL cadastrada: fica visível, mas desativada */
.social-links a[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.contact-form-box {
    padding: 80px;
    transform: translateZ(10px);
}

.contact-form-box h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-form-box p {
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

/* O <select> perde a seta nativa para caber a seta desenhada
   (SVG inline em data URI, sem depender de CDN) */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* "Selecione" (opção vazia) aparece em cinza para não parecer
   uma resposta já escolhida */
.form-group select:invalid {
    color: #666;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

.full-width {
    width: 100%;
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* Footer */
footer {
    background: #0a291f;
    color: var(--text-light);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col p {
    opacity: 0.7;
    margin: 20px 0;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-light);
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col .ic {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.footer-badges span {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* 3D Tilt Effect Class */
.tilt-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

/* ---------- Revelação ao rolar (substitui o AOS) ----------
   O estado inicial "invisível" é aplicado pelo JS (classe .aos-init).
   Se o JS não carregar, o conteúdo aparece normalmente — o site nunca
   fica em branco. */
[data-aos] {
    transition-property: opacity, transform, box-shadow;
    transition-duration: 800ms, 800ms, 300ms;
    transition-timing-function: ease;
}

[data-aos].aos-init {
    opacity: 0;
}

[data-aos="fade-up"] {
    transform: translate3d(0, 60px, 0);
}

[data-aos="fade-down"] {
    transform: translate3d(0, -60px, 0);
}

[data-aos="fade-left"] {
    transform: translate3d(-60px, 0, 0);
}

[data-aos="fade-right"] {
    transform: translate3d(60px, 0, 0);
}

[data-aos="zoom-in"] {
    transform: scale(0.92);
}

/* Precisa vir depois das regras acima para vencer o empate de especificidade */
[data-aos].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    [data-aos],
    [data-aos].aos-init,
    [data-aos].is-visible {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .history-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .history-images {
        height: 500px;
        order: -1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info,
    .contact-form-box {
        padding: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-header h2,
    .history-content h2,
    .contact-info h2 {
        font-size: 2rem;
    }

    .services,
    .products,
    .contact {
        padding: 60px 0;
    }

    .contact-wrapper {
        gap: 30px;
    }

    .contact-info,
    .contact-form-box {
        padding: 30px;
    }
}

@media (max-width: 360px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================================================
 * Seção de notícias (alimentada pelo Supabase)
 * ================================================================== */
.news {
    padding: 100px 0;
    background: var(--bg-gray);
}

.news .highlight {
    color: var(--gold-text);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.news-card {
    background: var(--bg-light);
    border: 1px solid rgba(15, 61, 46, 0.06);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.news-media {
    height: 180px;
    overflow: hidden;
    background: var(--gradient-green);
}

.news-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.news-media-placeholder .ic {
    width: 56px;
    height: 56px;
    opacity: 0.85;
}

.news-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.news-category {
    display: inline-block;
    /* Fundo sólido claro + texto em dourado escuro: garante o contraste
       mínimo do WCAG AA mesmo com abadge sobre o card branco */
    background: #FDF6E3;
    color: #6E560C;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 50px;
}

.news-date {
    font-size: 0.8rem;
    color: #666;
}

.news-card h3 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 10px;
}

.news-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.news-card .news-link {
    font-size: 0.9rem;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    padding: 40px 20px;
    background: var(--bg-light);
    border: 1px dashed rgba(15, 61, 46, 0.2);
    border-radius: 12px;
}

/* ==================================================================
 * Página de notícias (noticias.html)
 * ================================================================== */

/* A navbar é fixa: o conteúdo começa abaixo dela */
.page-noticias {
    padding-top: var(--navbar-height);
}

.news-hero {
    padding: 70px 0 10px;
    background: var(--bg-light);
}

.news-hero-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-green);
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.news-hero-mark .ic {
    width: 30px;
    height: 30px;
}

.news-hero h1 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.15;
    color: var(--primary-color);
    max-width: 780px;
}

.news-hero .highlight {
    color: var(--gold-text);
}

.news-hero-texto {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 640px;
    margin-top: 14px;
}

.news-hero-links {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.news-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.news-hero-link:hover {
    color: var(--gold-text);
}

.news-hero-link .ic {
    width: 1.05rem;
    height: 1.05rem;
}

.news-page {
    padding-top: 60px;
}

.news-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.news-more {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

/* O atributo hidden precisa vencer o display do botão */
.news-more[hidden] {
    display: none;
}

.news-more:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-more:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* ==================================================================
 * Chamada das notícias na página inicial
 * (a lista completa fica em noticias.html)
 * ================================================================== */
.news-teaser {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.news-teaser h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 18px;
}

@media (max-width: 576px) {
    .news-teaser h2 {
        font-size: 2rem;
    }
}

.news-teaser .highlight {
    color: var(--gold-text);
}

.news-teaser-texto {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.news-teaser .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.news-teaser .btn-primary .ic {
    width: 1.1rem;
    height: 1.1rem;
}

/* ==================================================================
 * Formulário: consentimento (LGPD) e campo isca anti-spam
 * ================================================================== */
.check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #444;
    cursor: pointer;
}

.check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    flex-shrink: 0;
    margin: 2px 0 0;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* Campo isca: invisível para o usuário, mas presente no formulário
   para que robôs de preenchimento automático acabem marcando */
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news {
        padding: 70px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .news-hero {
        padding: 45px 0 5px;
    }

    .news-page {
        padding-top: 45px;
    }
}

/* ==================================================================
 * Manchete da notícia (o card da listagem)
 * ==================================================================
 * O card inteiro é um link para a página da matéria. O título fica
 * com no máximo 2 linhas e o resumo com 3 — assim todos os cards
 * da linha têm a mesma altura.
 * ================================================================== */

.news-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.news-card-link:hover {
    color: inherit;
}

.news-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.news-card p.news-resumo {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-indicador {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.news-card-link:hover .news-indicador {
    color: var(--gold-text);
}

.news-indicador .ic {
    transition: transform 0.3s ease;
}

.news-card-link:hover .news-indicador .ic {
    transform: translateX(4px);
}

/* Cards da listagem de notícias */
.news-page > .container {
    max-width: 960px;
}

#newsGrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.news-entrada {
    position: relative;
    min-width: 0;
}

.news-entrada .news-card-link {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    min-height: 210px;
}

.news-entrada .news-card-link:hover {
    transform: none;
}

.news-entrada .news-media {
    position: relative;
    height: auto;
}

.news-entrada .news-media img {
    position: absolute;
    inset: 0;
}

.news-entrada .news-body {
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 22px 24px;
}

.news-entrada .news-card h3 {
    display: block;
    min-height: 0;
    font-family: inherit;
    font-size: clamp(1.08rem, 2.5vw, 1.28rem);
    margin-bottom: 8px;
}

.news-entrada .news-resumo {
    margin-bottom: 14px;
}

.news-rodape-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    min-height: 30px;
    margin-top: auto;
    padding-right: 48px;
}

.news-fonte {
    font-size: 0.8rem;
    color: #595e5b;
}

.news-compartilhar {
    position: absolute;
    right: 13px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
}

.news-compartilhar .ic {
    width: 18px;
    height: 18px;
}

.news-compartilhar:hover,
.news-compartilhar:focus-visible {
    background: #eaf1ed;
}

.news-compartilhar-status {
    position: absolute;
    right: 61px;
    bottom: 19px;
    pointer-events: none;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.79rem;
}

.news-compartilhar-status:empty {
    padding: 0;
}

@media (max-width: 640px) {
    .news-entrada .news-card-link {
        display: flex;
    }

    .news-entrada .news-media {
        aspect-ratio: 16 / 9;
    }

    .news-entrada .news-body {
        padding: 16px 18px 19px;
    }
}

/* ==================================================================
 * Filtro por categoria (multi-seleção)
 * ================================================================== */

.news-toolbar {
    padding: 6px;
    border: 1px solid rgba(15, 61, 46, 0.16);
    border-radius: 16px;
    background: var(--bg-light);
    box-shadow: 0 2px 5px rgba(15, 61, 46, 0.04);
}

.news-toolbar-linha,
.news-data,
.news-data-controle,
.news-data-atalhos,
.news-toolbar-acoes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-toolbar-linha {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.news-data {
    flex-wrap: wrap;
    padding-inline: 6px;
}

.news-data-rotulo {
    margin-inline-end: 4px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
}

.news-toolbar-temas,
.news-toolbar-share,
.news-data-nav,
.news-data-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.news-toolbar-temas:hover,
.news-toolbar-temas[aria-expanded="true"],
.news-data-nav:hover:not(:disabled),
.news-data-chip:hover:not(:disabled),
.news-data-chip[aria-pressed="true"] {
    background: #edf2ee;
}

.news-toolbar-compartilhar {
    position: relative;
    padding-inline-start: 6px;
    border-inline-start: 1px solid rgba(15, 61, 46, 0.14);
}

.news-toolbar-share {
    background: var(--primary-color);
    color: #fff;
}

.news-toolbar-share:hover {
    background: #195340;
}

.news-toolbar-compartilhar .news-compartilhar-status {
    z-index: 1;
    top: calc(100% + 6px);
    right: 0;
    bottom: auto;
}

.news-toolbar [hidden] {
    display: none;
}

.filtro {
    margin-top: 6px;
    padding: 10px 6px 6px;
    border-top: 1px solid rgba(15, 61, 46, 0.12);
}

.filtro-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filtro-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid rgba(15, 61, 46, 0.18);
    background: var(--bg-light);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.filtro-chip:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filtro-chip[aria-pressed="true"] {
    background: var(--gradient-green);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.filtro-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: rgba(15, 61, 46, 0.08);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
}

.filtro-chip[aria-pressed="true"] .filtro-chip-count {
    background: rgba(255, 255, 255, 0.22);
    color: var(--text-light);
}

.news-data-nav {
    width: 36px;
    padding: 0;
}

.news-data-nav .ic {
    width: 16px;
    height: 16px;
}

.news-data-nav:disabled,
.news-data-chip:disabled {
    opacity: 0.4;
    cursor: default;
}

.news-data-input {
    width: 8.5rem;
    min-width: 0;
    min-height: 40px;
    padding: 6px 8px;
    border: 1px solid rgba(15, 61, 46, 0.18);
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--primary-color);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.news-data-status {
    margin: 12px 0 0;
    color: #54625c;
    font-size: 0.88rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .news-toolbar-acoes {
        width: 100%;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px solid rgba(15, 61, 46, 0.12);
    }

    .news-toolbar-compartilhar {
        padding-inline-start: 0;
        border-inline-start: 0;
    }

    .news-toolbar button,
    .news-data-input {
        min-height: 44px;
    }

    .news-data-input {
        font-size: 1rem;
    }

    .filtro-chip {
        padding-inline: 13px;
    }
}

/* Botão do estado vazio ("ver as de ontem" / "voltar para hoje") */
.news-data-acao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 12px 22px;
    border: none;
    border-radius: 50px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.news-data-acao:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ==================================================================
 * Anúncios (espaços patrocinados)
 * ==================================================================
 * Todo anúncio tem selo visível de "Publicidade", link com
 * rel="sponsored nofollow noopener" e o aviso de que a Q GRÃOS é
 * corretora e recebe comissão.
 * ================================================================== */

.anuncio,
.anuncio-card {
    background: var(--bg-light);
    border: 1px dashed rgba(15, 61, 46, 0.28);
    border-radius: 12px;
}

.anuncio-selo {
    display: inline-block;
    align-self: flex-start;
    background: rgba(15, 61, 46, 0.08);
    color: var(--primary-color);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin: 14px 14px 0;
}

.anuncio-conteudo {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 20px 8px;
    flex-wrap: wrap;
}

.anuncio-marca {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    max-width: 160px;
    height: 56px;
    padding: 6px 10px;
    background: var(--bg-gray);
    border-radius: 8px;
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.anuncio-marca img {
    max-height: 44px;
    width: auto;
    object-fit: contain;
}

.anuncio-texto {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 220px;
    min-width: 0;
}

.anuncio-titulo {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.05rem;
    color: var(--primary-color);
}

.anuncio-frase {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
}

.anuncio-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    transition: var(--transition);
}

.anuncio-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.anuncio-cta[aria-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
}

.anuncio-aviso {
    padding: 0 20px 14px;
    font-size: 0.74rem;
    line-height: 1.5;
    color: #6b6b6b;
}

.anuncio-politica {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.anuncio-politica:hover {
    color: var(--gold-text);
}

/* A faixa ocupa a linha inteira da grade */
.anuncio-faixa {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

/* O card patrocinado ocupa uma célula da grade, igual uma notícia */
.anuncio-card {
    display: flex;
    flex-direction: column;
    border-style: solid;
    border-color: rgba(15, 61, 46, 0.12);
    background: linear-gradient(180deg, #FDFBF3 0%, #FFFFFF 100%);
}

.anuncio-card .anuncio-selo {
    margin: 16px 16px 0;
}

.anuncio-card .anuncio-conteudo {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 6px;
    flex: 1;
}

.anuncio-card .anuncio-marca {
    width: 100%;
    max-width: none;
}

.anuncio-card .anuncio-aviso {
    padding: 0 16px 16px;
}

/* ==================================================================
 * Página da notícia (noticia.html)
 * ================================================================== */

.pagina-noticia {
    background: var(--bg-gray);
}

.trilha {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 26px 0 4px;
    font-size: 0.88rem;
    color: #666;
}

.trilha a {
    color: var(--primary-color);
    font-weight: 600;
}

.trilha a:hover {
    color: var(--gold-text);
}

.trilha .ic {
    font-size: 0.8rem;
    color: #9a9a9a;
}

.noticia-artigo {
    padding: 10px 0 70px;
}

.noticia-estado {
    text-align: center;
    max-width: 620px;
    margin: 60px auto;
    padding: 50px 30px;
    background: var(--bg-light);
    border: 1px dashed rgba(15, 61, 46, 0.25);
    border-radius: 14px;
}

.noticia-estado[hidden] {
    display: none;
}

.noticia-estado-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--gradient-green);
    color: var(--secondary-color);
    margin-bottom: 18px;
}

.noticia-estado-mark .ic {
    width: 32px;
    height: 32px;
}

.noticia-estado h1 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.noticia-estado p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 26px;
}

.noticia-cabecalho {
    max-width: 880px;
    margin: 18px auto 0;
    text-align: center;
}

.noticia-cabecalho .news-meta {
    justify-content: center;
}

.noticia-leitura {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: #666;
}

.noticia-cabecalho h1 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    line-height: 1.18;
    color: var(--primary-color);
    margin-bottom: 18px;
}

.noticia-resumo {
    color: #4a4a4a;
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}

.noticia-resumo[hidden] {
    display: none;
}

.noticia-capa {
    max-width: 980px;
    margin: 34px auto 0;
}

.noticia-capa[hidden] {
    display: none;
}

.noticia-capa img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}

.noticia-corpo {
    max-width: 760px;
    margin: 38px auto 0;
    font-size: 1.06rem;
    line-height: 1.85;
    color: #2f2f2f;
}

.noticia-corpo p {
    margin-bottom: 22px;
}

.noticia-corpo h2 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.55rem;
    color: var(--primary-color);
    margin: 34px 0 14px;
}

.noticia-corpo ul {
    list-style: disc;
    padding-left: 22px;
    margin: 0 0 22px;
}

.noticia-corpo li {
    margin-bottom: 8px;
}

.noticia-sem-texto {
    padding: 22px;
    background: var(--bg-light);
    border: 1px dashed rgba(15, 61, 46, 0.25);
    border-radius: 10px;
    color: #555;
}

.noticia-credito {
    max-width: 760px;
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 61, 46, 0.14);
    font-size: 0.86rem;
    color: #6f6f6f;
}

.noticia-credito[hidden] {
    display: none;
}

.noticia-acoes {
    max-width: 760px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.noticia-acoes .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    padding: 12px 24px;
}

.noticia-anuncio {
    padding: 0 0 24px;
}

.noticia-anuncio[hidden] {
    display: none;
}

/* ==================================================================
 * Chamada compacta do fim da matéria ("O que você busca hoje?")
 * ================================================================== */

.noticia-lead {
    padding: 34px 0;
    background: var(--bg-light);
    border-top: 1px solid rgba(15, 61, 46, 0.08);
    border-bottom: 1px solid rgba(15, 61, 46, 0.08);
}

.noticia-lead-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    background: var(--bg-gray);
    border: 1px solid rgba(15, 61, 46, 0.12);
    border-left: 4px solid var(--secondary-color);
    border-radius: 12px;
    padding: 16px 22px;
}

.noticia-lead-texto {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.noticia-lead-rotulo {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    cursor: pointer;
}

/* O <select> perde a seta nativa para caber a seta desenhada
   (SVG inline em data URI, sem depender de CDN) */
.noticia-lead-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 235px;
    padding: 11px 40px 11px 14px;
    border: 1px solid rgba(15, 61, 46, 0.2);
    border-radius: 8px;
    background-color: var(--bg-light);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230F3D2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.noticia-lead-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 61, 46, 0.1);
}

/* Botão dourado: mesmo padrão visual do resto do site */
.noticia-lead-botao {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.noticia-lead-botao:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.noticia-lead-botao .ic {
    font-size: 1.15rem;
}

/* ==================================================================
 * Página de publicidade (publicidade.html)
 * ================================================================== */

.politica-page {
    padding: 50px 0 90px;
    background: var(--bg-gray);
}

.politica-cabecalho {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.politica-cabecalho h1 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: clamp(2rem, 4.4vw, 2.9rem);
    color: var(--primary-color);
    margin-bottom: 14px;
}

/* Fundo claro: o dourado puro nao passa do minimo de contraste.
   Aqui entra a versao escura do dourado. */
.politica-cabecalho h1 .highlight {
    color: var(--gold-text);
}

.politica-cabecalho p {
    color: #555;
    line-height: 1.7;
}

.politica-caixa {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 46px 50px;
}

.politica-caixa h2 {
    font-family: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 34px 0 12px;
}

.politica-caixa h2:first-child {
    margin-top: 0;
}

.politica-caixa p,
.politica-caixa li {
    color: #444;
    line-height: 1.8;
}

.politica-caixa ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.politica-caixa a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.politica-caixa a:hover {
    color: var(--gold-text);
}

/* ---------- Responsivo: filtro, anúncios e matéria ---------- */

@media (max-width: 900px) {
    .anuncio-conteudo {
        gap: 14px;
    }

    .anuncio-marca {
        min-width: 80px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .noticia-capa img {
        max-height: 300px;
    }

    .noticia-corpo {
        font-size: 1rem;
    }

    .noticia-cabecalho h1 {
        margin-bottom: 14px;
    }

    .noticia-lead {
        padding: 24px 0;
    }

    .noticia-lead-box {
        padding: 16px 18px;
        gap: 14px;
    }

    .noticia-lead-texto {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .noticia-lead-select {
        width: 100%;
        min-width: 0;
    }

    .noticia-lead-botao {
        width: 100%;
        justify-content: center;
    }

    .politica-caixa {
        padding: 30px 24px;
    }
}

/* ==================================================================
 * Área de cotações (cotacoes.html)
 * ==================================================================
 * O painel de status e a tabela exibem os dados da tabela cotacoes do Supabase.
 * ================================================================== */

/* A navbar é fixa: o conteúdo começa abaixo dela */
.page-cotacoes {
    padding-top: var(--navbar-height);
}

/* ---------- Abertura das cotações ---------- */

.cot-hero {
    padding: clamp(24px, 4vw, 48px) 0 clamp(24px, 3vw, 40px);
    color: var(--primary-color);
    background: #fcfdfb;
    font-family: 'Google Sans', 'Segoe UI', system-ui, sans-serif;
}

.cot-hero-grade {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 58%) 1fr;
    align-items: center;
    min-height: clamp(390px, 41.5vw, 480px);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #e0e7dd;
    border-radius: 24px;
    background: #fff;
}

.cot-hero-conteudo {
    z-index: 1;
    padding: clamp(24px, 3.55vw, 44px);
}

.cot-hero-tag {
    display: block;
    margin-bottom: 15px;
    color: var(--gold-text);
    font-size: .77rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.cot-hero h1 {
    color: var(--primary-color);
    font-size: clamp(2.05rem, 4.1vw, 3.2rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -.055em;
}

.cot-hero h1 em {
    color: #826016;
    font: italic 400 1.13em/1 'Instrument Serif', Georgia, serif;
    letter-spacing: -.015em;
}

.cot-hero h1 span {
    display: block;
}

.cot-hero-texto {
    max-width: 34rem;
    margin-top: 18px;
    color: #4d6056;
    font-size: 1rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.cot-hero-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.cot-hero-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dce6dd;
    border-radius: 10px;
    background: #fff;
    color: var(--primary-color);
    font-size: .88rem;
    font-weight: 650;
    transition: background .2s, border-color .2s;
}

.cot-hero-link:hover {
    background: #f3f7f3;
    border-color: #aac2b1;
}

.cot-hero-link-destaque {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.cot-hero-link-destaque:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
}

.cot-hero-visual {
    position: absolute;
    inset: 0 0 0 51%;
    overflow: hidden;
    background: radial-gradient(ellipse at 87% 48%, #ecf4ec, transparent 65%),
        radial-gradient(ellipse at 100% 86%, #faf2d8, transparent 58%);
}

.cot-orbitas {
    --orbitas-tamanho: clamp(370px, 44vw, 520px);
    position: absolute;
    inset: 0;
}

.cot-orbita,
.cot-orbita-centro {
    position: absolute;
    left: calc(100% - clamp(38px, 4.75vw, 68px));
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
}

.cot-orbita {
    width: calc(var(--orbitas-tamanho) * var(--orbita-proporcao));
    aspect-ratio: 1;
    border: 2px dotted #c0cfc2;
    animation: cot-orbita-giro var(--orbita-tempo) linear infinite;
}

.cot-orbita-posicao {
    position: absolute;
    display: grid;
    place-items: center;
    width: 0;
    height: 0;
}

.cot-orbita-item {
    display: grid;
    justify-items: center;
    position: absolute;
    width: 44px;
    height: 44px;
    animation: cot-orbita-giro var(--orbita-tempo) linear infinite reverse;
}

@keyframes cot-orbita-giro {
    from { transform: rotate(0); }
    to { transform: rotate(360deg); }
}

.cot-orbita-icone {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid #e0e8e0;
    border-radius: 50%;
    background: #fff;
    color: #24563f;
    box-shadow: 0 3px 10px rgba(15, 61, 46, .10);
}

.cot-orbita-icone:is([data-icone="ouro"], [data-icone="milho"], [data-icone="farelo"]) {
    color: #8a6318;
    border-color: #ebe1c8;
    background: #fffcf4;
}

.cot-orbita-icone svg {
    width: 23px;
    height: 23px;
}

.cot-orbita-nome {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    translate: -50%;
    border-radius: 999px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, .91);
    color: #2e5241;
    font-size: .67rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.cot-orbita-centro {
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(65px, 7vw, 88px);
    aspect-ratio: 1;
    border: 1px solid #e1eae1;
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(15, 61, 46, .10);
    font-size: clamp(30px, 3.6vw, 43px);
}

@media (prefers-reduced-motion: reduce) {
    .cot-orbita,
    .cot-orbita-item {
        animation: none;
    }
}

.cot-hero-painel {
    display: grid;
    grid-template-columns: 1fr 1fr 1.45fr;
    margin-top: 14px;
    border: 1px solid #e0e7dd;
    border-radius: 15px;
    background: #fff;
}

.cot-hero-stat {
    padding: 13px clamp(12px, 2.3vw, 26px);
}

.cot-hero-stat + .cot-hero-stat {
    border-left: 1px solid #e0e7dd;
}

.cot-hero-stat dt {
    color: #4d6056;
    font-size: .79rem;
}

.cot-hero-stat dd {
    margin-top: 4px;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.cot-hero-stat-data dd {
    font-size: 1.02rem;
}

@media (max-width: 767px) {
    .cot-hero-grade {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .cot-hero h1 {
        font-size: clamp(1.91rem, 6.35vw, 2.95rem);
    }

    .cot-hero-visual {
        position: relative;
        inset: auto;
        height: clamp(232px, 63vw, 283px);
    }

    .cot-orbitas {
        --orbitas-tamanho: clamp(260px, 78vw, 340px);
    }

    .cot-orbita,
    .cot-orbita-centro {
        left: calc(100% - clamp(48px, 16vw, 90px));
    }

    .cot-orbita-item {
        width: 34px;
        height: 34px;
    }

    .cot-orbita-icone svg {
        width: 19px;
        height: 19px;
    }
}

@media (max-width: 479px) {
    .cot-hero > .container,
    .cot > .container {
        padding-inline: 12px;
    }

    .cot-hero-conteudo {
        padding: 23px 18px 12px;
    }

    .cot-hero-painel {
        grid-template-columns: 1fr 1fr;
    }

    .cot-hero-stat + .cot-hero-stat-data {
        grid-column: 1 / -1;
        border-top: 1px solid #e0e7dd;
        border-left: none;
    }
}

/* ---------- Seção principal ---------- */

.cot {
    padding: clamp(24px, 4vw, 48px) 0;
    background: var(--bg-gray);
}

/* Painel de cotações */
.cot-painel {
    --cot-borda: #dce6e0;
    --cot-texto-suave: #52625a;
    background: var(--bg-light);
    border: 1px solid var(--cot-borda);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.cot-painel [hidden] {
    display: none;
}

.cot-filtros {
    position: relative;
    z-index: 2;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cot-borda);
}

.cot-filtro-barra,
.cot-filtro-selecao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cot-filtro-selecao:empty {
    display: none;
}

.cot-filtros button {
    font: inherit;
    cursor: pointer;
}

.cot-filtro-token {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    border: 1px solid var(--cot-borda);
    border-radius: 8px;
    background: #f4f8f5;
    color: var(--primary-color);
    font-size: 0.82rem;
}

.cot-filtro-editar,
.cot-filtro-remover,
.cot-filtro-adicionar,
.cot-filtro-limpar,
.cot-filtro-menu-topo button {
    color: inherit;
    background: transparent;
    border: 0;
}

.cot-filtro-editar {
    display: flex;
    align-items: stretch;
    min-width: 0;
    border-radius: 7px 0 0 7px;
    text-align: left;
}

.cot-filtro-campo,
.cot-filtro-operador,
.cot-filtro-valor {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    min-height: 36px;
}

.cot-filtro-campo,
.cot-filtro-operador {
    border-right: 1px solid var(--cot-borda);
    white-space: nowrap;
}

.cot-filtro-operador {
    color: var(--cot-texto-suave);
}

.cot-filtro-valor {
    font-weight: 700;
}

.cot-filtros .cot-filtro-remover {
    min-width: 34px;
    border-radius: 0 7px 7px 0;
    border-left: 1px solid var(--cot-borda);
    color: var(--cot-texto-suave);
    font-size: 1.15rem;
    line-height: 1;
}

.cot-filtro-adicionar,
.cot-filtro-limpar {
    min-height: 38px;
    padding: 4px 12px;
    border-radius: 8px;
    color: var(--primary-color);
}

.cot-filtros .cot-filtro-adicionar,
.cot-filtros .cot-filtro-limpar {
    font-size: 0.85rem;
    font-weight: 600;
}

.cot-filtro-adicionar {
    border: 1px dashed #879e92;
}

.cot-filtro-adicionar span {
    margin-right: 3px;
    font-size: 1.05rem;
}

.cot-filtro-editar:hover,
.cot-filtro-remover:hover,
.cot-filtro-adicionar:hover,
.cot-filtro-limpar:hover,
.cot-filtros button[aria-expanded="true"],
.cot-filtro-menu-topo button:hover {
    background: #eaf3ed;
}

.cot-filtros :focus-visible,
.cot-tabela-rolagem:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.cot-filtro-menu {
    position: absolute;
    inset-block-start: calc(100% - 8px);
    inset-inline-start: 20px;
    width: min(320px, calc(100% - 40px));
    padding: 8px;
    border: 1px solid var(--cot-borda);
    border-radius: 12px;
    background: var(--bg-light);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.cot-filtro-menu-topo {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 2px 6px 8px;
    font-size: 0.85rem;
    font-weight: 700;
}

.cot-filtro-menu-topo span {
    flex: 1;
}

.cot-filtro-menu-topo button {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 1.1rem;
}

.cot-filtro-busca {
    width: 100%;
    padding: 9px 10px;
    margin-bottom: 6px;
    border: 1px solid var(--cot-borda);
    border-radius: 7px;
    background: #f7f9f7;
    color: var(--primary-color);
    font: inherit;
    font-size: 0.9rem;
}

.cot-filtro-opcoes {
    max-height: min(260px, 38vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cot-filtro-opcoes .cot-filtro-opcao {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 6px 10px;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    font-size: 0.875rem;
    text-align: left;
}

.cot-filtro-opcoes .cot-filtro-opcao:hover,
.cot-filtro-opcoes .cot-filtro-opcao[aria-pressed="true"] {
    background: #edf5ef;
}

.cot-filtro-opcao[aria-pressed="true"] .cot-filtro-opcao-rotulo {
    font-weight: 700;
}

.cot-filtro-opcao-rotulo {
    flex: 1;
}

.cot-filtros .ic,
.cot-status .ic {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.cot-filtro-contagem {
    min-width: 1.55rem;
    padding: 1px 6px;
    border-radius: 20px;
    background: #e5eee8;
    font-size: 0.74rem;
    font-weight: 700;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cot-filtro-sem-opcoes {
    padding: 10px;
    color: var(--cot-texto-suave);
    font-size: 0.85rem;
}

.cot-status {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    color: var(--cot-texto-suave);
    font-size: 0.83rem;
}

.cot-status .ic {
    color: var(--primary-color);
}

.cot-vazio {
    margin: 0;
    padding: 24px 20px;
    border-top: 1px solid var(--cot-borda);
}

.cot-tabela-rolagem {
    overflow-x: auto;
    border-radius: 0 0 15px 15px;
}

.cot-tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
}

.cot-tabela th,
.cot-tabela td {
    padding: 12px 14px;
    border-top: 1px solid var(--cot-borda);
    text-align: left;
    vertical-align: middle;
}

.cot-tabela tr > :first-child {
    padding-left: 20px;
}

.cot-tabela tr > :last-child {
    padding-right: 20px;
}

.cot-tabela thead {
    background: #edf3ee;
    color: #385447;
    font-size: 0.75rem;
    white-space: nowrap;
}

.cot-tabela tbody tr:nth-child(even) {
    background: #f8faf8;
}

.cot-tabela tbody tr:hover {
    background: #eef5ef;
}

.cot-tabela .cot-numero {
    text-align: right;
    white-space: nowrap;
}

.cot-identidade {
    min-width: 160px;
}

.cot-produto {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.cot-regiao,
.cot-referencia {
    display: block;
    margin-top: 4px;
    color: var(--cot-texto-suave);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.4;
}

.cot-uf,
.cot-mercado {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cot-uf {
    margin-inline-start: 5px;
    background: #e5eee8;
    color: var(--primary-color);
}

.cot-mercado {
    background: #fbf3df;
    color: #70540d;
}

.cot-preco {
    font-size: 1rem;
    font-weight: 700;
}

.cot-unidade {
    margin-inline-start: 4px;
    color: var(--cot-texto-suave);
    font-size: 0.75rem;
}

.cot-variacao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.cot-variacao .ic {
    width: 0.85rem;
    height: 0.85rem;
}

.cot-variacao-alta {
    background: #eaf6ee;
    border-color: #badcc7;
    color: #14663f;
}

.cot-variacao-baixa {
    background: #fdf0ee;
    border-color: #efc7bf;
    color: #a32a1e;
}

.cot-variacao-neutra {
    background: #f2f5f3;
    border-color: #dbe3dd;
    color: #4a5650;
}

.cot-faixa-item {
    display: block;
    white-space: nowrap;
    font-size: 0.76rem;
}

.cot-sem-valor,
.cot-atualizado {
    color: var(--cot-texto-suave);
}

.cot-fonte {
    min-width: 128px;
    font-weight: 600;
}

.cot-atualizado {
    min-width: 115px;
    font-size: 0.76rem;
}

/* Aviso sobre a origem dos números */
.cot-aviso {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 34px;
    padding: 18px 20px;
    background: #FFFDF5;
    border: 1px solid rgba(138, 109, 18, 0.22);
    border-radius: 12px;
    color: #4A4A4A;
    font-size: 0.92rem;
    line-height: 1.6;
}

.cot-aviso .ic {
    color: var(--gold-text);
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Chamada comercial ---------- */

.cot-cta {
    padding: clamp(56px, 8vw, 90px) 0;
    background: var(--bg-gray);
}

.cot-cta-box {
    position: relative;
    overflow: hidden;
    background: var(--gradient-green);
    color: var(--text-light);
    border-radius: 18px;
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cot-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.12;
    pointer-events: none;
}

.cot-cta-texto {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.cot-cta-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.cot-cta h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    color: var(--text-light);
    margin-bottom: 12px;
}

.cot-cta p {
    color: #E4EDE8;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.cot-cta-contatos {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.cot-cta-contatos a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-weight: 600;
}

.cot-cta-contatos a:hover {
    color: var(--secondary-color);
}

.cot-cta-acao {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.cot-cta-acao .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cot-cta-acao .btn-primary .ic {
    width: 1.15rem;
    height: 1.15rem;
}

.cot-cta-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E4EDE8;
    text-decoration: underline;
}

.cot-cta-link:hover {
    color: var(--secondary-color);
}

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
    .cot-cta-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .cot-cta-acao {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .cot-filtros,
    .cot-status {
        padding-inline: 12px;
    }

    .cot-filtro-menu {
        inset-inline-start: 12px;
        width: min(320px, calc(100% - 24px));
    }

    .cot-tabela tr > :first-child {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        position: sticky;
        left: 0;
        padding-left: 12px;
        border-right: 1px solid var(--cot-borda);
        background: var(--bg-light);
    }

    .cot-tabela thead th:first-child {
        background: #edf3ee;
    }

    .cot-tabela tbody tr:nth-child(even) th {
        background: #f8faf8;
    }

    .cot-tabela tbody tr:hover th {
        background: #eef5ef;
    }
}
