:root {
  --color-primary: #FFB81D;
  --color-secondary: #5e1c09;
  --color-accent: #971fa6;
  --color-white: #ffffff;
  --color-light-bg: #efef95;
  --color-bg-title: #ffd552;
}

html {
  scroll-padding-top: 134px;
  scroll-behavior: smooth;
}

body {
  font-family: 'elza-condensed', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
  margin: 0 auto;
  padding-top: 134px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: 100vw;
  padding: 2rem;
  margin: 0;
  font-family: 'decoy', serif;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  background: var(--color-bg-title);
  border-top: 3px solid var(--color-light-bg);
  border-bottom: 3px solid var(--color-light-bg);
}

header {
  background-color: var(--color-secondary);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.topbar {
  min-height: 60px;
  background: var(--color-light-bg);
}

.logo {
  max-width: 1142px;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
}

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

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  flex-wrap: wrap;
  min-height: 74px;
}

.menu-toggle {
  display: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: #ffb81d;
  font-family: elza-condensed, sans-serif !important;
  font-size: 1.5rem !important;
  outline: none;
  border-right: 2px solid var(--color-primary);
  padding-right: 1rem;
  text-decoration: none;
}

nav li:last-child a {
  border-right: none
}

#hero {
  background-color: var(--color-primary);
  background-image: url('https://homologd.encinterativa.com.br/bauduccoFamilhaoPortal2025/assets/images/home/onda-bg.webp');
  background-repeat: no-repeat;
  background-size: auto;
  background-position: bottom;
  padding: 0 1rem;
  padding-bottom: 0;
  height: 700px;
}

.container {
  height: inherit;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.hero-content {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.hero-content img {
  position: relative;
  bottom: 16px;
}

.hero-pack {
  height: inherit;
  width: 100vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0;
  position: relative;
  top: 4px;
}

.hero-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}

#premios {
  padding: 3rem 0;
  padding-top: 0;
  text-align: center;
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.card {
  flex: 1;
  min-width: 300px;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-a {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.card-b {
  background-color: #f9f9f9;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#como-participar {
  padding: 3rem 0;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 3rem 0;
}


.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step:last-child img {
  margin-top: 1rem;
  margin-bottom: 3rem;
}

.step-title {
  display: block;
  font-size: 2.625rem;
  font-family: decoy, serif;
  font-weight: 700;
  line-height: 110%;
  margin-bottom: 0;
  text-align: center;
  text-transform: uppercase;
}

.step-description {
  display: block;
  font-size: 18px;
  font-family: decoy, serif;
  font-weight: 700;
  line-height: 110%;
  margin-bottom: 0;
  text-align: center;
  text-transform: uppercase;
}

.step a {
  color: var(--color-secondary);
}

#produtos {
  padding: 3rem 0;
  padding-top: 0;
}

.produtos-box {
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#regulamento {
  padding: 3rem 0;
  padding-top: 0;
  text-align: center;
}

.btn-group {
  margin-top: 3rem;
}

.btn {
  display: inline-block;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  background: var(--color-light-bg);
  border: 2px solid var(--color-secondary);
  color: var(--color-secondary);
  margin: 0.5rem;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-light-bg);
  border-color: var(--color-light-bg);
}

footer {
  background-color: var(--color-bg-title);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 3px solid var(--color-light-bg);

}

footer a {
  color: var(--color-secondary);
  font-family: elza-condensed, sans-serif;
  font-size: 1.1625rem;
  font-weight: 400;
  text-decoration: none;

  margin-bottom: 3rem;
}

.legal-text {
  font-family: elza-condensed, sans-serif;
  font-size: 1.03rem;
  font-weight: 400;
  max-width: 75%;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  h2 {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    align-items: flex-end;
    padding: 1rem;
    min-height: unset;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  nav ul a {
    border: none;
    padding: 0.5rem
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav ul {
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    visibility: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.4s ease-in-out, visibility 0.4s;
  }

  nav ul.active {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    visibility: visible;
  }

  nav a {
    border-right: none;
    border-bottom: 1px solid var(--color-primary);
    display: block;
    padding: 1rem 0;
    width: 100%;
  }

  nav li:last-child a {
    border-bottom: none;
  }

  #hero {
    height: unset;
    min-height: 700px;
    background-size: cover;
    background-position: center 170px;
    background-image: url('https://homologd.encinterativa.com.br/bauduccoFamilhaoPortal2025/assets/images/home/onda-bg-mob.webp');
  }
  #hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: unset;
    min-height: inherit;
  }
  .hero-content {
    position: relative;
    max-width: 85%;
  }
  .hero-content .hero-col img:first-child {
    position: relative;
  }

  .hero-pack {
    top: 0px;
  }

  #luciano {
    position: relative;
    left: 100px;
    top: 4px;
    width: 500px;
  }

  #linha-produtos {
    position: relative;
    right: 50px;
    z-index: 1;
    top: 4px;
    width: 900px;
  }

  .steps-grid {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  #hero {
    background-position: center 150px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-pack {
    justify-content: center;
  }

  #luciano {
    left: 10px;
    width: unset;
    max-width: 60%;
  }

  #linha-produtos {
    position: absolute;
    right: 0;
    width: unset;
    bottom: 0;
    top: unset;
  }

  img {
    max-width: 85%;
    height: auto;
    margin: 0 auto ;
    display: block;
  }
}
