/* ============================================
   Casa Obàtálá — blog.css
   Stili per gli articoli del blog
   v1.0 — Novembre 2026
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fafafa; color: #1a1a1a; padding-top: 70px; }

/* ============================================
   NAVIGAZIONE
   ============================================ */

nav { position: fixed; top: 0; width: 100%; padding: 1rem 1.2rem; z-index: 1000; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(139,69,19,0.1); }
.logo { font-family: 'Playfair Display', serif; text-decoration: none; font-size: 1.2rem; background: linear-gradient(135deg, #8B4513, #B8860B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: none; gap: 2rem; list-style: none; }
.nav-links a { color: #1a1a1a; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: #8B4513; }
.menu-toggle { display: flex; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background: #8B4513; }
.mobile-menu { display: none; position: fixed; top: 58px; left: 0; right: 0; background: #fff; padding: 1rem; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.mobile-menu.active { display: block; }
.mobile-menu a { display: block; padding: 0.9rem 0; color: #1a1a1a; text-decoration: none; border-bottom: 1px solid rgba(139,69,19,0.08); }

/* ============================================
   HEADER ARTICOLO
   ============================================ */

.article-header { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; text-align: center; }
.article-category { display: inline-block; background: linear-gradient(135deg, #8B4513, #B8860B); color: white; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.article-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.2; margin-bottom: 1.5rem; color: #1a1a1a; }
.article-meta { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; color: #6b5d4f; font-size: 0.9rem; }
.article-meta span { display: flex; align-items: center; gap: 0.5rem; }

/* ============================================
   IMMAGINE DI COPERTINA
   ============================================ */

.featured-image { max-width: 1000px; margin: 0 auto 3rem; padding: 0 1rem; }
.featured-image img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 10px 40px rgba(139,69,19,0.15); }
.featured-image figcaption { text-align: center; margin-top: 1rem; color: #6b5d4f; font-size: 0.85rem; font-style: italic; }

/* ============================================
   CONTENUTO ARTICOLO
   ============================================ */

.article-content { max-width: 750px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.article-content p { font-size: 1.1rem; line-height: 1.9; margin-bottom: 1.8rem; color: #2a2a2a; }
.article-content h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #8B4513; margin: 3rem 0 1.5rem; font-weight: 400; }
.article-content h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: #8B4513; margin: 2.5rem 0 1rem; font-weight: 400; }
.article-content ul, .article-content ol { margin: 1.5rem 0; padding-left: 2rem; }
.article-content li { font-size: 1.05rem; line-height: 1.8; margin-bottom: 0.8rem; color: #2a2a2a; }
.article-content blockquote { border-left: 4px solid #B8860B; padding: 1.5rem 2rem; margin: 2rem 0; background: rgba(139,69,19,0.04); border-radius: 0 12px 12px 0; font-style: italic; font-size: 1.15rem; color: #6b5d4f; }
.article-content a { color: #8B4513; text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s; }
.article-content a:hover { color: #B8860B; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 2rem 0; }
.article-content strong { color: #8B4513; }
.article-content em { color: #6b5d4f; }
.article-content hr { border: none; border-top: 1px solid rgba(139,69,19,0.15); margin: 3rem 0; }

/* ============================================
   HIGHLIGHT BOX
   ============================================ */

.highlight-box { background: linear-gradient(135deg, rgba(139,69,19,0.06), rgba(184,134,11,0.06)); border: 1px solid rgba(184,134,11,0.2); border-radius: 12px; padding: 2rem; margin: 2.5rem 0; }
.highlight-box p { margin-bottom: 0.8rem; }
.highlight-box p:last-child { margin-bottom: 0; }

/* ============================================
   FAQ
   ============================================ */

.faq-section { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(139,69,19,0.15); }
.faq-section h2 { margin-top: 0; }
.faq-item { background: #fff; border: 1px solid rgba(139,69,19,0.15); border-radius: 12px; margin-bottom: 0.8rem; overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.4rem; position: relative; font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #8B4513; line-height: 1.5; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: #B8860B; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:focus-visible { outline: 2px solid #B8860B; outline-offset: -2px; }
.faq-answer { padding: 0 1.4rem 1.2rem; }
.faq-answer p { font-size: 1rem; line-height: 1.8; margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================
   TAGS
   ============================================ */

.article-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(139,69,19,0.15); }
.article-tags span { font-size: 0.9rem; color: #6b5d4f; }
.tag { display: inline-block; background: rgba(139,69,19,0.08); color: #8B4513; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.8rem; text-decoration: none; transition: all 0.3s; }
.tag:hover { background: #8B4513; color: white; }

/* ============================================
   SHARE BUTTONS
   ============================================ */

.share-section { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(139,69,19,0.15); }
.share-section h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #8B4513; margin-bottom: 1rem; font-weight: 400; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.share-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; transition: all 0.3s; border: none; cursor: pointer; }
.share-icon:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.share-icon svg { width: 20px; height: 20px; fill: white; }
.share-icon.whatsapp { background: #25D366; }
.share-icon.telegram { background: #0088cc; }
.share-icon.facebook { background: #1877F2; }
.share-icon.twitter { background: #1a1a1a; }
.share-icon.linkedin { background: #0A66C2; }
.share-icon.email { background: #8B4513; }
.share-icon.copy-link { background: rgba(139,69,19,0.12); }
.share-icon.copy-link svg { fill: #8B4513; }
.share-icon.copy-link:hover { background: #8B4513; }
.share-icon.copy-link:hover svg { fill: white; }
.share-icon.copied { background: #25D366 !important; }
.share-icon.copied svg { fill: white !important; }

/* ============================================
   AUTHOR BOX
   ============================================ */

.author-box { display: flex; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid rgba(139,69,19,0.15); border-radius: 16px; padding: 2rem; margin-top: 3rem; box-shadow: 0 4px 20px rgba(139,69,19,0.08); }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #8B4513, #B8860B); display: flex; align-items: center; justify-content: center; color: white; font-family: 'Playfair Display', serif; font-size: 2rem; flex-shrink: 0; }
.author-info h4 { font-family: 'Playfair Display', serif; color: #8B4513; font-size: 1.2rem; margin-bottom: 0.5rem; }
.author-info p { font-size: 0.9rem; color: #6b5d4f; line-height: 1.6; }
.author-info a { color: #8B4513; }

/* ============================================
   ARTICOLI CORRELATI
   ============================================ */

.related-articles { max-width: 900px; margin: 0 auto; padding: 4rem 1.5rem; }
.related-articles h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: #8B4513; text-align: center; margin-bottom: 2rem; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related-card { background: #fff; border: 1px solid rgba(139,69,19,0.12); border-radius: 12px; padding: 1.5rem; text-decoration: none; transition: all 0.3s; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(139,69,19,0.12); }
.related-card h4 { font-family: 'Playfair Display', serif; color: #1a1a1a; font-size: 1.1rem; margin-bottom: 0.5rem; }
.related-card p { color: #6b5d4f; font-size: 0.85rem; line-height: 1.5; }
.related-card .date { font-size: 0.75rem; color: #8B4513; margin-top: 0.8rem; }

/* ============================================
   CTA BOX
   ============================================ */

.cta-box { text-align: center; padding: 3rem 2rem; background: linear-gradient(135deg, rgba(139,69,19,0.06), rgba(184,134,11,0.06)); border-radius: 16px; margin-top: 3rem; }
.cta-box h4 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #8B4513; margin-bottom: 1rem; }
.cta-box p { color: #2a2a2a; margin-bottom: 1.5rem; }
.cta-button { display: inline-block; padding: 1rem 2rem; background: linear-gradient(135deg, #8B4513, #A0522D); color: white !important; text-decoration: none; border-radius: 50px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.3s; }
.cta-button:hover { background: linear-gradient(135deg, #A0522D, #B8860B); transform: translateY(-2px); }

/* ============================================
   BACK BUTTON
   ============================================ */

.back-button { display: inline-block; margin: 2rem auto; padding: 0.9rem 1.8rem; background: linear-gradient(135deg, #8B4513, #A0522D); color: white; text-decoration: none; border-radius: 50px; font-size: 0.85rem; text-transform: uppercase; }
.button-container { text-align: center; padding-bottom: 3rem; }

/* ============================================
   FOOTER
   ============================================ */

footer { text-align: center; padding: 3rem 1rem; background: #f8f6f3; border-top: 1px solid rgba(139,69,19,0.1); }
footer p { color: #6b5d4f; font-size: 0.8rem; line-height: 1.7; }
footer a { color: #6b5d4f; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (min-width: 600px) {
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    body { padding-top: 80px; }
    nav { padding: 1.2rem 2rem; }
    .logo { font-size: 1.4rem; }
    .article-header { padding: 3rem 2rem; }
    .author-box { padding: 2.5rem; }
}

@media (min-width: 1024px) {
    body { padding-top: 100px; }
    nav { padding: 1.5rem 3rem; }
    .menu-toggle { display: none; }
    .nav-links { display: flex; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
