/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #dfe9f3 0%, #ffffff 100%);
    color: #232323;
    line-height: 1.6;
    overflow-x: hidden;
}

/* DARK MODE */
body.dark-mode {
    background: linear-gradient(135deg, #0f0f0f 0%, #1f1f1f 100%);
    color: #f1f1f1;
}
body.dark-mode .texto {
    background: #292929;
    color: #f1f1f1;
}

body.dark-mode details summary{
    background-color: #1e1e1e;
}

body.dark-mode .detalhe-titulo {
    color: #3a6b3e;
}

body.dark-mode .texto h1,
body.dark-mode .texto h2,
body.dark-mode .texto h3,
body.dark-mode .texto h4 {
    color: #3a6b3e;
}
body.dark-mode header,
body.dark-mode footer {
    background-color: #1f1f1f;
}
body.dark-mode .card-atalho,
body.dark-mode .projetos li {
    background-color: #2e2e2e;
}
body.dark-mode nav ul li a {
    color: #ffffff;
}
body.dark-mode .card-atalho:hover,
body.dark-mode .projetos li:hover {
    background-color: #3e3e3e;
}

body.dark-mode .texto table {
    background-color: #1e1e1e;
    color: #f1f1f1;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .texto th {
    background-color: #2c2c2c;
    color: #f1f1f1;
}

body.dark-mode .texto tbody tr:nth-child(even) {
    background-color: #292929;
}

body.dark-mode .texto table *::selection {
    background: #555;
    color: #fff;
}

/* HEADER */
header {
    background-color: #193B1F;
    color: white;
    padding: 5px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* LOGO + NOME */

#index-logo{
    text-decoration: none;
}
.logo-nome {
    display: flex;
    align-items: center;
    gap: 0px;
  }
  
  .logo-wrapper {
    position: relative; /* referência para o ::after */
    display: inline-block;
  }
  
  .logo-wrapper img {
    animation: nadarEBalancar 1s cubic-bezier(0.445, 0.05, 0.55, 0.95) 1;
    width: 100px;
    z-index: 2;
    position: relative;
    animation-fill-mode: forwards;
    border-radius: 100%;
  }
  
  /* Agora o after está atrelado ao IMG via logo-wrapper */
  .logo-wrapper::after {
    content: "";
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(52, 152, 219, 0.459), rgba(52, 152, 219, 0));
    border-radius: 50% / 60% 60% 40% 40%; /* forma oval mais "C" curvo e sutil */
    opacity: 0;
    animation: ondaExpandirDesaparecer 2.1s ease-out forwards;
    z-index: 1;
  }
  
  @keyframes ondaExpandirDesaparecer {
    0% {
      opacity: 0;
      transform: translateX(-50%) scaleX(0.3);
    }
    40% {
      opacity: 1;
      transform: translateX(-50%) scaleX(1);
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) scaleX(1.5);
    }
  }
  
  

.logo-nome h1 {
    font-size: 1.9rem;
    font-family: 'Poppins', sans-serif;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes nadarEBalancar {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  20% {
    transform: translate(0.8px, -0.5px) rotate(0.2deg);
  }
  50% {
    transform: translate(1.5px, 0.4px) rotate(0deg);
  }
  80% {
    transform: translate(0.8px, 0.6px) rotate(-0.2deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}


/* NAVEGAÇÃO */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s;
}
nav ul li a:hover {
    background-color: #5F9A65;
    transform: scale(1.05);
}

/* MENU */
.fundo-nav {
    position: absolute;
    left: 0;
    margin: 0 1mm;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 10;
}
.fundo-nav img {
    width: 100%;
}
.fundo-nav img:hover {
    transform: scale(1.05);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #193B1F;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.nav-list {
    position: absolute;
    left: -3.3mm;
    width: 20vw;
    max-height: calc(100vh - 3rem);
    background: linear-gradient(135deg, #193B1F, #4C7B56);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* contorno leve */
    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;

    /* layout */
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: max-height 0.3s ease, padding 0.3s ease, transform 300ms ease-in-out;
    z-index: 10;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 1rem;
    margin-top: 1mm;
}

/* Menu aberto (slide in) */
.nav-list.show,
.nav-list.active {
    transform: translateX(0);
}

/* Nenhum link visível → encolhe ao mínimo */
.nav-list-empty {
    max-height: 60px !important;
    overflow: hidden;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Poucos links visíveis (1 ou 2) → altura menor */
.nav-list-few {
    max-height: 180px !important;
    padding-top: 12px;
    padding-bottom: 12px;
    overflow-y: auto;
}

/* Scrollbar */
.nav-list::-webkit-scrollbar {
    width: 8px;
}
.nav-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}
.nav-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
.nav-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Links */
.nav-list a {
    color: white;
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    text-align: center;
}
.nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #5F9A65;
    transform: translateY(-4px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.nav-list a:active {
    transform: translateY(1px);
}
.nav-list a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 154, 101, 0.5);
}

/* HAMBURGUER */
.hamburger-menu {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    margin: 1rem;
}

.passaro-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    pointer-events: none;
    opacity: 0;
    z-index: 1000;
    transition: none !important;
  }
  
  .passaro-img {
    width: 100%;
    height: auto;
    transform-origin: center center;
    transition: none !important;
  }

  .passaro-sombra {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    width: 40px;
    height: 63px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.199), transparent 70%);
    border-radius: 50%;
    filter: blur(2px);
    z-index: -1;
    pointer-events: none;
  }
    

  .vento-rastro {
    position: absolute;
    width: 60px;
    height: 25px;
    background: radial-gradient(circle at center, rgba(61, 174, 255, 0.288) 20%, rgba(61, 174, 255, 0.034) 80%);
    border-radius: 50%;
    transform: rotate(0deg);
    opacity: 0.5;
    pointer-events: none;
    z-index: 999;
    filter: drop-shadow(0 0 2px rgba(50, 50, 50, 0.4));
    animation: desaparecerCartoon 0.8s ease-out forwards;
  }
  
  
  @keyframes desaparecerCartoon {
    0% {
      opacity: 0.7;
      transform: scale(1) rotate(0deg);
    }
    100% {
      opacity: 0;
      transform: scale(1.5) rotate(10deg);
    }
  }
  
  
  
  
/* MAIN */
main {
    padding: 20px;
    justify-content: center;
    min-height: 85vh;
}

.barra-filtro-container {
    width: 94%;
    margin: 0 auto 20px auto;
  }
  
  .barra-filtro {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  }
  
  .barra-filtro button {
    background-color: #3a6b3e;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 0 18px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .barra-filtro button:hover {
    background-color: #3e6e44;
  }
  
  .barra-filtro input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 1rem;
    height: 48px;
    color: #232323;
  }
  
  .barra-filtro input:focus {
    outline: none;
  }
  
  .checklist-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 20px;
    background-color: white;
    margin-top: 16px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }
  
  .checklist-categorias label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #232323;
    user-select: none;
    line-height: 1.4;
  }

  .checklist-categorias input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 2px solid #3a6b3e;
    padding: 6px;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 6px;
  }
  
  .checklist-categorias input[type="checkbox"]:checked {
    background-color: #3a6b3e;
    border-color: #3a6b3e;
  }
  
  .checklist-categorias input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
    position: absolute;
    top: -2px;
    left: 3px;
  }

  #abrir-filtro::after {
    content: "▼";
    margin-left: 3px;
    font-size: 0.7rem;
    transition: transform 0.3s;
  }
  
  #abrir-filtro.aberto::after {
    transform: rotate(180deg);
  }
  
  
  /* Oculto por padrão */
  .oculto {
    display: none !important;
  }
  
  /* Dark mode */
  body.dark-mode .barra-filtro {
    background-color: #2e2e2e;
  }
  
  body.dark-mode .barra-filtro input {
    color: #f1f1f1;
  }
  
  body.dark-mode .checklist-categorias {
    background-color: #2e2e2e;
    color: #f1f1f1;
  }
  
  body.dark-mode .checklist-categorias label {
    color: #f1f1f1;
  }

  body.dark-mode .checklist-categorias input[type="checkbox"] {
    background-color: #2e2e2e;
    border-color: #5F9A65;
  }
  
  body.dark-mode .checklist-categorias input[type="checkbox"]:checked {
    background-color: #5F9A65;
    border-color: #5F9A65;
  }
  

/* TEXTO */
.texto {
    width: 94%;
    margin: 0 auto 5vh auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}
.texto h1 {
    text-align: center;
}
.texto h1,
.texto h2,
.texto h3,
.texto h4 {
    color: #193B1F;
    margin-bottom: 10px;
}

.texto h1 {
    margin-top: 1.5cm;
}

.texto h2 {
    margin-top: 1cm;
}

.texto h3 {
    margin-top: 0.6cm;
}

.texto h4 {
    margin-top: 0.4cm;
}
.texto h1 { font-size: 2.2rem; }
.texto h2 { font-size: 1.8rem; }
.texto h3 { font-size: 1.5rem; }
.texto h4 { font-size: 1.3rem; }
.texto p, .texto ul, .texto ol {
    font-size: 1.1rem;
    margin-top: 10px;
}
.texto ul, .texto ol {
    padding: 0px 25px;
}

.texto, .texto p, .texto h1, .texto h2, .texto h3, .texto h4, .texto li, .texto td, .texto th {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.texto img {
    max-width: 100%;
    height: auto;
    max-height: 780px;
    object-fit: contain;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.438));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.tabela-container {
    width: 100%;
    overflow-x: auto;
}
.texto table {
    width: 80%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #ffffff;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}  
.texto th, .texto td {
    border: 1px solid #dddddd;
    padding: 10px 14px;
    text-align: left;
}
.texto th {
    background-color: #f2f2f2;
    font-weight: bold;
}
.texto tbody tr:nth-child(even) {
    background-color: #fafafa;
}
.texto table *::selection {
    background: #cce5ff;
    color: #000;
}

/* CARDS DE CÓDIGO */
.code-card {
    position: relative;
    background-color: #1e1e1e;
    color: #f1f1f1;
    padding: 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin: 20px 0;
}
.code-card table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    background-color: #1e1e1e;
    color: #f1f1f1;
    border-collapse: collapse;
}
.code-card th, .code-card td {
    border: 1px solid #444;
    padding: 8px 12px;
    text-align: left;
}
.code-card th {
    background-color: #2c2c2c;
    font-weight: bold;
}
.code-card tbody tr:nth-child(even) {
    background-color: #292929;
}
.code-card table *::selection {
    background: #555;
    color: #fff;
}
.code-card pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #3a6b3e;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}
.copy-button:hover {
    background-color: #3e6e44;
}

/* CARDS DE ATALHO */
.cards-atalho {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px auto;
    padding: 20px;
    max-width: 1200px;
}

.card-atalho {
    background-color: #3a6b3e;
    border-radius: 12px;
    padding: 30px 20px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-atalho img {
    box-shadow: none;
    width: 50%;
}

.card-atalho a {
    text-decoration: none;
    color: white;
    display: block;
}

.card-atalho h2 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.card-atalho p {
    margin: 1cm;
    font-size: 1.1rem;
}

.card-atalho:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background-color: #3e6e44;
}

.botao-link {
    display: inline-block;
    margin: 2px 0;
    padding: 12px 24px;
    background-color: #3a6b3e;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.botao-link:hover {
    background-color: #3e6e44;
    transform: scale(1.05);
}

/* SWITCH (DARK MODE TOGGLE) */
.menu-e-switch {
    display: flex;
    align-items: center;
    gap: 10px; /* Define o espaço entre o menu e o switch */
}

.switch {
    display: inline-block;
    width: 60px;
    height: 30px;
    position: relative;
}


.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    background-color: #5F9A65;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

input:checked + .slider {
    background-color: #3e6e44;
}

.slider i {
    pointer-events: none;
    transition: transform 0.4s;
}

input:checked + .slider i {
    transform: rotate(180deg);
}

/* PROJETOS */
.projetos {
    width: 100%;
    margin: auto;
    padding: 2vh 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.projetos li {
    margin: 15px 28px;
    display: inline-block;
    text-align: center;
    width: 8cm;
    padding: 30px 20px;
    box-sizing: border-box;
    border: solid 3px rgba(1, 13, 19, 0.1);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #3a6b3e;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projetos li:hover {
    background-color: #427449;
    transform: scale(1.02);
    box-shadow: 4px 8px 10px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.topico-titulo h1 {
    text-align: center;
}

.projetos h2 {
    color: #fff;
}

.projeto-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.imagem-projeto {
    margin: 5mm auto;
    width: 6cm;
    height: 6cm;
    display: flex;
    justify-content: center;
    align-items: center;
}

.projetos img {
    width: 100%;
    border-radius: 10px;
    filter: drop-shadow(3px 7px 8px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.projetos img:hover {
    transform: scale(2.0);
    filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.3));
}

.projetos-descricao {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
}

.projetos a {
    color: #fff;
    font-size: 1.1rem;
}

.projetos a:hover {
    color: #5F9A65;
    transform: translateY(-4px);
}

/* PDFs */
details summary {
    cursor: pointer;
    padding: 10px;
    background-color: #dddddd;
    border-radius: 8px;
    transition: background 0.3s ease;
    margin: 5mm 0;
    filter: drop-shadow(5px 10px 15px rgba(0, 0, 0, 0.3));
}

details summary:hover {
    background-color: #c6d4c8;
}

details[open] summary {
    color: #5F9A65;
}

.detalhe-titulo {
    color: #193B1F;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}

.bloco-pdf object {
    width: 100%;
    height: 80vh;
}

/* BADGES */
.badges-container {
    max-width: 100%;
    margin: auto;
}

.badge-section {
    margin-bottom: 50px;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.badges-grid img {
    width: 140px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
}

.badges-grid img:hover {
    transform: scale(1.05);
    box-shadow: none;
}

/* LOGOS COMPETÊNCIAS */
.logo-competencias {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.logo-competencias img {
    margin: 10px 7px;
    width: 40px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in, .slide-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}
  
.fade-in.appear, .slide-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}
  

/* FOOTER */
footer {
    background-color: #193B1F;
    color: white;
    padding: 2px 40px;
    text-align: center;
}

.contatos-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    font-size: 1.8rem;
    margin-top: 10px;
}

.contatos-footer a {
    color: #e4e4e4;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.contatos-footer a:hover {
    color: #5F9A65;
    transform: scale(1.2) rotate(10deg);
}

#imagemModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#imagemExpandida {
    width: 90vw;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    display: block;
  }
  
  
#modalConteudo {
    position: relative;
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    padding: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
#modalConteudo img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 12px;
    display: block;
}
  
#fecharModal {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(240, 240, 240, 0.9); /* visível em fundo claro e escuro */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
  }
  
  #fecharModal:hover {
    background: rgba(220, 220, 220, 1);
    transform: scale(1.1);
  }
  
  #fecharModal svg {
    width: 18px;
    height: 18px;
    stroke: #333; /* visível em ambas versões */
  }
  
  

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
    .cards-atalho { gap: 20px; }
    .card-atalho { width: 260px; }
    .projetos li { width: 7cm; }
}

@media (max-width: 992px) {
    body{
        overflow-x: hidden;
    };
    header, .nav {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .passaro-container {
        width: 65px;
        height: 65px;
    }
    .passaro-sombra {
        bottom: -40px;
        width: 30px;
        height: 43px;
      }
    .vento-rastro {
        width: 35px;
        height: 17px;
    }
    .barra-filtro-container{
        width: 90%;
    }
    .checklist-categorias {
    grid-template-columns: 1fr; /* uma coluna */
    padding: 16px;
    }

    .checklist-categorias label {
        font-size: 1rem;
        padding: 6px 0;
    }
    nav ul {
        display: flex;
        list-style: none;
        gap: 10px;
    }
    .nav-list { width: 60vw; }
    .projetos { flex-direction: column; }
    .cards-atalho {
        flex-direction: column;
        align-items: center;
    }
    .card-atalho { width: 90%; }
    .barra-filtro {
        height: 35px;
    }
    .contatos-footer { gap: 10px; }
    .fundo-nav { 
        margin: 0 1px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    header {
        padding-bottom: 10px;
    }
    .logo-nome img { width: 70px; }
    .logo-nome h1 { padding-left: 12px;}
    .logo-wrapper::after { 
        bottom: 19px;
        width: 45px;
        height: 10px;
    }
    .logo-nome h1 { font-size: 1.5rem; }
    .texto {
        width: 90%;
        padding: 20px;
    }
    .projetos li {
        width: 100%;
        margin: 10px 0;
    }
    .imagem-projeto {
        width: 89%;
        height: auto;
    }
    .cards-atalho { padding: 10px; }
}

@media (max-width: 576px) {
    .texto h1 { font-size: 1.8rem; }
    .texto h2 { font-size: 1.5rem; }
    .texto h3 { font-size: 1.3rem; }
    .texto h4 { font-size: 1.2rem; }
    .nav-list { width: 80vw; }
    .badges-grid img { width: 100px; }
    .projetos img:hover { transform: scale(1.1); }
}
