/* renovasp2025.css */

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Circular+Std:wght@700&display=swap');

body {
   background-repeat: no-repeat;
   font-family: 'Circular Std', sans-serif;
}

.container {
   display: grid;
   grid-template-columns: 1fr;
   grid-template-rows: 0fr 0fr 0fr 0fr 0fr;
   grid-template-areas:
       "header"
       "conteudo1"
       "conteudo2"
       "botao2"
       "footer";
   grid-gap: 5px;
}

.header #header-container {
   grid-area: header;
   width: 100%;
}

.conteudo1 {
   grid-area: conteudo1;
   display: flex;
   justify-content: center;
   align-items: center;
   flex-direction: column;
   margin-left: 25%;
   margin-right: 25%;
}

.card_img2 {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.card_img2 img {
   display: flex;
   max-width: 100%;
   align-items: center;
   border-radius: 10px;
}

.card_img { /* Este é da galeria futura */
   max-width: 99px;
   max-height: 150px;
   overflow: auto;
   margin: 10px;
   border-radius: 10px;
   overflow: hidden;
}

#conteudo2 { /* Este ID se refere ao bloco da galeria comentado no HTML */
   display: flex; /* Adicionado para garantir que o display funcione como esperado para a galeria */
   justify-content: center;
   align-items: center;
   flex-direction: column;
   /* As margens comentadas foram removidas, pois não estavam ativas e não são essenciais para o funcionamento */
   max-width: 100%;
   max-height: 100%;
}

.conteudo2 { /* Este seletor se refere ao bloco de imagem único visível agora */
   grid-area: conteudo2;
   justify-content: center;
   align-items: center;
   flex-direction: column;
   max-width: 100%;
   max-height: 100%;
}

.conteudo2 img {
   display: flex;
   max-width: 100%;
   align-items: center;
   border-radius: 10px;
}

.gallery { /* Da galeria futura */
   margin-left: 10%;
   margin-right: 10%;
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
}

.gallery img { /* Da galeria futura */
   height: 100%;
}

/* O .card_img estava duplicado, mantive apenas um, o primeiro acima */

.gallery img:hover { /* Da galeria futura */
   opacity: 0.7;
}

.lightbox { /* Da lightbox futura */
   display: none;
   position: fixed;
   z-index: 2;
   padding-top: 0%;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   overflow: auto;
   background-color: rgba(0, 0, 0, 0.9);
}

.lightbox img { /* Da lightbox futura */
   margin: auto;
   display: block;
   margin-top: 10px;
   max-height: 100%;
   border-radius: 15px;
   border-style: outset;
   border-color: antiquewhite;
}

.close { /* Da lightbox futura */
   position: absolute;
   top: 15px;
   right: 35px;
   color: #f1f1f1;
   font-size: 40px;
   font-weight: bold;
   transition: 0.3s;
}

.close:hover,
.close:focus { /* Da lightbox futura */
   color: #bbb;
   text-decoration: none;
   cursor: pointer;
}

.prev,
.next { /* Da lightbox futura */
   cursor: pointer;
   position: absolute;
   top: 50%;
   width: auto;
   padding: 16px;
   margin-top: -50px;
   color: white;
   font-weight: bold;
   font-size: 20px;
   transition: 0.6s ease;
   border-radius: 0 3px 3px 0;
   user-select: none;
}

.next { /* Da lightbox futura */
   right: 0;
   border-radius: 3px 0 0 3px;
}

.prev { /* Da lightbox futura */
   left: 0;
   border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover { /* Da lightbox futura */
   background-color: rgba(0, 0, 0, 0.8);
}

#botao2 {
   grid-area: botao2;
   text-align: center;
}

/* Nova classe para o botão Voltar - Removendo estilo inline do HTML */
.botao-voltar {
   background: rgba(168, 115, 65, 0.8);
   border-radius: 6px;
   padding: 8px;
   cursor: pointer;
   color: #fff;
   border: none;
   font-size: 16px;
}

.footer #footer-container {
   grid-area: footer;
   background-color: rgb(34, 34, 34);
}

h1 {
   font-family: 'Circular Std', sans-serif;
   display: flex;
   color: #585858;
   font-size: 30px;
   text-decoration: none;
   text-align: center;
   margin-top: 20px;
}

h2 { /* Este seletor não está em uso no HTML atual, mas mantido se for usar h2 no futuro */
   font-family: 'Circular Std', sans-serif;
   display: flex;
   color: #585858;
   font-size: 12px;
   text-decoration: none;
}

p {
   font-family: 'Circular Std', sans-serif;
   font-size: 20px;
   color: #000;
   margin-bottom: 10px;
   text-align: start;
}

.row { /* Não está em uso no HTML atual, mas mantido se for usar no futuro */
   margin-left: 10%;
   margin-right: 10%;
}


@media only screen and (max-width: 1000px) {
   .container {
       display: flex;
       flex-direction: column;
   }

   #nav img { /* Não está em uso no HTML atual, mas mantido se for usar no futuro */
       width: 100px;
   }

   .conteudo1 {
       display: flex;
       justify-content: row;
       align-items: start;
       flex-direction: column;
       margin-left: 2%;
       margin-right: 2%;
   }

   #conteudo2 { /* Estilo da galeria para mobile */
       display: flex;
       margin-left: 20px;
       margin-right: 20px;
   }

   .conteudo2 img { /* Imagem única para mobile */
       content: url('/stream/imagens/renovasp2025/renovaspsmart.jpg');
       max-width: 100%;
   }

   .gallery { /* Da galeria futura para mobile */
       margin-left: 2%;
       margin-right: 2%;
       display: flex;
       justify-content: center;
       flex-wrap: wrap;
   }

   .lightbox img { /* Da lightbox futura para mobile */
       margin: auto;
       display: block;
       margin-top: 35%;
       width: 90%;
       border-radius: 15px;
       border-style: outset;
       border-color: antiquewhite;
   }

   .row { /* Da galeria futura para mobile */
       margin-left: 0%;
       margin-right: 0%;
   }

   .modal { /* Da lightbox futura para mobile */
       display: flex;
       justify-content: center;
       width: 100%;
       height: 100%;
       background-color: #000;
   }

   .modal-content { /* Da lightbox futura para mobile */
       margin: 20px;
       max-width: 90%;
   }

   .close { /* Da lightbox futura para mobile */
       top: 5px;
       right: 5px;
       font-size: 50px;
   }

   .footer #footer-container {
       background-color: rgb(34, 34, 34);
   }

   h1 {
       margin-bottom: 5px;
       color: #585858;
       font-size: 25px;
       text-decoration: none;
   }

   h2 { /* Da galeria futura para mobile */
       font-weight: 1;
       margin: 0rem;
       font-size: 10px;
       color: rgb(0, 0, 0);
   }
}