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

body {
    font-family: Arial, sans-serif;
    background: #f2f2f2;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

/* Ajuste para o conteúdo principal para não ficar escondido atrás do header */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 10px;
    padding-top: 80px; /* Adicione um padding-top para compensar a altura do header fixo */
}
/* Header */
/* Header */
/* ======================== */
.main-header {
    background: #028090;
    color: white;
    padding: 15px 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; 
    padding: 0 10px;
}

/* Estilo do Botão Hambúrguer */
.hamburger-btn {
    display: none; /* Oculta por padrão em telas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 25px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger-btn .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}
/* Responsividade ajustada */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        justify-content: center; /* Centraliza os itens verticalmente */
        text-align: center;
        max-width: 100%; /* Permite que o container ocupe a largura total */
    }

    .main-nav, .search-bar {
        width: 100%; /* Garante que os elementos de navegação e busca ocupem a largura total */
        margin-top: 15px;
    }
    
    .search-bar input {
        width: calc(100% - 40px); /* Ajusta a largura do input para caber o botão */
        border-radius: 5px; /* Arredonda as bordas */
    }
    
    .search-bar button {
        border-radius: 5px; /* Arredonda as bordas */
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .logo-area {
        width: 100%;
    }
}

.logo-area h1 {
    font-family: 'Segoe UI', sans-serif;
    font-size: 25px;
    font-weight: 700;
    margin: 0;
  }

  .logo-saude {
    color: #2dd4bf; /* verde-água */
  }

  .logo-forma {
    color: white; /* verde escuro para contraste */
  }

  .logo-area h1 span {
    transition: all 0.3s ease;
  }

  .logo-area h1:hover span {
    letter-spacing: 1px;
  }

  .main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #c8e0ec;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    border: none;
    padding: 8px;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.search-bar button {
    background: #00a896;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Banner */
.banner-section {
    margin: 20px auto;
    max-width: 900px;
    bottom: -100px;
   
}

.banner-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    bottom: -100px;
}

/* Calculadoras */
.calculadora, .lojinha {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.botoes-troca {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.botoes-troca button {
    flex-grow: 1;
    margin: 0 5px;
    padding: 12px;
    border: none;
    background: #00a896;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.botoes-troca button:hover {
    background: #008779;
}

.calculadora-box h2 {
    text-align: center;
    color: #028090;
    margin-bottom: 15px;
}

.calculadora-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.calculadora-box button {
    padding: 12px;
    background: #028090;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.calculadora-box button:hover {
    background: #005f6b;
}

.resultado-box {
    margin-top: 20px;
    padding: 15px;
    background: #e9f5f5;
    border: 1px solid #00a896;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    color: #028090;
}

/* Lojinha */
.lojinha h2 {
    text-align: center;
    color: #028090;
    margin-bottom: 20px;
}

.produtos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.produto {
    width: 180px;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: transform 0.3s;
}

.produto:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.produto img {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.produto p {
    font-weight: bold;
    color: #028090;
    margin: 5px 0;
}

.produto a {
    padding: 8px 15px;
    background: #00a896;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.produto a:hover {
    background: #008779;
}

/* Footer */
.main-footer {
    background: #028090;
    color: white;
    padding: 20px;
}

.footer-content {
    max-width: 900px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid white;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-section p {
    margin: 5px 0;
    font-size: 0.9rem;
}

.footer-section a {
    color: white;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #00a896;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #005f6b;
    padding-top: 10px;
    margin-top: 20px;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px; /* Adicionei um espaçamento entre os itens */
    }
    .main-nav, .search-bar {
        margin-top: 15px;
        width: 100%; /* Garante que ocupem a largura total */
    }
    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Adicionei espaçamento no rodapé */
    }
}

@media (max-width: 600px) {
    .botoes-troca {
        flex-direction: column;
        gap: 10px;
    }
    .botoes-troca button {
        margin: 0;
    }
    .produto {
        width: 100%;
        max-width: 250px;
    }
}

/* Nova media query para telas de smartphones extra-pequenos */
@media (max-width: 480px) {
    .header-container {
        padding: 10px; /* Reduzi o padding para telas menores */
    }
    .main-nav .nav-links a {
        font-size: 14px; /* Reduzi o tamanho da fonte da navegação */
        padding: 8px;
    }
    .produto {
        max-width: 100%; /* Permite que o produto ocupe 100% da largura em telas bem pequenas */
    }
    h2, h3 {
        font-size: 1.2rem; /* Tamanho da fonte mais adequado para títulos */
    }
}
/* Estilo do Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out;
}

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

.whatsapp-float i {
    color: white;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}


/* Container para o layout principal de 3 colunas */
.main-layout {
    max-width: 1200px; /* Aumente a largura máxima para acomodar os anúncios */
    margin: 20px auto;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    gap: 20px; /* Espaço entre as colunas */
    padding-top: 80px; /* Mantém o padding para o header fixo */
}

/* Estilo para a coluna do conteúdo principal */
.main-content {
    flex-grow: 1; /* Permite que o conteúdo principal ocupe o espaço restante */
    max-width: 900px;
}

/* Estilo para as barras laterais de anúncios */
.sidebar-ad {
    width: 160px; /* Defina uma largura fixa para os anúncios (ex: 160px para um anúncio de banner vertical) */
    background: #e6e6e6; /* Cor de fundo para visualização */
    padding: 10px;
    border-radius: 8px;
    height: fit-content; /* Ajusta a altura da div ao conteúdo do anúncio */
}

/* Mídias para Responsividade */
@media (max-width: 1200px) {
    /* Em telas menores que 1200px, remove o layout de 3 colunas */
    .main-layout {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .main-content {
        width: 100%;
        max-width: 900px;
    }

    .sidebar-ad {
        /* Oculta os anúncios laterais ou os move para o topo/rodapé */
        display: none; /* Exemplo: esconde os anúncios laterais em telas pequenas */
    }
}

@media (max-width: 1200px) {
    .sidebar-ad {
        display: none;
    }
}

/* CSS para o formulário */
#form-treino {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

#form-treino label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

#form-treino input,
#form-treino select,
#form-treino button {
    padding: 12px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

#form-treino button {
    background: #028090;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

#form-treino button:hover {
    background: #005f6b;
}

.full-width {
    grid-column: 1 / -1; /* Faz o botão ocupar toda a largura em qualquer layout */
}


/* Estilos do Formulário */
#form-treino {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }

    #form-treino label {
        font-weight: bold;
        margin-bottom: 5px;
        display: block;
        color: #555;
    }

    #form-treino input,
    #form-treino select,
    #form-treino button {
        padding: 12px;
        width: 100%;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 16px;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    }

    .botoes-form {
        display: flex;
        gap: 10px;
        justify-content: center;
    }

    .botoes-form button {
        flex-grow: 1;
        width: auto;
    }

    #form-treino button[type="submit"] {
        background: #028090;
        color: white;
        border: none;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s;
    }

    #form-treino button[type="submit"]:hover {
        background: #005f6b;
    }

    #limpar-btn {
        background: #dc3545;
        color: white;
        border: none;
        cursor: pointer;
        font-weight: bold;
        transition: background 0.3s;
    }

    #limpar-btn:hover {
        background: #c82333;
    }

    .full-width {
        grid-column: 1 / -1;
    }

    /* Estilos do Resultado */
    .resultado-treino {
        margin-top: 20px;
        background: white;
        padding: 25px;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        animation: fadeIn 0.5s ease-in-out;
    }

    .resultado-treino h3 {
        text-align: center;
        color: #028090;
        margin-bottom: 15px;
        border-bottom: 2px solid #00a896;
        padding-bottom: 10px;
    }

    .resultado-treino h4 {
        color: #00a896;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .resultado-treino p, .resultado-treino li {
        line-height: 1.8;
        margin-bottom: 8px;
        color: #444;
    }

    /* Estilos para o Acordeão */
    .accordion-item {
        margin-bottom: 10px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
    }

    .accordion-header {
        background-color: #f7f7f7;
        color: #333;
        padding: 15px;
        cursor: pointer;
        font-weight: bold;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.3s;
    }

    .accordion-header:hover {
        background-color: #f0f0f0;
    }

    .accordion-header::after {
        content: '\25BC';
        transition: transform 0.3s;
    }

    .accordion-header.active::after {
        transform: rotate(-180deg);
    }

    .accordion-content {
        padding: 0 15px;
        background-color: white;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }

    .accordion-content.show {
        max-height: 500px;
        padding: 15px;
    }

    /* Tabela de treinos dentro do acordeão */
    .accordion-content table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    .accordion-content th, .accordion-content td {
        border: 1px solid #ddd;
        padding: 12px;
        text-align: left;
    }

    .accordion-content th {
        background: #e9f5f5;
        color: #028090;
    }

    /* Botão para download do PDF */
    #download-pdf-btn {
        display: block;
        width: 100%;
        margin-top: 20px;
        background: #00a896;
        color: white;
        padding: 12px;
        border: none;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        transition: background 0.3s;
    }

    #download-pdf-btn:hover {
        background: #008779;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 600px) {
        #form-treino {
            grid-template-columns: 1fr;
        }
    }

    /* CSS para impressão (oculta elementos indesejados) */
    @media print {
        body * {
            visibility: hidden;
        }
        
        #resultado-treino, #resultado-treino * {
            visibility: visible;
        }

        #resultado-treino {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            margin: 0;
            padding: 20px;
            box-shadow: none;
            background: #fff;
            color: #000;
        }

        .no-print, #download-pdf-btn {
            display: none !important;
        }
        
        .accordion-content {
            max-height: fit-content !important;
            height: auto !important;
            overflow: visible !important;
            padding: 15px !important;
        }
        .accordion-header {
            background-color: #f0f0f0;
            color: #333;
        }
        .accordion-header::after {
            content: none !important;
        }
        .accordion-item {
            margin-bottom: 10px;
            page-break-inside: avoid;
        }
    }



    
    
    .banner-slider {
        position: relative;
        width: 100%;
        height: 400px;
    }
    
    .banner-slider .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
    }
    
    .banner-slider .slide.active {
        opacity: 1;
    }
    
    .banner-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    

    .cookie-banner {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 15px 20px;
        border-radius: 8px;
        display: none;
        opacity: 1;
        transition: opacity 0.6s ease;
        z-index: 1000;
    }
    
    .cookie-banner.fade-out {
        opacity: 0;
    }
    