@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;1,400&display=swap');

:root {
  --cor-primaria: #8b6f47;     /* marrom-dourado quente (o seu original, perfeito) */
  --cor-secundaria: #a5895e;
  --cor-fundo: #fdf8f2;        /* creme bem suave, quase pergaminho */
  --cor-texto: #4a3c2b;
  --cor-suave: #d4c4b0;
  --menu-bg: #8b6f47;
  --menu-hover: #a5895e;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  font-weight: 400;
  font-style: normal;
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  line-height: 1.85;
  display: flex;
  min-height: 100vh;
}

/* Itálico suave em citações, rodapé e frases finais */
blockquote, em, i, cite,
p[style*="italic"], footer { 
  font-style: italic; 
}

/* Títulos mais fortes, mas sem itálico */
h1, h2, h3, h4, h5, h6, #sidebar h2, .card h3 { 
  font-style: normal; 
  font-weight: 600; 
}

/* MENU LATERAL */
#sidebar {
  width: 320px;
  background: linear-gradient(to bottom, var(--menu-bg), #6b5433);
  color: white;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  padding: 32px 22px;
  box-shadow: 6px 0 25px rgba(0,0,0,0.12);
  z-index: 100;
  font-family: 'Lora', serif;
}

#sidebar h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 45px;
  color: #fff;
  text-shadow: 0 3px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.menu-item { margin: 10px 0; border-radius: 10px; overflow: hidden; cursor: pointer; }
.menu-item > div {
  padding: 16px 20px;
  font-size: 16.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.14);
  transition: all 0.35s;
}
.menu-item:hover > div { background: var(--menu-hover); transform: translateX(6px); }

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease;
  background: rgba(0,0,0,0.22);
}
.submenu a {
  display: block;
  padding: 15px 45px;
  color: #f0e6d2;
  text-decoration: none;
  font-size: 15px;
  font-style: italic;
  transition: all 0.3s;
}
.submenu a:hover {
  background: rgba(255,255,255,0.18);
  padding-left: 55px;
  color: white;
}

/* CONTEÚDO */
#main { margin-left: 320px; flex: 1; }

.hero {
  height: 100vh;
  background: linear-gradient(rgba(253,248,242,0.55), rgba(253,248,242,0.85)),
              url('assets/BannerTopoSite.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero h1 {
  font-size: 5.8rem;
  color: white;
  text-shadow: 0 5px 25px rgba(0,0,0,0.75);
  letter-spacing: 7px;
  font-weight: 600;
}

.content-area {
  padding: 90px 60px;
  max-width: 1060px;
  margin: 0 auto;
}

h2 {
  font-size: 3.1rem;
  color: var(--cor-primaria);
  margin-bottom: 2.2rem;
  text-align: center;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--cor-primaria);
  margin: 22px auto;
  border-radius: 3px;
}

p, li, blockquote {
  font-size: 1.28rem;
  margin-bottom: 1.6rem;
  text-align: justify;
  color: #5c4a38;
}

.card {
  background: white;
  padding: 44px;
  border-radius: 18px;
  box-shadow: 0 14px 50px rgba(139,111,71,0.18);
  margin: 45px 0;
  transition: all 0.4s ease;
}
.card:hover { 
  transform: translateY(-8px); 
  box-shadow: 0 20px 60px rgba(139,111,71,0.22);
}

/* RODAPÉ */
footer {
  color: var(--cor-primaria);
  text-align: center;
  padding: 80px 20px;
  margin-left: 320px;
  font-style: italic;
  font-size: 1.1rem;
}

/* RESPONSIVO */
@media (max-width: 992px) {
  #sidebar { width: 280px; }
  #main, footer { margin-left: 280px; }
  .hero h1 { font-size: 4.5rem; }
}
@media (max-width: 768px) {
  body { flex-direction: column; }
  #sidebar { width: 100%; height: auto; position: relative; padding: 25px; }
  #main, footer { margin-left: 0; }
  .hero h1 { font-size: 3.5rem; }
}

/* CELULAR — TEXTO MUITO CONFORTÁVEL */
@media (max-width: 768px) {
    .card {
        margin: 26px 18px !important;
        padding: 38px 32px !important;
        border-radius: 24px !important;
        font-size: 1.3rem !important;
        line-height: 2.05 !important;
        box-shadow: 0 12px 35px rgba(0,0,0,0.1) !important;
    }
    .card h3 { font-size: 1.7rem !important; margin-bottom: 28px !important; }
    h2 { font-size: 2.3rem !important; margin: 40px 24px 32px !important; }
    p[style*="text-align:center"][style*="italic"] {
        margin: 75px 30px 55px !important;
        font-size: 1.45rem !important;
        line-height: 2.15 !important;
    }
}
@media (max-width: 380px) {
    .card { margin: 22px 12px !important; padding: 32px 24px !important; }
    h2 { font-size: 2.1rem !important; }
}

/* BOTÕES FLUTUANTES DE FONTE */
#font-resizer {
    position: fixed;
    bottom: 24px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255,255,255,0.98);
    padding: 14px 10px;
    border-radius: 50px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.22);
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(139,111,71,0.3);
}
#font-resizer button {
    background: var(--cor-primaria);
    color: white;
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139,111,71,0.5);
    transition: all 0.3s ease;
}
#font-resizer button:active {
    transform: scale(0.88);
    background: #6b5433;
}
@media (min-width: 850px) {
    #font-resizer { display: none !important; }
}
footer a:hover {
  transform: translateY(-6px) scale(1.08);
}
footer a svg {
  transition: all 0.35s ease;
}