/*
Theme Name: EVCINA Media Pro
Theme URI: https://evcina.it
Author: EVCINA
Description: Tema WordPress stile media automotive per EVCINA: news, recensioni, guide SEO e monetizzazione.
Version: 2.0.0
Text Domain: evcina
*/

:root{
  --green:#18b957;
  --green2:#0a8f43;
  --dark:#071117;
  --ink:#101828;
  --muted:#667085;
  --line:#e6eaf0;
  --bg:#f4f7f8;
  --card:#ffffff;
  --red:#e11d48;
  --yellow:#f59e0b;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--ink);
}
a{color:inherit;text-decoration:none}
a:hover{color:var(--green2)}
img{max-width:100%;display:block}
.container{width:min(1220px,94%);margin:0 auto}
.main-container{padding-top:24px}

/* Top bar */
.topbar{
  background:var(--dark);
  color:#d9e2ec;
  font-size:13px;
}
.topbar-inner{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.topbar a{color:#d9e2ec}
.topbar-links{display:flex;gap:16px}
.trending-label{
  color:#fff;
  background:var(--green);
  padding:5px 9px;
  border-radius:999px;
  font-weight:800;
  margin-right:8px;
}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  z-index:99;
}
.header-main{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:950;
  font-size:29px;
  color:var(--green);
  letter-spacing:-.7px;
}
.site-logo img{height:45px;width:auto}
.header-actions{display:flex;align-items:center;gap:14px}
.header-search input{
  width:210px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:11px 15px;
  outline:none;
}
.header-search input:focus{border-color:var(--green)}
.cta-btn{
  background:var(--green);
  color:#fff!important;
  border-radius:999px;
  padding:11px 16px;
  font-weight:900;
  font-size:14px;
}
.main-nav-wrap{border-top:1px solid var(--line)}
.main-nav{
  height:48px;
  display:flex;
  align-items:center;
  gap:24px;
  overflow-x:auto;
  white-space:nowrap;
  font-size:14px;
  font-weight:900;
  text-transform:uppercase;
}
.main-nav a{color:#1f2937}
.main-nav a:hover{color:var(--green2)}

/* Ad slots */
.ad-slot{
  background:repeating-linear-gradient(45deg,#f0f3f5,#f0f3f5 10px,#e9edf1 10px,#e9edf1 20px);
  border:1px dashed #c8d0d8;
  color:#7a8794;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-size:13px;
  font-weight:700;
}
.ad-top{height:90px;margin:0 0 24px}
.ad-sidebar{height:280px;margin-bottom:24px}

/* Breaking news */
.breaking{
  background:#fff;
  border:1px solid var(--line);
  border-left:6px solid var(--red);
  border-radius:16px;
  padding:14px 18px;
  display:flex;
  gap:12px;
  align-items:center;
  margin-bottom:24px;
}
.breaking strong{color:var(--red);text-transform:uppercase}

/* Hero */
.hero-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:24px;
  margin-bottom:30px;
}
.hero-main,.hero-side-card{
  position:relative;
  overflow:hidden;
  background:#111;
  color:#fff;
  border-radius:24px;
}
.hero-main{height:540px}
.hero-main img,.hero-side-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.86;
}
.hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:42px;
  background:linear-gradient(to top,rgba(0,0,0,.78),rgba(0,0,0,.08));
}
.hero-overlay h1{
  margin:12px 0;
  font-size:46px;
  line-height:1.06;
  letter-spacing:-1px;
  max-width:780px;
}
.hero-overlay p{color:#eef2f6;font-size:18px;max-width:680px}
.kicker{
  display:inline-flex;
  width:max-content;
  align-items:center;
  background:var(--green);
  color:#fff;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  text-transform:uppercase;
}
.hero-side{
  display:grid;
  gap:24px;
}
.hero-side-card{height:258px}
.hero-side-card .hero-overlay{padding:24px}
.hero-side-card h2{
  font-size:24px;
  line-height:1.15;
  margin:10px 0 0;
}

/* Topic pills */
.topic-pills{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:4px 0 34px;
}
.topic-pills a{
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 17px;
  font-weight:900;
  color:var(--green2);
  box-shadow:0 6px 20px rgba(0,0,0,.04);
}

/* Layout */
.content-layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:34px;
}
.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin:0 0 22px;
  border-bottom:3px solid var(--dark);
}
.section-title h2{
  margin:0;
  background:var(--dark);
  color:#fff;
  padding:10px 14px;
  border-radius:14px 14px 0 0;
  font-size:24px;
}
.section-title a{
  font-weight:900;
  color:var(--green2);
  padding-bottom:8px;
}

/* News cards */
.news-list{display:grid;gap:22px}
.news-card{
  background:#fff;
  border-radius:22px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
  overflow:hidden;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:0;
}
.news-card img{
  width:100%;
  height:205px;
  object-fit:cover;
}
.news-body{padding:20px}
.meta-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}
.category-label a,.category-label{
  color:var(--green2);
  text-transform:uppercase;
  font-size:12px;
  font-weight:950;
}
.news-card h3,.news-card h2{
  font-size:24px;
  line-height:1.23;
  margin:8px 0;
}
.news-card p{
  color:var(--muted);
  line-height:1.6;
  margin:0 0 14px;
}
.read-more{
  color:var(--green2);
  font-weight:950;
}

/* Guide grid */
.guide-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin:34px 0;
}
.guide-card{
  background:#fff;
  border-radius:20px;
  padding:22px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);
  border-top:5px solid var(--green);
}
.guide-card h3{font-size:21px;margin:0 0 10px}
.guide-card p{color:var(--muted);line-height:1.55}

/* Sidebar */
.sidebar{position:relative}
.sidebar-sticky{
  position:sticky;
  top:150px;
}
.widget{
  background:#fff;
  border-radius:22px;
  padding:24px;
  margin-bottom:24px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
}
.widget h3{
  margin:0 0 16px;
  font-size:22px;
}
.widget ul{
  padding-left:18px;
  margin:0;
  line-height:1.8;
}
.widget li{margin-bottom:8px}
.popular-list{
  counter-reset:item;
  list-style:none!important;
  padding-left:0!important;
}
.popular-list li{
  counter-increment:item;
  display:grid;
  grid-template-columns:34px 1fr;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:12px 0;
  margin:0;
}
.popular-list li:before{
  content:counter(item);
  background:var(--dark);
  color:#fff;
  width:30px;
  height:30px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}
.newsletter{
  background:#071f16;
  color:#fff;
}
.newsletter p{color:#d6f5e1}
.newsletter input{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  margin:10px 0;
}
.newsletter button{
  width:100%;
  padding:14px;
  border-radius:12px;
  border:none;
  background:var(--green);
  color:#fff;
  font-weight:950;
}

/* Brand hub */
.brand-hub{margin:46px 0}
.brand-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:16px;
}
.brand-grid a{
  background:#fff;
  padding:24px;
  border-radius:18px;
  text-align:center;
  font-weight:950;
  box-shadow:0 8px 24px rgba(16,24,40,.05);
}
.brand-grid a:hover{
  background:var(--dark);
  color:#fff;
}

/* Archive */
.archive-header{
  background:#fff;
  border-radius:24px;
  padding:34px;
  margin-bottom:28px;
  box-shadow:0 8px 28px rgba(16,24,40,.06);
}
.archive-header h1{font-size:38px;margin:0 0 10px}
.archive-header p{color:var(--muted);font-size:17px}
.archive-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
.archive-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
}
.archive-card img{
  height:210px;
  width:100%;
  object-fit:cover;
}
.archive-card-body{padding:20px}
.archive-card h2{font-size:22px;line-height:1.25;margin:8px 0}
.archive-card p{color:var(--muted);line-height:1.55}
.pagination{margin:34px 0}

/* Article */
.breadcrumb{
  font-size:14px;
  color:#6b7280;
  margin:0 0 22px;
}
.breadcrumb a{color:var(--green2);font-weight:800}
.article-layout{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:34px;
}
.article-page{
  background:#fff;
  border-radius:24px;
  padding:36px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
}
.article-header h1{
  font-size:48px;
  line-height:1.08;
  margin:12px 0;
  letter-spacing:-1px;
}
.article-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  margin-bottom:24px;
}
.article-image{
  width:100%;
  border-radius:22px;
  margin:24px 0;
}
.article-content{
  font-size:18px;
  line-height:1.85;
  color:#202124;
}
.article-content h2{font-size:31px;line-height:1.2;margin-top:38px}
.article-content h3{font-size:25px;margin-top:30px}
.article-content p{margin-bottom:20px}
.article-content blockquote{
  border-left:5px solid var(--green);
  background:#f0fbf4;
  border-radius:14px;
  padding:18px 22px;
  margin:28px 0;
}
.article-footer{
  margin-top:34px;
  padding-top:20px;
  border-top:1px solid var(--line);
}
.tag-cloud a,.tags a{
  display:inline-block;
  margin:5px 6px 5px 0;
}

/* Pages */
.page-content,.not-found{
  background:#fff;
  padding:36px;
  border-radius:24px;
  box-shadow:0 8px 30px rgba(16,24,40,.06);
}
.page-content h1,.not-found h1{font-size:40px;margin-top:0}

/* Footer */
.site-footer{
  background:var(--dark);
  color:#cbd5e1;
  margin-top:64px;
  padding-top:44px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:32px;
}
.footer-grid h3,.footer-grid h4{color:#fff}
.footer-grid h3{font-size:30px;margin:0 0 12px;color:var(--green)}
.footer-grid a{
  display:block;
  margin-bottom:10px;
  color:#cbd5e1;
}
.footer-grid a:hover{color:var(--green)}
.footer-bottom{
  border-top:1px solid #1f2a35;
  text-align:center;
  padding:20px;
  margin-top:34px;
  color:#94a3b8;
}

/* Responsive */
@media(max-width:1024px){
  .hero-grid,.content-layout,.article-layout,.news-card,.archive-grid,.guide-grid,.footer-grid{
    grid-template-columns:1fr;
  }
  .sidebar-sticky{position:static}
  .hero-main{height:460px}
  .hero-overlay h1,.article-header h1{font-size:34px}
  .brand-grid{grid-template-columns:repeat(2,1fr)}
  .header-search,.cta-btn{display:none}
}
@media(max-width:720px){
  .topbar{display:none}
  .header-main{min-height:70px}
  .site-logo{font-size:24px}
  .main-nav{gap:18px}
  .hero-main{height:420px}
  .hero-overlay{padding:26px}
  .hero-side-card{height:240px}
  .article-page{padding:24px}
}
