body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f6f8;
  color: #222;
}

header {
  background: #1f4e79;
  color: white;
  padding: 24px;
  text-align: center;
}

nav {
  background: #163a5a;
  padding: 12px;
  text-align: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 12px;
  font-weight: bold;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    padding: 10px 12px;
    gap: 8px;
  }

  nav a {
    flex: 0 0 auto;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
  }
}

main {
  max-width: 1000px;
  margin: 24px auto;
  padding: 0 16px;
}

section {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

h2 {
  color: #1f4e79;
  margin-top: 0;
}

ul {
  line-height: 1.8;
}

.subtitulo{
  display:block;
  font-size:0.75em;
  color:#665;
  margin-top:2px;
  font-style: italic;
}

.card{
  background:#f4f6f8;
  padding:12px;
  margin:8px 0;
  border-left:5px solid #2c3e50;
  border-radius:6px;
}

.subcard{
  background:#fafafa;
  padding:10px;
  margin:6px 0 6px 25px;
  border-left:4px solid #6c8ebf;
  border-radius:6px;
  font-size:0.95em;
  font-style: italic;
}

footer {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

.grid-disciplinas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.disciplina-link {
  display: block;
  background: white;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #222;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.disciplina-link:hover {
  transform: translateY(-3px);
}

.galeria-capas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
  justify-content: center;
}

.capa-card {
  max-width: 320px;
  text-align: center;
}

.capa-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.capa-card img:hover {
  transform: scale(1.02);
}

.capa-card h3 {
  margin-top: 15px;
  margin-bottom: 8px;
}

.capa-card p {
  font-size: 0.95rem;
  color: #555;
}
