/* ═══════════════════════════════════════════════════
   Nildo Construções Rurais — Design de Conversão
   ═══════════════════════════════════════════════════ */

:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --accent: #8B5E3C;
    --dark: #1a1a1a;
    --light-bg: #f9f7f4;
    --text: #333333;
    --text-muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
}

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

/* Previne overflow em elementos específicos */
iframe, video, embed, object {
    max-width: 100%;
}

a { text-decoration: none; transition: var(--transition); }

.section-padding {
    padding: 100px 0;
}

.bg-light-custom { background: var(--light-bg); }

/* ═══════════ Section Headers ═══════════ */

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 2px;
    background: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════ NAVBAR ═══════════ */

.navbar {
    padding: 16px 0;
    transition: var(--transition);
    background: transparent !important;
    width: 100%;
}

.navbar.scrolled {
    background: var(--dark) !important;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.navbar-toggler {
    position: relative;
    z-index: 1000;
}

.navbar-brand img {
    height: var(--logo-height, 50px) !important;
    max-height: var(--logo-height, 50px) !important;
    width: auto !important;
    object-fit: contain;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #fff !important;
}

.btn-cta-nav {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-cta-nav:hover {
    background: transparent;
    color: var(--primary) !important;
    transform: translateY(-1px);
}

/* ═══════════ HERO ═══════════ */

.hero-section {
    position: relative;
    min-height: 100vh;
    background-color: var(--dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    max-width: none;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,67,50,0.92) 0%, rgba(26,26,26,0.85) 100%);
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-badge i { color: #f59e0b; }

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-hero-primary {
    background: var(--primary);
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(45,106,79,0.4);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: #25a244;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(45,106,79,0.5);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.trust-item i {
    color: var(--primary);
    font-size: 1.1rem;
    color: #25a244;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ═══════════ CONTADORES ═══════════ */

.counters-section {
    background: var(--primary-dark);
    padding: 60px 0;
    position: relative;
}

.counter-card {
    color: #fff;
    padding: 20px;
}

.counter-card i {
    font-size: 2.5rem;
    color: rgba(255,255,255,0.3);
    margin-bottom: 12px;
    display: block;
}

.counter-number {
    font-size: 3rem;
    font-weight: 800;
    display: inline;
    line-height: 1;
}

.counter-suffix {
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.7;
}

.counter-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ═══════════ SOBRE ═══════════ */

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.about-image-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.about-image-placeholder i { font-size: 4rem; margin-bottom: 10px; }

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.about-text {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
}

.highlight-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.btn-primary-custom {
    background: var(--primary);
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: var(--transition);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45,106,79,0.3);
}

/* ═══════════ SERVIÇOS ═══════════ */

.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-body {
    padding: 28px 24px;
    flex: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.service-cta {
    display: block;
    text-align: center;
    padding: 14px;
    background: var(--light-bg);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-cta:hover {
    background: var(--primary);
    color: #fff;
}

/* ═══════════ VÍDEO ═══════════ */

.video-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ═══════════ CTA SECTION ═══════════ */

.cta-section {
    position: relative;
    padding: 100px 0;
    background: var(--dark);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
    opacity: 0.95;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #25D366;
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.btn-cta-secondary {
    background: transparent;
    color: #fff !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

.btn-cta-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ═══════════ PORTFÓLIO ═══════════ */

.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,67,50,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}

.gallery-overlay i {
    font-size: 2rem;
    margin-bottom: 8px;
}

.gallery-overlay span {
    font-size: 0.85rem;
    font-weight: 500;
}

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

/* ═══════════ DEPOIMENTOS ═══════════ */

.testimonials-swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 32px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    height: 100%;
}

.testimonial-stars {
    margin-bottom: 16px;
}

.testimonial-stars i {
    color: #f59e0b;
    font-size: 1rem;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--dark);
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ═══════════ COBERTURA ═══════════ */

.coverage-states {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45,106,79,0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.state-badge:hover {
    background: var(--primary);
    color: #fff;
}

.coverage-map-placeholder {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 80px 40px;
    color: rgba(255,255,255,0.5);
    box-shadow: var(--shadow-lg);
}

.coverage-map-placeholder i {
    font-size: 5rem;
    display: block;
    margin-bottom: 16px;
}

.coverage-map-placeholder p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ═══════════ CONTATO ═══════════ */

.contact-info-card {
    background: var(--primary-dark);
    color: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    height: 100%;
    box-shadow: var(--shadow-lg);
}

.contact-info-card h4 {
    font-weight: 700;
    margin-bottom: 28px;
    font-size: 1.3rem;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.contact-item a, .contact-item span {
    color: #fff;
    font-size: 0.95rem;
}

.contact-item a:hover { opacity: 0.8; }

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.contact-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.btn-whatsapp-full {
    background: #25D366;
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    width: 100%;
    display: block;
    text-align: center;
    transition: var(--transition);
}

.btn-whatsapp-full:hover {
    background: #20bd5a;
    transform: translateY(-2px);
}

.contact-form-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.contact-form-card .form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    transition: var(--transition);
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}

/* ═══════════ FOOTER ═══════════ */

.footer-section {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 0;
}

.footer-brand {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

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

.footer-heading {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
    font-size: 1rem;
    width: 20px;
}

.footer-bottom {
    margin-top: 50px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ═══════════ WHATSAPP FLOAT ═══════════ */

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    z-index: 9998;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}

.whatsapp-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: wppPulse 2s infinite;
}

@keyframes wppPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ═══════════ RESPONSIVO ═══════════ */

@media (max-width: 991px) {
    /* ═══ FORÇA OVERFLOW-X HIDDEN EM MOBILE ═══ */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw;
    }

    .hero-title { font-size: 2.4rem; }
    .section-title { font-size: 2rem; }
    .cta-title { font-size: 2rem; }
    .section-padding { padding: 70px 0; }

    .navbar {
        width: 100%;
        max-width: 100vw;
    }

    .navbar-collapse {
        background: var(--dark);
        padding: 20px;
        border-radius: var(--radius);
        margin-top: 16px;
        box-shadow: var(--shadow-lg);
        max-width: 100%;
    }

    .navbar-toggler {
        border: none;
        padding: 0.5rem;
    }

    .btn-cta-nav {
        display: block;
        text-align: center;
        margin-top: 12px;
    }

    /* Previne overflow horizontal */
    .container, .container-fluid {
        overflow-x: hidden;
        max-width: 100%;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 767px) {
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-title { font-size: 1.65rem; }
    .cta-title { font-size: 1.6rem; }
    .section-padding { padding: 60px 0; }

    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; }

    .counter-number { font-size: 2.2rem; }
    .counter-card i { font-size: 1.8rem; }

    .contact-form-card, .contact-info-card { padding: 24px 20px; }

    /* Ajuste do WhatsApp float para não sobrepor Tinna */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
        z-index: 9998;
    }

    /* Ajustes críticos para mobile */
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
    }

    .navbar-brand {
        max-width: 70%;
    }

    .navbar-brand img {
        max-width: 100%;
    }

    /* Garante que rows não causem overflow */
    .row {
        margin-left: -12px;
        margin-right: -12px;
        max-width: 100%;
    }

    .row > * {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Ajusta padding do container em mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Previne overflow em flex containers */
    .hero-actions,
    .cta-buttons,
    .hero-trust,
    .coverage-states {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Garante que seções não excedam viewport */
    section {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .hero-trust { gap: 16px; }
    .trust-item { font-size: 0.8rem; }

    /* Ajustes críticos para telas pequenas */
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

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

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .section-label {
        font-size: 0.7rem;
        padding-left: 30px;
    }

    .section-label::before {
        width: 20px;
    }

    /* Tinna Leads em telas muito pequenas */
    body > div[style*="position: fixed"]:not(.navbar):not(.whatsapp-float),
    body > div[style*="position:fixed"]:not(.navbar):not(.whatsapp-float) {
        max-width: 55px !important;
        width: 55px !important;
        height: 55px !important;
        right: 10px !important;
        bottom: 75px !important;
        left: auto !important;
    }

    /* WhatsApp em telas muito pequenas */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        bottom: 12px !important;
        right: 10px !important;
    }
}

/* ═══════════ FORM FEEDBACK ═══════════ */

.form-success {
    background: #d1fae5;
    color: #065f46;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* ═══════════ SMOOTH SCROLL ═══════════ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ═══════════ FIX MOBILE OVERFLOW ═══════════ */
@media (max-width: 991px) {
    /* Garante que nenhum elemento exceda o viewport */
    html, body {
        max-width: 100vw;
        overflow-x: hidden !important;
        position: relative;
    }

    .navbar,
    .navbar > .container {
        max-width: 100%;
        width: 100%;
    }

    /* Remove margens negativas que podem causar overflow */
    .row {
        --bs-gutter-x: 1.5rem;
    }

    /* ═══ FIX CHAT WIDGETS QUE CAUSAM OVERFLOW ═══ */

    /* Corrige widgets de chat fixos (genérico) */
    [style*="position: fixed"],
    [style*="position:fixed"] {
        max-width: 100vw !important;
    }

    /* Tawk.to */
    #tawkchat-container,
    .tawk-chatview,
    .tawk-min-container {
        max-width: 100vw !important;
        right: 10px !important;
    }

    /* JivoChat */
    jdiv,
    jdiv[style*="fixed"] {
        max-width: calc(100vw - 20px) !important;
        right: 10px !important;
    }

    /* Zendesk */
    #launcher,
    iframe[title*="Zendesk"],
    iframe[name*="launcher"] {
        max-width: 100vw !important;
        right: 10px !important;
    }

    /* WhatsApp Widget / Generic Chat Buttons */
    [class*="chat-widget"],
    [id*="chat-widget"],
    [class*="whatsapp-widget"],
    [id*="whatsapp-widget"],
    .chat-button,
    .floating-chat {
        max-width: calc(100vw - 20px) !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    /* Intercom */
    #intercom-container,
    .intercom-launcher,
    .intercom-messenger-frame {
        max-width: 100vw !important;
        right: 10px !important;
    }

    /* Drift */
    #drift-widget,
    #drift-widget-container {
        max-width: calc(100vw - 20px) !important;
        right: 10px !important;
    }

    /* Facebook Messenger */
    .fb_dialog,
    .fb-customerchat,
    iframe[title*="chat"] {
        max-width: calc(100vw - 20px) !important;
    }

    /* Crisp */
    #crisp-chatbox,
    .crisp-client {
        max-width: 100vw !important;
        right: 10px !important;
    }

    /* ═══ TINNA LEADS CRM CHAT WIDGET ═══ */

    /* Botão do chat TinnaLeads (específico) */
    [data-token],
    [id*="tinna"],
    [class*="tinna"] {
        max-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
        right: 15px !important;
        bottom: 80px !important;
        left: auto !important;
        transform: none !important;
    }

    /* Iframe/Container do chat quando aberto */
    iframe[src*="tinnaleads"],
    iframe[src*="crm.tinna"] {
        max-width: calc(100vw - 30px) !important;
        width: calc(100vw - 30px) !important;
        max-height: calc(100vh - 100px) !important;
        height: auto !important;
        right: 15px !important;
        bottom: 15px !important;
        top: auto !important;
        left: auto !important;
        position: fixed !important;
        transform: none !important;
    }

    /* Container principal do widget Tinna */
    body > div[style*="position: fixed"][style*="bottom"]:not(.navbar):not(.whatsapp-float):not(.chat-widget-button):not(.chat-widget-window),
    body > div[style*="position:fixed"][style*="bottom"]:not(.navbar):not(.whatsapp-float):not(.chat-widget-button):not(.chat-widget-window) {
        max-width: calc(100vw - 30px) !important;
        right: 15px !important;
        bottom: 15px !important;
        top: auto !important;
        left: auto !important;
        position: fixed !important;
        transform: none !important;
    }

    /* Quando o chat está fechado (apenas o botão) */
    body > div[style*="position: fixed"][style*="bottom"]:not(.navbar):not(.whatsapp-float)[style*="width"][style*="60px"],
    body > div[style*="position: fixed"][style*="bottom"]:not(.navbar):not(.whatsapp-float)[style*="width"][style*="70px"] {
        max-width: 60px !important;
        width: 60px !important;
        height: 60px !important;
        bottom: 80px !important;
    }

    /* Wrapper/parent do botão TinnaLeads */
    body > div:not(.chat-widget-button):not(.chat-widget-window) > div[style*="position: fixed"],
    body > div:not(.chat-widget-button):not(.chat-widget-window) > div[style*="position:fixed"] {
        max-width: 60px !important;
        width: 60px !important;
        right: 15px !important;
        bottom: 80px !important;
        left: auto !important;
    }

    /* ═══ CORREÇÃO PARA WIDGETS DE CHAT (APENAS ELEMENTOS FIXOS) ═══ */

    /* Garante que elementos fixos de terceiros (TinnaLeads) não ultrapassem o viewport */
    body > div[style*="position: fixed"]:not(.navbar):not(.whatsapp-float):not(.chat-widget-button):not(.chat-widget-window),
    body > div[style*="position:fixed"]:not(.navbar):not(.whatsapp-float):not(.chat-widget-button):not(.chat-widget-window),
    div[style*="position"][style*="fixed"]:not(.navbar):not(.whatsapp-float):not(.chat-widget-button):not(.chat-widget-window),
    body > iframe[style*="position: fixed"]:not([src*="chat-leads"]),
    body > iframe[style*="position:fixed"]:not([src*="chat-leads"]) {
        max-width: calc(100vw - 30px) !important;
        right: 15px !important;
        left: auto !important;
    }

    /* Força contenção de iframes de chat */
    iframe[style*="z-index"][style*="position"] {
        max-width: calc(100vw - 30px) !important;
        right: 15px !important;
        top: auto !important;
        bottom: 15px !important;
    }

    /* ═══ REGRAS ADICIONAIS PARA CHAT ABERTO ═══ */

    /* Qualquer div ou iframe fixo com altura grande (chat aberto) */
    body > div[style*="position"][style*="fixed"][style*="height"],
    body > div[style*="position"][style*="fixed"] > div[style*="height"],
    body > div[style*="position"][style*="fixed"] > iframe[style*="height"] {
        top: auto !important;
        bottom: 15px !important;
        max-height: calc(100vh - 100px) !important;
        position: fixed !important;
    }

    /* Container do chat quando expandido (mais de 100px de altura) */
    [style*="position: fixed"][style*="height"],
    [style*="position:fixed"][style*="height"] {
        top: auto !important;
        bottom: 15px !important;
        left: auto !important;
        right: 15px !important;
    }

    /* FORÇA posicionamento inferior para qualquer elemento fixo grande */
    body > div[style*="position: fixed"]:not(.navbar):not(.whatsapp-float):not([style*="width: 60px"]),
    body > div[style*="position:fixed"]:not(.navbar):not(.whatsapp-float):not([style*="width:60px"]) {
        top: auto !important;
        bottom: 15px !important;
        max-height: calc(100vh - 100px) !important;
        overflow-y: auto !important;
    }

    /* Para iframes dentro de containers fixos */
    body > div > iframe[style*="position"],
    div[style*="position: fixed"] > iframe,
    div[style*="position:fixed"] > iframe {
        top: auto !important;
        bottom: 0 !important;
        max-height: calc(100vh - 100px) !important;
    }
}

