/********** Template CSS **********/
:root {
    --primary: #179447;
    --primary-dark: #1A4D2E;
    --primary-light: #22c55e;
    --light: #F2F4F2;
    --dark: #152117;
    --secondary: #D4DCD5;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

/********** FONTS **********/
body {
    font-family: var(--font-body);
    font-weight: 400;
}

/********** AOS ANIMATIONS **********/
/* AOS - Simple fade animations, no scroll issues */
[data-aos] {
    opacity: 0;
    transition: opacity 0.8s ease-out !important;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Remove all transforms to prevent scroll */
[data-aos="fade"],
[data-aos="fade-up"],
[data-aos="fade-down"],
[data-aos="fade-left"],
[data-aos="fade-right"] {
    transform: none !important;
}

/* Reduce motion for users who prefer */
@media (prefers-reduced-motion: reduce) {
    [data-aos] {
        opacity: 1 !important;
        transition: none !important;
    }
}

/********** PREVENT OVERFLOW **********/
/* Removido overflow-x: hidden que causava scrollbars */
.container,
.container-xxl,
.container-fluid {
    max-width: 100%;
}

/* Row dentro de seções */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Prevenir que elementos causem overflow */
[class*="col-"] {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    overflow: visible;
    max-width: 100%;
}

h1, .h1, .display-4, .display-5, .display-6 {
    font-weight: 800;
}

/********** WOW ANIMATIONS FIXES **********/
/* Prevenir flash durante carregamento */
.wow {
    visibility: hidden !important;
}

/* Após animação, manter visível permanentemente */
.wow.animated {
    visibility: visible !important;
}

/* Prevenir re-animação e flash */
.animated {
    animation-fill-mode: forwards !important;
    animation-iteration-count: 1 !important;
    animation-duration: 0.6s !important;
}

/* Performance: usar GPU acceleration */
.wow,
.animated {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Prevenir scroll horizontal durante animações */
.wow.fadeInUp,
.wow.fadeInDown,
.wow.fadeInLeft,
.wow.fadeInRight {
    will-change: opacity, transform;
    max-width: 100%;
    overflow: hidden;
}

/* Garantir que containers não causem overflow */
.container,
.container-xxl,
.container-fluid {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Row dentro de seções */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Prevenir que elementos animados causem overflow */
[class*="col-"] {
    max-width: 100%;
}

/* Animações mais suaves e rápidas - SEM movimento horizontal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 15px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animação slideInDown - ajustada para não causar overflow */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Reduzir animação para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    .wow,
    .animated {
        animation: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 700;
    overflow: visible;
    max-width: 100%;
}

h1, .h1, .display-4, .display-5, .display-6 {
    font-weight: 800;
}

.section-title,
.page-header h1,
.page-header .display-4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/********** SECTIONS **********/
.container-xxl {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container-xxl {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (min-width: 1200px) {
    .container-xxl {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* Section separation and spacing */
.container-xxl.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    position: relative;
}

@media (min-width: 768px) {
    .container-xxl.py-5 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (min-width: 1200px) {
    .container-xxl.py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* Section backgrounds */
.container-xxl.bg-light {
    background-color: #f8f9fa !important;
}

.container-xxl.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #fff;
}

.container-xxl.bg-primary-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0f2817 100%) !important;
    color: #fff;
}

/* Section titles */
.display-5 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.display-5 span {
    display: inline;
}

/* Section header */
.section-header {
    margin-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .section-header {
        margin-bottom: 4rem !important;
    }
}

/* Cards inside sections */
.bg-light .card,
.bg-light .service-item,
.bg-light .nr-card {
    background: #fff !important;
}

/* Gap responsive */
.row.g-4 {
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .row.g-4 {
        gap: 2rem !important;
    }
}

.row.g-lg-5 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
}

/********** PREVENT OVERFLOW **********/
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Prevenir layout shift durante animações */
body * {
    transition-property: opacity, transform, box-shadow, background-color;
    transition-timing-function: ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevenir que animações causem scroll horizontal */
.wow,
.animated {
    max-width: 100%;
}

/* Esconder scrollbar horizontal permanentemente */
html::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

body::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

/* Para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

/* Apenas elementos específicos não podem causar overflow */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
}

/* Prevenir jumping do conteúdo */
.container-xxl {
    min-height: 0;
}

.row {
    min-height: 0;
}

/* Prevent horizontal scroll from specific elements */
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    max-width: 100%;
}

.row {
    max-width: 100%;
}

/* Fix for flex items that might overflow */
.d-flex {
    max-width: 100%;
}

.d-inline-flex {
    max-width: 100%;
}

/* Prevent table overflow */
.table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 100px;
    z-index: 998;
    border-radius: var(--radius-full) !important;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    border-radius: var(--radius-full);
    padding: 12px 28px;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    border-radius: var(--radius-full);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(23, 148, 71, .35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 148, 71, .45);
}

.btn-outline-primary {
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    transition: all .3s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 148, 71, .35);
}

.btn-outline-light {
    border-radius: var(--radius-full);
    border: 2px solid rgba(255,255,255,.5);
    transition: all .3s;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-square {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md) !important;
}

.btn-sm-square {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm) !important;
}

.btn-lg-square {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-lg) !important;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: 0;
    transition: box-shadow .3s ease;
    position: sticky;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 120px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
        color: var(--dark);
    }
    
    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Topbar Green Background ***/
.bg-primary-dark {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden !important;
    overflow-x: hidden !important;
    max-width: 100vw;
    position: relative;
}

.bg-primary-dark .row {
    max-width: 100%;
    margin: 0;
    overflow: hidden !important;
    overflow-x: hidden !important;
}

.bg-primary-dark .col-lg-7,
.bg-primary-dark .col-lg-5 {
    overflow: hidden !important;
    overflow-x: hidden !important;
    max-width: 100%;
}

.bg-primary-dark .d-inline-flex {
    overflow: hidden !important;
    max-width: 100%;
}

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

.bg-primary-dark small {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.bg-primary-dark .fa,
.bg-primary-dark .far,
.bg-primary-dark .fas,
.bg-primary-dark .fab {
    color: var(--primary-light) !important;
    font-size: 0.9rem;
}

.bg-primary-dark .btn-sm-square {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    flex-shrink: 0;
}

.bg-primary-dark .btn-sm-square:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bg-primary-dark .btn-sm-square i {
    color: #fff !important;
    font-size: 0.9rem;
}

/* Mobile Topbar */
.bg-primary-dark .d-lg-none {
    overflow: hidden !important;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
}

.bg-primary-dark .d-lg-none > div {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.bg-primary-dark .d-lg-none .btn-sm-square {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 40px !important;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.bg-primary-dark .d-lg-none .btn-sm-square:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.bg-primary-dark .d-lg-none .btn-sm-square i {
    color: #fff !important;
    font-size: 0.75rem !important;
}

.bg-primary-dark .d-lg-none a {
    color: rgba(255, 255, 255, 0.95);
}

.bg-primary-dark .d-lg-none a:hover {
    color: #fff;
}

.bg-primary-dark .d-lg-none .fa {
    color: var(--primary-light) !important;
}

.bg-primary-dark .d-lg-none small {
    font-size: 0.75rem !important;
}

/* Extra small mobile */
@media (max-width: 360px) {
    .bg-primary-dark .d-lg-none {
        padding: 6px 10px !important;
    }
    
    .bg-primary-dark .d-lg-none .btn-sm-square {
        width: 40px !important;
        height: 24px !important;
        min-width: 24px !important;
    }
    
    .bg-primary-dark .d-lg-none .btn-sm-square i {
        font-size: 0.65rem !important;
    }
    
    .bg-primary-dark .d-lg-none small {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 320px) {
    .bg-primary-dark .d-lg-none .btn-sm-square {
        width: 40px !important;
        height: 22px !important;
    }
}

/* Responsive topbar adjustments */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .bg-primary-dark .row {
        overflow: hidden !important;
    }
    
    .bg-primary-dark .col-lg-7 {
        padding-left: 15px !important;
        padding-right: 10px !important;
    }
    
    .bg-primary-dark .col-lg-5 {
        padding-left: 10px !important;
        padding-right: 15px !important;
    }
    
    .bg-primary-dark small {
        font-size: 0.75rem;
    }
    
    .bg-primary-dark .fa,
    .bg-primary-dark .far,
    .bg-primary-dark .fas {
        font-size: 0.8rem;
    }
    
    .bg-primary-dark .btn-sm-square {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .bg-primary-dark .btn-sm-square i {
        font-size: 0.8rem;
    }
    
    .bg-primary-dark .me-3,
    .bg-primary-dark .me-4 {
        margin-right: 10px !important;
    }
    
    .bg-primary-dark .py-3 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (max-width: 991.98px) {
    .bg-primary-dark {
        display: block !important;
        overflow: hidden !important;
    }
    
    .bg-primary-dark .row {
        overflow: hidden !important;
    }
}

/* Topbar hover effect */
.bg-primary-dark .me-3:hover small,
.bg-primary-dark .me-4:hover small,
.bg-primary-dark .py-3:hover small {
    color: #fff !important;
}

.bg-primary-dark .me-3:hover .fa,
.bg-primary-dark .me-4:hover .fa,
.bg-primary-dark .py-3:hover .fa,
.bg-primary-dark .me-3:hover .far,
.bg-primary-dark .me-4:hover .far,
.bg-primary-dark .py-3:hover .far,
.bg-primary-dark .me-3:hover .fas,
.bg-primary-dark .me-4:hover .fas,
.bg-primary-dark .py-3:hover .fas {
    color: #fff !important;
}


/*** Header ***/
.header-bg {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/banner-1.jpg) center center no-repeat;
    background-size: cover;
}

/* Hero Section - Ensure buttons are visible above the fold */
.container-fluid.bg-dark .header-bg {
    min-height: auto;
    padding: 2rem 1.5rem;
}

.header-bg h1,
.header-bg .display-4 {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    margin-bottom: 0.5rem !important;
}

.header-bg p {
    margin-bottom: 0.75rem !important;
}

.header-bg .pt-4 {
    padding-top: 0.5rem !important;
}

.header-bg .mb-3,
.header-bg .mb-4,
.header-bg .mb-5 {
    margin-bottom: 0.5rem !important;
}

/* Desktop - buttons inline */
@media (min-width: 992px) {
    .header-bg .d-flex.gap-3 {
        flex-direction: row !important;
        flex-wrap: nowrap;
    }
    
    .header-bg .d-flex.gap-3 .btn {
        width: auto;
        white-space: nowrap;
    }
}

/* Tablets */
@media (max-width: 991.98px) {
    .container-fluid.bg-dark .header-bg {
        padding: 1.5rem;
    }
    
    .header-bg h1,
    .header-bg .display-4 {
        font-size: 1.5rem;
    }
    
    .header-bg .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .header-bg .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .container-fluid.bg-dark .header-bg {
        padding: 1rem;
    }
    
    .header-bg h1,
    .header-bg .display-4 {
        font-size: 1.25rem;
    }
    
    .header-bg .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 40px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
    max-width: 100%;
    overflow: hidden;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 5px solid var(--primary);
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    max-width: calc(100% - 3rem);
}

@media (max-width: 767.98px) {
    .img-border {
        min-height: 280px;
    }
    
    .img-border::before {
        right: 1.5rem;
        bottom: 1.5rem;
        border-width: 3px;
    }
    
    .img-border img {
        top: 1.5rem;
        left: 1.5rem;
        width: calc(100% - 1.5rem);
        height: calc(100% - 1.5rem);
        max-width: calc(100% - 1.5rem);
    }
}


/*** Facts & Visiting Hours ***/
.facts {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/banner-1.jpg) center center no-repeat;
    background-size: cover;
}

.facts .fa-3x {
    transition: transform .3s;
}

.facts .col-lg-3:hover .fa-3x {
    transform: scale(1.2);
}

.facts .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.visiting-hours {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
    border-radius: var(--radius-xl);
}

.visiting-hours .list-group-item {
    display: flex;
    justify-content: space-between;
    color: var(--light);
    background: rgba(0, 0, 0, .15);
    border-color: rgba(255, 255, 255, .15);
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px;
}

.visiting-hours .table {
    color: var(--light);
    background: rgba(0, 0, 0, .15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.visiting-hours .table td {
    padding: .5rem 1rem;
    border-color: rgba(255, 255, 255, .15);
}

.visiting-hours .table tr:last-child td {
    border: none;
}


/*** Animal ***/
.animal-item {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.animal-item .animal-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, .7);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.animal-item:hover .animal-text {
    opacity: 1;
    padding-bottom: 20px !important;
}


/*** Membership ***/
.membership-item {
    padding: 50px 35px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .7);
    border-radius: var(--radius-xl);
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.membership-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    border-radius: var(--radius-xl);
}

.membership-item .display-1 {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
}

.membership-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    border-radius: var(--radius-xl);
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    border-radius: var(--radius-xl);
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: #fff !important;
    transform: scale(.9);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
    transform: scale(1);
    box-shadow: 0 8px 40px rgba(23, 148, 71, .25);
}

.testimonial-carousel .owl-item .testimonial-text *,
.testimonial-carousel .owl-item .testimonial-item img {
    transition: all .4s;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #fff !important;
}

.testimonial-carousel .owl-item.center .testimonial-item img {
    border-color: #fff !important;
} 

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: all .4s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: all .3s;
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
    background: var(--primary);
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(0, 0, 0, .85), rgba(0, 0, 0, .85)), url(../img/bg-2.jpg) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 2px solid rgba(255, 255, 255, .2);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    border-radius: var(--radius-md) !important;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    background: #fff;
    border-color: #fff;
    transform: translateY(-3px);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    font-weight: 500;
    text-transform: capitalize;
    transition: all .3s;
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-left: -12px;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    transition: margin .3s;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    background: rgba(255,255,255,.05);
}

.footer .btn.btn-link:hover::before {
    margin-right: 15px;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/*** Page Header ***/
.page-header {
    border-radius: 0;
}

/*** Rounded Classes ***/
.rounded-4 {
    border-radius: var(--radius-lg) !important;
}

.rounded-5 {
    border-radius: var(--radius-xl) !important;
}

/*** Smooth Transitions ***/
* {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
}

/*** WhatsApp Float ***/
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
}

.whatsapp-float a {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(37, 211, 102, .5);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
}

.whatsapp-float a:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, .65);
}

.whatsapp-float a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, .4);
    animation: wpp-pulse 2.4s ease-out infinite;
}

@keyframes wpp-pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(2.2); opacity: 0; }
}

/*** Counter Animation ***/
.counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

/*** NR Cards ***/
.nr-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1.5px solid var(--secondary);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.nr-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform .4s;
}

.nr-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    transform: scaleX(0);
    transition: transform .4s;
}

.nr-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(26, 77, 46, .18);
    border-color: var(--primary);
}

.nr-card:hover::before,
.nr-card:hover::after {
    transform: scaleX(1);
}

.nr-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(26, 77, 46, .25);
    width: fit-content;
    align-self: flex-start;
}

/*** Mega Menu ***/
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    border-top: 3px solid var(--primary);
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    overflow: hidden;
    max-width: 100vw;
}

.mega-menu h5,
.mega-menu h6 {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mega-menu a {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/*** Marquee Animation ***/
.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee 32s linear infinite;
    width: max-content;
}

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

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

/*** Modern Cards ***/
.card {
    border-radius: var(--radius-lg);
    border: none;
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.1) !important;
}

.card-header {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

/* Training cards - equal height headers */
.card .card-header {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card .card-header h4 {
    min-height: 56px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}

/*** Service Cards ***/
.service-item {
    border-radius: var(--radius-xl);
    transition: all .4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-light));
    transform: scaleX(0);
    transition: transform .4s;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26, 77, 46, .15);
}

.icon-box {
    border-radius: var(--radius-lg) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 8px 24px rgba(26, 77, 46, .3);
    transition: all .3s;
}

.service-item:hover .icon-box {
    transform: scale(1.1) rotate(-5deg);
}

/*** Membership Cards ***/
.membership-item {
    border-radius: var(--radius-xl);
    padding: 50px 35px;
}

/*** Testimonial Cards ***/
.testimonial-text {
    border-radius: var(--radius-xl) !important;
}

.testimonial-item img {
    border-radius: 50% !important;
}

/*** Forms ***/
.form-control,
.form-select {
    border-radius: var(--radius-md) !important;
    border: 2px solid var(--secondary);
    padding: 14px 20px;
    transition: all .3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(23, 148, 71, .1);
}

.form-floating > .form-control,
.form-floating > .form-select {
    border-radius: var(--radius-md) !important;
}

/*** Input Group ***/
.input-group .form-control {
    border-radius: var(--radius-full) 0 0 var(--radius-full) !important;
}

.input-group .btn {
    border-radius: 0 var(--radius-full) var(--radius-full) 0 !important;
}

/*** Badges ***/
.badge {
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-weight: 600;
}

/*** Alerts ***/
.alert {
    border-radius: var(--radius-lg);
}

/*** Dropdown ***/
.dropdown-menu {
    border-radius: var(--radius-lg) !important;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: 12px;
    min-width: 200px;
    max-width: 280px;
    overflow: hidden;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 10px 16px;
    transition: all .2s;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.dropdown-item:hover {
    background: var(--light);
    transform: translateX(4px);
}

.navbar .dropdown-menu {
    max-width: 300px;
}

@media (max-width: 991.98px) {
    .dropdown-menu {
        max-width: 100%;
        width: 100%;
    }
    
    .dropdown-item {
        padding: 12px 16px;
    }
}

/*** Nav Pills ***/
.nav-pills .nav-link {
    border-radius: var(--radius-full);
}

/*** Pagination ***/
.page-link {
    border-radius: var(--radius-md) !important;
}

/*** List Group ***/
.list-group-item {
    border-radius: var(--radius-md) !important;
    margin-bottom: 8px;
    border: none;
    background: rgba(255,255,255,.08);
}

/*** Progress ***/
.progress {
    border-radius: var(--radius-full);
}

/*** Modal ***/
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
}

/*** Accordion ***/
.accordion-item {
    border-radius: var(--radius-lg) !important;
    border: none;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-button {
    border-radius: var(--radius-lg) !important;
    font-weight: 600;
    padding: 18px 24px;
}

.accordion-button:not(.collapsed) {
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(23, 148, 71, .2);
}

.accordion-body {
    padding: 20px 24px;
}

/*** Footer Social ***/
.btn-social {
    border-radius: var(--radius-md) !important;
    transition: all .3s;
}

.btn-social:hover {
    transform: translateY(-3px) rotate(5deg);
}

/*** Img Border ***/
.img-border::before {
    border-radius: var(--radius-lg);
    border-width: 4px;
}

.img-border img {
    border-radius: var(--radius-lg);
}

/*** Client Items ***/
.client-item {
    border-radius: var(--radius-lg) !important;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.client-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

/*** Shadow Classes ***/
.shadow-sm {
    box-shadow: 0 2px 15px rgba(0,0,0,.06) !important;
}

.shadow {
    box-shadow: 0 5px 25px rgba(0,0,0,.08) !important;
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0,0,0,.1) !important;
}

/*** Stats Section ***/
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    margin-top: 6px;
}

/*** Hero Section ***/
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(15, 25, 17, .68) 0%, rgba(26, 77, 46, .50) 55%, rgba(15, 25, 17, .75) 100%), url(../img/banner-1.jpg) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 74px;
}

/*** Gradient Text ***/
.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*** Glass Effect ***/
.glass {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .2);
}

/*** Hover Lift ***/
.hover-lift {
    transition: all .4s cubic-bezier(.4,0,.2,1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

/*** Gradient Backgrounds ***/
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--light), #fff) !important;
}

/*** Scroll Indicator ***/
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.45);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
    animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: .3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.4); }
}

/********** RESPONSIVE DESIGN **********/

/* Extra Large Devices (Desktops grandes) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Devices (Desktops) */
@media (max-width: 1199.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 20px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 991.98px) {
    /* Navbar */
    .navbar {
        padding: 12px 15px !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        max-height: 40px !important;
    }
    
    .navbar-collapse {
        background: #fff;
        padding: 20px;
        margin-top: 15px;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 40px rgba(0,0,0,.1);
    }
    
    .navbar .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
        margin-right: 0;
    }
    
    .navbar .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar .btn {
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }
    
    /* Topbar - apenas ocultamos o desktop, não o container inteiro */
    .container-fluid.bg-primary-dark > .d-lg-flex {
        display: none !important;
    }
    
    .header-carousel {
        min-height: 300px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: .9rem;
    }
    
    /* Stats */
    .facts .row {
        text-align: center;
    }
    
    .facts h1 {
        font-size: 2rem !important;
    }
    
    /* Cards */
    .service-item,
    .nr-card {
        padding: 25px 20px;
    }
    
    .icon-box {
        width: 65px !important;
        height: 65px !important;
    }
    
    .icon-box i {
        font-size: 1.5rem !important;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 12px 16px;
        font-size: .95rem;
    }
    
    /* Footer */
    .footer .row.g-5 {
        --bs-gutter-y: 2rem;
    }
}

/* Small Devices (Phones) */
@media (max-width: 767.98px) {
    /* General */
    body {
        font-size: .95rem;
        overflow-x: hidden;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    .container-xxl {
        padding-left: 0;
        padding-right: 0;
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .col-12,
    .col-6,
    .col-md-6,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.6rem;
    }
    
    .display-6 {
        font-size: 1.4rem;
    }
    
    h1, .h1 {
        font-size: 1.6rem;
    }
    
    h2, .h2 {
        font-size: 1.4rem;
    }
    
    h3, .h3 {
        font-size: 1.2rem;
    }
    
    h4, .h4 {
        font-size: 1.1rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 15px !important;
    }
    
    .navbar-brand h1 {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        max-height: 80px !important;
    }
    
    .navbar-toggler {
        padding: 8px 10px;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        max-width: 100%;
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 15px;
    }
    
.dropdown-menu {
    padding: 8px;
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
}

.dropdown-item {
    padding: 8px 12px;
    font-size: .9rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
    
    /* Page Header */
    .page-header {
        padding: 40px 0 !important;
    }
    
    .page-header .display-4 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: .9rem;
    }
    
    .header-carousel {
        min-height: 200px;
        max-height: 250px;
    }
    
    .header-carousel .owl-carousel-item img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .header-carousel .owl-nav {
        /* width: 100px; */
        bottom: 15px;
    }
    
    .header-carousel .owl-nav .owl-prev,
    .header-carousel .owl-nav .owl-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    /* Stats/Facts */
    .facts {
        padding: 40px 0 !important;
    }
    
    .facts .row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px 15px;
        justify-content: center;
    }
    
    .facts .col-6,
    .facts [class*="col-"] {
        padding: 15px 5px;
        box-sizing: border-box;
        text-align: center;
    }
    
    .facts > .container > .row > div:nth-child(1),
    .facts > .container > .row > div:nth-child(2) {
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
    
    .facts > .container > .row > div:nth-child(3),
    .facts > .container > .row > div:nth-child(4) {
        flex: 0 0 48% !important;
        max-width: 48% !important;
    }
    
    .facts h1 {
        font-size: 1.6rem !important;
    }
    
    .facts p {
        font-size: .8rem;
    }
    
    .facts .fa-3x,
    .facts .fa-2x {
        font-size: 1.8rem !important;
    }
    
    /* About Section */
    .img-border {
        min-height: 250px;
        margin-top: 25px;
    }
    
    /* Service Cards */
    .service-item {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .service-item h5 {
        font-size: 1rem;
    }
    
    .service-item p {
        font-size: .85rem;
    }
    
    /* NR Cards */
    .nr-card {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    .nr-badge {
        font-size: .7rem;
        padding: 5px 12px;
    }
    
    .nr-card h5 {
        font-size: .9rem;
    }
    
    .nr-card p {
        font-size: .8rem;
    }
    
    .nr-card ul li {
        font-size: .8rem;
    }
    
    /* Diferenciais */
    .hover-lift {
        padding: 20px 15px;
        margin-bottom: 15px;
    }
    
    /* Client Items */
    .client-item {
        padding: 12px !important;
    }
    
    .client-item i {
        font-size: 1.3rem !important;
    }
    
    .client-item h6 {
        font-size: .8rem;
    }
    
    /* Testimonials */
    .testimonial-item {
        padding: 10px;
    }
    
    .testimonial-item img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .testimonial-text {
        padding: 15px !important;
    }
    
    .testimonial-text p {
        font-size: .85rem;
    }
    
    .testimonial-text h5 {
        font-size: .9rem;
    }
    
    .testimonial-carousel .owl-nav {
        display: none;
    }
    
    /* Forms */
    .form-control,
    .form-select {
        padding: 12px 14px;
        font-size: .9rem;
        max-width: 100%;
    }
    
    .form-floating > label {
        font-size: .9rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px !important;
    }
    
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .footer .row.g-5 > div {
        margin-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer img {
        max-height: 100px !important;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .footer p {
        font-size: .85rem;
    }
    
    .footer .btn-link {
        font-size: .85rem;
        padding: 5px 0;
    }
    
    .footer .btn-social {
        width: 36px;
        height: 36px;
        font-size: .85rem;
    }
    
    .footer .copyright {
        font-size: .8rem;
        padding: 15px 0;
    }
    
    .footer .copyright .row > div {
        margin-bottom: 5px;
        padding: 0;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
    }
    
    /* Back to Top */
    .back-to-top {
        right: 15px;
        bottom: 85px;
        width: 42px;
        height: 42px;
    }
    
    /* Cards Grid */
    .row.g-4,
    .row.g-5 {
        --bs-gutter-y: 15px;
        --bs-gutter-x: 15px;
    }
    
    /* Badges */
    .badge {
        font-size: .7rem;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: .8rem;
        white-space: normal;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: .9rem;
    }
    
    /* Membership */
    .membership-item {
        padding: 25px 15px;
        margin-bottom: 15px;
    }
    
    .membership-item .display-1 {
        font-size: 2.5rem;
    }
    
    /* Accordion */
    .accordion-item {
        margin-bottom: 10px;
    }
    
    .accordion-button {
        padding: 12px 14px;
        font-size: .85rem;
    }
    
    .accordion-body {
        padding: 12px 14px;
        font-size: .85rem;
    }
    
    /* Contact Info */
    .d-flex.align-items-center.mb-4 {
        padding: 10px !important;
    }
    
    .d-flex.align-items-center.mb-4 .icon-box {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px;
    }
    
    .d-flex.align-items-center.mb-4 h6 {
        font-size: .8rem;
    }
    
    .d-flex.align-items-center.mb-4 a,
    .d-flex.align-items-center.mb-4 span {
        font-size: .8rem;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: var(--radius-lg) !important;
    }
    
    /* Carousel Controls */
    .owl-carousel .owl-nav button {
        width: 35px !important;
        height: 35px !important;
        font-size: 1rem !important;
    }
    
    /* CTA Section */
    .container-xxl.py-5.bg-primary {
        padding: 30px 15px !important;
    }
    
    .container-xxl.py-5.bg-primary h2 {
        font-size: 1.3rem;
    }
    
    .container-xxl.py-5.bg-primary .btn {
        padding: 10px 20px;
        font-size: .85rem;
    }
}

/* Extra Small Devices (Phones pequenos) */
@media (max-width: 575.98px) {
    /* General */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* Typography */
    .display-4 {
        font-size: 1.5rem;
    }
    
    .display-5 {
        font-size: 1.3rem;
    }
    
    /* Cards */
    .service-item,
    .nr-card,
    .hover-lift {
        padding: 18px 12px;
    }
    
    .icon-box {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Footer */
    .footer .btn-social {
        width: 32px;
        height: 32px;
        font-size: .8rem;
    }
    
    /* WhatsApp */
    .whatsapp-float a {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 14px;
        font-size: .75rem;
    }
    
    /* Stats */
    .facts h1 {
        font-size: 1.4rem !important;
    }
    
    .facts p {
        font-size: .75rem;
    }
    
    /* Page Header */
    .page-header .display-4 {
        font-size: 1.4rem;
    }
    
    /* Carousels */
    .header-carousel {
        min-height: 180px;
    }
}

/* Extra fixes for overflow prevention */
.owl-carousel {
    overflow: hidden;
}

.owl-carousel .owl-stage-outer {
    overflow: hidden;
}

/* Testimonial carousel rounded container */
.testimonial-carousel .owl-stage-outer {
    border-radius: var(--radius-xl) !important;
    overflow: hidden !important;
}

.owl-carousel .owl-item {
    float: left;
}

.owl-carousel img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tables responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* Prevent text overflow */
.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* List items */
ul, ol {
    padding-left: 1.5rem;
}

ul li, ol li {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Badge fix */
.d-flex.gap-2 {
    flex-wrap: wrap;
}

/* Card body overflow fix */
.card-body {
    overflow: hidden;
}

/* Navbar dropdown on mobile */
@media (max-width: 991.98px) {
    .dropdown-menu.show {
        display: block;
        max-height: none;
        overflow-y: visible;
        overflow-x: hidden;
    }
    
    .dropdown-toggle::after {
        float: right;
        margin-top: 8px;
    }
}

/* Modal fix on mobile */
.modal {
    overflow-x: hidden;
}

.modal-dialog {
    max-width: calc(100vw - 20px);
    margin: 10px auto;
}

/* Iframe responsive */
iframe {
    max-width: 100%;
}

/* Form row fix */
.form-row, .row[class*="frow"] {
    margin-left: -5px;
    margin-right: -5px;
}

@media (max-width: 767.98px) {
    .form-row > [class*="col-"],
    .frow > [class*="col-"] {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* Landscape Orientation Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .header-bg {
        min-height: auto;
        padding: 20px 15px !important;
    }
    
    .header-carousel {
        min-height: 150px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .img-border::before {
        border-width: 3px;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .nr-card:hover,
    .service-item:hover,
    .hover-lift:hover,
    .card:hover {
        transform: none;
    }
    
    .animal-item .animal-text {
        opacity: 1;
        padding-bottom: 20px !important;
    }
    
    .dropdown-item:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .footer {
        display: none !important;
    }
    
    .header-bg {
        background: #fff !important;
        color: #000 !important;
    }
    
    .header-bg h1,
    .header-bg p {
        color: #000 !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support */
    /*
    :root {
        --light: #1a1a1a;
        --dark: #f5f5f5;
        --secondary: #333;
    }
    */
}

/********** RESPONSIVE UTILITIES **********/

/* Font Size Utilities */
@media (max-width: 767.98px) {
    .fa-md-3x {
        font-size: 2rem !important;
    }
    
    .small {
        font-size: .8rem !important;
    }
}

@media (min-width: 768px) {
    .fa-md-3x {
        font-size: 3rem !important;
    }
}

/* Responsive Spacing */
@media (max-width: 767.98px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .px-5 {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Responsive Text Alignment */
@media (max-width: 767.98px) {
    .text-md-start {
        text-align: center !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
}

/* Header Carousel Mobile */
@media (max-width: 767.98px) {
    .header-carousel .owl-dots {
        bottom: 10px;
    }
    
    .header-carousel .owl-dot {
        width: 10px;
        height: 10px;
    }
    
    .header-carousel .owl-dot::after {
        width: 4px;
        height: 4px;
        top: 2px;
        left: 2px;
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 575.98px) {
    .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .col-6 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Touch-friendly Buttons */
@media (max-width: 767.98px) {
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Improve Mobile Navigation */
@media (max-width: 991.98px) {
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        display: block;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 8px;
        border-radius: var(--radius-md) !important;
        border: none;
        padding: 8px;
    }
    
    .dropdown-item {
        padding: 10px 15px;
        font-size: .9rem;
        border-radius: var(--radius-sm);
    }
    
    .navbar .btn {
        margin-top: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .navbar-collapse {
        padding: 15px;
        background: #fff;
        border-radius: var(--radius-lg);
        box-shadow: 0 5px 30px rgba(0,0,0,.1);
        margin-top: 10px;
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* Responsive Images */
@media (max-width: 767.98px) {
    .img-fluid {
        max-width: 100%;
        height: auto;
    }
    
    .img-border {
        min-height: 220px;
    }
}

/* Responsive Footer */
@media (max-width: 767.98px) {
    .footer .row > div {
        text-align: center;
    }
    
    .footer .btn-link {
        text-align: center;
        margin-left: 0;
    }
    
    /* .footer .btn.btn-social {
        margin: 0 auto;
    } */
    
    .footer .d-flex.pt-2 {
        justify-content: center;
    }
    
    .footer .copyright .row > div {
        text-align: center !important;
    }
}

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

/* Better Font Rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove Tap Highlight on Mobile */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Fix iOS Zoom on Input Focus */
@supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Responsive Iframe */
@media (max-width: 767.98px) {
    iframe {
        max-width: 100%;
        height: auto;
    }
}

/* Hide on Mobile */
@media (max-width: 767.98px) {
    .d-mobile-none {
        display: none !important;
    }
}

/* Show on Mobile Only */
@media (min-width: 768px) {
    .d-mobile-only {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .d-mobile-only {
        display: block !important;
    }
}

/* Responsive Flex */
@media (max-width: 767.98px) {
    .flex-md-column {
        flex-direction: column !important;
    }
    
    .flex-md-row {
        flex-direction: row !important;
    }
}

/* Gap Utilities */
@media (max-width: 767.98px) {
    .gap-3 {
        gap: 0.75rem !important;
    }
    
    .gap-4 {
        gap: 1rem !important;
    }
    
    .gap-5 {
        gap: 1.25rem !important;
    }
}

/********** FINAL OVERFLOW FIXES **********/

/* Force all containers to respect viewport */
.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Fix padding issues */
@media (max-width: 767.98px) {
    .px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .px-4 {
        padding-left: .8rem !important;
        padding-right: .8rem !important;
    }
    
    .px-3 {
        padding-left: .6rem !important;
        padding-right: .6rem !important;
    }
    
    .ps-5, .pl-5 {
        padding-left: 1rem !important;
    }
    
    .pe-5, .pr-5 {
        padding-right: 1rem !important;
    }
    
    .ms-5, .ml-5 {
        margin-left: 1rem !important;
    }
    
    .me-5, .mr-5 {
        margin-right: 1rem !important;
    }
    
    .ms-3, .ml-3 {
        margin-left: .5rem !important;
    }
    
    .me-3, .mr-3 {
        margin-right: .5rem !important;
    }
}

/* Ensure no horizontal scrollbar */
::-webkit-scrollbar:horizontal {
    display: none;
}

/* Fix for flex items */
.d-flex {
    max-width: 100%;
}

/* Fix for grid items */
.row > [class*="col-"] {
    max-width: 100%;
}

/* Fix specific components */
.page-header .container {
    max-width: 100%;
}

.header-bg {
    max-width: 100vw;
}

.facts .container {
    max-width: 100%;
}

/* Fix carousel overflow */
.owl-carousel .owl-stage {
    display: flex;
}

.owl-carousel .owl-item {
    flex-shrink: 0;
}

/* Prevent fixed width elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    max-width: 100%;
    width: 100%;
}

/* Fix for absolute positioned elements inside containers */
.position-relative {
    max-width: 100%;
}

/* Final mobile fix */
@media (max-width: 767.98px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}
/* Prevenir scroll durante animações AOS */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Elementos animados não devem causar reflow */
[data-aos] {
    transform: none !important;
    backface-visibility: hidden;
}

/* Containers não precisam de overflow restriction */
.container,
.container-xxl,
.container-fluid {
    max-width: 100%;
}


/* WhatsApp CTA Box Hover Effect */
.bg-primary.h-100.d-flex.align-items-center.rounded-4 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bg-primary.h-100.d-flex.align-items-center.rounded-4:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 148, 71, 0.3);
}

/*** Mobile Hero Order Fix ***/
@media (max-width: 991.98px) {
    .container-fluid.bg-dark > .row {
        display: flex;
        flex-direction: column;
    }
    
    .container-fluid.bg-dark > .row > .col-lg-6:first-child {
        order: 2 !important;
    }
    
    .container-fluid.bg-dark > .row > .col-lg-6:last-child {
        order: 1 !important;
    }
}

/*** Mobile Footer Centralizado ***/
@media (max-width: 991.98px) {
    .footer .row {
        text-align: center !important;
    }
    
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 2rem;
        text-align: center !important;
    }
    
    .footer .col-lg-3:first-child {
        text-align: center;
    }
    
    .footer .col-lg-3:first-child img {
        margin: 0 auto 1rem auto !important;
        display: block;
    }
    
    .footer .d-flex.pt-2 {
        justify-content: center;
    }
    
    .footer h5 {
        text-align: center !important;
    }
    
    .footer .btn-link,
    .footer .btn.btn-link {
        display: block !important;
        text-align: center !important;
        width: 100%;
        padding: 5px 0 !important;
        margin-left: 0 !important;
    }
    
    .footer p {
        text-align: center !important;
    }
    
    .footer .copyright .row {
        text-align: center !important;
    }
    
    .footer .copyright .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

/*** Mobile Topbar - Fundo verde e centralizado ***/
@media (max-width: 991.98px) {
    .d-lg-none.py-2.px-2 {
        background-color: var(--primary-dark) !important;
        background: #1A4D2E !important;
        padding: 12px 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .d-lg-none.py-2.px-2 .d-flex {
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important;
    }
    
    .d-lg-none.py-2.px-2 .btn-sm-square {
        padding: 6px 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: rgba(255,255,255,0.15) !important;
        border-radius: 4px;
        border: none !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .d-lg-none.py-2.px-2 .btn-sm-square i {
        color: #fff !important;
        font-size: 18px !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .d-lg-none.py-2.px-2 .btn-sm-square:hover {
        background-color: rgba(255,255,255,0.25) !important;
    }
}
