/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #1976D2;
    --accent-color: #FF9800;
    --dark-color: #333;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.flag-select {
    display: flex;
    gap: 5px;
}

.flag-icon {
    width: 25px;
    height: 20px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.flag-icon:hover {
    transform: scale(1.1);
}

.flag-icon.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Mobile styles for language switcher */
@media (max-width: 768px) {
    .language-switcher {
        margin: 5px 10px;
    }
    
    .flag-icon {
        width: 20px;
        height: 15px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cabeçalho */
.header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

/* Adicionando espaçamento para compensar o header fixo */
body {
    padding-top: 100px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo .subtitle {
    font-size: 1rem;
    color: var(--gray-color);
    margin: 0;
    font-weight: normal;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: #45a049;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Limitando o tamanho da imagem do mockup em telas maiores */
@media (min-width: 769px) {
    .hero-image img {
        max-width: 500px;
        max-height: 500px;
    }
}

/* Recursos */
.features {
    padding: 100px 0;
    background-color: var(--light-color);
}

.features h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
}

/* Seção de Vídeo de Demonstração */
.demo-video {
    padding: 100px 0;
    background-color: #f8f9fa;
    text-align: center;
}

.demo-video h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.demo-video p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--gray-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsividade para a seção de vídeo */
@media (max-width: 768px) {
    .demo-video {
        padding: 60px 0;
    }
    
    .demo-video h2 {
        font-size: 1.8rem;
    }
    
    .demo-video p {
        font-size: 1rem;
    }
}

/* Carrossel de Imagens */
.carousel-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.carousel-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.carousel-section p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--gray-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 500px; /* Definir altura fixa para o contêiner */
    /* Fallback para caso as variáveis CSS não funcionem */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    /* Garantir que o contêiner tenha layout */
    display: block;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    /* Fallback para caso as transições não funcionem */
    -webkit-transition: -webkit-transform 0.5s ease;
    -moz-transition: -moz-transform 0.5s ease;
    -o-transition: -o-transform 0.5s ease;
    /* Garantir que o carrossel tenha layout */
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Garantir que os slides tenham layout */
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
}

.carousel-slide img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
    object-position: center;
    font-family: 'object-fit: contain;';
}

/* Estilos para correção de problemas específicos de dimensionamento */
.carousel-slide img.fix-dimensions {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Estilos para imagens que não carregam */
.carousel-slide img.image-error {
    background-color: #f0f0f0;
    min-width: 100%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-style: italic;
    position: relative;
}

.carousel-slide img.image-error::before {
    content: "Imagem não disponível";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Estilos para imagens muito grandes */
.carousel-slide img.large-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Estilos para imagens muito pequenas */
.carousel-slide img.small-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Estilos para fallback em caso de problemas de carregamento */
.carousel-container.loading-fallback {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-style: italic;
}

/* Estilos para garantir que o carrossel funcione mesmo com problemas de CSS */
.carousel-container.fallback {
    height: 500px !important;
    overflow: hidden !important;
    position: relative !important;
}

.carousel.fallback {
    display: flex !important;
    height: 100% !important;
    width: 100% !important;
    transition: transform 0.5s ease !important;
}

.carousel-slide.fallback {
    min-width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.carousel-slide img.fallback {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 0 3px 3px 0;
    z-index: 10;
    /* Garantir que os botões sejam visíveis */
    opacity: 0.7;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
}

.prev-btn {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next-btn {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: white;
}

/* Como Funciona */
.how-it-works {
    padding: 100px 0;
    background-color: #fff;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 20px;
    position: relative;
}

.step:not(:last-child):after {
    content: "";
    position: absolute;
    top: 40px;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step p {
    color: var(--gray-color);
}

/* Download */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    color: white;
    text-align: center;
}

.download h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.download p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-download {
    display: inline-block;
    margin-bottom: 40px;
}

.btn-download img {
    height: 80px;
}

.app-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Contato */
.contact {
    padding: 100px 0;
    background-color: #fff;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--gray-color);
}

.contact-info ul {
    list-style: none;
}

.contact-info ul li {
    margin-bottom: 10px;
    font-weight: 500;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #aaa;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .step:after {
        display: none;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .app-info {
        flex-direction: column;
        gap: 20px;
    }
}

/* Tablet styles */
@media (max-width: 768px) and (min-width: 481px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
    
    .steps {
        gap: 30px;
    }
    
    .step {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .header {
        position: relative;
    }
    
    .header .container {
        padding: 15px 0;
    }
    
    body {
        padding-top: 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .subtitle {
        font-size: 0.8rem;
    }
    
    .nav ul li {
        margin: 5px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.7rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    .features h2,
    .how-it-works h2,
    .download h2,
    .testimonials h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .how-it-works {
        padding: 60px 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .download {
        padding: 60px 0;
    }
    
    .download p {
        font-size: 1rem;
    }
    
    .btn-download img {
        height: 60px;
    }
    
    .testimonials {
        padding: 60px 0;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links a {
        margin-bottom: 10px;
    }
}

/* Termos de Uso */
.terms {
    padding: 120px 0 60px;
    background-color: #fff;
    color: var(--dark-color);
}

.terms h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.last-updated {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 40px;
    font-style: italic;
}

.terms-content {
    max-width: 800px;
    margin: 0 auto 40px;
}

.terms-content h2 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--dark-color);
}

.terms-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.terms-content ul {
    margin: 15px 0 15px 30px;
}

.terms-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.back-link {
    text-align: center;
    margin-top: 30px;
}

/* Páginas de Erro */
.error {
    padding: 150px 0 100px;
    background-color: #fff;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
}

.error-code {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-color);
    line-height: 1.6;
}

/* Blog */
.blog {
    padding: 120px 0 60px;
    background-color: #fff;
    color: var(--dark-color);
}

.blog h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.blog-intro {
    text-align: center;
    color: var(--gray-color);
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-post {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.post-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.post-excerpt {
    color: var(--gray-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.current-page {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Post individual */
.post {
    padding: 120px 0 60px;
    background-color: #fff;
    color: var(--dark-color);
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}