/* Custom navbar styling */
body {
    /*font-family: "Martel Sans", sans-serif;*/
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
}

.page-header-banner{
    padding-top: 90px;
    padding-bottom: 90px;
}

/* =====================
   Paleta & Heading Base
   ===================== */
:root {
    --color-primary: #0B2A53;
    --color-primary-2: #0A2A53;
    --bs-primary-rgb: 10, 42, 83;
    --color-primary-dark: #1149ab;
    --color-text: #0056a8;
    --color-white: #ffffff;
    --color-muted: #777777;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text);
}

.text-primary{
    color: var(--color-primary) !important;
}

/* Headings sobre fundos escuros já possuem classes utilitárias (ex: .text-white) */

.navbar {
    padding: 15px 0;
}

.navbar-brand img {
    height: 40px;
}

/* Responsivo: Remove margens fixas em mobile */
.navbar-nav .nav-link {
    color: var(--color-primary) !important;
    /* margin: 0 0.5rem; */ /* COMENTADO: Interfere na responsividade */
    transition: color 0.3s ease;
    font-size: 16px;
    padding: 0.5rem 1rem; /* Adiciona padding adequado */
}

/* Adiciona margens apenas em desktop */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        padding: 0.5rem 0.25rem;
    }
}

/* Estilo responsivo para navbar */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Ajustes para mobile */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f8f9fa;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

.btn-primary {
    background-color: var(--color-primary);
    font-size: 14px;
    height: 38px;
    border: 0px none
}

.blog-card .btn-primary{
    height: 31px;
}

.btn-primary-dark {
    background-color: var(--color-primary-dark);
}

/* Hero section styling */
.hero-section {
    background-color: #0B2A53;
    display: flex;
    align-items: center;
}

/* Hero background image */
.hero-background {
    z-index: 1;
}

/* Hero person image */
.hero-person {
    right: 39vw;
    bottom: 0;
    /*transform: translateX(-50%);*/
    z-index: 2;
}

@media (min-width: 992px) {
    .hero-person img {
        max-height: 600px;
        width: auto;
        object-fit: contain;
    }
}

/* Responsive hero title */
.hero-title {
    font-size: 48px;
    line-height: 57.6px;
    margin: 0;
    max-width: 500px;
}

/* Responsive hero subtitle */
.hero-subtitle {
    line-height: 24px;
    letter-spacing: 0%;
    max-width: 420px;
    margin-top: 8px;
}

/* Responsive button hero */
.button-hero {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 14px;
    letter-spacing: 0%;
    /* width: 197.86px; */ /* COMENTADO: Largura fixa removida */
    height: 54px;
    color: var(--color-primary);
    margin-top: 76px;
    white-space: nowrap;
    padding: 0 20px;
}
.button-hero-2 {
    font-size: 14px;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Responsive breakpoints for hero section */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 36px;
        line-height: 43px;
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        text-align: center;
        margin-top: 16px;
    }

    .button-hero {
        margin-top: 40px;
        width: auto;
        min-width: 180px;
        display: flex !important;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 28px;
        line-height: 34px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .button-hero {
        font-size: 12px;
        height: 48px;
        min-width: 160px;
        margin-top: 30px;
    }
}

.button-form {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 14px;
    letter-spacing: 0%;
    max-width: 173px; /* Mudado de width para max-width */
    width: 100%; /* Permite ser responsivo */
    height: 38px;
    padding-top: 10px;
    border-radius: 10px;
    color: var(--color-primary);
    margin-top: 76px;
}

.sobre {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.quem-somos {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 2rem;
    line-height: 46.8px;
    letter-spacing: -1.2px;
    color: var(--color-white);
}

.descricao {
    /*font-family: "Martel Sans", sans-serif;*/
    font-weight: 400;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--color-white);
}

.nossa-missao {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: -0.5px;
    color: var(--color-primary);
    margin-top: 52px;
}

.nossos-produtos {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 39px;
    color: var(--color-primary);
    line-height: 46.8px;
    letter-spacing: -1.2px;
}

.distribuímos {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
    color: var(--color-primary);
    max-width: 602px;
}

.poliolefínicos-item {
    border: 2px solid var(--color-primary);
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
    /*width: 374px;
    height: 63px;
    opacity: 1;
    top: 1685px;
    left: 189px;*/
    border-radius: 10px;
    border-width: 2px;
}

.background-primary {
    background-color: var(--color-primary) !important;
}

.embalagens {
    max-width: 374px; /* Mudado de width para max-width */
    /*height: 213px;*/
    border-radius: 10px;
    background-color: var(--color-primary);
    padding: 32px;
    margin-top: -180px;
}

/* Responsive adjustments for embalagens */
@media (max-width: 991.98px) {
    .embalagens {
        max-width: 100%;
        margin-top: 20px; /* Remove negative margin on mobile */
        height: auto; /* Allow flexible height */
        min-height: 200px;
    }
}

@media (max-width: 575.98px) {
    .embalagens {
        padding: 20px; /* Reduce padding on small screens */
        margin-top: 15px;
    }
}

.embalagens-title {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
}

.embalagens-descricao {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 1px;
}

.Localização {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
}

.visitar {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 39px;
    line-height: 46.8px;
    letter-spacing: -1.2px;
    color: #ffffff;
}

.fábricas {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 0%;
}

.number {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 48px;
    line-height: 57.6px;
    letter-spacing: -1.5px;
    color: var(--color-primary);
}

.number-description {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--color-primary);
}

.nossos-clientes {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 1px;
    color: var(--color-primary);
}

.nossos-parceiros {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 39px;
    line-height: 46.8px;
    letter-spacing: -1.2px;
    color: var(--color-primary);
}

.distribuímos-construímos {
    max-width: 655px; /* Mudado de width para max-width */
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 0%;
    color: #777777;
}

.parceiros-item {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: -0.5px;
}

.bem-vindo {
    /*font-family: "Martel Sans", sans-serif;*/
    line-height: 24px;
    letter-spacing: 0%;
    color: #777777;
}

.compartilhamos {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 39px;
    line-height: 46.8px;
    letter-spacing: -1.2px;
    color: var(--color-primary);
}

.visitar-btn {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 14px;
    letter-spacing: 0%;
    max-width: 173px; /* Mudado de width para max-width */
    width: 100%; /* Permite ser responsivo */
}

.compartilhamos-title {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: -0.5px;
    color: var(--color-primary);
}

.compartilhamos-desc {
    /*font-family: "Martel Sans", sans-serif;*/
    color: var(--color-primary);
    line-height: 24px;
    letter-spacing: 0%;
}

.fale-conosco {
    max-width: 469px;
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 39px;
    line-height: 46.8px;
    letter-spacing: -1.2px;
}

.fale-conosco-descricao {
    /*font-family: "Martel Sans", sans-serif;*/
    max-width: 469px;
    line-height: 24px;
    letter-spacing: 0%;
}

.footer-embalagens {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0%;
    max-width: 260px;
    margin-top: 30px;
}

.footer-nav h1 {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 25px;
    line-height: 32.5px;
    letter-spacing: -0.5px;
}

.footer-nav a {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0%;
    margin-top: 4px;
}

footer {
    /*font-family: "Martel Sans", sans-serif;*/
    font-size: 13px;
    line-height: 24px;
    letter-spacing: 0%;
    color: var(--color-primary);
}

.social-icons a{
    border: 1px solid #fff;
    background-color: #fff;
    color: var(--color-primary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover{
    background-color: var(--color-primary);
    color: #fff;
}

.social-icons a i{
    font-size: 16px;
}

/* Custom utility classes for specific dimensions and styling */
.hero-height {
    height: 674px;
    min-height: 500px; /* Altura mínima para mobile */
}

/* Responsive hero height */
@media (max-width: 991.98px) {
    .hero-height {
        height: 500px;
        min-height: 400px;
    }
}

@media (max-width: 575.98px) {
    .hero-height {
        height: 400px;
        min-height: 350px;
    }
}

.carousel-indicator-custom {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
}

.about-shadow {
    box-shadow: 0px 0px 60px 0px #0000001a;
    padding: 89px 42px;
}

.products-section {
    max-width: 1540px;
}

.location-section {
    background-color: var(--color-primary);
}

.location-image {
    max-width: 311px; /* Mudado de width para max-width */
    width: 100%; /* Permite ser responsivo */
    height: auto; /* Altura proporcional */
}

.location-content {
    max-width: 405px;
}

.contact-section {
    background: var(--color-primary);
    padding: 78px 0px;
    border: none !important; /* Remove qualquer borda inesperada */
    outline: none;
}

.contact-max-width {
    max-width: 469px;
}

.footer-nav-padding {
    padding: 0px 70px;
}

.carousel-control-custom {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-custom.prev {
    background-color: var(--color-primary-dark);
}

.carousel-control-custom.next {
    background-color: var(--color-primary);
}

@media (min-width: 992px) {
    .carousel-control-custom.prev {
        left: -60px;
    }

    .carousel-control-custom.next {
        right: -60px;
    }
}

.hero-gradient {
    background: linear-gradient(89.45deg,
    #ffffff -0.56%,
    rgba(255, 255, 255, 0) 102.35%);
}

.form-control-custom {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-size: 14px;
    background-color: #ffffff;
}

.carousel-indicators.custom-indicators {
    position: static;
    margin-top: 20px;
    margin-bottom: 0;
}

.carousel-indicators.custom-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    margin: 0 5px;
}

.carousel-indicators.custom-indicators button.active {
    background-color: var(--color-primary-dark);
}

/* Modal de Alerta de Golpe */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

.contact-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item a {
    color: inherit;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--color-primary-dark);
}

/* Responsividade do carousel */
@media (max-width: 768px) {

    .carousel-control-custom {
        width: 40px;
    }

    /* Modal responsivo */
    .modal-lg {
        max-width: 90%;
    }
}

@media (max-width: 576px) {

    /* Modal em telas muito pequenas */
    .modal-dialog {
        margin: 10px;
    }
}

/* COMENTADO: Largura fixa quebra responsividade do botão no navbar
.btn-width-173 {
  width: 173px;
}
*/

.icon-position {
    left: -90px;
    top: 10px;
}

.filter-invert {
    filter: brightness(0) invert(1);
}

.min-height-120 {
    min-height: 120px;
}

/* Gallery Swiper Customization */
.gallery-swiper {
    padding: 20px 0 40px 0;
}

.gallery-swiper .swiper-slide {
    height: auto;
}

.gallery-swiper .swiper-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-swiper .swiper-slide img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.gallery-swiper .swiper-button-next,
.gallery-swiper .swiper-button-prev {
    color: #0d6efd;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-top: -20px;
}

.gallery-swiper .swiper-button-next:hover,
.gallery-swiper .swiper-button-prev:hover {
    background: #0d6efd;
    color: white;
}

.gallery-swiper .swiper-button-next::after,
.gallery-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: bold;
}

.gallery-swiper .swiper-pagination-bullet {
    background: #0d6efd;
    opacity: 0.4;
}

/* ===== Migrated from shared-styles.php (consolidação) ===== */
/* Owl Carousel About Section */
.about-owl .owl-nav { 
    display: none !important; /* Remove as setas de navegação */
}
.about-owl .owl-dots { 
    position: absolute; 
    bottom: 20px; 
    left: 50%; 
    transform: translateX(-50%); 
    margin: 0;
    z-index: 10;
}
.about-owl .owl-dots .owl-dot { 
    display: inline-block;
    margin: 0 4px;
}
.about-owl .owl-dots .owl-dot span { 
    width: 10px; 
    height: 10px; 
    background: rgba(255,255,255,0.5); 
    border-radius: 50%;
    display: block;
    transition: all .3s ease;
}
.about-owl .owl-dots .owl-dot.active span, 
.about-owl .owl-dots .owl-dot:hover span { 
    background: rgba(255,255,255,0.9); 
    transform: scale(1.2);
}

/* Representative CTA */
.representative-cta { font-size:14px; background: var(--color-primary); border:none; box-shadow:0 4px 15px -5px rgba(0,0,0,.25); transition:.3s; }
.representative-cta:hover { background: linear-gradient(135deg,var(--color-primary-dark) 0%, var(--color-primary) 100%); transform: translateY(-2px); box-shadow:0 6px 18px -4px rgba(0,0,0,.3); }
.representative-cta:focus { box-shadow:0 0 0 0.25rem rgba(0,86,168,0.35); }
/* Fancybox gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform .3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    /*transform: translateY(-5px);*/
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* WhatsApp gradient button */
.whatsapp-btn { background: linear-gradient(45deg,#25d366,#128c7e); border: none; transition: all .3s ease; }
.whatsapp-btn:hover { background: linear-gradient(45deg,#128c7e,#25d366); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,.3); }

/* AOS pointer-events control */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

@media (max-width: 768px) {
    .gallery-overlay i { font-size: 1.5rem; }
    .product-card:hover { transform: none; }
}
/* ===== Fim migração shared-styles ===== */

.gallery-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #0d6efd;
}

/* AOS Custom Animations */
[data-aos="slide-up"] {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
}

[data-aos="slide-up"].aos-animate {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Navbar animation enhancement */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* Button hover animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Card hover effects */
.card, .blog-card {
    transition: all 0.3s ease;
}

.card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Smooth scrolling enhancement */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img[data-src].loaded {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .gallery-swiper .swiper-slide img {
        height: 200px;
    }

    .gallery-swiper .swiper-button-next,
    .gallery-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
}

/* Estilos unificados dos Produtos */
.product-card {
    border-radius: 15px;
    transition: all .3s ease;
    color: #fff;
    overflow: hidden;
    position: relative;
    animation: fadeInUp .6s ease forwards;
}

.product-card:hover { transform:translateY(-8px); box-shadow:0 10px 10px rgba(0,0,0,.25) !important; }
.product-image-container { overflow:hidden; border-radius:15px 15px 0 0; }
.product-image-container img:hover{
    transform: scale(1.05);
    transition:transform .5s ease;
}
.product-card .card-body { border-radius:0 0 15px 15px; position:relative; }

/*.product-card .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
}*/

.product-card .btn { transition:all .3s ease; }
.product-card .btn:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.25); }
.product-card .badge { font-weight:600; letter-spacing:.5px; }

/* Card ativo (produto selecionado) */
.product-card.active { outline:3px solid var(--color-primary); box-shadow:0 0 0 4px rgba(0,86,168,0.2); }
/* Botões rápidos de produtos (lista lateral) */
#productQuickList .poliolefínicos-item { transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; border-radius:10px; }
#productQuickList .poliolefínicos-item:hover { background:#f1f7fb; }
#productQuickList .poliolefínicos-item.active { background:linear-gradient(135deg,var(--color-primary),var(--color-primary-dark)); color:#fff; box-shadow:0 6px 18px -5px rgba(0,86,168,.4); }

/* Painel de informações dinâmico (produtos) */
.info-panel { position:relative; transition:opacity .3s ease, transform .3s ease; }
.info-panel.fading { opacity:0.15; transform:translateY(6px); }

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    height: 40px;
    margin-top: -20px;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

/* Animação reutilizável */
@keyframes fadeInUp { from {opacity:0; transform:translateY(30px);} to {opacity:1; transform:translateY(0);} }

/* Responsividade dos produtos */
@media (max-width: 768px) {
    .product-card { margin-bottom:2rem; }
    .product-image-container { height:200px !important; }
    .product-card .card-body { padding:1.5rem !important; }
    .product-card .card-title { font-size:1rem !important; }
}

@media (max-width: 576px) {
    .products-section .container {
        padding: 0 15px;
    }

    .product-image-container {
        height: 180px !important;
    }
}