@media (max-width: 1024px) {
  /* Broad Definitions */
  :root:not([data-theme="dark"]),
  [data-theme="light"] {
    --scroll-margin: 100px 0 0 0;
  }

  h1,
  h2 {
    text-align: center;
    max-width: 100%;
  }

  /* Header */
  body > .header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--clr-8);
    transition: 0.6s;
    z-index: 1000;
    height: 0px;
    visibility: hidden;
    overflow-y: hidden;
  }

  #menu > li {
    display: block;
    width: max-content;
    margin-bottom: 20px;
    margin-right: auto !important;
    margin-left: auto;
    padding-right: var(--spacing);
    padding-left: var(--spacing);
    text-transform: uppercase;
  }

  #nav.active #menu {
    height: calc(25vh - 70px);
    box-shadow: 3px 25px 20px rgb(0 0 0 / 25%);
    visibility: visible;
    overflow-y: auto;
    padding: 1rem 0;
  }

  .dropdown {
    position: relative;
    display: flex;
    justify-content: center;
  }

  .dropdown::after {
    top: 6px;
    right: -5px;
  }

  .dropdown-menu {
    height: 0;
    position: initial;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    text-transform: initial;
  }

  .dropdown-menu.show {
    height: 100%;
    transition: 1s;
  }

  .dropdown-item {
    display: block;
    padding: 0;
    line-height: 3.2;
    text-align: center;
  }

  .dropdown-item:not(:last-child) {
    margin-bottom: 0.6rem;
  }

  #btn-mobile {
    display: flex;
    align-items: center;
    width: fit-content;
    height: 45px;
    margin-bottom: 0;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
    color: #363d44;
  }

  #btn-mobile:focus {
    background-color: var(--primary-focus);
  }

  #hamburger {
    border-top: 2px solid;
    width: 20px;
  }

  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }

  #nav.active #hamburger {
    border-top-color: transparent;
  }

  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }

  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }

  /* =========================================    1024px   ====================================================== */
  /* =========================================    1024px   ====================================================== */
  /* =========================================    1024px   ====================================================== */
  /* =========================================    1024px   ====================================================== */
  /* =========================================    1024px   ====================================================== */

  .cards-content {
    flex-direction: column;
  }

  .card {
    max-width: 60ch;
  }

  .img-text > p {
    max-width: 100%;
  }

  .card:nth-child(2) h3 {
    margin-left: 22px;
  }

  .main-banner {
    background: url(../images/home_bg_mobile.jpg) no-repeat center bottom /
      cover;
  }

  .main-banner > h1 {
    padding-top: 100px;
    justify-content: flex-start;
    align-items: center;
  }

  .text1 {
    font-size: 5.6rem;
  }

  .text2 {
    font-size: 3rem;
  }

  .text3 {
    font-size: 3rem;
  }

  /* ===================================2nd content =================================================== */

  .conecta-who-section {
    display: block;
    background: url(../images/quem-mobile.jpg) no-repeat center bottom / cover;
    height: 100vh;
    margin: 0;
  }

  .text-content {
    text-align: center;
  }

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
  }

  .conecta-who h2 {
    font-size: 3rem !important;
  }

  .conecta-who p {
    font-size: 1.5rem !important;
    font-weight: 700;
    width: 100%;
    line-height: 1.5;
    padding: 22px;
    margin: 0px 50px;
  }

  /* ===================================== 3th content ====================================== */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem;
    font-weight: 900;
  }

  .card {
    margin: 0 auto;
  }

  /* ===================================== contact us ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
  }

  .insurance-form,
  .insurance-form > form {
    width: 100%;
  }

  /* ===================================== Instagram ====================================== */

  #instagram {
    margin-bottom: 0px;
  }

  .instagram_feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  /* ===================================== whatsapp icon ====================================== */

  .whatsapp-icon {
    bottom: 10px;
    right: 10px;
  }

  /* ===================================== footer ====================================== */

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
  }

  #main-footer {
    display: flex;
    align-items: center;
    column-gap: 0;
    justify-content: space-between;
  }

  footer .logo {
    width: 130px;
  }

  .main-footer > img {
    width: 100px;
  }

  .main-footer li {
    font-size: 0.9rem;
  }

  .footer-secondline a {
    font-size: 0.9rem;
  }

  .main-footer span {
    font-size: 0.8rem;
  }
}

/* =========================================   mobile 768px  ====================================================== */
/* =========================================   mobile 768px  ====================================================== */
/* =========================================   mobile 768px  ====================================================== */
/* =========================================   mobile 768px  ====================================================== */
/* =========================================   mobile 768px  ====================================================== */
/* =========================================   mobile 768px  ====================================================== */

@media (max-width: 768px) {
  .main-banner {
    height: 85vh;
    padding-top: 0px;
  }

  .text1 {
    font-size: 3.5rem !important;
  }

  .text2,
  .text3 {
    font-size: 2rem !important;
  }

  /* ===================================== 2nd content mobile =================================================== */

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
  }

  .conecta-who h2 {
    font-size: 2rem !important;
    font-weight: 700;
    margin-bottom: 30px;
  }

  .conecta-who p {
    font-size: 1.2rem !important;
    width: 95%;
    padding: 0px 20px;
  }

  /* ===================================== 3th content ====================================== */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem;
    font-weight: 900;
  }

  .card {
    margin: 15px auto;
  }

  .cards-content {
    display: flex;
    flex-direction: column;
  }
  .img-text {
    justify-content: center;
  }

  .img-text img {
    width: 120px;
    margin: auto 0;
  }

  /* ===================================== contact us ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
  }

  .insurance-form #submit-btn {
    display: block;
    margin-bottom: 0;
    width: 95px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    background: #000;
    border-color: #000;
  }

  #contact-form textarea::placeholder,
  #contact-form input::placeholder,
  #contact-form select {
    font-size: 0.8rem;
  }

  /* ===================================== footer ====================================== */

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
  }

  #main-footer {
    display: flex;
    align-items: center;
    column-gap: 0;
    justify-content: space-between;
  }

  footer .logo {
    width: 130px;
  }

  .main-footer > img {
    width: 100px;
  }

  .main-footer li {
    font-size: 0.9rem;
    line-height: 2.5;
  }

  .footer-secondline a {
    font-size: 0.9rem;
    line-height: 2.5;
  }

  .main-footer span {
    font-size: 0.8rem;
  }

  .social_media {
    margin: 30px 0;
  }
}

/* ================================================================================================================ */
/* =========================================   mobile 640px  ====================================================== */
/* ================================================================================================================ */

@media (min-width: 768px) {
  .card {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .whatsapp-icon img {
    width: 50px !important;
  }

  .card > h3 {
    margin: 0;
    text-align: center;
  }

  /* ===================================== main banner mobile =================================================== */

  .main-banner {
    height: 85vh;
    padding-top: 0px;
  }

  .text1 {
    font-size: 2.4rem;
  }

  .text2,
  .text3 {
    font-size: 1.3rem;
  }

  /* ===================================== 2nd content mobile =================================================== */

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
  }

  .conecta-who h2 {
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 30px;
  }

  .conecta-who p {
    font-size: 0.9rem;
    width: 95%;
    padding: 0px 20px;
  }

  /* =====================================3th content mobile ========================================= */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem;
    font-weight: 900;
  }

  .card {
    margin: 10px auto;
    width: 100%;
    padding: 0px 10px 0px 10px;
  }

  .cards-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0px auto;
  }

  .cards h3 {
    font-size: 0.8rem;
    font-weight: 400;
    padding: 20px;
    text-align: start;
    margin-block: auto;
  }

  .img-text p {
    font-size: 0.8rem;
    font-weight: 400;
    text-align: center;
  }

  .img-text img {
    width: 110px;
    height: 110px;
    margin: 25px 0px;
  }

  /* ===================================== contact us mobile ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem;
    font-weight: bold;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
  }

  .insurance-form #submit-btn {
    display: block;
    margin-bottom: 0;
    width: 95px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    background: #000;
    border-color: #000;
  }

  /* ===================================== footer mobile ====================================== */

  footer.logo {
    width: 130px;
  }

  .footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    line-height: 0.9;
  }

  .footer img {
    margin: 12px auto;
  }

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
    padding-block: inherit;
  }

  #main-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 40px 0;
  }

  .main-footer > img {
    width: 100px;
  }
}

/* ===================================== whatsapp icon mobile 414px ====================================== */
/* ===================================== whatsapp icon mobile 414px ====================================== */
/* ===================================== whatsapp icon mobile 414px ====================================== */
/* ===================================== whatsapp icon mobile 414px ====================================== */

@media (max-width: 414px) {
  /* ===================================== main banner mobile =================================================== */

  .main-banner {
    height: 85vh;
    padding-top: 0px;
  }

  .text1 {
    font-size: 2.4rem !important;
   }

  .text2,
  .text3 {
    font-size: 1.3rem !important;
  }

  /* ===================================== 2nd content mobile =================================================== */

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .conecta-who h2 {
    font-size: 1.2rem !important;
    font-weight: 700;
    margin-bottom: 30px;
  }

  .conecta-who p {
    font-size: 0.7rem !important;
    text-align: left;
    width: 100%;
    padding: 0px 20px;
    margin: 0px 20px;
  }

  /* =====================================3th content mobile ========================================= */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem !important;
    font-weight: 900;
  }

  .card {
    margin: 0 auto;
    width: 100%;
  }

  .cards-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0px auto;
  }

  .card h3 {
    font-size: 1rem !important;
    font-weight: bold;
  }

  .img-text p {
    font-size: 0.8rem !important;
    font-weight: 400;
    padding: 20px;
    text-align: start;
  }

  .img-text img {
    width: 100px;
  }

  /* ===================================== contact us mobile ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem !important;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem !important;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem !important;
    font-weight: bold;
  }

  .contact-text img {
    margin-right: 10px;
    margin-left: 35px;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem !important;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem !important;
    font-weight: 800;
    color: #000;
  }

  .insurance-form #submit-btn {
    display: block;
    margin-bottom: 0;
    width: 95px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    background: #000;
    border-color: #000;
  }
  /* ===================================== footer mobile ====================================== */

  .whatsapp-icon img {
    width: 50px;
    height: auto;
  }

  /* ===================================== footer mobile ====================================== */

  footer.logo {
    width: 130px;
  }

  .footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    line-height: 0.9;
  }

  .footer img {
    margin: 12px auto;
  }

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
    padding-block: inherit;
  }

  #main-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-footer > img {
    width: 100px;
  }

  .main-footer li {
    font-size: 0.8rem;
  }

  .footer-secondline a {
    font-size: 0.8rem;
  }

  .main-footer span {
    font-size: 0.8rem;
  }
}

/* =====================================  mobile 375px ====================================== */
/* ===================================== mobile 375px ====================================== */
/* =====================================  mobile 375px ====================================== */
/* ===================================== w mobile 375px ====================================== */

@media (max-width: 375px) {
  /* ===================================== main banner mobile =================================================== */

  .main-banner {
    height: 85vh;
    padding-top: 0px;
  }

  .text1 {
    font-size: 2.4rem !important;
   }

  .text2,
  .text3 {
    font-size: 1.3rem !important;
  }

  /* ===================================== 2nd content mobile =================================================== */

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .conecta-who h2 {
    font-size: 1.2rem !important;
    font-weight: 700;
    margin-bottom: 30px;
  }

  .conecta-who p {
    font-size: 0.7rem !important;
    text-align: left;
    width: 100%;
    padding: 0px 20px;
    margin: 0px 20px;
  }

  /* =====================================3th content mobile ========================================= */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem !important;
    font-weight: 900;
  }

  .card {
    margin: 0 auto;
    width: 100%;
  }

  .cards-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0px auto;
  }

  .card h3 {
    font-size: 1rem !important;
    font-weight: bold;
  }

  .img-text p {
    font-size: 0.8rem !important;
    font-weight: 400;
    padding: 20px;
    text-align: start;
  }

  .img-text img {
    width: 100px;
  }

  /* ===================================== contact us mobile ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem !important;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem !important;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem !important;
    font-weight: bold;
  }

  .contact-text img {
    margin-right: 10px;
    margin-left: 35px;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem !important;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem !important;
    font-weight: 800;
    color: #000;
  }

  .insurance-form #submit-btn {
    display: block;
    margin-bottom: 0;
    width: 95px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    background: #000;
    border-color: #000;
  }

  /* ===================================== footer mobile ====================================== */

  footer.logo {
    width: 130px;
  }

  .footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    line-height: 0.9;
  }

  .footer img {
    margin: 12px auto;
  }

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
    padding-block: inherit;
  }

  #main-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-footer > img {
    width: 100px;
  }

  .main-footer li {
    font-size: 0.8rem;
  }

  .footer-secondline a {
    font-size: 0.8rem;
  }

  .main-footer span {
    font-size: 0.8rem;
  }
}

/* ===================================== whatsapp icon mobile 320px ====================================== */
/* ===================================== whatsapp icon mobile 320px ====================================== */
/* ===================================== whatsapp icon mobile 320px ====================================== */
/* ===================================== whatsapp icon mobile 320px ====================================== */

@media (max-width: 320px) {
  /* ===================================== main banner mobile =================================================== */

  .main-banner {
    height: 85vh;
    padding-top: 0px;
  }

  .text1 {
    font-size: 2.4rem !important;
  }

  .text2,
  .text3 {
    font-size: 1.3rem !important;
  }

  /* ===================================== 2nd content mobile =================================================== */

  .conecta-who,
  .text-content,
  .who {
    margin: 0 auto;
    width: 100%;
    padding: 10px;
    text-align: center;
  }

  .conecta-who h2 {
    font-size: 1.2rem !important;
    font-weight: 900;
    margin-bottom: 30px;
  }

  .conecta-who p {
    font-size: 0.6rem !important;
    text-align: left;
    width: 100%;
    padding: 0px 20px;
    margin: 0px 20px;
  }

  /* =====================================3th content mobile ========================================= */

  #o-que-fazemos h2 {
    color: #e8d62f;
    font-size: 1.2rem !important;
    font-weight: 900;
  }

  .card {
    margin: 0 auto;
    width: 100%;
  }

  .cards-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0px auto;
  }

  .card h3 {
    font-size: 1rem !important;
    font-weight: bold;
  }

  .img-text p {
    font-size: 0.8rem !important;
    font-weight: 400;
    padding: 20px;
    text-align: start;
  }

  .img-text img {
    width: 100px;
  }

  /* ===================================== contact us mobile ====================================== */

  .contact-us {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .contact-us h3 {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
  }

  .contact-us small {
    font-size: 0.7rem !important;
    font-weight: bold;
    text-align: center;
    padding: 5px;
  }

  .contact-us span {
    font-size: 1.2rem !important;
    font-weight: bold;
  }

  .contact-text img {
    margin-right: 10px;
    margin-left: 35px;
  }

  .insurance-form label,
  .insurance-form option {
    color: #000;
    font-size: 0.8rem !important;
    font-weight: 600;
  }

  .insurance-form .submit-wrapper p {
    font-size: 0.7rem !important;
    font-weight: 800;
    color: #000;
  }

  .insurance-form #submit-btn {
    display: block;
    margin-bottom: 0;
    width: 95px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 25px;
    background: #000;
    border-color: #000;
  }

  /* ===================================== footer mobile ====================================== */

  footer.logo {
    width: 130px;
  }

  .footer {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    line-height: 0.9;
  }

  .footer img {
    margin: 12px auto;
  }

  #footer {
    background-color: #373d44;
    margin-bottom: 0;
    padding-block: inherit;
  }

  #main-footer {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .main-footer > img {
    width: 100px;
  }

  .main-footer li {
    font-size: 0.8rem !important;
  }

  .footer-secondline a {
    font-size: 0.8rem !important;
  }

  .main-footer span {
    font-size: 0.8rem !important;
  }
}
