* {
  box-sizing: border-box;
  }

.menu {
  position: fixed;
  top: 60px;
  left: 20px;
  background: rgba(224, 176, 255, 0.5);
  width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 99;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: 0.3s ease-in-out;
}


.burger input:checked ~ .menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}


.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  display: block;
  padding: 12px 20px;
  color: black;
  text-decoration: none;
  font-family: "Alfa Slab One", serif;
  transition: background 0.2s;
}

.menu ul li a:hover {
  color: whitesmoke;
  background-color: black;
}


.burger {
  position: fixed;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: block;
  top: 20px;
  left: 20px;
  z-index: 1000;
}


.burger input {
  display: none;
}

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: black;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
  top: 0px;
  transform-origin: left center;
}

.burger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
}

.burger span:nth-of-type(3) {
  top: 100%;
  transform-origin: left center;
  transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 0px;
  left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
  width: 0%;
  opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
  transform: rotate(-45deg);
  top: 28px;
  left: 5px;
}

body {
    margin: 0;
    padding: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('../assets/bg.png');
    background-size: cover;
    background-position: center;
    overflow-x: hidden;
    overflow-y: auto; 
}

/* --- TIPOGRAFIA --- */
h2 {
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    color: #e0b0FF;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: 0 0 20px 0;
    font-size: clamp(1.5rem, 8vw, 3.5rem);
    -webkit-text-stroke: 1px white;
}

.about-container {
    background-color: rgba(255, 255, 255, 0.5);
    padding: clamp(20px, 5vw, 40px);
    border-radius: 20px;
    width: 90vw; 
    max-width: 550px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out forwards;
    margin-top: 80px; 
    margin-bottom: 40px;
}

p {
    font-family: "Zalando Sans Expanded", sans-serif;
    font-style: normal;
    color: black;
    line-height: 1.6;
    margin: 0;
    /* Reset de qualquer posicionamento problemático */
    position: static !important; 
    left: auto !important;
    bottom: auto !important;
    text-align: left; /* Padrão desktop */
}

h3{
  font-family: "Zalando Sans Expanded", sans-serif;
  font-optical-sizing: auto;
  font-style: bold;
}

#footer {
		background-image: -moz-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
		background-image: -webkit-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
		background-image: -ms-linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
		background-image: linear-gradient(top, rgba(0,0,0,0), rgba(0,0,0,0.5) 75%);
		bottom: 0;
		cursor: default;
		height: 6em;
		left: 0;
		line-height: 8em;
		position: absolute;
		text-align: center;
		width: 100%;
    color: whitesmoke;
    font-family: "Zalando Sans Expanded", sans-serif;
	}

  #footer a{
    color: whitesmoke;
    font-family: "Zalando Sans Expanded", sans-serif;
  }

  @keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

img {
  position: relative;
  display: inline;
  align-items: left;
  justify-content: left;
  width: 50%;
  max-width: 100px;
  color: whitesmoke;
  transition: transform 0.25s;
  border-radius: 15%;
  padding: 5px;
  left: 30px;
  height: auto;
}

img:hover {
  transform: scale(1.1);
}

.partner{
  position: relative;
  right: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%;
}

@media (max-width: 600px) {
    .about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-container * {
    text-align: center !important;
  }

  p, h2, h3 {
    text-align: center !important;
  }

  h3 {
    padding-top: -10%;
    }
  
  img {
    width: 45%;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto;
    display: block;
  }
  
  table, tbody, td {
        display: relative;
        width: 100%;
        text-align: center;
        padding: 0;
        vertical-align: center;
        margin: 0 auto;
    }
    
    tr {
        display: flex;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 10px;
        margin-bottom: 20px;
        align-items: center;
    }

    td.image-cell, td.text-cell {
    width: 100% !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

    td.text-cell p {
        text-align: center;
        padding-top: 10px;
    }


    td.image-cell img {
        max-width: 150px;
    }

    .partner {
    right: 0;
    justify-content: center;
  }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

td.image-cell {
    width: 30%; 
    vertical-align: middle;
    padding-right: 1%; 
}

td.text-cell {
    width: 70%;
    vertical-align: center;
    padding-left: 1%;
}

td.image-cell img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 

    position: static !important; 
    left: auto !important; 
}

td.text-cell p {
    text-align: left;
    margin: 0;
    position: static !important;
    bottom: auto !important;
    left: auto !important;
}
