/* Tema personalizado Speco — adaptado para Guzzle Sphinx Theme (Bootstrap) */

:root {
  --speco-primary: #774040;
  --speco-secondary: #a26239;
  --speco-background: #f5f6f7;
  --speco-text: #333333;
  --speco-light: #ffffff;
  --speco-dark: #1c1e21;
  --speco-gray: #6c757d;
  --speco-border: #e0e0e0;
  --speco-shadow: rgba(0, 0, 0, 0.1);
  --speco-primary-rgba: rgba(119, 64, 64, 0.1);
  --speco-primary-rgba15: rgba(119, 64, 64, 0.15);
}

/* ===== Base ===== */

html {
  font-size: 100% !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--speco-text);
  background-color: var(--speco-background);
  font-size: 16px !important;
}

/* ===== Cabecalho personalizado Speco ===== */

.speco-header {
  background-color: var(--speco-light);
  border-bottom: 1px solid var(--speco-border);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--speco-shadow);
}

.speco-header-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.speco-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--speco-text);
  font-weight: bold;
  font-size: 1.5rem;
}

.speco-logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.speco-nav {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.speco-nav a {
  text-decoration: none;
  color: var(--speco-gray);
  font-weight: 500;
  transition: color 0.2s ease;
}

.speco-nav a:hover,
.speco-nav a.active {
  color: var(--speco-primary);
}

/* ===== Guzzle overrides: sidebar (#left-column / .sphinxsidebar) ===== */

#left-column {
  background: var(--speco-light);
  border-right: 1px solid var(--speco-border);
}

#left-column .sphinxsidebar {
  padding: 0 0.75rem;
}

#left-column .sidebar-block {
  margin-bottom: 1rem;
}

#left-column .sidebar-wrapper h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--speco-text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--speco-primary);
  margin-bottom: 0.75rem;
}

div.sphinxsidebar h3,
div.sphinxsidebar h4 {
  font-size: 1.1rem;
}

.sidebar-toc {
  font-size: 16px;
}

div.sphinxsidebar .sidebar-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

div.sphinxsidebar .sidebar-toc a {
  text-decoration: none;
  color: var(--speco-text);
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  line-height: 1.5;
  font-size: 1rem;
}

.sidebar-toc ul li a:hover {
  color: var(--speco-primary);
  background-color: var(--speco-primary-rgba);
  text-decoration: none;
}

.sidebar-toc ul li.current > a,
.sidebar-toc ul li.current > a:hover {
  color: var(--speco-primary);
  font-weight: 600;
  background-color: var(--speco-primary-rgba15);
  border-left: 3px solid var(--speco-primary);
}

.sidebar-toc ul li.toctree-l1 > a {
  font-weight: 500;
  padding: 0.6rem 0.75rem;
  font-size: 1.05rem;
}

.sidebar-toc ul li.toctree-l2 > a {
  font-weight: normal;
  padding: 0.4rem 0.75rem 0.4rem 1.25rem;
  font-size: 1rem;
}

.sidebar-toc ul li.toctree-l3 > a {
  font-weight: normal;
  padding: 0.3rem 0.75rem 0.3rem 1.75rem;
  font-size: 0.95rem;
  color: var(--speco-gray);
}

.sidebar-localtoc ul {
  font-size: 1rem;
}

.sidebar-localtoc a {
  font-size: 1rem;
}

/* ===== Guzzle overrides: search box ===== */

#left-column #main-search {
  margin-bottom: 1rem;
}

#left-column .form-inline .form-control {
  border: 1px solid var(--speco-border);
  border-radius: 4px;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  width: 100%;
}

#left-column .form-inline .form-control:focus {
  border-color: var(--speco-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(119, 64, 64, 0.2);
}

/* ===== Guzzle overrides: logo text ===== */

.text-logo {
  color: var(--speco-primary);
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
}

.text-logo:hover {
  color: var(--speco-secondary);
  text-decoration: none;
}

/* ===== Guzzle overrides: mobile toggle ===== */

#mobile-toggle {
  display: none;
  padding: 0.5rem;
}

#mobile-toggle a {
  color: var(--speco-primary);
  font-size: 1.2rem;
}

@media (max-width: 992px) {
  #mobile-toggle {
    display: block;
    float: none;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--speco-border);
    background: var(--speco-light);
  }

  #left-column {
    display: none;
    float: none;
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--speco-border);
  }
}

/* ===== Guzzle overrides: breadcrumbs ===== */

.breadcrumb {
  background: transparent;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  border-radius: 0;
}

.breadcrumb > li + li::before {
  content: "/";
  padding: 0 0.5rem;
  color: var(--speco-gray);
}

.breadcrumb li a {
  color: var(--speco-primary);
  text-decoration: none;
}

.breadcrumb li a:hover {
  text-decoration: underline;
}

.breadcrumb > .active,
.breadcrumb li:last-child {
  color: var(--speco-text);
  font-weight: 600;
}

/* ===== Guzzle overrides: main content (#right-column) ===== */

#right-column {
  background: var(--speco-light);
}

#right-column .document.clearer.body {
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
}

#right-column .body h1 {
  font-size: 2rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--speco-text);
  border-bottom: 3px solid var(--speco-primary);
  padding-bottom: 0.75rem;
  font-weight: 700;
}

#right-column .body h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: var(--speco-text);
  font-weight: 600;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--speco-border);
}

#right-column .body h3 {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--speco-text);
  font-weight: 600;
}

#right-column .body a {
  color: var(--speco-primary);
  text-decoration: none;
}

#right-column .body a:hover {
  text-decoration: underline;
}

/* ===== Guzzle overrides: container-wrapper ===== */

.container-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: transparent;
}

/* ===== Speco custom footer ===== */

.speco-footer {
  background-color: var(--speco-dark);
  color: var(--speco-light);
  padding: 1rem 0 0.75rem;
  margin-top: 0;
  font-size: 0.8rem;
  clear: both;
}

.speco-footer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.speco-footer-branding {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.speco-footer-logo {
  display: inline-block;
  text-decoration: none;
}

.speco-footer-logo-img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.speco-footer-logo-img:hover {
  opacity: 1;
}

.speco-footer-tagline {
  color: var(--speco-light-text);
  font-size: 0.75rem;
  margin: 0;
}

.speco-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.speco-footer-column h3 {
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--speco-light);
}

.speco-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.speco-footer-links li {
  margin-bottom: 0.15rem;
}

.speco-footer-links a {
  color: #adb5bd;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

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

.speco-footer-copyright {
  text-align: center;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #adb5bd;
  font-size: 0.75rem;
}

.speco-footer-copyright a {
  color: var(--speco-secondary);
  text-decoration: none;
}

.speco-footer-copyright a:hover {
  color: var(--speco-light);
  text-decoration: underline;
}

/* Hide Guzzle default footer in favor of Speco footer */
.footer {
  display: none;
}

/* ===== Footer full-width below sidebar ===== */

.speco-footer {
  clear: both;
  width: 100%;
}

/* ===== Hero / Landing page ===== */

.hero {
  background-color: var(--speco-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: white;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
  background: none;
}

.rotating-words {
  display: inline;
}

.rotating-word {
  display: none;
}

.rotating-word.active {
  display: inline;
  animation: wordFadeIn 0.5s ease forwards;
}

@keyframes wordFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Banner / Sections ===== */

.banner {
  background-color: #f8f9fa;
  padding: 2.5rem 1rem;
}

.section-heading {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--speco-text);
}

.values {
  padding: 1.5rem 0 0;
}

.values-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--speco-text);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.values-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
}

.feature-item h3 {
  margin-bottom: 0.75rem;
  color: var(--speco-primary);
}

/* ===== Feature Cards — estilo Docusaurus Speco ===== */

.features {
  padding: 1.5rem 0 4rem;
  background-color: var(--speco-background);
}

.features-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.features-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--speco-light);
  border-radius: 8px;
  padding: 1.75rem 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(119, 64, 64, 0.12);
}

.feature-card-icon {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--speco-primary);
}

.feature-card-icon img,
.feature-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card-body {
  flex: 1;
  min-width: 0;
}

.feature-card-body h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--speco-text);
  font-weight: 600;
}

.feature-card-detail {
  color: var(--speco-secondary);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0;
  display: none;
}

.feature-card.open .feature-card-detail {
  display: block;
  margin-top: 0.5rem;
}

.feature-toggle {
  background: none;
  border: none;
  color: var(--speco-primary);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.2rem;
  transition: color 0.15s ease, transform 0.2s ease;
}

.feature-toggle:hover {
  color: var(--speco-secondary);
}

.feature-card.open .feature-toggle {
  transform: rotate(45deg);
  color: var(--speco-secondary);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }
}


}

.feature-toggle {
  background: none;
  border: none;
  color: var(--speco-primary);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
  padding: 0 0.2rem;
  transition: color 0.15s ease, transform 0.2s ease;
}

.feature-toggle:hover {
  color: var(--speco-secondary);
}

.feature-card.open .feature-toggle {
  transform: rotate(45deg);
  color: var(--speco-secondary);
}

/* ===== Buttons ===== */

.btn {
  display: inline-block;
  background-color: var(--speco-primary);
  color: var(--speco-light) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: center;
  min-width: 120px;
  font-size: 1rem;
  line-height: 1.5;
}

.btn:hover,
.btn:focus {
  background-color: var(--speco-secondary);
  color: var(--speco-light) !important;
  text-decoration: none !important;
}

.btn-secondary {
  background-color: var(--speco-gray);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #5a6268;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--speco-light);
  color: var(--speco-light) !important;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--speco-light);
  color: var(--speco-primary) !important;
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--speco-primary);
  color: var(--speco-light) !important;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

/* Guzzle btn-default override */
.btn-default {
  background-color: var(--speco-primary);
  color: var(--speco-light);
  border-color: var(--speco-primary);
}

.btn-default:hover,
.btn-default:focus {
  background-color: var(--speco-secondary);
  border-color: var(--speco-secondary);
  color: var(--speco-light);
}

/* ===== Table of contents (inline in doc pages) ===== */

.table-of-contents {
  background: var(--speco-light);
  border-left: 3px solid var(--speco-primary);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--speco-text);
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  text-decoration: none;
  color: var(--speco-gray);
  transition: color 0.2s ease;
}

.toc-link:hover {
  color: var(--speco-primary);
}

/* ===== Toctree wrapper (in-page) ===== */

.toctree-wrapper {
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.toctree-wrapper .caption {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--speco-text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--speco-primary);
}

.toctree-wrapper ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toctree-wrapper li {
  margin-bottom: 0.5rem;
}

.toctree-wrapper a {
  text-decoration: none;
  color: var(--speco-gray);
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.4;
}

.toctree-wrapper a:hover {
  color: var(--speco-primary);
  background-color: var(--speco-primary-rgba);
}

.toctree-wrapper a.current {
  color: var(--speco-primary);
  font-weight: 600;
  background-color: var(--speco-primary-rgba15);
  border-left: 3px solid var(--speco-primary);
}

/* ===== Code highlighting ===== */

.highlight {
  background-color: #f8f9fa;
  border-radius: 4px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
}

.highlight pre {
  margin: 0;
}

/* ===== Tables ===== */

table.docutils,
table.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

table.docutils th,
table.docutils td,
table.table th,
table.table td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid var(--speco-border);
}

table.docutils th,
table.table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* ===== Admonitions ===== */

.admonition {
  border-left: 4px solid var(--speco-primary);
  background-color: #f8f9fa;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.admonition-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--speco-text);
}

/* ===== Relations (prev/next) ===== */

.footer-relations {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--speco-border);
  position: relative;
  z-index: 5;
  background: transparent;
}

.footer-relations .btn-default {
  background-image: none;
  background-color: var(--speco-primary);
  color: var(--speco-light);
  border-color: var(--speco-primary);
}

.footer-relations .btn-default:hover {
  background-image: none;
  background-color: var(--speco-secondary);
}

/* ===== Search page ===== */

#search-results h2 {
  margin-bottom: 1rem;
}

/* ===== No-sidebar for index page ===== */

.no-sidebar #left-column {
  display: none !important;
}

.no-sidebar #right-column {
  width: 100% !important;
}

/* ===== Responsive ===== */

@media (max-width: 992px) {
  .speco-header-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .speco-nav {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  #right-column .body h1 {
    font-size: 1.5rem;
  }

  #right-column .body h2 {
    font-size: 1.3rem;
  }

  table.docutils {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons-right {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-top-btn {
    top: 0.75rem;
    left: 0.75rem;
    width: 34px;
    height: 34px;
  }

  .speco-footer-grid {
    grid-template-columns: 1fr;
    font-size: 0.8rem;
  }
}

/* ===== Extensões do tema Speco — Assets e paleta expandida ===== */

:root {
  --speco-green: #25c2a0;
  --speco-green-dark: #1a8870;
  --speco-success: #28a745;
  --speco-warning: #ffc107;
  --speco-error: #dc3545;
  --speco-info: #17a2b8;
  --speco-plant: #4caf50;
  --speco-leaf: #388e3c;
  --speco-earth: #795548;
  --speco-grain: #fbc02d;
  --speco-sky: #87ceeb;
  --speco-light-text: #adb5bd;
  --speco-gradient-primary: linear-gradient(135deg, #774040 0%, #a26239 100%);
  --speco-gradient-green: linear-gradient(135deg, #25c2a0 0%, #1a8870 100%);
  --speco-gradient-nature: linear-gradient(135deg, #4caf50 0%, #25c2a0 50%, #17a2b8 100%);
  --speco-gradient-earth: linear-gradient(135deg, #795548 0%, #a26239 50%, #fbc02d 100%);
  --speco-gradient-header: linear-gradient(180deg, #ffffff 0%, #f9f5f3 100%);
}

/* ===== Hero — fundo com ilustração e overlay verde ===== */

.hero {
  background: var(--speco-gradient-primary);
  background-image: url("../images/banner.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  padding: 5rem 0 3rem;
  min-height: 480px;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(119, 64, 64, 0.92) 0%, rgba(37, 194, 160, 0.85) 50%, rgba(26, 136, 112, 0.9) 100%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  background: none;
  border: none;
}

.hero-title,
.hero-title *,
.hero-subtitle,
.hero-subtitle * {
  background: none !important;
  border: none;
}

/* ===== Header — gradiente sutil ===== */

.hero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-buttons-right {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: center;
}

.hero-top-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.hero-top-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  animation: bounceDown 2s infinite;
}

.hero-scroll:hover {
  color: white;
  text-decoration: none;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* ===== Header — gradiente sutil ===== */

.speco-header {
  background: var(--speco-gradient-header);
  border-bottom: 2px solid var(--speco-primary);
}

/* ===== Banner — layout duas colunas ===== */

.banner-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.banner-layout .banner-text {
  flex: 1;
  text-align: left;
}

.banner-layout .banner-text .section-heading {
  text-align: left;
  margin-bottom: 1rem;
}

.banner-layout .banner-image {
  flex: 0 0 280px;
  max-width: 280px;
}

.banner-layout .banner-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px var(--speco-shadow);
}

@media (max-width: 768px) {
  .banner-layout {
    flex-direction: column;
  }
  .banner-layout .banner-text {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .banner-layout .banner-image {
    flex: 0 0 auto;
    max-width: 300px;
  }
}

/* ===== Valores — ilustrações decorativas ===== */

.value-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  display: block;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.feature-card--primary { border-top: 3px solid var(--speco-primary); }
.feature-card--secondary { border-top: 3px solid var(--speco-secondary); }
.feature-card--green { border-top: 3px solid var(--speco-green); }
.feature-card--gold { border-top: 3px solid var(--speco-grain); }
.feature-card--earth { border-top: 3px solid var(--speco-earth); }
.feature-card--plant { border-top: 3px solid var(--speco-plant); }

/* ===== Sidebar — cor ativa verde ===== */

.sidebar-toc ul li.current > a,
.sidebar-toc ul li.current > a:hover {
  color: var(--speco-green-dark) !important;
  border-left-color: var(--speco-green-dark);
}

/* ===== No-sidebar layout for index page ===== */

.main-container.no-sidebar {
  grid-template-columns: 1fr;
  max-width: 1200px;
}
.main-container.no-sidebar .content {
  max-width: 100%;
}
.related[role="navigation"] {
  display: none;
}