@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1140px !important;
  }

  .container-middle {
    margin-left: auto;
}
}

@media (max-width: 1400px) {
  .container-middle {
      margin-left: auto;
  }
}

@media (max-width: 1200px) {
  .container-middle {
      max-width: 480px;
      margin-left: auto;
  }


}

@media screen and (max-width: 1570px) and (min-width: 992px) {

}

/* Tablets */
@media screen and (max-width: 992px) and (min-width: 768px) {
  #home .home-contents {
    width: 80vw !important;
    max-width: 600px !important;
    padding: 60px 30px !important;
    padding-left: 30px !important;
    padding-right: 30px !important;
  }

  #home .home-contents > div {
    max-width: 500px !important;
    padding: 25px !important;
    margin: 0 auto;
  }

  #home h1 {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }

  #home h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
  }

  #home p {
    font-size: 15px !important;
    line-height: 1.5 !important;
  }

  .hero-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    max-width: 280px !important;
  }
}


/* Tablet e dispositivos médios */
@media screen and (max-width: 991px) {
  
  nav#navigation {
    height: 70px;
  }
   
  nav#navigation .close_menu {
    top: 25px;
    right: 20px;
  }

  #navigation li {
    margin: 12px 0;
    font-size: 16px;
  }
  
  #navigation ul li a {
    padding: 12px 25px;
  }

  /* Home */
  #home {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  #home .home-contents {
    width: 100% !important;
    margin: auto;
    max-width: 720px;
    padding: 40px 20px;
    padding-right: 20px !important;
    text-align: center;
  }

  #home .home-contents > div {
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto;
    padding: 25px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 12px !important;
  }

  #home h2 {
    text-align: center;
    font-size: 20px;
  }
  #home h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  #home h2 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 16px;
  }

  #home p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-badge {
    margin-bottom: 20px;
  }

  .hero-badge .badge-text {
    font-size: 12px;
  }

  /* Botões responsivos */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
    height: 50px !important;
    font-size: 12px !important;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1;
    min-width: 80px;
    text-align: center;
  }

  .stat-number {
    font-size: 20px !important;
    font-weight: 700;
  }

  .stat-label {
    font-size: 11px !important;
    line-height: 1.3;
  }

  #home .home-contents .btn {
    width: 200px;
    height: 50px;
    line-height: 50px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  #home .image-home {
    width: 100vw;
    height: 350px;
    order: -1;
  }


  /* Feedstock */
  .validation-numbers .numbers > div {
    width: auto;
    height: 200px;
  }

  .validation-numbers .numbers > div > h4 {
    font-size: 20px;
    line-height: 30px;
  }
}

/* Dispositivos móveis pequenos */
@media screen and (max-width: 576px) {
  /* Home */
  #home .home-contents {
    width: 95vw !important;
    min-width: 280px !important;
    padding: 20px 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  #home .home-contents > div {
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px !important;
    margin: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 10px !important;
  }

  #home h1 {
    font-size: 26px !important;
    line-height: 1.1 !important;
    margin-bottom: 15px !important;
  }

  #home h2 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  #home p {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 20px !important;
  }

  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 25px !important;
  }

  .hero-actions .btn {
    width: 100% !important;
    min-width: auto !important;
    height: 50px !important;
    font-size: 13px !important;
  }

  .hero-stats {
    flex-direction: column !important;
    gap: 15px !important;
    text-align: center !important;
  }

  .stat-item {
    margin-bottom: 10px !important;
  }

  .stat-number {
    font-size: 20px !important;
  }

  .stat-label {
    font-size: 12px !important;
  }

  /* Botões mobile pequeno */
  .hero-actions {
    gap: 12px;
    max-width: 280px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    min-width: unset !important;
    height: 48px !important;
    font-size: 12px !important;
    padding: 0 16px !important;
  }
  
  .btn-text {
    font-size: 12px !important;
  }
  
  .hero-stats {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 28px;
  }
  
  .stat-number {
    font-size: 20px !important;
  }
  
  .stat-label {
    font-size: 10px !important;
  }

  #home .home-contents .btn {
    width: 180px;
    height: 45px;
    line-height: 45px;
    font-size: 12px;
  }

  #home .image-home {
    height: 280px;
  }

  /* Números de validação */
  .validation-numbers .numbers > div {
    height: 150px;
    margin-bottom: 20px;
  }

  .validation-numbers .numbers > div > h4 {
    font-size: 18px;
    line-height: 24px;
  }

  .validation-numbers .numbers > div > p {
    font-size: 12px;
  }

  /* Seções gerais */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  h4 {
    font-size: 18px;
    line-height: 1.3;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
  }

  .validation-numbers .numbers > div > p {
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
  }

  .section-details {
    padding: 0 0 60px 0;
  }

  .section-details .container {
    flex-direction: column;
  }

  .section-details .container img {
    width: 100vw;
    height: 300px;
    position: absolute;
    object-fit: cover;
  }

  .section-details .texts {
    margin-top: 360px;
  }

  .section-details .texts h3 {
    font-size: 28px;
    line-height: 42px;
    text-align: center;
  }

  .section-details .texts h3::after {
    align-self: center;
  }

  .section-details .texts p {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

  /* referency */
  #reference {
    margin-block: 80px;
    padding-block: 0px;
  }

  #reference h2, #products h2 {
    width: 320px;
    text-align: center;
    margin: auto;
    font-size: 28px;
    padding-bottom: 70px;
  }
  
  #reference h2::after, #products h2::after {
    align-self: center;
    
  }

  #reference h4, #products h4 {
    font-size: 24px;
    align-items: center;
  }

  #reference h4::after, #products h4::after {
    align-self: center;
  }

  #reference p {
    font-size: 16px;
    line-height: 24px;
    padding-bottom: 30px;
  }

  #reference .ref-description {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #reference .ref-description:not(:last-child) {
    padding-bottom: 60px;
}

  .ref-description div:first-child {
    order: 2;
  }

  #reference .ref-texts {
    margin: 0 !important;
    border: none;
    padding: 0;
  }

  #reference .ref-description .col-6 {
    width: 75%;
  }

  /* products */

  #products {
    padding-top: 76px;
  }

  #products .products-descriptions .col-6 {
    width: 75%;
    margin-bottom: 38px;
  }

  #products .products-descriptions {
    flex-direction: column;
    align-items: center;
  }

  #products .products-images {
    padding: 0 !important;
  }

  #products .products-texts p {
    text-align: center;
    margin-bottom: 0;
  }

  #products .inverter div:last-child {
    order: 2;
  }

  #products .products-descriptions {
    margin-bottom: 60px;
  }

  #products .products-descriptions:last-child,
  #products .products-texts:last-child {
    margin-bottom: 0;
  }

  /* products */

  /* about */

  #about div #video video {
    aspect-ratio: 16/9;
    height: auto;

  }

  /* contact */

  #contact {
    padding: 60px 0 60px 0;
  }

  #contact .container .row {
    flex-direction: column;
    align-items: center;
  }

  #contact .container .row .col-sm-6 {
    width: 100%;
  }

  #contact .cardcontato h3 {
    text-align: center;
    margin-bottom: 42px;
  }

  .cardcontato h3::after {
    align-self: center;
  }

  .cardcontato p {
    margin-bottom: 22px;
    font-size: 16px;
    line-height: 24px;
  }

  #contact .cardcontato .contact-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
  }

  .cardcontato button {
    width: 160px;
    height: 60px;
  }



  #contact .container .row p:nth-child(2) {
    text-align: center;
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 30px;
  }

  #contact .map {
    display: flex;
    justify-content: center;
  }

  /* contact */

  /* Footer Responsivo */
  .footer-main {
    padding: 40px 0 30px;
  }

  .footer-section {
    margin-bottom: 30px;
  }

  .footer-logo img {
    width: 220px;
  }

  .footer-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .footer-description {
    font-size: 14px;
  }

  .social-links {
    gap: 12px;
  }

  .social-link {
    padding: 10px 12px;
  }

  .social-link span {
    font-size: 14px;
  }

  .footer-bottom {
    padding: 20px 0;
  }

  .developer-credit {
    text-align: center;
    margin-top: 10px;
  }
}

/* Telas muito pequenas */
@media screen and (max-width: 400px) {
  #home .home-contents {
    width: 98vw !important;
    min-width: 260px !important;
    padding: 15px 5px !important;
  }
  
  #home .home-contents > div {
    padding: 15px !important;
    border-radius: 8px !important;
  }

  #home h1 {
    font-size: 24px !important;
    line-height: 1.1 !important;
  }

  #home h2 {
    font-size: 15px !important;
  }

  #home p {
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .hero-actions .btn {
    height: 48px !important;
    font-size: 12px !important;
    padding: 0 16px !important;
  }

  .hero-badge {
    padding: 6px 12px !important;
    font-size: 11px !important;
  }

  .stat-number {
    font-size: 18px !important;
  }

  .stat-label {
    font-size: 11px !important;
  }
}

@media screen and (max-width: 767px) {
  /* Home */
  #home .home-contents {
    width: 540px;
  }

  /* Footer Mobile */
  .footer-logo img {
    width: 200px;
  }

  .footer-title {
    font-size: 16px;
    text-align: center;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-nav {
    text-align: center;
  }

  .social-links {
    align-items: center;
  }
}

@media screen and (max-width: 575px) {
  

  /* Home */
  #home .home-contents {
    width: auto;
  }

  /* Feedstock */

  .validation-numbers .numbers {
    justify-content: center;
  }

  .validation-numbers .numbers > div {
    align-items: center;
    padding: 0;
  }

  .validation-numbers .numbers > div:nth-child(2) {
    margin: 0 10px;
  }

  .validation-numbers .numbers > div > p {
    width: 100px;
  }

  .section-details .texts {
    padding-right: 0;
  }

  #about .conteudo_about {
    padding-top: 0px;
  }

  #about .conteudo_about .about_text {
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
  }

  .modal-body div input {
    width: 320px;
    font-size: 14px;
  }

  .modal-body div textarea {
    width: 320px;
    font-size: 14px;
  }

  .modal-body h2 {
    font-size: 24px;
  }
}