/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Adiciona rolagem suave para links de âncora */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0047ff;
    text-decoration: none;
}

.logo img {
    height: 32px;
    margin-right: 0.5rem;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus {
    color: #0047ff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: space-around;
    display: none; /* Escondido por padrão em telas grandes */
    position: fixed; /* Posição fixa na tela */
    top: 1rem;
    right: 5%; /* Alinha com o container */
    z-index: 1001; /* Garante que fique acima de outros elementos */
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #222;
    border-radius: 3px;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.nav-open .hamburger-line {
    background-color: #fff; /* Muda a cor do ícone para branco quando o menu está aberto */
}

.btn-primary {
    background-color: #0047ff;
    color: #fff ;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0033cc;
}

.nav-btn {
    color: #fff !important; /* Garante que o texto do botão no nav seja sempre branco */
}

.btn-secondary {
    background-color: #e0e7ff;
    color: #0047ff;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #c7d2fe;
}

.btn-primary.nav-btn {
    color: #fff !important; /* Garante que o texto do botão no nav seja sempre branco */
}


#product-title {
    position: relative;
    display: inline-block;
    padding: 0 0.5rem;
    background: none;
    box-shadow: none;
    border-radius: 0;
}

/* Hero Section */
.hero-section {
    background-color: #0047ff; /* Cor de fallback */
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #0047ff 20%, rgba(0, 42, 143, 0.5) 50%, transparent 70%);
    z-index: 1; /* Abaixo do texto e das bolinhas */
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-carousel-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 2; /* Acima do gradiente */
}

.hero-carousel-dots .dot {
    border: none;
    cursor: pointer;
    padding: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 10px;
    height: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Transição suave para largura e cor */
}

.hero-carousel-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-carousel-dots .dot.active {
    width: 30px; /* Expande a largura da bolinha ativa */
    border-radius: 10px; /* Transforma em uma pílula */
    background-color: #ffffff;
}

.hero-text {
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* Garante que o texto fique sobre a imagem */
    z-index: 2; /* Acima do gradiente */
}

/* Estilo específico para a hero section de uma página de produto */
.product-hero::before {
    background: linear-gradient(to right, rgba(0, 71, 255, 0.7) 20%, rgba(0, 42, 143, 0.5) 50%, transparent 70%);
}

.product-hero .hero-carousel-wrapper {
    opacity: 0.3;
}


.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.highlight {
    color: #00ffcc;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Products Section */
.products-section {
    background-color: #f9f9f9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.section-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0047ff;
    margin-bottom: 0.5rem;
    letter-spacing: 1.5px; 
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap; /* Impede que o título quebre em várias linhas */
}

/* Regra geral para a linha ao lado dos títulos */
.section-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background-color: #0047ff;
}

.section-title.no-line::after {
    content: none;
}

.section-subtitle {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #222;
}

.products-section .section-subtitle {
    margin-bottom: 2rem;
    color: #222;
}

.products-content {
    display: flex;
    gap: 2rem;
    align-items: center; /* Adiciona alinhamento vertical ao centro */
}

.product-tabs {
    flex: 1;
}

.product-tabs ul {
    list-style: none;
    /* border-right: 2px solid #0047ff; */
    padding-right: 1rem;
    
}

.product-tabs li {
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    color: #777;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    
}

.product-tabs li.active,
.product-tabs li:hover {
    color: #0047ff;
    /* border-left-color: #0047ff; */
    
}

.product-tabs li[data-product="agendpro"].active {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(0, 71, 255, 0.15) 0%, transparent 100%);
    /* box-shadow: 2px 2px 5px rgba(0, 71, 255, 0.2); */
    /* border-radius: 4px; */
    font-weight: 700;
    border-radius: 10px;
}

.product-tabs li[data-product="enginerpro"].active {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(34, 197, 94, 0.15) 0%, transparent 100%);
    /* box-shadow: 2px 2px 5px rgba(34, 197, 94, 0.2); */
    /* border-radius: 4px; */
    font-weight: 700;
    border-radius: 10px;
}

.product-tabs li[data-product="fastfood"].active {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(249, 115, 22, 0.15) 0%, transparent 100%);
    /* box-shadow: 2px 2px 5px rgba(249, 115, 22, 0.2); */
    /* border-radius: 4px; */
    font-weight: 700;
    border-radius: 10px;
}

.product-tabs li[data-product="mooday"].active {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(147, 51, 234, 0.15) 0%, transparent 100%);
    /* box-shadow: 2px 2px 5px rgba(147, 51, 234, 0.2); */
    /* border-radius: 4px; */
    font-weight: 700;
    border-radius: 10px;
}

.product-tabs li[data-product="sistema1"].active {
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgba(239, 68, 68, 0.15) 0%, transparent 100%);
    /* box-shadow: 2px 2px 5px rgba(239, 68, 68, 0.2); */
    /* border-radius: 4px; */
    font-weight: 700;
    border-radius: 10px;
}

.product-details {
    flex: 3;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 71, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out, transform 0.3s ease-in-out;
    opacity: 1;
    transform: scale(1);
    display: flex; /* Usado para alinhar o conteúdo na base */
    align-items: flex-end;
    min-height: 450px; /* Garante uma altura mínima para o card */
}

.product-details.is-changing {
    opacity: 0;
    transform: scale(0.98);
}

.product-details img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.product-info {
    position: relative; /* Para ficar acima da imagem e do gradiente */
    z-index: 3;
    color: #fff;
    padding: 2rem;
    width: 100%;
}

.product-header {
    display: flex;
    justify-content: flex-start; /* Alinha o título e o botão no início */
    align-items: center;
    margin-bottom: 1rem;
    gap: 1.5rem; /* Adiciona um espaço entre o título e o botão */
}

.product-info h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

.product-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 80%; /* Evita que o texto vá até a borda */
}

/* Efeito de brilho que segue o mouse */
.product-details::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%; /* Aumenta a altura do gradiente para melhor legibilidade */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.product-details:hover::before {
    opacity: 0.8; /* Suaviza o gradiente no hover */
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    background-color: #000000;
    color: #fff;
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    overflow-x: hidden; /* Impede que elementos posicionados para fora causem overflow */
}

.about-section .container {
    /* display: flex; */ /* Removido para corrigir o layout */
}

.about-text {
    /* max-width: 450px; */ /* Removido para não limitar o wrapper do título */
    position: relative;
    z-index: 2;
}

.about-text h2 {
    /* Estilos agora são herdados de .section-title */
}

.about-section .section-title-wrapper {
    max-width: none; /* Remove a limitação de largura */
    margin-bottom: 2rem; /* Adiciona espaço abaixo do título */
}

.products-section .section-title-wrapper {
    max-width: none; /* Remove a limitação de largura */
}

.about-text h3 {
    font-size: 3.5rem;      /* Aumenta o tamanho da fonte */
    font-weight: 900;       /* Deixa a fonte mais forte */
    line-height: 1.1;       /* Ajusta o espaçamento entre linhas */
    margin-bottom: 1.5rem;  /* Adiciona espaço abaixo */
    max-width: 500px;       /* Garante a quebra de linha */
    color: #fff;            /* Define a cor do texto como branco */
}

.about-text p {
    max-width: 550px; /* Limita a largura do parágrafo para melhor legibilidade */
    color: #fff;
    font-size: 1.125rem;    /* Aumenta levemente a fonte do parágrafo */
    line-height: 1.7;       /* Melhora a legibilidade */
}

.about-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 100%;
    z-index: 1;
}

.about-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 40%), 
                linear-gradient(to right, rgba(0, 0, 0, 1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Differential Section */
.differential-section {
    background-color: #0047ff;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0; /* Adiciona espaçamento vertical para não colar nas seções adjacentes */
    overflow-x: hidden; /* Impede que os botões do carrossel causem overflow */
}

.differential-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    padding: 0 2rem;
}

.differential-container .section-title-wrapper {
    grid-column: 1 / -1; /* Faz o wrapper ocupar todas as colunas */
    width: 100%; /* Garante que o wrapper tenha largura para a linha se expandir */
}

/* Garante que o título e a linha na seção de diferencial sejam brancos */
.differential-container .section-title {
    color: #fff; /* Apenas a cor é específica desta seção */
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Garante que a linha na seção de diferencial seja branca */
.differential-container .section-title::after {
    background-color: #ffffff; /* Apenas a cor da linha é específica */
}

.differential-container h3 {
    grid-column: 1 / 2;
    font-weight: 900;
    font-size: 3.5rem;
    margin-top: 1rem; /* Adiciona espaço acima do título */
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.differential-container p {
    grid-column: 2 / 3;
    font-size: 1.325rem;
    margin-bottom: 1.5rem;
    max-width: 450px;
    color: #fff;
}

.differential-container .btn-primary {
    grid-column: 2 / 3; 
    justify-self: start; /* Impede que o botão estique na largura da coluna */
    padding: 0.3rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    background-color: #ffffff;
    /* border: 2px solid #ffffff; */
    color: #0033cc;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.differential-container .btn-primary:hover,
.differential-container .btn-primary:focus {
    background-color: #ffffff;
    color: #0047ff;
}

.carousel-wrapper {
    grid-column: 1 / 3; /* Ocupa as duas colunas */
    width: 100%;
    position: relative; /* Necessário para posicionar as setas */
    margin-top: 2rem;
}

.carousel-button {
    display: none; /* Escondido por padrão em telas grandes */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: #0047ff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.carousel-button.prev { left: -20px; }
.carousel-button.next { right: -20px; }

.carousel-button:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-pagination {
    display: none; /* Escondido por padrão, aparece em telas menores */
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.carousel-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-pagination .dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.differential-icons {
    grid-column: 1 / 3;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    /* Adiciona rolagem e snap */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth; /* Adiciona a transição suave na rolagem */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Esconde a barra de rolagem */
}

.differential-icons::-webkit-scrollbar {
    display: none; /* Esconde a barra de rolagem no Webkit */
}
.icon-item {
    flex: 1; /* Permite que os itens cresçam igualmente */
    max-width: 240px; /* Aumenta o tamanho máximo */
    text-align: center;
    scroll-snap-align: center; /* Centraliza o item ao rolar */
}
.icon-item img {
    max-width: 100%; /* Garante que a imagem não ultrapasse o contêiner */
    margin-bottom: 1rem;
    height: auto; /* Mantém a proporção da imagem */
}

/* Call to Action Section */
.cta-section {
    background-color: #f0f4ff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.cta-section h2 {
    font-weight: 900;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: #0047ff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cta-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #000;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Features Section */
.features-section {
    background-color: #fff;
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item img,
.feature-item i {
    font-size: 48px; /* Define o tamanho do ícone */
    margin-bottom: 1rem;
    color: #0047ff; /* Define a cor principal do ícone */
}

.feature-item h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #222;
}

.feature-item p {
    color: #555;
}

/* Pricing Section */
.pricing-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
}

.pricing-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 71, 255, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 32px rgba(0, 71, 255, 0.1);
}

.pricing-card.featured {
    border: 2px solid #0047ff;
    transform: scale(1.05);
}

.pricing-card .featured-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0047ff;
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0047ff;
    margin-bottom: 1.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.cta-section .btn-primary {
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.875rem;
    background-color: #0047ff;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-section .btn-primary:hover,
.cta-section .btn-primary:focus {
    background-color: #0033cc;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 3rem 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    max-width: 300px;
    flex: 1;
    font-family: 'Inter', sans-serif;
    color: #222;
}

.footer-logo-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0047ff;
}

.footer-logo-name img {
    height: 32px;
    margin: 0;
}

.footer-left p {
    font-size: 0.875rem;
    color: #222;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex: 2;
    flex-wrap: wrap;
}

.footer-links div {
    flex: 1; /* Garante que as colunas se distribuam igualmente sem quebrar a linha */
}

.footer-links h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0047ff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a:focus {
    color: #0047ff;
}

.back-to-top {
    height: 50px;
    width: 50px;
    background-color: #0047ff;
    border-radius: 50%; /* Transforma em um círculo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

    /* Alinhamento do ícone */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Estilo do ícone */
    color: #fff;
    text-decoration: none;
    align-self: flex-end;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover, .back-to-top:focus {
    background-color: #0033cc;
    transform: translateY(-5px); /* Efeito de "flutuar" */
}

@media (max-width: 1024px) {
    .hero-section .container {
        justify-content: center;
        text-align: center;
    }
    
    .hero-text {
        max-width: 600px; /* Permite que o texto ocupe mais espaço na horizontal */
    }

    /* Reativa o carrossel para tablets, mas com um gradiente mais forte para legibilidade */
    .hero-carousel-wrapper {
        display: block;
        opacity: 0.4; /* Reduz a opacidade da imagem para o texto se destacar */
    }

    .hero-section::before {
        /* Aumenta a força do gradiente para garantir a legibilidade do texto sobre a imagem */
        background: linear-gradient(to right, #0047ff 30%, rgba(0, 42, 143, 0.7) 60%, transparent 80%);
    }

    .about-section .container {
        justify-content: center;
        text-align: center;
    }

    .about-image {
        display: none;
    }

    .differential-container h3 {
        font-size: 3rem; /* Reduz um pouco o título para caber melhor em tablets */
    }

    .differential-container {
        grid-template-columns: 1fr;
        text-align: center; /* Centraliza o texto dos elementos filhos */
        padding: 0; /* Remove o padding horizontal para centralizar corretamente */
    }

    .differential-container .section-title-wrapper,
    .differential-container h3,
    .differential-container p,
    .differential-container .btn-primary {
        grid-column: 1 / -1;
    }

    .differential-container p {
        justify-self: center; /* Centraliza o parágrafo no grid */
        max-width: 500px; /* Define uma largura máxima para melhor legibilidade */
    }

    .differential-container .section-title-wrapper {
        justify-content: center; /* Centraliza o título e a linha */
        margin-left: 0;
        margin-right: 0;
    }

    .differential-container .btn-primary {
        justify-self: center; /* Centraliza o botão */
    }

    /* Reordena os elementos para um layout mais bonito no responsivo */
    .differential-container .carousel-wrapper {
        order: 3; /* Move o carrossel para o final */
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .differential-container p {
        order: 1; /* Move o parágrafo para depois do título */
        margin-top: 1rem;
    }
    .differential-container .btn-primary {
        order: 2; /* Move o botão para depois do parágrafo */
        margin-top: 1rem;
    }

    .carousel-pagination {
        display: flex; /* Mostra a paginação em telas menores */
    }

    .carousel-button {
        display: flex; /* Garante que as setas apareçam em telas menores */
    }

    /* Ajusta a posição das setas para não ficarem fora da tela */
    .carousel-button.prev {
        left: 0; /* Move a seta para dentro da área de conteúdo */
    }
    .carousel-button.next {
        right: 0; /* Move a seta para dentro da área de conteúdo */
    }

    .differential-icons {
        flex-direction: row; /* Garante que os itens fiquem lado a lado */
        flex-wrap: nowrap; /* Impede que os itens quebrem a linha */
        justify-content: flex-start; /* Alinha os itens no início */
        gap: 2rem; /* Aumenta o espaçamento entre os ícones */
        padding: 0 2rem 1rem 2rem; /* Adiciona padding para não cortar nas bordas */
    }

    .icon-item {
        flex: 0 0 80%; /* Cada ícone ocupa 80% da largura, mostrando um e parte do próximo */
        max-width: 240px; /* Adiciona uma largura máxima para evitar que a imagem estique demais */
    }
}

@media (max-width: 900px) {
    /* Esconde o carrossel da hero section apenas em telas de celular */
    .hero-carousel-wrapper {
        display: none;
    }

    .about-section .container,
    .products-content {
        flex-direction: column;
        align-items: center;
    }

    .product-tabs ul {
        border-right: none;
        border-bottom: none; /* Remove a linha abaixo das abas no modo responsivo */
        padding-right: 0;
        padding-bottom: 1rem;
        display: flex;
        gap: 0.5rem;
        justify-content: center;
    }

    .product-tabs li {
        border-left: none;
        border-bottom: 4px solid transparent;
    }

    .product-tabs li.active,
    .product-tabs li:hover {
        border-left: none;
        /* border-bottom-color: #0047ff; */
    }

    /* No modo responsivo, o card terá um layout mais tradicional (imagem no topo, conteúdo abaixo) */
    .product-details {
        display: block; /* Muda o layout para bloco */
        background-color: #fff; /* Adiciona um fundo branco ao card */
        max-width: 90%;
        margin: 0 auto;
        margin-bottom: 4rem; /* Adiciona espaçamento inferior no modo responsivo */
        min-height: auto;
    }

    /* Remove o gradiente de sobreposição no modo responsivo */
    .product-details::before {
        display: none;
    }

    /* A imagem agora fica no topo do card, não mais como fundo */
    .product-details img {
        position: static; /* Remove o posicionamento absoluto */
        height: auto;
        width: 100%;
        border-radius: 16px 16px 0 0; /* Arredonda os cantos superiores da imagem */
    }

    .product-info {
        position: static; /* Remove o posicionamento relativo */
        padding: 2rem 1.5rem; /* Aumenta o padding vertical */
        color: #222; /* Muda a cor do texto para escuro */
        text-align: center; /* Centraliza todo o texto e elementos inline */
    }

    .product-header {
        flex-direction: row; /* Coloca os itens lado a lado */
        justify-content: center; /* Centraliza o grupo horizontalmente */
        align-items: center; /* Alinha verticalmente os itens */
        gap: 1rem; /* Reduz o espaçamento entre o título e o botão */
    }

    /* Ajusta o tamanho do título do produto para telas menores */
    .product-info h4 {
        font-size: 1.375rem; /* Reduz o tamanho da fonte do título */
    }

    /* Ajusta o tamanho do botão dentro do card para telas menores */
    .product-info .btn-primary {
        padding: 0.3rem 0.8rem; /* Reduz o padding do botão */
        font-size: 0.875rem; /* Reduz o tamanho da fonte do botão */
    }

    /* Garante que o parágrafo também tenha a cor escura para ser legível no fundo branco */
    .product-info p {
        color: #555; /* Um cinza escuro para boa legibilidade */
        max-width: 100%; /* Garante que o parágrafo possa usar toda a largura */
    }

    .about-image img,
    .product-details img {
        max-width: 100%;
        height: auto;
    }

    /* Efeito de desfoque no conteúdo principal quando o menu está aberto */
    body.nav-open > *:not(.nav):not(.nav-toggle) {
        /* filter: blur(5px); */
        transition: filter 0.3s ease-in-out;
    }

    .nav-toggle {
        display: flex; /* Mostra o botão em telas menores */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* Começa fora da tela */
        width: 70%;
        height: 100vh;
        /* Fundo semitransparente com desfoque */
        background-color: rgba(20, 20, 20, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px); /* Suporte para Safari */

        flex-direction: column;
        justify-content: flex-start; /* Alinha os itens no topo */
        align-items: flex-start; /* Alinha itens à esquerda */
        transition: right 0.3s ease-in-out;
        padding-top: 8rem; /* Adiciona espaço no topo para descer os links */
    }

    .nav.visible {
        right: 0; /* Entra na tela */
    }

    .nav ul {
        flex-direction: column;
        text-align: left;
        gap: 2rem;
        width: 100%;
        padding-left: 2rem;
    }

    /* Animação de entrada dos itens do menu */
    .nav li {
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        padding-top: 0.5rem;
    }

    .nav.visible li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Adiciona um atraso para cada item, criando um efeito cascata */
    .nav.visible li:nth-child(2) { transition-delay: 0.1s; }
    .nav.visible li:nth-child(3) { transition-delay: 0.2s; }
    .nav.visible li:nth-child(4) { transition-delay: 0.3s; }

    /* Animação do ícone hambúrguer para 'X' */
    .nav-open .nav-toggle .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-open .nav-toggle .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .nav-open .nav-toggle .hamburger-line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav a {
        color: #fff;
        font-size: 1.2rem;
    }

    /* Permite que o botão quebre a linha e o centraliza */
    .nav .btn-primary {
        white-space: normal;
        text-align: center;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Reordena os itens do rodapé na visão responsiva */
    .footer-links {
        order: 1;
    }

    .footer-left {
        order: 2;
    }

    .back-to-top {
        order: 3;
    }

    .footer-links {
        justify-content: center;
    }

/* Animação de Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

}
@media (max-width: 480px) {
    .hero-text h1, .about-text h3 {
        font-size: 2.5rem;
    }

    .product-tabs ul {
        flex-wrap: wrap;
    }

    .icon-item {
        flex: 0 0 90%; /* Em telas muito pequenas, mostra quase um item por vez */
    }
}
