 :root {
      --primary-color:   #F7BE00;
      --primary-dark:    #e0a800;
      --text-dark:       #000000;
      --bg-light:        #f7f7f7;
      --card-bg:         #ffffff;
      --shadow-color:    rgba(0, 0, 0, 0.12);
      --input-border:    #cccccc;
      --input-bg:        #ffffff;
      --btn-text:        #ffffff;
      --btn-hover:       #e0a800;
      --btn-radius:      24px;
    }

 
   .header-bg {
    position: relative;
    background: url('https://cfbio.gov.br/wp-content/uploads/2022/07/Site_AbelhasJatai_Abre_00_1140-1140x675.jpg') no-repeat center center/cover;
    height: 400px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55); /* controla a escuridão */
    z-index: 1;
  }

  .header-content {
    position: relative;
    z-index: 2;
  }

  .header-content h1 {
    font-size: 4rem;
    letter-spacing: 2px;
  }

  .scroll-down {
    display: inline-block;
    margin-top: 2rem;
    font-size: 2rem;
    color: #e0a800;
    animation: bounce 2s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }
  
:root {
  --primary-color: #F7BE00;
  --primary-color-dark: #d6a500;
  --text-dark: #0c0a09;
  --text-light: #242323;
  --white: #ffffff;
  --max-width: 1200px;
}

   
 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html, body {
      width: 100%;
      height: 100%;
    }
    body {
      font-family: "Poppins", sans-serif;
      background: var(--bg-light);
      color: var(--text-dark);
      line-height: 1.6;
    }
    a { text-decoration: none; color: inherit; }
/* Banner Header */
/* Banner Header Moderno e Maior */
.header-banner {
  width: 100vw;
  height: 500px;
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.7)
    ),
    url("https://cfbio.gov.br/wp-content/uploads/2022/07/Site_AbelhasJatai_Abre_00_1140-1140x675.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 60px;
}


  .scroll-down {
    display: inline-block;
    margin-top: 2rem;
    font-size: 2rem;
    color: #e0a800;
    animation: bounce 2s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
  }
  
    /* CARROSSEL SECTION */
 
    .secao-servicos {
      background-color: #fff;
      padding: 3rem 1rem;
      text-align: center;
    }

    .secao-servicos h2 {
      font-size: 2.2rem;
      margin-bottom: 2rem;
      color: #333;
    }

    .container-carrossel {
      overflow: hidden;
      position: relative;
      max-width: 100%;
      padding: 1rem 0;
    }

    .faixa-carrossel {
      display: flex;
      gap: 1.2rem;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding-left: 1rem;
    }

    .faixa-carrossel::-webkit-scrollbar {
      display: none;
    }

    .item-carrossel {
      flex: 0 0 auto;
      min-width: 260px;
      max-width: 260px;
      border-radius: 15px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }

    .item-carrossel:hover {
      transform: scale(1.05);
    }

    .item-carrossel img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }

    .botoes-navegacao {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin-top: 1.5rem;
    }

    .botoes-navegacao i {
      font-size: 2.5rem;
      color: #e0a800;
      cursor: pointer;
      transition: transform 0.2s, color 0.3s;
    }

    .botoes-navegacao i:hover {
      color: #806104;
      transform: scale(1.1);
    }

    @media (min-width: 768px) {
      .item-carrossel {
        min-width: 320px;
        max-width: 320px;
      }
      .item-carrossel img {
        height: 220px;
      }
    }
    
 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    html, body {
      width: 100%;
      height: 100%;
    }
    body {
      font-family: "Poppins", sans-serif;
      background: var(--bg-light);
      color: var(--text-dark);
      line-height: 1.6;
    }
    a { text-decoration: none; color: inherit; }

    /* ─── Cabeçalho ───────────────────────────────────────────────────── */

    /* ─── Mensagens Flash ──────────────────────────────────────────────── */
    .flash {
      max-width: 600px;
      margin: 1rem auto;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      text-align: center;
      font-weight: 600;
    }
    .flash-success {
      background: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
    }
    .flash-error {
      background: #f8d7da;
      color: #721c24;
      border: 1px solid #f5c6cb;
    }

    /* ─── Container de Upload ──────────────────────────────────────────── */
    .upload-container {
      max-width: 700px;
      margin: 2rem auto;
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 4px 20px var(--shadow-color);
      overflow: hidden;
    }
    .upload-header {
      background: var(--primary-color);
      padding: 0.75rem 1rem;
    }
    .upload-header h2 {
      color: var(--text-dark);
      font-size: 1.5rem;
      text-align: center;
      font-weight: 600;
    }
    .upload-body {
      padding: 1.5rem;
    }
    .upload-body label {
      display: block;
      margin: 0.75rem 0 0.25rem;
      font-weight: 500;
      font-size: 1rem;
    }
    .upload-body input[type="text"],
    .upload-body select,
    .upload-body input[type="file"] {
      width: 100%;
      padding: 0.75rem;
      margin-bottom: 1rem;
      border: 1px solid var(--input-border);
      border-radius: 6px;
      background: var(--input-bg);
      font-size: 1rem;
      transition: border-color 0.2s;
    }
    .upload-body input[type="text"]:focus,
    .upload-body select:focus,
    .upload-body input[type="file"]:focus {
      border-color: var(--primary-dark);
      outline: none;
    }
    .upload-body button {
      width: 100%;
      padding: 0.75rem;
      background: var(--primary-dark);
      color: var(--btn-text);
      border: none;
      border-radius: var(--btn-radius);
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s, transform 0.1s;
    }
    .upload-body button:hover {
      background: #caa100;
      transform: translateY(-2px);
    }

    /* ─── Botões de Filtro ─────────────────────────────────────────────── */
    .filtros {
      text-align: center;
      margin: 2rem 0 1rem;
      font-family: "Poppins", sans-serif;
    }
    .filtros button {
      margin: 0 0.5rem;
      padding: 0.65rem 1.2rem;
      background: var(--primary-color);
      color: var(--text-dark);
      border: none;
      border-radius: var(--btn-radius);
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      font-family: "Poppins", sans-serif;
      transition: background 0.2s, transform 0.1s;
    }
    .filtros button:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }

    /* ─── Galeria de Cards ─────────────────────────────────────────────── */
    .galeria {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2.7rem;
      max-width: 1200px;
      margin: 0 auto 3rem;
      padding: 0 1rem;
    }
    .card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 6px 18px var(--shadow-color);
      overflow: hidden;
      position: relative;
      transition: transform 0.2s, box-shadow 0.2s;
      display: flex;
      flex-direction: column;
    }
    .card:hover {
      transform: translateY(-6px);
      box-shadow: 0 10px 24px var(--shadow-color);
    }
    .card-media {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-bottom: 1px solid #e0e0e0;
      cursor: pointer;
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }
    .card:hover .card-media {
      transform: scale(1.05);
    }
    .card-content {
      padding: 1rem;
      text-align: center;
      flex-grow: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .card-content p {
      font-size: 1rem;
      color: #333;
      margin: 0;
      word-break: break-word;
    }
    .card-delete {
      position: absolute;
      top: 10px;
      right: 10px;
      background: rgba(0, 0, 0, 0.6);
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      font-size: 18px;
      line-height: 32px;
      text-align: center;
      cursor: pointer;
      transition: background 0.2s;
    }
    .card-delete:hover {
      background: rgba(0, 0, 0, 0.8);
    }

    /* ─── Modal de Visualização ───────────────────────────────────────── */
    .modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0,0,0,0.85);
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-conteudo {
      position: relative;
      max-width: 80vw;
      max-height: 80vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .modal img,
    .modal video {
      max-width: 500px;
      max-height: 500px;
      border-radius: 8px;
      box-shadow: 0 4px 12px var(--shadow-color);
    }
    .modal-fechar {
      position: absolute;
      top: -0.75rem;
      right: -0.75rem;
      background: var(--primary-color);
      color: var(--text-dark);
      font-size: 1.5rem;
      font-weight: bold;
      width: 36px;
      height: 36px;
      line-height: 36px;
      text-align: center;
      border-radius: 50%;
      cursor: pointer;
      box-shadow: 0 2px 6px var(--shadow-color);
      transition: background 0.2s, transform 0.1s;
    }
    .modal-fechar:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #f7be00;
    color: white;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
    /* ─── Mobile-First ──────────────────────────────────────────────────── */
    @media (max-width: 800px) {
      .card-media {
        height: 160px;
      }
      .upload-container {
        margin: 1.5rem 1rem;
      }
      .upload-body input[type="text"],
      .upload-body select,
      .upload-body input[type="file"],
      .upload-body button {
        font-size: 0.95rem;
      }
      .filtros button {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
      }
    }
    @media (max-width: 500px) {
      .card-media {
        height: 140px;
      }
      .galeria {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      .upload-body {
        padding: 1rem;
      }
      .upload-body label {
        font-size: 0.95rem;
      }
      .upload-body input[type="text"],
      .upload-body select,
      .upload-body input[type="file"],
      .upload-body button {
        padding: 0.7rem;
        font-size: 0.9rem;
      }
      .modal-conteudo {
        max-width: 90vw;
        max-height: 70vh;
      }
    }

    