/*
Theme Name: Plantaotech
Theme URI: https://plantaotech.com.br/
Author: OpenAI
Description: Tema editorial moderno para blog de tecnologia, reviews, comparativos e ofertas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: plantaotech
*/
:root{--navy:#071326;--navy2:#0b1d38;--blue:#0ea5ff;--ink:#14213a;--muted:#64748b;--line:#e2e8f0;--bg:#f4f8fc;--white:#fff;--radius:16px;--shadow:0 8px 28px rgba(15,23,42,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--blue)}img{max-width:100%;height:auto;display:block}.site-header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:20;box-shadow:0 5px 22px #07132624}.header-inner{max-width:1240px;margin:auto;padding:15px 22px;display:flex;align-items:center;gap:28px}.brand{font-weight:900;font-size:27px;letter-spacing:-1.2px;white-space:nowrap}.brand .tech{color:var(--blue)}.tagline{font-size:10px;color:#b8c7da;display:block;line-height:1.2;letter-spacing:.1px}.main-nav{display:flex;align-items:center;gap:22px;margin-left:auto;font-size:14px;font-weight:700}.main-nav a{color:#eaf2ff}.main-nav a:hover,.main-nav .current-menu-item>a{color:var(--blue)}.search-form{display:flex;border:1px solid #30425f;border-radius:99px;overflow:hidden;background:#10213a}.search-form input{width:150px;background:transparent;color:#fff;border:0;padding:10px 14px;outline:none}.search-form button{background:transparent;border:0;color:#fff;padding:0 13px;cursor:pointer}.mobile-toggle{display:none;background:transparent;border:1px solid #40516a;color:#fff;border-radius:8px;padding:8px 11px}.container{max-width:1240px;margin:auto;padding:28px 22px}.hero-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:16px}.hero-main,.hero-small{position:relative;overflow:hidden;border-radius:var(--radius);background:linear-gradient(135deg,#071326,#143d70);color:#fff;min-height:310px}.hero-main img,.hero-small img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;opacity:.64}.hero-main:after,.hero-small:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,12,27,.94),rgba(3,12,27,.14))}.hero-copy{position:relative;z-index:1;padding:34px;max-width:650px}.hero-copy h1{font-size:clamp(28px,3.5vw,46px);line-height:1.12;letter-spacing:-1.2px;margin:12px 0}.hero-copy p{color:#dbeafe;max-width:560px}.hero-side{display:grid;gap:16px}.hero-small{min-height:147px}.hero-small .hero-copy{padding:20px;max-width:470px}.hero-small h2{font-size:20px;line-height:1.25;margin:8px 0}.category-label{display:inline-block;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.5px;background:var(--blue);color:#fff;padding:4px 10px;border-radius:99px}.btn{display:inline-flex;align-items:center;gap:8px;background:var(--blue);color:#fff;padding:10px 17px;border-radius:99px;font-weight:800;font-size:13px;border:0}.btn:hover{background:#0284c7;color:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:32px 0 17px}.section-heading h2{font-size:25px;line-height:1.2;margin:0;letter-spacing:-.6px}.section-heading h2:after{content:"";display:block;width:38px;height:3px;background:var(--blue);margin-top:10px;border-radius:4px}.section-heading a{font-size:13px;font-weight:800;color:#0284c7}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}.article-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.article-card,.sidebar-box,.category-card,.post-content,.archive-card{background:#fff;border:1px solid #e8eef5;border-radius:12px;overflow:hidden;box-shadow:0 4px 15px rgba(15,23,42,.035)}.article-card img,.archive-card img{width:100%;aspect-ratio:16/10;object-fit:cover;background:#dbeafe}.article-card-body{padding:15px}.article-card h3{font-size:17px;line-height:1.35;margin:8px 0 10px;letter-spacing:-.2px}.meta{font-size:12px;color:var(--muted);display:flex;gap:10px;flex-wrap:wrap}.excerpt{font-size:14px;color:#526177}.ad-slot{border:1px dashed #bdcbdc;background:#edf3f9;color:#718096;text-align:center;padding:20px;margin:25px 0;border-radius:10px;font-size:12px;min-height:90px;display:flex;align-items:center;justify-content:center}.affiliate-banner{background:linear-gradient(110deg,#06152d,#0b3470);color:#fff;border-radius:14px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:25px 0}.affiliate-banner h2{font-size:22px;line-height:1.25;margin:0 0 5px}.affiliate-banner p{margin:0;color:#d6e5fb;font-size:13px}.categories-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.category-card{padding:20px;background:linear-gradient(135deg,#fff,#f2f8ff)}.category-card .cat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#e0f2fe;color:#0284c7;font-size:20px;margin-bottom:12px}.category-card h3{margin:0;font-size:17px}.category-card p{font-size:13px;color:var(--muted);margin:5px 0 0}.sidebar-box{padding:17px;margin-bottom:17px}.sidebar-box h3{font-size:18px;margin:0 0 13px}.offer{display:grid;grid-template-columns:82px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.offer:first-of-type{border-top:0}.offer-thumb{height:78px;border-radius:8px;background:linear-gradient(135deg,#dbeafe,#f8fafc);display:grid;place-items:center;font-size:28px}.offer h4{font-size:13px;line-height:1.35;margin:0 0 5px}.offer .btn{font-size:11px;padding:7px 10px;background:#f59e0b;color:#111827;border-radius:6px;margin-top:7px}.newsletter input[type=email]{width:100%;padding:11px;border:1px solid var(--line);border-radius:8px;margin:8px 0}.newsletter button{width:100%;justify-content:center;cursor:pointer}.site-footer{background:var(--navy);color:#eaf2ff;margin-top:35px}.footer-inner{max-width:1240px;padding:35px 22px;margin:auto;display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:25px}.footer-inner p,.footer-inner a{color:#b8c7da;font-size:13px}.footer-inner h3{margin:0 0 10px;font-size:15px}.copyright{border-top:1px solid #25344b;text-align:center;padding:15px;color:#9caec6;font-size:12px}.page-title{font-size:36px;line-height:1.2;letter-spacing:-1px;margin:0 0 12px}.archive-intro{color:var(--muted);max-width:760px}.archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:22px}.archive-card .article-card-body{padding:17px}.single-layout{display:grid;grid-template-columns:minmax(0,820px) 300px;gap:24px}.post-content{padding:clamp(20px,4vw,46px)}.post-content h1{font-size:clamp(30px,4vw,46px);line-height:1.12;letter-spacing:-1.2px;margin:12px 0}.post-content h2{margin-top:32px;line-height:1.25}.post-content p{font-size:17px;line-height:1.85}.post-featured{width:100%;max-height:470px;object-fit:cover;border-radius:12px;margin:22px 0}.post-content table{border-collapse:collapse;width:100%;font-size:14px}.post-content td,.post-content th{border:1px solid var(--line);padding:10px;text-align:left}.post-content blockquote{border-left:4px solid var(--blue);margin:22px 0;padding:5px 20px;color:#526177}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:14px}.pagination{display:flex;gap:8px;margin:25px 0}.pagination a,.pagination span{padding:8px 13px;background:#fff;border:1px solid var(--line);border-radius:8px}.screen-reader-text{position:absolute;left:-9999px}.empty-state{padding:35px;background:#fff;border-radius:12px}
@media(max-width:1000px){.header-inner{gap:15px}.main-nav{gap:13px}.search-form input{width:110px}.content-layout,.single-layout{grid-template-columns:minmax(0,1fr) 270px}.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1.2fr 1fr}.categories-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.header-inner{flex-wrap:wrap;padding:13px 16px}.brand{font-size:24px}.mobile-toggle{display:block;margin-left:auto}.main-nav{display:none;order:3;width:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 0}.main-nav.is-open{display:flex}.main-nav a{padding:11px 3px;border-top:1px solid #23344d}.search-form{order:4;width:100%}.search-form input{width:100%}.container{padding:20px 15px}.hero-grid,.content-layout,.single-layout{grid-template-columns:1fr}.hero-main{min-height:350px}.hero-copy{padding:24px}.hero-side{grid-template-columns:1fr 1fr}.hero-small{min-height:180px}.hero-small .hero-copy{padding:16px}.hero-small h2{font-size:16px}.article-grid,.archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.article-card-body{padding:12px}.article-card h3{font-size:15px}.sidebar{display:grid;grid-template-columns:1fr;gap:0}.affiliate-banner{align-items:flex-start;flex-direction:column}.footer-inner{grid-template-columns:1fr;padding:28px 18px}.page-title{font-size:30px}}
@media(max-width:430px){.hero-side{grid-template-columns:1fr}.hero-small{min-height:140px}.article-grid,.archive-grid{grid-template-columns:1fr}.categories-grid{grid-template-columns:1fr 1fr}.section-heading h2{font-size:22px}}

/* Plantaotech - Ajuste da HOME */

/* Aproveitar melhor a largura da página */
.home .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
}

/* Distribuir os artigos no espaço disponível */
.home .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Evitar problemas em telas menores */
@media (max-width: 900px) {
    .home .content-layout {
        grid-template-columns: 1fr;
    }

    .home .article-grid {
        grid-template-columns: 1fr;
    }
}

/* PLANTAOTECH - HOME SEM ESPAÇOS VAZIOS */

@media (min-width: 901px) {

  /* Conteúdo ocupa toda a largura */
  .home .content-layout {
    display: block;
  }

  /* Oculta a lateral provisória */
  .home .content-layout > .sidebar {
    display: none;
  }

  /* Artigos organizados em 3 colunas */
  .home .article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  /* Cinco categorias em uma linha */
  .home .categories-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

}

/* Ajustes para tablets */
@media (min-width: 601px) and (max-width: 900px) {
  .home .content-layout {
    display: block;
  }

  .home .content-layout > .sidebar {
    display: none;
  }

  .home .article-grid,
  .home .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ajustes para celulares */
@media (max-width: 600px) {
  .home .content-layout {
    display: block;
  }

  .home .content-layout > .sidebar {
    display: none;
  }

  .home .article-grid,
  .home .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* PLANTAOTECH - DESTAQUE PRINCIPAL MAIS VIVO */

/* Clareia a imagem principal */
.home .hero-main > img {
    filter: brightness(1.18) saturate(1.12);
}

/* Reduz a intensidade do escurecimento principal */
.home .hero-main::before,
.home .hero-main::after {
    opacity: 0.45;
}

/* Mantém a notícia secundária mais escura */
.home .hero-small > img {
    filter: brightness(0.85);
}

/* Preserva a legibilidade do texto */
.home .hero-main .hero-copy,
.home .hero-small .hero-copy {
    position: relative;
    z-index: 2;
}

/* PLANTAOTECH - DESTAQUE SECUNDÁRIO */

@media (min-width: 901px) {

  /* Organiza o conteúdo da notícia secundária */
  .home .hero-small .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    box-sizing: border-box;
  }

  /* Aumenta o título */
  .home .hero-small h2 {
    font-size: clamp(28px, 2.2vw, 38px);
    line-height: 1.2;
    font-weight: 800;
    margin: 16px 0;
  }

  /* Data mais legível */
  .home .hero-small .meta {
    font-size: 15px;
    margin-top: 8px;
  }

}

/* Ajuste para celulares */
@media (max-width: 900px) {
  .home .hero-small h2 {
    font-size: clamp(22px, 5vw, 30px);
    line-height: 1.25;
  }
}

/* PLANTAOTECH - AJUSTE FINAL DO DESTAQUE SIRI */

@media (min-width: 901px) {

  /* Categoria volta ao formato de etiqueta */
  .home .hero-small .category-label {
    align-self: flex-start;
    width: fit-content;
    max-width: 100%;
  }

  /* Ajusta o tamanho do título */
  .home .hero-small h2 {
    font-size: clamp(27px, 2vw, 34px);
    line-height: 1.2;
    margin: 18px 0;
  }

}

