/* Theme author: Publi */
:root {
  --primary-color: #c21c35;
  --primary-light: #e61e28;
  --white: #fff;
  --darkblue: #1a2b49;
  --transition: all 0.3s ease;
  --blue: #00b1f0;
  --gray: #505050;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a {
  text-decoration: none;
  display: inline-block;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito Sans', 'Arial', sans-serif;
  width: 100%;
  overflow-x: hidden;
  font-size: 1rem;
}
a {
  text-decoration: none;
}

ul {
  list-style: none;
}

ol {
  padding-left: 1.5rem;
}

.center-content {
  width: 100%;
  max-width: 1200px;
  display: block;
  margin: 0 auto;
}

.main-menu-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  @media screen and (max-width: 768px) {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0 0;
    text-align: center;
    /* height: 0; */
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: var(--transition);
    &.active {
      opacity: 1;
      display: flex;
      width: 100%;
      overflow: visible;
    }
  }

  .menu-container {
    display: flex;
    gap: 6rem;

    @media screen and (max-width: 768px) {
      gap: 1rem;
      flex-direction: column;
    }

    @media screen and (max-width: 1024px) {
      margin: 0 1rem;
    }
  }

  .menu-item,
  .menu-item a {
    font-size: 1rem;
    text-transform: uppercase;

    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
    &:hover {
      color: var(--primary-color);
    }

    @media screen and (max-width: 768px) {
      text-align: center;
      font-size: 1.2rem;
      font-weight: 400;
    }
  }

  .logo {
    max-width: 160px;
    display: block;
    flex: 1;
    img {
      width: 100%;
    }

    @media screen and (max-width: 768px) {
      display: none;
    }
  }

  .close-mobile-menu {
    display: none;

    @media screen and (max-width: 768px) {
      display: block;
      position: absolute;
      top: 1rem;
      right: 1rem;
      z-index: 1001;
      font-size: 2rem;
      color: var(--primary-color);
    }
  }
}

.brindes-nav {
  padding: 15px 0;
  background: #f9f9f9;
  border-bottom: solid 1px #eee;
  border-top: solid 1px #eee;
  ul {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;

    @media screen and (max-width: 1024px) {
      gap: 1rem;
      text-align: center;
      align-items: center;
      justify-content: center;
    }

    li {
      text-transform: uppercase;
      color: var(--gray);
      font-size: 14px;
      a {
        color: var(--gray);
        &:hover {
          color: var(--primary-color);
        }
      }
    }
  }
}

.blue-title {
  width: 100%;
  padding: 15px 0;
  background-color: var(--blue);
  color: var(--white);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 2rem;
  text-align: center;
}

/* Breadcrumbs */
.main-breadcrumbs {
  margin-bottom: 20px;
  width: 100%;

  @media screen and (max-width: 1024px) {
    margin: 0 1rem;
    margin-bottom: 1rem;
  }
}

.main-breadcrumbs .bread-item {
  /* text-transform: uppercase; */
  font-size: 0.75rem;
  color: var(--gray);
  color: #a0a0a0;
}

.main-breadcrumbs .bread-item::after {
  content: '>';
  font-family: monospace;
  display: inline-block;
  margin: 0 5px;
  color: #a0a0a0;
}

.main-breadcrumbs span:last-child .bread-item::after {
  display: none;
}

.main-breadcrumbs a.bread-item {
  color: var(--gray);
  text-decoration: none;
  color: #a0a0a0;
}

.main-breadcrumbs a.bread-item:hover {
  text-decoration: underline;
  color: #000;
}

.blog-container {
  padding: 2rem 0 0;
}

.blog-content {
  /* padding: 2rem 0; */
  @media screen and (max-width: 1024px) {
    padding: 0 1rem;
  }
}

.blog-content__title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.blog-content__text {
  margin-bottom: 3rem;
  font-size: 1rem;
  color: var(--gray);
  font-weight: 400;
  line-height: 1.5;

  wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper,
  .wp-block-embed.is-provider-youtube .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    /* fallback padrão se o tema não aplicar a classe de ratio */
    aspect-ratio: 16 / 9;
  }

  /* 2) Força o iframe a preencher o container, ignorando width/height do HTML */
  .wp-block-embed .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
  }

  /* 3) Se o Gutenberg já põe classes com a razão, respeite-as */
  .wp-embed-aspect-16-9 .wp-block-embed__wrapper {
    aspect-ratio: 16 / 9;
  }
  .wp-embed-aspect-4-3 .wp-block-embed__wrapper {
    aspect-ratio: 4 / 3;
  }
  .wp-embed-aspect-1-1 .wp-block-embed__wrapper {
    aspect-ratio: 1 / 1;
  }

  /* 4) Fallback pra browsers muito antigos (sem aspect-ratio) */
  @supports not (aspect-ratio: 1) {
    .wp-block-embed .wp-block-embed__wrapper {
      height: 0;
      padding-top: 56.25%;
    }
    .wp-block-embed .wp-block-embed__wrapper iframe {
      position: absolute;
      inset: 0;
      width: 100% !important;
      height: 100% !important;
    }
  }

  a {
    text-decoration: underline;
    color: var(--gray);
    font-weight: 700;
  }

  .subtitle {
    font-weight: 700;
    font-size: 1.5em;
    display: block;
  }

  img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 400;
    display: inline;
    color: var(--gray);
    font-size: 1rem;
  }
}

.address-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-weight: 500;

  @media screen and (max-width: 1024px) {
    padding: 1rem;
    flex-wrap: wrap;
  }
  b {
    margin-right: 0.5rem;
  }
  /* gap: 0.5rem; */
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;

  @media screen and (max-width: 1024px) {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .blog-grid__item {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    border-radius: 0.5rem;
    border: solid 1px #e6e6e6;
    overflow: hidden;

    transition: var(--transition);
    &:hover {
      transform: translateY(-5px);
      background-color: #fcfcfc;
      opacity: 0.95;
    }
    .blog-grid__img {
      width: 100%;
      height: auto;
      min-height: 200px;
      max-height: 200px;
      object-fit: cover;
    }
    .blog-grid__item-title {
      font-size: 30px;
      font-weight: 800;
      color: var(--blue);
      padding: 0 1rem;
      line-height: 1.2;
    }
    .blog-grid__item-excerpt {
      font-size: 1rem;
      color: var(--gray);
      font-weight: 400;
      padding: 0 1rem 1.5rem;
      line-height: 1.5;
      display: -webkit-box;
      box-orient: vertical;
      line-clamp: 4;
      overflow: hidden;
    }
  }
}
.footer {
  background: #e6e6e6;
  padding: 4rem 0;

  @media screen and (max-width: 1024px) {
    padding: 2rem 0;
  }

  .footer-title {
    display: block;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 1.5rem;
    text-transform: uppercase;
  }
  .center-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    @media screen and (max-width: 1024px) {
      padding: 1rem;
    }
    @media screen and (max-width: 768px) {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
    }
  }
  .footer-content {
    flex: 1;
    color: var(--gray);
    line-height: 1.5;
  }
}

.copyright-section {
  font-weight: 500;
  font-size: 0.6875rem;
  padding: 10px;
  text-align: center;
  color: #bbb;
  a {
    color: #bbb;
    text-decoration: underline;
    &:hover {
      color: var(--primary-color);
    }
  }
}

.mobile-header {
  display: none;
  .logo {
    max-width: 180px;
    img {
      width: 100%;
    }
  }
  @media (max-width: 768px) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    @media (max-width: 768px) {
      display: block;
    }
  }
}

.go-to-top {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  border: solid 1px var(--primary-light);
  text-align: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 200;
  align-items: center;
  justify-content: center;
  display: flex;
  transition: var(--transition);
}
