/*
Theme Name: Economia Circular
Theme URI: https://economiacircular.com.br
Author: MelhorEscrita
Author URI: https://melhorescrita.com.br
Description: Tema de portal de notícias para o blog Economia Circular by MelhorEscrita. Layout em estilo "portal" (manchete + grade de categorias + sidebar), com ticker de últimas notícias, espaços de anúncio (Google AdSense) e widget de "Mais lidas".
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: economia-circular
Tags: blog, news, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   ECONOMIA CIRCULAR — DESIGN TOKENS
   Paleta extraída da logo + identidade "economia circular":
   - verde profundo  -> faixas escuras (ticker, footer)
   - verde-folha      -> marca, links, títulos de seção
   - verde vivo       -> destaque/CTA, "anel" assinatura (ciclo)
   - cinza pedra      -> textos secundários / metadados
   - bege claro       -> fundo geral (mais quente que branco puro)
   ========================================================= */

:root{
  --ec-deep:   #2F4A36;
  --ec-leaf:   #4F8B52;
  --ec-bright: #6CC24A;
  --ec-stone:  #5B5F5C;
  --ec-cream:  #F6F5F0;
  --ec-paper:  #FFFFFF;
  --ec-ink:    #1E2421;
  --ec-line:   #E3E1D8;
  --ec-danger: #B23B3B;

  --ec-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ec-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ec-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ec-radius: 6px;
  --ec-container: 1240px;
  --ec-shadow: 0 1px 2px rgba(30,36,33,.06), 0 6px 16px rgba(30,36,33,.07);
}

/* Reset enxuto */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  background:var(--ec-cream);
  color:var(--ec-ink);
  font-family:var(--ec-font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block;}
a{color:var(--ec-leaf);text-decoration:none;}
a:hover{color:var(--ec-deep);}
ul{margin:0;padding:0;list-style:none;}
button{font-family:inherit;cursor:pointer;}
input,textarea,select{font-family:inherit;font-size:1rem;}
:focus-visible{outline:3px solid var(--ec-bright);outline-offset:2px;}

.container{
  max-width:var(--ec-container);
  margin:0 auto;
  padding:0 20px;
}
.screen-reader-text{
  position:absolute;left:-9999px;
}
.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--ec-deep);color:#fff;
  padding:10px 16px;z-index:9999;
}
.skip-link:focus{left:10px;top:10px;}

h1,h2,h3,h4{
  font-family:var(--ec-font-display);
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  color:var(--ec-ink);
}

/* =========================================================
   ASSINATURA VISUAL: "anel de leitura" — pequeno indicador
   circular (ciclo) usado no tempo de leitura e nas tags de
   categoria. Remete ao símbolo do infinito/ciclo da logo.
   ========================================================= */
.ec-ring{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.6em;height:1.6em;border-radius:50%;
  border:2px solid var(--ec-bright);
  border-top-color:var(--ec-deep);
  flex-shrink:0;
}
.ec-tag{
  display:inline-flex;align-items:center;gap:5px;
  font-family:var(--ec-font-mono);
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ec-leaf);
  background:rgba(79,139,82,.1);
  border-radius:999px;
  padding:4px 10px 4px 8px;
}
.ec-tag::before{
  content:"";
  width:8px;height:8px;border-radius:50%;
  border:1.5px solid currentColor;
  border-top-color:transparent;
}
.ec-tag.is-light{background:rgba(255,255,255,.16);color:#fff;}

/* =========================================================
   1. TOP TICKER
   ========================================================= */
.ec-ticker{
  background:var(--ec-deep);
  color:#fff;
  overflow:hidden;
  position:relative;
  height:38px;
  display:flex;
  align-items:center;
}
.ec-ticker__label{
  flex-shrink:0;
  background:var(--ec-bright);
  color:var(--ec-deep);
  font-family:var(--ec-font-mono);
  font-weight:700;
  font-size:.72rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:0 14px;
  height:100%;
  display:flex;
  align-items:center;
  gap:6px;
  z-index:2;
}
.ec-ticker__viewport{
  flex:1;
  overflow:hidden;
  white-space:nowrap;
  position:relative;
}
.ec-ticker__track{
  display:inline-flex;
  gap:48px;
  padding-left:20px;
  animation:ec-scroll 38s linear infinite;
  will-change:transform;
}
.ec-ticker__viewport:hover .ec-ticker__track{animation-play-state:paused;}
.ec-ticker__track a{
  color:#fff;font-size:.85rem;font-weight:500;
  display:inline-flex;align-items:center;gap:8px;
}
.ec-ticker__track a::before{content:"●";color:var(--ec-bright);font-size:.5rem;}
@keyframes ec-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}
@media (prefers-reduced-motion: reduce){
  .ec-ticker__track{animation:none;}
}

/* =========================================================
   2. HEADER
   ========================================================= */
.ec-header{
  background:var(--ec-paper);
  border-bottom:1px solid var(--ec-line);
  position:sticky;
  top:0;
  z-index:50;
}
.ec-header__inner{
  display:flex;
  align-items:center;
  gap:28px;
  padding:14px 0;
}
.ec-logo{display:flex;align-items:center;}
.ec-logo img{height:34px;width:auto;}
.ec-logo span{
  font-family:var(--ec-font-display);
  font-weight:700;
  font-size:1.4rem;
  color:var(--ec-ink);
}
.ec-nav{flex:1;}
.ec-nav ul{display:flex;align-items:center;gap:26px;flex-wrap:wrap;}
.ec-nav a{
  color:var(--ec-ink);
  font-weight:600;
  font-size:.95rem;
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.ec-nav a:hover,
.ec-nav .current-menu-item > a{
  color:var(--ec-leaf);
  border-bottom-color:var(--ec-bright);
}
.ec-social{display:flex;align-items:center;gap:14px;flex-shrink:0;flex-wrap:wrap;}
.ec-social a{
  color:var(--ec-ink);
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--ec-cream);
}
.ec-social a:hover{background:var(--ec-bright);color:var(--ec-deep);}
.ec-social svg{width:15px;height:15px;}

.ec-burger{
  display:none;background:none;border:0;padding:8px;
  flex-direction:column;gap:4px;
}
.ec-burger span{width:24px;height:2px;background:var(--ec-ink);display:block;}

/* barra de categorias */
.ec-catbar{
  background:var(--ec-leaf);
}
.ec-catbar ul{
  display:flex;gap:2px;overflow-x:auto;
  scrollbar-width:none;
}
.ec-catbar ul::-webkit-scrollbar{display:none;}
.ec-catbar a{
  display:block;
  color:#fff;
  font-size:.82rem;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
  padding:10px 16px;
  white-space:nowrap;
}
.ec-catbar a:hover{background:var(--ec-deep);color:#fff;}

/* =========================================================
   3. AD SLOTS
   ========================================================= */
.ec-ad{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:28px 0;
  overflow:hidden;
  text-align:center;
}
.ec-ad__inner{width:100%;}
.ec-ad--empty{
  border:1px dashed var(--ec-line);
  border-radius:var(--ec-radius);
  background:repeating-linear-gradient(45deg,#fff,#fff 10px,#fbfaf6 10px,#fbfaf6 20px);
  color:var(--ec-stone);
  font-family:var(--ec-font-mono);
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:18px;
}
.ec-ad--leaderboard{min-height:90px;}
.ec-ad--incontent{margin:32px 0;}
.ec-ad--sidebar{min-height:250px;}

/* =========================================================
   4. HOME — HERO (manchete)
   ========================================================= */
.ec-hero{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:24px;
  margin:28px 0;
}
.ec-hero__main{
  position:relative;
  border-radius:var(--ec-radius);
  overflow:hidden;
  background:var(--ec-deep);
  min-height:420px;
  display:flex;
  align-items:flex-end;
}
.ec-hero__main img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.85;
}
.ec-hero__main::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(20,30,24,0) 30%,rgba(15,22,18,.92) 100%);
}
.ec-hero__content{position:relative;z-index:2;padding:28px;color:#fff;}
.ec-hero__content h2{
  color:#fff;font-size:clamp(1.5rem,2.6vw,2.1rem);margin:10px 0 10px;
}
.ec-hero__content a{color:#fff;}
.ec-hero__excerpt{color:rgba(255,255,255,.85);font-size:.95rem;max-width:560px;}
.ec-hero__side{display:flex;flex-direction:column;gap:16px;}
.ec-hero__side-item{
  display:flex;gap:14px;
  background:var(--ec-paper);
  border-radius:var(--ec-radius);
  padding:10px;
  box-shadow:var(--ec-shadow);
}
.ec-hero__side-item img{
  width:104px;height:78px;object-fit:cover;border-radius:4px;flex-shrink:0;
}
.ec-hero__side-item h3{font-size:.95rem;margin:6px 0 4px;}
.ec-hero__side-item h3 a{color:var(--ec-ink);}
.ec-meta{
  font-family:var(--ec-font-mono);
  font-size:.72rem;
  color:var(--ec-stone);
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

/* =========================================================
   5. LAYOUT — conteúdo + sidebar
   ========================================================= */
.ec-layout{
  display:grid;
  grid-template-columns:1fr 320px;
  gap:36px;
  align-items:start;
  padding:8px 0 48px;
}
.ec-section{margin-bottom:8px;}
.ec-section__head{
  display:flex;align-items:baseline;justify-content:space-between;
  border-bottom:3px solid var(--ec-deep);
  padding-bottom:8px;margin-bottom:18px;
}
.ec-section__head h2{
  font-size:1.4rem;color:var(--ec-deep);
}
.ec-section__head a{
  font-family:var(--ec-font-mono);font-size:.75rem;text-transform:uppercase;
  font-weight:700;letter-spacing:.04em;
}
.ec-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}
.ec-card{display:flex;flex-direction:column;}
.ec-card__thumb{
  border-radius:var(--ec-radius);overflow:hidden;aspect-ratio:4/3;margin-bottom:10px;
  background:var(--ec-line);
}
.ec-card__thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease;}
.ec-card:hover .ec-card__thumb img{transform:scale(1.06);}
.ec-card h3{font-size:1.02rem;margin:8px 0 6px;}
.ec-card h3 a{color:var(--ec-ink);}
.ec-card:hover h3 a{color:var(--ec-leaf);}
.ec-card p{font-size:.85rem;color:var(--ec-stone);margin:0;}

/* Lista horizontal (usada em arquivos/categoria) */
.ec-list-item{
  display:grid;grid-template-columns:200px 1fr;gap:20px;
  padding:22px 0;border-bottom:1px solid var(--ec-line);
}
.ec-list-item__thumb{border-radius:var(--ec-radius);overflow:hidden;aspect-ratio:4/3;}
.ec-list-item__thumb img{width:100%;height:100%;object-fit:cover;}
.ec-list-item h2{font-size:1.25rem;margin:0 0 8px;}
.ec-list-item p{color:var(--ec-stone);margin:8px 0 0;}

/* =========================================================
   6. SIDEBAR
   ========================================================= */
.ec-widget{
  background:var(--ec-paper);
  border-radius:var(--ec-radius);
  padding:20px;
  margin-bottom:26px;
  box-shadow:var(--ec-shadow);
}
.ec-widget h2{
  font-size:1.05rem;color:var(--ec-deep);
  border-bottom:2px solid var(--ec-bright);
  padding-bottom:10px;margin-bottom:14px;
}
.ec-mostread{display:flex;flex-direction:column;gap:14px;}
.ec-mostread li{display:flex;gap:12px;align-items:flex-start;}
.ec-mostread__num{
  font-family:var(--ec-font-display);font-weight:700;font-size:1.6rem;
  color:var(--ec-line);width:30px;flex-shrink:0;line-height:1;
}
.ec-mostread li:nth-child(1) .ec-mostread__num,
.ec-mostread li:nth-child(2) .ec-mostread__num,
.ec-mostread li:nth-child(3) .ec-mostread__num{color:var(--ec-bright);}
.ec-mostread h3{font-size:.88rem;margin:0 0 4px;line-height:1.3;}
.ec-mostread h3 a{color:var(--ec-ink);}

.ec-newsletter{
  background:var(--ec-deep);color:#fff;
}
.ec-newsletter h2{color:#fff;border-color:var(--ec-bright);}
.ec-newsletter p{color:rgba(255,255,255,.8);font-size:.85rem;margin:0 0 14px;}
.ec-newsletter__embed :is(input[type="email"],input[type="text"]){
  width:100%;padding:10px 12px;border-radius:4px;border:0;margin-bottom:8px;
}
.ec-newsletter__embed button,
.ec-btn{
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--ec-bright);color:var(--ec-deep);
  font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:.03em;
  border:0;border-radius:4px;padding:11px 18px;width:100%;
}
.ec-btn:hover{background:#fff;}

/* =========================================================
   7. SINGLE POST
   ========================================================= */
.ec-article{max-width:760px;}
.ec-article__header{margin-bottom:18px;}
.ec-article__header h1{font-size:clamp(1.7rem,3vw,2.4rem);}
.ec-article__lead{font-size:1.1rem;color:var(--ec-stone);margin:10px 0;}
.ec-article__byline{
  display:flex;align-items:center;gap:10px;
  padding:14px 0;border-top:1px solid var(--ec-line);border-bottom:1px solid var(--ec-line);
  margin:18px 0;
}
.ec-article__byline .ec-ring{font-family:var(--ec-font-mono);font-size:.55rem;font-weight:700;color:var(--ec-deep);}
.ec-article__thumb{border-radius:var(--ec-radius);overflow:hidden;margin-bottom:24px;}
.ec-article__thumb img{width:100%;}
.ec-article__thumb figcaption{font-size:.8rem;color:var(--ec-stone);padding:8px 2px 0;}
.ec-content{font-size:1.08rem;line-height:1.75;}
.ec-content p{margin:0 0 1.3em;}
.ec-content h2{font-size:1.5rem;margin-top:1.6em;}
.ec-content h3{font-size:1.25rem;margin-top:1.4em;}
.ec-content img{border-radius:var(--ec-radius);margin:1.2em 0;}
.ec-content blockquote{
  border-left:4px solid var(--ec-bright);margin:1.6em 0;padding:4px 0 4px 20px;
  font-family:var(--ec-font-display);font-style:italic;font-size:1.2rem;color:var(--ec-deep);
}
.ec-content a{text-decoration:underline;text-decoration-color:var(--ec-bright);}
.ec-tags{display:flex;gap:8px;flex-wrap:wrap;margin:28px 0;}
.ec-tags a{
  font-size:.78rem;background:var(--ec-cream);border:1px solid var(--ec-line);
  border-radius:999px;padding:5px 12px;color:var(--ec-stone);
}
.ec-share{display:flex;gap:10px;margin:20px 0;}
.ec-share a{
  width:38px;height:38px;border-radius:50%;background:var(--ec-cream);
  display:flex;align-items:center;justify-content:center;color:var(--ec-deep);
}
.ec-share a:hover{background:var(--ec-bright);}
.ec-related{margin-top:42px;border-top:1px solid var(--ec-line);padding-top:24px;}

/* "Leia também" — botão dentro do texto do artigo apontando para outro post */
.ec-readmore{
  display:flex;gap:16px;align-items:center;
  background:var(--ec-cream);
  border-left:4px solid var(--ec-bright);
  border-radius:var(--ec-radius);
  padding:16px 18px;
  margin:1.6em 0;
  text-decoration:none;
}
.ec-readmore:hover{background:#efeee6;}
.ec-readmore__thumb{
  flex-shrink:0;width:84px;height:64px;border-radius:4px;overflow:hidden;
}
.ec-readmore__thumb img{width:100%;height:100%;object-fit:cover;}
.ec-readmore__body{display:flex;flex-direction:column;gap:4px;}
.ec-readmore__label{
  font-family:var(--ec-font-mono);font-size:.68rem;text-transform:uppercase;
  letter-spacing:.05em;color:var(--ec-stone);
}
.ec-readmore__title{font-family:var(--ec-font-display);font-size:1.05rem;color:var(--ec-ink);line-height:1.3;}
.ec-readmore__cta{
  font-family:var(--ec-font-mono);font-size:.74rem;font-weight:700;
  color:var(--ec-leaf);text-transform:uppercase;letter-spacing:.03em;
}

/* =========================================================
   8. VITRINE (Loja / Cursos / Nossos Blogs)
   ========================================================= */
.ec-vitrine-hero{
  background:var(--ec-deep);color:#fff;border-radius:var(--ec-radius);
  padding:48px 36px;margin:28px 0 36px;text-align:center;
}
.ec-vitrine-hero h1{color:#fff;}
.ec-vitrine-hero p{color:rgba(255,255,255,.82);max-width:620px;margin:10px auto 0;}
.ec-vitrine-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:30px 0 48px;
}
.ec-vcard{
  background:var(--ec-paper);border-radius:var(--ec-radius);overflow:hidden;
  box-shadow:var(--ec-shadow);display:flex;flex-direction:column;
}
.ec-vcard__img{aspect-ratio:16/10;overflow:hidden;background:var(--ec-line);}
.ec-vcard__img img{width:100%;height:100%;object-fit:cover;}
.ec-vcard__body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1;}
.ec-vcard__body h3{font-size:1.1rem;margin:0;}
.ec-vcard__body p{font-size:.88rem;color:var(--ec-stone);flex:1;margin:0;}

/* Atalhos de categorias (página "Nossos Blogs") */
.ec-catshortcuts{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin:24px 0;
}
.ec-catshortcuts a{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  background:var(--ec-paper);
  border-radius:var(--ec-radius);
  padding:16px 8px;
  box-shadow:var(--ec-shadow);
  transition:transform .2s ease,box-shadow .2s ease;
}
.ec-catshortcuts a:hover{transform:translateY(-4px);box-shadow:0 10px 22px rgba(30,36,33,.12);}
.ec-content .ec-catshortcuts img{
  width:40px;height:40px;object-fit:contain;margin:0;border-radius:0;
}
.ec-catshortcuts span{
  font-family:var(--ec-font-mono);font-size:.68rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.03em;color:var(--ec-deep);text-align:center;
}
.ec-ad--thin{margin:18px 0;}
.ec-ad--thin .ec-ad--empty{padding:10px;font-size:.62rem;}

/* =========================================================
   9. CONTATO
   ========================================================= */
.ec-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:32px 0 56px;}
.ec-form .ec-field{margin-bottom:16px;}
.ec-form label{display:block;font-size:.82rem;font-weight:600;margin-bottom:6px;color:var(--ec-deep);}
.ec-form input,.ec-form textarea{
  width:100%;border:1px solid var(--ec-line);border-radius:4px;padding:11px 12px;background:#fff;
}
.ec-form textarea{min-height:140px;resize:vertical;}
.ec-contact-info{background:var(--ec-deep);color:#fff;border-radius:var(--ec-radius);padding:30px;}
.ec-contact-info h2{color:#fff;}
.ec-contact-info a{color:#fff;}
.ec-contact-info li{display:flex;gap:10px;margin-bottom:14px;align-items:flex-start;}
.ec-form-message{padding:12px 16px;border-radius:4px;margin-bottom:16px;font-size:.9rem;}
.ec-form-message.success{background:rgba(108,194,74,.18);color:var(--ec-deep);}
.ec-form-message.error{background:rgba(178,59,59,.12);color:var(--ec-danger);}

/* =========================================================
   10. FOOTER
   ========================================================= */
.ec-footer{background:var(--ec-deep);color:rgba(255,255,255,.85);margin-top:40px;}
.ec-footer__grid{
  display:grid;grid-template-columns:1.6fr 1fr;gap:48px;
  padding:52px 0 32px;
}
.ec-footer h2{color:#fff;font-size:1rem;text-transform:uppercase;letter-spacing:.04em;margin-bottom:14px;}
.ec-footer__about{font-size:.95rem;line-height:1.7;max-width:560px;margin:0 0 24px;}
.ec-footer__social-block{margin-bottom:26px;}
.ec-footer__social-block strong{display:block;color:#fff;font-size:.9rem;margin-bottom:10px;}
.ec-footer .ec-social{display:flex;gap:10px;}
.ec-footer .ec-social a{background:rgba(255,255,255,.1);color:#fff;width:34px;height:34px;}
.ec-footer .ec-social a:hover{background:var(--ec-bright);color:var(--ec-deep);}
.ec-footer__network-logo{height:34px;width:auto;margin-bottom:22px;filter:brightness(0) invert(1);opacity:.92;}
.ec-footer__legal-text{display:flex;flex-direction:column;gap:4px;font-size:.84rem;line-height:1.6;color:rgba(255,255,255,.85);}
.ec-footer__legal-text strong{color:#fff;font-size:.88rem;}
.ec-footer__col-news .ec-newsletter__embed{margin-bottom:24px;}
.ec-footer__legal-links{display:flex;flex-direction:column;gap:8px;}
.ec-footer__legal-links a{
  color:#fff;font-size:.88rem;text-decoration:underline;text-decoration-color:rgba(255,255,255,.5);
  font-weight:600;
}
.ec-footer__legal-links a:hover{color:var(--ec-bright);text-decoration-color:var(--ec-bright);}
.ec-footer a{color:rgba(255,255,255,.85);}
.ec-footer a:hover{color:var(--ec-bright);}
.ec-footer__bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:18px 0;font-size:.8rem;
  display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;
}

/* =========================================================
   11. PAGINAÇÃO / 404 / BUSCA
   ========================================================= */
.ec-pagination{display:flex;gap:8px;justify-content:center;margin:36px 0;}
.ec-pagination a,.ec-pagination span{
  display:flex;align-items:center;justify-content:center;
  min-width:38px;height:38px;border-radius:4px;border:1px solid var(--ec-line);
  font-size:.85rem;color:var(--ec-ink);
}
.ec-pagination .current{background:var(--ec-deep);color:#fff;border-color:var(--ec-deep);}
.ec-404{text-align:center;padding:80px 20px;}
.ec-404 .ec-ring{width:64px;height:64px;border-width:6px;margin:0 auto 20px;}
.ec-search-form{display:flex;gap:8px;margin:24px 0;}
.ec-search-form input{flex:1;padding:11px 14px;border:1px solid var(--ec-line);border-radius:4px;}
.ec-search-form button{background:var(--ec-deep);color:#fff;border:0;border-radius:4px;padding:0 18px;}

/* =========================================================
   12. RESPONSIVO
   Faixas: Desktop (padrão) > Tablet (≤1024px) > Tablet
   retrato/celular grande (≤768px) > Celular (≤600px) >
   Celular pequeno (≤380px).
   ========================================================= */

/* ---------- Tablet (paisagem e retrato grande) ---------- */
@media (max-width:1024px){
  .ec-hero{grid-template-columns:1fr;}
  .ec-layout{grid-template-columns:1fr;}
  .ec-grid{grid-template-columns:repeat(3,1fr);}
  .ec-footer__grid{grid-template-columns:1fr 1fr;gap:32px;}
  .ec-vitrine-grid{grid-template-columns:repeat(2,1fr);}
  .ec-vitrine-hero{padding:36px 28px;}
  .ec-hero__main{min-height:340px;}
  .ec-catshortcuts{grid-template-columns:repeat(3,1fr);}
  .container{padding:0 18px;}
}

/* ---------- Tablet retrato / celular grande ---------- */
@media (max-width:768px){
  .ec-nav,.ec-social{display:none;}
  .ec-header__inner{justify-content:space-between;gap:14px;}
  .ec-burger{display:flex;}
  body.ec-nav-open .ec-nav{
    display:block;position:absolute;top:100%;left:0;right:0;background:#fff;
    border-bottom:1px solid var(--ec-line);padding:10px 20px 16px;
    box-shadow:0 8px 16px rgba(0,0,0,.08);
  }
  body.ec-nav-open .ec-nav ul{flex-direction:column;align-items:flex-start;gap:4px;}
  body.ec-nav-open .ec-nav a{display:block;padding:10px 0;width:100%;}

  .ec-grid{grid-template-columns:repeat(2,1fr);gap:16px;}
  .ec-list-item{grid-template-columns:1fr;}
  .ec-list-item__thumb{aspect-ratio:16/9;}
  .ec-footer__grid{grid-template-columns:1fr;padding:36px 0;gap:28px;}
  .ec-footer__bottom{justify-content:center;text-align:center;}
  .ec-contact-grid{grid-template-columns:1fr;}
  .ec-vitrine-grid{grid-template-columns:1fr;}
  .ec-section__head h2{font-size:1.2rem;}
  .ec-hero__side-item{padding:8px;}
  .ec-hero__side-item img{width:84px;height:64px;}
}

/* ---------- Celular ---------- */
@media (max-width:600px){
  .container{padding:0 16px;}
  .ec-ticker__label{padding:0 10px;font-size:.65rem;}
  .ec-ticker__track a{font-size:.78rem;}
  .ec-logo img{height:28px;}
  .ec-header__inner{padding:10px 0;}

  .ec-hero{margin:18px 0;}
  .ec-hero__main{min-height:260px;}
  .ec-hero__content{padding:18px;}
  .ec-hero__content h2{font-size:1.3rem;}
  .ec-hero__excerpt{display:none;} /* mantém o cartão de manchete mais compacto no celular */
  .ec-hero__side-item{flex-direction:column;}
  .ec-hero__side-item img{width:100%;height:140px;}

  .ec-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .ec-card h3{font-size:.92rem;}

  .ec-vitrine-hero{padding:28px 18px;}
  .ec-vitrine-hero h1{font-size:1.5rem;}

  .ec-article__header h1{font-size:1.5rem;}
  .ec-article__byline{flex-wrap:wrap;}
  .ec-readmore{flex-direction:column;align-items:flex-start;}
  .ec-readmore__thumb{width:100%;height:140px;}

  .ec-catshortcuts{gap:10px;grid-template-columns:repeat(2,1fr);}
  .ec-footer .ec-social a{width:32px;height:32px;}
}

/* ---------- Celular pequeno ---------- */
@media (max-width:380px){
  .ec-grid{grid-template-columns:1fr;}
  .ec-vitrine-grid{grid-template-columns:1fr;}
  .ec-catshortcuts{grid-template-columns:repeat(2,1fr);}
  .ec-nav-open .ec-logo span{font-size:1.1rem;}
  .ec-vcard__body{padding:14px;}
}
