*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    overflow: hidden; 
}
body {
    min-height: 100vh;
    overflow-x: hidden;
    display: block;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
}
.content-com-background {
    background-image: url('../Images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    height: 100vh;
} 
/*############### HEADER ###############*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    background: linear-gradient(to right, white, green, blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    font-size: 24px;
}
.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo {
    height: 83px;
    max-height: 100%;
}
.header-center a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}
.catalogo-titulo {
    text-align: center;
    font-size: 24px;
    color: #004aad;
    font-weight: bold;
    margin-bottom: 30px;
}
/*############### MENU HAMBUERGUER ###############*/
.menu-hamburguer .instagram-icon{
    position: absolute;
    top: 20px;
    right: 130px;
    z-index: 1001;
}
.menu-hamburguer.instagram-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
}
.menu-hamburguer.instagram-icon img:hover {
    transform: scale(1.1);
}
.header-center a {
    font-size: 35px;
}
.menu-nav a {
    color: white;
    text-decoration: none;
    padding: 12px;
    display: block;
    width: 100%;
    font-size: 18px;
    padding: 10px 10px 10px 10px;
}     
.menu-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}   
.menu-hamburguer.active .menu-nav {
    display: flex;
}
.container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
/*############### ICONE CENTRO-DIREITO ###############*/
.whatsapp-icon{
    position: fixed;
    right: 20px;
    cursor: pointer;
    z-index: 10;
}
.whatsapp-icon {
    top: 15%;
    transform: translateY(-15%);
}
.whatsapp-icon img {
    height: 155px;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
    animation: piscar 2s infinite;
    margin-left: 8rem;
    margin-top: 20px;
}
.instagramcl:hover img {
    transform: scale(1.1);
}
#galeria-back {
    background-image: url('../Images/background-sem-logo.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: 100vh;
}
/*############### GALERIA ###############*/        
.galeria {
    position: fixed;
    top: 300px;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    width: 90%;
    max-height: 80vh;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
}
.item {
    max-width: 120px !important;
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 10px;
    transition: transform 0.3s ease;
    overflow: hidden; 
 }
.item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.item p {
    margin: 10px;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #333;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*############### MODAL PRODUTOS ###############*/        
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}
.modal-content {
    margin: auto;
    display: block;
    width: 250px;
    height: 250px;
}
.close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}
.close:hover,
.close:focus {
    color: #bbb;
}
/*############### PÁGINAÇÃO ###############*/
.paginacao {
    display: flex;
    justify-content: center;
    margin-top: 22.5rem;
    margin-bottom: 60px; /* novo */
    flex-wrap: wrap;
    gap: 10px;
  }
.paginacao button img {
    width: 16px;
    height: 16px;
}
.btn-proximo button img {
    width: 26px;
    height: 26px;
}
.paginacao button {
    background-color: #fff;
    color: green;
    border: 1px solid #0707f7;
    margin: 5px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 0 !important;
}
.paginacao button.active {
    background-color: #0707f7;
    border-color: #fff;
}
/*############### QUEM SOMOS ###############*/        
.secao-wrapper {
    /* height: 100vh; */
    display: flex;
    justify-content: center;
    align-items: center;
}
.quem-somos {
    background-color: rgba(40, 167, 69, 0.8); 
    color: white;
    padding: 2rem;
    border-radius: 10px;
    width: 70%;
    max-width: 1000px;
    height: auto;
    display: flex;
    flex-direction: column !important;
    justify-content: flex-start !important;
    text-align: center;
    margin-top: 140px;
}
.quem-somos h2 {
    font-size: 2em;
}
.quem-somos p {
    font-size: 22px;
    line-height: 1.6;
    text-align: justify;
    margin-top: 1rem; 
    margin-bottom: 1rem;
}
/*############### RODAPÉ / FOOTER ###############*/        
.footer {
    position: fixed !important;
    bottom: 0;
    width: 100%;
    text-align: center;
    line-height: 8px;
    margin: 0;  
    z-index: 1000;
}
.developer {
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: white;
    position: relative;
    display: inline-block;
}
.developer a {
    display: inline-block;
    position: relative;
}
.developer img {
    height: 20px;
    margin-left: 5px;
}
.developer a::after {
    content: "kosmosti.com.br";
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}
.developer a:hover::after {
    opacity: 1;
}
.developer p {
    font-size: 12px;
}
.galeria-menu {
    margin-top: 0 !important;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.catalogo-titulo {
    text-align: center;
    margin-bottom: 20px;
    font-size: 32px;
    color: #0707f7;
    cursor: pointer;
    text-decoration: none;
}
.catalogo-titulo:hover {
    color: #0C941C;
}
.galeria-botoes {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    justify-content: center;
    max-width: 920px;
}
.galeria-botoes li {
    flex: 0 0 calc(20% - 10px);
    display: flex;
    justify-content: center;
}
.galeria-botoes a.btn-link {
  width: 140px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #0C941C;
  background-color: #fff;
  color: #0C941C;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.galeria-botoes a.btn-link:hover {
    background-color: #0C941C;
    color: #fff;
}
@keyframes piscar {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
}
.botao-voltar {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 520px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    color: #0C941C;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}
/*############################          FIM          ############################*/


/*############################       CELULARES        ############################*/

@media (max-width: 440px) {
    .header {
        font-size: 1.875rem;
        padding: 0.625rem;
    }
    .header a {
        font-size: 0.60rem;
    }
    .logo {
        height: 1.8rem;
        max-height: 100%;
    }
    .header-center a {
        /* margin-left: 0.3rem; */
        /* margin-right: 30px; */
        font-size: .8rem;
    }
    .header-right {
        /*margin-right: 20px;*/
    }
    .catalogo-titulo {
        text-align: center;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        color: blue;
        font-weight: bold;
        margin-bottom: 0;
    }
    .menu-nav a {
        font-size: 0.875rem;
    }
    .content-com-background {
        background-image: url('../Images/background-mobile-1.png');
    }
    .menu-hamburguer.instagram-icon img {
        width: 1.875rem;
        height: 1.875rem;
        object-fit: contain;
        transition: transform 0.3s ease-in-out;
    }
    .instagramcl {
        top: 8.3%;
        left: 27%;
    }
    .whatsapp-icon {
        position: absolute;
        top: 13%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .whatsapp-icon img {
        margin-top: 8px;
        margin-left: 0;
        height: 55px;
        object-fit: contain;
        transition: transform 0.3s ease-in-out;
        animation: piscar 2s infinite;
    }
    .quem-somos {
        flex-direction: column;
        padding: 0.125rem 0.6875rem;
        height: 40vh;
        max-width: 60vh;
        border-radius: 6px;
        margin-top: 115px;
    }
    .botao-voltar.voltar-quem-somos {
        margin-top: -60px !important;
        /* margin-bottom: 3.8rem; */
        font-size: 9px;
        padding: 2px 8px;  
    }
    .quem-somos p {
        font-size: 0.875rem;
        margin-bottom: 0;
        margin-top: 2px;
    }
    .quem-somos h2 {
        margin-top: 1rem;
        font-size: 0.9375rem;
    }
    .galeria-botoes {
        margin-top: 1rem;
        gap: 3px 0;
    }
    .galeria-menu {
        top: 0;
        margin-top: -60px !important;
    }
    .galeria-botoes li {
        flex: 0 0 calc(33.33% - 6px);
        display: flex;
        justify-content: center;
    }
    .galeria-botoes a.btn-link {
        width: 5rem;
        height: 5rem;
        gap: 0.1875rem;
        font-size: 0.45rem; 
    }
    .btn-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-decoration: none;
    }
    .btn-link img {
        width: 3rem;
        height: 3rem;
        object-fit: contain;
    }
    .galeria {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 8px;
        padding: 11px;
        max-width: 270px;
        margin: 0 auto;
        top: 274px;
    }
    .item {
        width: 180px;
        height: auto;
        text-align: center;
    }
    .item img {
        width: 70%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
    .item p {
        font-size: 0.625rem;
        margin: 0;
    }
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 80%;
        background-color: rgba(0, 0, 0, 0.8);
        overflow: auto;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 8px;
    }
    .modal-content {
        margin: 40px 0 0 0;
        display: block;
        width: 100px;
        height: 100px;
    }
    .close {
        position: absolute;
        top: 10px;
        right: 20px;
        color: #fff;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1000;
    }
   
    .paginacao {
        margin-top: 20rem !important;
        max-width: 270px;
        margin: 2px auto 35px auto;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    .botao-voltar{
        margin-top: -2rem !important;
        font-size: 9px;
        padding: 2px 8px;  
    }
    .paginacao button {
        padding: 4px 7px;
        margin: 0 !important;
    }
    .developer p {
        font-size: 0.625rem !important;
    }
    .footer {
        line-height: 0.6;
    }
}

@media (min-width: 375px) and (max-width: 375px) {
    .galeria-menu {
        margin-top: -10px !important;
    }
}

@media (min-width: 390px) and (max-width: 390px) {
    .galeria-menu {
        margin-top: -40px !important;
    }
    .quem-somos {
        height: 43vh;
    }
}

@media (min-width: 411px) and (max-width: 412px) {
    .galeria-menu {
        margin-top: -10rem !important
    }
}
/*############################    CELULARES      FIM          ############################*/






/*############################       NOTEBOOK/ TABLETS / DESKTOP        ############################*/

@media screen and (min-width: 481px) and (max-width: 768px) {    
    .header {
        font-size: 1.875rem;
        padding: 0.625rem;
    }
    .header a {
        font-size: 1rem;
    }
    .logo {
        height: 1.8rem;
        max-height: 100%;
    }
    .header-center a {
        /* margin-left: 0.3rem; */
        /* margin-right: 30px; */
    }
    .header-right {
        margin-right: 20px;
    }
    .catalogo-titulo {
        text-align: center;
        font-size: clamp(1rem, 2.5vw, 1.2rem);
        color: blue;
        font-weight: bold;
        margin-bottom: 0;
    }
    .menu-nav a {
        font-size: 0.875rem;
    }
    .content-com-background {
        background-image: url('../Images/background-medio-plus.png');
    }
    .menu-hamburguer.instagram-icon img {
        width: 1.875rem;
        height: 1.875rem;
        object-fit: contain;
        transition: transform 0.3s ease-in-out;
    }
    .instagramcl {
        top: 8.3%;
        left: 27%;
    }
    .whatsapp-icon {
        position: absolute;
        top: 13%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .whatsapp-icon img {
        margin-top: 8px;
        margin-left: 0;
        height: 85px;
        object-fit: contain;
        transition: transform 0.3s ease-in-out;
        animation: piscar 2s infinite;
    }
    .quem-somos {
        flex-direction: column;
        padding: 0.125rem 0.6875rem;
        height: 48vh;
        max-width: 60vh;
        border-radius: 6px;
        margin-top: 111px;
    }
    .botao-voltar.voltar-quem-somos {
        margin-top: -40px !important;
        /* margin-bottom: 3.8rem; */
        font-size: 9px;
        padding: 2px 8px;  
    }
    .quem-somos p {
        font-size: 0.875rem;
        margin-bottom: 0;
        margin-top: 2px;
    }
    .quem-somos h2 {
        margin-top: 1rem;
        font-size: 0.9375rem;
    }
    .galeria-botoes {
        margin-top: 1rem;
        gap: 3px 0;
    }
    .galeria-menu {
        top: 0;
        margin-top: -10px !important;
    }
    .galeria-botoes li {
        flex: 0 0 calc(33.33% - 6px);
        display: flex;
        justify-content: center;
    }
    .galeria-botoes a.btn-link {
        width: 5rem;
        height: 5rem;
        gap: 0.1875rem;
        font-size: 0.45rem; 
    }
    .btn-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-decoration: none;
    }
    .btn-link img {
        width: 3rem;
        height: 3rem;
        object-fit: contain;
    }
    .galeria {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px 8px;
        padding: 11px;
        max-width: 270px;
        margin: 0 auto;
        top: 274px;
    }
    .item {
        width: 180px;
        height: auto;
        text-align: center;
    }
    .item img {
        width: 70%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
    }
    .item p {
        font-size: 0.625rem;
        margin: 0;
    }
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 80%;
        background-color: rgba(0, 0, 0, 0.8);
        overflow: auto;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 8px;
    }
    .modal-content {
        margin: 40px 0 0 0;
        display: block;
        width: 100px;
        height: 100px;
    }
    .close {
        position: absolute;
        top: 10px;
        right: 20px;
        color: #fff;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1000;
    }
   
    .paginacao {
        margin-top: 20rem !important;
        max-width: 270px;
        margin: 2px auto 35px auto;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    .botao-voltar{
        margin-top: -2rem !important;
        font-size: 9px;
        padding: 2px 8px;  
    }
    .paginacao button {
        padding: 4px 7px;
        margin: 0 !important;
    }
    .developer p {
        font-size: 0.625rem !important;
    }
    .footer {
        line-height: 0.6;
    }
}



@media (min-width: 800px) and (max-width: 834px) {
    .logo {
        height: 3rem;
        max-height: 100%;
    }
    .galeria-menu {
        margin: 0;
        margin-top: -10rem !important
    }
    .whatsapp-icon img {
        margin-top: 8px;
        margin-left: 0;
        height: 130px;
        object-fit: contain;
        transition: transform 0.3s ease-in-out;
        animation: piscar 2s infinite;
    }
    .catalogo-titulo {
        font-size: 2rem;
    }
    .header-center a {
        font-size: 1.3rem;
    }
    .galeria-botoes {
        max-width: 500px;
    }
    .galeria-botoes a.btn-link {
        width: 8rem;
        height: 8rem;
        gap: 0.1875rem;
        font-size: 1rem;
    }
    .quem-somos {
        flex-direction: column;
        padding: 0.125rem 0.6875rem;
        height: 40vh;
        max-width: 70vh !important;
        border-radius: 6px;
        margin-top: 9rem;
    }
    .quem-somos h2 {
        font-size: 1.8em;
    }
    .quem-somos p {
        font-size: 22px;
        line-height: 1.6;
        text-align: justify;
        margin-top: 1rem; 
        margin-bottom: 1rem;
    }
    .botao-voltar.voltar-quem-somos {
        margin-top: 250px !important;
        /* margin-bottom: 3.8rem; */
        font-size: 22px;
        padding: 10px 10px;  
    }

    .galeria {
        position: fixed;
        top: 350px;
        left: 50%;
        transform: translate(-50%, -50%);
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        max-width: 1000px;
        width: 90%;
        max-height: 80vh;
        height: auto;
        padding: 20px;
        box-sizing: border-box;
        z-index: 10;
    }
    .paginacao {
        margin-top: 26rem !important;
        max-width: 270px;
        margin: 2px auto 35px auto;
        display: flex;
        justify-content: center;
        gap: 0.5rem;
    }
    .botao-voltar {
        margin-top: 5rem !important;
        font-size: 9px;
        padding: 2px 8px;
    }
    .modal {
        display: none;
        position: fixed;
        z-index: 999;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        overflow: auto;
        padding: 20px;
        box-sizing: border-box;
        border-radius: 8px;
    }
    .modal-content {
        margin: auto;
        display: block;
        width: 250px;
        height: 250px;
    }
}