:root {
  --blue: #00285f;
  --red: #cb0000;
  --text: #333;
  --muted: #5b5b5b;
  --line: #e3e3e3;
  --soft: #f6f6f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 0;
  box-shadow: none;
}

.contact-strip {
  padding: 8px 12px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.contact-strip a {
  color: #fff;
}

.contact-strip strong {
  color: #fffb00;
  font-weight: 700;
}

.brand-row {
  display: grid;
  grid-template-columns: 250px minmax(360px, 560px) 320px;
  align-items: center;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 102px;
  padding: 20px 20px 10px;
}

.brand img {
  width: 163px;
  max-height: 61px;
  object-fit: contain;
  transform: translateX(-24px);
}

.search-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-spacer {
  min-height: 1px;
}

.site-header.is-compact .brand-row {
  min-height: 88px;
  padding-top: 18px;
  padding-bottom: 0;
}

.site-header.is-compact .portal-row {
  transform: translateY(-64px);
}

.site-header.is-compact .main-nav {
  margin-top: -46px;
  padding-bottom: 18px;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d9dde5;
  border-radius: 24px;
  padding: 10px 18px;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.search-box button {
  position: relative;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  border: 0;
  border-radius: 50%;
  margin-left: 4px;
  padding: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 0;
  font-weight: 600;
  cursor: pointer;
}

.search-box button::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.search-box button::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 34px;
  width: 12px;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  transform: rotate(45deg);
}

.portal-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  transform: translateY(-72px);
}

.portal-row a {
  display: grid;
  align-items: center;
  justify-content: center;
  justify-items: center;
  gap: 6px;
  width: 55px;
  min-height: 60px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.portal-row span {
  max-width: 55px;
  white-space: normal;
}

.portal-row img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: -38px;
  padding-bottom: 38px;
  background: #fff;
  color: #111;
  font-size: 16px;
  font-weight: 400;
}

.main-nav > a,
.main-nav .nav-group {
  position: relative;
  padding: 14px 14px;
  color: #111;
  white-space: nowrap;
}

.main-nav > a:hover,
.main-nav .nav-group:hover {
  background: transparent;
  color: var(--blue);
}

.nav-group > a {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  display: none;
  min-width: 260px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 40, 95, 0.12);
  color: var(--blue);
}

.nav-group:hover > a {
  display: block;
}

.mobile-nav {
  display: none;
}

.wp-content a {
  color: #00e;
  text-decoration: none;
}

.wp-content a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.site-main {
  min-height: 70vh;
}

.wp-content,
.elementor-page {
  overflow: hidden;
}

.e-container {
  display: flex;
  width: var(--e-width, min(1120px, calc(100vw - 40px)));
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.e-container.e-row {
  flex-direction: row;
}

.e-container.e-column {
  flex-direction: column;
}

.e-container > .e-container {
  flex: 0 1 var(--e-basis, auto);
  width: var(--e-basis, auto);
}

.e-heading,
.e-text,
.e-image,
.e-button,
.e-divider,
.e-carousel,
.e-tabs,
.e-embed {
  max-width: min(1120px, calc(100vw - 40px));
  margin-right: auto;
  margin-left: auto;
}

.e-heading {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.25;
}

.e-text {
  color: var(--muted);
  font-size: 15px;
}

.e-text p {
  margin-top: 0;
}

.e-image {
  margin-top: 0;
  margin-bottom: 0;
}

.e-image img {
  width: 100%;
  object-fit: contain;
}

.e-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.e-button:hover {
  background: #fff;
  color: var(--blue);
  text-decoration: none;
}

.e-divider {
  width: min(1120px, calc(100vw - 40px));
  height: 1px;
  border: 0;
  background: var(--line);
}

.e-carousel {
  display: grid;
  width: 100%;
  max-width: none;
  overflow: hidden;
}

.e-carousel img {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  animation: carouselFade 15s infinite;
}

.e-carousel img:nth-child(1) {
  opacity: 1;
}

.e-carousel img:nth-child(2) {
  animation-delay: 5s;
}

.e-carousel img:nth-child(3) {
  animation-delay: 10s;
}

@keyframes carouselFade {
  0%, 28% {
    opacity: 1;
  }
  33%, 100% {
    opacity: 0;
  }
}

.e-tabs {
  display: block;
  width: min(1120px, calc(100vw - 40px));
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 48px;
}

.e-tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.e-tab-button,
.wp-content .e-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 5px;
  padding: 14px 34px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.e-tab-button.is-active,
.wp-content .e-tab-button.is-active {
  background: #004ab0;
}

.e-tab-panel {
  display: block;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}

.e-tabs .e-container,
.e-tabs .e-container.e-row,
.e-tabs .e-container.e-column {
  display: block;
  width: 100%;
  max-width: 100%;
}

.e-tabs .e-heading,
.e-tabs .e-text,
.e-tabs .e-image,
.e-tabs .e-divider {
  width: 100%;
  max-width: 100%;
}

.e-tabs .e-image {
  margin-top: 18px;
  margin-bottom: 24px;
}

.page-lingua-portuguesa-anos-iniciais .wp-content > .e-container.has-bg:first-child,
.page-lingua-portuguesa-anos-finais .wp-content > .e-container.has-bg:first-child,
.page-geografia-e-historia .wp-content > .e-container.has-bg:first-child,
.page-matematica-anos-finais .wp-content > .e-container.has-bg:first-child,
.page-ciencias .wp-content > .e-container.has-bg:first-child,
.page-literatura .wp-content > .e-container.has-bg:first-child,
.page-academicos .wp-content > .e-container.has-bg:first-child {
  padding-top: 36px !important;
}

.page-lingua-portuguesa-anos-iniciais .wp-content > .e-container > .e-heading:first-child,
.page-lingua-portuguesa-anos-finais .wp-content > .e-container > .e-heading:first-child,
.page-matematica-anos-finais .wp-content > .e-container > .e-heading:first-child {
  text-decoration: underline;
}

.e-tabs .e-image img {
  width: 100%;
}

.e-video {
  width: min(900px, calc(100vw - 40px));
  aspect-ratio: 16 / 9;
}

.e-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.e-products,
.e-categories {
  display: grid;
  width: min(1120px, calc(100vw - 40px));
  max-width: 100%;
  gap: 22px;
}

.e-products {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.e-categories {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.e-product-card,
.e-category {
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 17px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 40, 95, 0.05);
}

.e-product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.e-product-card img,
.e-category img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
}

.e-product-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.e-product-card strong {
  color: #000;
  font-size: 19px;
  font-weight: 600;
}

.e-product-card button {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.e-category {
  display: grid;
  gap: 12px;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.caixa04 {
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 18px;
  background: #f8fafc;
}

.wp-content button {
  border: 1px solid var(--blue);
  border-radius: 8px;
  margin: 6px;
  padding: 12px 16px;
  background: #fff;
  color: var(--blue);
  font-family: inherit;
  font-weight: 600;
}

.wp-content > figure {
  margin: 0;
}

.wp-content > figure img {
  width: 100%;
}

.wp-content > figure:first-child,
.wp-content > figure:nth-child(2),
.wp-content > figure:nth-child(3) {
  background: #f4f6f8;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content p,
.wp-content ul,
.wp-content ol {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.wp-content h1,
.wp-content h2 {
  color: var(--blue);
  font-weight: 600;
  line-height: 1.25;
}

.wp-content h2 {
  margin-top: 12px;
  margin-bottom: 10px;
  font-size: 24px;
}

.wp-content p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.wp-content > h2,
.wp-content > p,
.wp-content > a {
  margin-left: calc((100vw - min(1120px, calc(100vw - 40px))) / 2);
}

.wp-content > a {
  max-width: 320px;
  margin-top: 8px;
  margin-bottom: 40px;
}

.wp-content > img,
.wp-content p + img,
.wp-content a + img {
  max-width: min(800px, calc(100vw - 40px));
  margin: 28px auto;
}

.wp-content > h2:nth-of-type(2n + 1) {
  margin-top: 72px;
  color: var(--muted);
  font-size: 14px;
}

.wp-content > h2:nth-of-type(2n) {
  color: var(--blue);
}

.wp-content hr,
.wp-content .divider {
  max-width: 1120px;
  margin: 36px auto;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-home .wp-content > h2:last-of-type,
.page-home .wp-content > h2:nth-last-of-type(2) {
  text-align: center;
}

.page-home .wp-content > h2:nth-last-of-type(2) {
  margin-top: 64px;
  padding-top: 48px;
  color: var(--blue);
  background: var(--soft);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1.2fr;
  align-items: start;
  gap: 28px;
  margin-top: 60px;
  border-top: 1px solid #ddd;
  padding: 22px max(20px, calc((100vw - 1180px) / 2));
  background: #fff;
  color: var(--text);
}

.site-footer section {
  display: grid;
  gap: 10px;
}

.site-footer h2 {
  margin: 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.site-footer p {
  margin: 0;
  color: #555;
  font-size: 12px;
  line-height: 1.7;
}

.site-footer a {
  color: #00e;
  text-decoration: underline;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-icons img {
  width: 64px;
  height: 40px;
  border-radius: 3px;
  padding: 3px;
  background: #fff;
  object-fit: contain;
}

.store-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
}

.store-shell header {
  margin-bottom: 28px;
}

.store-shell h1,
.product-detail h1 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.2;
}

.store-shell p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 40, 95, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: contain;
  background: #f8fafc;
}

.product-card h2 {
  margin: 0;
  color: var(--blue);
  font-size: 16px;
  line-height: 1.35;
}

.product-card strong,
.price {
  color: var(--red);
  font-size: 18px;
}

.product-card button,
.checkout-form button,
.product-detail button {
  width: 100%;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px;
}

.product-main-image {
  width: 100%;
  border: 1px solid #e4e8ef;
  border-radius: 8px;
  background: #f8fafc;
  object-fit: contain;
}

.product-text {
  margin: 20px 0;
  color: var(--muted);
}

.product-detail label,
.checkout-form label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--blue);
  font-weight: 600;
}

.product-detail input,
.checkout-form input,
.checkout-form textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #e4e8ef;
  padding: 12px 0;
}

.cart-total,
.checkout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.checkout-form {
  display: grid;
  max-width: 720px;
  gap: 4px;
}

.success-box {
  border-radius: 8px;
  padding: 16px;
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

@media (max-width: 920px) {
  .brand-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .search-box {
    justify-content: stretch;
  }

  .portal-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    transform: none;
  }

  .main-nav {
    display: none;
    margin-top: 0;
    padding-bottom: 0;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--blue);
  }

  .mobile-nav a {
    padding: 12px 14px;
    background: #003779;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .cart-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .e-container,
  .e-container.e-row {
    flex-direction: column;
    width: 100%;
  }

  .e-container > .e-container {
    width: 100%;
    flex-basis: auto;
  }

  .brand img {
    width: 160px;
  }

  .brand-row,
  .portal-row {
    padding-right: 16px;
    padding-left: 16px;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .wp-content a {
    width: 100%;
  }

  .wp-content > h2,
  .wp-content > p,
  .wp-content > a {
    margin-left: 20px;
    margin-right: 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}
