/* ============================================================
   Climaingegneria - Blog Articles CSS
   File: /var/www/html/climaingegneria.it/public_html/assets/blog.css
   Modifica questo file per cambiare lo stile di tutti gli articoli.
   ============================================================ */

/* Font */
/* Variabili brand */
:root {
    --brand:      #2871ba;
    --brand-dark: #1a5a9e;
    --brand-3:    #0d3a6e;
    --accent:     #f25640;
    --text:       #0f1f35;
    --text-2:     #5a6e82;
    --text-3:     #8a9bb0;
    --bg:         #ffffff;
    --bg-2:       #f8f9fc;
    --bg-3:       #e4edf6;
    --border:     #dce6f0;
    --radius:     6px;
    --max-width:  760px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Barlow', sans-serif; background: var(--bg); color: var(--text); line-height: 1.75; overflow-x: hidden; }

/* ── Header ── */
.site-header {
    background: var(--brand-3);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-logo span { color: var(--accent); }

.site-nav a {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin-left: 24px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.site-nav a:hover { color: #fff; }

/* ── Breadcrumb ── */
.breadcrumb-bar {
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 10px 5%;
    font-size: 12px;
    color: var(--text-3);
}

.breadcrumb-bar a { color: var(--text-3); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--brand); }
.breadcrumb-bar span { margin: 0 8px; }

/* ── Container ── */
.article-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* ── Hero image ── */
.hero-image {
    margin-bottom: 36px;
}

.photo-credit {
    font-size: 11px;
    color: var(--text-3);
    text-align: right;
    margin-top: 6px;
}

.photo-credit a { color: var(--text-3); text-decoration: underline; }

/* ── Article meta ── */
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.brand-tag {
    font-family: 'Barlow Condensed', sans-serif;
    background: var(--brand);
    color: #fff;
    padding: 3px 12px;
    border-radius: 2px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article-date { font-size: 13px; color: var(--text-3); }
.article-geo { font-size: 13px; color: var(--text-2); }

/* ── H1 ── */
.article-container h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* ── Article body ── */
.article-body h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--brand-3);
    border-left: 4px solid var(--accent);
    padding-left: 16px;
    margin: 40px 0 16px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
}

.article-body strong { font-weight: 700; color: var(--text); }

.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ── Tags ── */
.article-tags {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--bg-3);
    color: var(--text-2);
    border-radius: 2px;
    border: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Lang switcher ── */
.lang-switcher {
    margin-top: 32px;
    padding: 16px 20px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-switcher-label { font-size: 12px; color: var(--text-3); font-weight: 600; }

.lang-switcher a {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
    text-decoration: none;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-weight: 600;
    transition: all 0.15s;
}

.lang-switcher a.active, .lang-switcher a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ── CTA box ── */
.cta-box {
    margin-top: 48px;
    padding: 36px;
    background: var(--brand-3);
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
}

.cta-box h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 13px 32px;
    border-radius: var(--radius);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s;
}

.cta-btn:hover { background: #e04430; }

/* ── Footer ── */
.article-footer {
    background: var(--brand-3);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px;
    font-size: 12px;
    margin-top: 0;
}

.article-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.article-footer a:hover { color: #fff; }

/* ── Index page ── */
.index-hero {
    background: var(--brand-3);
    padding: 60px 5%;
    text-align: center;
    color: #fff;
}

.index-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.index-hero p { font-size: 16px; color: rgba(255,255,255,0.75); }

.index-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.article-card a { text-decoration: none; color: inherit; display: block; }

.card-body { padding: 20px; }

.card-body h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-body p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.5;
    margin-bottom: 14px;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }

.card-read-more {
    font-size: 13px;
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .site-header { padding: 0 4%; }
    .article-container { padding: 32px 16px 60px; }
    .article-container h1 { font-size: 28px; }
    .article-body h2 { font-size: 20px; }
    .article-body p { font-size: 16px; }
    .cta-box { padding: 24px 16px; }
    .site-nav { display: none; }
}
