/* Estilos Gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f9fafb;
  }

  .page {
    display: none;
  }
  
  .page.active {
    display: flex; /* Aqui sim! Flex só quando ativa */
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  /* Agora também garantimos que hidden é display: none */
  .hidden {
    display: none;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* Header */
  .header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .logo {
    height: 40px;
    cursor: pointer;
  }

  .nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  
  .nav button {
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .nav button:hover {
    background-color: #f4f4f5; /* efeito "frisado" leve no hover */
  }
  
  /* Páginas */
  .page {
    padding: 2rem;
    display: none; /* todas escondidas por defeito */
  }
  
  .page.active {
    display: block;
  }
  
  /* Hero */
  .hero {
    position: relative;
    text-align: center;
  }
  
  .hero-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .hero-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-overlay p {
    max-width: 600px;
    font-size: 1.2rem;
  }
  
  /* Webinars Grid */
  .webinars {
    margin-top: 2rem;
    text-align: center;
  }
  
  .webinar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .webinar-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .webinar-card:hover {
    transform: translateY(-5px);
  }
  
  .webinar-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }
  
  .webinar-card-content {
    padding: 1rem;
  }
  
  /* Formulários */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"] {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 8px;
  }
  
  button {
    display: block;
    width: 100%;
    background: #007bff;
    color: white;
    padding: 10px;
    border: none;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
  }
  
  button:hover {
    background: #0056b3;
  }
  
  /* Erros */
  .error {
    color: red;
    font-size: 0.9rem;
    text-align: center;
  }
  
  /* Pequenas classes utilitárias */
  .hidden {
    display: none;
  }
  
  .private-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .private-content div {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  

  /*   Backoffice */

  #backoffice h2, 
    #backoffice .subtitle {
    text-align: left;
    }

  .backoffice-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .backoffice-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    width: 100%;
    max-width: 800px;
  }
  
  .backoffice-card h3 {
    margin-bottom: 1rem;
  }
  
  .backoffice-card input[type="text"],
  .backoffice-card textarea,
  .backoffice-card input[type="file"] {
    width: 100%;
    margin-bottom: 1rem;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
  }
  
  .backoffice-card button {
    background-color: #000; /* Botão preto */
    color: #fff; /* Texto branco */
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    width: fit-content; /* Apenas o tamanho do texto */
    display: inline-block; /* Deixa alinhado à esquerda */
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .backoffice-card button:hover {
    background-color: #333; /* Fica cinza escuro ao passar o rato */
  }
  
  .backoffice-footer {
    text-align: center;
    margin-top: 2rem;
  }
  
  .backoffice-footer button {
    background-color: #d4d4d8;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .backoffice-footer button:hover {
    background-color: #a1a1aa;
  }
  

  /*  outras paginas */
  