:root {
    --primary-color: #1e3a8a;
    --secondary-color: #f3f4f6;
    --text-color: #1f2937;
    --accent-color: #0ea5e9;
    --whatsapp-color: #25d366;
    --danger-color: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho Otimizado e Unificado (Compacto e Alinhado) */
header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-img {
    max-height: 95px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #1e40af;
}

.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imagens/image_0.png');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 130px 0;
    text-align: center;
}

/* Estilos do Carrossel de Frases */
.carousel-container {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.pain-section {
    padding: 80px 0;
    background-color: #fff5f5;
    border-top: 4px solid var(--danger-color);
    border-bottom: 4px solid var(--danger-color);
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pain-text h2 {
    font-size: 2.2rem;
    color: var(--danger-color);
    margin-bottom: 20px;
}

.pain-list {
    list-style: none;
    padding: 0;
}

.pain-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 30px;
}

.pain-list li::before {
    content: "❌";
    position: absolute;
    left: 0;
    top: 2px;
}

.features {
    padding: 90px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 70px;
    gap: 50px;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
}

.aviso-ilustrativo {
    font-size: 0.75rem;
    color: #6b7280;
    font-style: italic;
    margin-top: 6px;
    text-align: right;
}

.about {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #4b5563;
}

.quote {
    padding: 90px 0;
    background-color: #ffffff;
}

.quote-title {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    box-sizing: border-box;
    background: #ffffff;
}

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

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #1e40af;
}

/* Botão Flutuante do WhatsApp (Apenas o ícone grande com sombra) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: transparent;
    width: 65px;
    height: 65px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

footer {
    background-color: var(--text-color);
    color: #ffffff;
    padding: 40px 0;
    text-align: center;
}

/* Responsividade Completa para Dispositivos Móveis */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    .hero {
        padding: 90px 0;
    }
    .hero h1 { 
        font-size: 2.1rem; 
    }
    .hero p { 
        font-size: 1.05rem; 
    }
    .header-content { 
        flex-direction: column; 
        gap: 15px; 
    }
    nav { 
        margin-top: 5px; 
        justify-content: center; 
        flex-wrap: wrap; 
    }
    nav a { 
        margin: 5px 8px; 
    }

    /* 1. Seção do Caos: Joga a imagem para cima do texto no telemóvel */
    .pain-grid { 
        display: flex;
        flex-direction: column-reverse; /* Inverte a ordem: imagem fica em cima e texto em baixo */
        gap: 25px; 
    }

    /* 2. Seção de Vantagens: Joga a imagem acima de cada texto e dá largura total */
    .feature-item, 
    .feature-item:nth-child(even) { 
        display: flex;
        flex-direction: column-reverse; /* Inverte a ordem: imagem em cima, texto em baixo */
        gap: 20px; 
        margin-bottom: 50px;
    }

    .feature-image img {
        width: 100%; /* Ocupa toda a largura da tela do telemóvel com bom destaque */
    }

    #sistema .feature-item[style*="display: block"] {
        padding: 0 5px;
    }
}
/* Bloqueio de download e arraste de imagens */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-touch-callout: none; /* Evita o menu de segurar o dedo na imagem no telemóvel */
}