/* ================================================
   VALETRADE BLOG — Shared Stylesheet
   Applies to: posts/*.html and categoria/*.html
   ================================================ */

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; color:#1A1A1A; background:#fff; line-height:1.6; }
img { max-width:100%; display:block; }
a { text-decoration:none; color:inherit; }

:root {
  --red: #C8102E;
  --dark: #1A1A1A;
  --gray: #555;
  --gray-light: #999;
  --bg: #F5F6F8;
  --border: #E4E6EA;
  --white: #fff;
}

/* ── HEADER ── */
.header {
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-wrap { display:flex; align-items:center; flex-shrink:0; }
.logo-wrap img { width:160px; height:auto; }
.header-nav { display:flex; align-items:center; gap:1.5rem; }
.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ccc;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.header-nav a:hover { color:var(--white); border-bottom-color:var(--red); }
.header-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
  border-radius: 6px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.header-cta:hover { background: #a50e25 !important; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--gray-light);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--gray-light); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-current { color: var(--dark); font-weight: 500; }

/* ── POST LAYOUT ── */
.post-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 2rem 64px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* ── ARTICLE ── */
.article-header { margin-bottom: 32px; }
.article-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--red);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 4px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.article-meta {
  font-size: 0.83rem;
  color: var(--gray-light);
  padding-bottom: 20px;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta span { display:flex; align-items:center; gap:4px; }

.article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 36px;
  background: #eee;
}

/* ── ARTICLE BODY TYPOGRAPHY ── */
.article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--red);
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}
.article-body p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 18px;
}
.article-body ul, .article-body ol {
  margin: 14px 0 18px 24px;
}
.article-body li {
  font-size: 1rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 8px;
}
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  background: var(--bg);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-style: italic;
  color: #555;
}

/* ── TAGS ── */
.article-tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.article-tags-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gray-light);
  margin-right: 4px;
}
.tag-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  transition: background .2s, color .2s;
}
.tag-pill:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── CTA BOX (bottom of article) ── */
.article-cta {
  background: linear-gradient(135deg, #8c0020, var(--red));
  color: var(--white);
  padding: 32px;
  border-radius: 10px;
  margin-top: 40px;
  text-align: center;
}
.article-cta h3 { font-size:1.2rem; font-weight:800; margin-bottom:10px; }
.article-cta p { font-size:0.95rem; opacity:.88; margin-bottom:20px; line-height:1.6; }
.article-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: 6px;
  transition: transform .2s;
}
.article-cta a:hover { transform: translateY(-2px); }

/* ── SIDEBAR ── */
.sidebar { display:flex; flex-direction:column; gap:24px; position:sticky; top:90px; }

.sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  border-top: 3px solid var(--red);
}
.sidebar-box h3 {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--dark);
  margin-bottom: 16px;
}
.sidebar-box ul { list-style:none; }
.sidebar-box li { margin-bottom: 12px; }
.sidebar-box li:last-child { margin-bottom:0; }
.sidebar-box a {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.5;
  transition: color .2s;
  display: block;
}
.sidebar-box a:hover { color: var(--red); }

.sidebar-cats a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.sidebar-cats a:last-child { border-bottom: none; }
.sidebar-cats a:hover { color: var(--red); }
.sidebar-cats a::before { content: '›'; color: var(--red); font-weight: 700; }

.sidebar-cta {
  background: linear-gradient(135deg, #8c0020, var(--red));
  color: var(--white);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.sidebar-cta h3 { font-size:1rem; font-weight:800; margin-bottom:10px; color:var(--white); }
.sidebar-cta p { font-size:0.85rem; opacity:.85; margin-bottom:18px; line-height:1.6; }
.sidebar-cta a {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 6px;
  transition: transform .2s;
}
.sidebar-cta a:hover { transform: translateY(-2px); }

/* ── CATEGORY PAGE ── */
.cat-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.cat-hero-inner { max-width:600px; margin:0 auto; padding:0 2rem; }
.cat-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 10px;
}
.cat-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}
.cat-hero p { font-size:1rem; color:var(--gray); }
.cat-hero::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--red);
  margin: 20px auto 0;
  border-radius: 2px;
}

.cat-posts-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 2rem 64px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.1);
  border-color: rgba(200,16,46,0.25);
}
.post-card-img { height:200px; overflow:hidden; background:#eee; flex-shrink:0; }
.post-card-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.post-card:hover .post-card-img img { transform:scale(1.06); }
.post-card-body { padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.post-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--red);
  border: 1px solid rgba(200,16,46,0.3);
  border-radius: 4px;
  padding: 3px 9px;
  margin-bottom: 10px;
  width: fit-content;
}
.post-title {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color .2s;
}
.post-card:hover .post-title { color: var(--red); }
.post-excerpt { font-size:0.855rem; color:var(--gray); line-height:1.65; flex:1; margin-bottom:16px; }
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--gray-light);
  border-top: 1px solid var(--border);
  padding-top: 13px;
  margin-top: auto;
}
.post-link-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 3px;
  transition: gap .2s;
}
.post-link-btn:hover { gap: 7px; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: #aaa; padding: 56px 0 0; }
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 44px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { font-size:0.875rem; color:#777; margin-top:16px; line-height:1.75; max-width:270px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 16px;
}
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:10px; }
.footer-col a { font-size:0.875rem; color:#777; transition:color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #555;
}
.footer-bottom a { color: var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-wrapper { grid-template-columns: 1fr; }
  .sidebar { position:static; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-nav { display:none; }
  .article-title { font-size:1.6rem; }
  .article-hero { height:240px; }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction:column; gap:8px; text-align:center; }
}
