:root {
  --nav-height: 55px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  background-color: #fafafa80;
  color: #000;
  overflow-x: hidden;
  line-height: 1.5;
}

/* MENU */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: rgba(14, 139, 61, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 10000;
  transition: background-color 0.3s ease;
}

nav + * {
  margin-top: var(--nav-height) !important;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 0.95rem;
}

nav .logo img.bandeira-menu {
  width: 20px;
  height: auto;
  border-radius: 2px;
  animation: balanco 3s infinite ease-in-out;
  transform-origin: top center;
}

nav .menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav .menu li a {
  background-color: #0059b2;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}

nav .menu li a:hover {
  background-color: #004490;
}

/* 🔶 Botão "Registro de Chegada" no desktop */
.registro-link {
  border: 2px solid #fff;
  border-radius: 20px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #0059b2, #00c853); /* azul e verde */
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.registro-link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.menu-btn {
  display: none;
}

/* BANNER */
.banner {
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: auto;
}

.banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: 70% center;
}

@media (max-width: 768px) {
  .banner img {
    object-position: top center;
    height: auto;
  }
}

/* DESTAQUES */
.destaques {
  padding: 40px 20px;
  text-align: center;
}

.destaques h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #0e8b3d;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card,
.cards a.card {
  background-color: rgba(251, 201, 123, 0.9);
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card:hover,
.cards a.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
  margin-bottom: 10px;
  color: #030000;
}

/* RODAPÉ */
footer {
  background-color: #0e8b3d;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* NOTÍCIAS */
.noticias {
  padding: 40px 20px;
  text-align: center;
}

#rss-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
}

#rss-feed li.rss-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

#rss-feed li.rss-card:hover {
  transform: translateY(-5px);
}

#rss-feed li.rss-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

#rss-feed li.rss-card h3 {
  padding: 10px;
  font-size: 1rem;
}

/* ANIMAÇÃO BANDEIRA */
@keyframes balanco {
  0%, 100% {
    transform: rotate(0);
  }
  50% {
    transform: rotate(5deg);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  nav .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    right: 0;
    width: 200px;
    background: rgba(14, 139, 61, 0.95);
    padding: 10px;
    backdrop-filter: blur(8px);
    border-bottom-left-radius: 12px;
  }

  nav .menu.show {
    display: flex;
  }

  .menu-btn {
    display: block;
    color: white;
    cursor: pointer;
    font-size: 1.6rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  #rss-feed {
    grid-template-columns: 1fr;
  }

  /* 🔧 Ajuste do banner no mobile */
  .banner-img {
    height: 60vh;
    object-fit: cover;
    object-position: center top;
  }

  /* 🔶 BOTÃO "REGISTRO DE CHEGADA" ESPECIAL NO MOBILE */
  nav .menu li:last-child {
    display: flex;
    justify-content: center;
  }

  .registro-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c853, #0059b2); /* verde e azul */
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    white-space: normal; /* permite quebrar linha do texto */
    line-height: 1.2;
  }

  .registro-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
  /* 🔶 BOTÃO "ASSOCIE-SE" - CTA HOME */
.btn-associar {
  position: absolute;
  top: 65%;
  right: 8%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f9a825, #00c853, #0059b2);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 20;
}

.btn-associar:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* 📱 RESPONSIVO */
@media (max-width: 768px) {
  .btn-associar {
    width: 120px;
    height: 120px;
    font-size: 0.95rem;
    top: 70%;
    right: 50%;
    transform: translate(50%, -50%);
  }

  .btn-associar:hover {
    transform: translate(50%, -50%) scale(1.05);
  }
}
}
/* === BOTÃO ASSOCIE-SE NO BANNER === */
.banner {
  position: relative;
}

.btn-associar {
  position: absolute;
  bottom: 15%;
  left: 8%;

  background: #f28c28; /* laranja elegante */
  color: #ffffff;
  text-decoration: none;

  padding: 16px 36px;
  border-radius: 50px;

  font-size: 1.1rem;
  font-weight: 700;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  transition: all 0.3s ease;
  z-index: 10;
}

.btn-associar:hover {
  transform: translateY(-3px) scale(1.03);
  background: #e07c18;
}
/* === BOTÃO ASSOCIE-SE NO MOBILE === */
@media (max-width: 768px) {
  .btn-associar {
    left: 50%;
    bottom: 10%;
    transform: translateX(-50%);
    padding: 14px 28px;
    font-size: 1rem;
  }

  .btn-associar:hover {
    transform: translateX(-50%) scale(1.03);
  }
}
/* ===============================
   BOTÃO "ASSOCIE-SE" – AJUSTE MOBILE
   =============================== */

@media (max-width: 768px) {
  .btn-associar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;

    position: absolute;
    left: 50%;
    bottom: -60px; /* mantém ele “encaixado” no banner */
    transform: translateX(-50%);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 10;
  }
}


