/*
Theme Name: Guia da História
Theme URI: https://drqohuzq.manus.space
Description: Um tema WordPress para o site Guia da História, com design inspirado em elementos históricos e bússolas antigas.
Author: Manus
Author URI: https://manus.space
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guia-historia
Tags: história, educação, responsivo, vintage, bússola
*/

/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=PT+Sans&display=swap');

:root {
  --primary-color: #8B4513;
  --secondary-color: #D2B48C;
  --accent-color: #DAA520;
  --background-color: #FFF8E7;
  --text-color: #3A2921;
  --light-text: #6B5A50;
  --border-color: #D2B48C;
  --card-bg: #FFF;
  --header-bg: rgba(255, 248, 231, 0.95);
  --footer-bg: #3A2921;
  --footer-text: #FFF8E7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;

  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

button {
  cursor: pointer;
  font-family: 'Source Sans Pro', sans-serif;
}

ul {
  list-style: none;
}



/* Layout principal */
.main-container{padding: 1rem;}
.site-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Cabeçalho */
.header {
  background-color: var(--header-bg);
  padding: 1rem 5%;
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid var(--border-color);
}

.logo-container {
  margin-bottom: 1rem;
}

.site-logo {
  height: 75px;
  width: auto;
}

/*menu*/

.header .logo img {
  width: 100%;
}
.header .navbar li {
  list-style: none;
  display: inline-block;
}
.header .navbar a {
  font-size: 2rem;
  color: #631212;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.header .navbar a:hover {
  color: #222;
  background-color: rgb(252, 193, 1);
}
.header .icons div {
  font-size: 2.5rem;
  margin-left: 1.7rem;
  cursor: pointer;
  color: var(--text-color);
}
.header .icons div:hover {
  color: var(--light-color);
}

#menu-btn {
  display: none;
}
/*fim menu*/
.main-navigation ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.main-navigation li a {
  font-size: 1rem;
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}

.main-navigation li a:hover {
  color: var(--primary-color);
}

.main-navigation li.current-menu-item a {
  color: var(--primary-color);
  font-weight: 600;
}

.main-navigation li.current-menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.header .search-form {
  position: absolute;
  top: -115%;
  right: 2rem;
  width: 100rem;
  border-radius: 0.5rem;
  border: 1px solid #d3ced2;
  display: flex;
  align-items: center;
  height: 6.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  background: #fff;
}
.header .search-form.active {
  top: 115%;
}
.header .search-form input {
  height: 100%;
  width: 100%;
  padding: 0 1.2rem;
  font-size: 2.6rem;
  color: #222;
  text-transform: none;
}

.header .search-form label {
  font-size: 2.5rem;
  margin-right: 1.7rem;
  cursor: pointer;
  color: #666;
}
.header .search-form label:hover {
  color: rgb(252, 193, 1);
}


/* Conteúdo principal */
.site-content {
  flex: 1;
  padding: 2rem 5%;
}

/* Seção Hero */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--accent-color);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.cta-primary, .cta-secondary {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

.cta-primary:hover {
  background-color: #7A3B10;
  transform: translateY(-2px);
}

.cta-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cta-secondary:hover {
  background-color: rgba(139, 69, 19, 0.1);
  transform: translateY(-2px);
}

/* Cards */
.featured-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--accent-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--light-text);
}

/* Seções de conteúdo */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.content-section h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.content-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--accent-color);
}

.content-section p {
  margin-bottom: 1rem;
}
.content p{
  font-family: Georgia, Times, "Times New Roman", serif;
    font-size: 1.7rem;
    line-height: 1.9375rem;
    letter-spacing: normal;
}

/* Rodapé */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 5% 1rem;
  margin-top: 3rem;
  border-top: 5px solid var(--accent-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 80px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(1.2);
}

.site-footer h4 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--footer-text);
  text-align: left;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-newsletter p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-family: 'Source Sans Pro', sans-serif;
}

.newsletter-form button {
  background-color: var(--accent-color);
  color: var(--footer-bg);
  border: none;
  padding: 0 1rem;
  border-radius: 0 4px 4px 0;
  font-weight: 600;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #C69214;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 248, 231, 0.2);
  font-size: 0.9rem;
}

/* WordPress Classes */
.alignleft {
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
}

.alignright {
  float: right;
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  margin-bottom: 1.5em;
  max-width: 100%;
}

.wp-caption img {
  display: block;
  margin: 0 auto;
}

.wp-caption-text {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
  padding: 0.5em;
}

.gallery {
  margin-bottom: 1.5em;
}

.gallery-item {
  display: inline-block;
  text-align: center;
  vertical-align: top;
  width: 100%;
  padding: 0.5em;
}

.gallery-columns-2 .gallery-item {
  max-width: 50%;
}

.gallery-columns-3 .gallery-item {
  max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
  max-width: 25%;
}

.gallery-columns-5 .gallery-item {
  max-width: 20%;
}

.gallery-columns-6 .gallery-item {
  max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
  max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
  max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
  max-width: 11.11%;
}

/* Responsividade */
@media (max-width: 768px) {
  #menu-btn {
    display: inline-block;
  }
  #menu-btn.fa-times {
    transform: rotate(180deg);
  }
  .header {
    padding: 0.5rem 2rem;
  }
  .header .logo {
    width: 120px;
  }
  .header .search-form {
    width: 100%;
    right: 0;
    border-radius: 0;
  }
  .header .search-form.active {
    top: 99%;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.1);
  }
  .header .navbar {
    position: absolute;
    top: 99%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.1);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
            clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  .header .navbar.active {
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
  .header .navbar a {
    margin: 1.5rem;
    padding: 1.5rem;
    background: #f3f3f3;
    font-size: 2rem;
    color: #222;
    display: block;
    border-radius: 0.5rem;
  }
  .home {
    padding-top: 7rem;
  }
  .header .search-form {
    width: 100%;
    right: 0;
    border-radius: 0;
  }
  .header .search-form.active {
    top: 99%;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
    border-bottom: 0.1rem solid rgba(0, 0, 0, 0.1);
  }
  .slides-container .slide {
    display: flex;
    align-items: center;
  }
  .slides-container .slide .content {
    max-width: 50% !important;
  }
  .slides-container .slide .content span {
    font-size: 2rem;
  }
  .slides-container .slide .content h3 {
    font-size: 4rem;
    padding: 0.5rem 0;
  }
  .slides-container .slide .image {
    max-width: 45% !important;
  }
  .single-post {
    margin-top: 64px;
  }
}
@media (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 250px;
    margin: 2rem auto 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-links ul {
    align-items: center;
  }
  
  .newsletter-form {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Efeitos decorativos inspirados no pergaminho e bússola */
.hero-content::before,
.hero-content::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.content-section {
  position: relative;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238B4513'%3E%3Cpath d='M12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2Z'/%3E%3C/svg%3E");
  background-size: contain;
  opacity: 0.1;
}
