/**
 * KAPJ Consulting - Estilos Responsivos
 * Paleta de Cores:
 * - Azul Primário: #00A6B2
 * - Ciano Secundário: #81D4FA
 * - Branco: #FFFFFF
 * - Preto/Cinza Escuro: #333333
 */

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #353535;
    --secondary-cyan: #81D4FA;
    --white: #FFFFFF;
    --dark-gray: #333333;
    --light-gray: #f5f5f5;
    --text-color: #333333;
    --gradient-primary: linear-gradient(135deg, #00A6B2 0%, #81D4FA 100%);
    --gradient-light: linear-gradient(135deg, #81D4FA 0%, #E0F7FA 100%);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

:root {
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    font-family: var(--font-family-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Aplicar fonte de títulos em todos os elementos de título */
h1, h2, h3, h4, h5, h6,
.hero h1,
.hero-content h1,
.section-title,
.page-hero-content h1,
.page-hero-content h2,
.hero-lead-form h3,
.testimonial-info h3,
.article-card h3,
.service-content h3,
.intro-text h2,
.intro-text h3,
.section2-title,
.logo {
    font-family: var(--font-family-heading);
}

.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header e Navegação */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1.5rem 0;
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    height: 50px;
}

.logo-image {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Quando a logo é imagem, remover estilos de texto */
.logo img.logo-image {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.logo:has(img.logo-image) {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    color: inherit;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.navbar-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.navbar-action .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.80rem;
    white-space: nowrap;
}

.navbar-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary-blue);
}

.navbar-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: var(--transition);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Hero Section Simples */
.hero-simple {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-simple .hero-overlay {
    background: linear-gradient(135deg, rgba(0, 166, 178, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-simple-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: var(--white);
    margin: 0 auto;
    padding: 4rem 0;
}

.hero-simple h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-simple-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--white);
    opacity: 0.95;
}

/* Section - Only Text */
.text-section {
    padding: 5rem 0 !important;
}

.text-section-content {
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.text-section-content .section-title {
    margin-bottom: 2rem;
    text-align: left;
}

.text-section-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.text-section-body p {
    margin-bottom: 1.5rem;
}

.text-section-body p:last-child {
    margin-bottom: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-content {
    max-width: 100%;
    text-align: left;
    color: var(--white);
}

.hero-form-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero-lead-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.hero-lead-form h3 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
    text-align: center;
}

.hero-lead-form .form-group {
    margin-bottom: 1.25rem;
}

.hero-lead-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-lead-form .form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.hero-lead-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-lead-form input[type="text"],
.hero-lead-form input[type="email"],
.hero-lead-form input[type="tel"],
.hero-lead-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    box-sizing: border-box;
}

.hero-lead-form input[type="text"]:focus,
.hero-lead-form input[type="email"]:focus,
.hero-lead-form input[type="tel"]:focus,
.hero-lead-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 166, 178, 0.1);
}

.hero-lead-form textarea {
    resize: vertical;
    min-height: 80px;
}

.hero-lead-form .btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.hero-lead-form .form-group-checkbox {
    margin-bottom: 1rem;
}

.hero-lead-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
}

.hero-lead-form .checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.hero-lead-form .checkbox-label span {
    flex: 1;
}

.hero-lead-form .alert {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hero-lead-form .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hero-lead-form .alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero .slogan {
    font-size: 1.35rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

/* Page Hero - Hero section para páginas (diferente da home) */
.page-hero {
    background: var(--gradient-primary);
    padding: 6rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Overlay padrão (grid pattern) - apenas quando não há imagem de fundo */
.page-hero:not([style*="background-image"])::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* Overlay quando há imagem de fundo */
.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 166, 178, 0.75) 0%, rgba(129, 212, 250, 0.65) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    max-width: 800px;
    margin: 0;
}

.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 300;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-whatsapp {
    background: #ffffff;
    color: #353535;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #353535;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Sections */
.section {
    padding: 0;
}



.intro-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Segunda seção com layout invertido */
.intro-grid-inverted {
    grid-template-columns: 1fr 1fr;
}

.intro-grid-inverted .intro-image {
    order: 1;
}

.intro-grid-inverted .intro-text {
    order: 2;
}

.intro-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    min-width: 0; /* Permite que o grid shrink corretamente */
}

.intro-text h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.intro-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.intro-description p {
    margin-bottom: 1rem;
}

.intro-description p:last-child {
    margin-bottom: 0;
}

.intro-description ul,
.intro-description ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.intro-description li {
    margin-bottom: 0.5rem;
}

.intro-description strong {
    font-weight: 600;
    color: var(--primary-blue);
}

.intro-description em {
    font-style: italic;
}

.intro-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0; /* Permite que o grid shrink corretamente */
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.placeholder-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
}

.placeholder-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.content-section {
    
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section ul li {
    margin-bottom: 0.5rem;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-gray);
    padding: 5rem 0;
}

.testimonials-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 0;
    overflow: visible;
}

.testimonials-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-right: 2rem; /* Espaço para mostrar peek do próximo item */
    margin-right: 0;
    padding-left: 0;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 350px; /* Largura mínima para cards do carousel */
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--secondary-cyan);
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar.placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.testimonial-info h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-blue);
}

.testimonial-meta {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--text-color);
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    margin: 0;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
}

/* Articles Section */
.articles-section {
    background: var(--white);
    padding: 5rem 0;
}

.articles-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 2rem 0 0 0;
    padding: 0;
    overflow: visible;
}

.articles-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-right: 2rem; /* Espaço para mostrar peek do próximo item */
    margin-right: 0;
    padding-left: 0;
}

.articles-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 350px; /* Largura mínima para cards do carousel */
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.article-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gradient-light);
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    width: fit-content;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.article-author {
    font-weight: 500;
}

.article-date {
    color: #999;
}

.article-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.article-link:hover {
    color: var(--secondary-cyan);
    transform: translateX(5px);
}

/* Article Detail Page */
.article-detail-section {
    padding: 3rem 0;
}

.article-detail {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: var(--gradient-light);
}

.article-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-header {
    padding: 2rem 2rem 1rem;
}

.article-detail-header h1 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin: 1rem 0;
    line-height: 1.2;
}

.article-detail-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

.article-excerpt-large {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.article-excerpt-large p {
    font-size: 1.25rem;
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
    border-left: 4px solid var(--primary-blue);
    padding-left: 1.5rem;
}

.article-detail-content {
    padding: 0 2rem 2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-detail-content h2 {
    font-size: 1.75rem;
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-detail-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-detail-content p {
    margin-bottom: 1.5rem;
}

.article-detail-content ul,
.article-detail-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-detail-content li {
    margin-bottom: 0.5rem;
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.article-detail-footer {
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* Services Carousel */
.services-carousel-section {
    background: var(--white);
    padding: 5rem 0;
}

.services-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible; /* Permitir que o peek seja visível */
}

.services-carousel-section > .container {
    padding-right: 0; /* Remover padding direito para permitir peek */
}

.services-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-right: 2rem; /* Espaço para mostrar peek do próximo item */
    margin-right: 0;
    padding-left: 0; /* Sem padding à esquerda para alinhar com container */
}

.services-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-carousel-item {
    min-width: calc(33.333% - 1.33rem); /* 3 cards com gap */
    flex: 0 0 calc(33.333% - 1.33rem);
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.service-carousel-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--gradient-light);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon {
    width: 100%;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    font-size: 4rem;
    color: var(--primary-blue);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-color);
    line-height: 1.6;
    flex: 1;
}

/* Botões do carousel removidos - agora é apenas scroll horizontal */
.carousel-btn {
    display: none;
}

/* Services Grid Section */
.services-grid-section {
    background: var(--white);
    padding: 5rem 0;
}

.services-grid-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
}

.services-grid-template {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.service-grid-item {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-grid-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Admin Forms - Padronizar largura */
.admin-container .contact-form {
    max-width: 100%;
    margin: 2rem 0;
}

/* Padronizar largura de todos os formulários CRUD no admin */
.admin-container form {
    max-width: 100%;
    width: 100%;
}

/* Garantir que divs de formulário também tenham largura consistente */
.admin-container form > div[style*="background"] {
    max-width: 100%;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-cyan);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0 0 0.75rem 0;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.footer-legal-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-legal-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-name {
        font-size: 1.1rem;
    }
    
    .footer-tagline {
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8rem;
    }
    
    .footer-legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-legal-links .footer-separator {
        display: none;
    }
    
    .footer-legal-link {
        font-size: 0.8rem;
    }
}

/* Responsive Design - Mobile First */
/* Elementos do menu mobile - escondidos por padrão no desktop */
.navbar-menu-wrapper {
    display: block; /* No desktop, o wrapper é um container normal */
}

.navbar-menu-header {
    display: none;
}

.navbar-close {
    display: none;
}

.navbar-brand-mobile {
    display: none;
}

.navbar-menu-footer {
    display: none;
}

/* Garantir que o menu desktop está visível */
.navbar-menu-wrapper > .navbar-menu {
    display: flex !important;
    list-style: none;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-direction: row; /* Garantir que seja horizontal no desktop */
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .navbar .container {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    .navbar-toggle {
        display: flex;
        order: 2;
        z-index: 1002;
    }
    
    /* Esconder botão hambúrguer quando o menu estiver aberto */
    .navbar-toggle.active {
        display: none;
    }
    
    .navbar-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .navbar-menu-wrapper.active {
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .navbar-brand-mobile {
        display: block;
    }
    
    .navbar-brand-mobile .logo {
        font-size: 1.25rem;
    }
    
    .navbar-close {
        display: flex;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        color: var(--primary-blue);
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    
    .navbar-close:hover {
        transform: rotate(90deg);
    }
    
    .navbar-close svg {
        width: 24px;
        height: 24px;
    }
    
    .navbar-menu-wrapper.active .navbar-menu {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 2rem;
        gap: 0;
        overflow-y: auto;
        margin: 0;
        list-style: none;
    }
    
    .navbar-menu li {
        width: 100%;
    }
    
    .navbar-menu a {
        display: block;
        padding: 1.5rem 0;
        border-bottom: 1px solid #e0e0e0;
        font-size: 1.25rem;
        font-weight: 500;
        color: var(--text-color);
        text-decoration: none;
        transition: var(--transition);
    }
    
    .navbar-menu a:hover,
    .navbar-menu a.active {
        color: var(--primary-blue);
        padding-left: 1rem;
    }
    
    .navbar-menu-footer {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        padding: 2rem;
        border-top: 1px solid #e0e0e0;
        background: #f8f9fa;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .navbar-contact-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: var(--text-color);
        text-decoration: none;
        font-size: 0.95rem;
        transition: var(--transition);
        white-space: nowrap;
    }
    
    .navbar-contact-link:hover {
        color: var(--primary-blue);
    }
    
    .navbar-contact-link svg {
        flex-shrink: 0;
        color: var(--primary-blue);
    }
    
    .navbar-action {
        order: 3;
    }
    
    .navbar-action .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    
    .hero {
        min-height: 500px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-form-wrapper {
        justify-content: center;
    }
    
    .hero-lead-form {
        max-width: 100%;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-form-wrapper {
        justify-content: center;
    }
    
    .hero-lead-form {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .slogan {
        font-size: 1.1rem;
    }
    
    .page-hero {
        padding: 3rem 0;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .intro-text,
    .intro-image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    
    .intro-image {
        order: -1;
    }
    
    .intro-grid-inverted .intro-image {
        order: -1;
    }
    
    .intro-grid-inverted .intro-text {
        order: 2;
    }
    
    .intro-text h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .intro-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    .intro-description {
        font-size: 1rem;
        text-align: center;
    }

    .intro-description li {
        text-align: left;
    }

    
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail-header h1 {
        font-size: 2rem;
    }
    
    .article-detail-image {
        height: 250px;
    }
    
    .article-detail-header,
    .article-excerpt-large,
    .article-detail-content,
    .article-detail-footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .services-carousel-section > .container {
        padding-right: 0; /* Remover padding direito para permitir peek */
    }
    
    .services-carousel-section > .container,
    .testimonials-section > .container,
    .articles-section > .container {
        padding-right: 0; /* Remover padding direito para permitir peek */
    }
    
    .services-grid-template {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .services-carousel-wrapper,
    .testimonials-carousel-wrapper,
    .articles-carousel-wrapper {
        padding: 0;
        overflow: visible;
    }
    
    .services-carousel,
    .testimonials-carousel,
    .articles-carousel {
        padding-right: 2rem; /* Manter peek do próximo item */
    }
    
    .service-carousel-item {
        min-width: calc(50% - 1rem); /* 2 cards em tablet */
        flex: 0 0 calc(50% - 1rem);
    }
    
    .testimonial-card,
    .article-card {
        min-width: calc(50% - 1rem); /* 2 cards em tablet */
        flex: 0 0 calc(50% - 1rem);
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 0;
    }
}


@media (max-width: 480px) {
    .hero {
        min-height: 400px;
    }
    
    .hero-content {
        padding: 1rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .hero .slogan {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-content .btn {
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .hero-simple {
        min-height: 50vh;
    }
    
    .hero-simple h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-simple-description {
        font-size: 1rem;
    }
    
    .page-hero {
        padding: 2rem 0;
    }
    
    .page-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .services-carousel-section > .container,
    .testimonials-section > .container,
    .articles-section > .container {
        padding-right: 0; /* Remover padding direito para permitir peek */
    }
    
    .services-grid-template {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-carousel-wrapper,
    .testimonials-carousel-wrapper,
    .articles-carousel-wrapper {
        padding: 0;
        overflow: visible;
    }
    
    .services-carousel,
    .testimonials-carousel,
    .articles-carousel {
        padding-right: 1.5rem; /* Peek menor em mobile */
    }
    
    .service-carousel-item {
        min-width: calc(90% - 1rem); /* 1 card em mobile com peek */
        flex: 0 0 calc(90% - 1rem);
    }
    
    .testimonial-card,
    .article-card {
        min-width: calc(90% - 1rem); /* 1 card em mobile com peek */
        flex: 0 0 calc(90% - 1rem);
    }
    
    .hero-lead-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .hero-lead-form .form-group-half {
        margin-bottom: 1.25rem;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .navbar-action .btn-whatsapp {
        padding: 0.5rem;
        margin-right: 0.25rem;
    }
    
    .service-image,
    .service-icon {
        height: 200px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* Admin Styles */
body.admin-page {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.875rem 1.25rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
}

.admin-nav a svg {
    flex-shrink: 0;
    opacity: 0.8;
    transition: var(--transition);
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-left-color: var(--primary-blue);
}

.admin-nav a:hover svg {
    opacity: 1;
}

.admin-nav a.active {
    background: rgba(0, 166, 178, 0.15);
    color: var(--white);
    border-left-color: var(--primary-blue);
}

.admin-nav a.active svg {
    opacity: 1;
    color: var(--primary-blue);
}

.admin-nav-logout {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.admin-nav-logout:hover {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

.admin-nav-logout:hover svg {
    color: #dc3545;
}

.admin-container {
    margin-left: 230px;
    max-width: calc(100% - 260px);
    padding: 2rem;
    width: 100%;
    min-height: 100vh;
    background: #f5f5f5;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--primary-blue);
}

.table tr:hover {
    background: var(--light-gray);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Padronizar largura de tabelas no admin */
.admin-container .table {
    width: 100%;
    max-width: 100%;
}

/* Garantir que todas as seções de formulário tenham largura consistente */
.admin-container form > div {
    max-width: 100%;
}

/* Seção de Clientes */
.clients-section {
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

.clients-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.clients-carousel {
    display: flex;
    gap: 0rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
    scroll-snap-type: x mandatory;
}

.clients-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.client-carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 100px;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-carousel-item:hover {
    transform: translateY(-5px);
}

.client-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.client-logo {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
    display: block;
    border-radius: 10px;
}

.client-logo:hover,
.client-carousel-item:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 0;
    }
    
    .client-carousel-item {
        min-width: 120px;
        height: 80px;
    }
    
    .client-logo {
        max-height: 60px;
    }
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .admin-sidebar.active {
        transform: translateX(0);
    }
    
    .admin-container {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
    }
    
    .admin-mobile-toggle {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--primary-blue);
        color: var(--white);
        border: none;
        padding: 0.75rem;
        border-radius: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow);
    }
    
    .admin-mobile-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .admin-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .admin-sidebar-overlay.active {
        display: block;
    }
}

