/*
Theme Name: Academia do Dinheiro
Theme URI: https://academiadodinheiro.pt
Author: Academia do Dinheiro
Author URI: https://academiadodinheiro.pt
Description: Tema personalizado para a Academia do Dinheiro — educação financeira para portugueses.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: academia-dinheiro
Tags: blog, finance, education, custom
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.single-content ul { list-style: none !important; padding-left: 0 !important; margin-bottom: 1.8rem; }
.single-content ul li { font-size: 16px; line-height: 1.75; color: #000000; margin-bottom: .7rem; padding-left: 1.6rem; position: relative; list-style: none !important; display: block; }
.single-content ul li::before { content: '→'; position: absolute; left: 0; top: 1px; color: #14532d; font-weight: 700; font-style: normal; font-family: 'Outfit', sans-serif; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -3px; }
h2 { font-size: clamp(24px, 3.5vw, 30px); letter-spacing: -1px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); }
h4 { font-size: 16px; }
p { color: #4a4540; line-height: 1.75; }

/* === COLOURS === */
:root {
  --green-dark:   #14532d;
  --green-mid:    #166534;
  --green-light:  #22c55e;
  --green-pale:   #86efac;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;
  --cream:        #f7f5f0;
  --cream-mid:    #ece9e2;
  --text-main:    #111;
  --text-mid:     #4a4540;
  --text-light:   #6b6358;
  --text-faint:   #9c9590;
  --white:        #fff;
}

/* === ANIMATIONS === */
@keyframes blink      { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.6)} }
@keyframes float      { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes gradShift  { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
@keyframes slideL     { from{opacity:0;transform:translateX(-36px)} to{opacity:1;transform:translateX(0)} }
@keyframes slideR     { from{opacity:0;transform:translateX(36px)} to{opacity:1;transform:translateX(0)} }
@keyframes pulseRing  { 0%{transform:scale(.8);opacity:.6} 100%{transform:scale(2.6);opacity:0} }
@keyframes shimBtn    { 0%{background-position:0% 0} 100%{background-position:-200% 0} }
@keyframes fadeUp     { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }

.blink-dot    { animation: blink 1.8s infinite; }
.float-card   { animation: float 4.5s ease-in-out infinite; }
.gradient-text {
  background: linear-gradient(135deg,#14532d,#166534,#22c55e,#15803d,#14532d);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 4s ease infinite;
}
.fade-up { opacity:0; transform:translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* === LAYOUT === */
.container { max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt { background: #fff; }

/* === BUTTONS === */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(90deg,#14532d 0%,#166534 35%,#22c55e 55%,#14532d 100%);
  background-size: 200% 100%;
  color: #fff; padding: 13px 24px; border-radius: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 14px;
  border: none; cursor: pointer;
  transition: background-position .5s, transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  background-position: -100% 0;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20,83,45,.3);
  color: #fff;
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #111;
  padding: 13px 20px; border-radius: 10px;
  font-size: 14px; border: 1px solid #ddd9d0; cursor: pointer;
  transition: all .2s;
}
.btn-outline:hover { border-color: #14532d; color: #14532d; background: #f0fdf4; }

/* === NAV === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--cream-mid);
  transition: all .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-img-wrap { width: 36px; height: 36px; flex-shrink: 0; }
.logo-img-wrap img { width: 36px !important; height: 36px !important; border-radius: 50%; object-fit: cover; display: block; transition: transform .3s; }
.site-logo:hover .logo-img-wrap img { transform: rotate(-6deg) scale(1.06); }
.logo-mark-fallback { width: 36px; height: 36px; background: var(--green-dark); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s; }
.site-logo:hover .logo-mark-fallback { transform: rotate(-6deg) scale(1.06); }
.site-logo { white-space: nowrap; }
.logo-text { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 15px; color: #111; }
.logo-text span { color: var(--green-dark); }
.nav-menu { display: flex; align-items: center; gap: 32px; }
.nav-menu ul, #primary-menu { display: flex !important; align-items: center; gap: 32px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nav-menu li, #primary-menu li { list-style: none !important; display: flex; align-items: center; }
.nav-menu a,
#primary-menu a {
  font-size: 15px; font-weight: 500; color: #000000;
  position: relative; padding-bottom: 2px; transition: color .2s;
}
.nav-menu a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--green-dark); transition: width .25s;
}
.nav-menu a:hover, .nav-menu a.current-menu-item { color: var(--green-dark); }
.nav-menu a:hover::after, .nav-menu a.current-menu-item::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.btn-login {
  font-size: 13px; color: var(--text-light); padding: 8px 14px;
  border-radius: 8px; border: 1px solid #ddd9d0;
  background: transparent; cursor: pointer; transition: all .2s;
}
.btn-login:hover { border-color: var(--green-dark); color: var(--green-dark); }
.nav-cta {
  background: linear-gradient(90deg,#14532d 0%,#166534 35%,#22c55e 55%,#14532d 100%);
  background-size: 200% 100%;
  color: #fff; padding: 9px 18px; border-radius: 8px;
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px;
  border: none; cursor: pointer;
  transition: background-position .5s, transform .2s, box-shadow .2s;
}
.nav-cta:hover { background-position: -100% 0; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,83,45,.25); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: #111; border-radius: 2px; transition: all .3s; display: block; }

/* === HERO === */
.hero {
  background: #fff; padding: 128px 0 80px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--cream-mid);
}
.hero-glow1 {
  position: absolute; top: -100px; right: -80px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle,rgba(134,239,172,.18) 0%,transparent 65%);
  pointer-events: none; animation: float 7s ease-in-out infinite;
}
.hero-glow2 {
  position: absolute; bottom: -80px; left: -60px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle,rgba(20,83,45,.07) 0%,transparent 70%);
  pointer-events: none;
}
.hero-dots {
  background-image: radial-gradient(circle,#ccc9c0 1.2px,transparent 1.2px);
  background-size: 16px 16px; position: absolute; pointer-events: none; opacity: .45;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 64px; align-items: center; position: relative; z-index: 1;
}
.hero-left  { animation: slideL .7s .1s ease both; }
.hero-right { animation: slideR .7s .25s ease both; display: flex; flex-direction: column; gap: 12px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-bg); border: 1px solid var(--green-border);
  color: #15803d; padding: 6px 14px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px; background: var(--green-light);
  border-radius: 50%; flex-shrink: 0; position: relative;
}
.badge-dot::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: var(--green-light); opacity: .5;
  animation: pulseRing 2s ease-out infinite;
}
.hero-title { margin-bottom: 20px; }
.hero-title .line-dim { color: #c4bfb5; font-size: .78em; font-weight: 600; display: block; }
.hero-desc  { font-size: 17px; color: var(--text-light); line-height: 1.8; margin-bottom: 32px; font-weight: 300; max-width: 430px; }
.hero-btns  { display: flex; gap: 12px; align-items: center; margin-bottom: 32px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 12px; }
.avatars    { display: flex; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; background: #e8e4dc;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; margin-left: -8px; box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.av:first-child { margin-left: 0; }
.proof-stars { color: #f59e0b; font-size: 11px; }
.proof-txt   { font-size: 12px; color: var(--text-light); }
.proof-txt strong { color: #111; font-weight: 500; }

/* Hero right cards */
.card-big {
  background: linear-gradient(135deg,#14532d,#15803d);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 20px 48px rgba(20,83,45,.25);
}
.card-big .val { font-family: 'Outfit', sans-serif; font-size: 52px; font-weight: 800; color: #86efac; letter-spacing: -3px; line-height: 1; }
.card-big .lbl { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }
.card-big .pill { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); font-size: 11px; padding: 4px 12px; border-radius: 20px; }
.cards-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card-sm {
  background: #fff; border: 1px solid var(--cream-mid); border-radius: 16px; padding: 16px;
  transition: transform .3s, box-shadow .3s;
}
.card-sm:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
.card-sm .ic  { font-size: 22px; margin-bottom: 8px; }
.card-sm .v   { font-family: 'Outfit', sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.card-sm .l   { font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.quote-card   { background: var(--cream); border: 1px solid var(--cream-mid); border-radius: 16px; padding: 16px; display: flex; gap: 12px; }
.quote-line   { width: 3px; background: var(--green-dark); border-radius: 2px; flex-shrink: 0; }
.quote-text   { font-size: 13px; color: #4a4540; line-height: 1.6; font-style: italic; font-weight: 300; }
.quote-auth   { font-size: 11px; color: var(--text-faint); margin-top: 6px; }

/* === STRIP === */
.strip { background: var(--green-dark); padding: 14px 0; }
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.strip-item  { font-size: 12px; color: rgba(255,255,255,.7); padding: 2px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.strip-item:last-child { border-right: none; }

/* === SEC HEADER === */
.sec-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 2px; color: var(--green-dark); margin-bottom: 8px;
}
.sec-eyebrow::before { content: ''; width: 20px; height: 1.5px; background: var(--green-dark); display: inline-block; }
.sec-title { font-family: 'Outfit', sans-serif; font-size: clamp(24px,3vw,30px); font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.sec-sub   { font-size: 16px; color: var(--text-light); font-weight: 300; margin-bottom: 40px; }

/* === MODULES === */
.mod-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.mod-card {
  border-radius: 16px; padding: 24px; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.mod-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(0,0,0,.1); }
.mc1 { background: linear-gradient(135deg,#ecfdf5,#d1fae5); border-color: #d1fae5; } .mc1:hover { border-color: #6ee7b7; }
.mc2 { background: linear-gradient(135deg,#eff6ff,#dbeafe); border-color: #dbeafe; } .mc2:hover { border-color: #93c5fd; }
.mc3 { background: linear-gradient(135deg,#fffbeb,#fef3c7); border-color: #fef3c7; } .mc3:hover { border-color: #fcd34d; }
.mc4 { background: linear-gradient(135deg,#f5f3ff,#ede9fe); border-color: #ede9fe; } .mc4:hover { border-color: #c4b5fd; }
.mc5 { background: linear-gradient(135deg,#fff7ed,#ffedd5); border-color: #fed7aa; } .mc5:hover { border-color: #fb923c; }
.mod-top  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.mod-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.ic1{background:#dcfce7} .ic2{background:#dbeafe} .ic3{background:#fef3c7} .ic4{background:#ede9fe} .ic5{background:#ffedd5}
.mod-num  { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .5px; opacity: .45; }
.mod-card h3 { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mod-card p  { font-size: 14px; color: var(--text-light); line-height: 1.65; }
.mod-arrow   { margin-top: 16px; font-size: 18px; color: var(--green-dark); font-weight: 700; display: inline-block; transition: transform .2s; }
.mod-card:hover .mod-arrow { transform: translateX(5px); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.stat-card  { text-align: center; padding: 24px; border-radius: 16px; cursor: default; transition: transform .3s, box-shadow .3s; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,83,45,.1); }
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-val  { font-family: 'Outfit', sans-serif; font-size: 42px; font-weight: 800; letter-spacing: -3px; color: var(--green-dark); line-height: 1; }
.stat-lbl  { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* === BLOG / ARTICLES === */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--cream-mid); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.post-card:hover {
  transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.09);
  border-color: var(--green-dark);
}
.post-thumb { height: 200px; overflow: hidden; background: linear-gradient(135deg,#ecfdf5,#d1fae5); position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb-placeholder { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.post-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-tag {
  display: inline-block; background: var(--green-bg);
  color: #15803d; border: 1px solid var(--green-border);
  font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; width: fit-content;
}
.post-tag.cat-fundamentos { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.post-tag.cat-poupar      { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.post-tag.cat-investir    { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.post-tag.cat-impostos    { background: #ede9fe; color: #6d28d9; border-color: #ddd6fe; }
.post-tag.cat-imobiliario { background: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.post-tag.cat-negocios    { background: #f1f0e8; color: #57534e; border-color: #e7e5df; }
.post-card h3 { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card h3 a { color: #111; transition: color .2s; }
.post-card h3 a:hover { color: var(--green-dark); }
.post-excerpt { font-size: 13px; color: var(--text-light); line-height: 1.6; flex: 1; }
.post-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0ede6; }
.post-meta   { font-size: 11px; color: var(--text-faint); }
.post-read   { font-size: 12px; color: var(--green-dark); font-weight: 600; display: flex; align-items: center; gap: 4px; transition: gap .2s; }
.post-card:hover .post-read { gap: 7px; }

/* === SINGLE POST === */
.single-hero { background: #fff; padding: 100px 0 60px; border-bottom: 1px solid var(--cream-mid); }
.single-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.single-content { max-width: 720px; margin: 0 auto; }
.single-content h2 { font-family: 'Outfit', sans-serif; font-size: clamp(22px,3vw,28px); font-weight: 800; letter-spacing: -.5px; color: #111; margin: 3rem 0 1rem; padding-top: 1rem; }
/* Esconde o hr imediatamente antes de um h2 para evitar traço duplo */
.single-content hr + h2,
.single-content .wp-block-separator + h2 { margin-top: 1rem; }
.single-content hr:has(+ h2),
.single-content h3 { font-family: 'Outfit', sans-serif; font-size: clamp(18px,2.5vw,22px); font-weight: 700; color: #111; margin: 2rem 0 .8rem; }
.single-content h4 { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 700; color: #111; margin: 1.5rem 0 .5rem; }
.single-content p { font-size: 17px; line-height: 1.9; color: #000000; margin-bottom: 1.6rem; }
.single-content ol { counter-reset: item; padding-left: 0; margin-bottom: 1.8rem; list-style: none !important; }
.single-content ol li { font-size: 16px; line-height: 1.75; color: #3a3530; margin-bottom: .7rem; padding-left: 2rem; position: relative; counter-increment: item; list-style: none !important; }
.single-content ol li::marker { content: none !important; font-size: 0 !important; }
.single-content ol li::before { content: counter(item); position: absolute; left: 0; width: 22px; height: 22px; background: #14532d; color: #fff; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; top: 2px; font-family: 'Outfit', sans-serif; }
.single-content blockquote { border-left: 4px solid #14532d; padding: 20px 24px; background: #f0fdf4; border-radius: 0 12px 12px 0; margin: 2rem 0; }
.single-content blockquote p { color: #14532d; font-style: italic; margin: 0; font-size: 17px; font-weight: 500; }
.single-content a { color: #14532d; text-decoration: underline; text-underline-offset: 3px; }
.single-content img { border-radius: 12px; margin: 2rem 0; width: 100%; }
.single-content strong { color: #111; font-weight: 700; }
/* Parágrafos que são só uma frase a negrito (avisos importantes) ganham destaque visual */
.single-content p > strong:only-child {
  display: block; background: var(--green-bg); border-left: 4px solid #14532d;
  padding: 14px 18px; border-radius: 0 10px 10px 0; color: #14532d;
}
.single-content table { width: 100%; border-collapse: collapse; margin: 2rem 0; table-layout: fixed;}
.single-content table th { background: #14532d; color: #fff; padding: 12px 16px; font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; text-align: left; word-wrap: break-word;border:1px solid #000000; }
.single-content table td { padding: 12px 16px; font-size: 14px; color: #000000; word-wrap: break-word; vertical-align: middle;}
.single-content table tr:nth-child(even) td { background: #f3efe7; }
.single-content hr, .entry-content hr, .wp-block-separator { border: none !important; border-top: 1px solid #ece9e2 !important; width: 100% !important; max-width: 100% !important; margin: 1.5rem 0 !important; height: 0 !important; }

/* === NEWSLETTER === */
.nl-section { padding: 0 24px 80px; background: transparent; }
.nl-inner { max-width: 860px; margin: 0 auto; }
.nl-section .container { max-width: 1100px; }
.nl-box {
  background: var(--green-dark); border-radius: 20px; padding: 48px;
  position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(20,83,45,.2);
}
.nl-deco1 { position: absolute; top: -60px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.04); pointer-events: none; }
.nl-deco2 { position: absolute; bottom: -80px; left: 30%; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.03); pointer-events: none; }
.nl-euro  { position: absolute; top: 16px; right: 24px; font-family: 'Outfit', sans-serif; font-size: 120px; font-weight: 800; color: rgba(255,255,255,.04); line-height: 1; pointer-events: none; user-select: none; }
.nl-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.nl-eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; color: #86efac; margin-bottom: 12px; }
.nl-box h3  { font-family: 'Outfit', sans-serif; font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 12px; }
.nl-desc    { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; font-weight: 300; }
.nl-perks   { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.nl-perk    { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); }
.perk-icon  { width: 24px; height: 24px; background: rgba(134,239,172,.15); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #86efac; font-size: 12px; font-weight: 700; }
.nl-form    { display: flex; gap: 8px; }
.nl-input   { flex: 1; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-family: 'Outfit', sans-serif; outline: none; transition: all .2s; }
.nl-input::placeholder { color: rgba(255,255,255,.35); }
.nl-input:focus { border-color: rgba(134,239,172,.5); box-shadow: 0 0 0 3px rgba(134,239,172,.1); }
.nl-btn  { background: #86efac; color: #14532d; padding: 12px 20px; border-radius: 10px; border: none; font-size: 13px; font-family: 'Outfit', sans-serif; font-weight: 700; cursor: pointer; white-space: nowrap; transition: all .2s; }
.nl-btn:hover { background: #bbf7d0; transform: translateY(-1px); }
.nl-note { font-size: 11px; color: rgba(255,255,255,.3); margin-top: 8px; }

/* === FOOTER === */
.site-footer { background: #fff; border-top: 1px solid var(--cream-mid); padding: 48px 0; }
.foot-top    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.foot-brand  {}
.foot-logo   { display: flex; align-items: center; gap: 8px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.foot-logo span { color: var(--green-dark); }
.foot-desc   { font-size: 12px; color: var(--text-faint); max-width: 200px; line-height: 1.6; }
.foot-links  { display: flex; gap: 64px; }
.foot-col h5 { font-family: 'Outfit', sans-serif; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.foot-col a  { display: block; font-size: 12px; color: var(--text-faint); margin-bottom: 8px; transition: color .2s; }
.foot-col a:hover { color: var(--green-dark); }
.foot-bottom { border-top: 1px solid #f0ede6; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.foot-copy   { font-size: 12px; color: var(--text-faint); }

/* === SIDEBAR === */
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.widget { background: #fff; border: 1px solid var(--cream-mid); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.widget-title { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--cream-mid); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .mod-grid, .mod-grid-5 { grid-template-columns: repeat(2,1fr); }
  .posts-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-right   { display: none; }
  .nl-grid      { grid-template-columns: 1fr; }
  .foot-top     { flex-direction: column; gap: 32px; }
  .foot-links   { gap: 32px; }
  .nav-menu     { display: none; }
  .btn-login    { display: none; }
  .nav-cta      { display: none; }
  .nav-toggle   { display: flex; }
  .stats-grid   { grid-template-columns: repeat(2,1fr); }
  .mod-grid     { grid-template-columns: 1fr 1fr; }
  .posts-grid   { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .nl-box { padding: 32px 24px; }
  .strip-item { padding: 4px 12px; font-size: 11px; }
}
@media (max-width: 480px) {
  .mod-grid   { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-row  { grid-template-columns: 1fr 1fr; }
}

/* === BREVO FORM STYLES === */
.sib-form { background: transparent !important; padding: 0 !important; }
.sib-form .form__entry { margin-bottom: 8px !important; }
.sib-form input[type="email"],
.sib-form input[type="text"] {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-family: 'Outfit', sans-serif !important;
  outline: none !important;
  margin-bottom: 8px !important;
}
.sib-form input[type="email"]::placeholder,
.sib-form input[type="text"]::placeholder { color: rgba(255,255,255,.35) !important; }
.sib-form input[type="email"]:focus,
.sib-form input[type="text"]:focus {
  border-color: rgba(134,239,172,.5) !important;
  box-shadow: 0 0 0 3px rgba(134,239,172,.1) !important;
}
.sib-form button[type="submit"],
.sib-form .sib-form-block__button {
  background: #86efac !important;
  color: #14532d !important;
  padding: 12px 20px !important;
  border-radius: 10px !important;
  border: none !important;
  font-size: 13px !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  transition: all .2s !important;
}
.sib-form button[type="submit"]:hover { background: #bbf7d0 !important; }
.sib-form .entry__label { color: rgba(255,255,255,.7) !important; font-size: 12px !important; margin-bottom: 4px !important; }
.sib-form .sib-form-message-panel { border-radius: 10px !important; margin-top: 8px !important; }

/* === BREVO FORM OVERRIDE === */
.nl-box .sib-form,
.nl-box .sib-form-block { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.nl-box .sib-form .form__entry { margin-bottom: 8px !important; }
.nl-box .sib-form-block__form { display: flex !important; gap: 8px !important; flex-direction: row !important; flex-wrap: nowrap !important; }
.nl-box .sib-form input[type="email"] {
  flex: 1 !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-family: 'Outfit', sans-serif !important;
  outline: none !important;
  margin: 0 !important;
  width: auto !important;
}
.nl-box .sib-form input[type="email"]::placeholder { color: rgba(255,255,255,.35) !important; }
.nl-box .sib-form input[type="email"]:focus { border-color: rgba(134,239,172,.5) !important; box-shadow: 0 0 0 3px rgba(134,239,172,.1) !important; }
.nl-box .sib-form button[type="submit"] {
  background: #86efac !important; color: #14532d !important;
  padding: 12px 20px !important; border-radius: 10px !important;
  border: none !important; font-size: 13px !important;
  font-family: 'Outfit', sans-serif !important; font-weight: 700 !important;
  cursor: pointer !important; white-space: nowrap !important;
  width: auto !important; flex-shrink: 0 !important;
}
.nl-box .sib-form button[type="submit"]:hover { background: #bbf7d0 !important; }
.nl-box .sib-form .entry__label { display: none !important; }
.nl-box .sib-form .sib-form-message-panel { border-radius: 10px !important; margin-top: 8px !important; }


/* === ACCESSIBILITY: sr-only === */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* === STRIP LIST === */
.strip-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }

/* === SECTION CTA === */
.section-cta { text-align: center; margin-top: 40px; }

/* === FOOTER LOGO === */
.foot-logo-img { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.foot-logo-mark { width: 28px; height: 28px; background: #14532d; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* === SINGLE POST — refactored classes === */
.single-hero-wrap { background: #fff; padding: 100px 24px 48px; border-bottom: 1px solid #ece9e2; }
.single-hero-inner { max-width: 1100px; margin: 0 auto; }

.single-breadcrumb { font-size: 12px; color: #9c9590; margin-bottom: 16px; }
.single-breadcrumb a { color: #9c9590; transition: color .2s; }
.single-breadcrumb a:hover { color: #14532d; }
.single-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.single-meta-item { font-size: 12px; color: #9c9590; }
.single-title { font-family: 'Outfit', sans-serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin-bottom: 20px; color: #111; }
.single-lead { font-size: 17px; color: #6b6358; line-height: 1.75; border-left: 3px solid #14532d; padding-left: 16px; margin: 0; }

.single-thumb-wrap { background: #fff; padding: 0 24px; }
.single-thumb-wrap .container { max-width: 1100px; }
.single-thumb-img { width: 100%; height: auto; display: block; border-radius: 16px; }

.single-body-wrap { background: #fff; padding: 48px 24px 64px; }
.single-layout { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.single-content-col {}
.single-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }

/* Sidebar widgets */
.sidebar-widget { background: #fff; border: 1px solid #ece9e2; border-radius: 14px; padding: 20px; }
.sidebar-widget-title { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 800; color: #111; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* TOC */
.toc-list { list-style: none; padding: 0; margin: 0; }
.toc-item { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.toc-num { font-size: 11px; font-weight: 700; color: #fff; font-family: 'Outfit', sans-serif; background: #14532d; min-width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toc-link { font-size: 13px; color: #4a4540; text-decoration: none; line-height: 1.4; transition: color .2s; }
.toc-link:hover, .toc-link.toc-active { color: #14532d; }
.toc-link.toc-active { font-weight: 600; }

/* Related articles */
.related-item { display: flex; gap: 10px; text-decoration: none; margin-bottom: 12px; padding-bottom: 12px; }
.related-item-sep { border-bottom: 1px solid #f0ede6; }
.related-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.related-thumb-placeholder { width: 52px; height: 52px; background: linear-gradient(135deg,#ecfdf5,#d1fae5); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.related-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600; color: #111; line-height: 1.4; transition: color .2s; }
.related-item:hover .related-title { color: #14532d; }

/* Author box */
.single-author-box { margin-top: 48px; padding: 20px 24px; background: #fff; border-radius: 14px; border: 1px solid #ece9e2; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.single-author-info { display: flex; align-items: center; gap: 12px; }
.single-author-avatar { width: 44px; height: 44px; background: #14532d; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.single-author-avatar span { color: #86efac; font-size: 16px; font-weight: 800; font-family: 'Outfit', sans-serif; }
.single-author-name { font-size: 14px; font-weight: 700; color: #111; font-family: 'Outfit', sans-serif; }
.single-author-role { font-size: 12px; color: #9c9590; }
.single-share { display: flex; align-items: center; gap: 8px; }
.single-share-label { font-size: 12px; color: #9c9590; }
.share-btn { font-size: 12px; font-weight: 700; color: #fff; padding: 7px 16px; border-radius: 20px; text-decoration: none; transition: opacity .2s; }
.share-btn:hover { opacity: .85; }
.share-x  { background: #14532d; }
.share-fb { background: #1877f2; }

/* Post navigation */
.single-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.post-nav-card { background: #fff; border: 1px solid #ece9e2; border-radius: 12px; padding: 16px; text-decoration: none; display: block; transition: border-color .2s, box-shadow .2s; }
.post-nav-card:hover { border-color: #14532d; box-shadow: 0 4px 16px rgba(20,83,45,.08); }
.post-nav-next { text-align: right; }
.post-nav-dir { font-size: 11px; color: #9c9590; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.post-nav-title { font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 700; color: #14532d; line-height: 1.4; }

/* mod5-grid — movido do inline do front-page para aqui */
.mod5-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mod5-grid .mod-card:nth-child(4) { grid-column: 1; }
.mod5-grid .mod-card:nth-child(5) { grid-column: 2; }

/* === PILARES: caminho conectado na horizontal (5 pilares) === */
.pilares-path-h {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.path-h-item {
  flex: 1; min-width: 160px; text-decoration: none; padding: 8px; border-radius: 14px; transition: background .15s;
}
.path-h-item:hover { background: var(--cream-mid); }
.path-h-row { display: flex; align-items: center; margin-bottom: 14px; }
.path-h-icon {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0; z-index: 1;
}
.path-h-line {
  height: 2px; flex: 1; margin-left: -2px;
  background: repeating-linear-gradient(90deg, #c7d9cc 0 6px, transparent 6px 12px);
}
.path-h-item-last .path-h-row { margin-right: 48px; }
.path-h-step { font-size: 11px; font-weight: 700; letter-spacing: .5px; margin-bottom: 4px; }
.path-h-item h3 { font-size: 16px; color: #111; margin: 0; }
@media (max-width: 900px) {
  .pilares-path-h { flex-wrap: nowrap; }
  .path-h-item { min-width: 200px; }
}

/* === NEWSLETTER TEMPLATE PART === */
.nl-section { padding: 0 0 80px; background: transparent; }
.nl-form-wrapper { position: relative; }
.nl-success {
  background: rgba(255,255,255,.1); border: 1px solid rgba(134,239,172,.3);
  border-radius: 10px; padding: 20px; text-align: center;
}

/* === RESPONSIVE — single === */
@media (max-width: 900px) {
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
}
@media (max-width: 768px) {
  .mod5-grid { grid-template-columns: 1fr 1fr; }
  .mod5-grid .mod-card:nth-child(4),
  .mod5-grid .mod-card:nth-child(5) { grid-column: auto; }
  .single-post-nav { grid-template-columns: 1fr; }
  .single-hero-wrap { padding-top: 80px; }
}
@media (max-width: 480px) {
  .mod5-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE-FIRST ADDITIONS — adicionado na otimização mobile
   ============================================================ */

/* Previne zoom no input em iOS (font-size >= 16px) */
@media (max-width: 768px) {
  input[type="email"],
  input[type="text"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Melhora tap targets em toda a navegação */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 8px;
  transition: background .2s;
}
.nav-toggle:hover { background: #f7f5f0; }

/* Container padding menor em mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* Section padding menor em mobile */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .sec-title { font-size: clamp(22px, 5vw, 28px); }
}

/* Evita overflow horizontal em mobile */
body { overflow-x: hidden; }