:root {
  --primary: #00420C;
  --secondary: #D9D9D9;
}

*{
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

.container {
  flex: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  padding: 0;
  margin: 0;
  width: 100%;
  font-family: "Open Sans", sans-serif;
}

a {
  text-decoration: none;
  color: var(--primary);
}

header {
  background: radial-gradient(circle, #397023 0%, var(--primary) 100%);
  color: var(--secondary);
  position: relative;
  width: 100%;
  height: 10vh;
  display: flex;
  justify-content: space-between;
}

.logo-ifsp {
 margin: 1rem 0 1rem 1rem;
}

.logo-ifsp img {
  width:22vh;
}

.container {
  display: flex;
  margin-top: 4rem;
  width: 100%;
}

.sidebar {
  width: fit-content;
  margin-left: 2rem;
  height: fit-content;
  background-color: var(--secondary);
  border-top: 3px solid var(--primary);
  display: flex;
  align-items: center;
  flex-direction: column;
}

.sidebar button {
  display: flex;
  align-items: center;
  background-color: var(--secondary);
  border: none;
  padding: 1.5rem;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.sidebar button img {
  margin-left: .8rem;
}

.sidebar-menu {
  width: 100%;
  background-color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar-menu a {
  padding: 1.5rem;
}

.sidebar-menu a:hover {
  border-bottom: 3px solid var(--primary);
}

.sidebar-menu {
  width: 100%;
  background-color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  padding: 0;
}

.sidebar-menu.show {
  max-height: 500px; /* Valor alto suficiente pra caber os links */
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
}


.main {
  width: 70%;
  margin-left: 2rem;
  display: flex;
  gap: 2rem;
  flex-direction: column;
}

.main-title {
  width: fit-content;
  border-bottom: #0C5C21 1px solid;
}

.main-title h1 {
  margin: 0;
}

.main-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  background-color: var(--secondary);
}

.main-coord {
  display: flex;
  width: 60%;
}

.coord-details {
  display: flex;
  justify-content: space-between; /* espaça igualmente */
  gap: 2rem; /* espaço entre os dois blocos */
  flex-wrap: nowrap; /* evita quebra de linha */
  margin-left: 2.5rem;
}

.coord {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap; /* evita quebra de linha no texto */
  margin-right: 0; /* remove margem para evitar quebras extras */
}

.coord h3 {
  width: fit-content;
  border-bottom: #0C5C21 1px solid;
}

.main-coord img {
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: 100%;
}

footer {
  width: 100%;
  height: 10vh;
  margin-top: 3rem;
  background-color: var(--primary);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  margin: 0.1rem;
}

footer {
  margin-top: auto;
}

/*Ajustes para Celulares*/

@media (max-width: 760px) {
  header {
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .logo-ifsp img {
    width: 100%;
    max-width: 200px;
    height: auto;
  
  }

  .container {
    flex-direction: column;
    margin-top: 2rem;
    margin-right: 2rem;
  }

  .sidebar {
    width: 50%;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }

  .sidebar button {
    padding: 1rem;
    font-size: 1rem;
  }

  .sidebar-menu {
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-menu a {
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
  }

  .main {
    width: 90%;
    margin: 1rem;
    margin-right: 1rem;
    margin-left: 1rem;
    gap: 1rem;
  }

  .main-coord {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .coord-details {
    flex-direction: column;
    margin-left: 0;
    align-items: center;
    gap: 1rem;
  }

  .coord {
    margin-right: 0;
    align-items: center;
  }

  .main-coord img {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1rem;
  }

  footer {
    height: auto;
    padding: 1rem 0;
    margin-top: 2rem;
  }
}

/* Ajustes específicos para tablet */

@media (min-width: 760px) and (max-width: 1024px) {
  header {
    height: auto;
    align-items: center;
    justify-content: center;
  }

  .logo-ifsp img {
    width: 100%;
    max-width: 200px;
    height: auto;
  
  }

  .container {
    flex-direction: column;
    margin-top: 2rem;
    margin-right: 2rem;
  }

  .sidebar {
    width: 50%;
    margin-left: 0;
    margin-right: 0;
    align-self: center;
  }

  .sidebar button {
    padding: 1rem;
    font-size: 1rem;
  }

  .sidebar-menu {
    gap: 1rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  .sidebar-menu a {
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
  }

  .main {
    width: 90%;
    margin: 1rem;
    margin-right: 1rem;
    margin-left: 1rem;
    gap: 1rem;
  }

  .container{
    align-items: center;
    justify-content: center;
  } 

  .main-coord {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .coord-details {
    flex-direction: column;
    margin-left: 0;
    align-items: center;
    gap: 1rem;
  }

  .coord {
    margin-right: 0;
    align-items: center;
  }

  .main-coord img {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1rem;
  }

  footer {
    height: auto;
    padding: 1rem 0;
    margin-top: 2rem;
  }
}
