/*Theme Name: Rodrigo Sarmento
Author: Rodrigo Sarmento
Description: Uma loja virtual criada para vender livros de minha autoria
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* Reset básico para maior uniformidade entre navegadores */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background-color: #f9fbfd;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem; /* padding horizontal reduzido para telas pequenas */
}

/* Paleta de cores como variáveis para facilitar manutenção */
:root {
  --color-primary: #37dd7c;
  --color-primary-dark: #1e7743;
  --color-bg-light: #dff9fb;
  --color-bg-muted: #ecf0f1;
  --color-text-primary: #0c2461;
  --color-text-secondary: #1e3799;
  --color-text-body: #34495e;
  --color-border: #c8f4f6;
}

/* Imagens */
.img-livro {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.img {
  text-align: center;
}

/* Header */
header {
  margin-top: 0;
  background-color: var(--color-bg-light);
  text-align: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--color-border);
}

/* Responsividade header */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
}

/* Textos no header */
h1 {
  font-size: 2.5rem;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.subtitulo {
  font-size: 1.2rem;
  margin: 1rem 0;
  color: var(--color-text-secondary);
  text-align: center;
}

/* Botão */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  outline-offset: 3px;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-primary-dark);
  box-shadow: 0 0 8px rgba(10, 61, 98, 0.7);
  outline: none;
}

/* Para acessibilidade: foco visível */
.btn:focus-visible {
  outline: 3px solid var(--color-primary-dark);
}

/* Container de imagem do livro */
.img-livro-propaganda {
  padding: 0;
  text-align: center;
}

/* Entrega */
.entrega {
  color: var(--color-text-primary);
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

/* Seções */
section {
  padding: 3rem 0;
}

section h2 {
  font-size: 1.8rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Responsividade dos títulos */
@media (max-width: 768px) {
  section h2 {
    font-size: 1.3rem;
  }
}

/* Textos do corpo */
section p,
section li,
blockquote {
  color: var(--color-text-body);
  line-height: 1.5;
  margin-bottom: 1rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.5rem 0;
}

/* Blockquote estilizado */
blockquote {
  background-color: var(--color-bg-muted);
  border-left: 5px solid var(--color-text-secondary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-body);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

blockquote:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Video responsivo */
.video-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Grid flexível para destaques */
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.box {
  flex: 1 1 280px;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  background-color: white;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.box:hover,
.box:focus-within {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* FAQ */
.faq .pergunta {
  margin-bottom: 1.5rem;
}

.faq h4 {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

/* Rodapé */
footer {
  background-color: var(--color-bg-muted);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #777;
}

.img-copy {
  width: 35px;
  height: 35px;
  margin-right: 10px;
}

.p-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Seletor de idioma */
div[style*="position: fixed"] a img {
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

div[style*="position: fixed"] a img:hover,
div[style*="position: fixed"] a img:focus-visible {
  border-color: var(--color-primary);
  outline: none;
}

/* Responsividade geral */
@media (max-width: 768px) {
  
  section {
    padding: 1.5rem 0; /* era 3rem, agora reduzido pela metade */
  }
  .subtitulo {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .btn {
    padding: 0.65rem 1.2rem;
    font-size: 1rem;
  }

  .box {
    flex: 1 1 100%;
  }

  .container {
    padding: 1.5rem 1rem;
  }
.img-sobre {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
}



  h1 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
  }
    
.sobre-dividido {
    flex-direction: column;
    padding: 0;
  }

  .imagem-lateral,
  .texto-lateral {
    flex: 1 1 100%;
    padding: 0;
  }

  .imagem-lateral img {
    width: 80%;
    max-width: 100%;
  }

}

/* Responsividade celular */
@media (max-width: 500px) {
  section {
    padding: 1.5rem 0; /* era 3rem, agora reduzido pela metade */
  }

  h1 {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
  } 
  .sobre-dividido {
    flex-direction: column;
    padding: 0;
  }

  .imagem-lateral,
  .texto-lateral {
    flex: 1 1 100%;
    padding: 0;
  }

  .imagem-lateral img {
    width: 100%;
    max-width: 100%;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* garante espaço lateral em telas pequenas */
  box-sizing: border-box;
}

.sobre-dividido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.texto-lateral {
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 1.6;
  box-sizing: border-box;
}

.imagem-lateral {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.imagem-lateral img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.conteudo-aprendizado {
  display: flex;
  gap: 40px; /* espaço entre imagem e texto */
  align-items: flex-start;
  margin-top: 30px;
}

.imagem-aprendizado img {
  width: 250px; /* ajuste conforme necessário */
  height: auto;
  object-fit: contain;
}

.itens-aprendizado {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  section {
    padding: 1rem 0; /* reduz ainda mais o padding vertical */
  }

  .sobre-dividido {
    margin-bottom: 20px; /* reduz o espaçamento extra entre seções */
  }

  .box {
    margin-bottom: 1rem; /* evita que boxes criem espaços extras */
  }

  blockquote {
    margin: 1rem 0; /* diminui o espaço antes/depois dos depoimentos */
  }

  .container {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
