@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fff;
  --fg: #333;
  --primary: #e0a030;
  --primary-fg: #fff;
  --muted: #737373;
  --border: #e5e5e5;
  --card-bg: #fff;
  --secondary-bg: #f2f2f2;
  --dark: #212121;
  --text: #555;
}

body { font-family: 'Open Sans', sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: 'Montserrat', sans-serif; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.header { background: var(--bg); border-bottom: 1px solid var(--border); }
.header-logo { text-align: center; padding: 24px 0; }
.header-logo a { font-family: 'Montserrat', sans-serif; font-size: 3.5rem; font-weight: 900; letter-spacing: -1px; }
.header-logo .dee { color: var(--fg); }
.header-logo .play { color: var(--primary); }
.header-logo .it { color: var(--fg); }
.header-nav { border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: center; }
.header-nav a { font-family: 'Montserrat', sans-serif; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 16px 16px; color: var(--dark); transition: color 0.2s; }
.header-nav a:hover { color: var(--primary); }

/* Footer */
.footer { background: var(--dark); padding: 48px 0; margin-top: 64px; }
.footer .footer-logo { text-align: center; margin-bottom: 24px; }
.footer .footer-logo a { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 900; }
.footer .footer-logo .dee { color: #fff; }
.footer .footer-logo .play { color: var(--primary); }
.footer .footer-logo .it { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 24px; }
.footer-nav a { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-nav a:hover { color: var(--primary); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer-social a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-social a:hover { color: var(--primary); }
.footer-email { text-align: center; color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.footer-copy { text-align: center; color: rgba(255,255,255,0.25); font-size: 0.7rem; margin-top: 8px; }

/* Hero grid */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2px; background: var(--border); }
@media (min-width: 768px) {
  .hero-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 189px); }
  .hero-grid .hero-main { grid-column: span 2; grid-row: span 2; height: 380px; }
  .hero-grid .hero-side { grid-row: span 2; height: 380px; }
}
.hero-card { position: relative; overflow: hidden; display: block; height: 200px; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-card:hover img { transform: scale(1.08); }
.hero-card .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }
.hero-card .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.hero-card .content h2, .hero-card .content h3 { color: #fff; text-transform: uppercase; line-height: 1.3; }
.hero-main .content h2 { font-size: 1.4rem; }
.hero-card .content h3 { font-size: 0.85rem; }
.hero-card .likes { color: rgba(255,255,255,0.5); font-size: 0.75rem; margin-top: 4px; }

/* Category badge */
.badge { display: inline-block; padding: 4px 12px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--dark); margin-bottom: 8px; }
.badge-approfondimenti { background: #4d4d4d; }
.badge-cinema { background: #993333; }
.badge-fumetti { background: #2d6a8a; }

/* Article card */
.article-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }
.article-grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .article-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.article-grid-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .article-grid-5 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .article-grid-5 { grid-template-columns: repeat(5, 1fr); } }

.article-card { display: block; overflow: hidden; transition: transform 0.3s; }
.article-card:hover { transform: scale(1.02); }
.article-card .thumb { position: relative; overflow: hidden; height: 256px; }
.article-card.small .thumb { height: 192px; }
.article-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.article-card:hover .thumb img { transform: scale(1.08); }
.article-card .thumb .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }
.article-card .thumb .info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px; }
.article-card .thumb .info h3 { color: #fff; line-height: 1.3; font-size: 1rem; }
.article-card.small .thumb .info h3 { font-size: 0.85rem; }
.article-card .meta { padding: 12px; background: var(--card-bg); display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }

/* Section heading */
.section-heading { font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.1rem; color: var(--fg); margin-bottom: 24px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }

/* Article page */
.article-hero { position: relative; height: 256px; overflow: hidden; }
@media (min-width: 768px) { .article-hero { height: 384px; } }
.article-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%); }
.article-hero .hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; }
.article-hero .hero-content h1 { color: #fff; font-size: 1.5rem; line-height: 1.3; max-width: 800px; }
@media (min-width: 768px) { .article-hero .hero-content h1 { font-size: 2.2rem; } }

.article-meta { padding: 16px 0; border-bottom: 1px solid var(--border); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.article-info strong { color: var(--fg); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.article-tags span { font-size: 0.7rem; background: var(--secondary-bg); color: var(--fg); padding: 4px 8px; }
.article-stats { display: flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 0.85rem; color: var(--muted); }

.share-bar { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.share-bar .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.share-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.8rem; transition: opacity 0.2s; }
.share-btn:hover { opacity: 0.8; }
.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }

.prose { max-width: 768px; padding: 32px 0; color: var(--text); font-size: 1.05rem; line-height: 1.85; }
.prose p { margin-bottom: 24px; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose em { font-style: italic; }

.author-block { max-width: 768px; padding: 32px 0; border-top: 1px solid var(--border); display: flex; gap: 20px; align-items: flex-start; }
.author-block img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-block .initials { width: 64px; height: 64px; border-radius: 50%; background: var(--secondary-bg); display: flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--muted); flex-shrink: 0; }
.author-block h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
.author-block p { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { background: var(--card-bg); border: 1px solid var(--border); padding: 24px; }
.team-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; }
.team-card h3 { font-size: 1.1rem; }
.team-card p { font-size: 0.85rem; color: var(--muted); margin-top: 8px; line-height: 1.6; }

/* Gradient placeholder */
.gradient-bg { position: absolute; inset: 0; }

/* Comments */
.comments-section { max-width: 768px; padding: 32px 0; border-top: 1px solid var(--border); }
.comments-section h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.comments-section p { font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* Related */
.related-section { padding: 32px 0; border-top: 1px solid var(--border); }

.my-10 { margin-top: 40px; margin-bottom: 40px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
