html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito', sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

/*TOPO VERDE COM OS ÍCONES SOCIAIS*/
.topbar {
  background-color: #37AF8F;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Nunito', sans-serif;
}

.topbar-left .nome-associacao {
  letter-spacing: 0.5px;
  margin-left: 40px; 
}

.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
}


.topbar-right a {
  color: #ffffff;
  margin-left: 2px;
  font-size: 1rem;
  transition: 0.3s ease;
  text-decoration: none;
}

.topbar-right a:hover {
  color: #DFF3E3;
  transform: scale(1.1);
}

/*CABEÇALHO*/
header {
  height: 110px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  margin: auto;
  padding: 15px 0;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 80px; 
  object-fit: contain;
}

header nav ul {
  list-style: none;
  font-size: 1.7vw;
  display: flex;
  gap: 5vw;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: #353D3F;
  font-weight: 600;
  transition: color 0.3s, transform 0.3s;
}

header nav ul li a:hover {
  color: #37AF8F; /* cor de destaque ao passar o mouse */
  transform: scale(1.1);
}


/*RODAPE*/
footer {
    background-color: #1D89AA;
    color: #ffffff;
    padding: 25px 0 10px 0;
    width: 100%;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 30px;
}


.footer-logo {
    width: 200px;
    height: auto;
    margin-top: 10px;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.footer-menu ul li a:hover {
    color: #37AF8F;
}


.footer-center {
    flex: 1;
    min-width: 250px;
    margin-left: 30px;
}

.footer-center h4 {
    color: #37AF8F;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-center p {
    margin: 4px 0;
    font-size: 16px;
    line-height: 1.4;
}


.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-right h4 {
    color: #37AF8F;
    font-size: 17px;
    margin-bottom: 8px;
}

.footer-right p {
    margin: 4px 0;
    font-size: 14px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.social-icons a img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s, filter 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.1);
    filter: brightness(0) invert(0.7) sepia(1) hue-rotate(20deg) saturate(5);
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #1D89AA;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover {
    color: #1D99AA;
}

/*RESPONSIVIDADE GERAL*/

/* Ajustes para tablets e telas até 1100px */
@media (max-width: 1100px) {

    /* MENU */
    header nav ul {
        gap: 3vw;
        font-size: 1.7vw;
    }
    
    /* Rodapé */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 95%;
    }
    .footer-center {
        margin-left: 0px;
    }
}


@media (max-width: 900px) {

    .footer-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .footer-center, .footer-right {
        margin-top: 15px;
    }

    .social-icons {
        justify-content: center;
    }
}


/* Ajustes para celulares grandes e tablets estreitos */
@media (max-width: 768px) {
    /* TOPO */
    .topbar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .topbar-left .nome-associacao {
        letter-spacing: 0.5px;
        margin-left: 0px;
    }

    header {
        height: auto;
    }

    header .container {
        flex-direction: column;
        gap: 10px;
    }

    header nav ul {
        flex-wrap: wrap;
        gap: 20px;
        font-size: 1rem;
        justify-content: center;
    }
}

/* Ajustes para celulares pequenos */
@media (max-width: 480px) {

    header nav ul {
        gap: 12px;
        font-size: 0.9rem;
    }
    
    header .logo img {
       height: 10vw; 
       object-fit: contain;
    }

    .footer-menu ul {
        gap: 8px;
        flex-direction: column;
    }

    .footer-logo {
        width: 150px;
    }
    
    .footer-center p,
    .footer-right p {
        font-size: 0.9rem;
    }
}