/* --- Site público --- */
:root {
  --site-primary: #1565c0;
  --site-primary-dark: #0d47a1;
  --site-bg: #f5f9ff;
  --site-text: #16324f;
  --site-muted: #5f738c;
  --site-border: rgba(21, 101, 192, 0.14);
  --site-shadow: 0 12px 30px rgba(13, 71, 161, 0.12);
  --site-content-width: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--site-text);
  background: var(--site-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-navbar .container,
.footer-top .container,
.footer-bottom .container {
  width: var(--site-content-width);
  margin: 0 auto;
}

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-navbar.scrolled {
  box-shadow: 0 14px 30px rgba(13, 71, 161, 0.24);
}

.site-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.site-brand {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-menu a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.site-menu-cta {
  background: #fff;
  color: var(--site-primary-dark) !important;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.site-menu-cta:hover {
  background: #eaf3ff !important;
}

main {
  display: block;
}

.hero,
.blog-home,
main > section {
  width: var(--site-content-width);
  margin: 2rem auto;
}

.hero,
.blog-home,
main > section:not(.banners-slider-full) {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  box-shadow: var(--site-shadow);
  padding: 2rem;
}

.home-page {
  --home-navbar-offset: 76px;
}

.content-page-header {
  margin-bottom: 1.5rem;
}

.content-page-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--site-primary);
}

.content-page-tagline {
  margin: 0;
  color: var(--site-muted);
}

.content-page-body {
  line-height: 1.7;
}

.content-page-body h1,
.content-page-body h2,
.content-page-body h3 {
  color: var(--site-primary-dark);
}

.content-page {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.content-page .admin-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.content-page-body .content-columns {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.content-page-body .content-columns.columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-page-body .content-columns.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-page-body .content-columns > div {
  background: linear-gradient(180deg, #ffffff, var(--site-bg));
  border: 1px solid var(--site-border);
  border-radius: 14px;
  padding: 0.85rem;
}

.banners-slider-full {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.home-page .site-navbar {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  box-shadow: none;
}

.home-page .site-navbar.scrolled {
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(10px);
}

.home-page.home-navbar-fixed .site-navbar {
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
  box-shadow: var(--site-shadow);
  backdrop-filter: none;
}

.home-page.home-navbar-fixed .site-navbar.scrolled {
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(10px);
}

.home-page .site-navbar.site-navbar-home-fixed-mode {
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-primary));
  box-shadow: var(--site-shadow);
  backdrop-filter: none;
}

.home-page .banners-slider-full {
  width: 100%;
  margin: var(--home-navbar-offset) 0 0;
  padding-top: 0 !important;
  margin-bottom: 0;
}

.home-page .banner-slider-full {
  border-radius: 0;
}

.home-page .home-content {
  width: var(--site-content-width);
  margin: 0 auto;
}

.home-page .home-content > section {
  width: 100%;
}

.home-page .hero,
.home-page .blog-home {
  margin: 2rem 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.home-page .funcoes-lista,
.home-page .blog-lista {
  gap: 0.85rem;
}

.home-page .services-grid-static {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-page .services-carousel {
  --services-gap: 1rem;
  --services-per-view: 3;
  position: relative;
}

.home-page .services-viewport {
  overflow: hidden;
}

.home-page .services-track {
  display: flex;
  gap: var(--services-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.home-page .blog-lista {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-page .funcao-item,
.home-page .blog-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--site-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 0.75rem;
}

.home-page .services-track .service-card {
  flex: 0 0 calc((100% - (var(--services-gap) * (var(--services-per-view) - 1))) / var(--services-per-view));
}

.home-page .service-card {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.08);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-page .service-card .service-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: #eef4fc;
}

.home-page .service-card h3 {
  margin: 0 0 0.4rem;
  color: var(--site-primary-dark);
}

.home-page .service-card p {
  margin: 0;
}

.home-page .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 192, 0.42);
  box-shadow: 0 16px 30px rgba(13, 71, 161, 0.16);
}

.home-page .services-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--site-primary-dark);
  font-size: 1.2rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(13, 71, 161, 0.15);
  z-index: 2;
}

.home-page .services-arrow.left {
  left: -12px;
}

.home-page .services-arrow.right {
  right: -12px;
}

.home-page .blog-data {
  display: inline-block;
  margin-top: 0.2rem;
}

.home-page .blog-item {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 0.8rem;
}

.home-page .blog-item .blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.hero-intro {
  margin-bottom: 2rem;
}

.home-page .banner-text-full {
  display: none !important;
}

.home-page .banner-slide-full .banner-caption-full {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  max-width: none !important;
  transform: none !important;
}

.banner-slider-full {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--site-shadow);
  background: linear-gradient(135deg, var(--site-primary), var(--site-bg));
}

.banner-slide-full {
  position: relative;
  background: #fff;
}

.banner-img-full {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  background: transparent;
}

.banner-caption-full {
  padding: 1.25rem 1.5rem 1.35rem;
  background: #fff;
  border-top: 1px solid var(--site-border);
}

.banner-caption-full h2 {
  margin: 0;
  color: var(--site-primary-dark);
}

.banner-caption-full p {
  margin: 0.55rem 0 0;
  color: var(--site-muted);
}

.banner-caption-full h2,
.hero h2,
.blog-home h2 {
  margin-top: 0;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-primary-dark);
  font-size: 1.4rem;
  cursor: pointer;
}

.banner-arrow.left {
  left: 1rem;
}

.banner-arrow.right {
  right: 1rem;
}

.banner-indicators {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}

.banner-indicator {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #9aa4b2;
  background: #c8cfd8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.banner-indicator.active {
  background: #6b7280;
  transform: scale(1.2);
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.25);
}

.funcoes-lista,
.blog-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.funcao-item,
.blog-item {
  padding: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, var(--site-bg));
  border: 1px solid var(--site-border);
}

.blog-item .blog-image,
.content-blog-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.7rem;
  background: #eef4fc;
}

.content-blog-banner-item .content-blog-image {
  height: 260px;
}

.blog-data {
  color: var(--site-muted);
  font-size: 0.92rem;
}

.content-blog-section {
  margin-top: 1.35rem;
}

.content-blog-banner {
  margin-top: 1.15rem;
}

.content-blog-banner h2 {
  margin-top: 0;
}

.content-blog-carousel {
  position: relative;
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.content-blog-banner-viewport {
  overflow: hidden;
}

.content-blog-banner-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.content-blog-banner-item {
  flex: 0 0 100%;
  background: #fff;
  overflow: hidden;
  min-width: 0;
}

.content-blog-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--site-primary-dark);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
}

.content-blog-arrow.left {
  left: 0.55rem;
}

.content-blog-arrow.right {
  right: 0.55rem;
}

.content-blog-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem 0.8rem;
  border-top: 1px solid var(--site-border);
  background: #fff;
}

.content-blog-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #9aa4b2;
  background: #c8cfd8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-blog-dot.active {
  background: #6b7280;
  transform: scale(1.18);
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}

.content-blog-section h2 {
  margin-top: 0;
}

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

.content-blog-item {
  border: 1px solid var(--site-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.content-blog-body {
  padding: 0.8rem 0.9rem 0.95rem;
}

.content-blog-body h3 {
  margin: 0 0 0.4rem;
  color: var(--site-primary-dark);
}

.content-blog-body p {
  margin: 0 0 0.45rem;
}

.content-read-link {
  color: var(--site-primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.content-read-link:hover {
  text-decoration: underline;
}

.blog-post-view {
  max-width: 900px;
  margin: 0 auto;
}

.blog-post-view h1 {
  margin-top: 0;
}

.blog-post-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--site-border);
  margin: 0.8rem 0 1rem;
}

.blog-post-text {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.admin-form select,
.admin-form input[type="email"] {
  padding: 0.6rem 1rem;
  border: 1px solid #bbdefb;
  border-radius: 5px;
  font-size: 1rem;
  background: #f6faff;
}

.footer-top {
  margin-top: 3rem;
  padding: 2.5rem 0;
  background: #0f2742;
  color: #e8f1ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-top ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-top li + li {
  margin-top: 0.5rem;
}

.footer-bottom {
  background: #09182a;
  color: #d7e7ff;
  padding: 1rem 0;
}

.social-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links img {
  width: 22px;
  height: 22px;
}

@media (max-width: 900px) {
  .home-page .services-grid-static {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .services-arrow.left {
    left: -8px;
  }

  .home-page .services-arrow.right {
    right: -8px;
  }

  .home-page .blog-lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-menu {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-menu li {
    width: calc(50% - 0.2rem);
  }

  .site-menu a {
    width: 100%;
  }

  .banner-img-full {
    max-height: none;
  }

  .banner-caption-full {
    padding: 1rem;
  }

  .banner-indicators {
    bottom: 82px;
  }

  .social-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-page-body .content-columns.columns-2,
  .content-page-body .content-columns.columns-3 {
    grid-template-columns: 1fr;
  }

  .home-page .blog-lista {
    grid-template-columns: 1fr;
  }

  .home-page .services-grid-static {
    grid-template-columns: 1fr;
  }

  .content-blog-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }

  .home-page .services-arrow {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
}

.admin-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
/* --- Melhorias visuais para cards e formulários do admin --- */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-form input[type="file"],
.admin-form textarea {
  padding: 0.6rem 1rem;
  border: 1px solid #bbdefb;
  border-radius: 5px;
  font-size: 1rem;
  background: #f6faff;
  transition: border 0.2s;
}
.admin-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
  
}
.admin-form input[type="text"]:focus,
.admin-form input[type="date"]:focus,
.admin-form textarea:focus {
  border: 1.5px solid #1976d2;
  outline: none;
}
.admin-form button {
  background: #1976d2;
  color: #fff;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
  align-self: flex-end;
}
.admin-form button:hover {
  background: #1565c0;
}
.admin-card ul {
  margin: 1rem 0 0 0;
  padding: 0;
  list-style: none;
}
.admin-card li {
  margin-bottom: 0.7rem;
  background: #f6faff;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  box-shadow: 0 1px 4px #1976d21a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-card li form {
  display: inline;
  margin: 0;
}
.admin-card li img {
  max-width: 120px;
  max-height: 50px;
  border-radius: 4px;
  margin-left: 1rem;
  box-shadow: 0 1px 4px #1976d21a;
}
.admin-card li strong {
  color: #1976d2;
}
.admin-card li button {
  background: #e53935;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
  margin-left: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.admin-card li button:hover {
  background: #b71c1c;
}
.admin-card label {
  font-weight: 500;
  color: #1976d2;
  margin-bottom: 0.2rem;
}
.admin-card h2 {
  margin-top: 0;
  color: #1976d2;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .admin-cards-grid {
    flex-direction: column;
    gap: 1.2rem;
  }
  .admin-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
/* Admin cards grid para edição home */
.admin-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}
.admin-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #1976d21a;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  width: 100%;
  min-width: 0;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 3px solid rgb(17, 0, 255) !important; /* TESTE: borda vermelha temporária para debug visual */
}
.admin-card h2 {
  margin-top: 0;
  color: #1976d2;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.admin-card ul {
  margin: 1rem 0 0 0;
  padding: 0;
  list-style: none;
}
.admin-card li {
  margin-bottom: 0.7rem;
  background: #f6faff;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  box-shadow: 0 1px 4px #1976d21a;
}
/* --- Painel Administrativo --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #f6faff;
}
.admin-sidebar {
  width: 220px;
  background: #1976d2;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 0;
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
}
.sidebar-logo {
  font-size: 1.6rem;
  font-weight: bold;
  padding: 1.5rem 1rem 1rem 1.5rem;
  letter-spacing: 1px;
  color: #fff;
  border-bottom: 1px solid #1565c0;
}
.sidebar-menu {
  list-style: none;
  padding: 0 0 1rem 0;
  margin: 0;
  flex: 1 1 auto;
}
.sidebar-menu li {
  border-bottom: 1px solid #1565c0;
}
.sidebar-menu .sidebar-section-title {
  border-bottom: 0;
  margin-top: 0.65rem;
  padding: 0.2rem 0.65rem 0.1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.sidebar-section-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.35rem 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 8px;
}
.sidebar-section-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.95);
}
.sidebar-section-caret {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.84);
}
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background 0.2s;
}
.sidebar-menu a:hover {
  background: #1565c0;
}
.sidebar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 0.38rem;
}
.menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.menu-label {
  min-width: 0;
}
.admin-main {
  margin-left: 220px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: calc(100vw - 220px);
}
.admin-header {
  background: #2196f3;
  color: #fff;
  padding: 0.5rem 2rem 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  min-height: 48px;
  box-shadow: 0 2px 8px #1976d21a;
}
.admin-header-right {
  font-size: 1rem;
}
.admin-content-wrapper {
  flex: 1 1 auto;
  background: #fff;
  padding: 24px 24px 0 24px;
  overflow: auto;
  min-height: 400px;
}
.admin-iframe {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border: none;
  background: #fff;
  display: block;
  border-radius: 10px;
  box-shadow: 0 2px 12px #1976d21a;
}
.admin-footer {
  background: #1976d2;
  color: #fff;
  text-align: center;
  padding: 0.8rem 0;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: auto;
}
@media (max-width: 900px) {
  .admin-sidebar {
    width: 60px;
    min-width: 60px;
  }
  .sidebar-logo {
    font-size: 1.1rem;
    padding: 1rem 0.5rem;
    text-align: center;
  }
  .sidebar-menu a {
    padding: 0.7rem 0.35rem;
    font-size: 0.82rem;
    line-height: 1.15;
    text-align: center;
  }
  .admin-main {
    margin-left: 60px;
    width: calc(100vw - 60px);
  }
}
/* Espaçamento extra para o blog na home */
.blog-padding {
  box-sizing: border-box;
}
.store-highlight,
.promotion-strip {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 24px;
  box-shadow: var(--site-shadow);
  padding: 2rem;
  margin-top: 2rem;
}

.store-highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.store-kpis {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--site-muted);
}

.product-grid,
.promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.product-card,
.promotion-card {
  background: linear-gradient(180deg, #ffffff, var(--site-bg));
  border: 1px solid var(--site-border);
  border-radius: 20px;
  overflow: hidden;
}

.product-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.product-card-body,
.promotion-card {
  padding: 1.2rem;
}

.product-category {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--site-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-card p {
  margin-top: 0;
}

.admin-form small {
  color: #5f738c;
}

.product-buy-form {
  margin-top: 1rem;
}

.product-buy-form .site-menu-cta {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.admin-dashboard {
  padding: 1.5rem;
  background: #f7faff;
  min-height: 100%;
}

.admin-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: stretch;
  background: linear-gradient(135deg, #0f5fb8, #2d8cff);
  color: #fff;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 95, 184, 0.18);
  margin-bottom: 1.5rem;
}

.admin-hero-card h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 2rem;
}

.admin-muted {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
}

.admin-hero-badge {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.admin-hero-badge span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.admin-hero-badge strong {
  font-size: 1.15rem;
}

.admin-hero-badge small {
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 14px 30px rgba(18, 66, 120, 0.08);
  border: 1px solid rgba(17, 92, 170, 0.08);
}

.admin-stat-card span {
  display: block;
  color: #5c708c;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
}

.admin-stat-card strong {
  display: block;
  font-size: 1.65rem;
  color: #0b2f57;
}

.admin-stat-card small {
  display: block;
  margin-top: 0.45rem;
  color: #6d7f96;
}

.admin-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.admin-list-kpi {
  display: grid;
  gap: 0.85rem;
}

.admin-list-kpi div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8eef6;
}

.admin-list-kpi div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-list-kpi span {
  color: #5e7188;
}

.admin-list-kpi strong {
  color: #0b2f57;
}

.admin-shortcuts {
  display: grid;
  gap: 0.75rem;
}

.admin-shortcuts a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #eef5ff;
  color: #0f5fb8;
  text-decoration: none;
  font-weight: 600;
}

.admin-shortcuts a:hover {
  background: linear-gradient(135deg, var(--site-primary), var(--site-bg));
}

.admin-checklist {
  display: grid;
  gap: 0.85rem;
}

.admin-check-item {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #dbeafe;
}

.admin-check-item strong {
  display: block;
  color: #0b2f57;
  margin-bottom: 0.35rem;
}

.admin-check-item span {
  color: #60758e;
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .admin-hero-card {
    flex-direction: column;
  }

  .admin-dashboard {
    padding: 1rem;
  }
}





.admin-contract-subcard {
  display: block !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1rem 0 !important;
  border: 0 !important;
}

.admin-alerts-card {
  margin-bottom: 1.5rem;
}

.admin-alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.admin-alert-item {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #e5edf6;
  background: #f8fbff;
  display: grid;
  gap: 0.35rem;
}

.admin-alert-item strong {
  color: #0b2f57;
}

.admin-alert-item span,
.admin-alert-item small {
  color: #5d718a;
}

.admin-alert-danger {
  background: #fff2f2;
  border-color: #f2b8b5;
}

.admin-alert-warning {
  background: #fff9ed;
  border-color: #f3d08d;
}

.admin-alert-info {
  background: #eef6ff;
  border-color: #b7d3f6;
}

.admin-alert-neutral {
  background: #f4f7fb;
  border-color: #d8e1ec;
}


.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.theme-grid input[type="color"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.35rem;
  cursor: pointer;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-brand-has-logo {
  display: inline-flex;
  align-items: center;
  min-height: 64px;
  max-width: min(320px, 46vw);
}

.site-brand-logo {
  width: 100%;
  height: 64px;
  object-fit: contain;
  object-position: left center;
}

.config-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-secondary-inline {
  border: 1px solid #c9d8ea;
  background: #eef5ff;
  color: #0f5fb8;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.site-preview-card {
  --preview-primary: #1565c0;
  --preview-primary-dark: #0d47a1;
  --preview-bg: #f5f9ff;
  --preview-text: #16324f;
  --preview-muted: #5f738c;
}

.site-preview-shell {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(21, 101, 192, 0.14);
  background: var(--preview-bg);
  box-shadow: 0 18px 36px rgba(12, 41, 82, 0.08);
}

.site-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--preview-primary-dark), var(--preview-primary));
  color: #fff;
}

.site-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.site-preview-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.2rem;
}

.site-preview-cta {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #fff;
  color: var(--preview-primary-dark);
  font-weight: 700;
}

.site-preview-body {
  padding: 1.5rem;
  color: var(--preview-text);
}

.site-preview-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--preview-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.site-preview-body h3 {
  margin: 0 0 0.75rem;
}

.site-preview-body p {
  margin: 0;
  color: var(--preview-muted);
}

