/*
Theme Name: Falsissimo PRIME
Author: Magellano Tech
Description: Tema editoriale ad alta frequenza per Falsissimo.it.
Version: 1.6.5
Text Domain: falsissimo-prime
*/

:root {
  --ink: #121212;
  --muted: #6b6b6b;
  --paper: #ffffff;
  --soft: #f3f3f1;
  --line: #deded9;
  --accent: #dc1515;
  --accent-dark: #a80000;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.topbar { background: var(--ink); color: #fff; font-size: .78rem; letter-spacing: .04em; }
.topbar .site-shell { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 18px; }
.topbar p { margin: 0; }
.masthead { border-bottom: 1px solid var(--line); background: #fff; }
.masthead-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px 18px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; }
.brand-logo { width: 300px; max-width: min(70vw, 300px); height: auto; object-fit: contain; object-position: left center; }
.brand-kicker { margin-top: 8px; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.live-mark { color: var(--accent); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.live-mark::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: currentColor; }

.primary-nav { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.primary-nav::-webkit-scrollbar { display: none; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 24px; min-width: max-content; margin: 0; padding: 12px 0; }
.primary-nav a { text-decoration: none; font-size: .84rem; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--accent); }

main { padding-block: 28px 64px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 4px solid var(--ink); padding-top: 10px; margin: 34px 0 18px; }
.section-title h1, .section-title h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.05; }
.section-title a { color: var(--accent); font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }

.lead-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 24px; }
.lead-story { position: relative; min-height: 540px; overflow: hidden; background: var(--ink); color: #fff; }
.lead-story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.lead-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(0,0,0,.9)); }
.lead-copy { position: absolute; z-index: 2; inset: auto 28px 28px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lead-copy .eyebrow { background: var(--accent); color: #fff; padding: 5px 8px; }
.lead-copy h1 { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4.3vw, 3.75rem); line-height: .98; letter-spacing: -.03em; }
.lead-copy h1 a { text-decoration: none; }
.lead-copy p { max-width: 70ch; margin: 0; color: #e8e8e8; }
.side-leads { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; }
.side-lead { display: grid; grid-template-columns: 44% 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.side-lead img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.side-lead h2 { margin: 7px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2.3vw, 1.65rem); line-height: 1.08; }
.side-lead h2 a { text-decoration: none; }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.category-section { margin: 58px 0 0; scroll-margin-top: 96px; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 4px solid var(--ink); padding: 12px 0 16px; }
.category-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; }
.category-heading__copy p { max-width: 680px; margin: 10px 0 0; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.category-heading a { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.section-kicker { color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.load-more { display: flex; margin: 28px auto 0; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 12px 18px; font: inherit; font-size: .84rem; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease; }
.load-more:hover, .load-more:focus-visible { background: var(--accent); border-color: var(--accent); }
.load-more.is-loading { opacity: .65; cursor: wait; }
.publication-slot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 34px 0; padding-top: 18px; border-top: 4px solid var(--ink); }
.slot-column { min-width: 0; }
.slot-column--empty { min-height: 1px; }
.slot-column--empty { display: flex; flex-direction: column; gap: 24px; }
.kingtv-promo { display: flex; min-height: 0; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 18px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(10,10,10,.35), rgba(20,20,20,.82)), url('assets/kingtv-promo-bg.png') center / cover; color: #fff; text-align: center; text-decoration: none; }
.kingtv-promo .section-kicker { color: #f34b3f; }
.kingtv-promo img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; margin: 6px 0; }
.kingtv-promo strong { font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.kingtv-promo span:not(.section-kicker) { max-width: 190px; color: #d5d5d5; font-size: .86rem; line-height: 1.4; }
.kingtv-promo em { margin-top: 8px; color: #fff; font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.kingtv-video-link { display: flex; min-height: 0; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; border: 1px solid #343434; background: linear-gradient(160deg, rgba(18,18,18,.2), rgba(18,18,18,.88)), url('assets/falsissimo-promo-bg.png') center / cover; color: #fff; text-align: center; text-decoration: none; }
.kingtv-video-link strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.kingtv-video-link span { color: #d2d2d2; font-size: .82rem; }
.kingtv-video-link em { color: #fff; font-size: .68rem; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.kingtv-video-link:hover, .kingtv-video-link:focus-visible { border-color: #fff; background: #111; }
.slot-category-heading { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; }
.slot-category-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; line-height: 1; }
.slot-category-heading a { margin-left: auto; color: var(--accent); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.slot-stories { display: grid; gap: 24px; }
.slot-stories .news-card { padding-top: 0; border-top: 0; }
.news-card { border-top: 1px solid var(--line); padding-top: 14px; }
.news-card .thumb { display: block; aspect-ratio: 16/9; margin-bottom: 12px; overflow: hidden; background: var(--soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card:hover .thumb img { transform: scale(1.025); }
.news-card h2, .news-card h3 { margin: 6px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.15; }
.news-card h2 a, .news-card h3 a { text-decoration: none; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--accent); }
.news-card p { margin: 0; color: #444; font-size: .92rem; }
.story-meta { margin-top: 10px; color: var(--muted); font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.story-meta a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story-meta a:hover { color: var(--accent-dark); }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #efefec, #d9d9d4); color: #777; font-weight: 900; letter-spacing: .08em; }

.falsissimo-ad { display: flex; width: 100%; min-height: 280px; align-items: center; justify-content: flex-start; flex-direction: column; gap: 8px; margin: 30px auto; padding: 10px 0; overflow: hidden; border-block: 1px solid var(--line); background: #fafaf8; }
.falsissimo-ad__label { color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .1em; line-height: 1; text-transform: uppercase; }
.falsissimo-ad__slot { display: flex; min-width: 300px; min-height: 250px; align-items: flex-start; justify-content: center; }
.falsissimo-ad[data-falsissimo-ad-state="empty"] { display: none; }

.article-shell { width: min(calc(100% - 32px), 860px); margin-inline: auto; }
.article-header { margin: 16px 0 26px; }
.article-header h1 { margin: 10px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 6vw, 4.65rem); line-height: 1.02; letter-spacing: -.035em; }
.article-deck { color: #444; font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1.45; }
.article-hero { margin: 0 0 30px; }
.article-hero img { width: 100%; max-height: 670px; object-fit: cover; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; line-height: 1.78; }
.article-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.article-content h2, .article-content h3 { line-height: 1.2; margin-top: 1.7em; }
.article-content a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content blockquote { border-left: 5px solid var(--accent); padding-left: 22px; font-style: italic; }
.primer-related-card { margin: 30px auto; border: 1px solid var(--line); border-left: 5px solid var(--accent); background: var(--soft); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.primer-related-card > a { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); min-height: 150px; color: var(--ink); text-decoration: none; }
.primer-related-card__media { display: block; min-height: 150px; overflow: hidden; background: var(--ink); }
.primer-related-card__media img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.primer-related-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 150px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 4rem; font-weight: 900; line-height: 1; }
.primer-related-card__placeholder span { color: var(--accent); }
.primer-related-card__body { display: flex; flex-direction: column; justify-content: center; padding: 20px 24px; }
.primer-related-card__label { margin-bottom: 7px; color: var(--accent); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.primer-related-card__body strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.15; }
.primer-related-card__excerpt { margin-top: 8px; color: #4b4b4b; font-size: .86rem; line-height: 1.45; }
.primer-related-card > a:hover strong { color: var(--accent-dark); }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.article-tags a { background: var(--soft); padding: 6px 10px; text-decoration: none; font-size: .8rem; font-weight: 750; }
.article-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 44px; padding: 26px; border: 1px solid var(--line); background: var(--soft); }
.article-author .author-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.article-author h2 { margin: 5px 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; line-height: 1.1; }
.article-author h2 a { text-decoration: none; }
.article-author h2 a:hover { color: var(--accent-dark); }
.article-author p { margin: 0; color: #444; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { border: 1px solid var(--line); padding: 8px 12px; text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; }
.empty-state { padding: 50px 0; color: var(--muted); }

.site-footer.network-footer { margin-top: 36px; border-top: 1px solid var(--line); background: #fff; color: var(--ink); }
.footer-logo-row { display: flex; min-height: 170px; align-items: center; justify-content: space-between; gap: 42px; padding-block: 54px 34px; border-bottom: 1px solid var(--line); }
.footer-logo-row__brand { min-width: 0; }
.footer-site-logo, .footer-network-logo { display: block; line-height: 0; }
.footer-site-logo img { width: 240px; max-width: min(68vw, 240px); height: auto; object-fit: contain; object-position: left center; }
.footer-logo-row__brand--network { display: flex; justify-content: flex-end; }
.footer-network-logo img { width: 112px; max-width: 100%; height: auto; object-fit: contain; object-position: right center; }
.footer-menu-row { display: flex; min-height: 92px; align-items: center; }
.footer-menu-row nav { width: 100%; }
.footer-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-menu a, .footer-menu button { display: inline-flex; min-height: 44px; align-items: center; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.footer-menu a:hover, .footer-menu button:hover { color: var(--accent-dark); }
.footer-menu a:focus-visible, .footer-menu button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.footer-copy-row { min-height: 56px; border-top: 1px solid var(--line); padding-block: 14px 22px; }
.footer-legal { margin: 0; font-size: .78rem; line-height: 1.6; overflow-wrap: anywhere; }
.footer-legal span { display: inline-block; margin-left: 10px; }
.footer-legal a { text-underline-offset: 2px; }

.editorial-page, .author-page { padding-block: 44px 84px; }
.editorial-page__header { max-width: 780px; padding-bottom: 30px; border-bottom: 4px solid var(--ink); }
.editorial-page__header h1, .author-profile h1 { margin: 8px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: .95; letter-spacing: -.04em; }
.editorial-page__header p { margin: 0; color: #444; font-size: 1.08rem; }
.editorial-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-block: 38px 48px; }
.editorial-card { min-width: 0; padding: 26px; border: 1px solid var(--line); background: #fff; }
.editorial-card .author-avatar { display: block; position: relative; width: 150px; height: 150px; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; object-position: 50% 34%; overflow: hidden; vertical-align: middle; }
.editorial-card .eyebrow { margin-top: 18px; }
.editorial-card h2 { margin: 5px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1.12; }
.editorial-card h2 a { text-decoration: none; }
.editorial-card h2 a:hover { color: var(--accent-dark); }
.editorial-contacts { max-width: 780px; padding: 28px; border-left: 5px solid var(--accent); background: var(--soft); }
.editorial-contacts h2 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.editorial-contacts p { margin: 8px 0 0; }
.editorial-contacts a { color: var(--accent-dark); }
.author-profile { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 30px; align-items: center; padding-bottom: 38px; border-bottom: 4px solid var(--ink); }
.author-profile .author-avatar { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; }
.author-profile p { max-width: 760px; margin: 0; color: #444; font-size: 1.06rem; }
.author-publications { padding-top: 8px; }
.standard-page { padding-block: 44px 84px; }
.standard-page__article { max-width: 900px; }
.standard-page__header { padding-bottom: 24px; border-bottom: 4px solid var(--ink); }
.standard-page__header h1 { margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .95; letter-spacing: -.04em; }
.standard-page__content { padding-top: 26px; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.72; }
.standard-page__content h2 { margin: 1.7em 0 .45em; font-size: 1.8rem; line-height: 1.15; }
.standard-page__content h3 { margin: 1.5em 0 .4em; font-size: 1.3rem; line-height: 1.2; }
.standard-page__content a { color: var(--accent-dark); text-underline-offset: 3px; }
.standard-page__content ul { padding-left: 1.25em; }
.standard-page__content .legal-updated { color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .82rem; }

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; }
  .lead-story { min-height: 480px; }
  .side-leads { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .side-lead { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .primer-related-card > a { grid-template-columns: 1fr; }
  .primer-related-card__media, .primer-related-card__media img, .primer-related-card__placeholder { min-height: 190px; }
  .site-shell, .article-shell { width: min(calc(100% - 22px), var(--max)); }
  .topbar .site-shell { justify-content: center; }
  .topbar p:last-child { display: none; }
  .masthead-main { padding-block: 18px 12px; }
  .live-mark { display: none; }
  .lead-story { min-height: 430px; }
  .lead-copy { inset: auto 18px 20px; }
  .lead-copy p { display: none; }
  .side-leads, .news-grid { grid-template-columns: 1fr; }
  .publication-slot { grid-template-columns: 1fr; gap: 24px; margin-block: 28px; padding-top: 14px; }
  .slot-column--empty { display: block; }
  .slot-category-heading { display: flex; align-items: baseline; }
  .slot-category-heading h2 { font-size: 1.35rem; margin-top: 0; }
  .slot-category-heading a { display: block; margin-left: auto; font-size: .64rem; }
  .slot-stories { gap: 18px; }
  .slot-stories .news-card .thumb { aspect-ratio: 16 / 9; }
  .slot-stories .news-card h2 { font-size: 1.22rem; }
  .slot-stories .news-card p { font-size: .94rem; line-height: 1.45; }
  .kingtv-promo { min-height: 220px; }
  .category-heading { align-items: start; flex-direction: column; gap: 10px; }
  .category-heading a { align-self: flex-end; }
  .side-lead { grid-template-columns: 42% 1fr; }
  .side-lead img { min-height: 125px; }
  .article-content { font-size: 1.08rem; }
  .article-author { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding: 20px; }
  .article-author .author-avatar { width: 72px; height: 72px; }
  .footer-logo-row { min-height: 0; align-items: flex-start; flex-direction: column; gap: 28px; padding-block: 34px 28px; }
  .footer-site-logo img { width: 210px; }
  .footer-logo-row__brand--network { justify-content: flex-start; }
  .footer-network-logo img { width: 96px; object-position: left center; }
  .footer-menu-row { padding-block: 18px; }
  .footer-menu { align-items: flex-start; flex-direction: column; gap: 0; }
  .footer-copy-row { padding-block: 16px; }
  .footer-legal span { display: block; margin-left: 0; }
  .editorial-team { grid-template-columns: 1fr; }
  .author-profile { grid-template-columns: 86px minmax(0, 1fr); gap: 18px; }
  .author-profile .author-avatar { width: 86px; height: 86px; }
}

@media (max-width: 321px) {
  .falsissimo-ad { display: none; }
}
